Repository navigation
Done
Labels
area: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesarea: ideThe Electron + Monaco IDE (apps/ide)stream: agent-flowtfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Description
As a developer watching an AI agent work in Agent Flow,
I want the building and floor legends to float above the whole city, show the building and the pointed floor together, and stay pinned when I click,
so that I can read what a file and a function hold without the card hiding the buildings around it.
Part of epic #319. Proposed by Adrián (2-dec) after testing the function floors (#413): the hover card sat 0.3 m over the roof of the building, in the middle of the skyline, and covered its neighbours. Sibling: the worker carried by a UFO that cruises between the skyline and the legends (same day).
Design
- Sky layers (runtime part
skyLayers.js):skylineY= highest roof of the city; the UFO cruises atskylineY + 0.18, every legend card and the current-step label keep their bottom edge atskylineY + 0.45. The card joins its building with a thin leader line and a marker on the roof (or on the pointed floor). - Same card style as today (common tooltip: dark panel, accent frame and bar, metric grid), richer content: a building section (path, LOC, delta, reads/writes/searches, turns, dependents, scope, floors count) and, when a floor is pointed, a floor section (function name, lines, floor n/N, reads/writes of the floor, new or not).
- Hover shows the card as now. Click on a building (or floor) pins its card; the pinned card stays while hovering elsewhere (hover shows a second, transient card only for another building). Click on the pinned building again unpins it; clicking another building moves the pin.
- Shared runtime (
templates/components/codexr/agent-flow), served by the same core server to both hosts: no host-specific code.
Acceptance criteria
- VS Code extension and Code-XR IDE: the hover card's bottom edge is above the tallest building of the city, never inside the skyline, with a leader line to the pointed building/floor.
- The current-step label floats at the same altitude band.
- Pointing a floor shows the building data and the floor (function) data in one card; pointing the building's plain block shows the building data only.
- Click pins the card; hover elsewhere does not remove it; a second click on the same building unpins it; a click on another building moves the pin.
- The pin survives playback steps and seeks (values refresh at the playhead) and is dropped when the session closes.
- Desktop mouse and XR controller ray both work.
- Harness checks with screenshots; docs
docs/agent-flow/legends.mdand test guide section.
Generated by Claude Code
Metadata
Metadata
Assignees
Labels
area: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesarea: ideThe Electron + Monaco IDE (apps/ide)stream: agent-flowtfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Activity
Agent Flow: legends above the city, building + floor cards, click to …
Agent Flow: legends above the city, building + floor cards, click to …
Agent Flow: legends above the city, building + floor cards, click to …
Agent Flow harness and macOS test cleanup on v1.3.0 (#428)
aMonteSl commentedon Dec 2, 2026
Manually tested by Adrián on 2-Dec in the Code-XR IDE scene: hover card above the skyline, floor card, click to pin, stacked cards, pin survives play/seek, click to unpin. Follow-up (cards a bit too high) is tracked separately.
Generated by Claude Code
Agent Flow legends: lower band, side-by-side cards, see-through keeps…
Agent Flow test guide: legends now sit beside each other (#419)
Agent Flow legends: numbers at the playhead (LOC and delta follow the…
Agent Flow legends: lower band, side-by-side cards, see-through keeps…
Agent Flow legends: numbers at the playhead (LOC and delta follow the…
Agent Flow legends: lower band, side-by-side cards, history numbers, …
Agent Flow legends: lower band, side-by-side cards, history numbers, …
Agent Flow legends: the floor card stands beside the building card (#419
Agent Flow legends: the floor card stands beside the building card (#419
Agent Flow legends: the floor card stands beside the building card (#419
Agent Flow legends: the floor card stands beside the building card (#419