2.1 KiB
2.1 KiB
talleres_desarrollo.md
Implemented Scope
- Dashboard subsection under
dashboard#moduloswith maturity index, next-level card, radar, dimension scoring, brecha analysis, strategic recommendations, and educational cards. - New route
/talleres-desarrollowith:- KPI header (maturity index, dimensions with brechas, 100% target)
- Dimension chips with preselection via
?dimension=<moduleKey> - Workshop cards per dimension
- Video modal and guided completion flow
- Evidence upload and immediate UI refresh
- Full persistence layer in Prisma:
DevelopmentWorkshopDevelopmentWorkshopProgressDevelopmentWorkshopEvidence- enums
WorkshopProgressStatus,WorkshopEvidenceValidationStatus
- API layer:
GET /api/talleresPOST /api/talleres/progressPOST /api/talleres/evidence
- Seed catalog for 5 dimensions (minimum 1 workshop each).
Implemented Files
- DB and seed:
prisma/schema.prismaprisma/migrations/20260315120000_talleres_desarrollo/migration.sqlprisma/seed.mjs
- Domain and logic:
src/lib/talleres/types.tssrc/lib/talleres/metrics.tssrc/lib/talleres/server.tssrc/lib/talleres/validation.ts
- API:
src/app/api/talleres/route.tssrc/app/api/talleres/progress/route.tssrc/app/api/talleres/evidence/route.ts
- UI:
src/components/app/dashboard-maturity-section.tsxsrc/components/app/talleres-desarrollo-view.tsxsrc/app/talleres-desarrollo/page.tsx- Updated
src/app/dashboard/page.tsx - Updated
src/components/app/page-shell.tsx
- Tests:
src/lib/talleres/__tests__/metrics.test.tssrc/lib/talleres/__tests__/validation.test.ts
Validation Run
npx prisma generate✅npx prisma validate✅npm test✅npm run lint✅ (existing warnings remain inpdfExtractor.js, no new errors)npm run build✅
Notes
- Evidence storage reuses existing strategic evidence storage constraints (mime and 10MB limit).
- Workshop improvements are reflected in talleres/dashboard snapshot layer without altering base diagnostic scoring formulas.
- Premium access follows the existing policy used by premium modules.