Skip to content

feat(frontend): game clocks, resignation and navigation cleanup - #1448

Open
Muhammadjazuli wants to merge 1 commit into
OpenKnight-Foundation:mainfrom
Muhammadjazuli:feature/game-clocks-resign-and-navigation
Open

Muhammadjazuli wants to merge 1 commit into
OpenKnight-Foundation:mainfrom
Muhammadjazuli:feature/game-clocks-resign-and-navigation

Conversation

@Muhammadjazuli

Copy link
Copy Markdown

Summary

Adds server-driven game clocks and proper resignation, fixes dead sidebar
links, and provides the missing navigation entries plus a 404 page.

Closes #1357
Closes #1358
Closes #1359
Closes #1360

…d 404 page

- PlayGameEngine now initialises both clocks from the game's time control
  (?minutes=, default 10) instead of a hard-coded 600s, keeps treating server
  clock updates as authoritative, and ends the game with a loss on time when a
  flag falls (FE-116 / OpenKnight-Foundation#1357)
- Resigning sends an explicit `{type:"resign"}` message before disconnecting so
  the server completes the game; the opponent is shown "won by resignation"
  via the new hook `opponentResigned` flag (FE-117 / OpenKnight-Foundation#1358)
- Sidebar (desktop and mobile) now links to Tournaments, Puzzles, Companions,
  Guilds and Stake with active-route highlighting, and the dead /news, /profile
  and /support links were removed (FE-118 / OpenKnight-Foundation#1359, FE-119 / OpenKnight-Foundation#1360)
- Add a branded app/not-found.tsx and an app/guilds index so every sidebar
  entry resolves (FE-118 / OpenKnight-Foundation#1359, FE-119 / OpenKnight-Foundation#1360)

Closes OpenKnight-Foundation#1357
Closes OpenKnight-Foundation#1358
Closes OpenKnight-Foundation#1359
Closes OpenKnight-Foundation#1360
@drips-wave

drips-wave Bot commented Oct 17, 2026

Copy link
Copy Markdown

@Muhammadjazuli Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment