7651f3d8aa
feat(sprint5): quest system + arcs + rebalance endurance/damage/xp
...
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 33s
Quest system:
4 entities (quest_arcs, quests, player_quests, player_quest_arcs)
Arc "Les Marais du Têtard" (4 quêtes narratives)
3 quêtes standalone répétables (chasse/forge/craft)
5 achievements liés (quests_completed + quest_arc_completed)
Event-driven: combat/forge/craft/loot émettent quest.progress
API: available, active, completed, accept, claim, arcs
Rebalance:
Endurance coût combat 10→5, regen 6min→3min (20/h), repos 20→10
Dégâts joueur +3 base (plus de combats de 13 tours au level 1)
Défaite endurance penalty 50→25
XP monstres réduite (25→8 Têtard, 130→50 Golem) — quêtes = source principale
2026-03-24 16:34:37 +01:00
93b34b1f7b
feat: stat distribution UI + rest button + xpToNextLevel from backend
...
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 34s
Dashboard: stat distributor with +/- buttons when statPoints > 0,
rest button (+50% HP, -20 endurance) when HP < max,
XP bar uses xpToNextLevel from backend instead of local formula.
API: distributeStats + rest endpoints added to client.
2026-03-24 16:09:55 +01:00
214045c7ce
fix: level-up formula uses current level, add xpToNextLevel to API
...
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 33s
XP threshold was computed on level+1 (target), making early levels too
steep (283 XP for level 2 instead of 100). Now uses current level:
level 1→2 = 100 XP, level 2→3 = 283 XP, level 10→11 = 3162 XP.
Added xpToNextLevel field to character and combat responses so the
frontend can display accurate progress bars.
2026-03-24 16:02:51 +01:00
6df11f2860
feat(sprint5): audit fixes — transactions, indexes, stat distribution, rest, forge cost
...
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 35s
P0 — Race conditions fixées avec pessimistic_write transactions :
combat (double-spend endurance), forge (double upgrade),
craft (consumeMaterials atomique), equip (item swap).
Forge : coût or (50-1000) + endurance (15) ajouté.
Combat : item stat bonuses (force/agilite/intelligence/chance) appliqués.
P1 — Features manquantes :
POST /api/characters/stats — distribution stat points (avec lock).
POST /api/characters/rest — repos auberge (+50% HP, -20 endurance).
Vitalité : +10 HP max par point distribué.
P2 — Indexes DB ajoutés :
character_id sur character_items, character_materials, combat_logs,
craft_jobs, player_achievements, community_contributions.
Composite (characterId, materialId) sur character_materials.
period sur hall_of_fame. achievement_id sur player_achievements.
P3 — Cleanup : @nestjs/jwt et pg retirés de package.json.
2026-03-24 15:55:50 +01:00
708352be65
fix: remove api/ prefix from Sprint 4 controllers — global prefix already set
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 33s
2026-03-24 15:08:10 +01:00
ac88cbb5ab
fix: rewardTitle explicit varchar type for MySQL
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 32s
2026-03-24 15:04:21 +01:00
37d5e628c0
fix: activeTitle explicit varchar type for MySQL
CI/CD — Build & Deploy / Build & Deploy (push) Failing after 34s
2026-03-24 15:00:04 +01:00
8ee50805ea
feat(sprint4): achievements, community goals, hall of fame, profile
...
CI/CD — Build & Deploy / Build & Deploy (push) Failing after 37s
4 modules: achievement (15 succès, 5 catégories, 3 paliers), community
(objectifs collectifs + boosts globaux), halloffame (classement mensuel),
profile (titre actif + badges + % progression).
Event-driven: combat/forge/craft émettent des events via @nestjs/event-emitter.
Character entity: +activeTitle, +totalGoldEarned.
Seeds: 15 achievements + 3 community goals.
2026-03-24 14:51:53 +01:00
77052d9219
feat: add Twitch provider to login page — 4 providers like Origins
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 33s
2026-03-24 13:26:38 +01:00
8fbdcafa7b
fix: use localStorage for PKCE verifier — survives cross-site redirects
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 33s
2026-03-24 13:19:19 +01:00
8c6777c980
feat: PKCE auth + CI/CD deploy
...
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 1m2s
- Frontend: PKCE flow (oauth.ts, AuthCallback code exchange, 401 interceptor)
- Backend: token introspection via SuperOAuth (no more JWT secret)
- User model: superOauthId (unified) replaces oauthId+provider
- Cookies httpOnly session + refresh token
- POST /auth/refresh endpoint
- Gitea CI workflow (vps-runner pattern)
- DB_SYNC env var for initial schema creation
2026-03-24 13:01:14 +01:00
c1bf793234
feat(sprint3): migrations Sprint3Economy + fix data-source migrations path
...
- Create src/database/migrations/1742169600000-Sprint3Economy.ts
Tables : tetard_coins, tc_transactions, processed_events (IF NOT EXISTS)
- Fix migrations path : src/migrations/*.ts → __dirname/migrations/*{.ts,.js}
Fonctionne en ts-node (src/) et après build (dist/)
2026-03-17 09:39:20 +01:00
28ac5ef139
fix(migrations): data-source.ts — 14 entities (11 ajoutées pour CLI TypeORM)
2026-03-17 07:42:56 +01:00
3ff5a8a84b
fix(mysql): jsonb → json — type non supporté par MySQL
2026-03-17 07:38:18 +01:00
824ed41a14
fix(security): revert synchronize:true → prod-safe + .env.example placeholders
2026-03-17 07:26:53 +01:00
921873befd
fix(deploy): synchronize:true pour premier deploy MySQL — à revert après
2026-03-17 07:21:06 +01:00
b506adf034
fix(infra): PostgreSQL → MySQL + tsconfig.build exclude frontend/
2026-03-17 07:20:14 +01:00
49b8aa1211
feat(sprint3): EconomyModule TetardCoin + TwitchModule EventSub — migration + 36 tests
2026-03-17 07:10:45 +01:00
1fce52f05c
chore: archive v0 mars 2025 — GDD + roadmap pré-NestJS
2026-03-15 08:53:54 +01:00
23f7dd0f3c
feat(sprint3): items + forge + craft + loot — équipement, artisanat lazy-calc, forge risque GDD
2026-03-15 08:22:20 +01:00
6d1230d16a
feat: Sprint 2 — moteur de combat PvE TetaRdPG
...
Moteur combat stateless (POST /api/combat/start résout le combat complet).
Formules GDD : Mêlée/Distance/Magie × 1.5, critique (5% + Chance×0.2%), esquive (5% + Chance×0.1%).
5 monstres seedés (Têtard Vase → Golem de Boue, level 1–9).
Level up : XP → seuil atteint → level++, +5 statPoints.
Persiste combat_logs (jsonb rounds). Validé : victoire, défaite, 401, 400, 404.
2026-03-15 06:10:06 +01:00
da3237bf3f
feat: Sprint 1 — backend fondations TetaRdPG
...
Auth SuperOAuth (JWT validation + httpOnly cookie), entités users/characters/level_thresholds,
lazy calculation endurance, seed 100 niveaux, config prod-ready (trust proxy, helmet, CORS, rate limit).
Validé : health 200, auth flow, character CRUD, endurance lazy, 401 sans cookie.
2026-03-15 05:51:02 +01:00