Skip to content

AG11 Agent Flow legends above the city, building and floor info, click to pin #419

Done

Description

@aMonteSl

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 at skylineY + 0.18, every legend card and the current-step label keep their bottom edge at skylineY + 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.md and test guide section.

Generated by Claude Code

Activity

  1. added
    tfm
    user-story
    area: ide
    area: extension
    on Dec 2, 2026
  2. self-assigned this
    on Dec 2, 2026
  3. aMonteSl commented on Dec 2, 2026

    @aMonteSl
    CollaboratorAuthor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: extensionarea: idestream: agent-flowtfmuser-story

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions