Repository navigation
Commit 0f55187
committed
fix(diagrams): a saved SVG has no links to tab to — a link is something only the chat can open
Not from the review: found while fixing what it said about the picture and the
linked nodes inside it.
A linked node is a focusable `role="link"` group carrying `data-lc-link`. In
the chat, a click or Enter asks the host to open the file. "Save as SVG" wrote
the same attributes into the file, where nothing can answer them: opened in a
browser, the picture had tab stops that announced "Open agent.js at runAgent,
link" and did nothing.
A standalone build — the one made for a file — now leaves the four attributes
off. The node keeps what a picture can use: its file icon, and the tooltip
with the path. The picture in the chat and its full-size view are unchanged.
The two arch snapshots lose exactly those attributes on their two linked nodes
and nothing else; the other four snapshots do not move. diagramScene walks the
standalone tree for all four, and checks both nodes are still marked as files.1 parent 51e4490 commit 0f55187
4 files changed
Lines changed: 17 additions & 4 deletions
File tree
- extensions/levelcode-ai
- diagram
- test
- fixtures/diagrams/snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
160 | 171 | | |
161 | 172 | | |
162 | 173 | | |
| |||
0 commit comments