diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-06-08 15:03:49 -0700 |
|---|---|---|
| committer | Morgan Lunt <morganl@anthropic.com> | 2026-06-09 08:48:04 -0700 |
| commit | 874596818685794ad06efcf5db115acaf938da68 (patch) | |
| tree | b53d96af7f976281db7ce1dcc340d1d16affc85a /plugins/plugin-dev/skills/plugin-settings/references | |
| parent | 1c4a5cfded2cb2e4c8c5420ebd2f3974eb3fdd51 (diff) | |
code-modernization: harden topology viewer and template injection
Fixes from an adversarial review of the new viewer:
- pin d3 to 7.9.0 and load it via dynamic import with an explicit
error panel when the CDN is unreachable (previously a blocked CDN
produced a silent dark page — a real concern for restricted networks)
- coerce ids/names/loc at intake: a single missing name or non-numeric
loc previously threw inside the render loop or propagated NaN through
the pack layout, blanking the canvas with no error
- normalize flows/steps/edges defensively (null entries, missing steps,
numeric ids vs string lookups)
- mirror the level-of-detail reveal rule in the hit test so clicks
can't select nodes that aren't drawn
- scope the Escape shortcut so clearing the search box doesn't reset
the viewport; set zoom clickDistance(4) so trackpad jitter doesn't
swallow selection clicks
- round canvas backing-store size (fractional devicePixelRatio caused
a reallocation every frame on 125%/150% display scaling)
- modernize-map: use braced ${CLAUDE_PLUGIN_ROOT} so substitution
actually happens, assert the injection marker exists in the template,
and correct the documented failure mode
Diffstat (limited to 'plugins/plugin-dev/skills/plugin-settings/references')
0 files changed, 0 insertions, 0 deletions
