AEROSIM-TS-70
Present only a valid resumable activity on Home
Home offers Resume only for the active pilot's API-confirmed resumable activity and otherwise presents an explicit no-continuation state.
- Verified flow state
- Done
- Owner
- AeroSim Architecture and Delivery
- Feature
- AEROSIM-FT-34
- Component
- Web Application — Home experience, Profile and catalogue API client, and pilot-session state
- Repository
- corp-v1-aerosim/corp-v1-aerosim
Delivery scope
Load the resumable-activity projection after authenticated startup, render its governed activity label and recorded context summary, suppress Resume for absent or invalid state, handle loading and API failure distinctly, and clear the projection on logout. Concrete artifacts are applications/web/src/present-only-a-valid-resumable-activity-on-home.ts and applications/web/test/present-only-a-valid-resumable-activity-on-home.spec.ts; ownership is limited to the listed artifacts and their focused verification.
Implementation contract
Implementation artifacts
- applications/web/src/present-only-a-valid-resumable-activity-on-home.ts
- applications/web/test/present-only-a-valid-resumable-activity-on-home.spec.ts
Inputs
- Authenticated startup state and typed latest-resumable-activity response
- Activity label, recorded configuration summary, and resume-context identifier
- Loading, no-result, API-failure, session-expiry, and logout events
Outputs
- Home offers Resume only for the active pilot's API-confirmed resumable activity and otherwise presents an explicit no-continuation state.
Failure boundaries
- Suppress Resume when the response is absent, malformed, stale for the current session, or explicitly non-resumable
- Keep API failure distinct from a valid no-activity result and clear the projection on logout or subject replacement
Excluded scope
- Recommending a different activity when no resumable state exists
- Constructing resume context from stale browser storage
Verification steps
- Run applications/web/test/present-only-a-valid-resumable-activity-on-home.spec.ts against the exact implementation revision and retain the complete passing result.
- Exercise the positive contract with authenticated startup state and typed latest-resumable-activity response, then assert: Home offers Resume only for the active pilot's API-confirmed resumable activity and otherwise presents an explicit no-continuation state.
- Exercise every negative boundary: Suppress Resume when the response is absent, malformed, stale for the current session, or explicitly non-resumable; Keep API failure distinct from a valid no-activity result and clear the projection on logout or subject replacement
Traceability
Dependencies
- AEROSIM-TS-69Canonical ID: TASK-0069
UI/UX applicability
non_visual
This Task owns technical or behavioral acceptance and does not claim direct visual conformance to the approved UI/UX package.
Acceptance evidence
Verified delivery: application PR #131 merged reviewed head 008b88fb7b409a4988baf8b0fd87977441ff3b89 as b72932c106010f876f463aec7632129c69670ca5. The Home projection loads only for an authenticated session, presents the API-confirmed Flight or Lesson label and recorded configuration/checkpoint summary, exposes Resume only for an exact valid response, distinguishes loading, no-continuation, and API failure, rejects malformed and identity-bearing responses, suppresses stale cross-session results, and retains logout invalidation until the session provider clears. Focused tests pass 14/14; web tests pass 1,094/1,094 plus invalid-action 11/11 and environment-presentation 27/27; lint, typecheck, formatting, production build, production audit, exact-head CI runs 4292-4293, and integration/publication runs 4294-4295 passed. Release completion verified on product 1.0.0.0 at GitOps revision 5d3712d89dfbf7dacd993348e55f497d126c7bf9 with Argo Synced/Healthy, exact image digests, authenticated API/database access, and three-world configured-flight acceptance.
Current evidence boundary
No current implementation, acceptance, release, or deployment evidence is claimed for this planned Task. Any prior implementation may be used only as prototype and discovery evidence.