@sleep2agi/agent-network-dashboard 0.5.3-preview.9 → 0.5.3-preview.90
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 +4 -4
- 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/0ajvyui5ltdgw.js +1 -0
- package/.next/static/chunks/{00d~vl~k~7f75.js → 0u9my~t.g2_an.js} +1 -1
- package/.next/static/chunks/{03a4--7ncekmk.js → 0v4-5tng.uh.7.js} +2 -2
- package/.next/static/chunks/0y3zijtrr9r81.js +4 -0
- package/.next/static/chunks/13~aih56vx-cf.css +2 -0
- package/.next/static/chunks/1857rb9ikv20f.js +1 -0
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/ServersDrawer.tsx +16 -3
- package/app/components/TopoGraph.tsx +2446 -121
- package/app/globals.css +81 -7
- package/package.json +4 -4
- package/scripts/p157-servers-copy-test.mjs +95 -0
- package/scripts/topo-active-chrome-hover-text-test.mjs +107 -0
- package/scripts/topo-alias-glow-test.mjs +121 -0
- package/scripts/topo-avatar-brightness-test.mjs +116 -0
- package/scripts/topo-avatar-fallback-hover-test.mjs +104 -0
- package/scripts/topo-brand-logo-breath-test.mjs +102 -0
- package/scripts/topo-brand-logo-hover-brightness-test.mjs +105 -0
- package/scripts/topo-brand-logo-hover-rotate-test.mjs +93 -0
- package/scripts/topo-brand-logo-hover-test.mjs +85 -0
- package/scripts/topo-chip-row-digit-ls-test.mjs +135 -0
- package/scripts/topo-chip-row-member-alias-lit-test.mjs +154 -0
- package/scripts/topo-chip-row-unit-hover-tracking-test.mjs +124 -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-badge-text-brightness-test.mjs +83 -0
- package/scripts/topo-edge-pill-glow-test.mjs +67 -0
- package/scripts/topo-filter-pill-glow-test.mjs +90 -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-fullscreen-icon-rotate-test.mjs +93 -0
- package/scripts/topo-grid-content-bottom-attr-test.mjs +72 -0
- package/scripts/topo-group-label-brightness-test.mjs +84 -0
- package/scripts/topo-group-label-hover-glow-test.mjs +86 -0
- package/scripts/topo-group-label-member-alias-hover-test.mjs +125 -0
- package/scripts/topo-group-pill-glow-test.mjs +76 -0
- package/scripts/topo-hub-digit-brightness-test.mjs +79 -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-brightness-test.mjs +84 -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-row-label-glow-test.mjs +102 -0
- package/scripts/topo-legend-swatch-glow-test.mjs +109 -0
- package/scripts/topo-legend-swatch-member-alias-match-test.mjs +139 -0
- package/scripts/topo-minimap-hover-glow-test.mjs +109 -0
- package/scripts/topo-node-alias-brightness-test.mjs +84 -0
- package/scripts/topo-node-sub-text-brightness-test.mjs +88 -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-orphan-label-opacity-test.mjs +98 -0
- package/scripts/topo-panel-count-hover-ls-test.mjs +87 -0
- package/scripts/topo-panel-row-brightness-test.mjs +116 -0
- package/scripts/topo-panel-title-brightness-test.mjs +98 -0
- package/scripts/topo-panel-title-glow-test.mjs +111 -0
- package/scripts/topo-pill-x-rotate-test.mjs +96 -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-member-alias-match-test.mjs +133 -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-recent-row-text-glow-test.mjs +86 -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-runtime-badge-glow-test.mjs +108 -0
- package/scripts/topo-starfield-hue-test.mjs +109 -0
- package/scripts/topo-titleblock-h2-hover-fw-test.mjs +109 -0
- package/scripts/topo-titleblock-h2-hover-tracking-test.mjs +128 -0
- package/scripts/topo-titleblock-kicker-hover-test.mjs +134 -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/0hndl9yzpqajt.css +0 -2
- package/.next/static/chunks/0jn4lbsj97vfl.js +0 -1
- package/.next/static/chunks/0rz3-6.xs78~d.js +0 -1
- package/.next/static/chunks/0~~xbw42y4m3v.js +0 -4
- /package/.next/static/{nbpD7Lhttq59fvvIw9gTX → IPCDbF7lRKC58UL3VvTa9}/_buildManifest.js +0 -0
- /package/.next/static/{nbpD7Lhttq59fvvIw9gTX → IPCDbF7lRKC58UL3VvTa9}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{nbpD7Lhttq59fvvIw9gTX → IPCDbF7lRKC58UL3VvTa9}/_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
|
};
|
|
@@ -1699,7 +1725,18 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1699
1725
|
width) = 166px total title-block width vs 168px pre-R298 —
|
|
1700
1726
|
no measurable layout shift, just a deliberate tighter
|
|
1701
1727
|
grouping. */}
|
|
1702
|
-
|
|
1728
|
+
{/* Round 554 / Loop — title-block wrapper picks up `group` so
|
|
1729
|
+
the H2 below can subscribe to `group-hover:tracking-tighter`.
|
|
1730
|
+
Pairs with R548/R549 brand-logo hover gestures: cursor
|
|
1731
|
+
sweeping anywhere across the title cluster fires the brand
|
|
1732
|
+
logo's scale-105 + rotate-6 + breath ↔ AND tightens the
|
|
1733
|
+
H2's tracking from -0.025em → -0.05em.
|
|
1734
|
+
Makes the title-block read as one coherent hover cluster —
|
|
1735
|
+
brand mark provides the loud gesture (scale + rotate), H2
|
|
1736
|
+
provides the subtle editorial gesture (kerning tighten).
|
|
1737
|
+
data-topo-section-titleblock-group attr surfaces the gate
|
|
1738
|
+
for tests. */}
|
|
1739
|
+
<div className="group flex items-center gap-2.5" data-topo-section-titleblock-group>
|
|
1703
1740
|
{/* Round 297 / Loop: brand-logo color picks up the 200ms ease-
|
|
1704
1741
|
out transition. Pre-R297 the moon glyph had theme-
|
|
1705
1742
|
conditional color (cyber #67e8f9 cyan ↔ light #0d9488
|
|
@@ -1723,13 +1760,136 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1723
1760
|
overpowering the h2 at text-lg/font-semibold (R286).
|
|
1724
1761
|
viewBox 32×32 unchanged so the inner crescent geometry
|
|
1725
1762
|
scales proportionally. */}
|
|
1763
|
+
{/* Round 548 / Loop — title-block brand logo gains subtle
|
|
1764
|
+
hover-scale gesture. Pre-R548 the 40×40 crescent was
|
|
1765
|
+
fully static — no hover affordance. R548 adds hover:
|
|
1766
|
+
scale-105 (Tailwind 4 emits as `scale: 1.05`) so the
|
|
1767
|
+
brand mark gently responds to attention as the user's
|
|
1768
|
+
cursor sweeps across the title block. 5% scale is
|
|
1769
|
+
intentionally subtle (vs R350 chrome icon hover-scale-
|
|
1770
|
+
110): the brand logo is a passive identity mark, not
|
|
1771
|
+
an interactive control, so the gesture stays small.
|
|
1772
|
+
cursor: default to clarify non-clickability (the SVG
|
|
1773
|
+
isn't a button; just a brand element).
|
|
1774
|
+
transition-transform duration-200 ease-out matches the
|
|
1775
|
+
dashboard's R350-family hover-scale cadence so the
|
|
1776
|
+
brand logo's response shares the same motion vocabulary
|
|
1777
|
+
as the chrome strip's icon scales. transform-gpu hint
|
|
1778
|
+
promotes the SVG to its own compositor layer for crisp
|
|
1779
|
+
edges during the tween.
|
|
1780
|
+
Brand-mark delight gesture family (1 anchor):
|
|
1781
|
+
R548 title-block brand logo hover:scale-105
|
|
1782
|
+
The crescent at canvas top-left (data-topo-brand-
|
|
1783
|
+
canvas-mark) and the watermark at bottom-left (data-
|
|
1784
|
+
topo-brand-watermark) are intentionally LEFT STATIC —
|
|
1785
|
+
both have pointerEvents:none and exist as ambient
|
|
1786
|
+
decoration with their own breath/recede dynamics
|
|
1787
|
+
(R519/R525/R526/R528). The title-block logo is the
|
|
1788
|
+
ONLY brand surface that's a candidate for hover affordance,
|
|
1789
|
+
since it sits in the chrome-band where the cursor
|
|
1790
|
+
naturally passes during normal use. */}
|
|
1791
|
+
{/* Round 549 / Loop — extends R548 (hover:scale-105) with a
|
|
1792
|
+
subtle hover:rotate-6 rotation. Pairs scale + rotate on
|
|
1793
|
+
the brand mark, same idiom as R547 added to the pill ×
|
|
1794
|
+
close buttons (scale-110 + rotate-12) but at gentler
|
|
1795
|
+
amounts: 105% vs 110% scale and 6° vs 12° rotation —
|
|
1796
|
+
brand marks want restraint vs interactive close buttons.
|
|
1797
|
+
|
|
1798
|
+
The crescent-moon shape (curved cutout via mask) reads
|
|
1799
|
+
visually distinct as it rotates — the asymmetric cutout
|
|
1800
|
+
swings into a fresh angle, telegraphing "this brand mark
|
|
1801
|
+
is alive without being loud". The 6° landing lands the
|
|
1802
|
+
moon's cusp pointing slightly NE rather than straight up,
|
|
1803
|
+
a small but legible reveal of the shape's geometry.
|
|
1804
|
+
|
|
1805
|
+
Tailwind 4 emits BOTH `scale: 1.05` AND `rotate: 6deg`
|
|
1806
|
+
as INDIVIDUAL CSS properties (not a combined transform
|
|
1807
|
+
string — see R547 banked pattern). The className keeps
|
|
1808
|
+
transition-transform so both axes ease at the same 200ms
|
|
1809
|
+
cadence; transform-gpu hint stays so the compositor
|
|
1810
|
+
promotes both axes to GPU layers.
|
|
1811
|
+
|
|
1812
|
+
data-topo-brand-logo-hover-rotate attr surfaces the
|
|
1813
|
+
landing rotation for tests. Pair with R548's
|
|
1814
|
+
data-topo-brand-logo-hover-scale attr — both attrs
|
|
1815
|
+
advertise the dual-axis hover signature. */}
|
|
1816
|
+
{/* Round 553 / Loop — title-block brand logo gains subtle
|
|
1817
|
+
idle opacity breath (~0.92 ↔ 1, 5s ease-in-out cycle).
|
|
1818
|
+
5th anchor in the 呼吸感 breath family, slotting into
|
|
1819
|
+
the ascending cadence ladder between hub idle (4s) and
|
|
1820
|
+
watermark (6s):
|
|
1821
|
+
row hot 3s
|
|
1822
|
+
hub idle 4s
|
|
1823
|
+
brand logo 5s ← this round
|
|
1824
|
+
watermark 6s
|
|
1825
|
+
crescent 7s
|
|
1826
|
+
Composes cleanly with R548 hover:scale-105 + R549
|
|
1827
|
+
hover:rotate-6 — opacity, scale, and rotate are
|
|
1828
|
+
independent CSS properties; the moon keeps breathing
|
|
1829
|
+
as it scales and rotates on hover. Layered effect
|
|
1830
|
+
reads as "this brand mark is alive even before you
|
|
1831
|
+
touch it, and lights up further on hover".
|
|
1832
|
+
Reduced-motion gate: component-side `!reducedMotion`
|
|
1833
|
+
toggles the className (canonical TopoGraph breath
|
|
1834
|
+
pattern); R29 globals.css blanket provides a
|
|
1835
|
+
defense-in-depth fallback (animation-duration →
|
|
1836
|
+
0.001ms under prefers-reduced-motion: reduce).
|
|
1837
|
+
data-topo-brand-logo-breath attr exposes the gate
|
|
1838
|
+
state for tests. */}
|
|
1839
|
+
{/* Round 557 / Loop — brand logo gains 4th hover axis:
|
|
1840
|
+
hover:brightness-110 (filter). Adds a chromatic axis
|
|
1841
|
+
to the brand-mark hover signature alongside R548
|
|
1842
|
+
scale, R549 rotate, R553 idle breath:
|
|
1843
|
+
R548 hover:scale-105 transform-scale
|
|
1844
|
+
R549 hover:rotate-6 transform-rotate
|
|
1845
|
+
R553 idle breath (5s) opacity (animation)
|
|
1846
|
+
R557 hover:brightness-110 filter ← this round
|
|
1847
|
+
All 4 axes ride on INDEPENDENT CSS properties (scale,
|
|
1848
|
+
rotate, opacity, filter) — they compose freely without
|
|
1849
|
+
clobbering each other. The cyan/teal crescent gains a
|
|
1850
|
+
soft +10% brightness boost on hover, layered on top of
|
|
1851
|
+
the existing scale + rotate lift + ongoing idle breath.
|
|
1852
|
+
Why +10% (vs more aggressive 125/150): brand mark wants
|
|
1853
|
+
restraint. The eye reads the brightness shift as "this
|
|
1854
|
+
mark lights up under attention" without crossing into
|
|
1855
|
+
"this mark is now glowing".
|
|
1856
|
+
Implementation: className extends transition-transform
|
|
1857
|
+
→ transition-[transform,filter] so the brightness
|
|
1858
|
+
tweens at the same 200ms ease-out cadence as the scale
|
|
1859
|
+
+ rotate axes — one motion-coherent 3-property hover
|
|
1860
|
+
lift on the className tier (plus the inline color 200ms
|
|
1861
|
+
transition for theme-toggle eases).
|
|
1862
|
+
Brand-mark family axis count: 4 hover-state axes
|
|
1863
|
+
cleanly factor across:
|
|
1864
|
+
geometry (scale + rotate)
|
|
1865
|
+
paint (opacity breath + brightness on hover)
|
|
1866
|
+
Cluster reads as "alive, lifting, and lighting up under
|
|
1867
|
+
attention" — three independent gesture vocabularies on
|
|
1868
|
+
one surface.
|
|
1869
|
+
data-topo-brand-logo-hover-brightness attr surfaces
|
|
1870
|
+
the landing value for tests. */}
|
|
1726
1871
|
<svg
|
|
1727
1872
|
width="40" height="40" viewBox="0 0 32 32" aria-hidden
|
|
1728
|
-
className=
|
|
1873
|
+
className={`shrink-0 transition-[transform,filter] duration-200 ease-out hover:scale-105 hover:rotate-6 hover:brightness-110 transform-gpu${!reducedMotion ? ' anet-topo-brand-logo-breath' : ''}`}
|
|
1729
1874
|
data-topo-brand-logo
|
|
1875
|
+
data-topo-brand-logo-hover-scale="1.05"
|
|
1876
|
+
data-topo-brand-logo-hover-rotate="6deg"
|
|
1877
|
+
data-topo-brand-logo-hover-brightness="1.1"
|
|
1878
|
+
data-topo-brand-logo-breath={!reducedMotion ? 'true' : 'false'}
|
|
1730
1879
|
style={{
|
|
1731
1880
|
color: isLight ? '#0d9488' : '#67e8f9',
|
|
1732
|
-
|
|
1881
|
+
cursor: 'default',
|
|
1882
|
+
// R557 — extend transition list to include filter (and
|
|
1883
|
+
// re-spec transform for cadence parity) so the new
|
|
1884
|
+
// hover:brightness-110 axis eases at 200ms alongside
|
|
1885
|
+
// the existing color 200ms (theme-toggle ease) and the
|
|
1886
|
+
// className-based hover:scale-105 / hover:rotate-6.
|
|
1887
|
+
// Inline transition is a shorthand and overrides the
|
|
1888
|
+
// className's transition-[transform,filter] — listing
|
|
1889
|
+
// all axes here ensures the eased property set covers
|
|
1890
|
+
// color (theme) + transform (scale + rotate) + filter
|
|
1891
|
+
// (brightness) at uniform 200ms ease-out.
|
|
1892
|
+
transition: 'color 200ms ease-out, transform 200ms ease-out, filter 200ms ease-out',
|
|
1733
1893
|
}}
|
|
1734
1894
|
>
|
|
1735
1895
|
<mask id="s2a-titleblock-moon-mask">
|
|
@@ -1777,7 +1937,40 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1777
1937
|
R300 marks the milestone of 25 rounds (R275-R300) of
|
|
1778
1938
|
continuous TopoGraph polish + codex's Vincent 5215/
|
|
1779
1939
|
5222 logo asset+integration work. */}
|
|
1780
|
-
|
|
1940
|
+
{/* Round 555 / Loop — kicker "Network Topology" gains group-
|
|
1941
|
+
hover affordance via the R554 wrapper's `group` flag,
|
|
1942
|
+
closing the title-block cluster's hover coverage at 3
|
|
1943
|
+
surfaces (brand logo + H2 + kicker).
|
|
1944
|
+
Picks up the small-label SPREAD direction (R554 banked
|
|
1945
|
+
"small labels SPREAD on hover / large headlines TIGHTEN"
|
|
1946
|
+
— kicker is xs uppercase, definitely a small label) plus
|
|
1947
|
+
a color brighten (text-gray-500 #6b7280 → text-gray-400
|
|
1948
|
+
#9ca3af).
|
|
1949
|
+
Spread: tracking-widest (0.1em rest) → 0.13em hover —
|
|
1950
|
+
+30% kerning bump. At text-xs (12px) the per-gap shift
|
|
1951
|
+
is 1.2px → 1.56px (+0.36px/gap), legible without
|
|
1952
|
+
overshooting the rest's tracking-widest editorial base.
|
|
1953
|
+
Color: text-gray-500 → text-gray-400 — one tier lighter,
|
|
1954
|
+
same idiom as R296 (kicker rest tone-up from gray-600 to
|
|
1955
|
+
gray-500), now extended at the hover-state tier.
|
|
1956
|
+
transition-[letter-spacing,color] duration-200 ease-out
|
|
1957
|
+
matches the 200ms cadence of R554 H2 ls + the rest of
|
|
1958
|
+
the hover-ls family (R344/R345/R347/R351/R420/R427/R431/
|
|
1959
|
+
R432/R434/R527/R539).
|
|
1960
|
+
Title-block cluster signature post-R555 (3 surfaces):
|
|
1961
|
+
brand logo loud scale + rotate + breath
|
|
1962
|
+
(R548/R549/R553)
|
|
1963
|
+
H2 subtle tracking-tighter
|
|
1964
|
+
(R554, editorial-tighten)
|
|
1965
|
+
kicker subtle tracking-spread + color lift
|
|
1966
|
+
(R555, data-spread) ← this round
|
|
1967
|
+
Two of the three surfaces are typographic; the brand
|
|
1968
|
+
logo carries the geometric+chromatic motion. Cluster
|
|
1969
|
+
reads as ONE coherent hover unit through three
|
|
1970
|
+
independent gesture vocabularies.
|
|
1971
|
+
data-topo-section-kicker-hover-tracking + -hover-color
|
|
1972
|
+
attrs expose the landing values for tests. */}
|
|
1973
|
+
<div className="text-xs uppercase text-gray-500 group-hover:text-gray-400 tracking-widest group-hover:tracking-[0.13em] transition-[letter-spacing,color] duration-200 ease-out leading-tight font-medium" data-topo-section-kicker data-topo-section-kicker-hover-tracking="0.13em" data-topo-section-kicker-hover-color="text-gray-400">Network Topology</div>
|
|
1781
1974
|
{/* Round 286 / Loop: title 'Command mesh' adopts tracking-tight
|
|
1782
1975
|
(-0.025em) to complement R285 kicker tracking-widest. Wide
|
|
1783
1976
|
eyebrow + tight headline is the conventional editorial
|
|
@@ -1789,7 +1982,62 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1789
1982
|
cumulatively legible across 12 characters. font-semibold
|
|
1790
1983
|
(600) stays — tracking-tight does the heavy lifting for
|
|
1791
1984
|
the editorial register. */}
|
|
1792
|
-
|
|
1985
|
+
{/* Round 554 / Loop — H2 "Command mesh" gains group-hover-
|
|
1986
|
+
gated tracking-tighter via the wrapper's R554 `group`
|
|
1987
|
+
flag. Pre-R554 the H2 was fully static (R286 tracking-
|
|
1988
|
+
tight only at rest). R554 adds an editorial-tighten
|
|
1989
|
+
gesture: when cursor sweeps anywhere across the title
|
|
1990
|
+
cluster (brand logo OR title text), the headline tightens
|
|
1991
|
+
from -0.025em → -0.05em.
|
|
1992
|
+
Inverts the typical hover-letter-spacing direction:
|
|
1993
|
+
small labels (chip counts, panel titles, edge digits)
|
|
1994
|
+
SPREAD on hover → "data telegraphing"
|
|
1995
|
+
large headlines (h2 Command mesh)
|
|
1996
|
+
TIGHTEN on hover → "editorial emphasis"
|
|
1997
|
+
Both directions are coherent design language — small
|
|
1998
|
+
data wants spacing for legibility; large headlines want
|
|
1999
|
+
tightening for designed-headline polish. Same idiom as
|
|
2000
|
+
the conventional editorial pairing of "wide kicker +
|
|
2001
|
+
tight headline" R285/R286 set up (kicker spreads 0.1em
|
|
2002
|
+
tracking-widest; headline tightens -0.025em tracking-
|
|
2003
|
+
tight) — R554 deepens that pairing's tighten side at
|
|
2004
|
+
the hover-state tier.
|
|
2005
|
+
At text-lg (18px) the shift is -0.45px → -0.9px per
|
|
2006
|
+
gap (~5.4px total tightening across "Command mesh" 12
|
|
2007
|
+
chars). Subtle but legible when the cursor sweeps in.
|
|
2008
|
+
transition-[letter-spacing] duration-200 ease-out
|
|
2009
|
+
matches the 200ms hover-ls cadence used at R344/R345/
|
|
2010
|
+
R347/R351/R420/R427/R431/R432/R434/R527/R539 family
|
|
2011
|
+
anchors.
|
|
2012
|
+
data-topo-section-title-hover-tracking attr surfaces
|
|
2013
|
+
the landing tracking class for tests. */}
|
|
2014
|
+
{/* Round 556 / Loop — H2 "Command mesh" gains a 2nd
|
|
2015
|
+
editorial-emphasis axis: group-hover:font-bold paired
|
|
2016
|
+
with R554's group-hover:tracking-tighter. Both lifts
|
|
2017
|
+
fire on the same R554 wrapper's `group` flag (hover
|
|
2018
|
+
anywhere in the title cluster → BOTH H2 axes intensify
|
|
2019
|
+
simultaneously).
|
|
2020
|
+
H2 hover signature post-R556 (2 typographic axes
|
|
2021
|
+
intensify together):
|
|
2022
|
+
rest font-semibold 600 + tracking-tight -0.025em
|
|
2023
|
+
hover font-bold 700 + tracking-tighter -0.05em
|
|
2024
|
+
Editorial emphasis through TWO axes — heavier AND
|
|
2025
|
+
tighter on hover. Mirrors the conventional "designed-
|
|
2026
|
+
headline emphasis" idiom (heavier + tighter = more
|
|
2027
|
+
authoritative; the eye reads both axes as intensifying
|
|
2028
|
+
the same semantic).
|
|
2029
|
+
Hover-fw family extension (6 anchors now):
|
|
2030
|
+
R416 chip-row count digit (chip group-hover)
|
|
2031
|
+
R420 chrome zoom-level (hover)
|
|
2032
|
+
R425 hub-center digit (hub hover)
|
|
2033
|
+
R520 +N more flows footer (recent panel hover)
|
|
2034
|
+
R521 chrome nodeSize S/M/L (inactive hover)
|
|
2035
|
+
R556 title-block H2 (cluster group-hover) ← this round
|
|
2036
|
+
Transition list extends to include 'font-weight 200ms
|
|
2037
|
+
ease-out' alongside the existing 'letter-spacing'
|
|
2038
|
+
200ms cadence. data-topo-section-title-hover-fw attr
|
|
2039
|
+
surfaces the landing weight for tests. */}
|
|
2040
|
+
<h2 className="text-lg text-white font-semibold group-hover:font-bold leading-tight tracking-tight group-hover:tracking-tighter transition-[letter-spacing,font-weight] duration-200 ease-out" data-topo-section-title data-topo-section-title-hover-tracking="tracking-tighter" data-topo-section-title-hover-fw="700">Command mesh</h2>
|
|
1793
2041
|
</div>
|
|
1794
2042
|
</div>
|
|
1795
2043
|
{/* Round 328 / Loop: chip-row strip wrapper gap 2 → 2.5
|
|
@@ -1959,8 +2207,61 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1959
2207
|
// overlays the release-pop. Matching `transform-gpu`
|
|
1960
2208
|
// promotes the layer so the scale doesn't trigger
|
|
1961
2209
|
// layout/paint thrash. Sibling change on Grid below.
|
|
1962
|
-
|
|
1963
|
-
|
|
2210
|
+
/* Round 522 / Loop — extends R521's typography-preview
|
|
2211
|
+
idiom (chrome nodeSize hover:font-medium 400 → 500) to
|
|
2212
|
+
the Ring/Grid layout toggle's inactive variant. Pre-
|
|
2213
|
+
R522 the inactive Ring/Grid had `hover:text-cyan-300
|
|
2214
|
+
hover:bg-cyan-500/5` (R270 color + bg previews of the
|
|
2215
|
+
active state) but no typography preview — the active
|
|
2216
|
+
variant uses `font-medium` (fw 500), inactive sat at
|
|
2217
|
+
default fw 400 even on hover. R522 adds `hover:font-
|
|
2218
|
+
medium` to the inactive Ring/Grid so the rest-vs-hover
|
|
2219
|
+
transition previews the typography state the click
|
|
2220
|
+
would commit to, matching the click commits's locked
|
|
2221
|
+
weight.
|
|
2222
|
+
font-weight 150ms appended to the transition list
|
|
2223
|
+
matching the existing 150ms color/bg cadence at this
|
|
2224
|
+
button — when hover lifts color (gray-400 → cyan-300)
|
|
2225
|
+
+ bg (transparent → cyan-500/5) + fw (400 → 500), all
|
|
2226
|
+
3 ease at the same 150ms beat.
|
|
2227
|
+
Hover-fw family extension (6 anchors): R416/R420/R425/
|
|
2228
|
+
R520/R521/R522. R522 closes the chrome toggle group
|
|
2229
|
+
typography preview at the last remaining toggle —
|
|
2230
|
+
layout (Ring/Grid). After R521 (nodeSize) + R522
|
|
2231
|
+
(layout), every multi-state chrome toggle has hover-
|
|
2232
|
+
fw preview on its inactive variant.
|
|
2233
|
+
data-topo-chrome-layout-hover-preview-fw="500" attr
|
|
2234
|
+
on inactive button exposes the polish for tests. */
|
|
2235
|
+
/* Round 552 / Loop — chrome active-variant gains hover:
|
|
2236
|
+
text-cyan-200, lifting text one brightness tier alongside
|
|
2237
|
+
the existing hover:bg-cyan-500/20 bg deepen. Coordinated
|
|
2238
|
+
4-anchor edit (replace_all touched 4 sibling lines sharing
|
|
2239
|
+
the identical active-variant className substring):
|
|
2240
|
+
Ring (this line) layout === 'ring'
|
|
2241
|
+
Grid (line ~2097) layout === 'grid'
|
|
2242
|
+
S/M/L (line ~12635) nodeScale === v
|
|
2243
|
+
Fscrn (line ~13030) isFullscreen
|
|
2244
|
+
Pre-R552 the active variant's hover state only deepened bg
|
|
2245
|
+
(cyan-500/15 → /20); text stayed planted at cyan-300. The
|
|
2246
|
+
inactive variant already lifts text on hover (text-gray-400
|
|
2247
|
+
→ text-cyan-300). R552 brings parity: active variant lifts
|
|
2248
|
+
text one tier brighter (cyan-300 → cyan-200) on hover,
|
|
2249
|
+
mirroring the inactive variant's "text brightens on hover"
|
|
2250
|
+
gesture at the next brightness step.
|
|
2251
|
+
Brightness ladder snapshot (cyan):
|
|
2252
|
+
cyan-400 brand chrome focus ring
|
|
2253
|
+
cyan-300 active-variant rest ←─┐
|
|
2254
|
+
│ +1 tier on hover
|
|
2255
|
+
cyan-200 active-variant hover ←─┘ (this round)
|
|
2256
|
+
Pure paint axis (text color); bbox/geometry unchanged.
|
|
2257
|
+
transition-colors already in the class list so the cyan-
|
|
2258
|
+
300 → cyan-200 swap eases at the existing 200ms cadence.
|
|
2259
|
+
hover-color brighten family extension at the chrome strip
|
|
2260
|
+
active-variant scope; sibling to the inactive variant's
|
|
2261
|
+
R163/R178/R179/R270 hover:text-cyan-300 idiom. */
|
|
2262
|
+
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 hover:text-cyan-200 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' : ''}`}
|
|
2263
|
+
data-topo-chrome-layout-hover-preview-fw={layout === 'ring' ? null : '500'}
|
|
2264
|
+
style={{ transition: 'background-color 150ms ease, color 150ms ease, letter-spacing 200ms ease-out, transform 150ms ease-out, font-weight 150ms ease' }}
|
|
1964
2265
|
>
|
|
1965
2266
|
Ring
|
|
1966
2267
|
</button>
|
|
@@ -1982,7 +2283,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1982
2283
|
// R492 sibling — Grid button picks up active:scale-95
|
|
1983
2284
|
// press feedback + transform in transition list. Same
|
|
1984
2285
|
// vocabulary as Ring above.
|
|
1985
|
-
|
|
2286
|
+
/* Round 522 sibling — Grid button mirrors Ring above:
|
|
2287
|
+
inactive variant gains `hover:font-medium` typography
|
|
2288
|
+
preview + font-weight 150ms in inline transition list.
|
|
2289
|
+
Same idiom, same family (R522 chrome layout). */
|
|
2290
|
+
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 hover:text-cyan-200 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' : ''}`}
|
|
2291
|
+
data-topo-chrome-layout-hover-preview-fw={layout === 'grid' ? null : '500'}
|
|
1986
2292
|
/* Round 268 / Loop: Grid button's left border (the
|
|
1987
2293
|
internal divider between Ring and Grid) picks up
|
|
1988
2294
|
pal.containerBorder, matching the wrapper change at
|
|
@@ -1995,7 +2301,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1995
2301
|
keeps R268's theme-toggle smoothness intact.
|
|
1996
2302
|
R492 adds `transform 150ms ease-out` so active:scale-95
|
|
1997
2303
|
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' }}
|
|
2304
|
+
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
2305
|
>
|
|
2000
2306
|
Grid
|
|
2001
2307
|
</button>
|
|
@@ -2028,6 +2334,41 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2028
2334
|
// lists once for both chips to share.
|
|
2029
2335
|
const workingAliases = onlineNodes.filter(s => s.status === 'working').map(s => s.alias);
|
|
2030
2336
|
const onlineAliases = onlineNodes.map(s => s.alias);
|
|
2337
|
+
/* Round 565 (50-round milestone) / Loop — extend the
|
|
2338
|
+
inspection-overrides-encoding family to a 7th anchor at
|
|
2339
|
+
the chip-row chip scope. Computes the hovered alias's
|
|
2340
|
+
status tier (same idiom as R562/R563) so each chip's
|
|
2341
|
+
className can include the "lit" bg/border treatment when
|
|
2342
|
+
operator hovers a node matching its tier.
|
|
2343
|
+
Family progression — 7 anchors complete:
|
|
2344
|
+
R484 recent-row timestamp alias hover
|
|
2345
|
+
R485 edge particle opacity alias hover
|
|
2346
|
+
R486 minimap dot opacity alias hover
|
|
2347
|
+
R561 group-label + ants-gate member-alias hover
|
|
2348
|
+
R562 legend-swatch r + glow member-alias status match
|
|
2349
|
+
R563 pressure-seg brightness member-alias status match
|
|
2350
|
+
R565 chip-row chip bg/border member-alias status match ← this round
|
|
2351
|
+
Status-tier-match feedback now SATURATES across panel
|
|
2352
|
+
chrome at 4 surfaces simultaneously:
|
|
2353
|
+
minimap dot (R486)
|
|
2354
|
+
legend swatch (R562)
|
|
2355
|
+
pressure-seg (R563)
|
|
2356
|
+
chip-row chip (R565) ← this round
|
|
2357
|
+
When operator hovers a 'working' node alias, ALL FOUR
|
|
2358
|
+
surfaces light up in green; 'idle' → all four in teal;
|
|
2359
|
+
'offline' → all four in slate. The eye gets 4-way
|
|
2360
|
+
confirmation of "your inspected node is in this tier"
|
|
2361
|
+
across every persistent status-reference surface. */
|
|
2362
|
+
const hoveredAliasTierKey: 'working' | 'idle' | 'offline' | null = (() => {
|
|
2363
|
+
if (!hoveredAlias) return null;
|
|
2364
|
+
const s = onlineNodes.find(n => n.alias === hoveredAlias)
|
|
2365
|
+
?? offlineNodes.find(n => n.alias === hoveredAlias);
|
|
2366
|
+
if (!s) return null;
|
|
2367
|
+
if (s.status === 'working') return 'working';
|
|
2368
|
+
return offlineNodes.includes(s) ? 'offline' : 'idle';
|
|
2369
|
+
})();
|
|
2370
|
+
const isWorkingChipLit = hoveredAliasTierKey === 'working';
|
|
2371
|
+
const isOnlineChipLit = hoveredAliasTierKey === 'idle';
|
|
2031
2372
|
const truncate = (list: string[]) => {
|
|
2032
2373
|
const head = list.slice(0, 8).join(', ');
|
|
2033
2374
|
const tail = list.length > 8 ? ` + ${list.length - 8} more` : '';
|
|
@@ -2120,13 +2461,19 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2120
2461
|
// R398 hover-lift conditional. Composes with hover:-
|
|
2121
2462
|
// translate-y-px for the same lift-and-compress
|
|
2122
2463
|
// tactile signature R493 brought to reset/fullscreen.
|
|
2464
|
+
/* R565: when isWorkingChipLit (operator hovers a working
|
|
2465
|
+
node), chip stays in its "lit" bg-green-500/15 +
|
|
2466
|
+
border-green-500/30 state at rest. Same visual as
|
|
2467
|
+
hover; member-alias-matching pins the lift without
|
|
2468
|
+
requiring cursor on the chip. */
|
|
2123
2469
|
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 ${
|
|
2124
2470
|
workingCount > 0
|
|
2125
|
-
? 'bg-green-500/
|
|
2471
|
+
? `${isWorkingChipLit ? 'bg-green-500/15 border-green-500/30' : 'bg-green-500/10 border-green-500/20'} text-green-300 hover:bg-green-500/15 hover:border-green-500/30 hover:-translate-y-px active:scale-95`
|
|
2126
2472
|
: 'bg-green-500/10 text-green-300 border-green-500/20'
|
|
2127
2473
|
}`}
|
|
2128
2474
|
data-chip-hover-lift={workingCount > 0 ? 'true' : 'false'}
|
|
2129
2475
|
data-chip-group-hover-brighten="true"
|
|
2476
|
+
data-working-chip-member-alias-lit={isWorkingChipLit ? 'true' : 'false'}
|
|
2130
2477
|
data-working-chip
|
|
2131
2478
|
data-working-chip-aliases={workingAliases.join(',')}
|
|
2132
2479
|
data-pin-mirror={pinnedStatus === 'working' ? 'true' : 'false'}
|
|
@@ -2206,7 +2553,26 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2206
2553
|
at the chip-count scope. Sibling edits on the
|
|
2207
2554
|
online + active-links chip digits below. data-
|
|
2208
2555
|
working-chip-digit attr exposes the digit span. */}
|
|
2209
|
-
|
|
2556
|
+
{/* Round 539 / Loop — chip-row digit gains group-hover:
|
|
2557
|
+
tracking-wide alongside the existing R362 group-
|
|
2558
|
+
hover:font-bold. Pre-R539 the chip digit lifted
|
|
2559
|
+
only on the font-weight axis (600 → 700 on chip
|
|
2560
|
+
hover); R539 adds the kerning axis (tracking
|
|
2561
|
+
normal → tracking-wide ≈ 0.025em ≈ 0.3px on a 12px
|
|
2562
|
+
digit) so hover lifts BOTH typography axes
|
|
2563
|
+
together — same idiom R420/R517 establish at the
|
|
2564
|
+
chrome zoom-level (letter-spacing + fontWeight
|
|
2565
|
+
hover delta) and R531/R530 mirror at the panel
|
|
2566
|
+
label scope. transition-[font-weight] extends to
|
|
2567
|
+
transition-[font-weight,letter-spacing] for the
|
|
2568
|
+
smooth dual-axis tween.
|
|
2569
|
+
Sibling treatment across the 3 chip-row digits
|
|
2570
|
+
(working / online / active-links) — single concept
|
|
2571
|
+
replicated at 3 surfaces by replace_all.
|
|
2572
|
+
Hover-letter-spacing family extension (12 anchors
|
|
2573
|
+
now): R344/R345/R347/R420/R427/R431/R432/R433/
|
|
2574
|
+
R434/R517/R518 + R539 (this round). */}
|
|
2575
|
+
<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,letter-spacing] duration-200 group-hover:opacity-100 group-hover:tracking-wide" data-working-chip-unit> working</span>
|
|
2210
2576
|
</span>
|
|
2211
2577
|
<span
|
|
2212
2578
|
// Round 201 / Loop: online chip — mirror of the working
|
|
@@ -2225,13 +2591,18 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2225
2591
|
// R494 sibling — online chip joins the active:scale-95 press
|
|
2226
2592
|
// family (gated on onlineNodes.length > 0 clickable branch,
|
|
2227
2593
|
// same conditional pattern as the working chip above).
|
|
2594
|
+
/* R565: same lit-on-member-alias-match pattern as
|
|
2595
|
+
working chip — online chip routes hover to 'idle'
|
|
2596
|
+
tier (see onMouseEnter below), so its member-alias
|
|
2597
|
+
gate is `hoveredAliasTierKey === 'idle'`. */
|
|
2228
2598
|
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 ${
|
|
2229
2599
|
onlineNodes.length > 0
|
|
2230
|
-
? 'bg-cyan-500/
|
|
2600
|
+
? `${isOnlineChipLit ? 'bg-cyan-500/15 border-cyan-500/30' : 'bg-cyan-500/10 border-cyan-500/20'} text-cyan-300 hover:bg-cyan-500/15 hover:border-cyan-500/30 hover:-translate-y-px active:scale-95`
|
|
2231
2601
|
: 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20'
|
|
2232
2602
|
}`}
|
|
2233
2603
|
data-chip-hover-lift={onlineNodes.length > 0 ? 'true' : 'false'}
|
|
2234
2604
|
data-chip-group-hover-brighten="true"
|
|
2605
|
+
data-online-chip-member-alias-lit={isOnlineChipLit ? 'true' : 'false'}
|
|
2235
2606
|
data-online-chip
|
|
2236
2607
|
data-online-chip-aliases={onlineAliases.join(',')}
|
|
2237
2608
|
data-pin-mirror={pinnedStatus === 'idle' ? 'true' : 'false'}
|
|
@@ -2277,7 +2648,9 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2277
2648
|
>
|
|
2278
2649
|
{/* R337 sibling — online chip unit demotion. */}
|
|
2279
2650
|
{/* R362 sibling — online-chip digit gains font-semibold. */}
|
|
2280
|
-
|
|
2651
|
+
{/* R539 sibling — online chip digit. Same idiom as
|
|
2652
|
+
working chip above (group-hover:tracking-wide). */}
|
|
2653
|
+
<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,letter-spacing] duration-200 group-hover:opacity-100 group-hover:tracking-wide" data-online-chip-unit> online</span>
|
|
2281
2654
|
</span>
|
|
2282
2655
|
</>
|
|
2283
2656
|
);
|
|
@@ -2292,6 +2665,31 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2292
2665
|
const o = offlineNodes.length;
|
|
2293
2666
|
const total = w + i + o;
|
|
2294
2667
|
if (total === 0) return null;
|
|
2668
|
+
/* Round 563 / Loop — inspection-overrides-encoding family
|
|
2669
|
+
6th anchor at the pressure-bar segment scope. When
|
|
2670
|
+
operator hovers a NODE ALIAS on the canvas, the segment
|
|
2671
|
+
matching that node's status tier lights up with its
|
|
2672
|
+
R210 brightness + R542 drop-shadow treatment — mirror
|
|
2673
|
+
of R562 legend-swatch pattern at the pressure-bar scope.
|
|
2674
|
+
Family progression (6 anchors):
|
|
2675
|
+
R484 recent-row timestamp alias hover
|
|
2676
|
+
R485 edge particle opacity alias hover
|
|
2677
|
+
R486 minimap dot opacity alias hover
|
|
2678
|
+
R561 group-label + ants-gate member-alias hover
|
|
2679
|
+
R562 legend-swatch r + glow member-alias status match
|
|
2680
|
+
R563 pressure-seg brightness member-alias status match ← this round
|
|
2681
|
+
Same status-tier-match computation as R562 (banked
|
|
2682
|
+
idiom): find the hovered alias's session, map to
|
|
2683
|
+
working/idle/offline tier, then per-segment check
|
|
2684
|
+
`hoveredAliasRowKey === key`. Computed once at IIFE
|
|
2685
|
+
scope, used inside the seg() closure. */
|
|
2686
|
+
const hoveredSession = hoveredAlias
|
|
2687
|
+
? (onlineNodes.find(s => s.alias === hoveredAlias) ?? offlineNodes.find(s => s.alias === hoveredAlias))
|
|
2688
|
+
: null;
|
|
2689
|
+
const hoveredAliasTierKey: 'working' | 'idle' | 'offline' | null = !hoveredSession ? null
|
|
2690
|
+
: hoveredSession.status === 'working' ? 'working'
|
|
2691
|
+
: offlineNodes.includes(hoveredSession) ? 'offline'
|
|
2692
|
+
: 'idle';
|
|
2295
2693
|
// Round 60 / Loop: each segment toggles a sticky filter via
|
|
2296
2694
|
// `pinnedStatus`. Click the working segment → all non-working
|
|
2297
2695
|
// nodes dim; click again → release. Segments share width with
|
|
@@ -2304,6 +2702,10 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2304
2702
|
const seg = (n: number, color: string, key: 'working' | 'idle' | 'offline', label: string) => {
|
|
2305
2703
|
if (n === 0) return null;
|
|
2306
2704
|
const isPinned = pinnedStatus === key;
|
|
2705
|
+
// R563: member-alias-matching flag — when operator hovers
|
|
2706
|
+
// a node alias whose status matches this segment's tier.
|
|
2707
|
+
const isMemberAliasMatching = hoveredAliasTierKey === key;
|
|
2708
|
+
const isSegLit = hoveredStatus === key || isMemberAliasMatching;
|
|
2307
2709
|
// R102: list the aliases that match this segment's bucket
|
|
2308
2710
|
// so the title answers WHICH n, not just HOW MANY. Closes
|
|
2309
2711
|
// the last "info-density gap" in the chip-row surfaces
|
|
@@ -2323,6 +2725,8 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2323
2725
|
data-pressure-seg={key}
|
|
2324
2726
|
data-pressure-seg-aliases={matchAliases.join(',')}
|
|
2325
2727
|
data-pressure-seg-hovered={hoveredStatus === key ? 'true' : 'false'}
|
|
2728
|
+
data-pressure-seg-member-alias-matching={isMemberAliasMatching ? 'true' : 'false'}
|
|
2729
|
+
data-pressure-seg-lit={isSegLit ? 'true' : 'false'}
|
|
2326
2730
|
role="button"
|
|
2327
2731
|
tabIndex={0}
|
|
2328
2732
|
aria-pressed={isPinned}
|
|
@@ -2366,7 +2770,47 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2366
2770
|
height: '100%',
|
|
2367
2771
|
cursor: 'pointer',
|
|
2368
2772
|
boxShadow: isPinned ? `inset 0 0 0 1px ${color}, inset 0 0 0 2px rgba(255,255,255,0.6)` : undefined,
|
|
2369
|
-
|
|
2773
|
+
/* Round 542 / Loop — pressure-bar segments gain
|
|
2774
|
+
drop-shadow tier-color glow on hover, stacked
|
|
2775
|
+
on R210 brightness(1.2). Sibling to R537 legend
|
|
2776
|
+
swatch + R541 vendor chip glow at the chip-row
|
|
2777
|
+
scope — three same-pattern surfaces (legend
|
|
2778
|
+
swatch / vendor chip / pressure segment) all
|
|
2779
|
+
radiate their identity color on hover.
|
|
2780
|
+
3rd anchor in the chip-row tier-color paint
|
|
2781
|
+
glow sub-family:
|
|
2782
|
+
R537 legend swatch row.fill (status hex)
|
|
2783
|
+
R541 vendor chip v.color (hsl via color-mix)
|
|
2784
|
+
R542 pressure seg color (status hex) ← this round
|
|
2785
|
+
Stacked filter syntax (brightness + drop-shadow
|
|
2786
|
+
in same filter declaration): `brightness(1.2)
|
|
2787
|
+
drop-shadow(...)`. CSS filter supports multiple
|
|
2788
|
+
functions; they apply left-to-right. Brightness
|
|
2789
|
+
boosts the segment's own color, drop-shadow
|
|
2790
|
+
paints the outer halo. Together: hovered seg
|
|
2791
|
+
looks "lit up" with both inner glow + outer
|
|
2792
|
+
halo in its tier color.
|
|
2793
|
+
Hue: `${color}99` hex+alpha (60%) — color here
|
|
2794
|
+
is a 6-char hex (e.g., '#22c55e' for working
|
|
2795
|
+
cyber, '#0d9488' for idle light), not hsl, so
|
|
2796
|
+
hex+alpha concat works (unlike R541 vendor
|
|
2797
|
+
which needed color-mix for hsl). Banked
|
|
2798
|
+
pattern: hex sources use hex+alpha; hsl/color()
|
|
2799
|
+
sources use color-mix.
|
|
2800
|
+
2px blur (vs R537's 3px) since pressure-seg is
|
|
2801
|
+
small (h-2 = 8px tall, variable width) — a
|
|
2802
|
+
smaller blur keeps the glow tight to the
|
|
2803
|
+
segment without bleeding into neighbors.
|
|
2804
|
+
filter is paint-only; bbox unchanged; R51
|
|
2805
|
+
overlap-test invariants hold. Transition list
|
|
2806
|
+
already includes `filter` (post-R524). */
|
|
2807
|
+
/* R563: filter lifts on EITHER direct hover OR member-
|
|
2808
|
+
alias-matching (operator inspecting a node whose
|
|
2809
|
+
status matches this segment's tier). Same R210
|
|
2810
|
+
brightness + R542 drop-shadow value across both
|
|
2811
|
+
gate sources — uniform visual response, distinct
|
|
2812
|
+
semantic gates. */
|
|
2813
|
+
filter: isSegLit ? `brightness(1.2) drop-shadow(0 0 2px ${color}99)` : undefined,
|
|
2370
2814
|
transition: 'width 220ms ease-out, box-shadow 150ms ease-out, filter 150ms ease-out',
|
|
2371
2815
|
}}
|
|
2372
2816
|
onClick={(e) => {
|
|
@@ -2511,6 +2955,33 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2511
2955
|
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"
|
|
2512
2956
|
title={matchCount > 0 ? `${matchPreview}${matchSuffix} — click to clear` : 'Click to clear filter'}
|
|
2513
2957
|
onClick={() => setPinnedStatus(null)}
|
|
2958
|
+
/* Round 543 / Loop — status filter pill gains always-on
|
|
2959
|
+
tier-color drop-shadow when rendered. Pre-R543 the
|
|
2960
|
+
pill carried bg-tint + tier-color text + border but
|
|
2961
|
+
no outer paint extent — it sat as a flat tinted chip
|
|
2962
|
+
in the chip row. R543 adds an outer glow at the
|
|
2963
|
+
pill's text color so the pill radiates a soft tier-
|
|
2964
|
+
colored halo signaling "this filter is active." Pin
|
|
2965
|
+
pill only renders when pinnedStatus is set (the JSX
|
|
2966
|
+
gate above), so the drop-shadow appearing reinforces
|
|
2967
|
+
the visual "active pin" state.
|
|
2968
|
+
Sibling pattern: R477 legend pin-ring also paints a
|
|
2969
|
+
pin-gated tier-color drop-shadow. Pin pill follows
|
|
2970
|
+
the same "pin-gated paint glow" semantics but at the
|
|
2971
|
+
chip-row scope vs the panel-row scope. The chip-row
|
|
2972
|
+
tier-color glow trio (R537/R541/R542 hover-gated)
|
|
2973
|
+
plus R543 (pin-gated, this round) closes the chip-
|
|
2974
|
+
row paint-glow family across BOTH gate types
|
|
2975
|
+
(hover for transient affordance, pin for sticky
|
|
2976
|
+
active-state visual).
|
|
2977
|
+
Hue: explicit tier color (extracted from the
|
|
2978
|
+
existing `color` ternary). 0x99 alpha (~60%) +
|
|
2979
|
+
3px blur. Stays inside the same color hierarchy
|
|
2980
|
+
as the pill's own text/border (currentColor).
|
|
2981
|
+
R543 status pill scope only — R543's pattern can
|
|
2982
|
+
future-extend to group/vendor/edge filter pills
|
|
2983
|
+
(3 more variants at lines 2683/2755/2824). Out of
|
|
2984
|
+
scope to keep R543 single-pill. */
|
|
2514
2985
|
style={{
|
|
2515
2986
|
background: pinnedStatus === 'working' ? (isLight ? '#05966914' : '#22c55e1f')
|
|
2516
2987
|
: pinnedStatus === 'idle' ? (isLight ? '#0d948814' : '#2dd4bf1f')
|
|
@@ -2520,6 +2991,11 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2520
2991
|
: (isLight ? '#475569' : '#9ca3af'),
|
|
2521
2992
|
borderColor: 'currentColor',
|
|
2522
2993
|
cursor: 'pointer',
|
|
2994
|
+
filter: `drop-shadow(0 0 3px ${
|
|
2995
|
+
pinnedStatus === 'working' ? (isLight ? '#047857' : '#86efac')
|
|
2996
|
+
: pinnedStatus === 'idle' ? (isLight ? '#0f766e' : '#5eead4')
|
|
2997
|
+
: (isLight ? '#475569' : '#9ca3af')
|
|
2998
|
+
}99)`,
|
|
2523
2999
|
}}
|
|
2524
3000
|
>
|
|
2525
3001
|
{/* Round 412 / Loop: filter pin pill VALUE picks up the
|
|
@@ -2533,7 +3009,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2533
3009
|
to R333/R335-R341/R362/R369/R389/R410. data-filter-
|
|
2534
3010
|
value attr surfaces the value span for tests.
|
|
2535
3011
|
4-pill replace family — status / group / vendor / edge. */}
|
|
2536
|
-
<span><span className="hidden sm:inline opacity-70 transition-opacity duration-200 group-hover:opacity-100" data-filter-prefix>filter: </span><span className="font-semibold" data-filter-value>{pinnedStatus}</span><span className="opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100" data-filter-pill-count> · {matchCount}</span></span>
|
|
3012
|
+
<span><span className="hidden sm:inline opacity-70 transition-[opacity,letter-spacing] duration-200 group-hover:opacity-100 group-hover:tracking-wide" data-filter-prefix>filter: </span><span className="font-semibold" data-filter-value>{pinnedStatus}</span><span className="opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100" data-filter-pill-count> · {matchCount}</span></span>
|
|
2537
3013
|
<button
|
|
2538
3014
|
type="button"
|
|
2539
3015
|
aria-label={`Clear ${pinnedStatus} filter`}
|
|
@@ -2552,7 +3028,24 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2552
3028
|
inline-block is default for <button> so no display
|
|
2553
3029
|
tweak needed. replace_all covers all 4 filter pin
|
|
2554
3030
|
pills (status / group / vendor / edge) at once. */
|
|
2555
|
-
|
|
3031
|
+
/* Round 547 / Loop — extends pill × close-button hover
|
|
3032
|
+
gesture from scale-110 (R356) + opacity-70 to ALSO
|
|
3033
|
+
include rotate-12 on hover. Pre-R547 the × dimmed
|
|
3034
|
+
and grew on hover; R547 adds a 12° twist so the
|
|
3035
|
+
close action telegraphs "discarding/spinning away"
|
|
3036
|
+
with a small delight gesture. Composes with
|
|
3037
|
+
transition-transform (existing) — Tailwind's
|
|
3038
|
+
hover:rotate-12 + hover:scale-110 stack into one
|
|
3039
|
+
transform under the same 200ms ease-out tween.
|
|
3040
|
+
Applied to all 4 pill × buttons (status / group /
|
|
3041
|
+
vendor / edge) via replace_all since the className
|
|
3042
|
+
is identical. Closes the pill × hover gesture
|
|
3043
|
+
vocabulary at 3 axes:
|
|
3044
|
+
hover:opacity-70 paint dim
|
|
3045
|
+
hover:scale-110 geometry grow (R356)
|
|
3046
|
+
hover:rotate-12 geometry twist (R547, this round)
|
|
3047
|
+
Hover-gesture parity across the 4-pill family. */
|
|
3048
|
+
className="ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 hover:rotate-12 transform-gpu"
|
|
2556
3049
|
style={{ background: 'transparent', color: 'inherit', cursor: 'pointer', padding: 0 }}
|
|
2557
3050
|
>×</button>
|
|
2558
3051
|
</span>
|
|
@@ -2581,15 +3074,42 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2581
3074
|
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"
|
|
2582
3075
|
title={matchCount > 0 ? `${matchPreview}${matchSuffix} — click to clear` : 'Click to clear filter'}
|
|
2583
3076
|
onClick={() => setPinnedGroup(null)}
|
|
3077
|
+
/* Round 544 / Loop — extends R543 pin-active filter-pill
|
|
3078
|
+
drop-shadow pattern to the GROUP pill (2nd of 4 pill
|
|
3079
|
+
variants). Pre-R544 the group pill carried bg-tint +
|
|
3080
|
+
pal.legendAccent text/border but no outer paint glow.
|
|
3081
|
+
R544 adds the matching cyan-accent drop-shadow so the
|
|
3082
|
+
group pin pill radiates the same paint glow as R543
|
|
3083
|
+
status pill — pin-active visual signal at chip-row
|
|
3084
|
+
scope.
|
|
3085
|
+
Hue: pal.legendAccent (cyber #67e8f9 cyan-300 /
|
|
3086
|
+
light #0d9488 teal-600). Uses color-mix() syntax
|
|
3087
|
+
because pal.legendAccent may resolve to hex; same
|
|
3088
|
+
syntax works for both hex and hsl sources (banked
|
|
3089
|
+
R541 lesson). 60% alpha + 3px blur — same intensity
|
|
3090
|
+
as R543 status pill so the pin-active visual signal
|
|
3091
|
+
reads with matching brightness across pill variants.
|
|
3092
|
+
Pin-active tier-color paint glow sub-family
|
|
3093
|
+
(CLOSED progressively):
|
|
3094
|
+
R477 legend pin-ring (panel-row, row.fill)
|
|
3095
|
+
R543 status pill (chip-row, tier-color)
|
|
3096
|
+
R544 group pill (chip-row, legendAccent)
|
|
3097
|
+
← this round
|
|
3098
|
+
Out of scope: vendor pill (line ~2755) + edge pill
|
|
3099
|
+
(line ~2824) — can future-extend in subsequent
|
|
3100
|
+
rounds (R545/R546). Both use the same R543 idiom:
|
|
3101
|
+
always-on drop-shadow when rendered, color from the
|
|
3102
|
+
pill's existing text color. */
|
|
2584
3103
|
style={{
|
|
2585
3104
|
background: isLight ? '#67e8f914' : '#67e8f91f',
|
|
2586
3105
|
color: pal.legendAccent,
|
|
2587
3106
|
borderColor: 'currentColor',
|
|
2588
3107
|
cursor: 'pointer',
|
|
3108
|
+
filter: `drop-shadow(0 0 3px color-mix(in srgb, ${pal.legendAccent} 60%, transparent))`,
|
|
2589
3109
|
}}
|
|
2590
3110
|
>
|
|
2591
3111
|
{/* R412: see status pill above — filter value fw=600 data tier. */}
|
|
2592
|
-
<span><span className="hidden sm:inline opacity-70 transition-opacity duration-200 group-hover:opacity-100" data-filter-prefix>filter: </span><span className="font-semibold" data-filter-value>{pinnedGroup}</span><span className="opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100" data-filter-pill-count> · {matchCount}</span></span>
|
|
3112
|
+
<span><span className="hidden sm:inline opacity-70 transition-[opacity,letter-spacing] duration-200 group-hover:opacity-100 group-hover:tracking-wide" data-filter-prefix>filter: </span><span className="font-semibold" data-filter-value>{pinnedGroup}</span><span className="opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100" data-filter-pill-count> · {matchCount}</span></span>
|
|
2593
3113
|
<button
|
|
2594
3114
|
type="button"
|
|
2595
3115
|
aria-label={`Clear group filter ${pinnedGroup}`}
|
|
@@ -2608,7 +3128,24 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2608
3128
|
inline-block is default for <button> so no display
|
|
2609
3129
|
tweak needed. replace_all covers all 4 filter pin
|
|
2610
3130
|
pills (status / group / vendor / edge) at once. */
|
|
2611
|
-
|
|
3131
|
+
/* Round 547 / Loop — extends pill × close-button hover
|
|
3132
|
+
gesture from scale-110 (R356) + opacity-70 to ALSO
|
|
3133
|
+
include rotate-12 on hover. Pre-R547 the × dimmed
|
|
3134
|
+
and grew on hover; R547 adds a 12° twist so the
|
|
3135
|
+
close action telegraphs "discarding/spinning away"
|
|
3136
|
+
with a small delight gesture. Composes with
|
|
3137
|
+
transition-transform (existing) — Tailwind's
|
|
3138
|
+
hover:rotate-12 + hover:scale-110 stack into one
|
|
3139
|
+
transform under the same 200ms ease-out tween.
|
|
3140
|
+
Applied to all 4 pill × buttons (status / group /
|
|
3141
|
+
vendor / edge) via replace_all since the className
|
|
3142
|
+
is identical. Closes the pill × hover gesture
|
|
3143
|
+
vocabulary at 3 axes:
|
|
3144
|
+
hover:opacity-70 paint dim
|
|
3145
|
+
hover:scale-110 geometry grow (R356)
|
|
3146
|
+
hover:rotate-12 geometry twist (R547, this round)
|
|
3147
|
+
Hover-gesture parity across the 4-pill family. */
|
|
3148
|
+
className="ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 hover:rotate-12 transform-gpu"
|
|
2612
3149
|
style={{ background: 'transparent', color: 'inherit', cursor: 'pointer', padding: 0 }}
|
|
2613
3150
|
>×</button>
|
|
2614
3151
|
</span>
|
|
@@ -2653,15 +3190,35 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2653
3190
|
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"
|
|
2654
3191
|
title={matchCount > 0 ? `${matchPreview}${matchSuffix} — click to clear` : 'Click to clear vendor filter'}
|
|
2655
3192
|
onClick={() => setPinnedVendor(null)}
|
|
3193
|
+
/* Round 545 / Loop — extends pin-active filter-pill drop-
|
|
3194
|
+
shadow pattern to VENDOR pill (3rd of 4 pill variants
|
|
3195
|
+
after R543 status + R544 group). vendorColor is HSL
|
|
3196
|
+
format (banked R541 lesson — vendorDist.color sources
|
|
3197
|
+
from mono.text in vendorIdentity.ts, which is `hsl(...)`),
|
|
3198
|
+
so the filter uses color-mix() syntax — same as R544.
|
|
3199
|
+
60% alpha + 3px blur, matching R543/R544 intensity for
|
|
3200
|
+
consistent pin-active visual signal across all pill
|
|
3201
|
+
variants.
|
|
3202
|
+
Pin-active tier-color paint glow sub-family (progressive
|
|
3203
|
+
extension, 1 pill variant remaining):
|
|
3204
|
+
R477 legend pin-ring (panel-row, row.fill, hex+alpha)
|
|
3205
|
+
R543 status pill (chip-row, tier-color, hex+alpha)
|
|
3206
|
+
R544 group pill (chip-row, legendAccent, color-mix)
|
|
3207
|
+
R545 vendor pill (chip-row, vendorColor, color-mix)
|
|
3208
|
+
← this round
|
|
3209
|
+
Out of scope: edge pill (line ~2824 pre-R545, now ~2900+).
|
|
3210
|
+
Final 1/4 pill remaining for a future round closes the
|
|
3211
|
+
sub-family. */
|
|
2656
3212
|
style={{
|
|
2657
3213
|
background: `${vendorColor}1f`,
|
|
2658
3214
|
color: vendorColor,
|
|
2659
3215
|
borderColor: 'currentColor',
|
|
2660
3216
|
cursor: 'pointer',
|
|
3217
|
+
filter: `drop-shadow(0 0 3px color-mix(in srgb, ${vendorColor} 60%, transparent))`,
|
|
2661
3218
|
}}
|
|
2662
3219
|
>
|
|
2663
3220
|
{/* R412: see status pill above — filter value fw=600 data tier. */}
|
|
2664
|
-
<span><span className="hidden sm:inline opacity-70 transition-opacity duration-200 group-hover:opacity-100" data-filter-prefix>filter: </span><span className="font-semibold" data-filter-value>{pinnedVendor}</span><span className="opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100" data-filter-pill-count> · {matchCount}</span></span>
|
|
3221
|
+
<span><span className="hidden sm:inline opacity-70 transition-[opacity,letter-spacing] duration-200 group-hover:opacity-100 group-hover:tracking-wide" data-filter-prefix>filter: </span><span className="font-semibold" data-filter-value>{pinnedVendor}</span><span className="opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100" data-filter-pill-count> · {matchCount}</span></span>
|
|
2665
3222
|
<button
|
|
2666
3223
|
type="button"
|
|
2667
3224
|
aria-label={`Clear vendor filter ${pinnedVendor}`}
|
|
@@ -2680,7 +3237,24 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2680
3237
|
inline-block is default for <button> so no display
|
|
2681
3238
|
tweak needed. replace_all covers all 4 filter pin
|
|
2682
3239
|
pills (status / group / vendor / edge) at once. */
|
|
2683
|
-
|
|
3240
|
+
/* Round 547 / Loop — extends pill × close-button hover
|
|
3241
|
+
gesture from scale-110 (R356) + opacity-70 to ALSO
|
|
3242
|
+
include rotate-12 on hover. Pre-R547 the × dimmed
|
|
3243
|
+
and grew on hover; R547 adds a 12° twist so the
|
|
3244
|
+
close action telegraphs "discarding/spinning away"
|
|
3245
|
+
with a small delight gesture. Composes with
|
|
3246
|
+
transition-transform (existing) — Tailwind's
|
|
3247
|
+
hover:rotate-12 + hover:scale-110 stack into one
|
|
3248
|
+
transform under the same 200ms ease-out tween.
|
|
3249
|
+
Applied to all 4 pill × buttons (status / group /
|
|
3250
|
+
vendor / edge) via replace_all since the className
|
|
3251
|
+
is identical. Closes the pill × hover gesture
|
|
3252
|
+
vocabulary at 3 axes:
|
|
3253
|
+
hover:opacity-70 paint dim
|
|
3254
|
+
hover:scale-110 geometry grow (R356)
|
|
3255
|
+
hover:rotate-12 geometry twist (R547, this round)
|
|
3256
|
+
Hover-gesture parity across the 4-pill family. */
|
|
3257
|
+
className="ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 hover:rotate-12 transform-gpu"
|
|
2684
3258
|
style={{ background: 'transparent', color: 'inherit', cursor: 'pointer', padding: 0 }}
|
|
2685
3259
|
>×</button>
|
|
2686
3260
|
</span>
|
|
@@ -2719,11 +3293,34 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2719
3293
|
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"
|
|
2720
3294
|
title={`${link.from} → ${link.to} (${link.count} msg${link.count === 1 ? '' : 's'}${isHot ? ', hot lane · ≥ 10' : ''}) — click to clear`}
|
|
2721
3295
|
onClick={() => setPinnedEdgeKey(null)}
|
|
3296
|
+
/* Round 546 / Loop — CLOSES pin-active filter-pill drop-
|
|
3297
|
+
shadow sub-family at the 4th and final pill variant
|
|
3298
|
+
(edge pill). R543 (status) + R544 (group) + R545
|
|
3299
|
+
(vendor) covered the first three; R546 closes at
|
|
3300
|
+
edge.
|
|
3301
|
+
Pin-active tier-color paint glow sub-family CLOSED
|
|
3302
|
+
(4 anchors):
|
|
3303
|
+
R477 legend pin-ring (panel-row, row.fill)
|
|
3304
|
+
R543 status pill (chip-row, tier-color text)
|
|
3305
|
+
R544 group pill (chip-row, legendAccent)
|
|
3306
|
+
R545 vendor pill (chip-row, vendorColor)
|
|
3307
|
+
R546 edge pill (chip-row, pal.flowEdge)
|
|
3308
|
+
← this round, family CLOSED
|
|
3309
|
+
All 4 filter pin pills now radiate paint glow in the
|
|
3310
|
+
same hue family as their text/border on render —
|
|
3311
|
+
pin-active visual signal uniform across the chip-row
|
|
3312
|
+
pill family.
|
|
3313
|
+
pal.flowEdge is theme-driven (dynamic); color-mix
|
|
3314
|
+
syntax safe-defaults regardless of resolved format
|
|
3315
|
+
(banked R541/R544/R545 pattern). 60% alpha + 3px blur
|
|
3316
|
+
— same intensity as R543/R544/R545 for consistent
|
|
3317
|
+
cross-pill visual signal. */
|
|
2722
3318
|
style={{
|
|
2723
3319
|
background: isLight ? `${pal.flowEdge}14` : `${pal.flowEdge}1f`,
|
|
2724
3320
|
color: pal.flowEdge,
|
|
2725
3321
|
borderColor: 'currentColor',
|
|
2726
3322
|
cursor: 'pointer',
|
|
3323
|
+
filter: `drop-shadow(0 0 3px color-mix(in srgb, ${pal.flowEdge} 60%, transparent))`,
|
|
2727
3324
|
}}
|
|
2728
3325
|
>
|
|
2729
3326
|
{/* R412: filter pin pill value (edge variant) picks up fw=600.
|
|
@@ -2776,7 +3373,24 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2776
3373
|
inline-block is default for <button> so no display
|
|
2777
3374
|
tweak needed. replace_all covers all 4 filter pin
|
|
2778
3375
|
pills (status / group / vendor / edge) at once. */
|
|
2779
|
-
|
|
3376
|
+
/* Round 547 / Loop — extends pill × close-button hover
|
|
3377
|
+
gesture from scale-110 (R356) + opacity-70 to ALSO
|
|
3378
|
+
include rotate-12 on hover. Pre-R547 the × dimmed
|
|
3379
|
+
and grew on hover; R547 adds a 12° twist so the
|
|
3380
|
+
close action telegraphs "discarding/spinning away"
|
|
3381
|
+
with a small delight gesture. Composes with
|
|
3382
|
+
transition-transform (existing) — Tailwind's
|
|
3383
|
+
hover:rotate-12 + hover:scale-110 stack into one
|
|
3384
|
+
transform under the same 200ms ease-out tween.
|
|
3385
|
+
Applied to all 4 pill × buttons (status / group /
|
|
3386
|
+
vendor / edge) via replace_all since the className
|
|
3387
|
+
is identical. Closes the pill × hover gesture
|
|
3388
|
+
vocabulary at 3 axes:
|
|
3389
|
+
hover:opacity-70 paint dim
|
|
3390
|
+
hover:scale-110 geometry grow (R356)
|
|
3391
|
+
hover:rotate-12 geometry twist (R547, this round)
|
|
3392
|
+
Hover-gesture parity across the 4-pill family. */
|
|
3393
|
+
className="ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 hover:rotate-12 transform-gpu"
|
|
2780
3394
|
style={{ background: 'transparent', color: 'inherit', cursor: 'pointer', padding: 0 }}
|
|
2781
3395
|
>×</button>
|
|
2782
3396
|
</span>
|
|
@@ -3098,6 +3712,41 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3098
3712
|
// for older browsers the chip falls back to its idle
|
|
3099
3713
|
// transparent bg (graceful degradation — the canvas-
|
|
3100
3714
|
// dim effect still fires regardless).
|
|
3715
|
+
/* Round 541 / Loop — vendor letter chip gains drop-
|
|
3716
|
+
shadow glow on hover/pin using its OWN vendor
|
|
3717
|
+
identity color (v.color). Sibling to R537 legend-
|
|
3718
|
+
swatch tier-color glow at the chip-row scope.
|
|
3719
|
+
Pre-R541 the vendor chip lifted on multiple
|
|
3720
|
+
axes (R354 inner-glyph scale-1.1, R202 bg color-
|
|
3721
|
+
mix tint, R180 box-shadow pin-mirror inset, R401
|
|
3722
|
+
hover-translate-y -1px, R496 active:scale-95
|
|
3723
|
+
press) but no paint-axis glow extending past
|
|
3724
|
+
the chip's bbox. R541 adds the outer glow at
|
|
3725
|
+
the paint axis so the vendor chip's identity
|
|
3726
|
+
color radiates beyond the chip on attention —
|
|
3727
|
+
same idiom as legend swatch tier-color glow.
|
|
3728
|
+
2-tier alpha ladder (mirrors R538 group-label):
|
|
3729
|
+
pin (committed) v.color 99 (~60%)
|
|
3730
|
+
hover (preview) v.color 66 (~40%)
|
|
3731
|
+
rest none
|
|
3732
|
+
Pin is brighter to distinguish locked vs preview
|
|
3733
|
+
at the paint axis. The R180 inset box-shadow
|
|
3734
|
+
(pin-mirror) and R541 outer drop-shadow compose
|
|
3735
|
+
at pin — inside chrome reads as "this is pinned"
|
|
3736
|
+
(inset white double-ring), outside paint reads
|
|
3737
|
+
as "vendor identity is locked" (vendor-colour
|
|
3738
|
+
outer glow). Hover gets only the outer glow.
|
|
3739
|
+
3px blur tuned to read as soft chip-halo without
|
|
3740
|
+
overwhelming adjacent chips in the chip row.
|
|
3741
|
+
filter property is in the .anet-topo-chip-focus
|
|
3742
|
+
class transition list (R524 banked fix), so the
|
|
3743
|
+
filter eases at 200ms naturally.
|
|
3744
|
+
Drop-shadow visual-polish family — R541 adds
|
|
3745
|
+
chip-row tier-color paint glow as another anchor
|
|
3746
|
+
in the same family pattern R537 established.
|
|
3747
|
+
data-vendor-glow attr ('pin' | 'hover' | 'false')
|
|
3748
|
+
exposes the gate state for tests. */
|
|
3749
|
+
data-vendor-glow={isPinned ? 'pin' : hoveredVendor === v.initial ? 'hover' : 'false'}
|
|
3101
3750
|
style={{
|
|
3102
3751
|
cursor: 'pointer',
|
|
3103
3752
|
backgroundColor: (hoveredVendor === v.initial && !isPinned)
|
|
@@ -3106,7 +3755,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3106
3755
|
boxShadow: isPinned
|
|
3107
3756
|
? `inset 0 0 0 1px ${v.color}, inset 0 0 0 2px rgba(255,255,255,0.45)`
|
|
3108
3757
|
: undefined,
|
|
3109
|
-
|
|
3758
|
+
filter: isPinned
|
|
3759
|
+
? `drop-shadow(0 0 3px color-mix(in srgb, ${v.color} 60%, transparent))`
|
|
3760
|
+
: hoveredVendor === v.initial
|
|
3761
|
+
? `drop-shadow(0 0 3px color-mix(in srgb, ${v.color} 40%, transparent))`
|
|
3762
|
+
: undefined,
|
|
3763
|
+
transition: 'box-shadow 150ms ease-out, background-color 200ms ease-out, filter 200ms ease-out',
|
|
3110
3764
|
}}
|
|
3111
3765
|
onMouseEnter={() => setHoveredVendor(v.initial)}
|
|
3112
3766
|
onMouseLeave={() => setHoveredVendor(prev => prev === v.initial ? null : prev)}
|
|
@@ -3198,7 +3852,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3198
3852
|
since the glyph (R369 fw=600) stays at full
|
|
3199
3853
|
opacity. R333 :{count} format preserved. */}
|
|
3200
3854
|
<span
|
|
3201
|
-
className="text-gray-400 tabular-nums opacity-70 transition-opacity duration-200 group-hover:opacity-100"
|
|
3855
|
+
className="text-gray-400 tabular-nums opacity-70 transition-[opacity,letter-spacing] duration-200 group-hover:opacity-100 group-hover:tracking-wide"
|
|
3202
3856
|
data-vendor-letter-count-suffix
|
|
3203
3857
|
>:{v.count}</span>
|
|
3204
3858
|
</span>
|
|
@@ -3348,7 +4002,9 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3348
4002
|
chip-internal-hierarchy arc. data-active-links-
|
|
3349
4003
|
chip-unit exposes the unit span for tests. */}
|
|
3350
4004
|
{/* R362 sibling — active-links chip digit gains font-semibold. */}
|
|
3351
|
-
|
|
4005
|
+
{/* R539 sibling — active-links chip digit. Same idiom
|
|
4006
|
+
as working + online above. */}
|
|
4007
|
+
<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,letter-spacing] duration-200 group-hover:opacity-100 group-hover:tracking-wide" data-active-links-chip-unit> active link{flowLinks.length === 1 ? '' : 's'}</span>
|
|
3352
4008
|
{rel ? (() => {
|
|
3353
4009
|
// Round 161 / Loop: extend R160's recency-pip
|
|
3354
4010
|
// vocabulary up one scope — from per-flow row to
|
|
@@ -3562,6 +4218,36 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3562
4218
|
on the canvas root for non-visual consumers.
|
|
3563
4219
|
Composed from existing onlineNodes / workingCount /
|
|
3564
4220
|
offlineNodes / flowLinks — no new state. */
|
|
4221
|
+
/* Round 502 / Loop — categorical density-tier paired with the
|
|
4222
|
+
R469 numeric counts. data-topo-fleet-density-tier classifies
|
|
4223
|
+
the fleet size into 5 buckets so external consumers (CSS
|
|
4224
|
+
selectors, Playwright probes, future density-conditional
|
|
4225
|
+
polish gates like R109 dense-label collapse at 16+ nodes)
|
|
4226
|
+
can branch on a stable tier name without re-deriving the
|
|
4227
|
+
threshold logic from the raw numeric. Buckets:
|
|
4228
|
+
'empty' — onlineNodes.length === 0
|
|
4229
|
+
'sparse' — 1-3 nodes
|
|
4230
|
+
'normal' — 4-15 nodes
|
|
4231
|
+
'dense' — 16-30 nodes (matches R109 collapse gate)
|
|
4232
|
+
'very-dense' — 31+ nodes
|
|
4233
|
+
Picks the gate boundaries that already drive CONDITIONAL
|
|
4234
|
+
RENDER decisions elsewhere (R109 denseLayout = >16, R110
|
|
4235
|
+
plain-text fallback) so the tier name is semantically
|
|
4236
|
+
aligned with the visual mode the canvas already switches
|
|
4237
|
+
to. Composed from existing onlineNodes — no new state.
|
|
4238
|
+
12th attr in the canvas state surface set (R462/R466/R467/
|
|
4239
|
+
R469×4/R471×2/R487/R488/R502). 12 attrs covers: build
|
|
4240
|
+
identity, transient/sticky inspection modes, fleet split
|
|
4241
|
+
numerics, fleet density tier, canvas layout/theme, canvas
|
|
4242
|
+
zoom, hover identity. A test harness can snapshot the
|
|
4243
|
+
full canvas state with 12 getAttribute calls. */
|
|
4244
|
+
data-topo-fleet-density-tier={
|
|
4245
|
+
onlineNodes.length === 0 ? 'empty' :
|
|
4246
|
+
onlineNodes.length <= 3 ? 'sparse' :
|
|
4247
|
+
onlineNodes.length <= 15 ? 'normal' :
|
|
4248
|
+
onlineNodes.length <= 30 ? 'dense' :
|
|
4249
|
+
'very-dense'
|
|
4250
|
+
}
|
|
3565
4251
|
data-topo-online-count={onlineNodes.length}
|
|
3566
4252
|
data-topo-working-count={workingCount}
|
|
3567
4253
|
data-topo-offline-count={offlineNodes.length}
|
|
@@ -3627,6 +4313,119 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3627
4313
|
categorical) — separate dedicated attrs if/when needed.
|
|
3628
4314
|
Root svg attribute set now 11 attrs total. */
|
|
3629
4315
|
data-topo-hovered-alias={hoveredAlias ?? ''}
|
|
4316
|
+
/* Round 504 / Loop — categorical pin-aspect attr paired with
|
|
4317
|
+
R467 any-pinned boolean and R488 hovered-alias identity.
|
|
4318
|
+
Pre-R504 the canvas state surface set told tests WHETHER
|
|
4319
|
+
any pin was active (R467 boolean) but tests had to enumerate
|
|
4320
|
+
4 individual state vars to determine WHICH pin axis fired:
|
|
4321
|
+
pinnedStatus legend-row status filter
|
|
4322
|
+
pinnedGroup prefix-cluster lock
|
|
4323
|
+
pinnedVendor vendor-chip filter
|
|
4324
|
+
pinnedEdgeKey edge-focus
|
|
4325
|
+
R504 surfaces the active aspect as a single categorical
|
|
4326
|
+
attribute: data-topo-pinned-aspect ∈
|
|
4327
|
+
'none' no pin active
|
|
4328
|
+
'status' pinnedStatus only
|
|
4329
|
+
'group' pinnedGroup only
|
|
4330
|
+
'vendor' pinnedVendor only
|
|
4331
|
+
'edge' pinnedEdgeKey only
|
|
4332
|
+
'multi' 2 or more pins active simultaneously
|
|
4333
|
+
('multi' covers cross-cutting filters — e.g. user pins
|
|
4334
|
+
status='working' AND vendor='claude' simultaneously to
|
|
4335
|
+
narrow the canvas. Each pin axis is independently
|
|
4336
|
+
dismissable via Esc / individual chip click, so multi
|
|
4337
|
+
states are reachable and worth surfacing as a distinct
|
|
4338
|
+
tier.)
|
|
4339
|
+
13th attr in the canvas state surface set after R502.
|
|
4340
|
+
Composed from 4 existing state vars — no new state. */
|
|
4341
|
+
/* Round 512 / Loop — 14th canvas state attr. groupBoxes.length
|
|
4342
|
+
surfaces the count of cluster boxes currently rendered in
|
|
4343
|
+
grid layout (always 0 in ring). Paired with R502 categorical
|
|
4344
|
+
density tier + R469 fleet numerics for a complete cluster-
|
|
4345
|
+
cardinality surface:
|
|
4346
|
+
R469 data-topo-online-count node-count
|
|
4347
|
+
R502 data-topo-fleet-density-tier categorical
|
|
4348
|
+
R512 data-topo-cluster-count cluster-count ← this round
|
|
4349
|
+
Use cases:
|
|
4350
|
+
- Playwright: assert orphan-band existence by
|
|
4351
|
+
`cluster-count === N + 1` vs prefix-only `=== N`
|
|
4352
|
+
- external CSS: `[data-topo-cluster-count='1']` to apply
|
|
4353
|
+
single-cluster grid-specific layout adjustments
|
|
4354
|
+
- future polish gates: cluster-count > N could trigger
|
|
4355
|
+
dense-grid mode
|
|
4356
|
+
Composed from existing `groupBoxes.length` — no new state.
|
|
4357
|
+
Always renders (0 in ring layout, N in grid), so tests can
|
|
4358
|
+
rely on attribute presence + value. */
|
|
4359
|
+
data-topo-cluster-count={groupBoxes.length}
|
|
4360
|
+
/* Round 513 / Loop — 15th canvas state attr. Surfaces the
|
|
4361
|
+
user's prefers-reduced-motion preference directly on the
|
|
4362
|
+
root SVG so external CSS / Playwright tests can branch on
|
|
4363
|
+
a11y state without re-reading the media query.
|
|
4364
|
+
reducedMotion is already in component scope (R29 a11y
|
|
4365
|
+
blanket reads it via a useEffect listener); R513 just
|
|
4366
|
+
exposes it as a stable attribute handle.
|
|
4367
|
+
Use cases:
|
|
4368
|
+
- Playwright: assert reduced-motion gates from one attr
|
|
4369
|
+
read instead of mocking media-query state per test
|
|
4370
|
+
- External CSS hooks: `[data-topo-prefers-reduced-motion=
|
|
4371
|
+
"true"]` to apply paint-only overrides (e.g. mute
|
|
4372
|
+
hover glows entirely on a11y instead of just
|
|
4373
|
+
disabling transitions)
|
|
4374
|
+
- Future polish rounds: any motion-gated render can
|
|
4375
|
+
read this attr server-side without the media-query
|
|
4376
|
+
hydration mismatch risk
|
|
4377
|
+
'true' / 'false' string values (consistent with R466/R467
|
|
4378
|
+
boolean attrs). */
|
|
4379
|
+
data-topo-prefers-reduced-motion={reducedMotion ? 'true' : 'false'}
|
|
4380
|
+
/* Round 515 / Loop — 16th canvas state attr. Surfaces the
|
|
4381
|
+
fullscreen-mode state directly on root SVG so external
|
|
4382
|
+
consumers don't have to traverse the chrome strip's
|
|
4383
|
+
`data-topo-chrome-fullscreen-active` button attr (which
|
|
4384
|
+
measures the BUTTON state, not the canvas state — they
|
|
4385
|
+
agree, but reading from the root is semantically cleaner
|
|
4386
|
+
for canvas-state probes).
|
|
4387
|
+
Composed from existing isFullscreen React state (R103
|
|
4388
|
+
fullscreen toggle).
|
|
4389
|
+
Use cases:
|
|
4390
|
+
- Playwright: assert canvas mode in one attr read
|
|
4391
|
+
(paired with R471 data-topo-layout for ring/grid +
|
|
4392
|
+
R487 data-topo-zoom for zoom level + R513 reduced-
|
|
4393
|
+
motion for a11y mode = 4-axis canvas-mode probe)
|
|
4394
|
+
- External CSS: `[data-topo-fullscreen="true"]` to
|
|
4395
|
+
apply fullscreen-only paint adjustments outside the
|
|
4396
|
+
React tree (e.g. body-level scrollbar hide)
|
|
4397
|
+
'true' / 'false' string values (consistent with R466/
|
|
4398
|
+
R467/R513 boolean attrs). */
|
|
4399
|
+
data-topo-fullscreen={isFullscreen ? 'true' : 'false'}
|
|
4400
|
+
/* Round 516 / Loop — 17th canvas state attr. Surfaces the
|
|
4401
|
+
grid layout's content-bottom y-coordinate so tests can
|
|
4402
|
+
verify grid content doesn't extend past the viewBox or
|
|
4403
|
+
collide with chrome elements positioned below the canvas.
|
|
4404
|
+
Composed from existing gridContentBottom derived state
|
|
4405
|
+
(computed at line ~915 from gy0 + totalRows * cellH + 8).
|
|
4406
|
+
In ring layout, gridContentBottom is 0 (no grid). In grid
|
|
4407
|
+
layout it's the actual pixel y-coordinate where the
|
|
4408
|
+
cluster bands end.
|
|
4409
|
+
Use cases:
|
|
4410
|
+
- Playwright: assert grid layout doesn't exceed viewBox
|
|
4411
|
+
height (680) without re-computing the layout math
|
|
4412
|
+
- External CSS: `[data-topo-grid-content-bottom='0']` to
|
|
4413
|
+
distinguish ring-mode (no grid content) from grid-mode
|
|
4414
|
+
in CSS without parsing layout attr
|
|
4415
|
+
- Future polish gates: if cluster count grows large
|
|
4416
|
+
enough to push grid bottom past viewBox, can trigger
|
|
4417
|
+
a 'compact' mode automatically */
|
|
4418
|
+
data-topo-grid-content-bottom={gridContentBottom}
|
|
4419
|
+
data-topo-pinned-aspect={(() => {
|
|
4420
|
+
const aspects: string[] = [];
|
|
4421
|
+
if (pinnedStatus) aspects.push('status');
|
|
4422
|
+
if (pinnedGroup) aspects.push('group');
|
|
4423
|
+
if (pinnedVendor) aspects.push('vendor');
|
|
4424
|
+
if (pinnedEdgeKey) aspects.push('edge');
|
|
4425
|
+
if (aspects.length === 0) return 'none';
|
|
4426
|
+
if (aspects.length === 1) return aspects[0];
|
|
4427
|
+
return 'multi';
|
|
4428
|
+
})()}
|
|
3630
4429
|
/* Round 466 / Loop — aggregate hover signal on the root SVG.
|
|
3631
4430
|
Exposes a single boolean `data-topo-any-hover` that
|
|
3632
4431
|
reflects whether ANY hover state in the topology is
|
|
@@ -3869,7 +4668,38 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3869
4668
|
const x = ((seed * 13) % 1000);
|
|
3870
4669
|
const y = ((seed * 7) % 680);
|
|
3871
4670
|
const r = (i % 3 === 0) ? 1.2 : 0.7;
|
|
3872
|
-
|
|
4671
|
+
/* Round 523 / Loop — 配色 family extension to a 3rd anchor.
|
|
4672
|
+
Pre-R523 all 14 starfield dots painted at the same
|
|
4673
|
+
hardcoded `#a5b4fc` (indigo-300). The starfield's role
|
|
4674
|
+
is atmospheric depth (R45, R291 comment), but a flat
|
|
4675
|
+
single-hue field reads more like a regular dot grid
|
|
4676
|
+
than a star field — real starlight has color
|
|
4677
|
+
temperature variation (blue-white hot stars / yellow
|
|
4678
|
+
sun-like / cool red).
|
|
4679
|
+
R523 cycles a 3-color deterministic rotation based on
|
|
4680
|
+
`i % 3`:
|
|
4681
|
+
i % 3 === 0 → #a5b4fc indigo-300 (original, cool)
|
|
4682
|
+
i % 3 === 1 → #67e8f9 cyan-300 (cyber accent, hot)
|
|
4683
|
+
i % 3 === 2 → #cbd5e1 slate-300 (neutral, warm white)
|
|
4684
|
+
All three hues sit inside the cyber theme's palette
|
|
4685
|
+
family (indigo / cyan / slate) so the starfield reads
|
|
4686
|
+
varied-but-coherent rather than rainbow. At opacity
|
|
4687
|
+
0.5 (parent <g>) * 0.35-0.50 (per-dot) the temperature
|
|
4688
|
+
shifts are gentle but perceptible — closes the gap
|
|
4689
|
+
between 'dot grid' and 'star field'.
|
|
4690
|
+
配色 family extension (3 anchors): R509/R510 hub-
|
|
4691
|
+
highlight cross-theme fill + R523 starfield color
|
|
4692
|
+
temperature variation. Light theme unaffected
|
|
4693
|
+
(starfield gated `!isLight` so light theme stays
|
|
4694
|
+
clean per R45's original 'white surface stays clean'
|
|
4695
|
+
intent).
|
|
4696
|
+
Deterministic on `i` — no JS hydration mismatch,
|
|
4697
|
+
same SSR/client output. data-topo-starfield-dot-hue
|
|
4698
|
+
attr exposes the resolved hue category for tests. */
|
|
4699
|
+
const hues = ['#a5b4fc', '#67e8f9', '#cbd5e1'] as const;
|
|
4700
|
+
const hueNames = ['indigo', 'cyan', 'slate'] as const;
|
|
4701
|
+
const hueIdx = i % 3;
|
|
4702
|
+
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]} />;
|
|
3873
4703
|
})}
|
|
3874
4704
|
</g>
|
|
3875
4705
|
)}
|
|
@@ -4407,8 +5237,43 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4407
5237
|
data-topo-hub-spoke-stroke-width={spokeStrokeWidth}
|
|
4408
5238
|
data-topo-hub-spoke-stroke-width-active="2.25"
|
|
4409
5239
|
data-topo-hub-spoke-linecap="round"
|
|
5240
|
+
/* Round 533 / Loop — extends drop-shadow visual-polish
|
|
5241
|
+
family to a 9th anchor: hub spokes gain filter:drop-
|
|
5242
|
+
shadow glow on hub-hover. Subtle 1.5px cyan/teal blur
|
|
5243
|
+
applied across ALL spokes simultaneously when the
|
|
5244
|
+
user hovers the hub — the network mesh visually
|
|
5245
|
+
"lights up" in response to focal attention. Sibling
|
|
5246
|
+
to R476 hub-digit + R532 hub-highlight glow at the
|
|
5247
|
+
same gate (hoveredHub && !reducedMotion); together
|
|
5248
|
+
the three anchors (digit + highlight disc + spokes)
|
|
5249
|
+
form a unified focal-cluster glow that signals
|
|
5250
|
+
"you're focused on the hub" across geometry,
|
|
5251
|
+
paint, and mesh-extent axes.
|
|
5252
|
+
Theme-aware glow palette matches the spoke stroke
|
|
5253
|
+
family:
|
|
5254
|
+
light: rgba(13, 148, 136, 0.4) teal-600
|
|
5255
|
+
cyber: rgba(34, 211, 238, 0.4) cyan-400
|
|
5256
|
+
0.4 alpha keeps the glow subtle across N spokes
|
|
5257
|
+
(30+ at peak fleet sizes) — loud bloom across many
|
|
5258
|
+
edges would compete with the focal cluster itself.
|
|
5259
|
+
1.5px blur is conservative; tuned so each spoke
|
|
5260
|
+
gains a faint outer halo rather than a wide bloom.
|
|
5261
|
+
filter is paint-only; bbox unchanged; existing
|
|
5262
|
+
R241 transition list extends to 'filter 250ms
|
|
5263
|
+
ease-out' matching the spoke transition cadence
|
|
5264
|
+
(250ms, distinct from the 200ms hub-cluster
|
|
5265
|
+
cadence — spokes ease slightly slower since they
|
|
5266
|
+
respond to per-alias state, not just hub state).
|
|
5267
|
+
data-topo-hub-spoke-glow attr exposes the gate
|
|
5268
|
+
state for tests. */
|
|
5269
|
+
data-topo-hub-spoke-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
4410
5270
|
style={{
|
|
4411
|
-
transition: 'stroke 250ms ease-out, stroke-width 250ms ease-out, opacity 250ms ease-out',
|
|
5271
|
+
transition: 'stroke 250ms ease-out, stroke-width 250ms ease-out, opacity 250ms ease-out, filter 250ms ease-out',
|
|
5272
|
+
filter: !reducedMotion && hoveredHub
|
|
5273
|
+
? (isLight
|
|
5274
|
+
? 'drop-shadow(0 0 1.5px rgba(13, 148, 136, 0.4))'
|
|
5275
|
+
: 'drop-shadow(0 0 1.5px rgba(34, 211, 238, 0.4))')
|
|
5276
|
+
: undefined,
|
|
4412
5277
|
...(isActiveSpoke ? {} : {
|
|
4413
5278
|
animationDelay: `${-(idx * 0.25)}s`,
|
|
4414
5279
|
// CSS var consumed by `.anet-topo-spoke-flow`
|
|
@@ -4429,6 +5294,30 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4429
5294
|
a node click. Restrained dashed container + group-name label. */}
|
|
4430
5295
|
{groupBoxes.map((box, boxIdx) => {
|
|
4431
5296
|
const isHovered = activeGroup === box.key;
|
|
5297
|
+
/* Round 561 / Loop — inspection-overrides-encoding family
|
|
5298
|
+
4th anchor. When operator hovers a NODE ALIAS on the
|
|
5299
|
+
canvas, the group-label that CONTAINS that node lifts
|
|
5300
|
+
to full opacity, signalling "this is the cluster
|
|
5301
|
+
whose member you're inspecting".
|
|
5302
|
+
Family progression (4 anchors now):
|
|
5303
|
+
R484 recent-row timestamp brightens on alias hover
|
|
5304
|
+
R485 edge particle opacity lifts on alias hover
|
|
5305
|
+
R486 minimap dot opacity lifts on alias hover
|
|
5306
|
+
R561 group-label opacity lifts on member-alias hover ← this round
|
|
5307
|
+
Pure paint axis (opacity only) — same restraint as
|
|
5308
|
+
R486. NOT bundled into the existing `isHovered` flag
|
|
5309
|
+
so the marching-ants live animation (gated on
|
|
5310
|
+
`!isPinned && !isHovered`) keeps running; the box
|
|
5311
|
+
rect stroke widen / fill brighten / letter-spacing
|
|
5312
|
+
/ filter glow gates stay tied to direct label
|
|
5313
|
+
hover/pin semantics.
|
|
5314
|
+
Mirror of R486's pattern: `hoveredAlias === s.alias`
|
|
5315
|
+
extends a focused opacity branch independent from
|
|
5316
|
+
the rest-state encoding (online/offline). R561 here:
|
|
5317
|
+
`groupKeys[hoveredAlias] === box.key` extends a
|
|
5318
|
+
cluster-awareness opacity branch independent from
|
|
5319
|
+
the existing isHovered / isPinned semantics. */
|
|
5320
|
+
const isMemberAliasHovered = !!hoveredAlias && groupKeys[hoveredAlias] === box.key;
|
|
4432
5321
|
// R68: distinguish "locked by click" from "currently hovered".
|
|
4433
5322
|
// R63 made pinned and hovered identical (both hit isHovered
|
|
4434
5323
|
// via activeGroup). A user with one team pinned should see at
|
|
@@ -4556,12 +5445,75 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4556
5445
|
// pinned → fill 0.08 / 0.13, stroke 3 px (locked)
|
|
4557
5446
|
// hovered → fill 0.05 / 0.09, stroke 2 px (inspecting)
|
|
4558
5447
|
// idle → fill 0.025 / 0.045, stroke 1.5 px dashed
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
5448
|
+
/* Round 506 / Loop — category-differentiation family
|
|
5449
|
+
3rd anchor. Orphan band rest-state fillOpacity drops
|
|
5450
|
+
slightly below prefix-group rest (0.025/0.045 →
|
|
5451
|
+
0.015/0.028). Adds a 3rd independent paint
|
|
5452
|
+
differentiator to the orphan visual signature:
|
|
5453
|
+
R499 fontStyle: italic (label text)
|
|
5454
|
+
R503 '3 6' dash pattern (rect stroke)
|
|
5455
|
+
R506 lower fillOpacity (rect fill) ← this round
|
|
5456
|
+
Three independent channels (typography + stroke
|
|
5457
|
+
pattern + fill density) collectively encode the
|
|
5458
|
+
catchall semantic at rest. Pin and hover branches
|
|
5459
|
+
UNCHANGED (still 0.05/0.09 hover, 0.08/0.13 pin) —
|
|
5460
|
+
orphan box gets full visual emphasis on inspection
|
|
5461
|
+
identical to prefix groups; the differentiation
|
|
5462
|
+
lives ONLY in the unsolicited rest state. The
|
|
5463
|
+
~40% drop (0.045 → 0.028 cyber, 0.025 → 0.015
|
|
5464
|
+
light) is subtle enough that the orphan box stays
|
|
5465
|
+
visible at rest, just quieter — matches the
|
|
5466
|
+
"misc bucket, less attention-deserving" semantic
|
|
5467
|
+
without losing the visual anchor.
|
|
5468
|
+
Pure paint axis; bbox unchanged; R51 SVG sentinel
|
|
5469
|
+
safety untouched (overlap-test gates to g[data-
|
|
5470
|
+
node], cluster rect invisible to it).
|
|
5471
|
+
data-group-box-fill-opacity attr surfaces the
|
|
5472
|
+
resolved value for tests. */
|
|
5473
|
+
fillOpacity={
|
|
5474
|
+
isPinned ? (isLight ? 0.08 : 0.13)
|
|
5475
|
+
: isHovered ? (isLight ? 0.05 : 0.09)
|
|
5476
|
+
: box.isOrphan ? (isLight ? 0.015 : 0.028)
|
|
5477
|
+
: (isLight ? 0.025 : 0.045)
|
|
5478
|
+
}
|
|
5479
|
+
data-group-box-fill-opacity={
|
|
5480
|
+
isPinned ? (isLight ? 0.08 : 0.13)
|
|
5481
|
+
: isHovered ? (isLight ? 0.05 : 0.09)
|
|
5482
|
+
: box.isOrphan ? (isLight ? 0.015 : 0.028)
|
|
5483
|
+
: (isLight ? 0.025 : 0.045)
|
|
5484
|
+
}
|
|
4562
5485
|
stroke={(isPinned || isHovered) ? pal.legendAccent : pal.ringStroke}
|
|
4563
5486
|
strokeWidth={isPinned ? 3 : isHovered ? 2 : 1.5}
|
|
4564
|
-
|
|
5487
|
+
/* Round 503 / Loop — category-differentiation family
|
|
5488
|
+
2nd anchor (R499 = orphan label italic, 1st anchor).
|
|
5489
|
+
Orphan band rest-state strokeDasharray switches from
|
|
5490
|
+
'6 6' (prefix-group default) to '3 6' (tighter
|
|
5491
|
+
dashes). Pre-R503 the rect dash pattern was uniform
|
|
5492
|
+
across all bands; combined with R499's italic label,
|
|
5493
|
+
the orphan box now has TWO independent paint/
|
|
5494
|
+
typography differentiators at rest:
|
|
5495
|
+
R499 fontStyle: italic (label text)
|
|
5496
|
+
R503 '3 6' dash pattern (rect stroke) ← this round
|
|
5497
|
+
The R85 marching-ants animation continues to work
|
|
5498
|
+
with the new dash size (uses --march-dur custom
|
|
5499
|
+
property, dash-length-agnostic) — orphan's ants
|
|
5500
|
+
just have a different visual rhythm than prefix-
|
|
5501
|
+
group ants, reinforcing the catchall semantic.
|
|
5502
|
+
Pinned/hovered orphan still gets 'none' (solid
|
|
5503
|
+
stroke) so the hover/pin affordance is preserved
|
|
5504
|
+
— the differentiation lives ONLY in the rest
|
|
5505
|
+
state, never blocking inspection.
|
|
5506
|
+
Pure paint axis; no geometry change; bbox unchanged
|
|
5507
|
+
(strokeDasharray is paint-only). R51 SVG sentinel
|
|
5508
|
+
safety untouched (overlap-test gates to g[data-
|
|
5509
|
+
node], this cluster rect is invisible to it).
|
|
5510
|
+
data-group-box-orphan attr surfaces the gate for
|
|
5511
|
+
tests + future polish references. */
|
|
5512
|
+
strokeDasharray={
|
|
5513
|
+
(isPinned || isHovered) ? 'none' :
|
|
5514
|
+
box.isOrphan ? '3 6' : '6 6'
|
|
5515
|
+
}
|
|
5516
|
+
data-group-box-orphan={box.isOrphan ? 'true' : 'false'}
|
|
4565
5517
|
/* Round 380 / Loop: cluster box stroke gets round
|
|
4566
5518
|
linecap + round linejoin. Sibling SVG stroke-
|
|
4567
5519
|
softening polish to R378 flow-rail linecap + R379
|
|
@@ -4607,10 +5559,29 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4607
5559
|
// motion layers (hub / ring / group) keep a coherent
|
|
4608
5560
|
// tempo grammar. Default 12s when working=0 doesn't
|
|
4609
5561
|
// matter — the className is only applied when working>0.
|
|
4610
|
-
|
|
5562
|
+
/* Round 561 — marching-ants gate refined to halt only
|
|
5563
|
+
on direct-label-hover (or pin), NOT on member-alias-
|
|
5564
|
+
hover. Pre-R561 `isHovered` covered BOTH cases via
|
|
5565
|
+
the line 1044 fallback `hoveredGroup ?? (hoveredAlias
|
|
5566
|
+
→ groupKeys[hoveredAlias])` — so hovering ANY member
|
|
5567
|
+
node halted the ants, treating indirect inspection
|
|
5568
|
+
the same as direct attention.
|
|
5569
|
+
R561 differentiates: ants now keep running during
|
|
5570
|
+
member-alias hover (indirect / cluster-awareness
|
|
5571
|
+
inspection), halting ONLY on direct label hover or
|
|
5572
|
+
pin. The cluster's live signal stays alive while
|
|
5573
|
+
operator inspects member nodes — distinct visual
|
|
5574
|
+
telegraph for "directly attending this cluster"
|
|
5575
|
+
vs "inspecting one of its members".
|
|
5576
|
+
Gate uses `hoveredGroupLabel === box.key` directly
|
|
5577
|
+
(the LABEL hover state) instead of `isHovered`
|
|
5578
|
+
(which combines label-hover + member-alias-hover
|
|
5579
|
+
via activeGroup). data-group-box-live + the live
|
|
5580
|
+
className both flip on the same refined gate. */
|
|
5581
|
+
data-group-box-live={!isPinned && hoveredGroupLabel !== box.key && box.statuses.working > 0 ? 'true' : 'false'}
|
|
4611
5582
|
data-group-box-march-dur={marchDur}
|
|
4612
5583
|
data-group-box-lifted={(isPinned || isHovered) ? 'true' : 'false'}
|
|
4613
|
-
className={!isPinned &&
|
|
5584
|
+
className={!isPinned && hoveredGroupLabel !== box.key && box.statuses.working > 0 ? 'anet-topo-groupbox-live' : undefined}
|
|
4614
5585
|
// R142: drop-shadow filter when pinned or hovered. Box
|
|
4615
5586
|
// visually "rises off the canvas" — same vocabulary
|
|
4616
5587
|
// R18 KPI cards + R135 overlay panels use. Idle group
|
|
@@ -4881,8 +5852,54 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4881
5852
|
fontSize="9"
|
|
4882
5853
|
fontFamily="monospace"
|
|
4883
5854
|
fontWeight={isPinned ? '800' : '700'}
|
|
4884
|
-
|
|
5855
|
+
/* Round 551 / Loop — category-differentiation family
|
|
5856
|
+
4th anchor. Orphan band ("其他" catchall) rest-state
|
|
5857
|
+
LABEL opacity drops 0.55 → 0.4 (~27% relative dim),
|
|
5858
|
+
mirroring R506's rect fillOpacity drop pattern at
|
|
5859
|
+
the label-paint tier. Adds a 4th independent
|
|
5860
|
+
channel to the orphan visual signature at rest:
|
|
5861
|
+
R499 fontStyle italic (typography style)
|
|
5862
|
+
R503 '3 6' dash pattern (rect stroke)
|
|
5863
|
+
R506 lower rect fill-opacity (rect fill)
|
|
5864
|
+
R551 lower label opacity (label paint) ← this round
|
|
5865
|
+
Four independent channels (typography style +
|
|
5866
|
+
stroke pattern + rect fill density + label paint
|
|
5867
|
+
density) collectively encode the catchall semantic
|
|
5868
|
+
at rest — orphan band reads as "misc bucket, less
|
|
5869
|
+
attention-deserving" through every available paint
|
|
5870
|
+
channel, no chrome / color / geometry change.
|
|
5871
|
+
Pin and hover branches UNCHANGED — orphan label
|
|
5872
|
+
restores to full opacity 1 on inspection, same as
|
|
5873
|
+
prefix groups. The differentiation lives ONLY in
|
|
5874
|
+
the unsolicited rest state. The ~27% drop (0.55 →
|
|
5875
|
+
0.4) is dimmer than R506's ~40% (rect could
|
|
5876
|
+
tolerate it; small 9px text needs more residual
|
|
5877
|
+
paint to stay legible) — orphan label stays
|
|
5878
|
+
readable when scanning, just clearly quieter.
|
|
5879
|
+
Pure paint axis; bbox unchanged; R51 SVG sentinel
|
|
5880
|
+
safety untouched (overlap-test gates to g[data-
|
|
5881
|
+
node], this group-label is invisible to it).
|
|
5882
|
+
transition list (R55/R432/R457/R479: fill, ls,
|
|
5883
|
+
fw, filter all 200ms) already eases opacity since
|
|
5884
|
+
`opacity 300ms ease-out` lives in the parent <text>
|
|
5885
|
+
CSS — wait, only filter/ls/fw/fill 200ms are
|
|
5886
|
+
listed. Need to add 'opacity 200ms ease-out' for
|
|
5887
|
+
smooth orphan opacity flip on pin/hover transitions
|
|
5888
|
+
(currently opacity 0.55 → 1 was snapping).
|
|
5889
|
+
data-group-label-opacity attr exposes the resolved
|
|
5890
|
+
value for tests. */
|
|
5891
|
+
/* Round 561 — opacity ladder gains inspection-
|
|
5892
|
+
overrides-encoding branch via isMemberAliasHovered.
|
|
5893
|
+
Resolution order (most-emphatic first):
|
|
5894
|
+
isPinned || isHovered → 1 (direct attention)
|
|
5895
|
+
isMemberAliasHovered → 1 (R561 inspection)
|
|
5896
|
+
box.isOrphan → 0.4 (R551 orphan rest)
|
|
5897
|
+
(default) → 0.55
|
|
5898
|
+
R484/R485/R486-family mirror. */
|
|
5899
|
+
opacity={isPinned || isHovered || isMemberAliasHovered ? 1 : box.isOrphan ? 0.4 : 0.55}
|
|
5900
|
+
data-group-label-opacity={isPinned || isHovered || isMemberAliasHovered ? 1 : box.isOrphan ? 0.4 : 0.55}
|
|
4885
5901
|
data-group-label-hovered={isHovered && !isPinned ? 'true' : 'false'}
|
|
5902
|
+
data-group-label-member-alias-hovered={isMemberAliasHovered ? 'true' : 'false'}
|
|
4886
5903
|
data-group-label-font-weight={isPinned ? '800' : '700'}
|
|
4887
5904
|
/* Round 479 / Loop — extend drop-shadow visual-polish
|
|
4888
5905
|
family to a 4th anchor: group-label parent text
|
|
@@ -4905,17 +5922,94 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4905
5922
|
transition list extends to include 'filter 200ms
|
|
4906
5923
|
ease-out' alongside the existing fill/ls/fw/opacity
|
|
4907
5924
|
200ms tweens. */
|
|
4908
|
-
|
|
5925
|
+
/* Round 538 / Loop — extends R479 group-label drop-
|
|
5926
|
+
shadow from pin-only to ALSO fire on hover, with
|
|
5927
|
+
a 2-tier alpha ladder matching the R432 letter-
|
|
5928
|
+
spacing 3-tier (hover at 0.25px / pin at 0.5px)
|
|
5929
|
+
pattern. Pre-R538 the paint axis was binary (lit
|
|
5930
|
+
on pin, dark on hover); R538 adds a softer hover
|
|
5931
|
+
glow that distinguishes from the stronger pin
|
|
5932
|
+
glow without losing the "active state lights up"
|
|
5933
|
+
gesture.
|
|
5934
|
+
2-tier alpha ladder:
|
|
5935
|
+
pin (committed) cyan 80 hex (~50% alpha)
|
|
5936
|
+
hover (preview) cyan 4d hex (~30% alpha)
|
|
5937
|
+
rest none
|
|
5938
|
+
Pin signature stays distinctively brighter, but
|
|
5939
|
+
hover now telegraphs paint-axis attention too.
|
|
5940
|
+
Sibling to R534 edge-badge hover-precedence
|
|
5941
|
+
extension at the drop-shadow family. R479 hue
|
|
5942
|
+
(pal.legendAccent) preserved across both tiers.
|
|
5943
|
+
data-group-label-glow attr upgraded from binary
|
|
5944
|
+
('true'/'false') to 3-value ('pin' | 'hover' |
|
|
5945
|
+
'false') so tests can distinguish gate cause. */
|
|
5946
|
+
data-group-label-glow={isPinned ? 'pin' : isHovered ? 'hover' : 'false'}
|
|
5947
|
+
/* Round 499 / Loop — orphan band "其他" label gets
|
|
5948
|
+
fontStyle: italic to visually distinguish the
|
|
5949
|
+
catchall from real prefix-group bands. Pre-R499
|
|
5950
|
+
the orphan box label rendered identically to
|
|
5951
|
+
prefix-group labels (Hero D fontSize=9, fw=700,
|
|
5952
|
+
opacity 0.55 rest), so users had to read the
|
|
5953
|
+
literal text "其他" to identify the catchall. R499
|
|
5954
|
+
adds a pure-typography differentiation: italic
|
|
5955
|
+
signals "this is the misc bucket, not a real
|
|
5956
|
+
named group" while preserving full opacity
|
|
5957
|
+
affordance on hover/pin — the orphan box stays
|
|
5958
|
+
equally inspectable, just typographically marked
|
|
5959
|
+
as a different category. No geometry change
|
|
5960
|
+
(italic shifts glyph slant within the same bbox),
|
|
5961
|
+
no opacity loss, no behavior change. Sibling to
|
|
5962
|
+
R432 letter-spacing 3-tier + R457 pin fw-lift +
|
|
5963
|
+
R479 pin drop-shadow at the group-label scope.
|
|
5964
|
+
Falls under 配色 / 节点视觉 themes per the prompt;
|
|
5965
|
+
advances the "信息密度" axis by encoding
|
|
5966
|
+
category-distinction into a single typography
|
|
5967
|
+
channel without adding visual chrome. */
|
|
5968
|
+
/* Round 571 / Loop — group-label parent text joins the
|
|
5969
|
+
per-element brightness consistency family (R501/
|
|
5970
|
+
R558/R564/R567/R570) at uniform +15%. 8th anchor.
|
|
5971
|
+
Stacks brightness(1.15) onto the existing R479/R538
|
|
5972
|
+
drop-shadow filter — same R564/R570 stacked filter
|
|
5973
|
+
pattern (drop-shadow + brightness in one CSS chain).
|
|
5974
|
+
Pre-R571 the group-label parent text lifted in 5
|
|
5975
|
+
axes on hover/pin (fill + ls 3-tier + fw on pin +
|
|
5976
|
+
drop-shadow + opacity) but the glyph chromatically
|
|
5977
|
+
stayed at flat fill brightness. R571 adds the
|
|
5978
|
+
brightness axis to the glyph itself for cross-
|
|
5979
|
+
element consistency with the rest of the per-
|
|
5980
|
+
element brightness family.
|
|
5981
|
+
Filter chain on isPinned: `drop-shadow(0 0 3px
|
|
5982
|
+
${pal.legendAccent}80) brightness(1.15)`.
|
|
5983
|
+
On isHovered (weaker tier): `drop-
|
|
5984
|
+
shadow(0 0 3px ${pal.legendAccent}4d) brightness(1.15)`.
|
|
5985
|
+
Rest: undefined.
|
|
5986
|
+
Per-element brightness family — 8 anchors at +15%:
|
|
5987
|
+
R501 vendor.logo image
|
|
5988
|
+
R558 vendor monogram
|
|
5989
|
+
R558 prefix-group fallback
|
|
5990
|
+
R564 alias text (stacked w/ DS)
|
|
5991
|
+
R567 node sub-text
|
|
5992
|
+
R570 edge-badge digit
|
|
5993
|
+
R571 group-label parent text ← this round
|
|
5994
|
+
transition list already includes 'filter 200ms ease-
|
|
5995
|
+
out' from R479 — no change needed. R432 ls + R457
|
|
5996
|
+
fw + R479 drop-shadow + R551 orphan opacity all
|
|
5997
|
+
preserved. */
|
|
4909
5998
|
style={{
|
|
4910
5999
|
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out, opacity 200ms ease-out, filter 200ms ease-out',
|
|
4911
6000
|
letterSpacing: isPinned ? '0.5px' :
|
|
4912
6001
|
isHovered ? '0.25px' : '0px',
|
|
6002
|
+
fontStyle: box.isOrphan ? 'italic' : undefined,
|
|
4913
6003
|
filter: isPinned
|
|
4914
|
-
? `drop-shadow(0 0 3px ${pal.legendAccent}80)`
|
|
4915
|
-
:
|
|
6004
|
+
? `drop-shadow(0 0 3px ${pal.legendAccent}80) brightness(1.15)`
|
|
6005
|
+
: isHovered
|
|
6006
|
+
? `drop-shadow(0 0 3px ${pal.legendAccent}4d) brightness(1.15)`
|
|
6007
|
+
: undefined,
|
|
4916
6008
|
}}
|
|
4917
6009
|
data-group-label={box.key}
|
|
4918
6010
|
data-group-label-pinned={isPinned ? 'true' : 'false'}
|
|
6011
|
+
data-group-label-orphan={box.isOrphan ? 'true' : 'false'}
|
|
6012
|
+
data-group-label-brightness={(isPinned || isHovered) ? '1.15' : '1'}
|
|
4919
6013
|
>
|
|
4920
6014
|
{box.key}
|
|
4921
6015
|
{/* Round 19 / Loop: member-count chip. Inline tspan stays
|
|
@@ -6002,11 +7096,48 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6002
7096
|
data-edge-badge-opacity-rest={isLight ? 0.95 : 0.85}
|
|
6003
7097
|
data-edge-badge-opacity-hover="1"
|
|
6004
7098
|
data-edge-badge-opacity-active="1"
|
|
6005
|
-
data-edge-badge-glow={isHot ? '
|
|
7099
|
+
data-edge-badge-glow={(isHoveredEdge || isPinned) ? 'hover' : isHot ? 'hot' : 'false'}
|
|
7100
|
+
/* Round 534 / Loop — extends edge-badge drop-shadow
|
|
7101
|
+
coverage from hot-only (R480 amber) to also fire
|
|
7102
|
+
on hover/pin with a cyan accent glow. Pre-R534
|
|
7103
|
+
the badge's hover/pin lifted r (R164 9 → 10.5)
|
|
7104
|
+
+ sw (R394 1.25 → 1.5) + opacity (R395/R396 →
|
|
7105
|
+
1.0), but the paint axis stayed at the badge's
|
|
7106
|
+
rest fill — no glow to telegraph "in focus" at
|
|
7107
|
+
the paint layer. R534 closes that 4-axis hover-
|
|
7108
|
+
lift parity by adding drop-shadow glow on
|
|
7109
|
+
(hovered || pinned).
|
|
7110
|
+
Precedence: (hover || pin) wins over isHot when
|
|
7111
|
+
BOTH true — interactive signal (user is
|
|
7112
|
+
inspecting) overrides informational signal
|
|
7113
|
+
(hot lane). When only isHot fires (no hover/
|
|
7114
|
+
pin) the amber R480 glow remains; the hover/
|
|
7115
|
+
pin case paints cyan/teal `pal.legendAccent`
|
|
7116
|
+
at 0x99 alpha (~60%) — bright enough to read
|
|
7117
|
+
as "lit" but won't overwhelm at small badge
|
|
7118
|
+
size (r=10.5).
|
|
7119
|
+
Edge-badge 4-axis hover-lift parity now:
|
|
7120
|
+
R164 r 9 → 10.5
|
|
7121
|
+
R394 stroke-wd 1.25 → 1.5
|
|
7122
|
+
R395 opacity rest → 1.0
|
|
7123
|
+
R534 filter none → drop-shadow glow ← this round
|
|
7124
|
+
Drop-shadow visual-polish family extension —
|
|
7125
|
+
edge-badge surface upgraded from single-gate
|
|
7126
|
+
(R480 isHot) to two-gate (isHot OR hover-pin).
|
|
7127
|
+
transition list already includes filter 200ms
|
|
7128
|
+
ease-out (R480). data-edge-badge-glow attr
|
|
7129
|
+
upgraded from `isHot ? true : false` to a
|
|
7130
|
+
3-value string: 'hot' | 'hover' | 'false' so
|
|
7131
|
+
tests can distinguish gate cause.
|
|
7132
|
+
R51 sentinel safety: badge is edge-internal
|
|
7133
|
+
(not g[data-node] ancestor); filter is paint-
|
|
7134
|
+
only; bbox unchanged. */
|
|
6006
7135
|
style={{
|
|
6007
|
-
filter:
|
|
6008
|
-
? `drop-shadow(0 0 3px ${
|
|
6009
|
-
:
|
|
7136
|
+
filter: (isHoveredEdge || isPinned)
|
|
7137
|
+
? `drop-shadow(0 0 3px ${pal.legendAccent}99)`
|
|
7138
|
+
: isHot
|
|
7139
|
+
? `drop-shadow(0 0 3px ${hotStroke}80)`
|
|
7140
|
+
: undefined,
|
|
6010
7141
|
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',
|
|
6011
7142
|
}}
|
|
6012
7143
|
/>
|
|
@@ -6096,6 +7227,31 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6096
7227
|
data-edge-badge-text={link.key}
|
|
6097
7228
|
data-edge-badge-text-pin={(isPinned || isHot) ? 'true' : 'false'}
|
|
6098
7229
|
data-edge-badge-text-font-size="11"
|
|
7230
|
+
/* Round 570 / Loop — edge-badge digit joins the per-
|
|
7231
|
+
element brightness consistency family (R501/R558/
|
|
7232
|
+
R564/R567) at uniform +15%. 7th anchor.
|
|
7233
|
+
Gate: (isHoveredEdge || isPinned || isHot) — same
|
|
7234
|
+
3-tier set as R431 ls (with hover the mid step
|
|
7235
|
+
and pin/hot the strong step). Brightness lifts
|
|
7236
|
+
uniformly across all 3 active sub-states; the
|
|
7237
|
+
ls/fw axes still distinguish hover from pin/hot.
|
|
7238
|
+
Pure paint axis on the digit glyph; bbox
|
|
7239
|
+
unchanged. The R540 badge-circle drop-shadow
|
|
7240
|
+
sits on the parent CIRCLE element (separate
|
|
7241
|
+
filter); the digit's filter is independent and
|
|
7242
|
+
doesn't compound with circle filter (different
|
|
7243
|
+
SVG element).
|
|
7244
|
+
Per-element brightness family — 7 anchors at +15%:
|
|
7245
|
+
R501 vendor.logo image
|
|
7246
|
+
R558 vendor monogram
|
|
7247
|
+
R558 prefix-group fallback
|
|
7248
|
+
R564 alias text (stacked w/ DS)
|
|
7249
|
+
R567 node sub-text
|
|
7250
|
+
R570 edge-badge digit ← this round
|
|
7251
|
+
Plus runtime badge drop-shadow (R559) on same
|
|
7252
|
+
isNodeActive gate. data-edge-badge-text-brightness
|
|
7253
|
+
attr surfaces the lift for tests. */
|
|
7254
|
+
data-edge-badge-text-brightness={(isHoveredEdge || isPinned || isHot) ? '1.15' : '1'}
|
|
6099
7255
|
style={{
|
|
6100
7256
|
pointerEvents: 'none',
|
|
6101
7257
|
fontVariantNumeric: 'tabular-nums',
|
|
@@ -6114,7 +7270,10 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6114
7270
|
now): R344/R345/R347/R351/R420/R427/R431. */
|
|
6115
7271
|
letterSpacing: (isPinned || isHot) ? '0.4px' :
|
|
6116
7272
|
isHoveredEdge ? '0.2px' : '0px',
|
|
6117
|
-
|
|
7273
|
+
filter: (isHoveredEdge || isPinned || isHot)
|
|
7274
|
+
? 'brightness(1.15)'
|
|
7275
|
+
: undefined,
|
|
7276
|
+
transition: 'letter-spacing 300ms ease-out, font-weight 300ms ease-out, filter 300ms ease-out',
|
|
6118
7277
|
}}
|
|
6119
7278
|
>{link.count}</text>
|
|
6120
7279
|
</g>
|
|
@@ -6306,6 +7465,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6306
7465
|
data-hub-busyness={busy}
|
|
6307
7466
|
data-topo-hub-halo-radius={haloR}
|
|
6308
7467
|
data-topo-hub-halo-hovered={isHaloHovered ? 'true' : 'false'}
|
|
7468
|
+
data-topo-hub-halo-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
6309
7469
|
data-topo-hub-halo-trough={isLight ? troughLight : troughDark}
|
|
6310
7470
|
data-topo-hub-halo-peak={isLight ? peakLight : peakDark}
|
|
6311
7471
|
/* Round 253 / Loop: hub grounding halo fill transition
|
|
@@ -6317,10 +7477,45 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6317
7477
|
conflict.
|
|
6318
7478
|
R451: r as CSS property (R197/R198 idiom) so the
|
|
6319
7479
|
hover-radius tween eases smoothly under the same
|
|
6320
|
-
200ms cadence as fill.
|
|
7480
|
+
200ms cadence as fill.
|
|
7481
|
+
R536: extends hub-cluster glow QUARTET (R476 digit
|
|
7482
|
+
+ R532 disc + R535 ring + R533 spokes) to a 5th
|
|
7483
|
+
tier — the halo gains drop-shadow at the outermost
|
|
7484
|
+
concentric ring on hub-hover. 2px blur + 0.3 alpha
|
|
7485
|
+
keeps the halo's glow subtle since (a) the halo is
|
|
7486
|
+
the LARGEST hub element (r=22 hover) and a heavier
|
|
7487
|
+
glow would bleed visibly past the ring tier into
|
|
7488
|
+
the spoke origin, and (b) the halo already SMIL-
|
|
7489
|
+
animates opacity (R84/R244 breath), so the visible
|
|
7490
|
+
glow pulses with the breath — an atmospheric
|
|
7491
|
+
"breathing glow" idiom rather than a static rim.
|
|
7492
|
+
Hub-cluster glow QUINTET (R476/R532/R533/R535/R536):
|
|
7493
|
+
digit (typo center) 3px emerald 0.6
|
|
7494
|
+
disc (r=5.5/6) 3px emerald 0.6
|
|
7495
|
+
ring (r=14/17) 3px emerald 0.5
|
|
7496
|
+
halo (r=20/22) 2px emerald 0.3 ← this round
|
|
7497
|
+
spokes (mesh) 1.5px cyan/teal 0.4
|
|
7498
|
+
Emerald palette continues through the focal-disc
|
|
7499
|
+
family (digit/disc/ring/halo); spokes break out
|
|
7500
|
+
into cyan/teal at the mesh tier. The 4-step alpha
|
|
7501
|
+
ladder 0.6→0.6→0.5→0.3 reads as the focal cluster
|
|
7502
|
+
fading outward — the OUTERMOST emerald glow is the
|
|
7503
|
+
softest, the focal digit is the brightest.
|
|
7504
|
+
filter is paint-only; SMIL animate on opacity
|
|
7505
|
+
continues independently (attribute vs CSS-property
|
|
7506
|
+
non-conflicting). transition list extends to
|
|
7507
|
+
'filter 200ms ease-out' alongside fill + r.
|
|
7508
|
+
Drop-shadow visual-polish family extension (12
|
|
7509
|
+
anchors). preview.50 milestone round. data-topo-
|
|
7510
|
+
hub-halo-glow attr exposes the gate state. */
|
|
6321
7511
|
style={{
|
|
6322
7512
|
r: `${haloR}px`,
|
|
6323
|
-
|
|
7513
|
+
filter: !reducedMotion && hoveredHub
|
|
7514
|
+
? (isLight
|
|
7515
|
+
? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.3))'
|
|
7516
|
+
: 'drop-shadow(0 0 2px rgba(52, 211, 153, 0.3))')
|
|
7517
|
+
: undefined,
|
|
7518
|
+
transition: 'fill 200ms ease-out, r 200ms ease-out, filter 200ms ease-out',
|
|
6324
7519
|
} as React.CSSProperties}
|
|
6325
7520
|
>
|
|
6326
7521
|
{/* Round 244 / Loop: hub grounding halo breath gets
|
|
@@ -6480,6 +7675,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6480
7675
|
data-topo-hub-working-count={workingCount}
|
|
6481
7676
|
data-topo-hub-working-count-font-size="12"
|
|
6482
7677
|
data-topo-hub-working-count-hovered={hoveredHub ? 'true' : 'false'}
|
|
7678
|
+
data-topo-hub-working-count-brightness={!reducedMotion && hoveredHub ? '1.15' : '1'}
|
|
6483
7679
|
data-topo-hub-working-count-visible={workingCount > 0 ? 'true' : 'false'}
|
|
6484
7680
|
// Round 209 / Loop: hub workingCount digit scales 1.0 →
|
|
6485
7681
|
// 1.08 on hub-hover, matching R177's r 14→17 ring grow.
|
|
@@ -6530,22 +7726,109 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6530
7726
|
so the glow eases under the same cadence as the
|
|
6531
7727
|
scale + fw + fill axes. */
|
|
6532
7728
|
data-topo-hub-working-count-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
7729
|
+
/* Round 507 / Loop — focal recede. When ANY non-hub
|
|
7730
|
+
canvas surface is hovered (a node / an edge / a
|
|
7731
|
+
group label / a legend row / a vendor chip), the
|
|
7732
|
+
hub-center workingCount digit fades to 0.85 opacity,
|
|
7733
|
+
signaling "you're inspecting elsewhere, hub recedes
|
|
7734
|
+
to background." When the user un-hovers (or hovers
|
|
7735
|
+
the hub itself), opacity returns to 1.0. Pure paint
|
|
7736
|
+
polish at the canvas's most prominent focal point.
|
|
7737
|
+
Hits 信息密度 + 动效 themes — the hub digit gives
|
|
7738
|
+
way visually to the surface under inspection,
|
|
7739
|
+
reinforcing the "this is the focal point right now"
|
|
7740
|
+
gesture without requiring users to track which
|
|
7741
|
+
surface holds attention.
|
|
7742
|
+
Gate excludes hoveredHub specifically: hovering the
|
|
7743
|
+
hub itself should LIFT the digit (R425 fw bump +
|
|
7744
|
+
R476 glow + R209 scale 1.08) — the existing hover-
|
|
7745
|
+
on-hub signature is intact; only inspection
|
|
7746
|
+
ELSEWHERE recedes the hub.
|
|
7747
|
+
Composed from existing hoveredAlias / hoveredEdge-
|
|
7748
|
+
Key / hoveredGroupLabel / hoveredStatus / hovered-
|
|
7749
|
+
Vendor — no new state. 300ms ease-out opacity
|
|
7750
|
+
transition already in the style list (existing R213
|
|
7751
|
+
transition spec), so the fade rides on existing
|
|
7752
|
+
infrastructure.
|
|
7753
|
+
data-topo-hub-recede attr surfaces the gate state
|
|
7754
|
+
for tests. */
|
|
7755
|
+
data-topo-hub-recede={
|
|
7756
|
+
(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
7757
|
+
hoveredStatus || hoveredVendor) && !hoveredHub ? 'true' : 'false'
|
|
7758
|
+
}
|
|
7759
|
+
/* Round 527 / Loop — focal-amplify family extension to a
|
|
7760
|
+
2nd anchor. R511 introduced focal-amplify at the hub-
|
|
7761
|
+
highlight disc (base opacity 0.95 → 1.0 on hover); R527
|
|
7762
|
+
extends to the hub-center workingCount digit with a
|
|
7763
|
+
letter-spacing tween 0 → 0.3px on hub-hover.
|
|
7764
|
+
Composes with existing 3-axis hub-hover signature on
|
|
7765
|
+
this element:
|
|
7766
|
+
R209 transform scale(1.08) geometry
|
|
7767
|
+
R425 fontWeight 700 → 800 typography weight
|
|
7768
|
+
R476 filter drop-shadow glow paint
|
|
7769
|
+
R527 letter-spacing 0 → 0.3px typography kerning ← this round
|
|
7770
|
+
tabular-nums (R225) preserved — each digit cell keeps
|
|
7771
|
+
fixed width; the inter-digit advance grows by 0.3px
|
|
7772
|
+
per gap. Single-digit counts (1-9) show no kerning
|
|
7773
|
+
effect; multi-digit counts (10+) show the spread as
|
|
7774
|
+
info-density signaling. Sibling to R427/R431/R432/
|
|
7775
|
+
R433/R434 (hover-letter-spacing family at panel-text
|
|
7776
|
+
scope) — R527 brings the same idiom to the canvas's
|
|
7777
|
+
most-read scalar.
|
|
7778
|
+
Reduced-motion gate matches R209 scale, R425 fw, R476
|
|
7779
|
+
filter — !reducedMotion gates the lift; reducedMotion
|
|
7780
|
+
users see static digit baseline regardless of hover.
|
|
7781
|
+
Focal-amplify family extension (2 anchors): R511 hub-
|
|
7782
|
+
highlight opacity / R527 hub-digit letter-spacing.
|
|
7783
|
+
transition list extends to include `letter-spacing
|
|
7784
|
+
200ms ease-out`, matching the cadence of the other
|
|
7785
|
+
hub-hover axes. data-topo-hub-working-count-letter-
|
|
7786
|
+
spacing attr exposes the resolved value for tests. */
|
|
7787
|
+
data-topo-hub-working-count-letter-spacing={!reducedMotion && hoveredHub ? '0.3px' : '0px'}
|
|
6533
7788
|
style={{
|
|
6534
7789
|
pointerEvents: 'none',
|
|
6535
7790
|
transform: !reducedMotion && hoveredHub ? 'scale(1.08)' : 'scale(1)',
|
|
6536
7791
|
transformBox: 'fill-box',
|
|
6537
7792
|
transformOrigin: 'center',
|
|
7793
|
+
opacity: (hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
7794
|
+
hoveredStatus || hoveredVendor) && !hoveredHub
|
|
7795
|
+
? 0.85
|
|
7796
|
+
: 1,
|
|
7797
|
+
/* Round 575 (60-round milestone) — hub digit joins per-
|
|
7798
|
+
element brightness family at 14th anchor. Stacks
|
|
7799
|
+
brightness(1.15) onto R476's hub-hover drop-shadow
|
|
7800
|
+
— same R564/R570/R571/R572/R573/R574 pattern (drop-
|
|
7801
|
+
shadow + brightness in one filter chain). Closes
|
|
7802
|
+
the hub-cluster focal-element brightness coverage
|
|
7803
|
+
symmetrically: hub digit + hub-highlight disc
|
|
7804
|
+
(R574) now BOTH have stacked filter on hub-hover.
|
|
7805
|
+
Hub digit hub-hover signature post-R575 — 5 active
|
|
7806
|
+
axes:
|
|
7807
|
+
R209 scale 1.08 (geometry)
|
|
7808
|
+
R425 fw 700 → 800 (typography)
|
|
7809
|
+
R527 ls 0 → 0.3px (typography)
|
|
7810
|
+
R476 drop-shadow glow (paint halo)
|
|
7811
|
+
R575 brightness(1.15) (paint glow) ← this round
|
|
7812
|
+
Hub-cluster focal cluster (digit + highlight) now
|
|
7813
|
+
has UNIFIED 5-axis hub-hover signature reading as
|
|
7814
|
+
one tightly-coupled motion-coherent lift. */
|
|
6538
7815
|
filter: !reducedMotion && hoveredHub
|
|
6539
7816
|
? (isLight
|
|
6540
|
-
? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.6))'
|
|
6541
|
-
: 'drop-shadow(0 0 3px rgba(52, 211, 153, 0.6))')
|
|
7817
|
+
? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.6)) brightness(1.15)'
|
|
7818
|
+
: 'drop-shadow(0 0 3px rgba(52, 211, 153, 0.6)) brightness(1.15)')
|
|
6542
7819
|
: undefined,
|
|
7820
|
+
letterSpacing: !reducedMotion && hoveredHub ? '0.3px' : '0px',
|
|
6543
7821
|
/* R425: font-weight 200ms appended so the hover fw
|
|
6544
7822
|
bump 700 → 800 eases under the same cadence as
|
|
6545
7823
|
R209 scale + R253 fill + R213 opacity.
|
|
6546
7824
|
R476: filter 200ms appended so the new drop-
|
|
6547
|
-
shadow glow eases at the same cadence.
|
|
6548
|
-
|
|
7825
|
+
shadow glow eases at the same cadence.
|
|
7826
|
+
R507: opacity 300ms (existing in list) covers
|
|
7827
|
+
the new focal-recede fade.
|
|
7828
|
+
R527: letter-spacing 200ms appended so the new
|
|
7829
|
+
hover-kerning bump eases at the same cadence
|
|
7830
|
+
as the other axes. */
|
|
7831
|
+
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',
|
|
6549
7832
|
fontVariantNumeric: 'tabular-nums',
|
|
6550
7833
|
}}
|
|
6551
7834
|
>
|
|
@@ -6591,19 +7874,214 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6591
7874
|
+ R213 always-mount opacity-gate + pointerEvents:none
|
|
6592
7875
|
+ R365 r=5.5 all preserved. data-topo-hub-highlight-
|
|
6593
7876
|
opacity attr exposes the resolved value for tests. */}
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
7877
|
+
{/* Round 508 / Loop — focal-recede pattern 2nd anchor.
|
|
7878
|
+
Extends R507's hub-digit recede to the hub-highlight
|
|
7879
|
+
circle so the hub focal CLUSTER (digit at z-top + this
|
|
7880
|
+
idle-state highlight beneath) recedes as a unit when
|
|
7881
|
+
canvas attention is elsewhere. Computed once: a single
|
|
7882
|
+
non-hub-hover gate drives BOTH the digit (R507) AND
|
|
7883
|
+
this highlight (R508) so they always co-move.
|
|
7884
|
+
Recede multiplies the visible opacity by 0.85 — when
|
|
7885
|
+
workingCount===0 the rest opacity 0.95 becomes 0.81
|
|
7886
|
+
during external-hover; when workingCount>0 the
|
|
7887
|
+
opacity stays 0 (invisible) regardless of recede.
|
|
7888
|
+
Additionally, when recede is active the SMIL breath
|
|
7889
|
+
animation halts (animate node un-mounts) so the
|
|
7890
|
+
receded state reads as quietly static, not pulsing
|
|
7891
|
+
at 0.85↔1.0 against the recede multiplier (which
|
|
7892
|
+
would visually conflict — competing 15% drops). On
|
|
7893
|
+
un-hover the animate re-mounts and breath resumes.
|
|
7894
|
+
data-topo-hub-recede on both digit AND highlight
|
|
7895
|
+
provides a stable test handle for the unified-recede
|
|
7896
|
+
gate.
|
|
7897
|
+
Composed from existing hover state vars — no new
|
|
7898
|
+
state. Pure paint axis. */}
|
|
7899
|
+
{(() => {
|
|
7900
|
+
const hubRecede = !!((hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
7901
|
+
hoveredStatus || hoveredVendor) && !hoveredHub);
|
|
7902
|
+
/* Round 511 / Loop — hub-highlight gains a 3rd opacity tier
|
|
7903
|
+
(hovered-amplify). Pre-R511 the highlight had 2 visible
|
|
7904
|
+
states: rest (0.95) and recede (0.81 = 0.95 × 0.85).
|
|
7905
|
+
When the hub itself was hovered, the digit got R425 fw
|
|
7906
|
+
lift + R476 drop-shadow + R209 scale-1.08, but the
|
|
7907
|
+
highlight disc sibling stayed at 0.95 — the focal
|
|
7908
|
+
cluster lifted in 3 channels (typography/paint/scale)
|
|
7909
|
+
but the highlight didn't participate.
|
|
7910
|
+
R511 closes that asymmetry: when hoveredHub is true,
|
|
7911
|
+
highlight base opacity lifts to 1.0 (5% boost from
|
|
7912
|
+
rest 0.95). Cluster now lifts as a unit on hub-hover,
|
|
7913
|
+
just like it recedes as a unit on non-hub-hover
|
|
7914
|
+
(R508).
|
|
7915
|
+
3-state opacity ladder:
|
|
7916
|
+
hub-hovered: baseOpacity = 1.0 (R511 NEW)
|
|
7917
|
+
rest (no hover): baseOpacity = 0.95 (existing)
|
|
7918
|
+
non-hub canvas hov: baseOpacity × 0.85 = 0.81 (R508)
|
|
7919
|
+
Composes cleanly: hubRecede gate requires !hoveredHub,
|
|
7920
|
+
so the hovered-amplify and recede states are mutually
|
|
7921
|
+
exclusive (they can't both fire). breathActive
|
|
7922
|
+
continues to halt on either non-rest state (recede OR
|
|
7923
|
+
hub-hover would visually compete with the 0.85↔1
|
|
7924
|
+
breath — clean for the unit-lift semantic too). */
|
|
7925
|
+
const baseOpacity = workingCount > 0 ? 0
|
|
7926
|
+
: hoveredHub ? 1.0
|
|
7927
|
+
: 0.95;
|
|
7928
|
+
const resolvedOpacity = hubRecede ? baseOpacity * 0.85 : baseOpacity;
|
|
7929
|
+
const breathActive = !reducedMotion && workingCount === 0 && !hubRecede && !hoveredHub;
|
|
7930
|
+
/* Round 529 / Loop — focal-amplify family 3rd anchor.
|
|
7931
|
+
Hub-highlight gains geometric amplify r 5.5 → 6 on
|
|
7932
|
+
hub-hover, mirroring R451's hub-halo r 20 → 22 hover
|
|
7933
|
+
pattern. Pre-R529 the highlight had paint-axis
|
|
7934
|
+
amplify only (R511 opacity 0.95 → 1.0 on hub-hover);
|
|
7935
|
+
R529 adds geometric amplify so the focal disc
|
|
7936
|
+
BREATHES outward on hub attention, like the halo
|
|
7937
|
+
does. Composes with the existing 2-axis hub-hover
|
|
7938
|
+
lift on this element:
|
|
7939
|
+
R511 opacity 0.95 → 1.0 paint (focal-amplify 1st)
|
|
7940
|
+
R529 r 5.5 → 6 geometry (this round)
|
|
7941
|
+
Implementation matches R451: CSS `r` property
|
|
7942
|
+
(R197/R198 idiom) for smooth interpolation. SVG
|
|
7943
|
+
attribute `r="5.5"` provides SSR fallback and serves
|
|
7944
|
+
as default; inline style.r overrides for animated
|
|
7945
|
+
value. transition list extends to include `r 200ms
|
|
7946
|
+
ease-out`, matching the fill cadence (also 200ms);
|
|
7947
|
+
opacity transition stays at 300ms (existing).
|
|
7948
|
+
r 6 sits well inside the existing visual envelope
|
|
7949
|
+
(next-larger sibling r=10 hub core, r=14 hub hover
|
|
7950
|
+
ring). The 0.5px lift is +9% radius / +19% area —
|
|
7951
|
+
enough to read as 'lift' without breaching the core
|
|
7952
|
+
boundary or invalidating overlap-test invariants.
|
|
7953
|
+
SMIL animate on opacity continues independently
|
|
7954
|
+
(animateAttr='opacity' vs CSS-property r — non-
|
|
7955
|
+
conflicting, same pattern R451 noted for halo).
|
|
7956
|
+
Focal-amplify family extension (3 anchors):
|
|
7957
|
+
R511 hub-highlight opacity 0.95 → 1.0
|
|
7958
|
+
R527 hub-digit letter-spacing 0 → 0.3px
|
|
7959
|
+
R529 hub-highlight radius 5.5 → 6 ← this round
|
|
7960
|
+
data-topo-hub-highlight-radius attr now reports the
|
|
7961
|
+
dynamic value (was static '5.5'). */
|
|
7962
|
+
const highlightR = !reducedMotion && hoveredHub ? 6 : 5.5;
|
|
7963
|
+
return (
|
|
7964
|
+
<circle
|
|
7965
|
+
cx={cx} cy={cy} r="5.5"
|
|
7966
|
+
/* Round 509 / Loop — 配色 cross-theme cleanup. Pre-R509
|
|
7967
|
+
the hub-highlight fill was hardcoded `#d1fae5`
|
|
7968
|
+
(emerald-100, a pale tone). On the light theme this
|
|
7969
|
+
near-white green ran against a pale background at
|
|
7970
|
+
0.95 opacity — the disc was effectively invisible.
|
|
7971
|
+
Matches the existing R253 halo theme-inversion
|
|
7972
|
+
pattern (line ~6481): light theme picks the dark
|
|
7973
|
+
vibrant emerald (#10b981 emerald-600), dark theme
|
|
7974
|
+
keeps the pale emerald (#d1fae5 emerald-100). Both
|
|
7975
|
+
read at the same 0.95 opacity against their
|
|
7976
|
+
respective backdrops — light gets a saturated
|
|
7977
|
+
focal dot; dark keeps the soft glow signature.
|
|
7978
|
+
Pure paint axis (fill change only); bbox unchanged;
|
|
7979
|
+
R51 SVG sentinel safety untouched.
|
|
7980
|
+
transition list already includes `fill 200ms`?
|
|
7981
|
+
Actually the existing transition spec is `opacity
|
|
7982
|
+
300ms ease-out` — fill change on theme toggle
|
|
7983
|
+
will be instant. That's acceptable: theme toggle
|
|
7984
|
+
is a discrete event, and the halo (line 6500)
|
|
7985
|
+
already snaps fill on theme toggle the same way
|
|
7986
|
+
(`fill 200ms ease-out` was added later to halo
|
|
7987
|
+
via R253). Future round could add `fill 200ms`
|
|
7988
|
+
to highlight too if theme-switch flicker is
|
|
7989
|
+
noticed. */
|
|
7990
|
+
fill={isLight ? '#10b981' : '#d1fae5'}
|
|
7991
|
+
opacity={resolvedOpacity}
|
|
7992
|
+
data-topo-hub-highlight
|
|
7993
|
+
data-topo-hub-highlight-visible={workingCount > 0 ? 'false' : 'true'}
|
|
7994
|
+
data-topo-hub-highlight-radius={highlightR}
|
|
7995
|
+
data-topo-hub-highlight-opacity={resolvedOpacity}
|
|
7996
|
+
data-topo-hub-highlight-breath={breathActive ? 'true' : 'false'}
|
|
7997
|
+
data-topo-hub-highlight-recede={hubRecede ? 'true' : 'false'}
|
|
7998
|
+
data-topo-hub-highlight-hovered={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
7999
|
+
data-topo-hub-highlight-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
8000
|
+
/* Round 574 — hub-highlight joins per-element brightness
|
|
8001
|
+
family at 13th anchor. Stacks brightness(1.15) onto
|
|
8002
|
+
R532's drop-shadow filter — same R564/R570/R571/R572/
|
|
8003
|
+
R573 pattern (drop-shadow + brightness in one filter
|
|
8004
|
+
chain). Hub idle disc now has 3 active hub-hover
|
|
8005
|
+
axes: R511 opacity 0.95 → 1.0 + R529 r 5.5 → 6 +
|
|
8006
|
+
R574 brightness(1.15). data-topo-hub-highlight-
|
|
8007
|
+
brightness attr surfaces the lift. */
|
|
8008
|
+
data-topo-hub-highlight-brightness={!reducedMotion && hoveredHub ? '1.15' : '1'}
|
|
8009
|
+
/* Round 510 / Loop — R509 follow-on: theme-toggle fill
|
|
8010
|
+
ease. Pre-R510 the hub-highlight transition spec only
|
|
8011
|
+
listed `opacity 300ms ease-out`. When R509 introduced
|
|
8012
|
+
theme-conditional fill (#d1fae5 ↔ #10b981), the fill
|
|
8013
|
+
change SNAPPED on theme toggle because the transition
|
|
8014
|
+
list didn't include `fill`. R510 extends to `fill
|
|
8015
|
+
200ms ease-out` so theme cycles smoothly through the
|
|
8016
|
+
emerald palette. 200ms timing matches the R253 halo
|
|
8017
|
+
fill transition (line ~6500) — both hub-cluster
|
|
8018
|
+
theme transitions now share a cadence so the focal
|
|
8019
|
+
cluster (digit + highlight + halo) eases as a unit.
|
|
8020
|
+
R508's recede opacity transition unchanged (300ms);
|
|
8021
|
+
fill is independent.
|
|
8022
|
+
R529: r as CSS property (R197/R198 idiom) + `r
|
|
8023
|
+
200ms ease-out` appended to transition list so
|
|
8024
|
+
the new hub-hover radius lift (5.5 → 6) eases
|
|
8025
|
+
under the same fill cadence. SVG attr r="5.5"
|
|
8026
|
+
above provides SSR fallback; inline style.r
|
|
8027
|
+
wins the cascade for the dynamic value.
|
|
8028
|
+
R532: filter drop-shadow glow on hub-hover —
|
|
8029
|
+
sibling to R476 hub-digit drop-shadow at the
|
|
8030
|
+
same gate (hoveredHub && !reducedMotion). Two
|
|
8031
|
+
adjacent hub focal elements (digit + highlight
|
|
8032
|
+
disc) now BOTH glow on hub-hover, reading as
|
|
8033
|
+
one unified focal cluster. Emerald palette
|
|
8034
|
+
matches R476:
|
|
8035
|
+
light: drop-shadow(0 0 2px rgba(16,185,129,0.6)) emerald-500
|
|
8036
|
+
cyber: drop-shadow(0 0 3px rgba(52,211,153,0.6)) emerald-400
|
|
8037
|
+
filter is paint-only (bbox unchanged); SMIL
|
|
8038
|
+
animate on opacity continues independently
|
|
8039
|
+
(animateAttr='opacity' vs CSS-property filter
|
|
8040
|
+
— non-conflicting). transition list extends to
|
|
8041
|
+
'filter 200ms ease-out' alongside fill/r.
|
|
8042
|
+
Drop-shadow visual-polish family extension
|
|
8043
|
+
(8 anchors): R476 hub-digit / R477 legend pin-
|
|
8044
|
+
ring / R478 recent freshness / hot edge / group
|
|
8045
|
+
label / zoom-state / node alias + R532 hub-
|
|
8046
|
+
highlight (this round). data-topo-hub-highlight-
|
|
8047
|
+
glow attr exposes the gate state. */
|
|
8048
|
+
style={{
|
|
8049
|
+
pointerEvents: 'none',
|
|
8050
|
+
r: `${highlightR}px`,
|
|
8051
|
+
filter: !reducedMotion && hoveredHub
|
|
8052
|
+
? (isLight
|
|
8053
|
+
? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.6)) brightness(1.15)'
|
|
8054
|
+
: 'drop-shadow(0 0 3px rgba(52, 211, 153, 0.6)) brightness(1.15)')
|
|
8055
|
+
: undefined,
|
|
8056
|
+
transition: 'opacity 300ms ease-out, fill 200ms ease-out, r 200ms ease-out, filter 200ms ease-out',
|
|
8057
|
+
} as React.CSSProperties}
|
|
8058
|
+
>
|
|
8059
|
+
{/* Round 497 / Loop — idle-state breath (呼吸感 theme pivot
|
|
8060
|
+
from the R492-R496 press-family arc). Pre-R497 the hub
|
|
8061
|
+
idle highlight read as a static dim disc — present but
|
|
8062
|
+
motionless, visually mute. R497 adds a 4s opacity breath
|
|
8063
|
+
(0.85 ↔ 1.0 ↔ 0.85) so the hub reads "alive but quiet"
|
|
8064
|
+
instead of "frozen", giving the empty-fleet state a
|
|
8065
|
+
subtle living signature.
|
|
8066
|
+
Gates:
|
|
8067
|
+
- !reducedMotion (R29 a11y blanket) — reducedMotion
|
|
8068
|
+
users see static 0.95 disc, no animate
|
|
8069
|
+
- workingCount === 0 — when fleet is busy, the
|
|
8070
|
+
highlight is invisible (opacity=0) so the animate
|
|
8071
|
+
would waste paint cycles. Gating saves work.
|
|
8072
|
+
SMIL <animate> overrides the static opacity={0.95}
|
|
8073
|
+
during its run; falls back to 0.95 when reducedMotion
|
|
8074
|
+
flips on (the animate node simply doesn't render).
|
|
8075
|
+
4s cycle is long enough to feel like ambient breath
|
|
8076
|
+
rather than a pulse, matching the "quiet" semantic.
|
|
8077
|
+
data-topo-hub-highlight-breath attr exposes the
|
|
8078
|
+
resolved gate state for tests. */}
|
|
8079
|
+
{breathActive && (
|
|
8080
|
+
<animate attributeName="opacity" values="0.85;1;0.85" dur="4s" repeatCount="indefinite" />
|
|
8081
|
+
)}
|
|
8082
|
+
</circle>
|
|
8083
|
+
);
|
|
8084
|
+
})()}
|
|
6607
8085
|
{/* R115 / Loop: hover hint ring. Stroke-only circle at r=14
|
|
6608
8086
|
that fades in when the hub is hovered — the same idea
|
|
6609
8087
|
R44 used for node avatars (group-hover stroke). r=14
|
|
@@ -6669,13 +8147,47 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
6669
8147
|
data-topo-hub-hover-ring-radius={hoveredHub ? 17 : 14}
|
|
6670
8148
|
data-topo-hub-hover-ring-stroke-width="1.75"
|
|
6671
8149
|
data-topo-hub-hover-ring-opacity={hoveredHub ? (isLight ? 0.85 : 0.8) : 0}
|
|
6672
|
-
/* Round
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
8150
|
+
/* Round 535 / Loop — completes the hub-cluster glow
|
|
8151
|
+
QUARTET by adding drop-shadow to the hub-hover-ring.
|
|
8152
|
+
Pre-R535 the hub-hover trio (R476 digit + R532 highlight
|
|
8153
|
+
disc + R533 spokes) glowed in unified emerald (digit/
|
|
8154
|
+
disc) + cyan/teal (spokes) on hub-hover, but the ring
|
|
8155
|
+
itself — the outermost solid emerald boundary at
|
|
8156
|
+
r=14→17 — stayed flat. R535 adds the matching emerald
|
|
8157
|
+
drop-shadow to the ring so the FULL hub-cluster glows
|
|
8158
|
+
across all four concentric surfaces on hub-hover:
|
|
8159
|
+
digit (typography center) drop-shadow 0 0 3px emerald
|
|
8160
|
+
highlight disc (r=5.5/6) drop-shadow 0 0 3px emerald
|
|
8161
|
+
hover-ring (r=14/17) drop-shadow 0 0 3px emerald ← this round
|
|
8162
|
+
spokes (mesh) drop-shadow 0 0 1.5px cyan/teal
|
|
8163
|
+
The ring is only visible on hub-hover (opacity=0 rest);
|
|
8164
|
+
adding drop-shadow at the same gate means the glow shows
|
|
8165
|
+
the moment the ring shows — no extra state needed.
|
|
8166
|
+
Same R476/R532 emerald palette since the ring sits
|
|
8167
|
+
inside the focal-disc tier (its color is also emerald
|
|
8168
|
+
#059669/#10b981).
|
|
8169
|
+
transition list extends to include 'filter 200ms ease-
|
|
8170
|
+
out' alongside the existing 180ms opacity/r — slight
|
|
8171
|
+
cadence mismatch (180 vs 200) is acceptable; the filter
|
|
8172
|
+
only appears AFTER the ring fades in via opacity, and
|
|
8173
|
+
the 200ms vs 180ms 20ms tail difference is below
|
|
8174
|
+
perceptual threshold.
|
|
8175
|
+
Drop-shadow visual-polish family extension (11 anchors):
|
|
8176
|
+
the hub-cluster glow quartet (R476/R532/R533/R535) plus
|
|
8177
|
+
the 7 non-hub anchors (R477/R478/R479/R480/R481/R483/
|
|
8178
|
+
R534) makes for a thoroughly polished glow vocabulary
|
|
8179
|
+
across the canvas.
|
|
8180
|
+
data-topo-hub-hover-ring-glow attr exposes the gate
|
|
8181
|
+
state for tests. */
|
|
8182
|
+
data-topo-hub-hover-ring-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
|
|
6676
8183
|
style={{
|
|
6677
8184
|
pointerEvents: 'none',
|
|
6678
|
-
|
|
8185
|
+
filter: !reducedMotion && hoveredHub
|
|
8186
|
+
? (isLight
|
|
8187
|
+
? 'drop-shadow(0 0 3px rgba(16, 185, 129, 0.5))'
|
|
8188
|
+
: 'drop-shadow(0 0 3px rgba(52, 211, 153, 0.5))')
|
|
8189
|
+
: undefined,
|
|
8190
|
+
transition: 'opacity 180ms ease-out, r 180ms ease-out, stroke 200ms ease-out, filter 200ms ease-out',
|
|
6679
8191
|
}}
|
|
6680
8192
|
/>
|
|
6681
8193
|
</g>)}
|
|
@@ -7588,6 +9100,30 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7588
9100
|
const internByAlias = /书生|书小生|intern/i.test(session.alias);
|
|
7589
9101
|
|
|
7590
9102
|
if (isIntern || internByAlias || vendor.logo) {
|
|
9103
|
+
/* Round 501 / Loop — vendor avatar inside node circles
|
|
9104
|
+
gains a hover-gated brightness lift. Pre-R501 the
|
|
9105
|
+
avatar <image> was the only per-node surface with
|
|
9106
|
+
NO hover treatment: R26 lifted the card, R242 tinted
|
|
9107
|
+
the card stroke, R427 spread the alias letter-
|
|
9108
|
+
spacing, R500 added the alias drop-shadow, R208
|
|
9109
|
+
lifted the runtime badge ring, R443 thickened
|
|
9110
|
+
the badge icon stroke, R177 brightened the
|
|
9111
|
+
halo — but the most visually-prominent element
|
|
9112
|
+
(the vendor logo / 书生 coin centred in each node)
|
|
9113
|
+
stayed paint-static. R501 closes the per-node
|
|
9114
|
+
hover-affordance arc by adding a 15% brightness
|
|
9115
|
+
lift on hover.
|
|
9116
|
+
Implementation: CSS filter: brightness(1.15)
|
|
9117
|
+
when hoveredAlias === session.alias. Pure paint
|
|
9118
|
+
axis on the <image> element — no geometry change,
|
|
9119
|
+
no bbox shift. Modern-browser supported (Chrome 64+
|
|
9120
|
+
/ FF 56+ / Safari 9.1+).
|
|
9121
|
+
Hits 节点视觉 theme. data-node-avatar-hovered
|
|
9122
|
+
attr surfaces the gate for tests.
|
|
9123
|
+
Gated on !reducedMotion as a courtesy (brightness
|
|
9124
|
+
transition < ~50ms still feels instant; the gate
|
|
9125
|
+
avoids the transition cycle for a11y users). */
|
|
9126
|
+
const isAvatarHovered = !reducedMotion && hoveredAlias === session.alias;
|
|
7591
9127
|
return (
|
|
7592
9128
|
<image
|
|
7593
9129
|
href={vendor.logo ?? '/intern_avatar.png'}
|
|
@@ -7596,9 +9132,39 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7596
9132
|
width={size}
|
|
7597
9133
|
height={size}
|
|
7598
9134
|
preserveAspectRatio="xMidYMid meet"
|
|
9135
|
+
data-node-avatar={session.alias}
|
|
9136
|
+
data-node-avatar-hovered={isAvatarHovered ? 'true' : 'false'}
|
|
9137
|
+
style={{
|
|
9138
|
+
filter: isAvatarHovered ? 'brightness(1.15)' : undefined,
|
|
9139
|
+
transition: 'filter 200ms ease-out',
|
|
9140
|
+
}}
|
|
7599
9141
|
/>
|
|
7600
9142
|
);
|
|
7601
9143
|
}
|
|
9144
|
+
/* Round 558 / Loop — closes the per-node avatar hover-
|
|
9145
|
+
affordance arc by extending R501's brightness lift
|
|
9146
|
+
(image-branch only) to the TWO remaining avatar
|
|
9147
|
+
variants: vendor monogram + prefix-group hue-hashed
|
|
9148
|
+
initial fallback. Pre-R558 only the vendor.logo
|
|
9149
|
+
image branch lifted on hover; the other two
|
|
9150
|
+
variants stayed paint-static under attention.
|
|
9151
|
+
|
|
9152
|
+
Per-node avatar hover-brightness family (3 anchors,
|
|
9153
|
+
all gated on !reducedMotion && hoveredAlias matches):
|
|
9154
|
+
R501 vendor.logo image filter on <image>
|
|
9155
|
+
R558 vendor monogram filter on wrapping <g>
|
|
9156
|
+
R558 prefix-group fallback filter on wrapping <g>
|
|
9157
|
+
|
|
9158
|
+
Implementation: each fallback branch returns a
|
|
9159
|
+
fragment with <circle> + <text> as siblings.
|
|
9160
|
+
Wrapping them in a single <g> with the filter
|
|
9161
|
+
centralizes the paint axis. Same brightness(1.15)
|
|
9162
|
+
value as R501 for cross-branch consistency. Same
|
|
9163
|
+
transition cadence (filter 200ms ease-out).
|
|
9164
|
+
|
|
9165
|
+
data-node-avatar-monogram-hovered + -fallback-
|
|
9166
|
+
hovered attrs surface the gates for tests. */
|
|
9167
|
+
const isAvatarFallbackHovered = !reducedMotion && hoveredAlias === session.alias;
|
|
7602
9168
|
if (vendor.id !== 'unknown') {
|
|
7603
9169
|
// Known model house, logo asset not in public/vendors/
|
|
7604
9170
|
// yet — vendor-tinted monogram stands in.
|
|
@@ -7618,7 +9184,14 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7618
9184
|
where less visual weight signals "we don't know
|
|
7619
9185
|
what this is" appropriately. */
|
|
7620
9186
|
return (
|
|
7621
|
-
|
|
9187
|
+
<g
|
|
9188
|
+
data-node-avatar-monogram={session.alias}
|
|
9189
|
+
data-node-avatar-monogram-hovered={isAvatarFallbackHovered ? 'true' : 'false'}
|
|
9190
|
+
style={{
|
|
9191
|
+
filter: isAvatarFallbackHovered ? 'brightness(1.15)' : undefined,
|
|
9192
|
+
transition: 'filter 200ms ease-out',
|
|
9193
|
+
}}
|
|
9194
|
+
>
|
|
7622
9195
|
<circle cx={pos.x} cy={pos.y} r={ar} fill={vendor.mono.bg} stroke={vendor.mono.ring} strokeWidth="1.5" />
|
|
7623
9196
|
{/* Round 284 / Loop: known-vendor monogram letter
|
|
7624
9197
|
swaps fontFamily monospace → system sans-serif.
|
|
@@ -7650,14 +9223,21 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7650
9223
|
>
|
|
7651
9224
|
{vendor.initial}
|
|
7652
9225
|
</text>
|
|
7653
|
-
|
|
9226
|
+
</g>
|
|
7654
9227
|
);
|
|
7655
9228
|
}
|
|
7656
9229
|
// Round 106 (issue #83): hue keyed to the prefix group,
|
|
7657
9230
|
// not the full alias — every 通信* node shares one color.
|
|
7658
9231
|
const c = aliasAvatarColors(groupKeys[session.alias] || session.alias);
|
|
7659
9232
|
return (
|
|
7660
|
-
|
|
9233
|
+
<g
|
|
9234
|
+
data-node-avatar-fallback={session.alias}
|
|
9235
|
+
data-node-avatar-fallback-hovered={isAvatarFallbackHovered ? 'true' : 'false'}
|
|
9236
|
+
style={{
|
|
9237
|
+
filter: isAvatarFallbackHovered ? 'brightness(1.15)' : undefined,
|
|
9238
|
+
transition: 'filter 200ms ease-out',
|
|
9239
|
+
}}
|
|
9240
|
+
>
|
|
7661
9241
|
<circle cx={pos.x} cy={pos.y} r={ar} fill={c.bg} stroke={c.ring} strokeWidth="1" />
|
|
7662
9242
|
<text
|
|
7663
9243
|
x={pos.x}
|
|
@@ -7671,7 +9251,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7671
9251
|
>
|
|
7672
9252
|
{aliasInitial(session.alias)}
|
|
7673
9253
|
</text>
|
|
7674
|
-
|
|
9254
|
+
</g>
|
|
7675
9255
|
);
|
|
7676
9256
|
})()}
|
|
7677
9257
|
{/* Issue #96: runtime badge — small corner glyph marking the
|
|
@@ -7702,7 +9282,47 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7702
9282
|
// badge-active exposes the gate for tests.
|
|
7703
9283
|
const isNodeActive = !reducedMotion && hoveredAlias === session.alias;
|
|
7704
9284
|
return (
|
|
7705
|
-
|
|
9285
|
+
/* Round 559 / Loop — runtime badge outer <g> picks up
|
|
9286
|
+
a drop-shadow glow on node hover, using the runtime's
|
|
9287
|
+
own identity color (rt.color, hex). 16th anchor in
|
|
9288
|
+
the drop-shadow visual-polish family. Pairs with
|
|
9289
|
+
existing R208 ring r-lift + R443 icon sw-lift for
|
|
9290
|
+
a 3-axis runtime-badge hover signature now spanning
|
|
9291
|
+
geometry + stroke + paint glow:
|
|
9292
|
+
R208 ring r 7 → 8 (online)
|
|
9293
|
+
R208 ring sw 1.5 → 2
|
|
9294
|
+
R443 icon sw 2.4 → 2.8
|
|
9295
|
+
R559 outer filter none → drop-shadow(rt.color) ← this round
|
|
9296
|
+
Filter on the OUTER <g> applies uniformly to both
|
|
9297
|
+
the ring <circle> and the inner icon <path> —
|
|
9298
|
+
single paint-axis lift covers both layers in one
|
|
9299
|
+
motion-coherent gesture.
|
|
9300
|
+
Hue: `${rt.color}99` hex+alpha (60%) — rt.color is
|
|
9301
|
+
6-digit hex (#a78bfa / #38bdf8 / #34d399 / #fbbf24
|
|
9302
|
+
per lib/vendorIdentity.ts), so hex+alpha concat is
|
|
9303
|
+
safe (banked R541 pattern: hex sources use hex+
|
|
9304
|
+
alpha; only hsl/color()/dynamic sources need color-
|
|
9305
|
+
mix).
|
|
9306
|
+
2px blur reads tight on a small badge (r=7 online
|
|
9307
|
+
/ r=5.5 offline). transition list adds 'filter
|
|
9308
|
+
150ms ease-out' matching the R208 ring r/sw cadence
|
|
9309
|
+
at this surface.
|
|
9310
|
+
Drop-shadow visual-polish family extension (16
|
|
9311
|
+
anchors now): R476/R477/R478/R479/R480/R481 +
|
|
9312
|
+
R500/R532-R536/R537/R538/R540/R543-R546/R550 +
|
|
9313
|
+
R559 (this round).
|
|
9314
|
+
data-runtime-badge-glow attr surfaces the gate
|
|
9315
|
+
for tests. */
|
|
9316
|
+
<g
|
|
9317
|
+
data-runtime-badge-glow={isNodeActive ? 'true' : 'false'}
|
|
9318
|
+
style={{
|
|
9319
|
+
pointerEvents: 'none',
|
|
9320
|
+
filter: isNodeActive
|
|
9321
|
+
? `drop-shadow(0 0 2px ${rt.color}99)`
|
|
9322
|
+
: undefined,
|
|
9323
|
+
transition: 'filter 150ms ease-out',
|
|
9324
|
+
}}
|
|
9325
|
+
>
|
|
7706
9326
|
<circle
|
|
7707
9327
|
cx={bx} cy={by} r={br}
|
|
7708
9328
|
fill={pal.containerBg}
|
|
@@ -8019,6 +9639,43 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
8019
9639
|
R211 fill 300ms + R305 letter-spacing 200ms
|
|
8020
9640
|
transition list preserved; only the
|
|
8021
9641
|
conditional gets a middle case. */}
|
|
9642
|
+
{/* Round 500 / Loop — milestone round, opens
|
|
9643
|
+
per-node alias drop-shadow polish. Extends the
|
|
9644
|
+
R476-R481 drop-shadow visual-polish family to a
|
|
9645
|
+
7th anchor: hovered alias text gains a soft
|
|
9646
|
+
status-coloured text-glow. Pre-R500 hover on
|
|
9647
|
+
a node triggered card-lift (R26 translateY) +
|
|
9648
|
+
card-stroke (R242 tint) + alias letter-spacing
|
|
9649
|
+
(R427 0.3px tier) but the alias TEXT itself had
|
|
9650
|
+
no paint-axis cue beyond fill (R211). R500 adds
|
|
9651
|
+
a drop-shadow on the text glyph itself, so the
|
|
9652
|
+
identity glyph itself lights up under attention
|
|
9653
|
+
— matching the R476 idiom (hub-digit emerald
|
|
9654
|
+
glow on hover) at the per-node identity scope.
|
|
9655
|
+
2px blur radius at 50% alpha — subtler than the
|
|
9656
|
+
R476 hub-digit (3px at 60%) because the alias
|
|
9657
|
+
text is smaller and more numerous (1 per node)
|
|
9658
|
+
so an aggressive glow would multiply into
|
|
9659
|
+
visual noise. Status-coloured (status.text) so
|
|
9660
|
+
the glow inherits the node's working/idle/
|
|
9661
|
+
offline palette — green/cyan/gray respectively.
|
|
9662
|
+
Drop-shadow visual-polish family — 7 anchors:
|
|
9663
|
+
R476 hub digit hover-gated emerald
|
|
9664
|
+
R477 legend pin-ring pin-gated row.fill
|
|
9665
|
+
R478 recent-row pip fresh-gated cyan
|
|
9666
|
+
R479 group-label text pin-gated cyan
|
|
9667
|
+
R480 hot-lane edge hot-gated amber
|
|
9668
|
+
R481 zoom-state minimap zoom-gated cyan
|
|
9669
|
+
R500 node alias text hover-gated status.text ← this round
|
|
9670
|
+
Filter is paint-only; bbox unchanged; overlap-
|
|
9671
|
+
test invariants hold (R51 selector gated to
|
|
9672
|
+
g[data-node] descendants with strokeWidth
|
|
9673
|
+
sentinels; text element doesn't carry stroke).
|
|
9674
|
+
transition list extends to include 'filter
|
|
9675
|
+
200ms ease-out' alongside the existing fill
|
|
9676
|
+
300ms + letter-spacing 200ms tweens.
|
|
9677
|
+
data-node-alias-glow attr surfaces the hover
|
|
9678
|
+
gate for tests. */}
|
|
8022
9679
|
<text
|
|
8023
9680
|
x="0" y="1" textAnchor="middle"
|
|
8024
9681
|
fill={status.text}
|
|
@@ -8026,12 +9683,43 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
8026
9683
|
data-node-alias-text={session.alias}
|
|
8027
9684
|
data-node-alias-chat-target={chatAlias === session.alias ? 'true' : 'false'}
|
|
8028
9685
|
data-node-alias-hovered={hoveredAlias === session.alias ? 'true' : 'false'}
|
|
9686
|
+
data-node-alias-glow={!reducedMotion && hoveredAlias === session.alias ? 'true' : 'false'}
|
|
8029
9687
|
style={{
|
|
8030
|
-
transition: 'fill 300ms ease-out, letter-spacing 200ms ease-out',
|
|
9688
|
+
transition: 'fill 300ms ease-out, letter-spacing 200ms ease-out, filter 200ms ease-out',
|
|
8031
9689
|
letterSpacing:
|
|
8032
9690
|
chatAlias === session.alias ? '0.5px' :
|
|
8033
9691
|
hoveredAlias === session.alias ? '0.3px' : '0px',
|
|
9692
|
+
/* Round 564 / Loop — alias text filter stacks
|
|
9693
|
+
brightness(1.15) on top of R500's drop-shadow
|
|
9694
|
+
on hover. Mirrors R542 pressure-seg pattern
|
|
9695
|
+
(brightness + drop-shadow in one stacked
|
|
9696
|
+
filter declaration). Pre-R564 hover added
|
|
9697
|
+
only a drop-shadow halo around the glyph;
|
|
9698
|
+
post-R564 the glyph ALSO brightens, so the
|
|
9699
|
+
identity text reads as both "glowing" AND
|
|
9700
|
+
"lit up" under attention — dual paint axes
|
|
9701
|
+
through one filter chain.
|
|
9702
|
+
CSS filter supports multiple functions
|
|
9703
|
+
applied left-to-right. brightness(1.15)
|
|
9704
|
+
lifts the per-status text color (status.text:
|
|
9705
|
+
green/teal/slate per tier) by 15%; the drop-
|
|
9706
|
+
shadow then paints the outer halo in the
|
|
9707
|
+
status-tier hue. Together: the alias glyph
|
|
9708
|
+
both intensifies its identity color AND
|
|
9709
|
+
radiates outward in that same color.
|
|
9710
|
+
Same +15% brightness as R501 vendor logo
|
|
9711
|
+
avatar (banked per-node hover-brightness
|
|
9712
|
+
pattern). Consistent +15% across all per-
|
|
9713
|
+
node identity surfaces (logo, monogram,
|
|
9714
|
+
fallback avatar from R558, AND now alias
|
|
9715
|
+
text). Cross-element brightness consistency.
|
|
9716
|
+
data-node-alias-brightness attr surfaces
|
|
9717
|
+
the lift for tests. */
|
|
9718
|
+
filter: !reducedMotion && hoveredAlias === session.alias
|
|
9719
|
+
? `drop-shadow(0 0 2px ${status.text}80) brightness(1.15)`
|
|
9720
|
+
: undefined,
|
|
8034
9721
|
}}
|
|
9722
|
+
data-node-alias-brightness={!reducedMotion && hoveredAlias === session.alias ? '1.15' : '1'}
|
|
8035
9723
|
>
|
|
8036
9724
|
{truncate(session.alias, fullMax)}
|
|
8037
9725
|
</text>
|
|
@@ -8071,6 +9759,31 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
8071
9759
|
alias > status hierarchy holds at the type
|
|
8072
9760
|
level. data-node-sub-text-font-weight attr
|
|
8073
9761
|
exposes the value for tests. */}
|
|
9762
|
+
{/* Round 567 / Loop — node sub-text joins the per-
|
|
9763
|
+
node hover-brightness consistency family. Pre-
|
|
9764
|
+
R567 sub-text had only fill brighten (R211) +
|
|
9765
|
+
ls 0→0.2 (R428); the alias text above lifted
|
|
9766
|
+
via R500 drop-shadow + R564 brightness(1.15)
|
|
9767
|
+
stacked. R567 adds brightness(1.15) to sub-
|
|
9768
|
+
text on the same isNodeActive gate so it
|
|
9769
|
+
chromatically lifts together with the alias.
|
|
9770
|
+
Per-node hover-brightness consistency family
|
|
9771
|
+
— 6 anchors at uniform +15%:
|
|
9772
|
+
R501 vendor.logo image filter on <image>
|
|
9773
|
+
R558 vendor monogram filter on <g>
|
|
9774
|
+
R558 prefix-group fallback filter on <g>
|
|
9775
|
+
R564 alias text (stacked w/ DS) brightness(1.15)
|
|
9776
|
+
R567 node sub-text brightness(1.15) ← this round
|
|
9777
|
+
(+ R559 runtime badge drop-shadow tier-color glow)
|
|
9778
|
+
Now every per-node identity surface (3 avatar
|
|
9779
|
+
variants + alias + sub-text + badge) lifts
|
|
9780
|
+
together on node hover with consistent visual
|
|
9781
|
+
response.
|
|
9782
|
+
Pure paint axis; bbox unchanged. transition
|
|
9783
|
+
list extends to include 'filter 200ms ease-
|
|
9784
|
+
out' matching R428 ls cadence at this scope.
|
|
9785
|
+
data-node-sub-text-brightness attr exposes
|
|
9786
|
+
the lift for tests. */}
|
|
8074
9787
|
<text
|
|
8075
9788
|
x="0" y={subY} textAnchor="middle"
|
|
8076
9789
|
fill={status.primary}
|
|
@@ -8079,9 +9792,13 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
8079
9792
|
data-node-sub-text={session.alias}
|
|
8080
9793
|
data-node-sub-text-hovered={hoveredAlias === session.alias ? 'true' : 'false'}
|
|
8081
9794
|
data-node-sub-text-font-weight="500"
|
|
9795
|
+
data-node-sub-text-brightness={!reducedMotion && hoveredAlias === session.alias ? '1.15' : '1'}
|
|
8082
9796
|
style={{
|
|
8083
|
-
transition: 'fill 300ms ease-out, letter-spacing 200ms ease-out',
|
|
9797
|
+
transition: 'fill 300ms ease-out, letter-spacing 200ms ease-out, filter 200ms ease-out',
|
|
8084
9798
|
letterSpacing: hoveredAlias === session.alias ? '0.2px' : '0px',
|
|
9799
|
+
filter: !reducedMotion && hoveredAlias === session.alias
|
|
9800
|
+
? 'brightness(1.15)'
|
|
9801
|
+
: undefined,
|
|
8085
9802
|
}}
|
|
8086
9803
|
>
|
|
8087
9804
|
{status.label}{isOnline && sseCountFor != null ? ` sse:${sseCountFor}` : ''}
|
|
@@ -8558,7 +10275,55 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
8558
10275
|
200ms ease-out' alongside R345's ls + R55's fill
|
|
8559
10276
|
200ms. data-recent-panel-title-fw exposes the
|
|
8560
10277
|
resolved weight for tests. */}
|
|
8561
|
-
|
|
10278
|
+
{/* Round 550 / Loop — drop-shadow visual-polish family
|
|
10279
|
+
extends to a 14th anchor: the recent-panel header
|
|
10280
|
+
title gains a soft pal.legendAccent glow when the
|
|
10281
|
+
panel has an active row (activeEdgeKey). Pre-R550
|
|
10282
|
+
the title's state-flip on active was 2-axis (R482
|
|
10283
|
+
fw 700→800 + R345 ls 0.3→0.4 when panel-hovered);
|
|
10284
|
+
R550 adds the paint axis so the title brightens
|
|
10285
|
+
paint-wise alongside the typographic tightening when
|
|
10286
|
+
a row inside its panel is locked.
|
|
10287
|
+
|
|
10288
|
+
Hue: pal.legendAccent + hex alpha '80' (~50%) — same
|
|
10289
|
+
strength as R479 group-label pin-glow at the parent
|
|
10290
|
+
panel-title scope. 2px blur reads soft; cyan accent
|
|
10291
|
+
ties the title visually to the active row's pin
|
|
10292
|
+
colour (cyber: cyan-300 / light: teal-600). Hex+alpha
|
|
10293
|
+
concat safe — pal.legendAccent is '#67e8f9' (cyber)
|
|
10294
|
+
or '#0d9488' (light), both 6-digit hex (banked R541:
|
|
10295
|
+
hex sources use hex+alpha; only hsl/color()/dynamic
|
|
10296
|
+
sources need color-mix).
|
|
10297
|
+
|
|
10298
|
+
Drop-shadow visual-polish family extension (14
|
|
10299
|
+
anchors now):
|
|
10300
|
+
R476 hub digit hover-gated emerald
|
|
10301
|
+
R477 legend pin-ring pin-gated row.fill
|
|
10302
|
+
R478 recent-row pip freshness cyan
|
|
10303
|
+
R479 group-label text pin-gated cyan
|
|
10304
|
+
R532-R536 hub-cluster glow QUINTET
|
|
10305
|
+
R537 legend swatch hover/pin row.fill
|
|
10306
|
+
R538 group-label hover-precedence
|
|
10307
|
+
R540 edge-badge text pin-gated cyan
|
|
10308
|
+
R543-R546 pin-active pill 4-variant arc
|
|
10309
|
+
R550 recent-panel title pin-gated cyan ← this round
|
|
10310
|
+
R550 legend-panel title pin-gated cyan ← sibling (next text below)
|
|
10311
|
+
|
|
10312
|
+
filter is paint-only; bbox unchanged; overlap-test
|
|
10313
|
+
invariants hold. transition list extends to include
|
|
10314
|
+
'filter 200ms ease-out' alongside R345 ls + R482 fw
|
|
10315
|
+
+ R55 fill 200ms — one motion-coherent 3-axis active-
|
|
10316
|
+
state lift.
|
|
10317
|
+
data-recent-panel-title-glow attr exposes the gate
|
|
10318
|
+
state for tests. */}
|
|
10319
|
+
{/* Round 573 / Loop — recent panel-title joins per-element
|
|
10320
|
+
brightness family at 11th anchor. Stacks brightness(1.15)
|
|
10321
|
+
onto R550's active-gated drop-shadow. Mirrors R572
|
|
10322
|
+
panel-row text pattern at the panel-TITLE tier — both
|
|
10323
|
+
panels now have brightness in their active signature
|
|
10324
|
+
at BOTH chrome tiers (title + row text), completing
|
|
10325
|
+
the panel paint-axis cascade. */}
|
|
10326
|
+
<text x="13" y="21" fill={pal.legendHeadline} fontSize="12" fontFamily="monospace" fontWeight={activeEdgeKey ? '800' : '700'} letterSpacing={hoveredPanel === 'recent' ? '0.4' : '0.3'} style={{ transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out, filter 200ms ease-out', filter: activeEdgeKey ? `drop-shadow(0 0 2px ${pal.legendAccent}80) brightness(1.15)` : undefined }} data-recent-panel-title data-recent-panel-title-fw={activeEdgeKey ? '800' : '700'} data-recent-panel-title-active={activeEdgeKey ? 'true' : 'false'} data-recent-panel-title-glow={activeEdgeKey ? 'true' : 'false'} data-recent-panel-title-brightness={activeEdgeKey ? '1.15' : '1'}>recent signal</text>
|
|
8562
10327
|
{/* R96: header count now matches what the rows show. Pre-R96
|
|
8563
10328
|
this read "X msgs" off the raw messages array, but the
|
|
8564
10329
|
rows below render DEDUPED flowLinks — so a fleet with 10
|
|
@@ -8633,21 +10398,19 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
8633
10398
|
textAnchor="end"
|
|
8634
10399
|
fontSize="10"
|
|
8635
10400
|
fontFamily="monospace"
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
letterSpacing="0.2"
|
|
8650
|
-
data-recent-panel-count-letter-spacing="0.2"
|
|
10401
|
+
/* Round 566 / Loop — recent-panel-count gains hover-
|
|
10402
|
+
state letter-spacing tween (0.2 → 0.4 on hovered-
|
|
10403
|
+
Panel === 'recent'). Pairs with R424 fw 600→700
|
|
10404
|
+
on the same gate. Count now has 2-axis hover
|
|
10405
|
+
signature (fw + ls), matching the panel title's
|
|
10406
|
+
R345 ls + R482 fw lift pattern at the panel-
|
|
10407
|
+
header data-tspan scope. R349 editorial 0.2
|
|
10408
|
+
baseline preserved at rest — only hover lifts.
|
|
10409
|
+
Sibling treatment on the legend-panel count
|
|
10410
|
+
below closes the panel-pair symmetry. */
|
|
10411
|
+
letterSpacing={hoveredPanel === 'recent' ? '0.4' : '0.2'}
|
|
10412
|
+
data-recent-panel-count-letter-spacing={hoveredPanel === 'recent' ? '0.4' : '0.2'}
|
|
10413
|
+
style={{ transition: 'letter-spacing 200ms ease-out' }}
|
|
8651
10414
|
>
|
|
8652
10415
|
{/* Round 225 / Loop: tabular-nums on the panel-header
|
|
8653
10416
|
flow-count tspan. The "{N} flows" string lives in
|
|
@@ -9302,11 +11065,46 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9302
11065
|
tier without disturbing the surrounding family
|
|
9303
11066
|
baseline. data-recent-row-text-font-weight attr
|
|
9304
11067
|
exposes the value for tests. */
|
|
9305
|
-
|
|
11068
|
+
/* Round 530 / Loop — extends hover-fw family
|
|
11069
|
+
(R416/R420/R425/R520/R521/R522, 6 anchors) to
|
|
11070
|
+
a 7th anchor: recent-row alias text gains
|
|
11071
|
+
fontWeight 500 → 600 on (isRowHovered ||
|
|
11072
|
+
isRowPinned). Pre-R530 R363 set fw=500
|
|
11073
|
+
statically; hover/pin lifted other axes
|
|
11074
|
+
(R55 fill brighten / R434 letter-spacing
|
|
11075
|
+
3-tier / R143 translateY / R104 row bg-
|
|
11076
|
+
tint / R474 cadence) but the fw stayed
|
|
11077
|
+
flat — same asymmetry R520 closed at the
|
|
11078
|
+
+N more footer.
|
|
11079
|
+
R530 mirrors R520's pattern at the row-
|
|
11080
|
+
text scope. Hover OR pin (isRowActive
|
|
11081
|
+
union) lifts fw to 600, matching the count
|
|
11082
|
+
tspan's cold-state tier (R320 fw=600), so
|
|
11083
|
+
on active state the alias label reads at
|
|
11084
|
+
the same data tier as the count it sits
|
|
11085
|
+
next to. Inner count tspan has its own
|
|
11086
|
+
explicit fontWeight (600 or 700 per R320/
|
|
11087
|
+
R445) so parent fw lift doesn't bleed
|
|
11088
|
+
(inheritance overridden).
|
|
11089
|
+
Hover-fw family extension (7 anchors):
|
|
11090
|
+
R416 chip-row count digit
|
|
11091
|
+
R420 chrome zoom-level
|
|
11092
|
+
R425 hub-center digit
|
|
11093
|
+
R520 +N more flows footer
|
|
11094
|
+
R521 chrome nodeSize S/M/L inactive
|
|
11095
|
+
R522 chrome layout Ring/Grid inactive
|
|
11096
|
+
R530 recent-row alias text ← this round
|
|
11097
|
+
transition list extends to include
|
|
11098
|
+
'font-weight 200ms ease-out', matching the
|
|
11099
|
+
R474 cadence of the existing fill +
|
|
11100
|
+
letter-spacing axes on this element.
|
|
11101
|
+
data-recent-row-text-font-weight attr
|
|
11102
|
+
flips '500' → '600' on isRowActive. */
|
|
11103
|
+
fontWeight={(isRowHovered || isRowPinned) ? '600' : '500'}
|
|
9306
11104
|
data-recent-row-text={link.key}
|
|
9307
11105
|
data-recent-row-text-pinned={isRowPinned ? 'true' : 'false'}
|
|
9308
11106
|
data-recent-row-text-hovered={!isRowPinned && isRowHovered ? 'true' : 'false'}
|
|
9309
|
-
data-recent-row-text-font-weight=
|
|
11107
|
+
data-recent-row-text-font-weight={(isRowHovered || isRowPinned) ? '600' : '500'}
|
|
9310
11108
|
/* Round 434 / Loop: recent-signal row text extends
|
|
9311
11109
|
from R220's pin-only letter-spacing (0 → 0.5 on
|
|
9312
11110
|
isRowPinned) to a 3-tier scale matching R433
|
|
@@ -9355,11 +11153,49 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9355
11153
|
spacing values unchanged; R363 fw + R55 fill
|
|
9356
11154
|
brighten unchanged — only the timing axis
|
|
9357
11155
|
shifts. */
|
|
11156
|
+
/* Round 568 / Loop — extends the drop-shadow visual-
|
|
11157
|
+
polish family (16 anchors after R559) to a 17th
|
|
11158
|
+
anchor at the recent-row text scope. Adds a soft
|
|
11159
|
+
pal.legendAccent glow on isRowHovered || isRow-
|
|
11160
|
+
Pinned, completing the row's hover/pin signature
|
|
11161
|
+
at 4 paint+typography axes:
|
|
11162
|
+
R55 fill brighten (fill)
|
|
11163
|
+
R434 letter-spacing 3-tier (typography kerning)
|
|
11164
|
+
R530 fontWeight 500 → 600 (typography weight)
|
|
11165
|
+
R568 drop-shadow glow (paint glow) ← this round
|
|
11166
|
+
Mirror of R550 panel-title pin-gated glow pattern,
|
|
11167
|
+
applied at the panel-ROW tier rather than panel-
|
|
11168
|
+
TITLE tier. Hue: pal.legendAccent + hex alpha 80
|
|
11169
|
+
(~50%) — same strength as R479 group-label /
|
|
11170
|
+
R550 panel-title glows for cross-element
|
|
11171
|
+
consistency. 2px blur (smaller than R478 pip's
|
|
11172
|
+
3px since text is fontSize 9 and a heavier blur
|
|
11173
|
+
would bleed into adjacent row text); blur 2px
|
|
11174
|
+
keeps the glow tight to the row's text glyphs.
|
|
11175
|
+
transition list extends to include 'filter
|
|
11176
|
+
200ms ease-out' matching the R474 200ms cadence
|
|
11177
|
+
of the existing 3 axes.
|
|
11178
|
+
data-recent-row-text-glow attr surfaces the
|
|
11179
|
+
gate for tests. */
|
|
9358
11180
|
data-recent-row-text-transition="200ms"
|
|
11181
|
+
data-recent-row-text-glow={(isRowHovered || isRowPinned) ? 'true' : 'false'}
|
|
11182
|
+
/* Round 572 / Loop — per-element brightness family
|
|
11183
|
+
9th anchor at recent-row text scope. Stacks
|
|
11184
|
+
brightness(1.15) onto R568's drop-shadow in
|
|
11185
|
+
one filter chain (same R564/R570/R571 pattern).
|
|
11186
|
+
Glyph BOTH glows (R568 drop-shadow halo) AND
|
|
11187
|
+
brightens (R572 inner lift) simultaneously.
|
|
11188
|
+
Cross-element brightness consistency: same +15%
|
|
11189
|
+
across alias / sub-text / edge-badge / group-
|
|
11190
|
+
label / and now recent-row text. */
|
|
11191
|
+
data-recent-row-text-brightness={(isRowHovered || isRowPinned) ? '1.15' : '1'}
|
|
9359
11192
|
style={{
|
|
9360
|
-
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out',
|
|
11193
|
+
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out, filter 200ms ease-out',
|
|
9361
11194
|
letterSpacing: isRowPinned ? '0.5px' :
|
|
9362
11195
|
isRowHovered ? '0.25px' : '0px',
|
|
11196
|
+
filter: (isRowHovered || isRowPinned)
|
|
11197
|
+
? `drop-shadow(0 0 2px ${pal.legendAccent}80) brightness(1.15)`
|
|
11198
|
+
: undefined,
|
|
9363
11199
|
}}
|
|
9364
11200
|
>
|
|
9365
11201
|
{/* R138 / Loop: typography unification with the rest
|
|
@@ -9440,12 +11276,30 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9440
11276
|
under the same R320 fill cadence. data-
|
|
9441
11277
|
recent-row-count-pinned attr exposes the
|
|
9442
11278
|
pin gate for tests. */}
|
|
11279
|
+
{/* Round 498 / Loop — hot-count subtle pulse. Pre-
|
|
11280
|
+
R498 the hot row count signaled via color (R127
|
|
11281
|
+
amber fill) + weight (R320 fw-700) + (R445 pin
|
|
11282
|
+
lift) but stayed visually motionless. R498 adds
|
|
11283
|
+
a 3s opacity breath (0.85↔1.0) on the digit when
|
|
11284
|
+
isHot && !reducedMotion — gentle "alive" signal
|
|
11285
|
+
on the lane carrying ≥ 10 messages, drawing
|
|
11286
|
+
glance without becoming noisy. Sibling of R497
|
|
11287
|
+
hub-idle-breath in the 呼吸感 theme arc; same
|
|
11288
|
+
0.85↔1.0 amplitude. Class adds an animation-
|
|
11289
|
+
only paint axis; no layout / bbox change. R29
|
|
11290
|
+
blanket also catches `animation-duration` for
|
|
11291
|
+
reducedMotion users, but the component-side
|
|
11292
|
+
gate makes the intent explicit and avoids
|
|
11293
|
+
a node tree thrash for those users (className
|
|
11294
|
+
stays absent rather than present-but-paused). */}
|
|
9443
11295
|
<tspan
|
|
9444
11296
|
fill={isHot ? hotStroke : undefined}
|
|
9445
11297
|
fontWeight={(isHot || isRowPinned) ? '700' : '600'}
|
|
11298
|
+
className={isHot && !reducedMotion ? 'anet-recent-hot-pulse' : undefined}
|
|
9446
11299
|
data-recent-row-count
|
|
9447
11300
|
data-recent-row-count-pinned={isRowPinned ? 'true' : 'false'}
|
|
9448
11301
|
data-recent-row-count-font-weight={(isHot || isRowPinned) ? '700' : '600'}
|
|
11302
|
+
data-recent-row-count-hot-pulse={isHot && !reducedMotion ? 'true' : 'false'}
|
|
9449
11303
|
{...(isHot ? { 'data-recent-row-count-hot': 'true' } : {})}
|
|
9450
11304
|
style={{
|
|
9451
11305
|
transition: 'fill 300ms ease-out, font-weight 200ms ease-out',
|
|
@@ -9689,6 +11543,39 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9689
11543
|
stays as is, so the rest-vs-hover delta still
|
|
9690
11544
|
reads clearly. data-recent-panel-more-font-weight
|
|
9691
11545
|
attr exposes the value for tests. */}
|
|
11546
|
+
{/* Round 520 / Loop — extends the `+N more flows` footer
|
|
11547
|
+
to a 5-axis hover signature by adding fontWeight
|
|
11548
|
+
500 → 600 on hover. Pre-R520 the footer carried 4
|
|
11549
|
+
hover axes:
|
|
11550
|
+
R195 fill legendText → legendAccent
|
|
11551
|
+
R325 letter-spacing 0.2 → 0.3px (R344 tween)
|
|
11552
|
+
R325 opacity 0.55 → 0.85
|
|
11553
|
+
R133 underline none → underline
|
|
11554
|
+
R368 had set fontWeight 500 statically as a sibling
|
|
11555
|
+
to R363/R364/R366 small-text fw lift family — but
|
|
11556
|
+
the footer's hover state didn't carry a fontWeight
|
|
11557
|
+
DELTA the way other interactive surfaces do (chip-
|
|
11558
|
+
row counts R416, chrome zoom-level R420, hub digit
|
|
11559
|
+
R425). R520 adds the missing weight axis: fw 500
|
|
11560
|
+
→ 600 on hover, so the footer reads "thickening AND
|
|
11561
|
+
lighting up" under cursor — same idiom as the
|
|
11562
|
+
chrome zoom-level R420 / chip-row digit R416 hover-
|
|
11563
|
+
bold pattern, applied at the panel nav-action
|
|
11564
|
+
surface.
|
|
11565
|
+
data-recent-panel-more-font-weight attr value
|
|
11566
|
+
flips from '500' → '600' on hover (was static
|
|
11567
|
+
'500' pre-R520).
|
|
11568
|
+
Bonus closure — R475 panel-text cadence: pre-R520
|
|
11569
|
+
the footer's transition list had `opacity 150ms`
|
|
11570
|
+
while R475 unified panel-text transitions at
|
|
11571
|
+
200ms. R518 closed the same gap at legend-count.
|
|
11572
|
+
R520 closes the LAST panel-text 150ms holdout
|
|
11573
|
+
here AND adds the new font-weight 200ms axis. All
|
|
11574
|
+
4 transition properties (opacity / fill / letter-
|
|
11575
|
+
spacing / font-weight) now uniform 200ms at the
|
|
11576
|
+
footer — same cadence as legend-label / legend-
|
|
11577
|
+
count / recent-row alias / recent-row count /
|
|
11578
|
+
group-label. */}
|
|
9692
11579
|
<text
|
|
9693
11580
|
x="115" y="82"
|
|
9694
11581
|
textAnchor="middle"
|
|
@@ -9696,14 +11583,15 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9696
11583
|
fontSize="9"
|
|
9697
11584
|
fontFamily="monospace"
|
|
9698
11585
|
fontStyle="italic"
|
|
9699
|
-
fontWeight=
|
|
11586
|
+
fontWeight={hoveredRecentMore ? '600' : '500'}
|
|
9700
11587
|
letterSpacing={hoveredRecentMore ? '0.3' : '0.2'}
|
|
9701
11588
|
opacity={hoveredRecentMore ? 0.85 : 0.55}
|
|
9702
11589
|
textDecoration={hoveredRecentMore ? 'underline' : 'none'}
|
|
9703
11590
|
data-recent-panel-more={moreCount}
|
|
9704
11591
|
data-recent-panel-more-hovered={hoveredRecentMore ? 'true' : 'false'}
|
|
9705
|
-
data-recent-panel-more-font-weight=
|
|
9706
|
-
|
|
11592
|
+
data-recent-panel-more-font-weight={hoveredRecentMore ? '600' : '500'}
|
|
11593
|
+
data-recent-panel-more-transition="200ms"
|
|
11594
|
+
style={{ transition: 'opacity 200ms ease-out, fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out' }}
|
|
9707
11595
|
>
|
|
9708
11596
|
{`+ ${moreCount}`}
|
|
9709
11597
|
<tspan opacity="0.7" data-recent-panel-more-unit>{` more flow${moreCount === 1 ? '' : 's'}`}</tspan>
|
|
@@ -9810,7 +11698,20 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9810
11698
|
data-legend-panel-title-fw + -active exposed for tests. */}
|
|
9811
11699
|
{/* R345 sibling — legend panel title same hover letter-
|
|
9812
11700
|
spacing tween 0.3 → 0.4 on panel hover. */}
|
|
9813
|
-
|
|
11701
|
+
{/* Round 550 sibling — legend-panel header title mirrors
|
|
11702
|
+
the recent-panel title above: drop-shadow glow on
|
|
11703
|
+
pin-gated active state (pinnedStatus). Same hue
|
|
11704
|
+
(pal.legendAccent + hex alpha 80), same 2px blur,
|
|
11705
|
+
same 200ms ease-out cadence. Family lifts to 15
|
|
11706
|
+
anchors with this sibling (counted as R550-sibling
|
|
11707
|
+
for accounting parity with R532-R536 hub-cluster
|
|
11708
|
+
glow quintet pattern — two co-shipping anchors
|
|
11709
|
+
under a single round number).
|
|
11710
|
+
data-legend-panel-title-glow attr added. */}
|
|
11711
|
+
{/* Round 573 sibling — legend panel-title 12th anchor.
|
|
11712
|
+
Same stacked filter pattern at the legend-panel-title
|
|
11713
|
+
scope. Both panel titles now lift in lockstep. */}
|
|
11714
|
+
<text x="13" y="21" fill={pal.legendHeadline} fontSize="12" fontFamily="monospace" fontWeight={pinnedStatus ? '800' : '700'} letterSpacing={hoveredPanel === 'legend' ? '0.4' : '0.3'} style={{ transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out, filter 200ms ease-out', filter: pinnedStatus ? `drop-shadow(0 0 2px ${pal.legendAccent}80) brightness(1.15)` : undefined }} data-legend-panel-title data-legend-panel-title-fw={pinnedStatus ? '800' : '700'} data-legend-panel-title-active={pinnedStatus ? 'true' : 'false'} data-legend-panel-title-glow={pinnedStatus ? 'true' : 'false'} data-legend-panel-title-brightness={pinnedStatus ? '1.15' : '1'}>legend</text>
|
|
9814
11715
|
{/* Round 257 / Loop: legend panel header count picks up the
|
|
9815
11716
|
symmetric 13L/13R inner-padding pattern from the recent-
|
|
9816
11717
|
signal panel. Pre-R257 the legend header was 13px from
|
|
@@ -9887,11 +11788,19 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9887
11788
|
// title 0.3. Pairs with the recent-signal panel count
|
|
9888
11789
|
// letter-spacing above so the two corner panels' header
|
|
9889
11790
|
// typography stays editorially symmetric.
|
|
9890
|
-
|
|
11791
|
+
/* Round 566 / Loop — legend panel-count gains hover-state
|
|
11792
|
+
letter-spacing tween (0.2 → 0.4 on hoveredPanel ===
|
|
11793
|
+
'legend'). Pairs with existing R310 fw 600→700 on the
|
|
11794
|
+
same gate — count now has 2-axis hover signature (fw
|
|
11795
|
+
+ ls), matching the panel title's R345 ls + R482 fw
|
|
11796
|
+
lift pattern at the panel-header data-tspan scope.
|
|
11797
|
+
Hover-letter-spacing family extension (R566 = 2 sibling
|
|
11798
|
+
anchors at recent + legend panel-count). */
|
|
11799
|
+
letterSpacing={hoveredPanel === 'legend' ? '0.4' : '0.2'}
|
|
9891
11800
|
data-legend-panel-count
|
|
9892
|
-
data-legend-panel-count-letter-spacing=
|
|
11801
|
+
data-legend-panel-count-letter-spacing={hoveredPanel === 'legend' ? '0.4' : '0.2'}
|
|
9893
11802
|
style={{
|
|
9894
|
-
transition: 'fill 200ms ease-out, font-weight 200ms ease-out',
|
|
11803
|
+
transition: 'fill 200ms ease-out, font-weight 200ms ease-out, letter-spacing 200ms ease-out',
|
|
9895
11804
|
fontVariantNumeric: 'tabular-nums',
|
|
9896
11805
|
}}
|
|
9897
11806
|
>{sessions.length}<tspan opacity="0.7" data-legend-panel-count-unit> node{sessions.length === 1 ? '' : 's'}</tspan></text>
|
|
@@ -9968,6 +11877,34 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9968
11877
|
const isPinned = pinnedStatus === row.key;
|
|
9969
11878
|
const isRowHovered = hoveredStatus === row.key;
|
|
9970
11879
|
const isLifted = isRowHovered || isPinned;
|
|
11880
|
+
/* Round 562 / Loop — inspection-overrides-encoding family
|
|
11881
|
+
5th anchor at the legend-swatch scope. When operator
|
|
11882
|
+
hovers a NODE ALIAS on the canvas, the legend swatch
|
|
11883
|
+
that matches that node's status tier lifts r + drop-
|
|
11884
|
+
shadow (R197 + R537 axes) — telegraphing "your
|
|
11885
|
+
inspected node is in this status group".
|
|
11886
|
+
Mirror of R486 minimap-dot inspection-override at the
|
|
11887
|
+
legend-swatch scope.
|
|
11888
|
+
Family progression (5 anchors):
|
|
11889
|
+
R484 recent-row timestamp on alias hover
|
|
11890
|
+
R485 edge particle opacity on alias hover
|
|
11891
|
+
R486 minimap dot opacity to 1.0 on alias hover
|
|
11892
|
+
R561 group-label opacity-1 + ants-gate refinement
|
|
11893
|
+
R562 legend-swatch r+glow on member-alias-matching ← this round
|
|
11894
|
+
Restraint: ONLY swatch lifts, NOT label/fill/ls/fw
|
|
11895
|
+
axes. Direct row-hover gets full treatment; inspection
|
|
11896
|
+
signal gets swatch-only lift — distinct "lighter"
|
|
11897
|
+
visual register matching R561's ants-gate approach
|
|
11898
|
+
(indirect inspection ≠ direct attention). */
|
|
11899
|
+
const hoveredSession = hoveredAlias
|
|
11900
|
+
? (onlineNodes.find(s => s.alias === hoveredAlias) ?? offlineNodes.find(s => s.alias === hoveredAlias))
|
|
11901
|
+
: null;
|
|
11902
|
+
const hoveredAliasRowKey: 'working' | 'idle' | 'offline' | null = !hoveredSession ? null
|
|
11903
|
+
: hoveredSession.status === 'working' ? 'working'
|
|
11904
|
+
: offlineNodes.includes(hoveredSession) ? 'offline'
|
|
11905
|
+
: 'idle';
|
|
11906
|
+
const isMemberAliasMatching = hoveredAliasRowKey === row.key;
|
|
11907
|
+
const isSwatchLifted = isLifted || isMemberAliasMatching;
|
|
9971
11908
|
return (
|
|
9972
11909
|
<g
|
|
9973
11910
|
key={row.key}
|
|
@@ -10099,15 +12036,48 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10099
12036
|
R181 pin ring (6 + 0 stroke vs 8 - 0.75 inner
|
|
10100
12037
|
≈ 7.25). data-legend-swatch is unchanged so
|
|
10101
12038
|
R197 / R55 / R61 tests probe the same handle. */}
|
|
12039
|
+
{/* Round 537 / Loop — extends drop-shadow visual-polish
|
|
12040
|
+
family (12 anchors after R536) to a 13th anchor: the
|
|
12041
|
+
legend swatch gains drop-shadow glow on hover/pin
|
|
12042
|
+
using its OWN row fill color (working green / idle
|
|
12043
|
+
teal / offline slate). Pre-R537 the swatch lifted
|
|
12044
|
+
only r (R197/R295 6 → 7) on attention — geometry
|
|
12045
|
+
axis only, no paint glow. R537 adds the paint axis,
|
|
12046
|
+
composing with R181/R402 pin-ring (separate concen-
|
|
12047
|
+
tric circle in the same row.fill color) so on
|
|
12048
|
+
hover/pin the SWATCH AND its pin-ring both contri-
|
|
12049
|
+
bute to a unified tier-coloured glow signature.
|
|
12050
|
+
Hue: row.fill (status hex) concatenated with `99`
|
|
12051
|
+
hex alpha (~60%). Working green / idle teal /
|
|
12052
|
+
offline slate each glow in their OWN tier color
|
|
12053
|
+
— the legend acts as a color-keyed status mirror.
|
|
12054
|
+
3px blur reads soft; 60% alpha legible without
|
|
12055
|
+
overwhelming the swatch's own paint.
|
|
12056
|
+
Drop-shadow visual-polish family extension (13
|
|
12057
|
+
anchors). filter is paint-only; bbox unchanged.
|
|
12058
|
+
transition list extends to include 'filter 150ms
|
|
12059
|
+
ease-out', matching the existing R197 r 150ms
|
|
12060
|
+
cadence at this swatch. data-legend-swatch-glow
|
|
12061
|
+
attr exposes the gate state for tests. */}
|
|
10102
12062
|
<circle
|
|
10103
12063
|
cx="16" cy={row.y0}
|
|
10104
12064
|
r="6"
|
|
10105
12065
|
fill={row.fill}
|
|
10106
12066
|
data-legend-swatch={row.key}
|
|
10107
|
-
data-legend-swatch-state={isPinned ? 'pinned' : isRowHovered ? 'hover' : 'idle'}
|
|
12067
|
+
data-legend-swatch-state={isPinned ? 'pinned' : isRowHovered ? 'hover' : isMemberAliasMatching ? 'member-alias-matching' : 'idle'}
|
|
12068
|
+
data-legend-swatch-glow={isSwatchLifted ? 'true' : 'false'}
|
|
12069
|
+
data-legend-swatch-member-alias-matching={isMemberAliasMatching ? 'true' : 'false'}
|
|
10108
12070
|
style={{
|
|
10109
|
-
|
|
10110
|
-
|
|
12071
|
+
/* R562: swatch lifts on direct row hover, pin, OR
|
|
12072
|
+
member-alias-matching (operator inspecting a node
|
|
12073
|
+
whose status matches this row's tier). Pure paint
|
|
12074
|
+
+ geometry axes — label/fill/ls/fw stay tied to
|
|
12075
|
+
direct row-hover semantics. */
|
|
12076
|
+
r: isSwatchLifted ? '7px' : '6px',
|
|
12077
|
+
filter: isSwatchLifted
|
|
12078
|
+
? `drop-shadow(0 0 3px ${row.fill}99)`
|
|
12079
|
+
: undefined,
|
|
12080
|
+
transition: 'r 150ms ease-out, filter 150ms ease-out',
|
|
10111
12081
|
} as React.CSSProperties}
|
|
10112
12082
|
/>
|
|
10113
12083
|
{/* R61 pinned-state ring — concentric stroke at r=8 in
|
|
@@ -10239,11 +12209,42 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10239
12209
|
the value for tests. R219 letter-spacing pin
|
|
10240
12210
|
tween + R55 fill transition + R181 always-mount
|
|
10241
12211
|
pin ring all preserved. */
|
|
10242
|
-
|
|
12212
|
+
/* Round 531 / Loop — extends hover-fw family (R416/
|
|
12213
|
+
R420/R425/R520/R521/R522/R530, 7 anchors) to an
|
|
12214
|
+
8th anchor at the legend-row label. Pre-R531
|
|
12215
|
+
R364 set fw=500 statically; hover/pin lifted
|
|
12216
|
+
other axes (R55 fill brighten / R433 letter-
|
|
12217
|
+
spacing 3-tier / R181 pin ring) but the fw
|
|
12218
|
+
stayed flat. R531 mirrors R530's recent-row
|
|
12219
|
+
alias pattern at the legend-row label scope.
|
|
12220
|
+
Hover OR pin (hoveredStatus===row.key ||
|
|
12221
|
+
isPinned) lifts fw to 600, matching the
|
|
12222
|
+
legend-row count tier (R309 fw=600 / R446
|
|
12223
|
+
pin lift 600→700). Active label now reads at
|
|
12224
|
+
the count's data tier — sibling treatment to
|
|
12225
|
+
R530 recent-row.
|
|
12226
|
+
Hover-fw family extension (8 anchors):
|
|
12227
|
+
R416 chip-row count digit
|
|
12228
|
+
R420 chrome zoom-level
|
|
12229
|
+
R425 hub-center digit
|
|
12230
|
+
R520 +N more flows footer
|
|
12231
|
+
R521 chrome nodeSize S/M/L inactive
|
|
12232
|
+
R522 chrome layout Ring/Grid inactive
|
|
12233
|
+
R530 recent-row alias text
|
|
12234
|
+
R531 legend-row label ← this round
|
|
12235
|
+
Two panel-row label surfaces (R530 recent-
|
|
12236
|
+
row alias + R531 legend-row label) now have
|
|
12237
|
+
parallel hover-fw signatures. R475 cadence
|
|
12238
|
+
at 200ms already covers font-weight via the
|
|
12239
|
+
existing transition list extension at this
|
|
12240
|
+
element. data-legend-row-label-font-weight
|
|
12241
|
+
attr flips '500' → '600' on isActive (was
|
|
12242
|
+
static '500' pre-R531). */
|
|
12243
|
+
fontWeight={(hoveredStatus === row.key || isPinned) ? '600' : '500'}
|
|
10243
12244
|
data-legend-row-label={row.key}
|
|
10244
12245
|
data-legend-row-label-pinned={isPinned ? 'true' : 'false'}
|
|
10245
12246
|
data-legend-row-label-hovered={!isPinned && hoveredStatus === row.key ? 'true' : 'false'}
|
|
10246
|
-
data-legend-row-label-font-weight=
|
|
12247
|
+
data-legend-row-label-font-weight={(hoveredStatus === row.key || isPinned) ? '600' : '500'}
|
|
10247
12248
|
/* Round 433 / Loop: legend-row text extends from
|
|
10248
12249
|
R219's pin-only letter-spacing (0px → 0.5px on
|
|
10249
12250
|
isPinned) to a 3-tier scale matching the R432
|
|
@@ -10285,10 +12286,46 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10285
12286
|
unchanged; R55 fill brighten unchanged — only
|
|
10286
12287
|
the timing axis shifts. */
|
|
10287
12288
|
data-legend-row-label-transition="200ms"
|
|
12289
|
+
/* Round 569 / Loop — extends R568's panel-row drop-
|
|
12290
|
+
shadow pattern to the SIBLING legend-row label.
|
|
12291
|
+
Symmetric closure of the panel-row drop-shadow
|
|
12292
|
+
across both panel surfaces (recent + legend).
|
|
12293
|
+
Pre-R569 the legend-row label had 3 hover/pin
|
|
12294
|
+
axes (R55 fill + R433 ls 3-tier + R531 fw); R569
|
|
12295
|
+
adds the 4th paint axis to match R568 recent-
|
|
12296
|
+
row text exactly.
|
|
12297
|
+
Two-tier paint-axis cascade now SYMMETRIC across
|
|
12298
|
+
both side panels:
|
|
12299
|
+
recent panel title (R550) + row text (R568)
|
|
12300
|
+
legend panel title (R550-sibling) + label (R569) ← this round
|
|
12301
|
+
Each panel has glow at BOTH chrome tiers (title
|
|
12302
|
+
active + row hover/pin). The 4-axis row signature
|
|
12303
|
+
(fill + ls + fw + glow) is now identical at both
|
|
12304
|
+
panel-row text scopes — completes the panel-row
|
|
12305
|
+
text-treatment parity.
|
|
12306
|
+
Hue/blur/cadence: same as R568 (pal.legendAccent
|
|
12307
|
+
+ hex alpha 80, 2px blur, 200ms ease-out). Gate
|
|
12308
|
+
matches R531/R433 (hoveredStatus === row.key ||
|
|
12309
|
+
isPinned) — single boolean drives all 4 axes
|
|
12310
|
+
together for motion-coherent state-flip.
|
|
12311
|
+
Drop-shadow family extends to 18 anchors total
|
|
12312
|
+
(R568 was 17; R569 = 18).
|
|
12313
|
+
data-legend-row-label-glow attr added for tests. */
|
|
12314
|
+
data-legend-row-label-glow={(hoveredStatus === row.key || isPinned) ? 'true' : 'false'}
|
|
12315
|
+
/* Round 572 / Loop — sibling to recent-row text above.
|
|
12316
|
+
Stacks brightness(1.15) onto R569's drop-shadow at
|
|
12317
|
+
legend-row label scope (10th anchor in per-element
|
|
12318
|
+
brightness family). Matches recent-row text 4-axis
|
|
12319
|
+
signature exactly: fill + ls + fw + drop-shadow +
|
|
12320
|
+
brightness now BOTH panel-row text surfaces. */
|
|
12321
|
+
data-legend-row-label-brightness={(hoveredStatus === row.key || isPinned) ? '1.15' : '1'}
|
|
10288
12322
|
style={{
|
|
10289
|
-
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out',
|
|
12323
|
+
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out, filter 200ms ease-out',
|
|
10290
12324
|
letterSpacing: isPinned ? '0.5px' :
|
|
10291
12325
|
hoveredStatus === row.key ? '0.25px' : '0px',
|
|
12326
|
+
filter: (hoveredStatus === row.key || isPinned)
|
|
12327
|
+
? `drop-shadow(0 0 2px ${pal.legendAccent}80) brightness(1.15)`
|
|
12328
|
+
: undefined,
|
|
10292
12329
|
}}
|
|
10293
12330
|
>{row.label}</text>
|
|
10294
12331
|
{/* R95: live count anchored to the right edge of the
|
|
@@ -10420,7 +12457,43 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10420
12457
|
data-legend-count-pinned={isPinned ? 'true' : 'false'}
|
|
10421
12458
|
data-legend-count-font-weight={isPinned ? '700' : '600'}
|
|
10422
12459
|
data-legend-count-fill={row.count > 0 && (hoveredStatus === row.key || isPinned) ? 'tier' : 'neutral'}
|
|
10423
|
-
|
|
12460
|
+
/* Round 518 / Loop — extends R433's 3-tier hover-
|
|
12461
|
+
letter-spacing tween from the legend-row LABEL
|
|
12462
|
+
(text at x=30) to the SIBLING legend-row COUNT
|
|
12463
|
+
digit (this text at x=215). Pre-R518 the row's
|
|
12464
|
+
label spread on hover/pin (R433: 0/0.25/0.5px)
|
|
12465
|
+
while the count digit at the row's right edge
|
|
12466
|
+
stayed dead-typographic — same row, two halves,
|
|
12467
|
+
asymmetric kerning gesture. R518 mirrors the
|
|
12468
|
+
3-tier scale at the count so the WHOLE row's
|
|
12469
|
+
typography reads as one unit under cursor: label
|
|
12470
|
+
+ count spread together at matching values.
|
|
12471
|
+
Tabular-nums (R225) makes the kerning still
|
|
12472
|
+
visible on 2-digit counts — each digit cell
|
|
12473
|
+
keeps its fixed width, but the inter-digit
|
|
12474
|
+
advance grows. R518 also closes R475's panel-
|
|
12475
|
+
row TEXT cadence at the count surface — R475
|
|
12476
|
+
lifted the label text transitions to 200ms but
|
|
12477
|
+
the count was missed; R518 lifts opacity / fill
|
|
12478
|
+
/ font-weight from 150 → 200ms AND adds the new
|
|
12479
|
+
letter-spacing axis at 200ms. One transition
|
|
12480
|
+
list, one cadence, one motion-coherent multi-
|
|
12481
|
+
axis hover/pin signature across the row.
|
|
12482
|
+
Hover-letter-spacing family extension (10
|
|
12483
|
+
anchors now): R344/R345/R347/R420/R427/R431/
|
|
12484
|
+
R432/R433/R517/R518. R518 closes the legend-
|
|
12485
|
+
row pair (label R433 + count R518). data-
|
|
12486
|
+
legend-count-letter-spacing attr exposes the
|
|
12487
|
+
resolved value for tests. */
|
|
12488
|
+
data-legend-count-letter-spacing={isPinned ? '0.5px' : hoveredStatus === row.key ? '0.25px' : '0px'}
|
|
12489
|
+
data-legend-count-transition="200ms"
|
|
12490
|
+
style={{
|
|
12491
|
+
pointerEvents: 'none',
|
|
12492
|
+
transition: 'opacity 200ms ease-out, fill 200ms ease-out, font-weight 200ms ease-out, letter-spacing 200ms ease-out',
|
|
12493
|
+
fontVariantNumeric: 'tabular-nums',
|
|
12494
|
+
letterSpacing: isPinned ? '0.5px' :
|
|
12495
|
+
hoveredStatus === row.key ? '0.25px' : '0px',
|
|
12496
|
+
}}
|
|
10424
12497
|
>{row.count}</text>
|
|
10425
12498
|
</g>
|
|
10426
12499
|
);
|
|
@@ -10479,6 +12552,74 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10479
12552
|
spacing as typographic intent. Stays well inside the
|
|
10480
12553
|
bottom-left corner; opacity 0.4 unchanged so the
|
|
10481
12554
|
watermark stays a watermark. */}
|
|
12555
|
+
{/* Round 519 / Loop — 呼吸感 family 3rd anchor. Pre-R519 the
|
|
12556
|
+
breath family had 2 anchors (R497 hub idle digit + R498
|
|
12557
|
+
recent-row hot pulse). Both signal active state — the
|
|
12558
|
+
digit when canvas is idle (no work pending), the recent
|
|
12559
|
+
row when fresh signal arrives. R519 adds a SLOW ambient
|
|
12560
|
+
breath to the brand watermark — present always, not gated
|
|
12561
|
+
on activity state. The watermark IS the canvas-corner
|
|
12562
|
+
register that says "the canvas is alive even when nothing
|
|
12563
|
+
is happening"; a 6s opacity pulse around its 0.4 mean
|
|
12564
|
+
(±0.08 swing → 0.32 ↔ 0.48) reads as ambient liveness
|
|
12565
|
+
rather than foreground signal.
|
|
12566
|
+
Why 6s (not R497's 4s): the breath family now spans
|
|
12567
|
+
activity registers (R497 4s — idle-focal: present and
|
|
12568
|
+
waiting; R498 ~3s — hot signal: just arrived) and now
|
|
12569
|
+
ambient register (R519 6s — corner watermark: always-on
|
|
12570
|
+
background). Slower cadence keeps the watermark in the
|
|
12571
|
+
background; ~10 pct slower than R497 keeps it out of
|
|
12572
|
+
phase so the two anchors never beat together visibly.
|
|
12573
|
+
Gate: !reducedMotion. Inside the prefers-reduced-motion
|
|
12574
|
+
media query, SMIL animate isn't covered by globals.css
|
|
12575
|
+
R29 (which only kills CSS animation property), so we
|
|
12576
|
+
gate at JSX level — when reducedMotion is true the
|
|
12577
|
+
<animate> child isn't mounted and opacity stays at the
|
|
12578
|
+
static 0.4. data-topo-brand-watermark-breath attr
|
|
12579
|
+
exposes the gate state for tests.
|
|
12580
|
+
呼吸感 family extension (3 anchors): R497 hub idle / R498
|
|
12581
|
+
recent-row hot / R519 brand watermark ambient. */}
|
|
12582
|
+
{/* Round 525 / Loop — focal-recede family 3rd anchor. R507
|
|
12583
|
+
receded the hub-center workingCount digit; R508 receded
|
|
12584
|
+
the hub-highlight disc; both fade to 0.85× when any non-
|
|
12585
|
+
hub canvas surface is hovered (alias / edge / group /
|
|
12586
|
+
status / vendor) — the "you're inspecting elsewhere"
|
|
12587
|
+
gesture. R525 extends the pattern to the brand watermark
|
|
12588
|
+
at canvas bottom-left, the always-on decorative brand
|
|
12589
|
+
element. Pre-R525 the watermark stayed at its R519
|
|
12590
|
+
breath baseline (0.32-0.48 SMIL pulse) regardless of
|
|
12591
|
+
canvas attention; post-R525 it fades to 70% wrapper
|
|
12592
|
+
opacity (effective 0.224-0.336 with breath) when canvas
|
|
12593
|
+
attention is elsewhere, matching the same focal-recede
|
|
12594
|
+
semantic R507/R508 establish at the hub focal cluster.
|
|
12595
|
+
Implementation: wrap the existing <text> in a <g>
|
|
12596
|
+
wrapper whose opacity multiplies with the inner text's
|
|
12597
|
+
SMIL-animated opacity. SVG opacity composes
|
|
12598
|
+
multiplicatively across the parent/child chain, so:
|
|
12599
|
+
normal: g.opacity=1.0 × text.opacity(SMIL 0.32-0.48) = 0.32-0.48
|
|
12600
|
+
recede: g.opacity=0.7 × text.opacity(SMIL 0.32-0.48) = 0.224-0.336
|
|
12601
|
+
SMIL on inner text continues running through both
|
|
12602
|
+
states; only the wrapper opacity flips. 300ms ease-out
|
|
12603
|
+
transition on wrapper (matches R508 hub-highlight recede
|
|
12604
|
+
transition).
|
|
12605
|
+
Gate matches R507/R508 — focal-recede is a UNIFIED
|
|
12606
|
+
non-hub-canvas-hover signal driving multiple anchors,
|
|
12607
|
+
so all three (hub digit / hub-highlight / brand
|
|
12608
|
+
watermark) fade together as the canvas's decorative
|
|
12609
|
+
register, leaving only the surface under inspection
|
|
12610
|
+
foregrounded.
|
|
12611
|
+
Focal-recede family extension (3 anchors): R507 hub
|
|
12612
|
+
digit / R508 hub-highlight / R525 brand watermark. */}
|
|
12613
|
+
<g
|
|
12614
|
+
opacity={(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
12615
|
+
hoveredStatus || hoveredVendor) && !hoveredHub ? 0.7 : 1}
|
|
12616
|
+
data-topo-brand-watermark-wrapper
|
|
12617
|
+
data-topo-brand-watermark-recede={
|
|
12618
|
+
(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
12619
|
+
hoveredStatus || hoveredVendor) && !hoveredHub ? 'true' : 'false'
|
|
12620
|
+
}
|
|
12621
|
+
style={{ pointerEvents: 'none', transition: 'opacity 300ms ease-out' }}
|
|
12622
|
+
>
|
|
10482
12623
|
<text
|
|
10483
12624
|
x="16" y="672"
|
|
10484
12625
|
fontSize="11" fontFamily="monospace" fontWeight="600"
|
|
@@ -10486,8 +12627,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10486
12627
|
fill={pal.legendText}
|
|
10487
12628
|
opacity="0.4"
|
|
10488
12629
|
data-topo-brand-watermark
|
|
12630
|
+
data-topo-brand-watermark-breath={reducedMotion ? 'false' : 'true'}
|
|
10489
12631
|
style={{ pointerEvents: 'none', transition: 'fill 200ms ease-out' }}
|
|
10490
|
-
>sleep2agi
|
|
12632
|
+
>sleep2agi{!reducedMotion && (
|
|
12633
|
+
<animate attributeName="opacity" values="0.32;0.48;0.32" dur="6s" repeatCount="indefinite" />
|
|
12634
|
+
)}</text>
|
|
12635
|
+
</g>
|
|
10491
12636
|
{/* v0.10.0 Hero 3 Wave 1 / RFC §3.I (Vincent 5215 + 通信龙
|
|
10492
12637
|
lead-autonomy Q4 dual-anchor minimal): canvas top-left
|
|
10493
12638
|
crescent moon brand mark, visible ONLY when the
|
|
@@ -10522,10 +12667,47 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10522
12667
|
the R175 panel-fade-in uses for cascade rhythm. data-
|
|
10523
12668
|
topo-brand-canvas-mark-visible exposes the gate for
|
|
10524
12669
|
tests. */}
|
|
12670
|
+
{/* Round 526 / Loop — focal-recede family 4th anchor.
|
|
12671
|
+
Symmetric polish to R525 (watermark recede). The
|
|
12672
|
+
brand crescent at canvas top-left is the second
|
|
12673
|
+
decorative brand element on the canvas; pre-R526 it
|
|
12674
|
+
stayed at flat opacity 0.35 (when visible) regardless
|
|
12675
|
+
of canvas attention. R526 multiplies its visible
|
|
12676
|
+
opacity by 0.7 when ANY non-hub canvas surface is
|
|
12677
|
+
hovered, matching R525's deeper-recede semantic for
|
|
12678
|
+
decorative brand elements (vs hub focal cluster's
|
|
12679
|
+
0.85× recede at R507/R508).
|
|
12680
|
+
Composes cleanly with existing flowLinks gate:
|
|
12681
|
+
normal, flowLinks=0: opacity = 0.35 * 1.0 = 0.350
|
|
12682
|
+
recede, flowLinks=0: opacity = 0.35 * 0.7 = 0.245
|
|
12683
|
+
invisible, flowLinks>0: opacity = 0.00 * any = 0.000
|
|
12684
|
+
Multiplicative chain means recede only matters when
|
|
12685
|
+
crescent is visible (quiet canvas, flowLinks=0) —
|
|
12686
|
+
exactly when canvas attention elsewhere should
|
|
12687
|
+
dim the decorative register. 300ms transition
|
|
12688
|
+
already covers both axes (the existing visibility
|
|
12689
|
+
opacity ramp + the new recede multiplier easing).
|
|
12690
|
+
Focal-recede family extension (4 anchors): R507 hub
|
|
12691
|
+
digit / R508 hub-highlight / R525 watermark / R526
|
|
12692
|
+
crescent (this round). Canvas brand surfaces (R525
|
|
12693
|
+
watermark + R526 crescent) now BOTH carry focal-
|
|
12694
|
+
recede at the same 0.7 multiplier, fading as a
|
|
12695
|
+
decorative pair when the canvas's focal attention
|
|
12696
|
+
shifts elsewhere.
|
|
12697
|
+
data-topo-brand-canvas-mark-recede attr exposes the
|
|
12698
|
+
gate state for tests. */}
|
|
10525
12699
|
<g
|
|
10526
|
-
opacity={flowLinks.length === 0 ? 0.35 : 0
|
|
12700
|
+
opacity={(flowLinks.length === 0 ? 0.35 : 0) * (
|
|
12701
|
+
(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
12702
|
+
hoveredStatus || hoveredVendor) && !hoveredHub ? 0.7 : 1
|
|
12703
|
+
)}
|
|
10527
12704
|
data-topo-brand-canvas-mark
|
|
10528
12705
|
data-topo-brand-canvas-mark-visible={flowLinks.length === 0 ? 'true' : 'false'}
|
|
12706
|
+
data-topo-brand-canvas-mark-recede={
|
|
12707
|
+
(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
|
|
12708
|
+
hoveredStatus || hoveredVendor) && !hoveredHub ? 'true' : 'false'
|
|
12709
|
+
}
|
|
12710
|
+
data-topo-brand-canvas-mark-breath={reducedMotion ? 'false' : 'true'}
|
|
10529
12711
|
style={{ pointerEvents: 'none', transition: 'opacity 300ms ease-out, fill 200ms ease-out' }}
|
|
10530
12712
|
>
|
|
10531
12713
|
<defs>
|
|
@@ -10535,11 +12717,44 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10535
12717
|
<circle cx="17.5" cy="13" r="10" fill="black" />
|
|
10536
12718
|
</mask>
|
|
10537
12719
|
</defs>
|
|
12720
|
+
{/* Round 528 / Loop — 呼吸感 family 4th anchor. Symmetric
|
|
12721
|
+
polish to R519 watermark ambient breath. The brand
|
|
12722
|
+
crescent at canvas top-left is the second decorative
|
|
12723
|
+
canvas brand surface; pre-R528 it stayed at the static
|
|
12724
|
+
composed opacity (wrapper 0.35 × no inner anim = flat).
|
|
12725
|
+
Post-R528 the inner <rect>'s fill-opacity breathes
|
|
12726
|
+
0.8 ↔ 1.0 on a 7s cycle, composing multiplicatively
|
|
12727
|
+
with the wrapper's recede gate:
|
|
12728
|
+
normal visible: 0.35 × (0.8-1.0) = 0.280-0.350
|
|
12729
|
+
recede visible: 0.245 × (0.8-1.0) = 0.196-0.245
|
|
12730
|
+
invisible: 0 × any = 0
|
|
12731
|
+
7s cadence intentionally OUT OF PHASE with R519
|
|
12732
|
+
watermark's 6s — the two ambient anchors never beat
|
|
12733
|
+
together visibly when both visible. R497 hub idle
|
|
12734
|
+
breath (4s) is the loudest; R498 recent-row hot pulse
|
|
12735
|
+
(~3s) is the most-active; R519 watermark (6s) +
|
|
12736
|
+
R528 crescent (7s) are the quietest ambient pair.
|
|
12737
|
+
呼吸感 family extension (4 anchors):
|
|
12738
|
+
R497 hub idle digit 4s active-idle register
|
|
12739
|
+
R498 recent-row hot pulse 3s active-fresh register
|
|
12740
|
+
R519 watermark ambient 6s ambient (always-on)
|
|
12741
|
+
R528 crescent ambient 7s ambient (quiet-only) ← this round
|
|
12742
|
+
SMIL <animate> on fill-opacity (not parent opacity) so
|
|
12743
|
+
the wrapper's React-controlled gate compositions stay
|
|
12744
|
+
intact. Gated on !reducedMotion at JSX level —
|
|
12745
|
+
reducedMotion users see the inner rect at default
|
|
12746
|
+
fill-opacity=1.0 (no SMIL mounted, wrapper's static
|
|
12747
|
+
composed opacity wins). data-topo-brand-canvas-mark-
|
|
12748
|
+
breath attr exposes the gate state. */}
|
|
10538
12749
|
<rect
|
|
10539
12750
|
x="16" y="16" width="28" height="28"
|
|
10540
12751
|
fill={pal.legendText}
|
|
10541
12752
|
mask="url(#s2a-canvas-corner-mask)"
|
|
10542
|
-
|
|
12753
|
+
>
|
|
12754
|
+
{!reducedMotion && (
|
|
12755
|
+
<animate attributeName="fill-opacity" values="0.8;1;0.8" dur="7s" repeatCount="indefinite" />
|
|
12756
|
+
)}
|
|
12757
|
+
</rect>
|
|
10543
12758
|
</g>
|
|
10544
12759
|
</svg>
|
|
10545
12760
|
|
|
@@ -10891,12 +13106,32 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10891
13106
|
(the minimap viewport is small, ~120×82 px).
|
|
10892
13107
|
Filter is paint-only — bbox unchanged. transition
|
|
10893
13108
|
list extends to include 'filter 200ms ease-out'
|
|
10894
|
-
so the glow eases when zoom crosses 1.5x.
|
|
10895
|
-
|
|
13109
|
+
so the glow eases when zoom crosses 1.5x.
|
|
13110
|
+
R540: extends the drop-shadow to also fire on
|
|
13111
|
+
hoveredMinimap with HOVER PRECEDENCE over zoom-
|
|
13112
|
+
state. Pre-R540 the viewport drop-shadow was
|
|
13113
|
+
zoom-only (single gate); R540 adds an
|
|
13114
|
+
interactional gate at lighter blur intensity.
|
|
13115
|
+
Hover wins when both true — interactional signal
|
|
13116
|
+
(user is inspecting) trumps informational signal
|
|
13117
|
+
(you're zoomed). Sibling to R534 edge-badge
|
|
13118
|
+
hover-precedence + R538 group-label hover-tier
|
|
13119
|
+
extensions.
|
|
13120
|
+
2-tier alpha ladder:
|
|
13121
|
+
hover (interactional) legendAccent 99 (~60%)
|
|
13122
|
+
zoom > 1.5 (info) legendAccent 80 (~50%)
|
|
13123
|
+
rest none
|
|
13124
|
+
data-topo-minimap-viewport-glow attr upgraded
|
|
13125
|
+
binary ('true'/'false') → 3-value ('hover' |
|
|
13126
|
+
'zoom' | 'false') so tests can distinguish
|
|
13127
|
+
gate cause. */
|
|
13128
|
+
data-topo-minimap-viewport-glow={hoveredMinimap ? 'hover' : view.zoom > 1.5 ? 'zoom' : 'false'}
|
|
10896
13129
|
style={{
|
|
10897
|
-
filter:
|
|
10898
|
-
? `drop-shadow(0 0 2px ${pal.legendAccent}
|
|
10899
|
-
:
|
|
13130
|
+
filter: hoveredMinimap
|
|
13131
|
+
? `drop-shadow(0 0 2px ${pal.legendAccent}99)`
|
|
13132
|
+
: view.zoom > 1.5
|
|
13133
|
+
? `drop-shadow(0 0 2px ${pal.legendAccent}80)`
|
|
13134
|
+
: undefined,
|
|
10900
13135
|
transition: smoothView
|
|
10901
13136
|
? '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'
|
|
10902
13137
|
: 'stroke-width 200ms ease-out, opacity 200ms ease-out, filter 200ms ease-out',
|
|
@@ -11037,7 +13272,41 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
11037
13272
|
// transition-colors only — without the transform transition,
|
|
11038
13273
|
// active:scale-95 would hard-cut. transform-gpu promotes the
|
|
11039
13274
|
// layer so scale doesn't trigger paint thrash.
|
|
11040
|
-
|
|
13275
|
+
/* Round 521 / Loop — extends R270's hover-preview pattern
|
|
13276
|
+
(inactive toggle hover previews the active state's
|
|
13277
|
+
visual register) to the TYPOGRAPHY axis at the chrome
|
|
13278
|
+
nodeSize S/M/L surface. Pre-R521 the inactive variant
|
|
13279
|
+
had `hover:bg-cyan-500/5` (R270 bg preview) but no
|
|
13280
|
+
typography preview — active variant uses `font-medium`
|
|
13281
|
+
(fw 500), inactive variant sat at default fw 400 even
|
|
13282
|
+
on hover.
|
|
13283
|
+
R521 adds `hover:font-medium` + `transition-[font-
|
|
13284
|
+
weight]` to the inactive variant so hovering an
|
|
13285
|
+
inactive S/M/L letter thickens the glyph 400 → 500,
|
|
13286
|
+
previewing the typography of the active state the
|
|
13287
|
+
click would commit to. Sibling to R421 chrome zoom-
|
|
13288
|
+
level fontWeight hover delta (rest 500 → hover 600)
|
|
13289
|
+
and R520 footer fontWeight hover (500 → 600) — same
|
|
13290
|
+
idiom: thicken-on-hover for chrome surfaces with a
|
|
13291
|
+
pre-commit gesture.
|
|
13292
|
+
`font-medium` (500) matches the ACTIVE variant's
|
|
13293
|
+
fw exactly — the inactive hover landing weight equals
|
|
13294
|
+
the active locked weight, so clicking commits to a
|
|
13295
|
+
typography state the eye already saw 'on the way in'.
|
|
13296
|
+
Hover-fw family extension (5 anchors now):
|
|
13297
|
+
R416 chip-row count digit rest 500 → hover 700/600
|
|
13298
|
+
R420 chrome zoom-level rest 500 → hover 600
|
|
13299
|
+
R425 hub-center digit rest 700 → hover 800
|
|
13300
|
+
R520 +N more flows footer rest 500 → hover 600
|
|
13301
|
+
R521 chrome nodeSize S/M/L inactive rest 400 → hover 500 ← this round
|
|
13302
|
+
Active variant `font-medium` unchanged so the rest-vs-
|
|
13303
|
+
active typography distinction stays intact when the
|
|
13304
|
+
user IS clicked-in (active stays at fw 500, inactive
|
|
13305
|
+
rest at fw 400, inactive hover preview at fw 500).
|
|
13306
|
+
data-topo-chrome-nodesize-hover-preview-fw="500" attr
|
|
13307
|
+
exposes the polish for tests. */
|
|
13308
|
+
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 hover:text-cyan-200 active:bg-cyan-500/25' : 'hover:bg-cyan-500/5 active:bg-cyan-500/15 hover:font-medium'}${chromePopping === popKey ? ' anet-chrome-pop' : ''}`}
|
|
13309
|
+
data-topo-chrome-nodesize-hover-preview-fw={nodeScale === v ? null : '500'}
|
|
11041
13310
|
style={{ color: nodeScale === v ? undefined : pal.legendText, borderColor: pal.containerBorder }}
|
|
11042
13311
|
>
|
|
11043
13312
|
{lbl}
|
|
@@ -11175,10 +13444,32 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
11175
13444
|
? 'true' : 'false'
|
|
11176
13445
|
}
|
|
11177
13446
|
data-topo-chrome-zoom-level-hover={hoveredZoomLevel ? 'true' : 'false'}
|
|
13447
|
+
/* Round 517 / Loop — extends the chrome zoom-level readout
|
|
13448
|
+
from 2-axis (R347 letter-spacing + R420 fontWeight) to
|
|
13449
|
+
3-axis hover signature by adding a color brighten to
|
|
13450
|
+
pal.legendHeadline. Pre-R517 the readout's color stayed
|
|
13451
|
+
at pal.legendText on hover; the digits got tighter
|
|
13452
|
+
kerning (0→0.5px) and heavier weight (500→600) but
|
|
13453
|
+
stayed the same legendText gray tone. R517 lifts color
|
|
13454
|
+
to legendHeadline on hover so the readout brightens
|
|
13455
|
+
into the headline tier at the same beat — matching the
|
|
13456
|
+
R55/R197/R239 hover-deepen-own-hue idiom that legend-
|
|
13457
|
+
row label + count carry at panel scope. Chrome strip's
|
|
13458
|
+
only data display now has full 3-axis hover signature
|
|
13459
|
+
(letter-spacing + fontWeight + color), parity with the
|
|
13460
|
+
chip-row chips' own hover-brighten pattern.
|
|
13461
|
+
Implementation: inline color uses the same hoveredZoom-
|
|
13462
|
+
Level state as R347/R420 — no new state. Transition
|
|
13463
|
+
already includes 'color 200ms ease-out' (R264) so the
|
|
13464
|
+
brighten eases under the same cadence as the kerning +
|
|
13465
|
+
weight tweens — one motion-coherent 3-axis lift.
|
|
13466
|
+
data-topo-chrome-zoom-level-color attr exposes the
|
|
13467
|
+
resolved color string for tests. */
|
|
13468
|
+
data-topo-chrome-zoom-level-color={hoveredZoomLevel ? 'headline' : 'text'}
|
|
11178
13469
|
onMouseEnter={() => setHoveredZoomLevel(true)}
|
|
11179
13470
|
onMouseLeave={() => setHoveredZoomLevel(false)}
|
|
11180
13471
|
style={{
|
|
11181
|
-
color: pal.legendText,
|
|
13472
|
+
color: hoveredZoomLevel ? pal.legendHeadline : pal.legendText,
|
|
11182
13473
|
borderColor: pal.containerBorder,
|
|
11183
13474
|
minWidth: 46,
|
|
11184
13475
|
display: 'inline-block',
|
|
@@ -11334,8 +13625,34 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
11334
13625
|
// owns transform during its 450ms run. transformOrigin
|
|
11335
13626
|
// 'center' so rotation pivots around the icon's centre
|
|
11336
13627
|
// (default would be top-left and the icon would arc).
|
|
13628
|
+
/* Round 514 / Loop — extends R352/R353 chrome icon hover-
|
|
13629
|
+
scale family to the reset button. Pre-R514 the reset
|
|
13630
|
+
icon had hover-rotate (-8°, R350) + hover-sw (2.5→2.8,
|
|
13631
|
+
R453) but no hover-scale, while zoom-out (R352), zoom-
|
|
13632
|
+
in (R352), and fullscreen (R353) icons all carried
|
|
13633
|
+
`group-hover:scale-110`. R514 brings the reset icon
|
|
13634
|
+
into the same 3-axis hover signature (rotate + sw +
|
|
13635
|
+
scale) as the rest of the chrome strip.
|
|
13636
|
+
Implementation: inline transform composes rotate +
|
|
13637
|
+
scale into one string. `transform: rotate(-8deg)
|
|
13638
|
+
scale(1.1)` on hover; `rotate(0) scale(1)` at rest.
|
|
13639
|
+
transformOrigin 'center' applies to both — rotation
|
|
13640
|
+
pivots around centre AND scale grows from centre.
|
|
13641
|
+
The Tailwind `group-hover:scale-110` approach can't
|
|
13642
|
+
work here because inline `style.transform` overrides
|
|
13643
|
+
className-based transforms; compose the multi-axis
|
|
13644
|
+
transform inline instead.
|
|
13645
|
+
Chrome icon hover gesture parity (post-R514):
|
|
13646
|
+
zoom-out scale-110 + sw-lift (R352/R454)
|
|
13647
|
+
zoom-in scale-110 + sw-lift (R352/R454)
|
|
13648
|
+
fullscreen scale-110 + sw-lift (R353/R455)
|
|
13649
|
+
reset scale-1.1 + sw-lift + rotate -8°
|
|
13650
|
+
(R514 + R453 + R350)
|
|
13651
|
+
reset gets the EXTRA rotate axis because R350's spin
|
|
13652
|
+
preview semantic is reset-specific — the rotation
|
|
13653
|
+
hints at the click-spin (R184) the button will fire. */
|
|
11337
13654
|
style={{
|
|
11338
|
-
transform: hoveredReset && !resetSpinning ? 'rotate(-8deg)' : 'rotate(0deg)',
|
|
13655
|
+
transform: hoveredReset && !resetSpinning ? 'rotate(-8deg) scale(1.1)' : 'rotate(0deg) scale(1)',
|
|
11339
13656
|
transformOrigin: 'center',
|
|
11340
13657
|
transition: 'transform 200ms ease-out, stroke-width 200ms ease-out',
|
|
11341
13658
|
}}
|
|
@@ -11383,7 +13700,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
11383
13700
|
// reset above: lift-and-compress compound transform on press).
|
|
11384
13701
|
className={`group p-1.5 rounded-md border hover:-translate-y-px active:scale-95 transition-colors transition-transform duration-200 ease-out transform-gpu focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 ${
|
|
11385
13702
|
isFullscreen
|
|
11386
|
-
? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25'
|
|
13703
|
+
? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 hover:text-cyan-200 active:bg-cyan-500/25'
|
|
11387
13704
|
: 'hover:bg-cyan-500/5 active:bg-cyan-500/15'
|
|
11388
13705
|
}${chromePopping === 'fullscreen' ? ' anet-chrome-pop' : ''}`}
|
|
11389
13706
|
data-topo-chrome-fullscreen-hover-lift="true"
|
|
@@ -11417,12 +13734,20 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
11417
13734
|
+ R455 fullscreen (this round). transition-[transform,
|
|
11418
13735
|
stroke-width] expands existing transition-transform
|
|
11419
13736
|
so the sw lift eases under R352 scale-110 cadence. */}
|
|
13737
|
+
{/* Round 576 / Loop — fullscreen icon picks up hover-rotate-3.
|
|
13738
|
+
Joins R350 reset / R547 pill × / R549 brand logo at 4th
|
|
13739
|
+
anchor in hover-rotate idiom. Corner arrows rotate 3° on
|
|
13740
|
+
hover — subtle "preparing to transform" gesture (enter
|
|
13741
|
+
or exit fullscreen). Tailwind v4 emits individual rotate
|
|
13742
|
+
property (banked R547) — sits alongside group-hover:
|
|
13743
|
+
scale-110 in independent rotate axis. */}
|
|
11420
13744
|
{isFullscreen ? (
|
|
11421
|
-
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden className="transition-[transform,stroke-width] duration-200 ease-out group-hover:scale-110 group-hover:[stroke-width:2.8] transform-gpu" data-topo-chrome-fullscreen-icon="exit">
|
|
13745
|
+
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden className="transition-[transform,stroke-width] duration-200 ease-out group-hover:scale-110 group-hover:rotate-3 group-hover:[stroke-width:2.8] transform-gpu" data-topo-chrome-fullscreen-icon="exit">
|
|
11422
13746
|
<path d="M8 3v4a1 1 0 0 1-1 1H3M21 8h-4a1 1 0 0 1-1-1V3M3 16h4a1 1 0 0 1 1 1v4M16 21v-4a1 1 0 0 1 1-1h4" />
|
|
11423
13747
|
</svg>
|
|
11424
13748
|
) : (
|
|
11425
|
-
|
|
13749
|
+
// R576 sibling — enter variant also picks up rotate-3.
|
|
13750
|
+
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden className="transition-[transform,stroke-width] duration-200 ease-out group-hover:scale-110 group-hover:rotate-3 group-hover:[stroke-width:2.8] transform-gpu" data-topo-chrome-fullscreen-icon="enter">
|
|
11426
13751
|
<path d="M3 8V5a2 2 0 0 1 2-2h3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M21 16v3a2 2 0 0 1-2 2h-3" />
|
|
11427
13752
|
</svg>
|
|
11428
13753
|
)}
|