Skip to content

Prepare The Card Place and TheWorkBench for the move to TheIdeaPlace - #209

Merged
kellylford merged 2 commits into
mainfrom
prepare-move-to-theideaplace
Oct 10, 2026
Merged

kellylford merged 2 commits into
mainfrom
prepare-move-to-theideaplace

Conversation

@kellylford

Copy link
Copy Markdown
Collaborator

TheWorkBench is about to move from kellylford to the TheIdeaPlace org (hub: kellylford/The-Idea-Place-Projects#9). Its Pages site moves with it, from kellylford.github.io/TheWorkBench/ to theideaplace.github.io/TheWorkBench/, so two things would break without this PR.

1. Multiplayer. Every room service checked Origin against https://kellylford.github.io only. All five wrangler.toml files now allow both addresses, and merging redeploys them through the deploy workflows. That way multiplayer works before, during and after the move.

2. Players' saved settings. localStorage belongs to an origin, so settings saved at the old address would be left behind.

  • The new forwarding site at kellylford.github.io (kellylford/kellylford.github.io) still runs at the old origin, so it can read the games' settings keys. It passes them on in the link as #tip-settings=….

  • The new shared/js/settings-import.js runs first on each game and imports them:

    • only the six known *.settings.vN keys;
    • only values that are JSON text;
    • never over a setting already saved at the new address.

    It then clears the address bar.

  • It's tested in shared/tests/settings-import.js (6 checks), which is added to the card games workflow.

3. Addresses. Bug-report links (BUG_REPO), share links (GAME_URL), the App Store listing URLs, the 404 page, the ClaudeSpeak and mlb pages, workflow comments and READMEs now point at TheIdeaPlace/TheWorkBench and theideaplace.github.io/TheWorkBench.

Local runs: wiring, engine-contract, reload, no-control-characters and settings-import all pass.

🤖 Generated with Claude Code

kellylford and others added 2 commits October 10, 2026 14:54
- Room services accept https://theideaplace.github.io as well as the old
  origin, so multiplayer keeps working across the move.
- shared/js/settings-import.js imports a player's settings carried over
  from kellylford.github.io by the forwarding site, once, for the games'
  own keys only, never over settings already saved. Tested.
- Repo and site addresses point at TheIdeaPlace/TheWorkBench and
  theideaplace.github.io/TheWorkBench.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r forks together

The repository is moving to the TheIdeaPlace org, so every game's
addresses and settings import change at once; splitting it would leave
main pointing some games at the new address and some at the old.

Fork-guard: both

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kellylford

Copy link
Copy Markdown
Collaborator Author

Why this changes the stable games and their multiplayer forks together (Fork-guard: both): it's a repository-wide move. Every game's share links, bug-report links, settings import and allowed origins change at once for the TheIdeaPlace move. Splitting it would leave main with some games pointing at the new address and others at the old one.

The other red check is the Cribbage cut-for-deal fairness test (10241 to 9759). That's statistical noise; this PR changes no game logic. I'll re-run it.

@kellylford
kellylford force-pushed the prepare-move-to-theideaplace branch from 4ae033d to 2c61325 Compare October 10, 2026 19:54
@kellylford
kellylford merged commit 72ca405 into main Oct 10, 2026
8 checks passed
@kellylford
kellylford deleted the prepare-move-to-theideaplace branch October 10, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant