Skip to content

Remove the import wizard's scene-to-map link step - #151

Merged
keyxmakerx merged 2 commits into
mainfrom
claude/project-thread-6hatzh
Oct 3, 2026
Merged

keyxmakerx merged 2 commits into
mainfrom
claude/project-thread-6hatzh

Conversation

@keyxmakerx

Copy link
Copy Markdown
Owner

Requested by Key Maker · project thread

Fixes #129
Security implication: none. Removes a step and its unused write path.
Consumer-verified: n/a. No Chronicle wire surface is added; the removed path posted a chronicle_type: "map" sync mapping that MapSync.onSyncMapping already ignored.
Foundry compatibility: n/a. Off-DOM only: node --check on the changed scripts, plus the template/step-index test below.
Mockup: Sign-offs card module129-wizard-maps-step, signed "Yes, remove it".

What this changes

Before: the import wizard had 8 steps. Step 7, Maps, paired each Foundry scene with a Chronicle map. Picking a map set a mapId flag on the scene and posted a sync mapping. Nothing reads either one: Chronicle maps open in Foundry as journal pages in the "Chronicle Maps" folder, created on connect (MapSync.onInitialSync).

After: the wizard has 7 steps, with Review last. The Maps panel, its plan items, change listeners and strings are gone. In the import runner, the link-map case goes, and so does the createMapping wrapper that only it called. The scan step still counts scenes in the world, and scenes linked by older versions keep their harmless flag.

Why

Issue #129. The step suggested a feature that no longer exists. Key Maker signed the before/after card on the Sign-offs page.

Test plan

  • node --test tools/test-*.mjs: 1272 tests, 1271 pass, 1 skipped, 0 fail (after bringing main in). Adds tools/test-import-wizard-steps.mjs (3 tests). It checks that the step list is connect … calendar, review, that template panels are numbered 0..6 to match, and that no link-map/mapLinkPlan remains.
  • node --check scripts/import-wizard.mjs scripts/sync-manager.mjs
  • Test-merged cleanly against open Retire the Chronicle Notes folder sync; set the old folder aside #135 and Security fix: keep GM-only page content out of saved Foundry journals #147.
  • Manual verification in Foundry: Sync Dashboard → Config → Import Wizard. The step strip shows 7 steps ending in Review; Next from Calendar (or the last enabled step) goes straight to Review; Review lists no "Link scene … to Chronicle map" lines.
  • CI passes

Tenet self-check

  • T-B1 security: removes a write path; adds none
  • T-B2 plugin isolation: module only
  • T-B3 production UI: signed before/after card; no new UI
  • T-B4 dual-audience docs: API-CONTRACT.md step reference updated

Generated by Claude Code

claude added 2 commits October 3, 2026 15:58
Chronicle maps open in Foundry as journal pages that appear on connect, so
pairing scenes with maps only set an unused scene flag. The wizard drops the
Maps step (7 steps now), its plan items and strings, and the import runner
drops the link-map case and the createMapping wrapper it alone used.

Fixes #129

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WURTwLzEdwXRLKXnnQtFCS
@keyxmakerx keyxmakerx self-assigned this Oct 3, 2026
@keyxmakerx
keyxmakerx marked this pull request as ready for review October 3, 2026 21:40
@keyxmakerx
keyxmakerx merged commit e3f5bac into main Oct 3, 2026
3 checks passed
@keyxmakerx
keyxmakerx deleted the claude/project-thread-6hatzh branch October 3, 2026 22:30
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.

Import wizard still links scenes to maps, a model maps no longer use

2 participants