Files
DashBoard/openspec/changes/archive/2026-02-07-vite-jinja-report-parity-hardening/tasks.md
2026-02-08 08:30:48 +08:00

1.5 KiB

1. OpenSpec Scope and Parity Baseline

  • 1.1 Confirm report parity target pages and interaction scope (WIP overview/detail, resource status/history, query pages).
  • 1.2 Capture concrete parity defects in current Vite modules (runtime errors, KPI/matrix mismatch, API path inconsistency).

2. WIP Pages Vite Modularization

  • 2.1 Add Vite entries for wip-overview and wip-detail.
  • 2.2 Update templates to load frontend_asset(...) module bundles with inline fallback retention.
  • 2.3 Preserve legacy global handler compatibility for existing inline-triggered actions.

3. Report Behavior and Compute Fixes

  • 3.1 Fix resource-history module initialization/export scope error.
  • 3.2 Fix resource-status matrix selection logic and KPI zero-value rendering parity.
  • 3.3 Align report JSON API calls to MesApi-compatible paths for degraded retry behavior.

4. Field Contract and Rendering Hardening

  • 4.1 Patch dynamic table/query rendering to escape untrusted values.
  • 4.2 Verify UI table headers and export header naming consistency for touched report flows.
  • 4.3 Fix missing report style tokens affecting visual consistency.

5. Validation and Regression Guard

  • 5.1 Build frontend bundles and ensure new entries are emitted into backend static dist.
  • 5.2 Extend/update template integration tests for WIP module/fallback behavior.
  • 5.3 Run focused pytest suite for template/frontend/report regressions and record outcomes.