Horizontal game and Room action bars, with a confirmed Leave #247

Closed
opened 2026-10-05 08:19:15 +00:00 by root · 27 comments
root commented 2026-10-05 08:19:15 +00:00 (Migrated from gitlab.core-project.space)

Imported from GitHub amaurycoudr/chess-project#247, opened by @amaurycoudr on 2026-10-05 08:19 UTC.
Closed on GitHub on 2026-10-05 13:37 UTC as completed.


Parent

#243

What to build

The rail's actions become two horizontal bars, and leaving asks first.

  • Game actions, in a row under the status: Offer a draw, Resign, and Withdraw for the Player's own live Offer (moved out of the status block). Once the Game is over, they give way to a primary "Play again".
  • Room actions, in the rail header beside the Room code: Copy invite link, Offer a restart, Leave.
  • Icon-only buttons show their label in a tooltip on desktop and keep a visible label on mobile. The tooltip is a new design-system component on Base UI, like the Dialog.
  • Leave opens a confirmation modal for a seated Player: their Seat will be freed and they can't come back; anyone with the link can take it. A Spectator leaves directly.
  • The refused-action rule stays: an action the Player can't take is absent, not disabled.

Seam: RoomView through the room harness and MSW (view tests).

Acceptance criteria

  • Game actions sit in one horizontal row; Room actions sit in the rail header.
  • "Offer a restart" is a Room action; "Play again" at game end sends the same restart Offer.
  • Withdraw appears in the game bar while the Player's own Offer is live.
  • Each icon-only action has an accessible name and a tooltip.
  • A seated Player confirms before leaving; Cancel keeps them seated.
  • A Spectator's Leave acts immediately.
  • Layout works at phone width.
> _Imported from GitHub [amaurycoudr/chess-project#247](https://github.com/amaurycoudr/chess-project/issues/247), opened by [@amaurycoudr](https://github.com/amaurycoudr) on 2026-10-05 08:19 UTC._ > _Closed on GitHub on 2026-10-05 13:37 UTC as completed._ <!-- github-issue:247 --> --- ## Parent #243 ## What to build The rail's actions become two horizontal bars, and leaving asks first. - **Game actions**, in a row under the status: Offer a draw, Resign, and Withdraw for the Player's own live Offer (moved out of the status block). Once the Game is over, they give way to a primary "Play again". - **Room actions**, in the rail header beside the Room code: Copy invite link, Offer a restart, Leave. - Icon-only buttons show their label in a tooltip on desktop and keep a visible label on mobile. The tooltip is a new design-system component on Base UI, like the Dialog. - **Leave** opens a confirmation modal for a seated Player: their Seat will be freed and they can't come back; anyone with the link can take it. A Spectator leaves directly. - The refused-action rule stays: an action the Player can't take is absent, not disabled. Seam: `RoomView` through the room harness and MSW (view tests). ## Acceptance criteria - [ ] Game actions sit in one horizontal row; Room actions sit in the rail header. - [ ] "Offer a restart" is a Room action; "Play again" at game end sends the same `restart` Offer. - [ ] Withdraw appears in the game bar while the Player's own Offer is live. - [ ] Each icon-only action has an accessible name and a tooltip. - [ ] A seated Player confirms before leaving; Cancel keeps them seated. - [ ] A Spectator's Leave acts immediately. - [ ] Layout works at phone width.
root commented 2026-10-05 08:19:15 +00:00 (Migrated from gitlab.core-project.space)

GitHub issue relations, imported as "related" links (GitLab CE has no sub-issues or blocking links).

  • Parent (sub-issue of): #243
  • Blocked by: #245
  • Blocking: #248
> _GitHub issue relations, imported as "related" links (GitLab CE has no sub-issues or blocking links)._ <!-- github-relations --> - Parent (sub-issue of): #243 - Blocked by: #245 - Blocking: #248
root (Migrated from gitlab.core-project.space) closed this issue 2026-10-05 13:37:20 +00:00
root commented 2026-10-13 08:39:15 +00:00 (Migrated from gitlab.core-project.space)

mentioned in issue #248

mentioned in issue #248
root commented 2026-10-13 08:40:52 +00:00 (Migrated from gitlab.core-project.space)

mentioned in issue #243

mentioned in issue #243
root commented 2026-10-13 08:40:53 +00:00 (Migrated from gitlab.core-project.space)

mentioned in issue #245

mentioned in issue #245
root commented 2026-10-13 08:41:53 +00:00 (Migrated from gitlab.core-project.space)

marked this issue as related to #243

marked this issue as related to #243
root commented 2026-10-13 08:41:55 +00:00 (Migrated from gitlab.core-project.space)

marked this issue as related to #245

marked this issue as related to #245
root commented 2026-10-13 08:41:55 +00:00 (Migrated from gitlab.core-project.space)

marked this issue as related to #248

marked this issue as related to #248
root commented 2026-10-13 10:19:34 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 01b782556e

mentioned in commit 01b782556e072b9295ac1cb468e5710d1e8df6f5
root commented 2026-10-13 10:19:34 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 5f38b0609c

mentioned in commit 5f38b0609c9cba8d70e4c38d7e99a4e78a32388b
root commented 2026-10-13 10:19:35 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit cf9abbcd3b

mentioned in commit cf9abbcd3b738f8bb4b1aad60fbcdc44d648c39a
root commented 2026-10-13 10:19:35 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit b9ca90ec99

mentioned in commit b9ca90ec997a77f8f1b29295526cb3d68911bab7
root commented 2026-10-13 10:19:37 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 89de47ad0b

mentioned in commit 89de47ad0b97858f5fc069ea2f6762bd827ef298
root commented 2026-10-13 10:19:37 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 742485aad6

mentioned in commit 742485aad67ffaf4cf549a5b95729971dd15c32e
root commented 2026-10-13 10:19:38 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 6ddbc9cb98

mentioned in commit 6ddbc9cb983381bd698b7f1a154a536315891867
root commented 2026-10-13 10:19:39 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 4a8e569074

mentioned in commit 4a8e569074b5bbbdfb47b7ab48c962e05537149d
root commented 2026-10-13 10:19:40 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 67c55800e1

mentioned in commit 67c55800e13da8872ae469bbbe4f9901a9ed4a2d
root commented 2026-10-13 10:19:42 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit b5dba518fa

mentioned in commit b5dba518faeaf114ca90800250a1e0da87969af2
root commented 2026-10-13 10:19:42 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 50ae7bfc21

mentioned in commit 50ae7bfc2182c03a8d8a9c9fbafc88926a477796
root commented 2026-10-13 10:19:42 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit d4276c9230

mentioned in commit d4276c92304940eaf2768b181853a98a0c589951
root commented 2026-10-13 10:19:43 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 0b91a43c04

mentioned in commit 0b91a43c04a1f8c9713b092cc292d4f080eabcb3
root commented 2026-10-13 10:19:45 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit b700d4d0cb

mentioned in commit b700d4d0cb3420d8887a7ac9fb0dc5224cf873a6
root commented 2026-10-13 10:19:45 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit c7aa59f862

mentioned in commit c7aa59f8628b927e2a577810f04be457cb0bd72d
root commented 2026-10-13 10:19:45 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 442862f706

mentioned in commit 442862f706db0e0fefec5ed81045bedb9fcb45af
root commented 2026-10-13 10:19:46 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 39471b1454

mentioned in commit 39471b145429983fe0f687894219547dd51215e0
root commented 2026-10-13 10:19:46 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 9ddc6437a5

mentioned in commit 9ddc6437a5536dfb4f630540b12b5d15a0487941
root commented 2026-10-13 10:19:47 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit d0117a10db

mentioned in commit d0117a10db39253c319cba31c482ace7d3d0d891
root commented 2026-10-13 10:19:47 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 467495aa8e

mentioned in commit 467495aa8ec05e7c41c922a292f9b544738e3d94
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
amaurycoudr/chess-project#247
No description provided.