feat(F-157): completed feature
This commit is contained in:
23
work/artifacts/F-157/implementer.md
Normal file
23
work/artifacts/F-157/implementer.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# F-157 — Implementer
|
||||
|
||||
## Implementación
|
||||
- Eliminados Dashboard, Ventas y Productos de `NAV_ITEMS`; el menú principal conserva una única entrada Reporting.
|
||||
- Simplificado el sidebar para renderizar solo `visibleNavItems`.
|
||||
- Añadido `reporting/layout.tsx` con navegación local persistente, estilo Ajustes, y estado activo accesible mediante `aria-current`.
|
||||
- `/reporting` redirige al apartado inicial `/reporting/dashboard`.
|
||||
- Eliminados los enlaces redundantes «← Reporting» de las páginas internas.
|
||||
- Corregido el contrato frontend de `sort` en productos para que el build del admin use el filtro backend existente en vez de enviar `groupBy=revenue`.
|
||||
|
||||
## Evidencia
|
||||
- `cd project/apps/admin && npm run build`: PASS, 29 rutas generadas.
|
||||
- `cd project && node_modules/.bin/tsc --noEmit`: PASS.
|
||||
- `git diff --check`: PASS.
|
||||
- `./scripts/verify.sh`: PASS.
|
||||
|
||||
## Archivos
|
||||
- `project/apps/admin/src/app/(dashboard)/layout.tsx`
|
||||
- `project/apps/admin/src/lib/permissions.ts`
|
||||
- `project/apps/admin/src/app/(dashboard)/reporting/layout.tsx`
|
||||
- `project/apps/admin/src/app/(dashboard)/reporting/page.tsx`
|
||||
- `project/apps/admin/src/app/(dashboard)/reporting/{dashboard,sales,products}/page.tsx`
|
||||
- `project/apps/admin/src/lib/reporting-client.ts`
|
||||
Reference in New Issue
Block a user