docs: project docs, scripts, deployment configs, and evidence
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
# 2026-03-28 Q-004 Coverage Remediation Pass 19
|
||||
|
||||
## Scope
|
||||
|
||||
- Continue strict `Q-004` closure work after Pass 18.
|
||||
- Fully close the remaining admin shell hotspot in:
|
||||
- `frontend/admin/src/layouts/AdminLayout/AdminLayout.tsx`
|
||||
- Re-verify closure through targeted layout tests and full frontend validation.
|
||||
|
||||
## Changes
|
||||
|
||||
### Frontend
|
||||
|
||||
- Reworked layout coverage in:
|
||||
- `frontend/admin/src/layouts/AdminLayout/AdminLayout.test.tsx`
|
||||
- Newly covered behavior includes:
|
||||
- loading state while the session restores
|
||||
- admin desktop navigation flow
|
||||
- breadcrumb navigation
|
||||
- desktop collapse state
|
||||
- mobile menu / drawer flow
|
||||
- dropdown profile / security / logout actions
|
||||
- admin vs non-admin menu selection
|
||||
- avatar, nickname, username, and default-user fallbacks
|
||||
- explicit `children` rendering over the router outlet
|
||||
|
||||
### Backend
|
||||
|
||||
- No backend code changes were required in this pass.
|
||||
|
||||
## Verified Commands
|
||||
|
||||
```powershell
|
||||
cd D:\project\frontend\admin
|
||||
npm.cmd run test:run -- src/layouts/AdminLayout/AdminLayout.test.tsx
|
||||
npm.cmd run lint
|
||||
npm.cmd run build
|
||||
npm.cmd run test:coverage
|
||||
```
|
||||
|
||||
## Results
|
||||
|
||||
### Frontend coverage
|
||||
|
||||
- Overall:
|
||||
- statements `92.06%`
|
||||
- branches `79.29%`
|
||||
- functions `89.09%`
|
||||
- lines `92.22%`
|
||||
- Target area:
|
||||
- `src/layouts/AdminLayout/AdminLayout.tsx`: statements `100%`, branches `100%`, functions `100%`, lines `100%`
|
||||
|
||||
### Validation outcomes
|
||||
|
||||
- Full frontend coverage run now completes with:
|
||||
- `49` passing test files
|
||||
- `224` passing tests
|
||||
- The required sequential frontend validation path passed:
|
||||
- `test:run -- src/layouts/AdminLayout/AdminLayout.test.tsx`
|
||||
- `lint`
|
||||
- `build`
|
||||
- `test:coverage`
|
||||
|
||||
## Validation Notes
|
||||
|
||||
- The successful frontend coverage run still emits one post-summary jsdom `AggregateError` network-noise line.
|
||||
- It does not fail the command.
|
||||
- It remains a real validation-hygiene issue and cannot be hidden.
|
||||
|
||||
## Real Conclusion
|
||||
|
||||
- `src/layouts/AdminLayout/AdminLayout.tsx` is no longer an open `Q-004` gap.
|
||||
- `Q-004` still cannot be honestly declared closed.
|
||||
- After this pass, the remaining higher-value frontend gaps narrow further to:
|
||||
- `src/lib/storage/token-storage.ts`
|
||||
- `src/lib/errors/AppError.ts`
|
||||
- `src/pages/admin/ImportExportPage/ImportExportPage.tsx`
|
||||
- `src/pages/NotFoundPage/NotFoundPage.tsx`
|
||||
- the post-summary jsdom `AggregateError` coverage-noise hygiene issue
|
||||
Reference in New Issue
Block a user