@sleep2agi/agent-network-dashboard 0.5.3-preview.6 → 0.5.3-preview.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +32 -32
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +12 -12
- package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
- package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/server/app/admin.html +2 -2
- package/.next/server/app/admin.rsc +14 -14
- package/.next/server/app/admin.segments/_full.segment.rsc +14 -14
- package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
- package/.next/server/app/admin.segments/_index.segment.rsc +7 -7
- package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +14 -14
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/index.segments/_full.segment.rsc +14 -14
- package/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/server/app/index.segments/_index.segment.rsc +7 -7
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +2 -2
- package/.next/server/app/login.rsc +14 -14
- package/.next/server/app/login.segments/_full.segment.rsc +14 -14
- package/.next/server/app/login.segments/_head.segment.rsc +4 -4
- package/.next/server/app/login.segments/_index.segment.rsc +7 -7
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/login.segments/login.segment.rsc +3 -3
- package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/logs.html +2 -2
- package/.next/server/app/logs.rsc +14 -14
- package/.next/server/app/logs.segments/_full.segment.rsc +14 -14
- package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
- package/.next/server/app/logs.segments/_index.segment.rsc +7 -7
- package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/logs.segments/logs.segment.rsc +3 -3
- package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
- package/.next/server/app/messages.html +2 -2
- package/.next/server/app/messages.rsc +14 -14
- package/.next/server/app/messages.segments/_full.segment.rsc +14 -14
- package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
- package/.next/server/app/messages.segments/_index.segment.rsc +7 -7
- package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/messages.segments/messages.segment.rsc +3 -3
- package/.next/server/app/node/page_client-reference-manifest.js +1 -1
- package/.next/server/app/node.html +2 -2
- package/.next/server/app/node.rsc +14 -14
- package/.next/server/app/node.segments/_full.segment.rsc +14 -14
- package/.next/server/app/node.segments/_head.segment.rsc +4 -4
- package/.next/server/app/node.segments/_index.segment.rsc +7 -7
- package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/node.segments/node.segment.rsc +3 -3
- package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
- package/.next/server/app/nodes.html +2 -2
- package/.next/server/app/nodes.rsc +14 -14
- package/.next/server/app/nodes.segments/_full.segment.rsc +14 -14
- package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
- package/.next/server/app/nodes.segments/_index.segment.rsc +7 -7
- package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/nodes.segments/nodes.segment.rsc +3 -3
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +2 -2
- package/.next/server/app/server-logs.rsc +14 -14
- package/.next/server/app/server-logs.segments/_full.segment.rsc +14 -14
- package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
- package/.next/server/app/server-logs.segments/_index.segment.rsc +7 -7
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/server-logs.segments/server-logs.segment.rsc +3 -3
- package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/networks.html +2 -2
- package/.next/server/app/settings/networks.rsc +14 -14
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +14 -14
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +7 -7
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +3 -3
- package/.next/server/app/settings/networks.segments/settings.segment.rsc +3 -3
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +2 -2
- package/.next/server/app/settings/tokens.rsc +14 -14
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +14 -14
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +7 -7
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +3 -3
- package/.next/server/app/settings/tokens.segments/settings.segment.rsc +3 -3
- package/.next/server/app/settings.html +2 -2
- package/.next/server/app/settings.rsc +14 -14
- package/.next/server/app/settings.segments/_full.segment.rsc +14 -14
- package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings.segments/_index.segment.rsc +7 -7
- package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
- package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks.html +2 -2
- package/.next/server/app/tasks.rsc +14 -14
- package/.next/server/app/tasks.segments/_full.segment.rsc +14 -14
- package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
- package/.next/server/app/tasks.segments/_index.segment.rsc +7 -7
- package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +3 -3
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/058_sxgdyfzl7.js +4 -0
- package/.next/static/chunks/0b1q0~gt32zw-.css +2 -0
- package/.next/static/chunks/0q~p0u0ysa9nd.js +1 -0
- package/.next/static/chunks/{03a4--7ncekmk.js → 0v4-5tng.uh.7.js} +2 -2
- package/.next/static/chunks/0y2cak1ot-feb.js +1 -0
- package/.next/static/chunks/{16qx24lc72~7v.js → 17idlq8so6dmm.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/ServersDrawer.tsx +16 -3
- package/app/components/TopoGraph.tsx +1549 -76
- package/app/globals.css +55 -7
- package/package.json +4 -4
- package/scripts/p157-servers-copy-test.mjs +95 -0
- package/scripts/topo-alias-glow-test.mjs +121 -0
- package/scripts/topo-avatar-brightness-test.mjs +116 -0
- package/scripts/topo-chip-row-digit-ls-test.mjs +135 -0
- package/scripts/topo-chip-row-press-test.mjs +93 -0
- package/scripts/topo-cluster-count-attr-test.mjs +80 -0
- package/scripts/topo-crescent-breath-test.mjs +104 -0
- package/scripts/topo-crescent-recede-test.mjs +111 -0
- package/scripts/topo-edge-badge-hover-glow-test.mjs +90 -0
- package/scripts/topo-edge-pill-glow-test.mjs +67 -0
- package/scripts/topo-filter-pill-glow-test.mjs +90 -0
- package/scripts/topo-filter-pills-press-test.mjs +96 -0
- package/scripts/topo-fleet-density-tier-test.mjs +84 -0
- package/scripts/topo-freshness-chip-fade-test.mjs +105 -0
- package/scripts/topo-fullscreen-attr-test.mjs +73 -0
- package/scripts/topo-grid-content-bottom-attr-test.mjs +72 -0
- package/scripts/topo-group-label-hover-glow-test.mjs +86 -0
- package/scripts/topo-group-pill-glow-test.mjs +76 -0
- package/scripts/topo-hub-digit-ls-test.mjs +119 -0
- package/scripts/topo-hub-halo-glow-test.mjs +96 -0
- package/scripts/topo-hub-highlight-amplify-test.mjs +139 -0
- package/scripts/topo-hub-highlight-fill-transition-test.mjs +84 -0
- package/scripts/topo-hub-highlight-glow-test.mjs +99 -0
- package/scripts/topo-hub-highlight-r-test.mjs +112 -0
- package/scripts/topo-hub-highlight-recede-test.mjs +144 -0
- package/scripts/topo-hub-highlight-theme-fill-test.mjs +83 -0
- package/scripts/topo-hub-hover-ring-glow-test.mjs +97 -0
- package/scripts/topo-hub-idle-breath-test.mjs +109 -0
- package/scripts/topo-hub-recede-test.mjs +124 -0
- package/scripts/topo-hub-spoke-glow-test.mjs +112 -0
- package/scripts/topo-layout-hover-fw-test.mjs +98 -0
- package/scripts/topo-legend-count-letter-spacing-test.mjs +108 -0
- package/scripts/topo-legend-label-fw-test.mjs +107 -0
- package/scripts/topo-legend-swatch-glow-test.mjs +109 -0
- package/scripts/topo-minimap-hover-glow-test.mjs +109 -0
- package/scripts/topo-nodesize-hover-fw-test.mjs +99 -0
- package/scripts/topo-orphan-box-dash-test.mjs +89 -0
- package/scripts/topo-orphan-fill-opacity-test.mjs +91 -0
- package/scripts/topo-orphan-label-italic-test.mjs +90 -0
- package/scripts/topo-pinned-aspect-test.mjs +89 -0
- package/scripts/topo-pressure-seg-glow-test.mjs +92 -0
- package/scripts/topo-pressure-seg-motion-test.mjs +101 -0
- package/scripts/topo-recent-hot-pulse-test.mjs +102 -0
- package/scripts/topo-recent-more-fw-test.mjs +126 -0
- package/scripts/topo-recent-row-fw-test.mjs +115 -0
- package/scripts/topo-reduced-motion-attr-test.mjs +69 -0
- package/scripts/topo-reset-icon-hover-scale-test.mjs +102 -0
- package/scripts/topo-starfield-hue-test.mjs +109 -0
- package/scripts/topo-vendor-activelinks-press-test.mjs +100 -0
- package/scripts/topo-vendor-chip-glow-test.mjs +97 -0
- package/scripts/topo-vendor-pill-glow-test.mjs +98 -0
- package/scripts/topo-watermark-breath-test.mjs +100 -0
- package/scripts/topo-watermark-recede-test.mjs +114 -0
- package/scripts/topo-zoom-level-color-test.mjs +105 -0
- package/.next/static/chunks/018~fceya_6uk.css +0 -2
- package/.next/static/chunks/0ic678xqvd4ys.js +0 -4
- package/.next/static/chunks/0swbhc-5l4rz9.js +0 -1
- package/.next/static/chunks/17v63m4g4.i5h.js +0 -1
- /package/.next/static/{FpDDygQl1AAn4qwXBn3mt → lzP2ZpRRhiAhFxTKHfcxY}/_buildManifest.js +0 -0
- /package/.next/static/{FpDDygQl1AAn4qwXBn3mt → lzP2ZpRRhiAhFxTKHfcxY}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{FpDDygQl1AAn4qwXBn3mt → lzP2ZpRRhiAhFxTKHfcxY}/_ssgManifest.js +0 -0
|
@@ -240,11 +240,30 @@ function FreshnessChip({ sessions }: { sessions: unknown }) {
|
|
|
240
240
|
stale-onset to direct attention. */
|
|
241
241
|
if (!stale) return null;
|
|
242
242
|
return (
|
|
243
|
+
/* Round 505 / Loop — FreshnessChip mount animation. Pre-R505 the
|
|
244
|
+
chip popped into the chip-row instantly when SWR data crossed
|
|
245
|
+
the 10s stale threshold; users saw an abrupt amber pill appear
|
|
246
|
+
mid-row. R505 adds the existing `anet-fade-in` class so the
|
|
247
|
+
chip eases through opacity 0→1 over 150ms (R51 globals.css
|
|
248
|
+
keyframe) on first appearance. The chip itself only renders
|
|
249
|
+
when stale (R275 conditional), so the fade plays exactly when
|
|
250
|
+
the stale signal first arrives — perfectly aligned with the
|
|
251
|
+
semantic. Mount-once via React reconciliation (key not used
|
|
252
|
+
since FreshnessChip is a singleton in the parent).
|
|
253
|
+
a11y respected via R29 blanket — `@media (prefers-reduced-
|
|
254
|
+
motion: reduce)` neutralizes anet-fade-in to `animation:none`
|
|
255
|
+
(globals.css line 1083-1089 includes anet-fade-in in the
|
|
256
|
+
blanket list). Reduced-motion users see the chip pop instantly,
|
|
257
|
+
same as pre-R505 behavior — no regression.
|
|
258
|
+
Pure paint-axis addition (opacity animation, no geometry),
|
|
259
|
+
bbox unchanged. data-freshness-chip-mount-fade attr exposes
|
|
260
|
+
the gate for tests. */
|
|
243
261
|
<span
|
|
244
|
-
className={`${baseClass} ${colorClass}`}
|
|
262
|
+
className={`${baseClass} ${colorClass} anet-fade-in`}
|
|
245
263
|
title={stale ? `Last sync ${sec}s ago — SWR refresh may be lagging` : `Live data · refreshes every 5s · last sync ${sec}s ago`}
|
|
246
264
|
data-freshness-chip
|
|
247
265
|
data-freshness-chip-stale={stale ? 'true' : 'false'}
|
|
266
|
+
data-freshness-chip-mount-fade="true"
|
|
248
267
|
>
|
|
249
268
|
{/* Round 272 / Loop: swap prefix word to match color state so
|
|
250
269
|
text and color point the same way. Pre-R272 the chip read
|
|
@@ -867,12 +886,19 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
867
886
|
// R63 label render + R86 hover-pin keying + #99 tooltip
|
|
868
887
|
// member listing, so all the existing group-box machinery
|
|
869
888
|
// applies uniformly to the orphan bucket too.
|
|
889
|
+
// Round 499 / Loop — surface `isOrphan` flag on the box
|
|
890
|
+
// shape so downstream renderers (label text, future polish)
|
|
891
|
+
// can apply orphan-specific typography (italic) without
|
|
892
|
+
// re-deriving the flag from key === '其他' (key matching
|
|
893
|
+
// would also catch a legitimate "其他" prefix-group, this
|
|
894
|
+
// flag is canonical from the band assignment pass).
|
|
870
895
|
return {
|
|
871
896
|
key: band.isOrphan
|
|
872
897
|
? '其他'
|
|
873
898
|
: band.members.length
|
|
874
899
|
? groupKeys[band.members[0].alias]
|
|
875
900
|
: '',
|
|
901
|
+
isOrphan: !!band.isOrphan,
|
|
876
902
|
count: band.members.length,
|
|
877
903
|
statuses: { working: w, idle: i, offline: o },
|
|
878
904
|
x: minX - GROUP_PAD,
|
|
@@ -977,7 +1003,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
977
1003
|
groupKeys,
|
|
978
1004
|
// #111: group boxes are a grid-layout feature only — radially scattered
|
|
979
1005
|
// ring nodes can't be cleanly boxed. Ring keeps the #83 prefix hue.
|
|
980
|
-
groupBoxes: [] as { key: string; count: number; statuses: { working: number; idle: number; offline: number }; x: number; y: number; w: number; h: number }[],
|
|
1006
|
+
groupBoxes: [] as { key: string; isOrphan?: boolean; count: number; statuses: { working: number; idle: number; offline: number }; x: number; y: number; w: number; h: number }[],
|
|
981
1007
|
// ring fits within VIEWBOX_H by construction (offlineRadius=325 + centre at y=330)
|
|
982
1008
|
gridContentBottom: 0,
|
|
983
1009
|
};
|
|
@@ -1959,8 +1985,34 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1959
1985
|
// overlays the release-pop. Matching `transform-gpu`
|
|
1960
1986
|
// promotes the layer so the scale doesn't trigger
|
|
1961
1987
|
// layout/paint thrash. Sibling change on Grid below.
|
|
1962
|
-
|
|
1963
|
-
|
|
1988
|
+
/* Round 522 / Loop — extends R521's typography-preview
|
|
1989
|
+
idiom (chrome nodeSize hover:font-medium 400 → 500) to
|
|
1990
|
+
the Ring/Grid layout toggle's inactive variant. Pre-
|
|
1991
|
+
R522 the inactive Ring/Grid had `hover:text-cyan-300
|
|
1992
|
+
hover:bg-cyan-500/5` (R270 color + bg previews of the
|
|
1993
|
+
active state) but no typography preview — the active
|
|
1994
|
+
variant uses `font-medium` (fw 500), inactive sat at
|
|
1995
|
+
default fw 400 even on hover. R522 adds `hover:font-
|
|
1996
|
+
medium` to the inactive Ring/Grid so the rest-vs-hover
|
|
1997
|
+
transition previews the typography state the click
|
|
1998
|
+
would commit to, matching the click commits's locked
|
|
1999
|
+
weight.
|
|
2000
|
+
font-weight 150ms appended to the transition list
|
|
2001
|
+
matching the existing 150ms color/bg cadence at this
|
|
2002
|
+
button — when hover lifts color (gray-400 → cyan-300)
|
|
2003
|
+
+ bg (transparent → cyan-500/5) + fw (400 → 500), all
|
|
2004
|
+
3 ease at the same 150ms beat.
|
|
2005
|
+
Hover-fw family extension (6 anchors): R416/R420/R425/
|
|
2006
|
+
R520/R521/R522. R522 closes the chrome toggle group
|
|
2007
|
+
typography preview at the last remaining toggle —
|
|
2008
|
+
layout (Ring/Grid). After R521 (nodeSize) + R522
|
|
2009
|
+
(layout), every multi-state chrome toggle has hover-
|
|
2010
|
+
fw preview on its inactive variant.
|
|
2011
|
+
data-topo-chrome-layout-hover-preview-fw="500" attr
|
|
2012
|
+
on inactive button exposes the polish for tests. */
|
|
2013
|
+
className={`px-2.5 py-1 focus:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset hover:tracking-wide active:scale-95 transform-gpu ${layout === 'ring' ? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25' : 'text-gray-400 hover:text-cyan-300 hover:bg-cyan-500/5 active:bg-cyan-500/15 hover:font-medium'} ${chromePopping === 'layout-ring' ? ' anet-chrome-pop' : ''}`}
|
|
2014
|
+
data-topo-chrome-layout-hover-preview-fw={layout === 'ring' ? null : '500'}
|
|
2015
|
+
style={{ transition: 'background-color 150ms ease, color 150ms ease, letter-spacing 200ms ease-out, transform 150ms ease-out, font-weight 150ms ease' }}
|
|
1964
2016
|
>
|
|
1965
2017
|
Ring
|
|
1966
2018
|
</button>
|
|
@@ -1982,7 +2034,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1982
2034
|
// R492 sibling — Grid button picks up active:scale-95
|
|
1983
2035
|
// press feedback + transform in transition list. Same
|
|
1984
2036
|
// vocabulary as Ring above.
|
|
1985
|
-
|
|
2037
|
+
/* Round 522 sibling — Grid button mirrors Ring above:
|
|
2038
|
+
inactive variant gains `hover:font-medium` typography
|
|
2039
|
+
preview + font-weight 150ms in inline transition list.
|
|
2040
|
+
Same idiom, same family (R522 chrome layout). */
|
|
2041
|
+
className={`px-2.5 py-1 border-l focus:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset hover:tracking-wide active:scale-95 transform-gpu ${layout === 'grid' ? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25' : 'text-gray-400 hover:text-cyan-300 hover:bg-cyan-500/5 active:bg-cyan-500/15 hover:font-medium'} ${chromePopping === 'layout-grid' ? ' anet-chrome-pop' : ''}`}
|
|
2042
|
+
data-topo-chrome-layout-hover-preview-fw={layout === 'grid' ? null : '500'}
|
|
1986
2043
|
/* Round 268 / Loop: Grid button's left border (the
|
|
1987
2044
|
internal divider between Ring and Grid) picks up
|
|
1988
2045
|
pal.containerBorder, matching the wrapper change at
|
|
@@ -1995,7 +2052,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1995
2052
|
keeps R268's theme-toggle smoothness intact.
|
|
1996
2053
|
R492 adds `transform 150ms ease-out` so active:scale-95
|
|
1997
2054
|
eases smoothly. */
|
|
1998
|
-
style={{ borderColor: pal.containerBorder, transition: 'background-color 150ms ease, color 150ms ease, border-color 200ms ease-out, letter-spacing 200ms ease-out, transform 150ms ease-out' }}
|
|
2055
|
+
style={{ borderColor: pal.containerBorder, transition: 'background-color 150ms ease, color 150ms ease, border-color 200ms ease-out, letter-spacing 200ms ease-out, transform 150ms ease-out, font-weight 150ms ease' }}
|
|
1999
2056
|
>
|
|
2000
2057
|
Grid
|
|
2001
2058
|
</button>
|
|
@@ -2112,9 +2169,17 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2112
2169
|
// to R355 filter pin pill inner-span hover-brighten.
|
|
2113
2170
|
// Hover-brighten family extends from filter pills to
|
|
2114
2171
|
// chip-row chips at the inner-span scope.
|
|
2172
|
+
// Round 494 / Loop — chip-row working chip joins the
|
|
2173
|
+
// active:scale-95 press-feedback family (R492 Ring/Grid +
|
|
2174
|
+
// R493 chrome-strip rest). Gated on the clickable branch
|
|
2175
|
+
// (workingCount > 0) — when the chip is a placeholder
|
|
2176
|
+
// at count=0, scale-95 stays off to match the existing
|
|
2177
|
+
// R398 hover-lift conditional. Composes with hover:-
|
|
2178
|
+
// translate-y-px for the same lift-and-compress
|
|
2179
|
+
// tactile signature R493 brought to reset/fullscreen.
|
|
2115
2180
|
className={`group tabular-nums font-medium px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-colors transition-transform duration-200 ease-out transform-gpu ${
|
|
2116
2181
|
workingCount > 0
|
|
2117
|
-
? 'bg-green-500/10 text-green-300 border-green-500/20 hover:bg-green-500/15 hover:border-green-500/30 hover:-translate-y-px'
|
|
2182
|
+
? 'bg-green-500/10 text-green-300 border-green-500/20 hover:bg-green-500/15 hover:border-green-500/30 hover:-translate-y-px active:scale-95'
|
|
2118
2183
|
: 'bg-green-500/10 text-green-300 border-green-500/20'
|
|
2119
2184
|
}`}
|
|
2120
2185
|
data-chip-hover-lift={workingCount > 0 ? 'true' : 'false'}
|
|
@@ -2198,7 +2263,26 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2198
2263
|
at the chip-count scope. Sibling edits on the
|
|
2199
2264
|
online + active-links chip digits below. data-
|
|
2200
2265
|
working-chip-digit attr exposes the digit span. */}
|
|
2201
|
-
|
|
2266
|
+
{/* Round 539 / Loop — chip-row digit gains group-hover:
|
|
2267
|
+
tracking-wide alongside the existing R362 group-
|
|
2268
|
+
hover:font-bold. Pre-R539 the chip digit lifted
|
|
2269
|
+
only on the font-weight axis (600 → 700 on chip
|
|
2270
|
+
hover); R539 adds the kerning axis (tracking
|
|
2271
|
+
normal → tracking-wide ≈ 0.025em ≈ 0.3px on a 12px
|
|
2272
|
+
digit) so hover lifts BOTH typography axes
|
|
2273
|
+
together — same idiom R420/R517 establish at the
|
|
2274
|
+
chrome zoom-level (letter-spacing + fontWeight
|
|
2275
|
+
hover delta) and R531/R530 mirror at the panel
|
|
2276
|
+
label scope. transition-[font-weight] extends to
|
|
2277
|
+
transition-[font-weight,letter-spacing] for the
|
|
2278
|
+
smooth dual-axis tween.
|
|
2279
|
+
Sibling treatment across the 3 chip-row digits
|
|
2280
|
+
(working / online / active-links) — single concept
|
|
2281
|
+
replicated at 3 surfaces by replace_all.
|
|
2282
|
+
Hover-letter-spacing family extension (12 anchors
|
|
2283
|
+
now): R344/R345/R347/R420/R427/R431/R432/R433/
|
|
2284
|
+
R434/R517/R518 + R539 (this round). */}
|
|
2285
|
+
<span className="font-semibold transition-[font-weight,letter-spacing] duration-200 group-hover:font-bold group-hover:tracking-wide" data-working-chip-digit>{workingCount}</span><span className="opacity-70 transition-opacity duration-200 group-hover:opacity-100" data-working-chip-unit> working</span>
|
|
2202
2286
|
</span>
|
|
2203
2287
|
<span
|
|
2204
2288
|
// Round 201 / Loop: online chip — mirror of the working
|
|
@@ -2214,9 +2298,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2214
2298
|
same digit-jitter physics on count crossings). */
|
|
2215
2299
|
// R398: hover translate-y lift on clickable variant — see working chip above.
|
|
2216
2300
|
// R414: `group` parent + inner unit span group-hover-brighten — see working chip above.
|
|
2301
|
+
// R494 sibling — online chip joins the active:scale-95 press
|
|
2302
|
+
// family (gated on onlineNodes.length > 0 clickable branch,
|
|
2303
|
+
// same conditional pattern as the working chip above).
|
|
2217
2304
|
className={`group tabular-nums font-medium px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-colors transition-transform duration-200 ease-out transform-gpu ${
|
|
2218
2305
|
onlineNodes.length > 0
|
|
2219
|
-
? 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20 hover:bg-cyan-500/15 hover:border-cyan-500/30 hover:-translate-y-px'
|
|
2306
|
+
? 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20 hover:bg-cyan-500/15 hover:border-cyan-500/30 hover:-translate-y-px active:scale-95'
|
|
2220
2307
|
: 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20'
|
|
2221
2308
|
}`}
|
|
2222
2309
|
data-chip-hover-lift={onlineNodes.length > 0 ? 'true' : 'false'}
|
|
@@ -2266,7 +2353,9 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2266
2353
|
>
|
|
2267
2354
|
{/* R337 sibling — online chip unit demotion. */}
|
|
2268
2355
|
{/* R362 sibling — online-chip digit gains font-semibold. */}
|
|
2269
|
-
|
|
2356
|
+
{/* R539 sibling — online chip digit. Same idiom as
|
|
2357
|
+
working chip above (group-hover:tracking-wide). */}
|
|
2358
|
+
<span className="font-semibold transition-[font-weight,letter-spacing] duration-200 group-hover:font-bold group-hover:tracking-wide" data-online-chip-digit>{onlineNodes.length}</span><span className="opacity-70 transition-opacity duration-200 group-hover:opacity-100" data-online-chip-unit> online</span>
|
|
2270
2359
|
</span>
|
|
2271
2360
|
</>
|
|
2272
2361
|
);
|
|
@@ -2355,7 +2444,41 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2355
2444
|
height: '100%',
|
|
2356
2445
|
cursor: 'pointer',
|
|
2357
2446
|
boxShadow: isPinned ? `inset 0 0 0 1px ${color}, inset 0 0 0 2px rgba(255,255,255,0.6)` : undefined,
|
|
2358
|
-
|
|
2447
|
+
/* Round 542 / Loop — pressure-bar segments gain
|
|
2448
|
+
drop-shadow tier-color glow on hover, stacked
|
|
2449
|
+
on R210 brightness(1.2). Sibling to R537 legend
|
|
2450
|
+
swatch + R541 vendor chip glow at the chip-row
|
|
2451
|
+
scope — three same-pattern surfaces (legend
|
|
2452
|
+
swatch / vendor chip / pressure segment) all
|
|
2453
|
+
radiate their identity color on hover.
|
|
2454
|
+
3rd anchor in the chip-row tier-color paint
|
|
2455
|
+
glow sub-family:
|
|
2456
|
+
R537 legend swatch row.fill (status hex)
|
|
2457
|
+
R541 vendor chip v.color (hsl via color-mix)
|
|
2458
|
+
R542 pressure seg color (status hex) ← this round
|
|
2459
|
+
Stacked filter syntax (brightness + drop-shadow
|
|
2460
|
+
in same filter declaration): `brightness(1.2)
|
|
2461
|
+
drop-shadow(...)`. CSS filter supports multiple
|
|
2462
|
+
functions; they apply left-to-right. Brightness
|
|
2463
|
+
boosts the segment's own color, drop-shadow
|
|
2464
|
+
paints the outer halo. Together: hovered seg
|
|
2465
|
+
looks "lit up" with both inner glow + outer
|
|
2466
|
+
halo in its tier color.
|
|
2467
|
+
Hue: `${color}99` hex+alpha (60%) — color here
|
|
2468
|
+
is a 6-char hex (e.g., '#22c55e' for working
|
|
2469
|
+
cyber, '#0d9488' for idle light), not hsl, so
|
|
2470
|
+
hex+alpha concat works (unlike R541 vendor
|
|
2471
|
+
which needed color-mix for hsl). Banked
|
|
2472
|
+
pattern: hex sources use hex+alpha; hsl/color()
|
|
2473
|
+
sources use color-mix.
|
|
2474
|
+
2px blur (vs R537's 3px) since pressure-seg is
|
|
2475
|
+
small (h-2 = 8px tall, variable width) — a
|
|
2476
|
+
smaller blur keeps the glow tight to the
|
|
2477
|
+
segment without bleeding into neighbors.
|
|
2478
|
+
filter is paint-only; bbox unchanged; R51
|
|
2479
|
+
overlap-test invariants hold. Transition list
|
|
2480
|
+
already includes `filter` (post-R524). */
|
|
2481
|
+
filter: hoveredStatus === key ? `brightness(1.2) drop-shadow(0 0 2px ${color}99)` : undefined,
|
|
2359
2482
|
transition: 'width 220ms ease-out, box-shadow 150ms ease-out, filter 150ms ease-out',
|
|
2360
2483
|
}}
|
|
2361
2484
|
onClick={(e) => {
|
|
@@ -2491,9 +2614,42 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2491
2614
|
// R355: `group` lets the inner opacity-70 spans (prefix
|
|
2492
2615
|
// `filter:` + count `· N`) brighten to 100 % on pill hover.
|
|
2493
2616
|
// Sibling treatment on group + vendor pills below.
|
|
2494
|
-
|
|
2617
|
+
// R495 — filter pills (3 sibling `group` variants) join the
|
|
2618
|
+
// active:scale-95 press-feedback family. R490's !important
|
|
2619
|
+
// transition list on .anet-topo-chip-focus already covers
|
|
2620
|
+
// transform, so just appending active:scale-95 to the
|
|
2621
|
+
// className wires the press tactile in one token. Compound
|
|
2622
|
+
// with R400-era hover:-translate-y-px gives lift-and-compress.
|
|
2623
|
+
className="group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px active:scale-95 transform-gpu" data-topo-filter-pill-hover-lift="true"
|
|
2495
2624
|
title={matchCount > 0 ? `${matchPreview}${matchSuffix} — click to clear` : 'Click to clear filter'}
|
|
2496
2625
|
onClick={() => setPinnedStatus(null)}
|
|
2626
|
+
/* Round 543 / Loop — status filter pill gains always-on
|
|
2627
|
+
tier-color drop-shadow when rendered. Pre-R543 the
|
|
2628
|
+
pill carried bg-tint + tier-color text + border but
|
|
2629
|
+
no outer paint extent — it sat as a flat tinted chip
|
|
2630
|
+
in the chip row. R543 adds an outer glow at the
|
|
2631
|
+
pill's text color so the pill radiates a soft tier-
|
|
2632
|
+
colored halo signaling "this filter is active." Pin
|
|
2633
|
+
pill only renders when pinnedStatus is set (the JSX
|
|
2634
|
+
gate above), so the drop-shadow appearing reinforces
|
|
2635
|
+
the visual "active pin" state.
|
|
2636
|
+
Sibling pattern: R477 legend pin-ring also paints a
|
|
2637
|
+
pin-gated tier-color drop-shadow. Pin pill follows
|
|
2638
|
+
the same "pin-gated paint glow" semantics but at the
|
|
2639
|
+
chip-row scope vs the panel-row scope. The chip-row
|
|
2640
|
+
tier-color glow trio (R537/R541/R542 hover-gated)
|
|
2641
|
+
plus R543 (pin-gated, this round) closes the chip-
|
|
2642
|
+
row paint-glow family across BOTH gate types
|
|
2643
|
+
(hover for transient affordance, pin for sticky
|
|
2644
|
+
active-state visual).
|
|
2645
|
+
Hue: explicit tier color (extracted from the
|
|
2646
|
+
existing `color` ternary). 0x99 alpha (~60%) +
|
|
2647
|
+
3px blur. Stays inside the same color hierarchy
|
|
2648
|
+
as the pill's own text/border (currentColor).
|
|
2649
|
+
R543 status pill scope only — R543's pattern can
|
|
2650
|
+
future-extend to group/vendor/edge filter pills
|
|
2651
|
+
(3 more variants at lines 2683/2755/2824). Out of
|
|
2652
|
+
scope to keep R543 single-pill. */
|
|
2497
2653
|
style={{
|
|
2498
2654
|
background: pinnedStatus === 'working' ? (isLight ? '#05966914' : '#22c55e1f')
|
|
2499
2655
|
: pinnedStatus === 'idle' ? (isLight ? '#0d948814' : '#2dd4bf1f')
|
|
@@ -2503,6 +2659,11 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2503
2659
|
: (isLight ? '#475569' : '#9ca3af'),
|
|
2504
2660
|
borderColor: 'currentColor',
|
|
2505
2661
|
cursor: 'pointer',
|
|
2662
|
+
filter: `drop-shadow(0 0 3px ${
|
|
2663
|
+
pinnedStatus === 'working' ? (isLight ? '#047857' : '#86efac')
|
|
2664
|
+
: pinnedStatus === 'idle' ? (isLight ? '#0f766e' : '#5eead4')
|
|
2665
|
+
: (isLight ? '#475569' : '#9ca3af')
|
|
2666
|
+
}99)`,
|
|
2506
2667
|
}}
|
|
2507
2668
|
>
|
|
2508
2669
|
{/* Round 412 / Loop: filter pin pill VALUE picks up the
|
|
@@ -2555,14 +2716,47 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2555
2716
|
data-filter-match-count={matchCount}
|
|
2556
2717
|
data-filter-match-aliases={matchAliases.join(',')}
|
|
2557
2718
|
// R355 sibling — `group` parent + group-hover on inner spans.
|
|
2558
|
-
|
|
2719
|
+
// R495 — filter pills (3 sibling `group` variants) join the
|
|
2720
|
+
// active:scale-95 press-feedback family. R490's !important
|
|
2721
|
+
// transition list on .anet-topo-chip-focus already covers
|
|
2722
|
+
// transform, so just appending active:scale-95 to the
|
|
2723
|
+
// className wires the press tactile in one token. Compound
|
|
2724
|
+
// with R400-era hover:-translate-y-px gives lift-and-compress.
|
|
2725
|
+
className="group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px active:scale-95 transform-gpu" data-topo-filter-pill-hover-lift="true"
|
|
2559
2726
|
title={matchCount > 0 ? `${matchPreview}${matchSuffix} — click to clear` : 'Click to clear filter'}
|
|
2560
2727
|
onClick={() => setPinnedGroup(null)}
|
|
2728
|
+
/* Round 544 / Loop — extends R543 pin-active filter-pill
|
|
2729
|
+
drop-shadow pattern to the GROUP pill (2nd of 4 pill
|
|
2730
|
+
variants). Pre-R544 the group pill carried bg-tint +
|
|
2731
|
+
pal.legendAccent text/border but no outer paint glow.
|
|
2732
|
+
R544 adds the matching cyan-accent drop-shadow so the
|
|
2733
|
+
group pin pill radiates the same paint glow as R543
|
|
2734
|
+
status pill — pin-active visual signal at chip-row
|
|
2735
|
+
scope.
|
|
2736
|
+
Hue: pal.legendAccent (cyber #67e8f9 cyan-300 /
|
|
2737
|
+
light #0d9488 teal-600). Uses color-mix() syntax
|
|
2738
|
+
because pal.legendAccent may resolve to hex; same
|
|
2739
|
+
syntax works for both hex and hsl sources (banked
|
|
2740
|
+
R541 lesson). 60% alpha + 3px blur — same intensity
|
|
2741
|
+
as R543 status pill so the pin-active visual signal
|
|
2742
|
+
reads with matching brightness across pill variants.
|
|
2743
|
+
Pin-active tier-color paint glow sub-family
|
|
2744
|
+
(CLOSED progressively):
|
|
2745
|
+
R477 legend pin-ring (panel-row, row.fill)
|
|
2746
|
+
R543 status pill (chip-row, tier-color)
|
|
2747
|
+
R544 group pill (chip-row, legendAccent)
|
|
2748
|
+
← this round
|
|
2749
|
+
Out of scope: vendor pill (line ~2755) + edge pill
|
|
2750
|
+
(line ~2824) — can future-extend in subsequent
|
|
2751
|
+
rounds (R545/R546). Both use the same R543 idiom:
|
|
2752
|
+
always-on drop-shadow when rendered, color from the
|
|
2753
|
+
pill's existing text color. */
|
|
2561
2754
|
style={{
|
|
2562
2755
|
background: isLight ? '#67e8f914' : '#67e8f91f',
|
|
2563
2756
|
color: pal.legendAccent,
|
|
2564
2757
|
borderColor: 'currentColor',
|
|
2565
2758
|
cursor: 'pointer',
|
|
2759
|
+
filter: `drop-shadow(0 0 3px color-mix(in srgb, ${pal.legendAccent} 60%, transparent))`,
|
|
2566
2760
|
}}
|
|
2567
2761
|
>
|
|
2568
2762
|
{/* R412: see status pill above — filter value fw=600 data tier. */}
|
|
@@ -2621,14 +2815,40 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2621
2815
|
data-filter-match-count={matchCount}
|
|
2622
2816
|
data-filter-match-aliases={matchAliases.join(',')}
|
|
2623
2817
|
// R355 sibling — `group` parent + group-hover on inner spans.
|
|
2624
|
-
|
|
2818
|
+
// R495 — filter pills (3 sibling `group` variants) join the
|
|
2819
|
+
// active:scale-95 press-feedback family. R490's !important
|
|
2820
|
+
// transition list on .anet-topo-chip-focus already covers
|
|
2821
|
+
// transform, so just appending active:scale-95 to the
|
|
2822
|
+
// className wires the press tactile in one token. Compound
|
|
2823
|
+
// with R400-era hover:-translate-y-px gives lift-and-compress.
|
|
2824
|
+
className="group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px active:scale-95 transform-gpu" data-topo-filter-pill-hover-lift="true"
|
|
2625
2825
|
title={matchCount > 0 ? `${matchPreview}${matchSuffix} — click to clear` : 'Click to clear vendor filter'}
|
|
2626
2826
|
onClick={() => setPinnedVendor(null)}
|
|
2827
|
+
/* Round 545 / Loop — extends pin-active filter-pill drop-
|
|
2828
|
+
shadow pattern to VENDOR pill (3rd of 4 pill variants
|
|
2829
|
+
after R543 status + R544 group). vendorColor is HSL
|
|
2830
|
+
format (banked R541 lesson — vendorDist.color sources
|
|
2831
|
+
from mono.text in vendorIdentity.ts, which is `hsl(...)`),
|
|
2832
|
+
so the filter uses color-mix() syntax — same as R544.
|
|
2833
|
+
60% alpha + 3px blur, matching R543/R544 intensity for
|
|
2834
|
+
consistent pin-active visual signal across all pill
|
|
2835
|
+
variants.
|
|
2836
|
+
Pin-active tier-color paint glow sub-family (progressive
|
|
2837
|
+
extension, 1 pill variant remaining):
|
|
2838
|
+
R477 legend pin-ring (panel-row, row.fill, hex+alpha)
|
|
2839
|
+
R543 status pill (chip-row, tier-color, hex+alpha)
|
|
2840
|
+
R544 group pill (chip-row, legendAccent, color-mix)
|
|
2841
|
+
R545 vendor pill (chip-row, vendorColor, color-mix)
|
|
2842
|
+
← this round
|
|
2843
|
+
Out of scope: edge pill (line ~2824 pre-R545, now ~2900+).
|
|
2844
|
+
Final 1/4 pill remaining for a future round closes the
|
|
2845
|
+
sub-family. */
|
|
2627
2846
|
style={{
|
|
2628
2847
|
background: `${vendorColor}1f`,
|
|
2629
2848
|
color: vendorColor,
|
|
2630
2849
|
borderColor: 'currentColor',
|
|
2631
2850
|
cursor: 'pointer',
|
|
2851
|
+
filter: `drop-shadow(0 0 3px color-mix(in srgb, ${vendorColor} 60%, transparent))`,
|
|
2632
2852
|
}}
|
|
2633
2853
|
>
|
|
2634
2854
|
{/* R412: see status pill above — filter value fw=600 data tier. */}
|
|
@@ -2684,14 +2904,40 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2684
2904
|
data-filter-match-count={link.count}
|
|
2685
2905
|
data-filter-match-aliases={`${link.from},${link.to}`}
|
|
2686
2906
|
data-active-filter-edge-hot={isHot ? 'true' : 'false'}
|
|
2687
|
-
|
|
2907
|
+
// R495 sibling — 4th filter pill (no `group` prefix variant)
|
|
2908
|
+
// joins active:scale-95 press family alongside the 3 group
|
|
2909
|
+
// variants above. Same recipe.
|
|
2910
|
+
className="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px active:scale-95 transform-gpu" data-topo-filter-pill-hover-lift="true"
|
|
2688
2911
|
title={`${link.from} → ${link.to} (${link.count} msg${link.count === 1 ? '' : 's'}${isHot ? ', hot lane · ≥ 10' : ''}) — click to clear`}
|
|
2689
2912
|
onClick={() => setPinnedEdgeKey(null)}
|
|
2913
|
+
/* Round 546 / Loop — CLOSES pin-active filter-pill drop-
|
|
2914
|
+
shadow sub-family at the 4th and final pill variant
|
|
2915
|
+
(edge pill). R543 (status) + R544 (group) + R545
|
|
2916
|
+
(vendor) covered the first three; R546 closes at
|
|
2917
|
+
edge.
|
|
2918
|
+
Pin-active tier-color paint glow sub-family CLOSED
|
|
2919
|
+
(4 anchors):
|
|
2920
|
+
R477 legend pin-ring (panel-row, row.fill)
|
|
2921
|
+
R543 status pill (chip-row, tier-color text)
|
|
2922
|
+
R544 group pill (chip-row, legendAccent)
|
|
2923
|
+
R545 vendor pill (chip-row, vendorColor)
|
|
2924
|
+
R546 edge pill (chip-row, pal.flowEdge)
|
|
2925
|
+
← this round, family CLOSED
|
|
2926
|
+
All 4 filter pin pills now radiate paint glow in the
|
|
2927
|
+
same hue family as their text/border on render —
|
|
2928
|
+
pin-active visual signal uniform across the chip-row
|
|
2929
|
+
pill family.
|
|
2930
|
+
pal.flowEdge is theme-driven (dynamic); color-mix
|
|
2931
|
+
syntax safe-defaults regardless of resolved format
|
|
2932
|
+
(banked R541/R544/R545 pattern). 60% alpha + 3px blur
|
|
2933
|
+
— same intensity as R543/R544/R545 for consistent
|
|
2934
|
+
cross-pill visual signal. */
|
|
2690
2935
|
style={{
|
|
2691
2936
|
background: isLight ? `${pal.flowEdge}14` : `${pal.flowEdge}1f`,
|
|
2692
2937
|
color: pal.flowEdge,
|
|
2693
2938
|
borderColor: 'currentColor',
|
|
2694
2939
|
cursor: 'pointer',
|
|
2940
|
+
filter: `drop-shadow(0 0 3px color-mix(in srgb, ${pal.flowEdge} 60%, transparent))`,
|
|
2695
2941
|
}}
|
|
2696
2942
|
>
|
|
2697
2943
|
{/* R412: filter pin pill value (edge variant) picks up fw=600.
|
|
@@ -3034,7 +3280,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3034
3280
|
// — sibling to R355 filter-pill prefix/suffix + R414
|
|
3035
3281
|
// chip-row unit brighten. Closes the inner-span
|
|
3036
3282
|
// hover-brighten family at the vendor chip surface.
|
|
3037
|
-
|
|
3283
|
+
// R496 — vendor letter chip joins active:scale-95 press
|
|
3284
|
+
// family. Last vendor-row clickable joining the family
|
|
3285
|
+
// R495 cashed via R490's transition-cascade dividend.
|
|
3286
|
+
// Same compound w/ R401 hover-lift idiom — lift-and-
|
|
3287
|
+
// compress on press, springs back on release.
|
|
3288
|
+
className="group tabular-nums font-medium inline-flex items-baseline gap-0.5 px-1 rounded anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu hover:-translate-y-px active:scale-95"
|
|
3038
3289
|
data-vendor-letter={v.initial}
|
|
3039
3290
|
data-vendor-letter-count={v.count}
|
|
3040
3291
|
data-vendor-letter-hover-lift="true"
|
|
@@ -3061,6 +3312,41 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3061
3312
|
// for older browsers the chip falls back to its idle
|
|
3062
3313
|
// transparent bg (graceful degradation — the canvas-
|
|
3063
3314
|
// dim effect still fires regardless).
|
|
3315
|
+
/* Round 541 / Loop — vendor letter chip gains drop-
|
|
3316
|
+
shadow glow on hover/pin using its OWN vendor
|
|
3317
|
+
identity color (v.color). Sibling to R537 legend-
|
|
3318
|
+
swatch tier-color glow at the chip-row scope.
|
|
3319
|
+
Pre-R541 the vendor chip lifted on multiple
|
|
3320
|
+
axes (R354 inner-glyph scale-1.1, R202 bg color-
|
|
3321
|
+
mix tint, R180 box-shadow pin-mirror inset, R401
|
|
3322
|
+
hover-translate-y -1px, R496 active:scale-95
|
|
3323
|
+
press) but no paint-axis glow extending past
|
|
3324
|
+
the chip's bbox. R541 adds the outer glow at
|
|
3325
|
+
the paint axis so the vendor chip's identity
|
|
3326
|
+
color radiates beyond the chip on attention —
|
|
3327
|
+
same idiom as legend swatch tier-color glow.
|
|
3328
|
+
2-tier alpha ladder (mirrors R538 group-label):
|
|
3329
|
+
pin (committed) v.color 99 (~60%)
|
|
3330
|
+
hover (preview) v.color 66 (~40%)
|
|
3331
|
+
rest none
|
|
3332
|
+
Pin is brighter to distinguish locked vs preview
|
|
3333
|
+
at the paint axis. The R180 inset box-shadow
|
|
3334
|
+
(pin-mirror) and R541 outer drop-shadow compose
|
|
3335
|
+
at pin — inside chrome reads as "this is pinned"
|
|
3336
|
+
(inset white double-ring), outside paint reads
|
|
3337
|
+
as "vendor identity is locked" (vendor-colour
|
|
3338
|
+
outer glow). Hover gets only the outer glow.
|
|
3339
|
+
3px blur tuned to read as soft chip-halo without
|
|
3340
|
+
overwhelming adjacent chips in the chip row.
|
|
3341
|
+
filter property is in the .anet-topo-chip-focus
|
|
3342
|
+
class transition list (R524 banked fix), so the
|
|
3343
|
+
filter eases at 200ms naturally.
|
|
3344
|
+
Drop-shadow visual-polish family — R541 adds
|
|
3345
|
+
chip-row tier-color paint glow as another anchor
|
|
3346
|
+
in the same family pattern R537 established.
|
|
3347
|
+
data-vendor-glow attr ('pin' | 'hover' | 'false')
|
|
3348
|
+
exposes the gate state for tests. */
|
|
3349
|
+
data-vendor-glow={isPinned ? 'pin' : hoveredVendor === v.initial ? 'hover' : 'false'}
|
|
3064
3350
|
style={{
|
|
3065
3351
|
cursor: 'pointer',
|
|
3066
3352
|
backgroundColor: (hoveredVendor === v.initial && !isPinned)
|
|
@@ -3069,7 +3355,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3069
3355
|
boxShadow: isPinned
|
|
3070
3356
|
? `inset 0 0 0 1px ${v.color}, inset 0 0 0 2px rgba(255,255,255,0.45)`
|
|
3071
3357
|
: undefined,
|
|
3072
|
-
|
|
3358
|
+
filter: isPinned
|
|
3359
|
+
? `drop-shadow(0 0 3px color-mix(in srgb, ${v.color} 60%, transparent))`
|
|
3360
|
+
: hoveredVendor === v.initial
|
|
3361
|
+
? `drop-shadow(0 0 3px color-mix(in srgb, ${v.color} 40%, transparent))`
|
|
3362
|
+
: undefined,
|
|
3363
|
+
transition: 'box-shadow 150ms ease-out, background-color 200ms ease-out, filter 200ms ease-out',
|
|
3073
3364
|
}}
|
|
3074
3365
|
onMouseEnter={() => setHoveredVendor(v.initial)}
|
|
3075
3366
|
onMouseLeave={() => setHoveredVendor(prev => prev === v.initial ? null : prev)}
|
|
@@ -3272,9 +3563,13 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3272
3563
|
data-chip-hover-lift attr exposes the lift surface
|
|
3273
3564
|
state ('true' clickable, 'false' empty) for tests. */
|
|
3274
3565
|
// R414: `group` parent + inner unit span group-hover-brighten — see working chip above.
|
|
3566
|
+
// R496 — active-links chip joins active:scale-95 press
|
|
3567
|
+
// family. Sibling to working+online chips (R494). Gated
|
|
3568
|
+
// on `isInteractive` (flowLinks.length > 0) — same R399
|
|
3569
|
+
// conditional pattern used for hover-lift.
|
|
3275
3570
|
className={`group tabular-nums font-medium hidden sm:inline px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu ${
|
|
3276
3571
|
isInteractive
|
|
3277
|
-
? 'bg-gray-500/10 text-gray-400 border-gray-500/20 hover:bg-cyan-500/10 hover:text-cyan-200 hover:border-cyan-500/30 hover:-translate-y-px'
|
|
3572
|
+
? 'bg-gray-500/10 text-gray-400 border-gray-500/20 hover:bg-cyan-500/10 hover:text-cyan-200 hover:border-cyan-500/30 hover:-translate-y-px active:scale-95'
|
|
3278
3573
|
: 'bg-gray-500/10 text-gray-400 border-gray-500/20'
|
|
3279
3574
|
}`}
|
|
3280
3575
|
data-chip-hover-lift={isInteractive ? 'true' : 'false'}
|
|
@@ -3307,7 +3602,9 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3307
3602
|
chip-internal-hierarchy arc. data-active-links-
|
|
3308
3603
|
chip-unit exposes the unit span for tests. */}
|
|
3309
3604
|
{/* R362 sibling — active-links chip digit gains font-semibold. */}
|
|
3310
|
-
|
|
3605
|
+
{/* R539 sibling — active-links chip digit. Same idiom
|
|
3606
|
+
as working + online above. */}
|
|
3607
|
+
<span className="font-semibold transition-[font-weight,letter-spacing] duration-200 group-hover:font-bold group-hover:tracking-wide" data-active-links-chip-digit>{flowLinks.length}</span><span className="opacity-70 transition-opacity duration-200 group-hover:opacity-100" data-active-links-chip-unit> active link{flowLinks.length === 1 ? '' : 's'}</span>
|
|
3311
3608
|
{rel ? (() => {
|
|
3312
3609
|
// Round 161 / Loop: extend R160's recency-pip
|
|
3313
3610
|
// vocabulary up one scope — from per-flow row to
|
|
@@ -3521,6 +3818,36 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3521
3818
|
on the canvas root for non-visual consumers.
|
|
3522
3819
|
Composed from existing onlineNodes / workingCount /
|
|
3523
3820
|
offlineNodes / flowLinks — no new state. */
|
|
3821
|
+
/* Round 502 / Loop — categorical density-tier paired with the
|
|
3822
|
+
R469 numeric counts. data-topo-fleet-density-tier classifies
|
|
3823
|
+
the fleet size into 5 buckets so external consumers (CSS
|
|
3824
|
+
selectors, Playwright probes, future density-conditional
|
|
3825
|
+
polish gates like R109 dense-label collapse at 16+ nodes)
|
|
3826
|
+
can branch on a stable tier name without re-deriving the
|
|
3827
|
+
threshold logic from the raw numeric. Buckets:
|
|
3828
|
+
'empty' — onlineNodes.length === 0
|
|
3829
|
+
'sparse' — 1-3 nodes
|
|
3830
|
+
'normal' — 4-15 nodes
|
|
3831
|
+
'dense' — 16-30 nodes (matches R109 collapse gate)
|
|
3832
|
+
'very-dense' — 31+ nodes
|
|
3833
|
+
Picks the gate boundaries that already drive CONDITIONAL
|
|
3834
|
+
RENDER decisions elsewhere (R109 denseLayout = >16, R110
|
|
3835
|
+
plain-text fallback) so the tier name is semantically
|
|
3836
|
+
aligned with the visual mode the canvas already switches
|
|
3837
|
+
to. Composed from existing onlineNodes — no new state.
|
|
3838
|
+
12th attr in the canvas state surface set (R462/R466/R467/
|
|
3839
|
+
R469×4/R471×2/R487/R488/R502). 12 attrs covers: build
|
|
3840
|
+
identity, transient/sticky inspection modes, fleet split
|
|
3841
|
+
numerics, fleet density tier, canvas layout/theme, canvas
|
|
3842
|
+
zoom, hover identity. A test harness can snapshot the
|
|
3843
|
+
full canvas state with 12 getAttribute calls. */
|
|
3844
|
+
data-topo-fleet-density-tier={
|
|
3845
|
+
onlineNodes.length === 0 ? 'empty' :
|
|
3846
|
+
onlineNodes.length <= 3 ? 'sparse' :
|
|
3847
|
+
onlineNodes.length <= 15 ? 'normal' :
|
|
3848
|
+
onlineNodes.length <= 30 ? 'dense' :
|
|
3849
|
+
'very-dense'
|
|
3850
|
+
}
|
|
3524
3851
|
data-topo-online-count={onlineNodes.length}
|
|
3525
3852
|
data-topo-working-count={workingCount}
|
|
3526
3853
|
data-topo-offline-count={offlineNodes.length}
|
|
@@ -3586,6 +3913,119 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3586
3913
|
categorical) — separate dedicated attrs if/when needed.
|
|
3587
3914
|
Root svg attribute set now 11 attrs total. */
|
|
3588
3915
|
data-topo-hovered-alias={hoveredAlias ?? ''}
|
|
3916
|
+
/* Round 504 / Loop — categorical pin-aspect attr paired with
|
|
3917
|
+
R467 any-pinned boolean and R488 hovered-alias identity.
|
|
3918
|
+
Pre-R504 the canvas state surface set told tests WHETHER
|
|
3919
|
+
any pin was active (R467 boolean) but tests had to enumerate
|
|
3920
|
+
4 individual state vars to determine WHICH pin axis fired:
|
|
3921
|
+
pinnedStatus legend-row status filter
|
|
3922
|
+
pinnedGroup prefix-cluster lock
|
|
3923
|
+
pinnedVendor vendor-chip filter
|
|
3924
|
+
pinnedEdgeKey edge-focus
|
|
3925
|
+
R504 surfaces the active aspect as a single categorical
|
|
3926
|
+
attribute: data-topo-pinned-aspect ∈
|
|
3927
|
+
'none' no pin active
|
|
3928
|
+
'status' pinnedStatus only
|
|
3929
|
+
'group' pinnedGroup only
|
|
3930
|
+
'vendor' pinnedVendor only
|
|
3931
|
+
'edge' pinnedEdgeKey only
|
|
3932
|
+
'multi' 2 or more pins active simultaneously
|
|
3933
|
+
('multi' covers cross-cutting filters — e.g. user pins
|
|
3934
|
+
status='working' AND vendor='claude' simultaneously to
|
|
3935
|
+
narrow the canvas. Each pin axis is independently
|
|
3936
|
+
dismissable via Esc / individual chip click, so multi
|
|
3937
|
+
states are reachable and worth surfacing as a distinct
|
|
3938
|
+
tier.)
|
|
3939
|
+
13th attr in the canvas state surface set after R502.
|
|
3940
|
+
Composed from 4 existing state vars — no new state. */
|
|
3941
|
+
/* Round 512 / Loop — 14th canvas state attr. groupBoxes.length
|
|
3942
|
+
surfaces the count of cluster boxes currently rendered in
|
|
3943
|
+
grid layout (always 0 in ring). Paired with R502 categorical
|
|
3944
|
+
density tier + R469 fleet numerics for a complete cluster-
|
|
3945
|
+
cardinality surface:
|
|
3946
|
+
R469 data-topo-online-count node-count
|
|
3947
|
+
R502 data-topo-fleet-density-tier categorical
|
|
3948
|
+
R512 data-topo-cluster-count cluster-count ← this round
|
|
3949
|
+
Use cases:
|
|
3950
|
+
- Playwright: assert orphan-band existence by
|
|
3951
|
+
`cluster-count === N + 1` vs prefix-only `=== N`
|
|
3952
|
+
- external CSS: `[data-topo-cluster-count='1']` to apply
|
|
3953
|
+
single-cluster grid-specific layout adjustments
|
|
3954
|
+
- future polish gates: cluster-count > N could trigger
|
|
3955
|
+
dense-grid mode
|
|
3956
|
+
Composed from existing `groupBoxes.length` — no new state.
|
|
3957
|
+
Always renders (0 in ring layout, N in grid), so tests can
|
|
3958
|
+
rely on attribute presence + value. */
|
|
3959
|
+
data-topo-cluster-count={groupBoxes.length}
|
|
3960
|
+
/* Round 513 / Loop — 15th canvas state attr. Surfaces the
|
|
3961
|
+
user's prefers-reduced-motion preference directly on the
|
|
3962
|
+
root SVG so external CSS / Playwright tests can branch on
|
|
3963
|
+
a11y state without re-reading the media query.
|
|
3964
|
+
reducedMotion is already in component scope (R29 a11y
|
|
3965
|
+
blanket reads it via a useEffect listener); R513 just
|
|
3966
|
+
exposes it as a stable attribute handle.
|
|
3967
|
+
Use cases:
|
|
3968
|
+
- Playwright: assert reduced-motion gates from one attr
|
|
3969
|
+
read instead of mocking media-query state per test
|
|
3970
|
+
- External CSS hooks: `[data-topo-prefers-reduced-motion=
|
|
3971
|
+
"true"]` to apply paint-only overrides (e.g. mute
|
|
3972
|
+
hover glows entirely on a11y instead of just
|
|
3973
|
+
disabling transitions)
|
|
3974
|
+
- Future polish rounds: any motion-gated render can
|
|
3975
|
+
read this attr server-side without the media-query
|
|
3976
|
+
hydration mismatch risk
|
|
3977
|
+
'true' / 'false' string values (consistent with R466/R467
|
|
3978
|
+
boolean attrs). */
|
|
3979
|
+
data-topo-prefers-reduced-motion={reducedMotion ? 'true' : 'false'}
|
|
3980
|
+
/* Round 515 / Loop — 16th canvas state attr. Surfaces the
|
|
3981
|
+
fullscreen-mode state directly on root SVG so external
|
|
3982
|
+
consumers don't have to traverse the chrome strip's
|
|
3983
|
+
`data-topo-chrome-fullscreen-active` button attr (which
|
|
3984
|
+
measures the BUTTON state, not the canvas state — they
|
|
3985
|
+
agree, but reading from the root is semantically cleaner
|
|
3986
|
+
for canvas-state probes).
|
|
3987
|
+
Composed from existing isFullscreen React state (R103
|
|
3988
|
+
fullscreen toggle).
|
|
3989
|
+
Use cases:
|
|
3990
|
+
- Playwright: assert canvas mode in one attr read
|
|
3991
|
+
(paired with R471 data-topo-layout for ring/grid +
|
|
3992
|
+
R487 data-topo-zoom for zoom level + R513 reduced-
|
|
3993
|
+
motion for a11y mode = 4-axis canvas-mode probe)
|
|
3994
|
+
- External CSS: `[data-topo-fullscreen="true"]` to
|
|
3995
|
+
apply fullscreen-only paint adjustments outside the
|
|
3996
|
+
React tree (e.g. body-level scrollbar hide)
|
|
3997
|
+
'true' / 'false' string values (consistent with R466/
|
|
3998
|
+
R467/R513 boolean attrs). */
|
|
3999
|
+
data-topo-fullscreen={isFullscreen ? 'true' : 'false'}
|
|
4000
|
+
/* Round 516 / Loop — 17th canvas state attr. Surfaces the
|
|
4001
|
+
grid layout's content-bottom y-coordinate so tests can
|
|
4002
|
+
verify grid content doesn't extend past the viewBox or
|
|
4003
|
+
collide with chrome elements positioned below the canvas.
|
|
4004
|
+
Composed from existing gridContentBottom derived state
|
|
4005
|
+
(computed at line ~915 from gy0 + totalRows * cellH + 8).
|
|
4006
|
+
In ring layout, gridContentBottom is 0 (no grid). In grid
|
|
4007
|
+
layout it's the actual pixel y-coordinate where the
|
|
4008
|
+
cluster bands end.
|
|
4009
|
+
Use cases:
|
|
4010
|
+
- Playwright: assert grid layout doesn't exceed viewBox
|
|
4011
|
+
height (680) without re-computing the layout math
|
|
4012
|
+
- External CSS: `[data-topo-grid-content-bottom='0']` to
|
|
4013
|
+
distinguish ring-mode (no grid content) from grid-mode
|
|
4014
|
+
in CSS without parsing layout attr
|
|
4015
|
+
- Future polish gates: if cluster count grows large
|
|
4016
|
+
enough to push grid bottom past viewBox, can trigger
|
|
4017
|
+
a 'compact' mode automatically */
|
|
4018
|
+
data-topo-grid-content-bottom={gridContentBottom}
|
|
4019
|
+
data-topo-pinned-aspect={(() => {
|
|
4020
|
+
const aspects: string[] = [];
|
|
4021
|
+
if (pinnedStatus) aspects.push('status');
|
|
4022
|
+
if (pinnedGroup) aspects.push('group');
|
|
4023
|
+
if (pinnedVendor) aspects.push('vendor');
|
|
4024
|
+
if (pinnedEdgeKey) aspects.push('edge');
|
|
4025
|
+
if (aspects.length === 0) return 'none';
|
|
4026
|
+
if (aspects.length === 1) return aspects[0];
|
|
4027
|
+
return 'multi';
|
|
4028
|
+
})()}
|
|
3589
4029
|
/* Round 466 / Loop — aggregate hover signal on the root SVG.
|
|
3590
4030
|
Exposes a single boolean `data-topo-any-hover` that
|
|
3591
4031
|
reflects whether ANY hover state in the topology is
|
|
@@ -3828,7 +4268,38 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3828
4268
|
const x = ((seed * 13) % 1000);
|
|
3829
4269
|
const y = ((seed * 7) % 680);
|
|
3830
4270
|
const r = (i % 3 === 0) ? 1.2 : 0.7;
|
|
3831
|
-
|
|
4271
|
+
/* Round 523 / Loop — 配色 family extension to a 3rd anchor.
|
|
4272
|
+
Pre-R523 all 14 starfield dots painted at the same
|
|
4273
|
+
hardcoded `#a5b4fc` (indigo-300). The starfield's role
|
|
4274
|
+
is atmospheric depth (R45, R291 comment), but a flat
|
|
4275
|
+
single-hue field reads more like a regular dot grid
|
|
4276
|
+
than a star field — real starlight has color
|
|
4277
|
+
temperature variation (blue-white hot stars / yellow
|
|
4278
|
+
sun-like / cool red).
|
|
4279
|
+
R523 cycles a 3-color deterministic rotation based on
|
|
4280
|
+
`i % 3`:
|
|
4281
|
+
i % 3 === 0 → #a5b4fc indigo-300 (original, cool)
|
|
4282
|
+
i % 3 === 1 → #67e8f9 cyan-300 (cyber accent, hot)
|
|
4283
|
+
i % 3 === 2 → #cbd5e1 slate-300 (neutral, warm white)
|
|
4284
|
+
All three hues sit inside the cyber theme's palette
|
|
4285
|
+
family (indigo / cyan / slate) so the starfield reads
|
|
4286
|
+
varied-but-coherent rather than rainbow. At opacity
|
|
4287
|
+
0.5 (parent <g>) * 0.35-0.50 (per-dot) the temperature
|
|
4288
|
+
shifts are gentle but perceptible — closes the gap
|
|
4289
|
+
between 'dot grid' and 'star field'.
|
|
4290
|
+
配色 family extension (3 anchors): R509/R510 hub-
|
|
4291
|
+
highlight cross-theme fill + R523 starfield color
|
|
4292
|
+
temperature variation. Light theme unaffected
|
|
4293
|
+
(starfield gated `!isLight` so light theme stays
|
|
4294
|
+
clean per R45's original 'white surface stays clean'
|
|
4295
|
+
intent).
|
|
4296
|
+
Deterministic on `i` — no JS hydration mismatch,
|
|
4297
|
+
same SSR/client output. data-topo-starfield-dot-hue
|
|
4298
|
+
attr exposes the resolved hue category for tests. */
|
|
4299
|
+
const hues = ['#a5b4fc', '#67e8f9', '#cbd5e1'] as const;
|
|
4300
|
+
const hueNames = ['indigo', 'cyan', 'slate'] as const;
|
|
4301
|
+
const hueIdx = i % 3;
|
|
4302
|
+
return <circle key={i} cx={x} cy={y} r={r} fill={hues[hueIdx]} opacity={0.35 + (i % 4) * 0.05} data-topo-starfield-dot={i} data-topo-starfield-dot-hue={hueNames[hueIdx]} />;
|
|
3832
4303
|
})}
|
|
3833
4304
|
</g>
|
|
3834
4305
|
)}
|
|
@@ -4366,8 +4837,43 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4366
4837
|
data-topo-hub-spoke-stroke-width={spokeStrokeWidth}
|
|
4367
4838
|
data-topo-hub-spoke-stroke-width-active="2.25"
|
|
4368
4839
|
data-topo-hub-spoke-linecap="round"
|
|
4840
|
+
/* Round 533 / Loop — extends drop-shadow visual-polish
|
|
4841
|
+
family to a 9th anchor: hub spokes gain filter:drop-
|
|
4842
|
+
shadow glow on hub-hover. Subtle 1.5px cyan/teal blur
|
|
4843
|
+
applied across ALL spokes simultaneously when the
|
|
4844
|
+
user hovers the hub — the network mesh visually
|
|
4845
|
+
"lights up" in response to focal attention. Sibling
|
|
4846
|
+
to R476 hub-digit + R532 hub-highlight glow at the
|
|
4847
|
+
same gate (hoveredHub && !reducedMotion); together
|
|
4848
|
+
the three anchors (digit + highlight disc + spokes)
|
|
4849
|
+
form a unified focal-cluster glow that signals
|
|
4850
|
+
"you're focused on the hub" across geometry,
|
|
4851
|
+
paint, and mesh-extent axes.
|
|
4852
|
+
Theme-aware glow palette matches the spoke stroke
|
|
4853
|
+
family:
|
|
4854
|
+
light: rgba(13, 148, 136, 0.4) teal-600
|
|
4855
|
+
cyber: rgba(34, 211, 238, 0.4) cyan-400
|
|
4856
|
+
0.4 alpha keeps the glow subtle across N spokes
|
|
4857
|
+
(30+ at peak fleet sizes) — loud bloom across many
|
|
4858
|
+
edges would compete with the focal cluster itself.
|
|
4859
|
+
1.5px blur is conservative; tuned so each spoke
|
|
4860
|
+
gains a faint outer halo rather than a wide bloom.
|
|
4861
|
+
filter is paint-only; bbox unchanged; existing
|
|
4862
|
+
R241 transition list extends to 'filter 250ms
|
|
4863
|
+
ease-out' matching the spoke transition cadence
|
|
4864
|
+
(250ms, distinct from the 200ms hub-cluster
|
|
4865
|
+
cadence — spokes ease slightly slower since they
|
|
4866
|
+
respond to per-alias state, not just hub state).
|
|
4867
|
+
data-topo-hub-spoke-glow attr exposes the gate
|
|
4868
|
+
state for tests. */
|
|
4869
|
+
data-topo-hub-spoke-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
4369
4870
|
style={{
|
|
4370
|
-
transition: 'stroke 250ms ease-out, stroke-width 250ms ease-out, opacity 250ms ease-out',
|
|
4871
|
+
transition: 'stroke 250ms ease-out, stroke-width 250ms ease-out, opacity 250ms ease-out, filter 250ms ease-out',
|
|
4872
|
+
filter: !reducedMotion && hoveredHub
|
|
4873
|
+
? (isLight
|
|
4874
|
+
? 'drop-shadow(0 0 1.5px rgba(13, 148, 136, 0.4))'
|
|
4875
|
+
: 'drop-shadow(0 0 1.5px rgba(34, 211, 238, 0.4))')
|
|
4876
|
+
: undefined,
|
|
4371
4877
|
...(isActiveSpoke ? {} : {
|
|
4372
4878
|
animationDelay: `${-(idx * 0.25)}s`,
|
|
4373
4879
|
// CSS var consumed by `.anet-topo-spoke-flow`
|
|
@@ -4515,12 +5021,75 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4515
5021
|
// pinned → fill 0.08 / 0.13, stroke 3 px (locked)
|
|
4516
5022
|
// hovered → fill 0.05 / 0.09, stroke 2 px (inspecting)
|
|
4517
5023
|
// idle → fill 0.025 / 0.045, stroke 1.5 px dashed
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
5024
|
+
/* Round 506 / Loop — category-differentiation family
|
|
5025
|
+
3rd anchor. Orphan band rest-state fillOpacity drops
|
|
5026
|
+
slightly below prefix-group rest (0.025/0.045 →
|
|
5027
|
+
0.015/0.028). Adds a 3rd independent paint
|
|
5028
|
+
differentiator to the orphan visual signature:
|
|
5029
|
+
R499 fontStyle: italic (label text)
|
|
5030
|
+
R503 '3 6' dash pattern (rect stroke)
|
|
5031
|
+
R506 lower fillOpacity (rect fill) ← this round
|
|
5032
|
+
Three independent channels (typography + stroke
|
|
5033
|
+
pattern + fill density) collectively encode the
|
|
5034
|
+
catchall semantic at rest. Pin and hover branches
|
|
5035
|
+
UNCHANGED (still 0.05/0.09 hover, 0.08/0.13 pin) —
|
|
5036
|
+
orphan box gets full visual emphasis on inspection
|
|
5037
|
+
identical to prefix groups; the differentiation
|
|
5038
|
+
lives ONLY in the unsolicited rest state. The
|
|
5039
|
+
~40% drop (0.045 → 0.028 cyber, 0.025 → 0.015
|
|
5040
|
+
light) is subtle enough that the orphan box stays
|
|
5041
|
+
visible at rest, just quieter — matches the
|
|
5042
|
+
"misc bucket, less attention-deserving" semantic
|
|
5043
|
+
without losing the visual anchor.
|
|
5044
|
+
Pure paint axis; bbox unchanged; R51 SVG sentinel
|
|
5045
|
+
safety untouched (overlap-test gates to g[data-
|
|
5046
|
+
node], cluster rect invisible to it).
|
|
5047
|
+
data-group-box-fill-opacity attr surfaces the
|
|
5048
|
+
resolved value for tests. */
|
|
5049
|
+
fillOpacity={
|
|
5050
|
+
isPinned ? (isLight ? 0.08 : 0.13)
|
|
5051
|
+
: isHovered ? (isLight ? 0.05 : 0.09)
|
|
5052
|
+
: box.isOrphan ? (isLight ? 0.015 : 0.028)
|
|
5053
|
+
: (isLight ? 0.025 : 0.045)
|
|
5054
|
+
}
|
|
5055
|
+
data-group-box-fill-opacity={
|
|
5056
|
+
isPinned ? (isLight ? 0.08 : 0.13)
|
|
5057
|
+
: isHovered ? (isLight ? 0.05 : 0.09)
|
|
5058
|
+
: box.isOrphan ? (isLight ? 0.015 : 0.028)
|
|
5059
|
+
: (isLight ? 0.025 : 0.045)
|
|
5060
|
+
}
|
|
4521
5061
|
stroke={(isPinned || isHovered) ? pal.legendAccent : pal.ringStroke}
|
|
4522
5062
|
strokeWidth={isPinned ? 3 : isHovered ? 2 : 1.5}
|
|
4523
|
-
|
|
5063
|
+
/* Round 503 / Loop — category-differentiation family
|
|
5064
|
+
2nd anchor (R499 = orphan label italic, 1st anchor).
|
|
5065
|
+
Orphan band rest-state strokeDasharray switches from
|
|
5066
|
+
'6 6' (prefix-group default) to '3 6' (tighter
|
|
5067
|
+
dashes). Pre-R503 the rect dash pattern was uniform
|
|
5068
|
+
across all bands; combined with R499's italic label,
|
|
5069
|
+
the orphan box now has TWO independent paint/
|
|
5070
|
+
typography differentiators at rest:
|
|
5071
|
+
R499 fontStyle: italic (label text)
|
|
5072
|
+
R503 '3 6' dash pattern (rect stroke) ← this round
|
|
5073
|
+
The R85 marching-ants animation continues to work
|
|
5074
|
+
with the new dash size (uses --march-dur custom
|
|
5075
|
+
property, dash-length-agnostic) — orphan's ants
|
|
5076
|
+
just have a different visual rhythm than prefix-
|
|
5077
|
+
group ants, reinforcing the catchall semantic.
|
|
5078
|
+
Pinned/hovered orphan still gets 'none' (solid
|
|
5079
|
+
stroke) so the hover/pin affordance is preserved
|
|
5080
|
+
— the differentiation lives ONLY in the rest
|
|
5081
|
+
state, never blocking inspection.
|
|
5082
|
+
Pure paint axis; no geometry change; bbox unchanged
|
|
5083
|
+
(strokeDasharray is paint-only). R51 SVG sentinel
|
|
5084
|
+
safety untouched (overlap-test gates to g[data-
|
|
5085
|
+
node], this cluster rect is invisible to it).
|
|
5086
|
+
data-group-box-orphan attr surfaces the gate for
|
|
5087
|
+
tests + future polish references. */
|
|
5088
|
+
strokeDasharray={
|
|
5089
|
+
(isPinned || isHovered) ? 'none' :
|
|
5090
|
+
box.isOrphan ? '3 6' : '6 6'
|
|
5091
|
+
}
|
|
5092
|
+
data-group-box-orphan={box.isOrphan ? 'true' : 'false'}
|
|
4524
5093
|
/* Round 380 / Loop: cluster box stroke gets round
|
|
4525
5094
|
linecap + round linejoin. Sibling SVG stroke-
|
|
4526
5095
|
softening polish to R378 flow-rail linecap + R379
|
|
@@ -4864,17 +5433,63 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4864
5433
|
transition list extends to include 'filter 200ms
|
|
4865
5434
|
ease-out' alongside the existing fill/ls/fw/opacity
|
|
4866
5435
|
200ms tweens. */
|
|
4867
|
-
|
|
5436
|
+
/* Round 538 / Loop — extends R479 group-label drop-
|
|
5437
|
+
shadow from pin-only to ALSO fire on hover, with
|
|
5438
|
+
a 2-tier alpha ladder matching the R432 letter-
|
|
5439
|
+
spacing 3-tier (hover at 0.25px / pin at 0.5px)
|
|
5440
|
+
pattern. Pre-R538 the paint axis was binary (lit
|
|
5441
|
+
on pin, dark on hover); R538 adds a softer hover
|
|
5442
|
+
glow that distinguishes from the stronger pin
|
|
5443
|
+
glow without losing the "active state lights up"
|
|
5444
|
+
gesture.
|
|
5445
|
+
2-tier alpha ladder:
|
|
5446
|
+
pin (committed) cyan 80 hex (~50% alpha)
|
|
5447
|
+
hover (preview) cyan 4d hex (~30% alpha)
|
|
5448
|
+
rest none
|
|
5449
|
+
Pin signature stays distinctively brighter, but
|
|
5450
|
+
hover now telegraphs paint-axis attention too.
|
|
5451
|
+
Sibling to R534 edge-badge hover-precedence
|
|
5452
|
+
extension at the drop-shadow family. R479 hue
|
|
5453
|
+
(pal.legendAccent) preserved across both tiers.
|
|
5454
|
+
data-group-label-glow attr upgraded from binary
|
|
5455
|
+
('true'/'false') to 3-value ('pin' | 'hover' |
|
|
5456
|
+
'false') so tests can distinguish gate cause. */
|
|
5457
|
+
data-group-label-glow={isPinned ? 'pin' : isHovered ? 'hover' : 'false'}
|
|
5458
|
+
/* Round 499 / Loop — orphan band "其他" label gets
|
|
5459
|
+
fontStyle: italic to visually distinguish the
|
|
5460
|
+
catchall from real prefix-group bands. Pre-R499
|
|
5461
|
+
the orphan box label rendered identically to
|
|
5462
|
+
prefix-group labels (Hero D fontSize=9, fw=700,
|
|
5463
|
+
opacity 0.55 rest), so users had to read the
|
|
5464
|
+
literal text "其他" to identify the catchall. R499
|
|
5465
|
+
adds a pure-typography differentiation: italic
|
|
5466
|
+
signals "this is the misc bucket, not a real
|
|
5467
|
+
named group" while preserving full opacity
|
|
5468
|
+
affordance on hover/pin — the orphan box stays
|
|
5469
|
+
equally inspectable, just typographically marked
|
|
5470
|
+
as a different category. No geometry change
|
|
5471
|
+
(italic shifts glyph slant within the same bbox),
|
|
5472
|
+
no opacity loss, no behavior change. Sibling to
|
|
5473
|
+
R432 letter-spacing 3-tier + R457 pin fw-lift +
|
|
5474
|
+
R479 pin drop-shadow at the group-label scope.
|
|
5475
|
+
Falls under 配色 / 节点视觉 themes per the prompt;
|
|
5476
|
+
advances the "信息密度" axis by encoding
|
|
5477
|
+
category-distinction into a single typography
|
|
5478
|
+
channel without adding visual chrome. */
|
|
4868
5479
|
style={{
|
|
4869
5480
|
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out, opacity 200ms ease-out, filter 200ms ease-out',
|
|
4870
5481
|
letterSpacing: isPinned ? '0.5px' :
|
|
4871
5482
|
isHovered ? '0.25px' : '0px',
|
|
5483
|
+
fontStyle: box.isOrphan ? 'italic' : undefined,
|
|
4872
5484
|
filter: isPinned
|
|
4873
5485
|
? `drop-shadow(0 0 3px ${pal.legendAccent}80)`
|
|
4874
|
-
:
|
|
5486
|
+
: isHovered
|
|
5487
|
+
? `drop-shadow(0 0 3px ${pal.legendAccent}4d)`
|
|
5488
|
+
: undefined,
|
|
4875
5489
|
}}
|
|
4876
5490
|
data-group-label={box.key}
|
|
4877
5491
|
data-group-label-pinned={isPinned ? 'true' : 'false'}
|
|
5492
|
+
data-group-label-orphan={box.isOrphan ? 'true' : 'false'}
|
|
4878
5493
|
>
|
|
4879
5494
|
{box.key}
|
|
4880
5495
|
{/* Round 19 / Loop: member-count chip. Inline tspan stays
|
|
@@ -5961,11 +6576,48 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
5961
6576
|
data-edge-badge-opacity-rest={isLight ? 0.95 : 0.85}
|
|
5962
6577
|
data-edge-badge-opacity-hover="1"
|
|
5963
6578
|
data-edge-badge-opacity-active="1"
|
|
5964
|
-
data-edge-badge-glow={isHot ? '
|
|
6579
|
+
data-edge-badge-glow={(isHoveredEdge || isPinned) ? 'hover' : isHot ? 'hot' : 'false'}
|
|
6580
|
+
/* Round 534 / Loop — extends edge-badge drop-shadow
|
|
6581
|
+
coverage from hot-only (R480 amber) to also fire
|
|
6582
|
+
on hover/pin with a cyan accent glow. Pre-R534
|
|
6583
|
+
the badge's hover/pin lifted r (R164 9 → 10.5)
|
|
6584
|
+
+ sw (R394 1.25 → 1.5) + opacity (R395/R396 →
|
|
6585
|
+
1.0), but the paint axis stayed at the badge's
|
|
6586
|
+
rest fill — no glow to telegraph "in focus" at
|
|
6587
|
+
the paint layer. R534 closes that 4-axis hover-
|
|
6588
|
+
lift parity by adding drop-shadow glow on
|
|
6589
|
+
(hovered || pinned).
|
|
6590
|
+
Precedence: (hover || pin) wins over isHot when
|
|
6591
|
+
BOTH true — interactive signal (user is
|
|
6592
|
+
inspecting) overrides informational signal
|
|
6593
|
+
(hot lane). When only isHot fires (no hover/
|
|
6594
|
+
pin) the amber R480 glow remains; the hover/
|
|
6595
|
+
pin case paints cyan/teal `pal.legendAccent`
|
|
6596
|
+
at 0x99 alpha (~60%) — bright enough to read
|
|
6597
|
+
as "lit" but won't overwhelm at small badge
|
|
6598
|
+
size (r=10.5).
|
|
6599
|
+
Edge-badge 4-axis hover-lift parity now:
|
|
6600
|
+
R164 r 9 → 10.5
|
|
6601
|
+
R394 stroke-wd 1.25 → 1.5
|
|
6602
|
+
R395 opacity rest → 1.0
|
|
6603
|
+
R534 filter none → drop-shadow glow ← this round
|
|
6604
|
+
Drop-shadow visual-polish family extension —
|
|
6605
|
+
edge-badge surface upgraded from single-gate
|
|
6606
|
+
(R480 isHot) to two-gate (isHot OR hover-pin).
|
|
6607
|
+
transition list already includes filter 200ms
|
|
6608
|
+
ease-out (R480). data-edge-badge-glow attr
|
|
6609
|
+
upgraded from `isHot ? true : false` to a
|
|
6610
|
+
3-value string: 'hot' | 'hover' | 'false' so
|
|
6611
|
+
tests can distinguish gate cause.
|
|
6612
|
+
R51 sentinel safety: badge is edge-internal
|
|
6613
|
+
(not g[data-node] ancestor); filter is paint-
|
|
6614
|
+
only; bbox unchanged. */
|
|
5965
6615
|
style={{
|
|
5966
|
-
filter:
|
|
5967
|
-
? `drop-shadow(0 0 3px ${
|
|
5968
|
-
:
|
|
6616
|
+
filter: (isHoveredEdge || isPinned)
|
|
6617
|
+
? `drop-shadow(0 0 3px ${pal.legendAccent}99)`
|
|
6618
|
+
: isHot
|
|
6619
|
+
? `drop-shadow(0 0 3px ${hotStroke}80)`
|
|
6620
|
+
: undefined,
|
|
5969
6621
|
transition: 'r 180ms ease-out, stroke 300ms ease-out, stroke-width 300ms ease-out, fill 200ms ease-out, opacity 200ms ease-out, filter 200ms ease-out',
|
|
5970
6622
|
}}
|
|
5971
6623
|
/>
|
|
@@ -6265,6 +6917,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6265
6917
|
data-hub-busyness={busy}
|
|
6266
6918
|
data-topo-hub-halo-radius={haloR}
|
|
6267
6919
|
data-topo-hub-halo-hovered={isHaloHovered ? 'true' : 'false'}
|
|
6920
|
+
data-topo-hub-halo-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
6268
6921
|
data-topo-hub-halo-trough={isLight ? troughLight : troughDark}
|
|
6269
6922
|
data-topo-hub-halo-peak={isLight ? peakLight : peakDark}
|
|
6270
6923
|
/* Round 253 / Loop: hub grounding halo fill transition
|
|
@@ -6276,10 +6929,45 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6276
6929
|
conflict.
|
|
6277
6930
|
R451: r as CSS property (R197/R198 idiom) so the
|
|
6278
6931
|
hover-radius tween eases smoothly under the same
|
|
6279
|
-
200ms cadence as fill.
|
|
6932
|
+
200ms cadence as fill.
|
|
6933
|
+
R536: extends hub-cluster glow QUARTET (R476 digit
|
|
6934
|
+
+ R532 disc + R535 ring + R533 spokes) to a 5th
|
|
6935
|
+
tier — the halo gains drop-shadow at the outermost
|
|
6936
|
+
concentric ring on hub-hover. 2px blur + 0.3 alpha
|
|
6937
|
+
keeps the halo's glow subtle since (a) the halo is
|
|
6938
|
+
the LARGEST hub element (r=22 hover) and a heavier
|
|
6939
|
+
glow would bleed visibly past the ring tier into
|
|
6940
|
+
the spoke origin, and (b) the halo already SMIL-
|
|
6941
|
+
animates opacity (R84/R244 breath), so the visible
|
|
6942
|
+
glow pulses with the breath — an atmospheric
|
|
6943
|
+
"breathing glow" idiom rather than a static rim.
|
|
6944
|
+
Hub-cluster glow QUINTET (R476/R532/R533/R535/R536):
|
|
6945
|
+
digit (typo center) 3px emerald 0.6
|
|
6946
|
+
disc (r=5.5/6) 3px emerald 0.6
|
|
6947
|
+
ring (r=14/17) 3px emerald 0.5
|
|
6948
|
+
halo (r=20/22) 2px emerald 0.3 ← this round
|
|
6949
|
+
spokes (mesh) 1.5px cyan/teal 0.4
|
|
6950
|
+
Emerald palette continues through the focal-disc
|
|
6951
|
+
family (digit/disc/ring/halo); spokes break out
|
|
6952
|
+
into cyan/teal at the mesh tier. The 4-step alpha
|
|
6953
|
+
ladder 0.6→0.6→0.5→0.3 reads as the focal cluster
|
|
6954
|
+
fading outward — the OUTERMOST emerald glow is the
|
|
6955
|
+
softest, the focal digit is the brightest.
|
|
6956
|
+
filter is paint-only; SMIL animate on opacity
|
|
6957
|
+
continues independently (attribute vs CSS-property
|
|
6958
|
+
non-conflicting). transition list extends to
|
|
6959
|
+
'filter 200ms ease-out' alongside fill + r.
|
|
6960
|
+
Drop-shadow visual-polish family extension (12
|
|
6961
|
+
anchors). preview.50 milestone round. data-topo-
|
|
6962
|
+
hub-halo-glow attr exposes the gate state. */
|
|
6280
6963
|
style={{
|
|
6281
6964
|
r: `${haloR}px`,
|
|
6282
|
-
|
|
6965
|
+
filter: !reducedMotion && hoveredHub
|
|
6966
|
+
? (isLight
|
|
6967
|
+
? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.3))'
|
|
6968
|
+
: 'drop-shadow(0 0 2px rgba(52, 211, 153, 0.3))')
|
|
6969
|
+
: undefined,
|
|
6970
|
+
transition: 'fill 200ms ease-out, r 200ms ease-out, filter 200ms ease-out',
|
|
6283
6971
|
} as React.CSSProperties}
|
|
6284
6972
|
>
|
|
6285
6973
|
{/* Round 244 / Loop: hub grounding halo breath gets
|
|
@@ -6489,22 +7177,91 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6489
7177
|
so the glow eases under the same cadence as the
|
|
6490
7178
|
scale + fw + fill axes. */
|
|
6491
7179
|
data-topo-hub-working-count-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
7180
|
+
/* Round 507 / Loop — focal recede. When ANY non-hub
|
|
7181
|
+
canvas surface is hovered (a node / an edge / a
|
|
7182
|
+
group label / a legend row / a vendor chip), the
|
|
7183
|
+
hub-center workingCount digit fades to 0.85 opacity,
|
|
7184
|
+
signaling "you're inspecting elsewhere, hub recedes
|
|
7185
|
+
to background." When the user un-hovers (or hovers
|
|
7186
|
+
the hub itself), opacity returns to 1.0. Pure paint
|
|
7187
|
+
polish at the canvas's most prominent focal point.
|
|
7188
|
+
Hits 信息密度 + 动效 themes — the hub digit gives
|
|
7189
|
+
way visually to the surface under inspection,
|
|
7190
|
+
reinforcing the "this is the focal point right now"
|
|
7191
|
+
gesture without requiring users to track which
|
|
7192
|
+
surface holds attention.
|
|
7193
|
+
Gate excludes hoveredHub specifically: hovering the
|
|
7194
|
+
hub itself should LIFT the digit (R425 fw bump +
|
|
7195
|
+
R476 glow + R209 scale 1.08) — the existing hover-
|
|
7196
|
+
on-hub signature is intact; only inspection
|
|
7197
|
+
ELSEWHERE recedes the hub.
|
|
7198
|
+
Composed from existing hoveredAlias / hoveredEdge-
|
|
7199
|
+
Key / hoveredGroupLabel / hoveredStatus / hovered-
|
|
7200
|
+
Vendor — no new state. 300ms ease-out opacity
|
|
7201
|
+
transition already in the style list (existing R213
|
|
7202
|
+
transition spec), so the fade rides on existing
|
|
7203
|
+
infrastructure.
|
|
7204
|
+
data-topo-hub-recede attr surfaces the gate state
|
|
7205
|
+
for tests. */
|
|
7206
|
+
data-topo-hub-recede={
|
|
7207
|
+
(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
7208
|
+
hoveredStatus || hoveredVendor) && !hoveredHub ? 'true' : 'false'
|
|
7209
|
+
}
|
|
7210
|
+
/* Round 527 / Loop — focal-amplify family extension to a
|
|
7211
|
+
2nd anchor. R511 introduced focal-amplify at the hub-
|
|
7212
|
+
highlight disc (base opacity 0.95 → 1.0 on hover); R527
|
|
7213
|
+
extends to the hub-center workingCount digit with a
|
|
7214
|
+
letter-spacing tween 0 → 0.3px on hub-hover.
|
|
7215
|
+
Composes with existing 3-axis hub-hover signature on
|
|
7216
|
+
this element:
|
|
7217
|
+
R209 transform scale(1.08) geometry
|
|
7218
|
+
R425 fontWeight 700 → 800 typography weight
|
|
7219
|
+
R476 filter drop-shadow glow paint
|
|
7220
|
+
R527 letter-spacing 0 → 0.3px typography kerning ← this round
|
|
7221
|
+
tabular-nums (R225) preserved — each digit cell keeps
|
|
7222
|
+
fixed width; the inter-digit advance grows by 0.3px
|
|
7223
|
+
per gap. Single-digit counts (1-9) show no kerning
|
|
7224
|
+
effect; multi-digit counts (10+) show the spread as
|
|
7225
|
+
info-density signaling. Sibling to R427/R431/R432/
|
|
7226
|
+
R433/R434 (hover-letter-spacing family at panel-text
|
|
7227
|
+
scope) — R527 brings the same idiom to the canvas's
|
|
7228
|
+
most-read scalar.
|
|
7229
|
+
Reduced-motion gate matches R209 scale, R425 fw, R476
|
|
7230
|
+
filter — !reducedMotion gates the lift; reducedMotion
|
|
7231
|
+
users see static digit baseline regardless of hover.
|
|
7232
|
+
Focal-amplify family extension (2 anchors): R511 hub-
|
|
7233
|
+
highlight opacity / R527 hub-digit letter-spacing.
|
|
7234
|
+
transition list extends to include `letter-spacing
|
|
7235
|
+
200ms ease-out`, matching the cadence of the other
|
|
7236
|
+
hub-hover axes. data-topo-hub-working-count-letter-
|
|
7237
|
+
spacing attr exposes the resolved value for tests. */
|
|
7238
|
+
data-topo-hub-working-count-letter-spacing={!reducedMotion && hoveredHub ? '0.3px' : '0px'}
|
|
6492
7239
|
style={{
|
|
6493
7240
|
pointerEvents: 'none',
|
|
6494
7241
|
transform: !reducedMotion && hoveredHub ? 'scale(1.08)' : 'scale(1)',
|
|
6495
7242
|
transformBox: 'fill-box',
|
|
6496
7243
|
transformOrigin: 'center',
|
|
7244
|
+
opacity: (hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
7245
|
+
hoveredStatus || hoveredVendor) && !hoveredHub
|
|
7246
|
+
? 0.85
|
|
7247
|
+
: 1,
|
|
6497
7248
|
filter: !reducedMotion && hoveredHub
|
|
6498
7249
|
? (isLight
|
|
6499
7250
|
? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.6))'
|
|
6500
7251
|
: 'drop-shadow(0 0 3px rgba(52, 211, 153, 0.6))')
|
|
6501
7252
|
: undefined,
|
|
7253
|
+
letterSpacing: !reducedMotion && hoveredHub ? '0.3px' : '0px',
|
|
6502
7254
|
/* R425: font-weight 200ms appended so the hover fw
|
|
6503
7255
|
bump 700 → 800 eases under the same cadence as
|
|
6504
7256
|
R209 scale + R253 fill + R213 opacity.
|
|
6505
7257
|
R476: filter 200ms appended so the new drop-
|
|
6506
|
-
shadow glow eases at the same cadence.
|
|
6507
|
-
|
|
7258
|
+
shadow glow eases at the same cadence.
|
|
7259
|
+
R507: opacity 300ms (existing in list) covers
|
|
7260
|
+
the new focal-recede fade.
|
|
7261
|
+
R527: letter-spacing 200ms appended so the new
|
|
7262
|
+
hover-kerning bump eases at the same cadence
|
|
7263
|
+
as the other axes. */
|
|
7264
|
+
transition: 'transform 200ms ease-out, opacity 300ms ease-out, fill 200ms ease-out, font-weight 200ms ease-out, filter 200ms ease-out, letter-spacing 200ms ease-out',
|
|
6508
7265
|
fontVariantNumeric: 'tabular-nums',
|
|
6509
7266
|
}}
|
|
6510
7267
|
>
|
|
@@ -6550,19 +7307,205 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6550
7307
|
+ R213 always-mount opacity-gate + pointerEvents:none
|
|
6551
7308
|
+ R365 r=5.5 all preserved. data-topo-hub-highlight-
|
|
6552
7309
|
opacity attr exposes the resolved value for tests. */}
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
7310
|
+
{/* Round 508 / Loop — focal-recede pattern 2nd anchor.
|
|
7311
|
+
Extends R507's hub-digit recede to the hub-highlight
|
|
7312
|
+
circle so the hub focal CLUSTER (digit at z-top + this
|
|
7313
|
+
idle-state highlight beneath) recedes as a unit when
|
|
7314
|
+
canvas attention is elsewhere. Computed once: a single
|
|
7315
|
+
non-hub-hover gate drives BOTH the digit (R507) AND
|
|
7316
|
+
this highlight (R508) so they always co-move.
|
|
7317
|
+
Recede multiplies the visible opacity by 0.85 — when
|
|
7318
|
+
workingCount===0 the rest opacity 0.95 becomes 0.81
|
|
7319
|
+
during external-hover; when workingCount>0 the
|
|
7320
|
+
opacity stays 0 (invisible) regardless of recede.
|
|
7321
|
+
Additionally, when recede is active the SMIL breath
|
|
7322
|
+
animation halts (animate node un-mounts) so the
|
|
7323
|
+
receded state reads as quietly static, not pulsing
|
|
7324
|
+
at 0.85↔1.0 against the recede multiplier (which
|
|
7325
|
+
would visually conflict — competing 15% drops). On
|
|
7326
|
+
un-hover the animate re-mounts and breath resumes.
|
|
7327
|
+
data-topo-hub-recede on both digit AND highlight
|
|
7328
|
+
provides a stable test handle for the unified-recede
|
|
7329
|
+
gate.
|
|
7330
|
+
Composed from existing hover state vars — no new
|
|
7331
|
+
state. Pure paint axis. */}
|
|
7332
|
+
{(() => {
|
|
7333
|
+
const hubRecede = !!((hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
7334
|
+
hoveredStatus || hoveredVendor) && !hoveredHub);
|
|
7335
|
+
/* Round 511 / Loop — hub-highlight gains a 3rd opacity tier
|
|
7336
|
+
(hovered-amplify). Pre-R511 the highlight had 2 visible
|
|
7337
|
+
states: rest (0.95) and recede (0.81 = 0.95 × 0.85).
|
|
7338
|
+
When the hub itself was hovered, the digit got R425 fw
|
|
7339
|
+
lift + R476 drop-shadow + R209 scale-1.08, but the
|
|
7340
|
+
highlight disc sibling stayed at 0.95 — the focal
|
|
7341
|
+
cluster lifted in 3 channels (typography/paint/scale)
|
|
7342
|
+
but the highlight didn't participate.
|
|
7343
|
+
R511 closes that asymmetry: when hoveredHub is true,
|
|
7344
|
+
highlight base opacity lifts to 1.0 (5% boost from
|
|
7345
|
+
rest 0.95). Cluster now lifts as a unit on hub-hover,
|
|
7346
|
+
just like it recedes as a unit on non-hub-hover
|
|
7347
|
+
(R508).
|
|
7348
|
+
3-state opacity ladder:
|
|
7349
|
+
hub-hovered: baseOpacity = 1.0 (R511 NEW)
|
|
7350
|
+
rest (no hover): baseOpacity = 0.95 (existing)
|
|
7351
|
+
non-hub canvas hov: baseOpacity × 0.85 = 0.81 (R508)
|
|
7352
|
+
Composes cleanly: hubRecede gate requires !hoveredHub,
|
|
7353
|
+
so the hovered-amplify and recede states are mutually
|
|
7354
|
+
exclusive (they can't both fire). breathActive
|
|
7355
|
+
continues to halt on either non-rest state (recede OR
|
|
7356
|
+
hub-hover would visually compete with the 0.85↔1
|
|
7357
|
+
breath — clean for the unit-lift semantic too). */
|
|
7358
|
+
const baseOpacity = workingCount > 0 ? 0
|
|
7359
|
+
: hoveredHub ? 1.0
|
|
7360
|
+
: 0.95;
|
|
7361
|
+
const resolvedOpacity = hubRecede ? baseOpacity * 0.85 : baseOpacity;
|
|
7362
|
+
const breathActive = !reducedMotion && workingCount === 0 && !hubRecede && !hoveredHub;
|
|
7363
|
+
/* Round 529 / Loop — focal-amplify family 3rd anchor.
|
|
7364
|
+
Hub-highlight gains geometric amplify r 5.5 → 6 on
|
|
7365
|
+
hub-hover, mirroring R451's hub-halo r 20 → 22 hover
|
|
7366
|
+
pattern. Pre-R529 the highlight had paint-axis
|
|
7367
|
+
amplify only (R511 opacity 0.95 → 1.0 on hub-hover);
|
|
7368
|
+
R529 adds geometric amplify so the focal disc
|
|
7369
|
+
BREATHES outward on hub attention, like the halo
|
|
7370
|
+
does. Composes with the existing 2-axis hub-hover
|
|
7371
|
+
lift on this element:
|
|
7372
|
+
R511 opacity 0.95 → 1.0 paint (focal-amplify 1st)
|
|
7373
|
+
R529 r 5.5 → 6 geometry (this round)
|
|
7374
|
+
Implementation matches R451: CSS `r` property
|
|
7375
|
+
(R197/R198 idiom) for smooth interpolation. SVG
|
|
7376
|
+
attribute `r="5.5"` provides SSR fallback and serves
|
|
7377
|
+
as default; inline style.r overrides for animated
|
|
7378
|
+
value. transition list extends to include `r 200ms
|
|
7379
|
+
ease-out`, matching the fill cadence (also 200ms);
|
|
7380
|
+
opacity transition stays at 300ms (existing).
|
|
7381
|
+
r 6 sits well inside the existing visual envelope
|
|
7382
|
+
(next-larger sibling r=10 hub core, r=14 hub hover
|
|
7383
|
+
ring). The 0.5px lift is +9% radius / +19% area —
|
|
7384
|
+
enough to read as 'lift' without breaching the core
|
|
7385
|
+
boundary or invalidating overlap-test invariants.
|
|
7386
|
+
SMIL animate on opacity continues independently
|
|
7387
|
+
(animateAttr='opacity' vs CSS-property r — non-
|
|
7388
|
+
conflicting, same pattern R451 noted for halo).
|
|
7389
|
+
Focal-amplify family extension (3 anchors):
|
|
7390
|
+
R511 hub-highlight opacity 0.95 → 1.0
|
|
7391
|
+
R527 hub-digit letter-spacing 0 → 0.3px
|
|
7392
|
+
R529 hub-highlight radius 5.5 → 6 ← this round
|
|
7393
|
+
data-topo-hub-highlight-radius attr now reports the
|
|
7394
|
+
dynamic value (was static '5.5'). */
|
|
7395
|
+
const highlightR = !reducedMotion && hoveredHub ? 6 : 5.5;
|
|
7396
|
+
return (
|
|
7397
|
+
<circle
|
|
7398
|
+
cx={cx} cy={cy} r="5.5"
|
|
7399
|
+
/* Round 509 / Loop — 配色 cross-theme cleanup. Pre-R509
|
|
7400
|
+
the hub-highlight fill was hardcoded `#d1fae5`
|
|
7401
|
+
(emerald-100, a pale tone). On the light theme this
|
|
7402
|
+
near-white green ran against a pale background at
|
|
7403
|
+
0.95 opacity — the disc was effectively invisible.
|
|
7404
|
+
Matches the existing R253 halo theme-inversion
|
|
7405
|
+
pattern (line ~6481): light theme picks the dark
|
|
7406
|
+
vibrant emerald (#10b981 emerald-600), dark theme
|
|
7407
|
+
keeps the pale emerald (#d1fae5 emerald-100). Both
|
|
7408
|
+
read at the same 0.95 opacity against their
|
|
7409
|
+
respective backdrops — light gets a saturated
|
|
7410
|
+
focal dot; dark keeps the soft glow signature.
|
|
7411
|
+
Pure paint axis (fill change only); bbox unchanged;
|
|
7412
|
+
R51 SVG sentinel safety untouched.
|
|
7413
|
+
transition list already includes `fill 200ms`?
|
|
7414
|
+
Actually the existing transition spec is `opacity
|
|
7415
|
+
300ms ease-out` — fill change on theme toggle
|
|
7416
|
+
will be instant. That's acceptable: theme toggle
|
|
7417
|
+
is a discrete event, and the halo (line 6500)
|
|
7418
|
+
already snaps fill on theme toggle the same way
|
|
7419
|
+
(`fill 200ms ease-out` was added later to halo
|
|
7420
|
+
via R253). Future round could add `fill 200ms`
|
|
7421
|
+
to highlight too if theme-switch flicker is
|
|
7422
|
+
noticed. */
|
|
7423
|
+
fill={isLight ? '#10b981' : '#d1fae5'}
|
|
7424
|
+
opacity={resolvedOpacity}
|
|
7425
|
+
data-topo-hub-highlight
|
|
7426
|
+
data-topo-hub-highlight-visible={workingCount > 0 ? 'false' : 'true'}
|
|
7427
|
+
data-topo-hub-highlight-radius={highlightR}
|
|
7428
|
+
data-topo-hub-highlight-opacity={resolvedOpacity}
|
|
7429
|
+
data-topo-hub-highlight-breath={breathActive ? 'true' : 'false'}
|
|
7430
|
+
data-topo-hub-highlight-recede={hubRecede ? 'true' : 'false'}
|
|
7431
|
+
data-topo-hub-highlight-hovered={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
7432
|
+
data-topo-hub-highlight-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
7433
|
+
/* Round 510 / Loop — R509 follow-on: theme-toggle fill
|
|
7434
|
+
ease. Pre-R510 the hub-highlight transition spec only
|
|
7435
|
+
listed `opacity 300ms ease-out`. When R509 introduced
|
|
7436
|
+
theme-conditional fill (#d1fae5 ↔ #10b981), the fill
|
|
7437
|
+
change SNAPPED on theme toggle because the transition
|
|
7438
|
+
list didn't include `fill`. R510 extends to `fill
|
|
7439
|
+
200ms ease-out` so theme cycles smoothly through the
|
|
7440
|
+
emerald palette. 200ms timing matches the R253 halo
|
|
7441
|
+
fill transition (line ~6500) — both hub-cluster
|
|
7442
|
+
theme transitions now share a cadence so the focal
|
|
7443
|
+
cluster (digit + highlight + halo) eases as a unit.
|
|
7444
|
+
R508's recede opacity transition unchanged (300ms);
|
|
7445
|
+
fill is independent.
|
|
7446
|
+
R529: r as CSS property (R197/R198 idiom) + `r
|
|
7447
|
+
200ms ease-out` appended to transition list so
|
|
7448
|
+
the new hub-hover radius lift (5.5 → 6) eases
|
|
7449
|
+
under the same fill cadence. SVG attr r="5.5"
|
|
7450
|
+
above provides SSR fallback; inline style.r
|
|
7451
|
+
wins the cascade for the dynamic value.
|
|
7452
|
+
R532: filter drop-shadow glow on hub-hover —
|
|
7453
|
+
sibling to R476 hub-digit drop-shadow at the
|
|
7454
|
+
same gate (hoveredHub && !reducedMotion). Two
|
|
7455
|
+
adjacent hub focal elements (digit + highlight
|
|
7456
|
+
disc) now BOTH glow on hub-hover, reading as
|
|
7457
|
+
one unified focal cluster. Emerald palette
|
|
7458
|
+
matches R476:
|
|
7459
|
+
light: drop-shadow(0 0 2px rgba(16,185,129,0.6)) emerald-500
|
|
7460
|
+
cyber: drop-shadow(0 0 3px rgba(52,211,153,0.6)) emerald-400
|
|
7461
|
+
filter is paint-only (bbox unchanged); SMIL
|
|
7462
|
+
animate on opacity continues independently
|
|
7463
|
+
(animateAttr='opacity' vs CSS-property filter
|
|
7464
|
+
— non-conflicting). transition list extends to
|
|
7465
|
+
'filter 200ms ease-out' alongside fill/r.
|
|
7466
|
+
Drop-shadow visual-polish family extension
|
|
7467
|
+
(8 anchors): R476 hub-digit / R477 legend pin-
|
|
7468
|
+
ring / R478 recent freshness / hot edge / group
|
|
7469
|
+
label / zoom-state / node alias + R532 hub-
|
|
7470
|
+
highlight (this round). data-topo-hub-highlight-
|
|
7471
|
+
glow attr exposes the gate state. */
|
|
7472
|
+
style={{
|
|
7473
|
+
pointerEvents: 'none',
|
|
7474
|
+
r: `${highlightR}px`,
|
|
7475
|
+
filter: !reducedMotion && hoveredHub
|
|
7476
|
+
? (isLight
|
|
7477
|
+
? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.6))'
|
|
7478
|
+
: 'drop-shadow(0 0 3px rgba(52, 211, 153, 0.6))')
|
|
7479
|
+
: undefined,
|
|
7480
|
+
transition: 'opacity 300ms ease-out, fill 200ms ease-out, r 200ms ease-out, filter 200ms ease-out',
|
|
7481
|
+
} as React.CSSProperties}
|
|
7482
|
+
>
|
|
7483
|
+
{/* Round 497 / Loop — idle-state breath (呼吸感 theme pivot
|
|
7484
|
+
from the R492-R496 press-family arc). Pre-R497 the hub
|
|
7485
|
+
idle highlight read as a static dim disc — present but
|
|
7486
|
+
motionless, visually mute. R497 adds a 4s opacity breath
|
|
7487
|
+
(0.85 ↔ 1.0 ↔ 0.85) so the hub reads "alive but quiet"
|
|
7488
|
+
instead of "frozen", giving the empty-fleet state a
|
|
7489
|
+
subtle living signature.
|
|
7490
|
+
Gates:
|
|
7491
|
+
- !reducedMotion (R29 a11y blanket) — reducedMotion
|
|
7492
|
+
users see static 0.95 disc, no animate
|
|
7493
|
+
- workingCount === 0 — when fleet is busy, the
|
|
7494
|
+
highlight is invisible (opacity=0) so the animate
|
|
7495
|
+
would waste paint cycles. Gating saves work.
|
|
7496
|
+
SMIL <animate> overrides the static opacity={0.95}
|
|
7497
|
+
during its run; falls back to 0.95 when reducedMotion
|
|
7498
|
+
flips on (the animate node simply doesn't render).
|
|
7499
|
+
4s cycle is long enough to feel like ambient breath
|
|
7500
|
+
rather than a pulse, matching the "quiet" semantic.
|
|
7501
|
+
data-topo-hub-highlight-breath attr exposes the
|
|
7502
|
+
resolved gate state for tests. */}
|
|
7503
|
+
{breathActive && (
|
|
7504
|
+
<animate attributeName="opacity" values="0.85;1;0.85" dur="4s" repeatCount="indefinite" />
|
|
7505
|
+
)}
|
|
7506
|
+
</circle>
|
|
7507
|
+
);
|
|
7508
|
+
})()}
|
|
6566
7509
|
{/* R115 / Loop: hover hint ring. Stroke-only circle at r=14
|
|
6567
7510
|
that fades in when the hub is hovered — the same idea
|
|
6568
7511
|
R44 used for node avatars (group-hover stroke). r=14
|
|
@@ -6628,13 +7571,47 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6628
7571
|
data-topo-hub-hover-ring-radius={hoveredHub ? 17 : 14}
|
|
6629
7572
|
data-topo-hub-hover-ring-stroke-width="1.75"
|
|
6630
7573
|
data-topo-hub-hover-ring-opacity={hoveredHub ? (isLight ? 0.85 : 0.8) : 0}
|
|
6631
|
-
/* Round
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
7574
|
+
/* Round 535 / Loop — completes the hub-cluster glow
|
|
7575
|
+
QUARTET by adding drop-shadow to the hub-hover-ring.
|
|
7576
|
+
Pre-R535 the hub-hover trio (R476 digit + R532 highlight
|
|
7577
|
+
disc + R533 spokes) glowed in unified emerald (digit/
|
|
7578
|
+
disc) + cyan/teal (spokes) on hub-hover, but the ring
|
|
7579
|
+
itself — the outermost solid emerald boundary at
|
|
7580
|
+
r=14→17 — stayed flat. R535 adds the matching emerald
|
|
7581
|
+
drop-shadow to the ring so the FULL hub-cluster glows
|
|
7582
|
+
across all four concentric surfaces on hub-hover:
|
|
7583
|
+
digit (typography center) drop-shadow 0 0 3px emerald
|
|
7584
|
+
highlight disc (r=5.5/6) drop-shadow 0 0 3px emerald
|
|
7585
|
+
hover-ring (r=14/17) drop-shadow 0 0 3px emerald ← this round
|
|
7586
|
+
spokes (mesh) drop-shadow 0 0 1.5px cyan/teal
|
|
7587
|
+
The ring is only visible on hub-hover (opacity=0 rest);
|
|
7588
|
+
adding drop-shadow at the same gate means the glow shows
|
|
7589
|
+
the moment the ring shows — no extra state needed.
|
|
7590
|
+
Same R476/R532 emerald palette since the ring sits
|
|
7591
|
+
inside the focal-disc tier (its color is also emerald
|
|
7592
|
+
#059669/#10b981).
|
|
7593
|
+
transition list extends to include 'filter 200ms ease-
|
|
7594
|
+
out' alongside the existing 180ms opacity/r — slight
|
|
7595
|
+
cadence mismatch (180 vs 200) is acceptable; the filter
|
|
7596
|
+
only appears AFTER the ring fades in via opacity, and
|
|
7597
|
+
the 200ms vs 180ms 20ms tail difference is below
|
|
7598
|
+
perceptual threshold.
|
|
7599
|
+
Drop-shadow visual-polish family extension (11 anchors):
|
|
7600
|
+
the hub-cluster glow quartet (R476/R532/R533/R535) plus
|
|
7601
|
+
the 7 non-hub anchors (R477/R478/R479/R480/R481/R483/
|
|
7602
|
+
R534) makes for a thoroughly polished glow vocabulary
|
|
7603
|
+
across the canvas.
|
|
7604
|
+
data-topo-hub-hover-ring-glow attr exposes the gate
|
|
7605
|
+
state for tests. */
|
|
7606
|
+
data-topo-hub-hover-ring-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
6635
7607
|
style={{
|
|
6636
7608
|
pointerEvents: 'none',
|
|
6637
|
-
|
|
7609
|
+
filter: !reducedMotion && hoveredHub
|
|
7610
|
+
? (isLight
|
|
7611
|
+
? 'drop-shadow(0 0 3px rgba(16, 185, 129, 0.5))'
|
|
7612
|
+
: 'drop-shadow(0 0 3px rgba(52, 211, 153, 0.5))')
|
|
7613
|
+
: undefined,
|
|
7614
|
+
transition: 'opacity 180ms ease-out, r 180ms ease-out, stroke 200ms ease-out, filter 200ms ease-out',
|
|
6638
7615
|
}}
|
|
6639
7616
|
/>
|
|
6640
7617
|
</g>)}
|
|
@@ -7547,6 +8524,30 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7547
8524
|
const internByAlias = /书生|书小生|intern/i.test(session.alias);
|
|
7548
8525
|
|
|
7549
8526
|
if (isIntern || internByAlias || vendor.logo) {
|
|
8527
|
+
/* Round 501 / Loop — vendor avatar inside node circles
|
|
8528
|
+
gains a hover-gated brightness lift. Pre-R501 the
|
|
8529
|
+
avatar <image> was the only per-node surface with
|
|
8530
|
+
NO hover treatment: R26 lifted the card, R242 tinted
|
|
8531
|
+
the card stroke, R427 spread the alias letter-
|
|
8532
|
+
spacing, R500 added the alias drop-shadow, R208
|
|
8533
|
+
lifted the runtime badge ring, R443 thickened
|
|
8534
|
+
the badge icon stroke, R177 brightened the
|
|
8535
|
+
halo — but the most visually-prominent element
|
|
8536
|
+
(the vendor logo / 书生 coin centred in each node)
|
|
8537
|
+
stayed paint-static. R501 closes the per-node
|
|
8538
|
+
hover-affordance arc by adding a 15% brightness
|
|
8539
|
+
lift on hover.
|
|
8540
|
+
Implementation: CSS filter: brightness(1.15)
|
|
8541
|
+
when hoveredAlias === session.alias. Pure paint
|
|
8542
|
+
axis on the <image> element — no geometry change,
|
|
8543
|
+
no bbox shift. Modern-browser supported (Chrome 64+
|
|
8544
|
+
/ FF 56+ / Safari 9.1+).
|
|
8545
|
+
Hits 节点视觉 theme. data-node-avatar-hovered
|
|
8546
|
+
attr surfaces the gate for tests.
|
|
8547
|
+
Gated on !reducedMotion as a courtesy (brightness
|
|
8548
|
+
transition < ~50ms still feels instant; the gate
|
|
8549
|
+
avoids the transition cycle for a11y users). */
|
|
8550
|
+
const isAvatarHovered = !reducedMotion && hoveredAlias === session.alias;
|
|
7550
8551
|
return (
|
|
7551
8552
|
<image
|
|
7552
8553
|
href={vendor.logo ?? '/intern_avatar.png'}
|
|
@@ -7555,6 +8556,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7555
8556
|
width={size}
|
|
7556
8557
|
height={size}
|
|
7557
8558
|
preserveAspectRatio="xMidYMid meet"
|
|
8559
|
+
data-node-avatar={session.alias}
|
|
8560
|
+
data-node-avatar-hovered={isAvatarHovered ? 'true' : 'false'}
|
|
8561
|
+
style={{
|
|
8562
|
+
filter: isAvatarHovered ? 'brightness(1.15)' : undefined,
|
|
8563
|
+
transition: 'filter 200ms ease-out',
|
|
8564
|
+
}}
|
|
7558
8565
|
/>
|
|
7559
8566
|
);
|
|
7560
8567
|
}
|
|
@@ -7978,6 +8985,43 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7978
8985
|
R211 fill 300ms + R305 letter-spacing 200ms
|
|
7979
8986
|
transition list preserved; only the
|
|
7980
8987
|
conditional gets a middle case. */}
|
|
8988
|
+
{/* Round 500 / Loop — milestone round, opens
|
|
8989
|
+
per-node alias drop-shadow polish. Extends the
|
|
8990
|
+
R476-R481 drop-shadow visual-polish family to a
|
|
8991
|
+
7th anchor: hovered alias text gains a soft
|
|
8992
|
+
status-coloured text-glow. Pre-R500 hover on
|
|
8993
|
+
a node triggered card-lift (R26 translateY) +
|
|
8994
|
+
card-stroke (R242 tint) + alias letter-spacing
|
|
8995
|
+
(R427 0.3px tier) but the alias TEXT itself had
|
|
8996
|
+
no paint-axis cue beyond fill (R211). R500 adds
|
|
8997
|
+
a drop-shadow on the text glyph itself, so the
|
|
8998
|
+
identity glyph itself lights up under attention
|
|
8999
|
+
— matching the R476 idiom (hub-digit emerald
|
|
9000
|
+
glow on hover) at the per-node identity scope.
|
|
9001
|
+
2px blur radius at 50% alpha — subtler than the
|
|
9002
|
+
R476 hub-digit (3px at 60%) because the alias
|
|
9003
|
+
text is smaller and more numerous (1 per node)
|
|
9004
|
+
so an aggressive glow would multiply into
|
|
9005
|
+
visual noise. Status-coloured (status.text) so
|
|
9006
|
+
the glow inherits the node's working/idle/
|
|
9007
|
+
offline palette — green/cyan/gray respectively.
|
|
9008
|
+
Drop-shadow visual-polish family — 7 anchors:
|
|
9009
|
+
R476 hub digit hover-gated emerald
|
|
9010
|
+
R477 legend pin-ring pin-gated row.fill
|
|
9011
|
+
R478 recent-row pip fresh-gated cyan
|
|
9012
|
+
R479 group-label text pin-gated cyan
|
|
9013
|
+
R480 hot-lane edge hot-gated amber
|
|
9014
|
+
R481 zoom-state minimap zoom-gated cyan
|
|
9015
|
+
R500 node alias text hover-gated status.text ← this round
|
|
9016
|
+
Filter is paint-only; bbox unchanged; overlap-
|
|
9017
|
+
test invariants hold (R51 selector gated to
|
|
9018
|
+
g[data-node] descendants with strokeWidth
|
|
9019
|
+
sentinels; text element doesn't carry stroke).
|
|
9020
|
+
transition list extends to include 'filter
|
|
9021
|
+
200ms ease-out' alongside the existing fill
|
|
9022
|
+
300ms + letter-spacing 200ms tweens.
|
|
9023
|
+
data-node-alias-glow attr surfaces the hover
|
|
9024
|
+
gate for tests. */}
|
|
7981
9025
|
<text
|
|
7982
9026
|
x="0" y="1" textAnchor="middle"
|
|
7983
9027
|
fill={status.text}
|
|
@@ -7985,11 +9029,15 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7985
9029
|
data-node-alias-text={session.alias}
|
|
7986
9030
|
data-node-alias-chat-target={chatAlias === session.alias ? 'true' : 'false'}
|
|
7987
9031
|
data-node-alias-hovered={hoveredAlias === session.alias ? 'true' : 'false'}
|
|
9032
|
+
data-node-alias-glow={!reducedMotion && hoveredAlias === session.alias ? 'true' : 'false'}
|
|
7988
9033
|
style={{
|
|
7989
|
-
transition: 'fill 300ms ease-out, letter-spacing 200ms ease-out',
|
|
9034
|
+
transition: 'fill 300ms ease-out, letter-spacing 200ms ease-out, filter 200ms ease-out',
|
|
7990
9035
|
letterSpacing:
|
|
7991
9036
|
chatAlias === session.alias ? '0.5px' :
|
|
7992
9037
|
hoveredAlias === session.alias ? '0.3px' : '0px',
|
|
9038
|
+
filter: !reducedMotion && hoveredAlias === session.alias
|
|
9039
|
+
? `drop-shadow(0 0 2px ${status.text}80)`
|
|
9040
|
+
: undefined,
|
|
7993
9041
|
}}
|
|
7994
9042
|
>
|
|
7995
9043
|
{truncate(session.alias, fullMax)}
|
|
@@ -9261,11 +10309,46 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9261
10309
|
tier without disturbing the surrounding family
|
|
9262
10310
|
baseline. data-recent-row-text-font-weight attr
|
|
9263
10311
|
exposes the value for tests. */
|
|
9264
|
-
|
|
10312
|
+
/* Round 530 / Loop — extends hover-fw family
|
|
10313
|
+
(R416/R420/R425/R520/R521/R522, 6 anchors) to
|
|
10314
|
+
a 7th anchor: recent-row alias text gains
|
|
10315
|
+
fontWeight 500 → 600 on (isRowHovered ||
|
|
10316
|
+
isRowPinned). Pre-R530 R363 set fw=500
|
|
10317
|
+
statically; hover/pin lifted other axes
|
|
10318
|
+
(R55 fill brighten / R434 letter-spacing
|
|
10319
|
+
3-tier / R143 translateY / R104 row bg-
|
|
10320
|
+
tint / R474 cadence) but the fw stayed
|
|
10321
|
+
flat — same asymmetry R520 closed at the
|
|
10322
|
+
+N more footer.
|
|
10323
|
+
R530 mirrors R520's pattern at the row-
|
|
10324
|
+
text scope. Hover OR pin (isRowActive
|
|
10325
|
+
union) lifts fw to 600, matching the count
|
|
10326
|
+
tspan's cold-state tier (R320 fw=600), so
|
|
10327
|
+
on active state the alias label reads at
|
|
10328
|
+
the same data tier as the count it sits
|
|
10329
|
+
next to. Inner count tspan has its own
|
|
10330
|
+
explicit fontWeight (600 or 700 per R320/
|
|
10331
|
+
R445) so parent fw lift doesn't bleed
|
|
10332
|
+
(inheritance overridden).
|
|
10333
|
+
Hover-fw family extension (7 anchors):
|
|
10334
|
+
R416 chip-row count digit
|
|
10335
|
+
R420 chrome zoom-level
|
|
10336
|
+
R425 hub-center digit
|
|
10337
|
+
R520 +N more flows footer
|
|
10338
|
+
R521 chrome nodeSize S/M/L inactive
|
|
10339
|
+
R522 chrome layout Ring/Grid inactive
|
|
10340
|
+
R530 recent-row alias text ← this round
|
|
10341
|
+
transition list extends to include
|
|
10342
|
+
'font-weight 200ms ease-out', matching the
|
|
10343
|
+
R474 cadence of the existing fill +
|
|
10344
|
+
letter-spacing axes on this element.
|
|
10345
|
+
data-recent-row-text-font-weight attr
|
|
10346
|
+
flips '500' → '600' on isRowActive. */
|
|
10347
|
+
fontWeight={(isRowHovered || isRowPinned) ? '600' : '500'}
|
|
9265
10348
|
data-recent-row-text={link.key}
|
|
9266
10349
|
data-recent-row-text-pinned={isRowPinned ? 'true' : 'false'}
|
|
9267
10350
|
data-recent-row-text-hovered={!isRowPinned && isRowHovered ? 'true' : 'false'}
|
|
9268
|
-
data-recent-row-text-font-weight=
|
|
10351
|
+
data-recent-row-text-font-weight={(isRowHovered || isRowPinned) ? '600' : '500'}
|
|
9269
10352
|
/* Round 434 / Loop: recent-signal row text extends
|
|
9270
10353
|
from R220's pin-only letter-spacing (0 → 0.5 on
|
|
9271
10354
|
isRowPinned) to a 3-tier scale matching R433
|
|
@@ -9316,7 +10399,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9316
10399
|
shifts. */
|
|
9317
10400
|
data-recent-row-text-transition="200ms"
|
|
9318
10401
|
style={{
|
|
9319
|
-
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out',
|
|
10402
|
+
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out',
|
|
9320
10403
|
letterSpacing: isRowPinned ? '0.5px' :
|
|
9321
10404
|
isRowHovered ? '0.25px' : '0px',
|
|
9322
10405
|
}}
|
|
@@ -9399,12 +10482,30 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9399
10482
|
under the same R320 fill cadence. data-
|
|
9400
10483
|
recent-row-count-pinned attr exposes the
|
|
9401
10484
|
pin gate for tests. */}
|
|
10485
|
+
{/* Round 498 / Loop — hot-count subtle pulse. Pre-
|
|
10486
|
+
R498 the hot row count signaled via color (R127
|
|
10487
|
+
amber fill) + weight (R320 fw-700) + (R445 pin
|
|
10488
|
+
lift) but stayed visually motionless. R498 adds
|
|
10489
|
+
a 3s opacity breath (0.85↔1.0) on the digit when
|
|
10490
|
+
isHot && !reducedMotion — gentle "alive" signal
|
|
10491
|
+
on the lane carrying ≥ 10 messages, drawing
|
|
10492
|
+
glance without becoming noisy. Sibling of R497
|
|
10493
|
+
hub-idle-breath in the 呼吸感 theme arc; same
|
|
10494
|
+
0.85↔1.0 amplitude. Class adds an animation-
|
|
10495
|
+
only paint axis; no layout / bbox change. R29
|
|
10496
|
+
blanket also catches `animation-duration` for
|
|
10497
|
+
reducedMotion users, but the component-side
|
|
10498
|
+
gate makes the intent explicit and avoids
|
|
10499
|
+
a node tree thrash for those users (className
|
|
10500
|
+
stays absent rather than present-but-paused). */}
|
|
9402
10501
|
<tspan
|
|
9403
10502
|
fill={isHot ? hotStroke : undefined}
|
|
9404
10503
|
fontWeight={(isHot || isRowPinned) ? '700' : '600'}
|
|
10504
|
+
className={isHot && !reducedMotion ? 'anet-recent-hot-pulse' : undefined}
|
|
9405
10505
|
data-recent-row-count
|
|
9406
10506
|
data-recent-row-count-pinned={isRowPinned ? 'true' : 'false'}
|
|
9407
10507
|
data-recent-row-count-font-weight={(isHot || isRowPinned) ? '700' : '600'}
|
|
10508
|
+
data-recent-row-count-hot-pulse={isHot && !reducedMotion ? 'true' : 'false'}
|
|
9408
10509
|
{...(isHot ? { 'data-recent-row-count-hot': 'true' } : {})}
|
|
9409
10510
|
style={{
|
|
9410
10511
|
transition: 'fill 300ms ease-out, font-weight 200ms ease-out',
|
|
@@ -9648,6 +10749,39 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9648
10749
|
stays as is, so the rest-vs-hover delta still
|
|
9649
10750
|
reads clearly. data-recent-panel-more-font-weight
|
|
9650
10751
|
attr exposes the value for tests. */}
|
|
10752
|
+
{/* Round 520 / Loop — extends the `+N more flows` footer
|
|
10753
|
+
to a 5-axis hover signature by adding fontWeight
|
|
10754
|
+
500 → 600 on hover. Pre-R520 the footer carried 4
|
|
10755
|
+
hover axes:
|
|
10756
|
+
R195 fill legendText → legendAccent
|
|
10757
|
+
R325 letter-spacing 0.2 → 0.3px (R344 tween)
|
|
10758
|
+
R325 opacity 0.55 → 0.85
|
|
10759
|
+
R133 underline none → underline
|
|
10760
|
+
R368 had set fontWeight 500 statically as a sibling
|
|
10761
|
+
to R363/R364/R366 small-text fw lift family — but
|
|
10762
|
+
the footer's hover state didn't carry a fontWeight
|
|
10763
|
+
DELTA the way other interactive surfaces do (chip-
|
|
10764
|
+
row counts R416, chrome zoom-level R420, hub digit
|
|
10765
|
+
R425). R520 adds the missing weight axis: fw 500
|
|
10766
|
+
→ 600 on hover, so the footer reads "thickening AND
|
|
10767
|
+
lighting up" under cursor — same idiom as the
|
|
10768
|
+
chrome zoom-level R420 / chip-row digit R416 hover-
|
|
10769
|
+
bold pattern, applied at the panel nav-action
|
|
10770
|
+
surface.
|
|
10771
|
+
data-recent-panel-more-font-weight attr value
|
|
10772
|
+
flips from '500' → '600' on hover (was static
|
|
10773
|
+
'500' pre-R520).
|
|
10774
|
+
Bonus closure — R475 panel-text cadence: pre-R520
|
|
10775
|
+
the footer's transition list had `opacity 150ms`
|
|
10776
|
+
while R475 unified panel-text transitions at
|
|
10777
|
+
200ms. R518 closed the same gap at legend-count.
|
|
10778
|
+
R520 closes the LAST panel-text 150ms holdout
|
|
10779
|
+
here AND adds the new font-weight 200ms axis. All
|
|
10780
|
+
4 transition properties (opacity / fill / letter-
|
|
10781
|
+
spacing / font-weight) now uniform 200ms at the
|
|
10782
|
+
footer — same cadence as legend-label / legend-
|
|
10783
|
+
count / recent-row alias / recent-row count /
|
|
10784
|
+
group-label. */}
|
|
9651
10785
|
<text
|
|
9652
10786
|
x="115" y="82"
|
|
9653
10787
|
textAnchor="middle"
|
|
@@ -9655,14 +10789,15 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9655
10789
|
fontSize="9"
|
|
9656
10790
|
fontFamily="monospace"
|
|
9657
10791
|
fontStyle="italic"
|
|
9658
|
-
fontWeight=
|
|
10792
|
+
fontWeight={hoveredRecentMore ? '600' : '500'}
|
|
9659
10793
|
letterSpacing={hoveredRecentMore ? '0.3' : '0.2'}
|
|
9660
10794
|
opacity={hoveredRecentMore ? 0.85 : 0.55}
|
|
9661
10795
|
textDecoration={hoveredRecentMore ? 'underline' : 'none'}
|
|
9662
10796
|
data-recent-panel-more={moreCount}
|
|
9663
10797
|
data-recent-panel-more-hovered={hoveredRecentMore ? 'true' : 'false'}
|
|
9664
|
-
data-recent-panel-more-font-weight=
|
|
9665
|
-
|
|
10798
|
+
data-recent-panel-more-font-weight={hoveredRecentMore ? '600' : '500'}
|
|
10799
|
+
data-recent-panel-more-transition="200ms"
|
|
10800
|
+
style={{ transition: 'opacity 200ms ease-out, fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out' }}
|
|
9666
10801
|
>
|
|
9667
10802
|
{`+ ${moreCount}`}
|
|
9668
10803
|
<tspan opacity="0.7" data-recent-panel-more-unit>{` more flow${moreCount === 1 ? '' : 's'}`}</tspan>
|
|
@@ -10058,15 +11193,42 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10058
11193
|
R181 pin ring (6 + 0 stroke vs 8 - 0.75 inner
|
|
10059
11194
|
≈ 7.25). data-legend-swatch is unchanged so
|
|
10060
11195
|
R197 / R55 / R61 tests probe the same handle. */}
|
|
11196
|
+
{/* Round 537 / Loop — extends drop-shadow visual-polish
|
|
11197
|
+
family (12 anchors after R536) to a 13th anchor: the
|
|
11198
|
+
legend swatch gains drop-shadow glow on hover/pin
|
|
11199
|
+
using its OWN row fill color (working green / idle
|
|
11200
|
+
teal / offline slate). Pre-R537 the swatch lifted
|
|
11201
|
+
only r (R197/R295 6 → 7) on attention — geometry
|
|
11202
|
+
axis only, no paint glow. R537 adds the paint axis,
|
|
11203
|
+
composing with R181/R402 pin-ring (separate concen-
|
|
11204
|
+
tric circle in the same row.fill color) so on
|
|
11205
|
+
hover/pin the SWATCH AND its pin-ring both contri-
|
|
11206
|
+
bute to a unified tier-coloured glow signature.
|
|
11207
|
+
Hue: row.fill (status hex) concatenated with `99`
|
|
11208
|
+
hex alpha (~60%). Working green / idle teal /
|
|
11209
|
+
offline slate each glow in their OWN tier color
|
|
11210
|
+
— the legend acts as a color-keyed status mirror.
|
|
11211
|
+
3px blur reads soft; 60% alpha legible without
|
|
11212
|
+
overwhelming the swatch's own paint.
|
|
11213
|
+
Drop-shadow visual-polish family extension (13
|
|
11214
|
+
anchors). filter is paint-only; bbox unchanged.
|
|
11215
|
+
transition list extends to include 'filter 150ms
|
|
11216
|
+
ease-out', matching the existing R197 r 150ms
|
|
11217
|
+
cadence at this swatch. data-legend-swatch-glow
|
|
11218
|
+
attr exposes the gate state for tests. */}
|
|
10061
11219
|
<circle
|
|
10062
11220
|
cx="16" cy={row.y0}
|
|
10063
11221
|
r="6"
|
|
10064
11222
|
fill={row.fill}
|
|
10065
11223
|
data-legend-swatch={row.key}
|
|
10066
11224
|
data-legend-swatch-state={isPinned ? 'pinned' : isRowHovered ? 'hover' : 'idle'}
|
|
11225
|
+
data-legend-swatch-glow={(isRowHovered || isPinned) ? 'true' : 'false'}
|
|
10067
11226
|
style={{
|
|
10068
11227
|
r: isRowHovered || isPinned ? '7px' : '6px',
|
|
10069
|
-
|
|
11228
|
+
filter: (isRowHovered || isPinned)
|
|
11229
|
+
? `drop-shadow(0 0 3px ${row.fill}99)`
|
|
11230
|
+
: undefined,
|
|
11231
|
+
transition: 'r 150ms ease-out, filter 150ms ease-out',
|
|
10070
11232
|
} as React.CSSProperties}
|
|
10071
11233
|
/>
|
|
10072
11234
|
{/* R61 pinned-state ring — concentric stroke at r=8 in
|
|
@@ -10198,11 +11360,42 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10198
11360
|
the value for tests. R219 letter-spacing pin
|
|
10199
11361
|
tween + R55 fill transition + R181 always-mount
|
|
10200
11362
|
pin ring all preserved. */
|
|
10201
|
-
|
|
11363
|
+
/* Round 531 / Loop — extends hover-fw family (R416/
|
|
11364
|
+
R420/R425/R520/R521/R522/R530, 7 anchors) to an
|
|
11365
|
+
8th anchor at the legend-row label. Pre-R531
|
|
11366
|
+
R364 set fw=500 statically; hover/pin lifted
|
|
11367
|
+
other axes (R55 fill brighten / R433 letter-
|
|
11368
|
+
spacing 3-tier / R181 pin ring) but the fw
|
|
11369
|
+
stayed flat. R531 mirrors R530's recent-row
|
|
11370
|
+
alias pattern at the legend-row label scope.
|
|
11371
|
+
Hover OR pin (hoveredStatus===row.key ||
|
|
11372
|
+
isPinned) lifts fw to 600, matching the
|
|
11373
|
+
legend-row count tier (R309 fw=600 / R446
|
|
11374
|
+
pin lift 600→700). Active label now reads at
|
|
11375
|
+
the count's data tier — sibling treatment to
|
|
11376
|
+
R530 recent-row.
|
|
11377
|
+
Hover-fw family extension (8 anchors):
|
|
11378
|
+
R416 chip-row count digit
|
|
11379
|
+
R420 chrome zoom-level
|
|
11380
|
+
R425 hub-center digit
|
|
11381
|
+
R520 +N more flows footer
|
|
11382
|
+
R521 chrome nodeSize S/M/L inactive
|
|
11383
|
+
R522 chrome layout Ring/Grid inactive
|
|
11384
|
+
R530 recent-row alias text
|
|
11385
|
+
R531 legend-row label ← this round
|
|
11386
|
+
Two panel-row label surfaces (R530 recent-
|
|
11387
|
+
row alias + R531 legend-row label) now have
|
|
11388
|
+
parallel hover-fw signatures. R475 cadence
|
|
11389
|
+
at 200ms already covers font-weight via the
|
|
11390
|
+
existing transition list extension at this
|
|
11391
|
+
element. data-legend-row-label-font-weight
|
|
11392
|
+
attr flips '500' → '600' on isActive (was
|
|
11393
|
+
static '500' pre-R531). */
|
|
11394
|
+
fontWeight={(hoveredStatus === row.key || isPinned) ? '600' : '500'}
|
|
10202
11395
|
data-legend-row-label={row.key}
|
|
10203
11396
|
data-legend-row-label-pinned={isPinned ? 'true' : 'false'}
|
|
10204
11397
|
data-legend-row-label-hovered={!isPinned && hoveredStatus === row.key ? 'true' : 'false'}
|
|
10205
|
-
data-legend-row-label-font-weight=
|
|
11398
|
+
data-legend-row-label-font-weight={(hoveredStatus === row.key || isPinned) ? '600' : '500'}
|
|
10206
11399
|
/* Round 433 / Loop: legend-row text extends from
|
|
10207
11400
|
R219's pin-only letter-spacing (0px → 0.5px on
|
|
10208
11401
|
isPinned) to a 3-tier scale matching the R432
|
|
@@ -10245,7 +11438,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10245
11438
|
the timing axis shifts. */
|
|
10246
11439
|
data-legend-row-label-transition="200ms"
|
|
10247
11440
|
style={{
|
|
10248
|
-
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out',
|
|
11441
|
+
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out',
|
|
10249
11442
|
letterSpacing: isPinned ? '0.5px' :
|
|
10250
11443
|
hoveredStatus === row.key ? '0.25px' : '0px',
|
|
10251
11444
|
}}
|
|
@@ -10379,7 +11572,43 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10379
11572
|
data-legend-count-pinned={isPinned ? 'true' : 'false'}
|
|
10380
11573
|
data-legend-count-font-weight={isPinned ? '700' : '600'}
|
|
10381
11574
|
data-legend-count-fill={row.count > 0 && (hoveredStatus === row.key || isPinned) ? 'tier' : 'neutral'}
|
|
10382
|
-
|
|
11575
|
+
/* Round 518 / Loop — extends R433's 3-tier hover-
|
|
11576
|
+
letter-spacing tween from the legend-row LABEL
|
|
11577
|
+
(text at x=30) to the SIBLING legend-row COUNT
|
|
11578
|
+
digit (this text at x=215). Pre-R518 the row's
|
|
11579
|
+
label spread on hover/pin (R433: 0/0.25/0.5px)
|
|
11580
|
+
while the count digit at the row's right edge
|
|
11581
|
+
stayed dead-typographic — same row, two halves,
|
|
11582
|
+
asymmetric kerning gesture. R518 mirrors the
|
|
11583
|
+
3-tier scale at the count so the WHOLE row's
|
|
11584
|
+
typography reads as one unit under cursor: label
|
|
11585
|
+
+ count spread together at matching values.
|
|
11586
|
+
Tabular-nums (R225) makes the kerning still
|
|
11587
|
+
visible on 2-digit counts — each digit cell
|
|
11588
|
+
keeps its fixed width, but the inter-digit
|
|
11589
|
+
advance grows. R518 also closes R475's panel-
|
|
11590
|
+
row TEXT cadence at the count surface — R475
|
|
11591
|
+
lifted the label text transitions to 200ms but
|
|
11592
|
+
the count was missed; R518 lifts opacity / fill
|
|
11593
|
+
/ font-weight from 150 → 200ms AND adds the new
|
|
11594
|
+
letter-spacing axis at 200ms. One transition
|
|
11595
|
+
list, one cadence, one motion-coherent multi-
|
|
11596
|
+
axis hover/pin signature across the row.
|
|
11597
|
+
Hover-letter-spacing family extension (10
|
|
11598
|
+
anchors now): R344/R345/R347/R420/R427/R431/
|
|
11599
|
+
R432/R433/R517/R518. R518 closes the legend-
|
|
11600
|
+
row pair (label R433 + count R518). data-
|
|
11601
|
+
legend-count-letter-spacing attr exposes the
|
|
11602
|
+
resolved value for tests. */
|
|
11603
|
+
data-legend-count-letter-spacing={isPinned ? '0.5px' : hoveredStatus === row.key ? '0.25px' : '0px'}
|
|
11604
|
+
data-legend-count-transition="200ms"
|
|
11605
|
+
style={{
|
|
11606
|
+
pointerEvents: 'none',
|
|
11607
|
+
transition: 'opacity 200ms ease-out, fill 200ms ease-out, font-weight 200ms ease-out, letter-spacing 200ms ease-out',
|
|
11608
|
+
fontVariantNumeric: 'tabular-nums',
|
|
11609
|
+
letterSpacing: isPinned ? '0.5px' :
|
|
11610
|
+
hoveredStatus === row.key ? '0.25px' : '0px',
|
|
11611
|
+
}}
|
|
10383
11612
|
>{row.count}</text>
|
|
10384
11613
|
</g>
|
|
10385
11614
|
);
|
|
@@ -10438,6 +11667,74 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10438
11667
|
spacing as typographic intent. Stays well inside the
|
|
10439
11668
|
bottom-left corner; opacity 0.4 unchanged so the
|
|
10440
11669
|
watermark stays a watermark. */}
|
|
11670
|
+
{/* Round 519 / Loop — 呼吸感 family 3rd anchor. Pre-R519 the
|
|
11671
|
+
breath family had 2 anchors (R497 hub idle digit + R498
|
|
11672
|
+
recent-row hot pulse). Both signal active state — the
|
|
11673
|
+
digit when canvas is idle (no work pending), the recent
|
|
11674
|
+
row when fresh signal arrives. R519 adds a SLOW ambient
|
|
11675
|
+
breath to the brand watermark — present always, not gated
|
|
11676
|
+
on activity state. The watermark IS the canvas-corner
|
|
11677
|
+
register that says "the canvas is alive even when nothing
|
|
11678
|
+
is happening"; a 6s opacity pulse around its 0.4 mean
|
|
11679
|
+
(±0.08 swing → 0.32 ↔ 0.48) reads as ambient liveness
|
|
11680
|
+
rather than foreground signal.
|
|
11681
|
+
Why 6s (not R497's 4s): the breath family now spans
|
|
11682
|
+
activity registers (R497 4s — idle-focal: present and
|
|
11683
|
+
waiting; R498 ~3s — hot signal: just arrived) and now
|
|
11684
|
+
ambient register (R519 6s — corner watermark: always-on
|
|
11685
|
+
background). Slower cadence keeps the watermark in the
|
|
11686
|
+
background; ~10 pct slower than R497 keeps it out of
|
|
11687
|
+
phase so the two anchors never beat together visibly.
|
|
11688
|
+
Gate: !reducedMotion. Inside the prefers-reduced-motion
|
|
11689
|
+
media query, SMIL animate isn't covered by globals.css
|
|
11690
|
+
R29 (which only kills CSS animation property), so we
|
|
11691
|
+
gate at JSX level — when reducedMotion is true the
|
|
11692
|
+
<animate> child isn't mounted and opacity stays at the
|
|
11693
|
+
static 0.4. data-topo-brand-watermark-breath attr
|
|
11694
|
+
exposes the gate state for tests.
|
|
11695
|
+
呼吸感 family extension (3 anchors): R497 hub idle / R498
|
|
11696
|
+
recent-row hot / R519 brand watermark ambient. */}
|
|
11697
|
+
{/* Round 525 / Loop — focal-recede family 3rd anchor. R507
|
|
11698
|
+
receded the hub-center workingCount digit; R508 receded
|
|
11699
|
+
the hub-highlight disc; both fade to 0.85× when any non-
|
|
11700
|
+
hub canvas surface is hovered (alias / edge / group /
|
|
11701
|
+
status / vendor) — the "you're inspecting elsewhere"
|
|
11702
|
+
gesture. R525 extends the pattern to the brand watermark
|
|
11703
|
+
at canvas bottom-left, the always-on decorative brand
|
|
11704
|
+
element. Pre-R525 the watermark stayed at its R519
|
|
11705
|
+
breath baseline (0.32-0.48 SMIL pulse) regardless of
|
|
11706
|
+
canvas attention; post-R525 it fades to 70% wrapper
|
|
11707
|
+
opacity (effective 0.224-0.336 with breath) when canvas
|
|
11708
|
+
attention is elsewhere, matching the same focal-recede
|
|
11709
|
+
semantic R507/R508 establish at the hub focal cluster.
|
|
11710
|
+
Implementation: wrap the existing <text> in a <g>
|
|
11711
|
+
wrapper whose opacity multiplies with the inner text's
|
|
11712
|
+
SMIL-animated opacity. SVG opacity composes
|
|
11713
|
+
multiplicatively across the parent/child chain, so:
|
|
11714
|
+
normal: g.opacity=1.0 × text.opacity(SMIL 0.32-0.48) = 0.32-0.48
|
|
11715
|
+
recede: g.opacity=0.7 × text.opacity(SMIL 0.32-0.48) = 0.224-0.336
|
|
11716
|
+
SMIL on inner text continues running through both
|
|
11717
|
+
states; only the wrapper opacity flips. 300ms ease-out
|
|
11718
|
+
transition on wrapper (matches R508 hub-highlight recede
|
|
11719
|
+
transition).
|
|
11720
|
+
Gate matches R507/R508 — focal-recede is a UNIFIED
|
|
11721
|
+
non-hub-canvas-hover signal driving multiple anchors,
|
|
11722
|
+
so all three (hub digit / hub-highlight / brand
|
|
11723
|
+
watermark) fade together as the canvas's decorative
|
|
11724
|
+
register, leaving only the surface under inspection
|
|
11725
|
+
foregrounded.
|
|
11726
|
+
Focal-recede family extension (3 anchors): R507 hub
|
|
11727
|
+
digit / R508 hub-highlight / R525 brand watermark. */}
|
|
11728
|
+
<g
|
|
11729
|
+
opacity={(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
11730
|
+
hoveredStatus || hoveredVendor) && !hoveredHub ? 0.7 : 1}
|
|
11731
|
+
data-topo-brand-watermark-wrapper
|
|
11732
|
+
data-topo-brand-watermark-recede={
|
|
11733
|
+
(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
11734
|
+
hoveredStatus || hoveredVendor) && !hoveredHub ? 'true' : 'false'
|
|
11735
|
+
}
|
|
11736
|
+
style={{ pointerEvents: 'none', transition: 'opacity 300ms ease-out' }}
|
|
11737
|
+
>
|
|
10441
11738
|
<text
|
|
10442
11739
|
x="16" y="672"
|
|
10443
11740
|
fontSize="11" fontFamily="monospace" fontWeight="600"
|
|
@@ -10445,8 +11742,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10445
11742
|
fill={pal.legendText}
|
|
10446
11743
|
opacity="0.4"
|
|
10447
11744
|
data-topo-brand-watermark
|
|
11745
|
+
data-topo-brand-watermark-breath={reducedMotion ? 'false' : 'true'}
|
|
10448
11746
|
style={{ pointerEvents: 'none', transition: 'fill 200ms ease-out' }}
|
|
10449
|
-
>sleep2agi
|
|
11747
|
+
>sleep2agi{!reducedMotion && (
|
|
11748
|
+
<animate attributeName="opacity" values="0.32;0.48;0.32" dur="6s" repeatCount="indefinite" />
|
|
11749
|
+
)}</text>
|
|
11750
|
+
</g>
|
|
10450
11751
|
{/* v0.10.0 Hero 3 Wave 1 / RFC §3.I (Vincent 5215 + 通信龙
|
|
10451
11752
|
lead-autonomy Q4 dual-anchor minimal): canvas top-left
|
|
10452
11753
|
crescent moon brand mark, visible ONLY when the
|
|
@@ -10481,10 +11782,47 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10481
11782
|
the R175 panel-fade-in uses for cascade rhythm. data-
|
|
10482
11783
|
topo-brand-canvas-mark-visible exposes the gate for
|
|
10483
11784
|
tests. */}
|
|
11785
|
+
{/* Round 526 / Loop — focal-recede family 4th anchor.
|
|
11786
|
+
Symmetric polish to R525 (watermark recede). The
|
|
11787
|
+
brand crescent at canvas top-left is the second
|
|
11788
|
+
decorative brand element on the canvas; pre-R526 it
|
|
11789
|
+
stayed at flat opacity 0.35 (when visible) regardless
|
|
11790
|
+
of canvas attention. R526 multiplies its visible
|
|
11791
|
+
opacity by 0.7 when ANY non-hub canvas surface is
|
|
11792
|
+
hovered, matching R525's deeper-recede semantic for
|
|
11793
|
+
decorative brand elements (vs hub focal cluster's
|
|
11794
|
+
0.85× recede at R507/R508).
|
|
11795
|
+
Composes cleanly with existing flowLinks gate:
|
|
11796
|
+
normal, flowLinks=0: opacity = 0.35 * 1.0 = 0.350
|
|
11797
|
+
recede, flowLinks=0: opacity = 0.35 * 0.7 = 0.245
|
|
11798
|
+
invisible, flowLinks>0: opacity = 0.00 * any = 0.000
|
|
11799
|
+
Multiplicative chain means recede only matters when
|
|
11800
|
+
crescent is visible (quiet canvas, flowLinks=0) —
|
|
11801
|
+
exactly when canvas attention elsewhere should
|
|
11802
|
+
dim the decorative register. 300ms transition
|
|
11803
|
+
already covers both axes (the existing visibility
|
|
11804
|
+
opacity ramp + the new recede multiplier easing).
|
|
11805
|
+
Focal-recede family extension (4 anchors): R507 hub
|
|
11806
|
+
digit / R508 hub-highlight / R525 watermark / R526
|
|
11807
|
+
crescent (this round). Canvas brand surfaces (R525
|
|
11808
|
+
watermark + R526 crescent) now BOTH carry focal-
|
|
11809
|
+
recede at the same 0.7 multiplier, fading as a
|
|
11810
|
+
decorative pair when the canvas's focal attention
|
|
11811
|
+
shifts elsewhere.
|
|
11812
|
+
data-topo-brand-canvas-mark-recede attr exposes the
|
|
11813
|
+
gate state for tests. */}
|
|
10484
11814
|
<g
|
|
10485
|
-
opacity={flowLinks.length === 0 ? 0.35 : 0
|
|
11815
|
+
opacity={(flowLinks.length === 0 ? 0.35 : 0) * (
|
|
11816
|
+
(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
11817
|
+
hoveredStatus || hoveredVendor) && !hoveredHub ? 0.7 : 1
|
|
11818
|
+
)}
|
|
10486
11819
|
data-topo-brand-canvas-mark
|
|
10487
11820
|
data-topo-brand-canvas-mark-visible={flowLinks.length === 0 ? 'true' : 'false'}
|
|
11821
|
+
data-topo-brand-canvas-mark-recede={
|
|
11822
|
+
(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
11823
|
+
hoveredStatus || hoveredVendor) && !hoveredHub ? 'true' : 'false'
|
|
11824
|
+
}
|
|
11825
|
+
data-topo-brand-canvas-mark-breath={reducedMotion ? 'false' : 'true'}
|
|
10488
11826
|
style={{ pointerEvents: 'none', transition: 'opacity 300ms ease-out, fill 200ms ease-out' }}
|
|
10489
11827
|
>
|
|
10490
11828
|
<defs>
|
|
@@ -10494,11 +11832,44 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10494
11832
|
<circle cx="17.5" cy="13" r="10" fill="black" />
|
|
10495
11833
|
</mask>
|
|
10496
11834
|
</defs>
|
|
11835
|
+
{/* Round 528 / Loop — 呼吸感 family 4th anchor. Symmetric
|
|
11836
|
+
polish to R519 watermark ambient breath. The brand
|
|
11837
|
+
crescent at canvas top-left is the second decorative
|
|
11838
|
+
canvas brand surface; pre-R528 it stayed at the static
|
|
11839
|
+
composed opacity (wrapper 0.35 × no inner anim = flat).
|
|
11840
|
+
Post-R528 the inner <rect>'s fill-opacity breathes
|
|
11841
|
+
0.8 ↔ 1.0 on a 7s cycle, composing multiplicatively
|
|
11842
|
+
with the wrapper's recede gate:
|
|
11843
|
+
normal visible: 0.35 × (0.8-1.0) = 0.280-0.350
|
|
11844
|
+
recede visible: 0.245 × (0.8-1.0) = 0.196-0.245
|
|
11845
|
+
invisible: 0 × any = 0
|
|
11846
|
+
7s cadence intentionally OUT OF PHASE with R519
|
|
11847
|
+
watermark's 6s — the two ambient anchors never beat
|
|
11848
|
+
together visibly when both visible. R497 hub idle
|
|
11849
|
+
breath (4s) is the loudest; R498 recent-row hot pulse
|
|
11850
|
+
(~3s) is the most-active; R519 watermark (6s) +
|
|
11851
|
+
R528 crescent (7s) are the quietest ambient pair.
|
|
11852
|
+
呼吸感 family extension (4 anchors):
|
|
11853
|
+
R497 hub idle digit 4s active-idle register
|
|
11854
|
+
R498 recent-row hot pulse 3s active-fresh register
|
|
11855
|
+
R519 watermark ambient 6s ambient (always-on)
|
|
11856
|
+
R528 crescent ambient 7s ambient (quiet-only) ← this round
|
|
11857
|
+
SMIL <animate> on fill-opacity (not parent opacity) so
|
|
11858
|
+
the wrapper's React-controlled gate compositions stay
|
|
11859
|
+
intact. Gated on !reducedMotion at JSX level —
|
|
11860
|
+
reducedMotion users see the inner rect at default
|
|
11861
|
+
fill-opacity=1.0 (no SMIL mounted, wrapper's static
|
|
11862
|
+
composed opacity wins). data-topo-brand-canvas-mark-
|
|
11863
|
+
breath attr exposes the gate state. */}
|
|
10497
11864
|
<rect
|
|
10498
11865
|
x="16" y="16" width="28" height="28"
|
|
10499
11866
|
fill={pal.legendText}
|
|
10500
11867
|
mask="url(#s2a-canvas-corner-mask)"
|
|
10501
|
-
|
|
11868
|
+
>
|
|
11869
|
+
{!reducedMotion && (
|
|
11870
|
+
<animate attributeName="fill-opacity" values="0.8;1;0.8" dur="7s" repeatCount="indefinite" />
|
|
11871
|
+
)}
|
|
11872
|
+
</rect>
|
|
10502
11873
|
</g>
|
|
10503
11874
|
</svg>
|
|
10504
11875
|
|
|
@@ -10850,12 +12221,32 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10850
12221
|
(the minimap viewport is small, ~120×82 px).
|
|
10851
12222
|
Filter is paint-only — bbox unchanged. transition
|
|
10852
12223
|
list extends to include 'filter 200ms ease-out'
|
|
10853
|
-
so the glow eases when zoom crosses 1.5x.
|
|
10854
|
-
|
|
12224
|
+
so the glow eases when zoom crosses 1.5x.
|
|
12225
|
+
R540: extends the drop-shadow to also fire on
|
|
12226
|
+
hoveredMinimap with HOVER PRECEDENCE over zoom-
|
|
12227
|
+
state. Pre-R540 the viewport drop-shadow was
|
|
12228
|
+
zoom-only (single gate); R540 adds an
|
|
12229
|
+
interactional gate at lighter blur intensity.
|
|
12230
|
+
Hover wins when both true — interactional signal
|
|
12231
|
+
(user is inspecting) trumps informational signal
|
|
12232
|
+
(you're zoomed). Sibling to R534 edge-badge
|
|
12233
|
+
hover-precedence + R538 group-label hover-tier
|
|
12234
|
+
extensions.
|
|
12235
|
+
2-tier alpha ladder:
|
|
12236
|
+
hover (interactional) legendAccent 99 (~60%)
|
|
12237
|
+
zoom > 1.5 (info) legendAccent 80 (~50%)
|
|
12238
|
+
rest none
|
|
12239
|
+
data-topo-minimap-viewport-glow attr upgraded
|
|
12240
|
+
binary ('true'/'false') → 3-value ('hover' |
|
|
12241
|
+
'zoom' | 'false') so tests can distinguish
|
|
12242
|
+
gate cause. */
|
|
12243
|
+
data-topo-minimap-viewport-glow={hoveredMinimap ? 'hover' : view.zoom > 1.5 ? 'zoom' : 'false'}
|
|
10855
12244
|
style={{
|
|
10856
|
-
filter:
|
|
10857
|
-
? `drop-shadow(0 0 2px ${pal.legendAccent}
|
|
10858
|
-
:
|
|
12245
|
+
filter: hoveredMinimap
|
|
12246
|
+
? `drop-shadow(0 0 2px ${pal.legendAccent}99)`
|
|
12247
|
+
: view.zoom > 1.5
|
|
12248
|
+
? `drop-shadow(0 0 2px ${pal.legendAccent}80)`
|
|
12249
|
+
: undefined,
|
|
10859
12250
|
transition: smoothView
|
|
10860
12251
|
? 'x 280ms ease-out, y 280ms ease-out, width 280ms ease-out, height 280ms ease-out, stroke-width 200ms ease-out, opacity 200ms ease-out, filter 200ms ease-out'
|
|
10861
12252
|
: 'stroke-width 200ms ease-out, opacity 200ms ease-out, filter 200ms ease-out',
|
|
@@ -10996,7 +12387,41 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10996
12387
|
// transition-colors only — without the transform transition,
|
|
10997
12388
|
// active:scale-95 would hard-cut. transform-gpu promotes the
|
|
10998
12389
|
// layer so scale doesn't trigger paint thrash.
|
|
10999
|
-
|
|
12390
|
+
/* Round 521 / Loop — extends R270's hover-preview pattern
|
|
12391
|
+
(inactive toggle hover previews the active state's
|
|
12392
|
+
visual register) to the TYPOGRAPHY axis at the chrome
|
|
12393
|
+
nodeSize S/M/L surface. Pre-R521 the inactive variant
|
|
12394
|
+
had `hover:bg-cyan-500/5` (R270 bg preview) but no
|
|
12395
|
+
typography preview — active variant uses `font-medium`
|
|
12396
|
+
(fw 500), inactive variant sat at default fw 400 even
|
|
12397
|
+
on hover.
|
|
12398
|
+
R521 adds `hover:font-medium` + `transition-[font-
|
|
12399
|
+
weight]` to the inactive variant so hovering an
|
|
12400
|
+
inactive S/M/L letter thickens the glyph 400 → 500,
|
|
12401
|
+
previewing the typography of the active state the
|
|
12402
|
+
click would commit to. Sibling to R421 chrome zoom-
|
|
12403
|
+
level fontWeight hover delta (rest 500 → hover 600)
|
|
12404
|
+
and R520 footer fontWeight hover (500 → 600) — same
|
|
12405
|
+
idiom: thicken-on-hover for chrome surfaces with a
|
|
12406
|
+
pre-commit gesture.
|
|
12407
|
+
`font-medium` (500) matches the ACTIVE variant's
|
|
12408
|
+
fw exactly — the inactive hover landing weight equals
|
|
12409
|
+
the active locked weight, so clicking commits to a
|
|
12410
|
+
typography state the eye already saw 'on the way in'.
|
|
12411
|
+
Hover-fw family extension (5 anchors now):
|
|
12412
|
+
R416 chip-row count digit rest 500 → hover 700/600
|
|
12413
|
+
R420 chrome zoom-level rest 500 → hover 600
|
|
12414
|
+
R425 hub-center digit rest 700 → hover 800
|
|
12415
|
+
R520 +N more flows footer rest 500 → hover 600
|
|
12416
|
+
R521 chrome nodeSize S/M/L inactive rest 400 → hover 500 ← this round
|
|
12417
|
+
Active variant `font-medium` unchanged so the rest-vs-
|
|
12418
|
+
active typography distinction stays intact when the
|
|
12419
|
+
user IS clicked-in (active stays at fw 500, inactive
|
|
12420
|
+
rest at fw 400, inactive hover preview at fw 500).
|
|
12421
|
+
data-topo-chrome-nodesize-hover-preview-fw="500" attr
|
|
12422
|
+
exposes the polish for tests. */
|
|
12423
|
+
className={`px-2 py-1 transition-colors transition-transform transition-[font-weight] duration-200 ease-out transform-gpu active:scale-95 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset ${idx > 0 ? 'border-l' : ''} ${nodeScale === v ? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25' : 'hover:bg-cyan-500/5 active:bg-cyan-500/15 hover:font-medium'}${chromePopping === popKey ? ' anet-chrome-pop' : ''}`}
|
|
12424
|
+
data-topo-chrome-nodesize-hover-preview-fw={nodeScale === v ? null : '500'}
|
|
11000
12425
|
style={{ color: nodeScale === v ? undefined : pal.legendText, borderColor: pal.containerBorder }}
|
|
11001
12426
|
>
|
|
11002
12427
|
{lbl}
|
|
@@ -11134,10 +12559,32 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
11134
12559
|
? 'true' : 'false'
|
|
11135
12560
|
}
|
|
11136
12561
|
data-topo-chrome-zoom-level-hover={hoveredZoomLevel ? 'true' : 'false'}
|
|
12562
|
+
/* Round 517 / Loop — extends the chrome zoom-level readout
|
|
12563
|
+
from 2-axis (R347 letter-spacing + R420 fontWeight) to
|
|
12564
|
+
3-axis hover signature by adding a color brighten to
|
|
12565
|
+
pal.legendHeadline. Pre-R517 the readout's color stayed
|
|
12566
|
+
at pal.legendText on hover; the digits got tighter
|
|
12567
|
+
kerning (0→0.5px) and heavier weight (500→600) but
|
|
12568
|
+
stayed the same legendText gray tone. R517 lifts color
|
|
12569
|
+
to legendHeadline on hover so the readout brightens
|
|
12570
|
+
into the headline tier at the same beat — matching the
|
|
12571
|
+
R55/R197/R239 hover-deepen-own-hue idiom that legend-
|
|
12572
|
+
row label + count carry at panel scope. Chrome strip's
|
|
12573
|
+
only data display now has full 3-axis hover signature
|
|
12574
|
+
(letter-spacing + fontWeight + color), parity with the
|
|
12575
|
+
chip-row chips' own hover-brighten pattern.
|
|
12576
|
+
Implementation: inline color uses the same hoveredZoom-
|
|
12577
|
+
Level state as R347/R420 — no new state. Transition
|
|
12578
|
+
already includes 'color 200ms ease-out' (R264) so the
|
|
12579
|
+
brighten eases under the same cadence as the kerning +
|
|
12580
|
+
weight tweens — one motion-coherent 3-axis lift.
|
|
12581
|
+
data-topo-chrome-zoom-level-color attr exposes the
|
|
12582
|
+
resolved color string for tests. */
|
|
12583
|
+
data-topo-chrome-zoom-level-color={hoveredZoomLevel ? 'headline' : 'text'}
|
|
11137
12584
|
onMouseEnter={() => setHoveredZoomLevel(true)}
|
|
11138
12585
|
onMouseLeave={() => setHoveredZoomLevel(false)}
|
|
11139
12586
|
style={{
|
|
11140
|
-
color: pal.legendText,
|
|
12587
|
+
color: hoveredZoomLevel ? pal.legendHeadline : pal.legendText,
|
|
11141
12588
|
borderColor: pal.containerBorder,
|
|
11142
12589
|
minWidth: 46,
|
|
11143
12590
|
display: 'inline-block',
|
|
@@ -11293,8 +12740,34 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
11293
12740
|
// owns transform during its 450ms run. transformOrigin
|
|
11294
12741
|
// 'center' so rotation pivots around the icon's centre
|
|
11295
12742
|
// (default would be top-left and the icon would arc).
|
|
12743
|
+
/* Round 514 / Loop — extends R352/R353 chrome icon hover-
|
|
12744
|
+
scale family to the reset button. Pre-R514 the reset
|
|
12745
|
+
icon had hover-rotate (-8°, R350) + hover-sw (2.5→2.8,
|
|
12746
|
+
R453) but no hover-scale, while zoom-out (R352), zoom-
|
|
12747
|
+
in (R352), and fullscreen (R353) icons all carried
|
|
12748
|
+
`group-hover:scale-110`. R514 brings the reset icon
|
|
12749
|
+
into the same 3-axis hover signature (rotate + sw +
|
|
12750
|
+
scale) as the rest of the chrome strip.
|
|
12751
|
+
Implementation: inline transform composes rotate +
|
|
12752
|
+
scale into one string. `transform: rotate(-8deg)
|
|
12753
|
+
scale(1.1)` on hover; `rotate(0) scale(1)` at rest.
|
|
12754
|
+
transformOrigin 'center' applies to both — rotation
|
|
12755
|
+
pivots around centre AND scale grows from centre.
|
|
12756
|
+
The Tailwind `group-hover:scale-110` approach can't
|
|
12757
|
+
work here because inline `style.transform` overrides
|
|
12758
|
+
className-based transforms; compose the multi-axis
|
|
12759
|
+
transform inline instead.
|
|
12760
|
+
Chrome icon hover gesture parity (post-R514):
|
|
12761
|
+
zoom-out scale-110 + sw-lift (R352/R454)
|
|
12762
|
+
zoom-in scale-110 + sw-lift (R352/R454)
|
|
12763
|
+
fullscreen scale-110 + sw-lift (R353/R455)
|
|
12764
|
+
reset scale-1.1 + sw-lift + rotate -8°
|
|
12765
|
+
(R514 + R453 + R350)
|
|
12766
|
+
reset gets the EXTRA rotate axis because R350's spin
|
|
12767
|
+
preview semantic is reset-specific — the rotation
|
|
12768
|
+
hints at the click-spin (R184) the button will fire. */
|
|
11296
12769
|
style={{
|
|
11297
|
-
transform: hoveredReset && !resetSpinning ? 'rotate(-8deg)' : 'rotate(0deg)',
|
|
12770
|
+
transform: hoveredReset && !resetSpinning ? 'rotate(-8deg) scale(1.1)' : 'rotate(0deg) scale(1)',
|
|
11298
12771
|
transformOrigin: 'center',
|
|
11299
12772
|
transition: 'transform 200ms ease-out, stroke-width 200ms ease-out',
|
|
11300
12773
|
}}
|