fix(ui): remove unsupported dashboard metrics

This commit is contained in:
sechmachine
2026-08-15 01:12:13 +07:00
parent f9ddef6861
commit f8db8a3e8b
7 changed files with 36 additions and 16 deletions
+24 -2
View File
@@ -4,7 +4,7 @@
- **Requirement IDs:** `AUTH-003`, `UI-003`, `UI-013`, `I1-UI-03`
- **Scenario IDs:** `AC-AUTH-002`, `AC-UI-005`
- **Test class/method:** `com.lab.labtimesheet.feature.reporting.ReportingArchitectureTest`, `com.lab.labtimesheet.feature.reporting.controller.DashboardTemplateWebTest`
- **Implementation commit:** `pending`
- **Implementation commit:** `5638286`, `pending`
## Protected behavior
@@ -16,7 +16,7 @@ The architecture test loads the reporting view contract and rejects the supersed
## Hand-derived expected result
Admin markup contains system metrics and `Create account`; Mentor markup contains owned Project and global pending-decision summaries plus `Create Project`; Intern markup contains only the supplied assigned Task, checked-in state, `Check out`, and due date `18/08/2026`. Actions belonging to other roles are absent.
Admin markup contains system metrics and `Create account`; Mentor markup contains owned Project, eligible-member, and blocked-Task summaries plus `Create Project`; Intern markup contains attendance, active-Project and assigned-Task summaries, only the supplied assigned Task, `Check out`, and due date `18/08/2026`. Unsupported pending-decision and unread-notification metrics are absent. Actions belonging to other roles are absent.
## RED
@@ -42,6 +42,17 @@ BUILD FAILURE
The final feature package DTO and the three production dashboard templates were absent in the respective pre-implementation states.
After cross-feature I1 service boundaries were established, a second focused RED caught two metrics without I1 service authority:
```text
./mvnw -Dtest=DashboardTemplateWebTest test
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0
mentorTemplateRendersOwnedScopeAndOnlyMentorAction expected not "Pending decisions"
internTemplateRendersOwnWorkAndAttendanceAction expected not "Unread notifications"
BUILD FAILURE
Total time: 5.215 s
```
## GREEN
**Command**
@@ -60,6 +71,17 @@ BUILD SUCCESS
Total time: 25.380 s
```
Unsupported-metric correction:
```text
npm run build
./mvnw -Dtest=DashboardTemplateWebTest test
Tailwind CSS v4.3.3: Done in 72ms
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESS
Total time: 6.254 s
```
## Affected suite
**Command and result**