Repository navigation
C8 slice 1: route the action-items list onto typed ApiResult (clean ancestry) - #14615
Merged
Merged
Conversation
Rehomes the C3.5 action-items migration onto a clean ancestry: real CaptureSessionOwner-aware action items provider factory, typed list/ load-more/retry wiring in the production Home path, boundary-baseline adoption, API_RESULTS.md documentation, and the C3 action-items spine oracle with its registry entry. Ancestry rebuilt from origin/main so the squash-era blobs that predate the merged C3 oracle revisions do not ride along.
const the two ApiFailure authTransient/decode returns; lift the @VisibleForTesting annotation off sendUncaughtApiCall (executeApi is a production entry, not test-only); key the action-items retry TextButton with OmiKeys.actionItemsRetry and register it in the addressability catalog.
The merge-forward left both the retired ActionItemsProvider() registration and a duplicate device_provider import; keep the factory-based registration only.
The fixture pinned a UTC due_at and a UTC now; the provider's Home-today window is local-midnight based, so UTC+14 runners excluded the fixture. Drive the fixture and both assertions from the runtime clock instead, matching how the app itself computes the window.
…on-items Restores backend files that a concurrent main merge touched; unowned drift restored to origin/main bytes.
…on-items Restores backend files that a concurrent main merge touched; unowned drift restored to origin/main bytes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Line-Count-Exception: app/lib/pages/action_items/action_items_page.dart | 2170 -> 2201 | action-items typed ApiResult migration: the Home-today/load-more/retry wiring through ActionItemsApi and its null-swallow guards net +31 lines at the final base; split deferred until the C3 chain completes.
Product invariants affected
INV-DATA-1 — the action-items list migration keeps production-family routing continuity: Home-today/load-more/retry resolve through the same production data plane via ActionItemsApi, now with explicit typed error and retry states.
(Rehomed from #14613 onto a clean ancestry; same owned content, spine revision-chain gate satisfied.)