Skip to content

feat(viewer): focus a selected card's neighbours and peek at a type from the legend - #49

Merged
hyamero merged 4 commits into
stagingfrom
feat/viewer-focus
Oct 3, 2026
Merged

hyamero merged 4 commits into
stagingfrom
feat/viewer-focus

Conversation

@hyamero

@hyamero hyamero commented Oct 3, 2026

Copy link
Copy Markdown
Member

What changed

  • Selection focuses its path. Clicking a card keeps it, its direct neighbours and the connections between them lit, and dims the rest. Trace still widens this to everything upstream and downstream; a route still replaces it.
  • Legend peek. Hovering a type in the inspector's legend dims every other type until the pointer leaves. It's transient and never enters the URL.
  • No repeated title. The title card on the canvas is gone, in the viewer and in the site's embedded viewer (the component is deleted). The diagram's icon moves into the header, before the title.
  • H hides the toolbar anywhere, not only in focus mode, and the toolbar's hide button is always there. On phone widths it is hidden, as Focus already is, so the toolbar stays on one row.
  • Inspector layout. The gap between stage and inspector shrinks from 16px to 12px. When collapsed, the inspector is a compact square at the top instead of a full-height capsule.

Docs

  • Viewer docs: the focus/H paragraph and the Select, Trace and Find descriptions.
  • Key reference: the H entry.
  • Landing: the Select blurb.
  • README: the Explore line.

Tests

  • Unit tests for neighbour focus, legend peek and H outside focus.
  • The focus e2e now expects H to work outside focus mode.
  • Visual baselines regenerated in the Playwright Linux image.

@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
stackmap-site Ready Ready Preview Oct 3, 2026 3:11am UTC

@hyamero
hyamero merged commit 9a3a490 into staging Oct 3, 2026
7 checks passed
@hyamero
hyamero deleted the feat/viewer-focus branch October 3, 2026 03:20
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.3.0-rc.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

This branch was successfully deployed

1 active deployment
Preview — 17561e7c Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant