From: Javier Sagredo Date: Wed, 6 May 2026 22:07:21 +0000 (+0200) Subject: Rename Pin to Focus in the side-panel UI X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=aeb24291f072386ca32c97d3a63d775906064331;p=classgraph.git Rename Pin to Focus in the side-panel UI Side-panel button is now "🎯 Focus" / "🎯 Unfocus" (was "📌 Pin" / "📌 Unpin"). Hint text, help legend, counts line, and README all updated. Internal identifiers (focusSet, pinClass, the panel-btn.pin CSS class, data-action="toggle-pin") stay as-is — they're invisible to users and changing them invites bigger churn. Co-Authored-By: Claude Opus 4.7 (1M context) --- diff --git a/README.md b/README.md index 046d0fe..ae4d0e9 100644 --- a/README.md +++ b/README.md @@ -55,9 +55,10 @@ When you point the plugin at a target package and run the viewer, you get: in this program). Click any name to navigate. - **Search** (top right or `/`) for classes and families, with badges for `external` and `family` entries. -- **Pin** classes from the side panel to focus the classes view to just - the pinned classes plus their immediate superclass neighbourhood - (xdot-style narrowing). Click a ghost neighbour to expand by one hop. +- **Focus** the classes view on a small set of classes from the side + panel. The graph collapses to just the focused classes plus their + immediate superclass neighbourhood (xdot-style narrowing). Click a + ghost neighbour to expand the focus by one hop. - **Mute** noisy ambient classes (`Show`, `Eq`, `Ord`, `NoThunks`, `Typeable`…) so they vanish everywhere. - Per-class **instance visibility filter** and per-family **type-instance @@ -260,9 +261,9 @@ The merger: | **Double-click** a family | Drill into its family view | | **Click** a class name in the side panel | Navigate to that class (highlight + center) | | **Search** (`/` or top-right input) | Locate a class/family in the classes view | -| **Pin** (side panel button) | Focus classes view to pinned classes + one-hop neighbours | +| **Focus** (side panel button) | Narrow the classes view to focused classes + one-hop neighbours | | **Mute** (side panel button) | Hide a class everywhere | -| **Click** a ghost (focus-mode neighbour) | Pin it and expand the focus subgraph | +| **Click** a ghost (focus-mode neighbour) | Add it to the focus and expand the subgraph | | **Back arrow** (topbar) / browser back | Return to the classes view | | **Fit** button or `F` | Re-frame the current view | | **Help** (bottom-right) | Foldable legend of every node and edge style | diff --git a/data/viewer.html b/data/viewer.html index b99b056..c84f951 100644 --- a/data/viewer.html +++ b/data/viewer.html @@ -38,7 +38,7 @@
InstClass instance
f a=bType family instance (type instance F … = …)
ExtExternal class (referenced but not defined here)
-
ClsGhost — one-hop neighbour in focus mode (click to pin)
+
ClsGhost — one-hop neighbour in focus mode (click to add it to the focus)
InstOrphan instance (red dashed border)

Classes-view edges

@@ -60,7 +60,7 @@
Click → highlight + side panel
Double-click a class → instances; a family → type instances
/ focuses search · F fits the graph
-
Pin / mute via the right-side buttons (chips appear in the topbar)
+
Focus / mute via the right-side buttons (chips appear in the topbar)
@@ -69,7 +69,7 @@