From d6015dd44e3a9a6bb0d9c7495eca2a9fb3b14733 Mon Sep 17 00:00:00 2001 From: jay Date: Thu, 11 Jun 2026 08:50:48 -0400 Subject: [PATCH] Play: make Back step through the game screens (URL-driven views) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Hub → Game Selection → Game screens were internal $state with no history entries, so the device/browser Back button skipped straight out of /play. Now the screen is derived from the URL (?game=…&v=…) and forward moves use goto, so each screen is a real history entry: Back goes Game → Selection → Hub → site, matching the rest of the app. The in-app Back button uses history.back() so it mirrors the device button. Statuses refresh on every navigation (incl. Back). Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/src/routes/play/+page.svelte | 28 +++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/frontend/src/routes/play/+page.svelte b/frontend/src/routes/play/+page.svelte index ad6348f..b760d8c 100644 --- a/frontend/src/routes/play/+page.svelte +++ b/frontend/src/routes/play/+page.svelte @@ -1,13 +1,20 @@ Play · Upbeat Bytes