feat(map): review comments in code cards, closable cards, and faster level changes
On a pull request's map, a reviewer comments on a line of a changed file from its code card, and the review threads show under their lines. Each card has a close button. Scrolling over the Changes list scrolls the list, not the map. A change of level repaints less, and a shimmer covers one that takes longer than 150 ms.
3 decisions
Post line comments from the map's code cards with the same form and action intents as the Files tab.
Why
- The reviewer asked to comment while reviewing on the map.
- One form keeps mentions, agent assignment and validation the same in both places.
Paths considered
- Chosen
- link-to-files-tabIt takes the reviewer away from the trace they built.
Assumes
- Only lines of files the pull request changes can take a comment, as the backend already requires.
Touches
line-composer.tsxcode-card.tsxpull-map.tsx
Promote the map layer to the GPU only while it animates, and drop block shadows at the two outer levels.
Why
- A trace showed raster work, not script, made a change of level slow.
- A layer promoted for good caused clipped chrome and stray rectangles, so it rests unpromoted.
Assumes
- The first move from Architecture to Package still costs about one second in software rendering; a shimmer covers it.
Touches
map-view.tsxapp.css
Let a scroll over the map's chrome scroll that chrome, not zoom the map.
Why
- Scrolling the Changes list zoomed the map under it.
Touches
map-view.tsx
8 files changed · +232 −86
apps/frontend/app.css+10 −1
apps/frontend/components/code-map/code-card.tsx+44 −7
apps/frontend/components/code-map/code-navigator.tsx+10 −2
apps/frontend/components/code-map/map-states.tsx+5 −4
apps/frontend/components/code-map/map-view.tsx+16 −1
apps/frontend/components/line-composer.tsx+66 −0
apps/frontend/components/pierre-file.tsx+4 −61
apps/frontend/routes/pull-map.tsx+77 −10