Fix mission board environment action scope
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
# Sprint 20260307-015 - FE Mission Board Environment Action Scope
|
||||
|
||||
## Topic & Scope
|
||||
- Repair mission-board environment actions so they pass canonical environment and region scope into downstream topology and findings pages.
|
||||
- Replace synthetic dashboard-only environment IDs in action links with route/query shapes the real pages actually understand.
|
||||
- Add focused Angular coverage for the board action targets, then replay the affected actions with live Playwright from the authenticated mission board.
|
||||
- Working directory: `src/Web/StellaOps.Web`.
|
||||
- Expected evidence: focused Angular tests, live Playwright action checks on `https://stella-ops.local/mission-control/board`, and sprint execution log updates.
|
||||
|
||||
## Dependencies & Concurrency
|
||||
- Depends on the earlier mission-board route fixes plus the release-health shared environment work (`SPRINT_20260307_012` and `SPRINT_20260307_013`) because the target topology/findings surfaces already expect canonical environment scope.
|
||||
- Safe parallelism: stay inside `src/Web/StellaOps.Web` plus sprint updates; do not touch unrelated navigation/settings/sidebar work already in progress from other agents.
|
||||
- Scope is limited to mission-board environment action routing, not a full dashboard data-model rewrite.
|
||||
|
||||
## Documentation Prerequisites
|
||||
- `src/Web/StellaOps.Web/AGENTS.md`
|
||||
- `src/Web/StellaOps.Web/src/app/features/dashboard-v3/dashboard-v3.component.ts`
|
||||
- `src/Web/StellaOps.Web/src/app/features/topology/environment-posture-page.component.ts`
|
||||
- `src/Web/StellaOps.Web/src/app/core/context/platform-context.store.ts`
|
||||
|
||||
## Delivery Tracker
|
||||
|
||||
### FE-DASH-001 - Reproduce mission-board environment action scope loss
|
||||
Status: DONE
|
||||
Dependency: none
|
||||
Owners: QA
|
||||
Task description:
|
||||
- Replay mission-board actions from the live authenticated shell with Playwright.
|
||||
- Confirm whether environment-specific actions preserve usable scope in downstream pages.
|
||||
|
||||
Completion criteria:
|
||||
- [x] Live Playwright captures concrete mission-board action targets.
|
||||
- [x] The broken action is reduced to a specific route/query mismatch.
|
||||
|
||||
### FE-DASH-002 - Replace synthetic environment action IDs with canonical scope
|
||||
Status: DONE
|
||||
Dependency: FE-DASH-001
|
||||
Owners: Developer
|
||||
Task description:
|
||||
- Update the mission-board environment card/table model so action links use canonical environment IDs plus region scope instead of composite placeholder IDs.
|
||||
- Preserve current board rendering while making downstream routes receive valid scope values.
|
||||
|
||||
Completion criteria:
|
||||
- [x] Environment card `Detail` routes target the canonical topology posture path for the selected environment.
|
||||
- [x] Environment card `Findings` routes preserve valid region/environment scope instead of `env=<synthetic-id>`.
|
||||
- [x] Risk-table environment actions preserve the same canonical scope.
|
||||
|
||||
### FE-DASH-003 - Add focused Angular coverage for board action targets
|
||||
Status: DONE
|
||||
Dependency: FE-DASH-002
|
||||
Owners: Test Automation
|
||||
Task description:
|
||||
- Add focused tests around the mission-board action helpers or rendered links.
|
||||
- Verify the tests assert concrete route/query outputs for at least one environment card and one risk-table row.
|
||||
|
||||
Completion criteria:
|
||||
- [x] Focused Angular tests prove the board emits canonical topology/findings targets.
|
||||
- [x] Tests fail before the fix and pass after it.
|
||||
|
||||
### FE-DASH-004 - Replay the affected mission-board actions live
|
||||
Status: DONE
|
||||
Dependency: FE-DASH-003
|
||||
Owners: QA
|
||||
Task description:
|
||||
- Re-run the mission-board environment actions with live Playwright after the Web bundle is rebuilt.
|
||||
- Confirm the downstream pages load with the intended environment scope instead of dropping to all-environment views.
|
||||
|
||||
Completion criteria:
|
||||
- [x] Live Playwright confirms the selected environment `Detail` action lands on the correct topology posture route.
|
||||
- [x] Live Playwright confirms the selected environment `Findings` action preserves environment/region scope on the target page.
|
||||
|
||||
## Execution Log
|
||||
| Date (UTC) | Update | Owner |
|
||||
| --- | --- | --- |
|
||||
| 2026-03-07 | Sprint created after live Playwright on `/mission-control/board` showed mission-board environment actions using synthetic IDs such as `env=dev-eu-west`, causing the downstream findings page to fall back to `All regions / All environments`. | QA |
|
||||
| 2026-03-07 | Rebound `DashboardV3Component` environment actions to canonical region/environment scope from the live Platform context store and added focused coverage in `src/app/core/testing/dashboard-v3.component.spec.ts`; `npx ng test --watch=false --include src/app/core/testing/dashboard-v3.component.spec.ts` passed. | Developer |
|
||||
| 2026-03-07 | Replayed the first mission-board environment card `Detail` and `Findings` actions plus the first risk-table `Open` action with live Playwright. The targets now preserve `regions=<region>&environments=<environment>` and the downstream pages render the expected scoped context (for example `US East / Development` and `US East / Staging`). | QA |
|
||||
|
||||
## Decisions & Risks
|
||||
- Decision: treat the defect as a board action-contract problem rather than patching the findings page to understand synthetic dashboard IDs, because the board is the component inventing the invalid token.
|
||||
- Decision: source mission-board action identities from `PlatformContextStore.environments()` so downstream routes follow the same canonical environment catalog the rest of the shell uses.
|
||||
- Risk: `DashboardV3Component` still uses placeholder data, so the fix must stay scoped to action semantics and avoid broadening into a data-source rewrite during this iteration.
|
||||
|
||||
## Next Checkpoints
|
||||
- 2026-03-07: land the mission-board action-scope fix and focused tests.
|
||||
- 2026-03-07: replay the affected board actions with live Playwright and continue the authenticated page/action sweep.
|
||||
Reference in New Issue
Block a user