semantic update

This commit is contained in:
2026-02-23 13:15:48 +03:00
parent 008b6d72c9
commit 26880d2e09
29 changed files with 5134 additions and 958 deletions

View File

@@ -47,8 +47,9 @@
### Tests for User Story 1
- [x] T012 [P] [US1] Add backend contract tests for `GET /api/reports` pagination/filter defaults in `backend/tests/test_reports_api.py`
- [x] T012 [P] [US1] Add backend contract tests for `GET /api/reports` pagination/filter defaults in `backend/src/api/routes/__tests__/test_reports_api.py`
- [x] T013 [P] [US1] Add frontend integration test for unified mixed-type rendering in `frontend/src/lib/components/reports/__tests__/reports_page.integration.test.js`
- frontend/src/lib/components/reports/__tests__/reports_page.integration.test.js
### Implementation for User Story 1
@@ -73,7 +74,8 @@
### Tests for User Story 2
- [x] T020 [P] [US2] Add frontend visual/state tests for type profile mapping and fallback in `frontend/src/lib/components/reports/__tests__/report_type_profiles.test.js`
- [x] T021 [P] [US2] Add backend normalization tests for unknown type fallback mapping in `backend/tests/test_report_normalizer.py`
- [x] T021 [P] [US2] Add backend normalization tests for unknown type fallback mapping in `backend/src/services/reports/__tests__/test_report_normalizer.py`
- backend/src/services/reports/__tests__/test_report_normalizer.py (Coverage: 100% fallback logic)
### Implementation for User Story 2
@@ -95,8 +97,9 @@
### Tests for User Story 3
- [x] T027 [P] [US3] Add backend contract tests for `GET /api/reports/{report_id}` in `backend/tests/test_reports_detail_api.py`
- [x] T027 [P] [US3] Add backend contract tests for `GET /api/reports/{report_id}` in `backend/src/api/routes/__tests__/test_reports_detail_api.py`
- [x] T028 [P] [US3] Add frontend detail-panel integration test for failed report recovery guidance in `frontend/src/lib/components/reports/__tests__/report_detail.integration.test.js`
- frontend/src/lib/components/reports/__tests__/report_detail.integration.test.js
### Implementation for User Story 3
@@ -115,11 +118,15 @@
**Purpose**: Final consistency, performance, and documentation updates across all stories.
- [x] T035 [P] Add API contract conformance checks against `specs/020-task-reports-design/contracts/reports-api.openapi.yaml` in `backend/tests/test_reports_openapi_conformance.py` (CRITICAL: Verify @UX_STATE and @TEST_DATA metadata compliance)
- [x] T035 [P] Add API contract conformance checks against `specs/020-task-reports-design/contracts/reports-api.openapi.yaml` in `backend/src/api/routes/__tests__/test_reports_openapi_conformance.py` (CRITICAL: Verify @UX_STATE and @TEST_DATA metadata compliance)
- [x] T036 [P] Add frontend performance guard test for filter responsiveness in `frontend/src/lib/components/reports/__tests__/reports_filter_performance.test.js`
- [x] T036a [P] Implement virtualization or pagination optimization for large lists (>1000 items) in `ReportsList.svelte` to satisfy FR-011.
- [x] T037 Update operational docs for reports usage and troubleshooting in `docs/settings.md` and `docs/design/resource_centric_layout.md`
- [x] T038 Run end-to-end quickstart validation and capture results in `specs/020-task-reports-design/quickstart.md`
- [x] T039 Run semantic compliance protocol (`python3 generate_semantic_map.py`) and resolve critical parsing errors from latest report
- [x] T040 Remove deprecated tasks page route and redirect UI navigation entry points to reports (`frontend/src/routes/tasks/+page.svelte`, `frontend/src/lib/components/layout/TaskDrawer.svelte`, `frontend/src/components/Navbar.svelte`)
- [x] T041 Fix reports list sorting/filtering for mixed offset-naive and offset-aware datetimes to prevent `GET /api/reports` 500 during active migration (`backend/src/services/reports/report_service.py`, `backend/src/api/routes/__tests__/test_reports_api.py`)
- [x] T042 Add frontend submit-guard for dashboard migration/backup modal actions to prevent duplicate task creation on repeated clicks (`frontend/src/routes/dashboards/+page.svelte`)
---
@@ -156,7 +163,7 @@ Graph: `US1 -> {US2, US3}`
## Parallel Example: User Story 1
```bash
Task: "T012 [US1] Add backend contract tests in backend/tests/test_reports_api.py"
Task: "T012 [US1] Add backend contract tests in backend/src/api/routes/__tests__/test_reports_api.py"
Task: "T013 [US1] Add frontend integration test in frontend/src/lib/components/reports/__tests__/reports_page.integration.test.js"
Task: "T015 [US1] Implement reports route in frontend/src/routes/reports/+page.svelte"
@@ -166,7 +173,7 @@ Task: "T016 [US1] Implement list component in frontend/src/lib/components/report
## Parallel Example: User Story 3
```bash
Task: "T027 [US3] Add backend detail contract tests in backend/tests/test_reports_detail_api.py"
Task: "T027 [US3] Add backend detail contract tests in backend/src/api/routes/__tests__/test_reports_detail_api.py"
Task: "T028 [US3] Add frontend detail integration test in frontend/src/lib/components/reports/__tests__/report_detail.integration.test.js"
Task: "T030 [US3] Implement detail service assembly in backend/src/services/reports/report_service.py"