feat: Phase 2 — Dashboard, translation, PWA e análise de erros - #3
Merged
Merged
Conversation
Documento detalhado de planejamento pré-implementação cobrindo: - Arquitetura local-first com IndexedDB/Dexie - Stack Vite + React + TypeScript + Tailwind - Estrutura de diretórios engine vs conteúdo - Schemas JSON para lições contribuíveis - Roadmap em 3 fases (MVP, experiência, comunidade) Co-authored-by: Iago Mendes <iagommendes@gmail.com>
- Monorepo with pnpm workspaces (apps/web, packages/engine, packages/schemas) - Typing engine with WPM, accuracy, session state machine and 15 unit tests - Zod schemas for lessons, manifest and session results - React SPA with catalog, lesson flow, settings and i18n (en-US, pt-BR) - Dexie/IndexedDB persistence for progress and settings - 20 seed lessons across programmers and technical-writers tracks - Content validation script, i18n parity check and GitHub Actions CI Co-authored-by: Iago Mendes <iagommendes@gmail.com>
- Add error-analysis engine (hotspots, streak, WPM charts, lesson suggestions) - Dashboard page with recharts, heatmap, filters and progress history - Translation mode UI with word accuracy and 10 bilingual lessons - CodeMirror syntax preview for code lessons - Theme light/dark/system, key sounds, keyboard shortcuts (Esc, Ctrl+Enter) - Export/import/reset progress in settings - PWA via vite-plugin-pwa for offline use Co-authored-by: Iago Mendes <iagommendes@gmail.com>
iagommendes
marked this pull request as ready for review
June 29, 2026 18:51
Also fix prefer-const lint in error-analysis streak calculation. Co-authored-by: Iago Mendes <iagommendes@gmail.com>
Fresh CI clones have no dist/ for @coderkeys/engine and @coderkeys/schemas, causing tsc in apps/web to fail. Build packages first and add tsconfig paths as fallback for local development without a prior build. Co-authored-by: Iago Mendes <iagommendes@gmail.com>
Keep Phase 2 versions for all conflicted files since they are a superset of Phase 1 (dashboard, translation, PWA, error analysis, etc.). Co-authored-by: Iago Mendes <iagommendes@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
Implementação da Fase 2 — Experiência e Retenção do CoderKeys.
Entregas da Fase 2
2.1 Dashboard de Progresso (
/dashboard)2.2 Análise de Erros
packages/engine/src/metrics/error-analysis.ts— hotspots, streak, agrupamento diário, sugestões2.3 Modo Translation
sourceText(referência) + área de digitaçãocalculateWordAccuracy)translation(5 en-US + 5 pt-BR)2.4 Renderização de Código
2.5 UX Avançada
Esc= pausar/retomar,Ctrl+Enter= reiniciar2.6 Dados e Backup
2.7 PWA / Offline
vite-plugin-pwacom Service Worker e manifest instalávelTestes
pnpm validate-contentComo testar