Commit Graph

92 Commits

Author SHA1 Message Date
Michess
aeb5fe313e feat: add time controls, correspondence games, and tournament mode
**Zeitmodi (Blitz/Rapid):**
- 5, 10, 30 Min Zeitkontrolle bei Spielerstellung
- Server-seitige Uhren: Zeit wird bei jedem Zug abgezogen
- Timeout-Erkennung via claimTimeout Socket-Event
- Schachuhr-Anzeige in GamePage (rot bei < 30s)
- Turnierspiele erhalten automatisch Zeitkontrolle

**Tagespartien (Correspondence):**
- Neue DB-Tabelle correspondence_game
- REST API: erstellen, beitreten, Zug machen, aufgeben
- Seite /correspondence: Liste aktiver Tagespartien
- Seite /correspondence/[code]: Spielen mit interaktivem Brett
- Einladungslink teilen, Gegner tritt via Link bei

**Turniermodus (Round-Robin):**
- Neue DB-Tabellen: tournament, tournament_player, tournament_round
- Round-Robin Paarungen mit Circle-Methode
- Turnier erstellen: /tournament/create
- Turnierliste: /tournament
- Turnierseite /tournament/[code]: Standings, Runden, Spiele
- Automatische Aktivisierung der nächsten Runde
- Turnierspiele werden als normale activeGames erstellt
- Ergebnisse aktualisieren Punkte automatisch

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 09:44:35 +02:00
Michess
09e5271dfb feat: redesign homepage layout and fix invite links
- Homepage: Grid-Layout mit 3 Karten (Spiel erstellen, KI, Freunde/Beitreten)
  statt vertikalem Stack mit Dividers
- CreateGame: kompakteres Styling, auf Deutsch, in Primary-Card integriert
- Einladungslink: APP_URL statt hardcoded ches.su in GamePage und CopyLink
- JoinGame: URL-Parsing für beliebige Domains (nicht nur ches.su)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 07:49:59 +02:00
Michess
157fcf8fa4 fix: RefreshButton handle async onRefresh outside startTransition 2026-04-13 14:01:38 +02:00
Michess
39592bd579 fix: convert PublicGames to client component to avoid async server component in client tree 2026-04-13 13:45:43 +02:00
Michess
694177c108 feat: Vollständiges Rebranding zu MiChess, Copyright Tom Misch
- Alle @chessu/ → @michess/ (Package-Namen und Imports)
- Theme-Namen chessuDark/Light → michessDark/Light
- Alle Display-Texte: chessu/Michess → MiChess
- Autor: dotnize → Tom Misch
- Copyright: Nathaniel Tampus → Tom Misch
- README komplett neu (Deutsch, MiChess-spezifisch)
- CONTRIBUTING.md neu
- FUNDING.yml + CODE_OF_CONDUCT.md entfernt
- Fork-Hinweis auf chessu bleibt im README erhalten (MIT-Pflicht)
- pnpm-lock.yaml entfernt (wird beim Build neu generiert)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 10:47:16 +02:00
Michess
7dac042d73 feat: Michess – Initiales Setup auf Basis von chessu
- Rebranding: chessu → Michess (Header, Footer, Metadata, Session-Cookie)
- Stockfish KI-Integration: 6 Schwierigkeitsgrade (Anfänger bis Meister)
- Admin-Panel: Nutzerverwaltung, Sperren/Entsperren, Git-Pull-Update
- Freundessystem: Anfragen, Freundesliste, Nutzersuche
- DB-Schema: role, banned, friend_request, friendship Tabellen
- Docker: NAS-optimiertes docker-compose.yml mit PostgreSQL Healthcheck
- Stockfish binary via apk im Alpine-Image installiert
- .env.example für einfaches Deployment
- scripts/update.sh für manuelles NAS-Update
- Brain.md + Plan.md als Projekt-Gedächtnis

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 10:02:52 +02:00
Nathaniel Tampus
d5008a88fa format 2024-01-15 19:55:20 +08:00
Nathaniel Tampus
f909419f8e update links 2023-11-23 11:49:52 +08:00
Nathaniel Tampus
a8c8b2e199 update links & names 2023-11-20 17:28:18 +08:00
Nathaniel Tampus
8a003bf236 update links 2023-09-29 23:13:37 +08:00
Nathaniel Tampus
8176ad36be update urls 2023-08-25 18:55:25 +08:00
Nathaniel Tampus
db3b844802 link pre-alpha badge to roadmap 2023-07-27 16:27:30 +08:00
Nathaniel Tampus
3e7638b78d update label to pre-alpha 2023-07-10 17:01:06 +08:00
Nathaniel Tampus
2b57b3f116 update links 2023-07-01 19:40:14 +08:00
Nathaniel Tampus
3a03c37e1d cleanup 2023-05-06 20:19:53 +08:00
Nathaniel Tampus
970989579b use endReason to check if game has ended 2023-05-01 21:11:02 +08:00
Nathaniel Tampus
da7b4c40a3 organize imports 2023-05-01 15:15:49 +08:00
Nathaniel Tampus
c1fb2e50cd show light theme toggle by default 2023-04-10 16:54:09 +08:00
Nathaniel Tampus
2b4fb67e1f add border separators for header & footer 2023-04-09 15:50:12 +08:00
Nathaniel Tampus
6d2263432a save theme preference to localStorage 2023-04-09 14:03:04 +08:00
Nathaniel Tampus
8940a1bf3b logo & icon adjustments 2023-04-09 11:50:34 +08:00
Nathaniel Tampus
24861fec36 remove game from activeGames immediately on end 2023-04-09 02:41:46 +08:00
Nathaniel Tampus
d6bcb286e2 update auth tabs style 2023-04-07 14:57:30 +08:00
Nathaniel Tampus
fbeefbc3c4 add user profile page 2023-04-07 14:20:13 +08:00
Nathaniel Tampus
2114fbe9e6 don't update turn title if game is over 2023-04-07 12:44:05 +08:00
Nathaniel Tampus
5a00210a4d update anchor tags rel attribute 2023-04-07 12:37:47 +08:00
Nathaniel Tampus
a2bae7201d rename "get" util functions to "fetch" 2023-04-07 12:09:10 +08:00
Nathaniel Tampus
8d7ad6161f colored & linked name for registered users 2023-04-05 23:37:07 +08:00
Nathaniel Tampus
baebc04510 add profile & settings buttons to user modal 2023-04-05 21:30:15 +08:00
Nathaniel Tampus
d0f316c59b move update user form to settings page 2023-04-05 21:04:14 +08:00
Nathaniel Tampus
d98efb39dc rename Navbar to Header 2023-04-05 20:10:26 +08:00
Nathaniel Tampus
1636e1131e viewable archived games 2023-04-02 15:22:01 +08:00
Nathaniel Tampus
c7f3abf29c util functions for fetching archived games 2023-04-02 12:36:48 +08:00
Nathaniel Tampus
75eb21c337 save finished games to db 2023-04-02 00:00:09 +08:00
Nathaniel Tampus
8d19c88c83 rename reason to endReason 2023-04-01 20:58:29 +08:00
Nathaniel Tampus
ae86dbbc77 center elements for claiming abandoned game 2023-03-26 01:13:50 +08:00
Nathaniel Tampus
d469cdff56 allow player to claim win/draw for abandoned games 2023-03-25 19:18:01 +08:00
Nathaniel Tampus
4af8dc6d13 square button for refresh public games 2023-03-25 11:13:06 +08:00
Nathaniel Tampus
626fc9afca use normal button size for join 2023-03-22 15:50:04 +08:00
Nathaniel Tampus
3981ac4dc3 Merge branch 'main' into auth 2023-03-22 15:43:11 +08:00
Nathaniel Tampus
3a059d8874 fix for joining links with no http/https 2023-03-22 15:40:10 +08:00
Nathaniel Tampus
e03052b00e fix join game from url 2023-03-22 14:58:42 +08:00
Nathaniel Tampus
30977baa5b fix join game from url 2023-03-22 14:57:40 +08:00
Nathaniel Tampus
5e2d676450 update auth tab styles for better contrast 2023-03-20 19:18:30 +08:00
Nathaniel Tampus
86f4f9d42f Merge branch 'main' into auth 2023-03-20 18:53:35 +08:00
Nathaniel Tampus
4c18beeb3b accessibility & seo improvements 2023-03-20 18:41:24 +08:00
Nathaniel Tampus
dc2f218115 disallow underscores for names 2023-03-19 21:24:41 +08:00
Nathaniel Tampus
802a03fa11 use .after FEN for move navigation 2023-03-19 21:18:16 +08:00
Nathaniel Tampus
f564298c93 login and register tabs, initial user dashboard 2023-03-19 20:53:59 +08:00
Nathaniel Tampus
e055c1f807 update "copied to clipboard" badge layout 2023-03-15 20:26:54 +08:00