refactor: code quality cleanup — remove any types, add logger, rename Kine to Tabata

- Phase 0: Rename all Kine references to Tabata (types, files, imports, i18n, analytics events)
- Phase 1: Add test coverage for tabataProgramStore, workoutProgramStore, and color utils (47 tests)
- Phase 2: Remove all `any` types from production code with proper typed replacements
- Phase 3: Replace ~60 raw console.* calls with __DEV__-gated logger utility
- Phase 4: Verify .DS_Store housekeeping (already clean)

0 TypeScript errors, 583/583 tests passing.
This commit is contained in:
Millian Lamiaux
2026-04-17 18:56:24 +02:00
parent e0e02c4550
commit 791f432334
176 changed files with 16508 additions and 2305 deletions

20
fix_i18n.js Normal file
View File

@@ -0,0 +1,20 @@
const fs = require('fs');
const langs = [
{ code: 'fr', text: 'Prêt à tout casser aujourd\'hui ?' },
{ code: 'es', text: '¿Listo para arrasar hoy?' },
{ code: 'de', text: 'Bereit, heute alles zu geben?' }
];
langs.forEach(({ code, text }) => {
const path = `src/shared/i18n/locales/${code}/screens.json`;
if (fs.existsSync(path)) {
let content = fs.readFileSync(path, 'utf8');
content = content.replace(
/"home":\s*\{/,
`"home": {\n "readyToCrush": "${text}",`
);
fs.writeFileSync(path, content);
console.log(`Updated ${code}`);
}
});