Skip to content

Studio map: the scan screen, grey plates, lines, Draft the map and the prompt #760

Done

Description

@danielrispler

Parent

#753

What to build

A git repository with no map opens on the free scan: its proposed parts as grey plates with their computed import lines, the languages line, Draft the map, and the copy-prompt for another agent. Nothing is written and no token is spent. #753, "The free scan" ("Lines", "Grey plates") and user stories 4-6 and 10-13.

Acceptance criteria

  • The server builds the scan (ticket 2) and its lines through check_text in memory and returns them to the page; a page command serves it.
  • The canvas draws the skeleton as plates in a muted "draft" state, with no fog, badges or footprints, and the computed edges as lines.
  • One line names the languages found and which have a reader ("TypeScript and Go: links computed. Ruby: no reader yet").
  • Draft the map carries a time hint scaled by the scan's part count and "Uses your Claude Code plan", no dollars; it is muted with a one-line reason when claude is not found, and the copy-prompt then leads.
  • The copy-prompt carries the skeleton and tells the agent to write system-map.json at the main checkout and run npx plotkeeper map check until it passes.
  • Snap fixtures: the scan screen with plates and lines, and muted Draft the map.
  • docs/studio/CONTEXT.md gains First map and Map draft (the drafted entries in decisions.md); docs/studio/behaviour/map.md describes the screen; system-map.json follows the new modules.

Reading

Touches

  • Files: new server/src/map_scan.rs, server/src/api.rs, new ui/map-scan.ts, ui/map.ts, ui/types.ts, ui/map-model.ts, ui/style.css, scripts/snap/fixtures-map.ts, docs/studio/CONTEXT.md, docs/studio/behaviour/map.md, system-map.json
  • Session: auto mode
  • Route: strong · effort high — a new layout selection (scan screen vs map vs empty) and a muted plate state in the redraw

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions