Skip to content

Studio map: the scan screen is one line and a recommended Draft the map - #830

Open
danielrispler wants to merge 3 commits into
mainfrom
map-scan-calm
Open

danielrispler wants to merge 3 commits into
mainfrom
map-scan-calm

Conversation

@danielrispler

@danielrispler danielrispler commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

The free scan's panel (#753) put every loose folder's row (a part picker, Add and Ignore) above Draft the map. On timburr that was 36 rows and 75 buttons. The panel was 3,373 px tall and scrolled sideways, and the button sat at its foot. The edits are optional (story 10), so they now wait in a closed fold.

 <aside.map-scan-panel>
   No map yet
-  timburr has no system-map.json on origin/main.
-  A map names your parts and their rules; changes light them up.
-  A free scan of its folders proposes these 13 parts, with the links its imports show. Nothing is written until you draft.
-  Dart, JavaScript and Python: links computed. Kotlin, SQL and Shell: no reader yet
-  Fix the grouping first if you like; none of it is needed. Press a plate to merge or split it.
-  Copies and vendored code / Loose files (36 rows) / Loose tests / Ignored folders
-  Draft the map · About 1 minute · Uses your Claude Code plan
-  Or give this to your own agent in the project: <pre prompt>
+  Claude can draft it from these 13 parts.
+  <details> Adjust parts first · 36 loose folders        (closed; open state kept per project)
+    Press a plate… · languages line · the four edit groups
+  Draft the map · Recommended · about 1 minute          (sticky at the panel's foot while the fold is open)
+  <details> Use your own agent instead → <pre prompt>   (without claude: "Give the prompt below to your own agent.", prompt open first)

The note that it runs on the Claude Code plan moved to the button's hover.

  • Long folder paths in code now wrap. Before, the global code { white-space: nowrap } widened the panel.
  • The fold's open state is set on the summary's press, not only on toggle, so a redraw between the two cannot close it.

Evidence

  • Before (timburr, live): the panel's scrollHeight was 3373 against a clientHeight of 680, and its scrollWidth was 480 against a clientWidth of 369. Draft the map sat about 3,000 px down.
    After: the panel is the title, one line, a fold, Draft the map with "Recommended", and a fold, in about 180 px (snap mapScan).
  • Snap mapScan, mapScanNarrow, mapScanMerge, mapScanIgnore, mapScanParent, mapScanNoClaude and mapScanSwitch pass. The edit fixtures now open the fold first, as a person would, and fail if it does not start closed.
  • npm run check passes: node tests 847 pass, 0 fail.

Correctness pass (a reviewer agent; it ran the six scan snaps and found no correctness bug). Fixed from it:

  • openFolds was global, so an open fold stayed open on another project's scan. It is now keyed by project.
  • A redraw between the press and the toggle event could close the fold again. The press now sets the state.
  • "Or" appeared twice in the prompt fold.
  • "Press a plate…" was hidden in the fold. It is back outside.
  • The fold's children had no spacing between them.

Outside review

skipped: no risk match

Docs: docs/studio/behaviour/map.md (the scan screen paragraph) says the new text.

Merge Danger

Door: two-way

Blast Radius: scan-screen

The change is presentation only, on the free scan's panel. No server or stored data changes.

🤖 Generated with Claude Code

danielrispler and others added 3 commits November 28, 2026 19:02
…p stays in view

On a repository with many loose folders (timburr: 36 rows, 75 buttons) the scan panel was 3,400 px tall and scrolled
sideways, with Draft the map at its foot. The edits (ignore copies, loose files and tests, ignored folders) now wait in
a closed "Adjust the grouping (optional)" fold with the loose-folder count; open, Draft the map keeps to the panel's
foot. With claude found the copy-prompt sits in a closed "Or use your own agent" fold. Long folder paths wrap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… stays out of the fold

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The panel was title, four lines of prose, a languages line and a hint before the button. It is now the title, one
line ("Claude can draft it from these N parts."), Draft the map with "Recommended · about N minutes", and two closed
folds: "Adjust parts first" (the plate hint, the languages line and the edits) and "Use your own agent instead".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@danielrispler danielrispler changed the title Studio map: the scan screen folds its optional edits, so Draft the map stays in view Studio map: the scan screen is one line and a recommended Draft the map Nov 28, 2026
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