Repository navigation
feat(app):_migrate_the_action-items_list_onto_typed_ApiResult - #14409
Git-on-my-level wants to merge 8 commits into
Conversation
A 503 currently renders the Tasks empty hero. Typed list plus the real page/provider now project error instead of empty; legacy wrappers stay for unmigrated callers. Failure-Class: none Co-authored-by: Cursor <[email protected]>
…ay plus load-more through it main.dart now calls createProductionActionItemsProvider so the shipped Tasks page takes the typed path. Home today and load-more share that list call; a 503 there keeps existing rows instead of looking like an empty account, and a live-call-site test plus a 503 on the factory-built provider prove engagement. Co-authored-by: Cursor <[email protected]>
Forward the C3 revision split and the rebuilt contract branch so this published child still fast-forwards from typed-result. files.json is the union of C1 entries from typed-result and c3_action_items_test.dart from this branch. Co-authored-by: Cursor <[email protected]>
…format The merge commit's pre-commit hook reformatted C1 spine tests and adjacent main-side Dart without flutter_lints resolved, which would break the after-hash pins. Restore the typed-result bytes exactly. Co-authored-by: Cursor <[email protected]>
Forward the three-way C3 split so this published child still fast-forwards from typed-result.
kodjima33
left a comment
There was a problem hiding this comment.
Action-items typed ApiResult migration, no abuse signal; approve-only per standing account flag.
|
Auto-closed when base branch was deleted after the parent squash-merged. Head unchanged at |
|
Hey @Git-on-my-level 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Summary
tryGetActionItems/ empty-list coalescing makes a 503 render the Tasks empty hero (Create Action Item). An injected 503 against the realActionItemsProviderandActionItemsPage(not a typed-result unit test alone) now showsomi.action_items.errorand never that hero; retry recovers to valid empty.getActionItems/tryGetActionItemsstay onmakeApiCall.ActionItemsApi.listis the typed path. ProductionActionItemsProvider()is not flipped; tests usecomposeTypedActionItemsProvider. Parser keeps valid rows around a malformed one and countsrejectedRows.executeApialready maps 402 → locked and 422 → terminal withretryable: false. I did not migrate create / update / delete / bulk /loadMoreActionItems/ Home today-window fetch: those are not the empty-hero path, and changing their null-as-failure retry would be a behaviour change. Name them for a later slice rather than quietly retargeting.pendingContract('C3')on the Dart Record.== / Map identity projection test. No workaround.action_items.dartstays unadopted (partial large file; baseline 11makeApiCall/ 17 null-swallow after the independent-rowcatch). Brand-newaction_items_api_contract.dartis adopted forlegacy-nullable-http(the only rule that applies atapp/lib/backend/http/, not underapi/). The scanner is changed-file-only: it constrains adopted files and brand-new files (prior_source is None); untouched legacy files may grow and are never taxed. False-positive shape: after comments/strings are stripped, unrelatedcatch (,return null, or?? []in an adopted file fire; aliases/wrappers evade it. Behavioral contracts remain authoritative.Test plan
TZ=UTC flutter test test/spine/c3_action_items_test.dart— 3/3 (outage→error on provider + real page, parser keeps valid rows, retry recovers to empty)TZ=UTC bash app/test.sh— exit 0python3 scripts/check_spine_contracts.py— C3 projection marker still pending; new spine file registeredmake preflight— 21 checks passed vsorigin/maindart format --line-length 120on touched Dart filesmake mobile-verify ARGS="fast --paths …action_items…"— 9/9 passedscripts/pr-preflight --suggest— no locked invariants; nofix:commit so no failure class required. Ask before defining one.Failure-Class: none
🤖 Generated with Claude Code