@sleep2agi/agent-network-dashboard 0.5.3-preview.4 → 0.5.3-preview.40

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.
Files changed (198) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +32 -32
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/server/app/_global-error.html +1 -1
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/_not-found.html +2 -2
  14. package/.next/server/app/_not-found.rsc +12 -12
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  19. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  21. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  22. package/.next/server/app/admin.html +2 -2
  23. package/.next/server/app/admin.rsc +14 -14
  24. package/.next/server/app/admin.segments/_full.segment.rsc +14 -14
  25. package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
  26. package/.next/server/app/admin.segments/_index.segment.rsc +7 -7
  27. package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
  28. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
  29. package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
  30. package/.next/server/app/index.html +2 -2
  31. package/.next/server/app/index.rsc +14 -14
  32. package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  33. package/.next/server/app/index.segments/_full.segment.rsc +14 -14
  34. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  35. package/.next/server/app/index.segments/_index.segment.rsc +7 -7
  36. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  37. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  38. package/.next/server/app/login.html +2 -2
  39. package/.next/server/app/login.rsc +14 -14
  40. package/.next/server/app/login.segments/_full.segment.rsc +14 -14
  41. package/.next/server/app/login.segments/_head.segment.rsc +4 -4
  42. package/.next/server/app/login.segments/_index.segment.rsc +7 -7
  43. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  44. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  45. package/.next/server/app/login.segments/login.segment.rsc +3 -3
  46. package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  47. package/.next/server/app/logs.html +2 -2
  48. package/.next/server/app/logs.rsc +14 -14
  49. package/.next/server/app/logs.segments/_full.segment.rsc +14 -14
  50. package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
  51. package/.next/server/app/logs.segments/_index.segment.rsc +7 -7
  52. package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
  53. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +4 -4
  54. package/.next/server/app/logs.segments/logs.segment.rsc +3 -3
  55. package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
  56. package/.next/server/app/messages.html +2 -2
  57. package/.next/server/app/messages.rsc +14 -14
  58. package/.next/server/app/messages.segments/_full.segment.rsc +14 -14
  59. package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
  60. package/.next/server/app/messages.segments/_index.segment.rsc +7 -7
  61. package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
  62. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +4 -4
  63. package/.next/server/app/messages.segments/messages.segment.rsc +3 -3
  64. package/.next/server/app/node/page_client-reference-manifest.js +1 -1
  65. package/.next/server/app/node.html +2 -2
  66. package/.next/server/app/node.rsc +14 -14
  67. package/.next/server/app/node.segments/_full.segment.rsc +14 -14
  68. package/.next/server/app/node.segments/_head.segment.rsc +4 -4
  69. package/.next/server/app/node.segments/_index.segment.rsc +7 -7
  70. package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
  71. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +4 -4
  72. package/.next/server/app/node.segments/node.segment.rsc +3 -3
  73. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  74. package/.next/server/app/nodes.html +2 -2
  75. package/.next/server/app/nodes.rsc +14 -14
  76. package/.next/server/app/nodes.segments/_full.segment.rsc +14 -14
  77. package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
  78. package/.next/server/app/nodes.segments/_index.segment.rsc +7 -7
  79. package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
  80. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +4 -4
  81. package/.next/server/app/nodes.segments/nodes.segment.rsc +3 -3
  82. package/.next/server/app/page_client-reference-manifest.js +1 -1
  83. package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
  84. package/.next/server/app/server-logs.html +2 -2
  85. package/.next/server/app/server-logs.rsc +14 -14
  86. package/.next/server/app/server-logs.segments/_full.segment.rsc +14 -14
  87. package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
  88. package/.next/server/app/server-logs.segments/_index.segment.rsc +7 -7
  89. package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
  90. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +4 -4
  91. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +3 -3
  92. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  93. package/.next/server/app/settings/networks.html +2 -2
  94. package/.next/server/app/settings/networks.rsc +14 -14
  95. package/.next/server/app/settings/networks.segments/_full.segment.rsc +14 -14
  96. package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
  97. package/.next/server/app/settings/networks.segments/_index.segment.rsc +7 -7
  98. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
  99. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +4 -4
  100. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +3 -3
  101. package/.next/server/app/settings/networks.segments/settings.segment.rsc +3 -3
  102. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  103. package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
  104. package/.next/server/app/settings/tokens.html +2 -2
  105. package/.next/server/app/settings/tokens.rsc +14 -14
  106. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +14 -14
  107. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
  108. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +7 -7
  109. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
  110. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +4 -4
  111. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +3 -3
  112. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +3 -3
  113. package/.next/server/app/settings.html +2 -2
  114. package/.next/server/app/settings.rsc +14 -14
  115. package/.next/server/app/settings.segments/_full.segment.rsc +14 -14
  116. package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  117. package/.next/server/app/settings.segments/_index.segment.rsc +7 -7
  118. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  119. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  120. package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  121. package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  122. package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  123. package/.next/server/app/tasks.html +2 -2
  124. package/.next/server/app/tasks.rsc +14 -14
  125. package/.next/server/app/tasks.segments/_full.segment.rsc +14 -14
  126. package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
  127. package/.next/server/app/tasks.segments/_index.segment.rsc +7 -7
  128. package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  129. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
  130. package/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
  131. package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js +1 -1
  132. package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js.map +1 -1
  133. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +3 -3
  134. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  135. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  136. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  137. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  138. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  139. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js +1 -1
  140. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js.map +1 -1
  141. package/.next/server/middleware-build-manifest.js +3 -3
  142. package/.next/server/pages/404.html +2 -2
  143. package/.next/server/pages/500.html +1 -1
  144. package/.next/static/chunks/0-dmo67sjhl2r.js +4 -0
  145. package/.next/static/chunks/0nxvf-786~0db.js +1 -0
  146. package/.next/static/chunks/0sht0y-y7x71m.css +2 -0
  147. package/.next/static/chunks/{03a4--7ncekmk.js → 0v4-5tng.uh.7.js} +2 -2
  148. package/.next/static/chunks/0vbgjg.1cj_y_.js +1 -0
  149. package/.next/static/chunks/{0qoc2qe1owx6n.js → 13arj242cta57.js} +1 -1
  150. package/.next/trace +2 -2
  151. package/.next/trace-build +1 -1
  152. package/app/components/ServersDrawer.tsx +16 -3
  153. package/app/components/TopoGraph.tsx +956 -48
  154. package/app/globals.css +55 -7
  155. package/package.json +4 -4
  156. package/scripts/p157-servers-copy-test.mjs +95 -0
  157. package/scripts/topo-alias-glow-test.mjs +121 -0
  158. package/scripts/topo-avatar-brightness-test.mjs +116 -0
  159. package/scripts/topo-chip-row-press-test.mjs +93 -0
  160. package/scripts/topo-chrome-press-fullstrip-test.mjs +105 -0
  161. package/scripts/topo-chrome-press-scale-test.mjs +100 -0
  162. package/scripts/topo-cluster-count-attr-test.mjs +80 -0
  163. package/scripts/topo-crescent-recede-test.mjs +111 -0
  164. package/scripts/topo-filter-pills-press-test.mjs +96 -0
  165. package/scripts/topo-fleet-density-tier-test.mjs +84 -0
  166. package/scripts/topo-freshness-chip-fade-test.mjs +105 -0
  167. package/scripts/topo-fullscreen-attr-test.mjs +73 -0
  168. package/scripts/topo-grid-content-bottom-attr-test.mjs +72 -0
  169. package/scripts/topo-hub-highlight-amplify-test.mjs +139 -0
  170. package/scripts/topo-hub-highlight-fill-transition-test.mjs +84 -0
  171. package/scripts/topo-hub-highlight-recede-test.mjs +144 -0
  172. package/scripts/topo-hub-highlight-theme-fill-test.mjs +83 -0
  173. package/scripts/topo-hub-idle-breath-test.mjs +109 -0
  174. package/scripts/topo-hub-recede-test.mjs +124 -0
  175. package/scripts/topo-layout-hover-fw-test.mjs +98 -0
  176. package/scripts/topo-legend-count-letter-spacing-test.mjs +108 -0
  177. package/scripts/topo-nodesize-hover-fw-test.mjs +99 -0
  178. package/scripts/topo-orphan-box-dash-test.mjs +89 -0
  179. package/scripts/topo-orphan-fill-opacity-test.mjs +91 -0
  180. package/scripts/topo-orphan-label-italic-test.mjs +90 -0
  181. package/scripts/topo-pinned-aspect-test.mjs +89 -0
  182. package/scripts/topo-pressure-seg-motion-test.mjs +101 -0
  183. package/scripts/topo-recent-hot-pulse-test.mjs +102 -0
  184. package/scripts/topo-recent-more-fw-test.mjs +126 -0
  185. package/scripts/topo-reduced-motion-attr-test.mjs +69 -0
  186. package/scripts/topo-reset-icon-hover-scale-test.mjs +102 -0
  187. package/scripts/topo-starfield-hue-test.mjs +109 -0
  188. package/scripts/topo-vendor-activelinks-press-test.mjs +100 -0
  189. package/scripts/topo-watermark-breath-test.mjs +100 -0
  190. package/scripts/topo-watermark-recede-test.mjs +114 -0
  191. package/scripts/topo-zoom-level-color-test.mjs +105 -0
  192. package/.next/static/chunks/05_0r-qhmggvj.css +0 -2
  193. package/.next/static/chunks/072cwlbf~3a0t.js +0 -1
  194. package/.next/static/chunks/0a~3lmgl2.3sm.js +0 -4
  195. package/.next/static/chunks/0t_.58jc2y.3r.js +0 -1
  196. /package/.next/static/{_cPig_Uyv0NsISAzU7MHR → mKNyup1vhTFSsL90GqtYT}/_buildManifest.js +0 -0
  197. /package/.next/static/{_cPig_Uyv0NsISAzU7MHR → mKNyup1vhTFSsL90GqtYT}/_clientMiddlewareManifest.js +0 -0
  198. /package/.next/static/{_cPig_Uyv0NsISAzU7MHR → mKNyup1vhTFSsL90GqtYT}/_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
  };
@@ -1943,8 +1969,50 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
1943
1969
  // doesn't list letter-spacing, so without this the
1944
1970
  // hover:tracking-wide would snap. Sibling change on
1945
1971
  // the Grid button below.
1946
- 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 ${layout === 'ring' ? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25' : 'text-gray-400 hover:text-cyan-300 hover:bg-cyan-500/5 active:bg-cyan-500/15'} ${chromePopping === 'layout-ring' ? ' anet-chrome-pop' : ''}`}
1947
- style={{ transition: 'background-color 150ms ease, color 150ms ease, letter-spacing 200ms ease-out' }}
1972
+ // Round 492 / Loop add `active:scale-95` press feedback
1973
+ // alongside R196's `active:bg-cyan-500/25` color-deepen.
1974
+ // Pre-R492 the chrome-strip Ring/Grid buttons had color
1975
+ // tactile (deeper cyan on mouse-down) + R249 chrome-pop
1976
+ // on release, but no transform during the press itself —
1977
+ // the button stayed planted between mouse-down and pop.
1978
+ // Adding `active:scale-95` (5% compression) on the
1979
+ // pressed pseudo-state, with `transform 150ms ease-out`
1980
+ // bundled into the inline transition list, gives haptic-
1981
+ // like push-back feedback. The press-down (down to 95%
1982
+ // scale) eases in over 150ms in sync with the bg/color
1983
+ // deepen; the release auto-springs back to scale-100 via
1984
+ // the same transition, then R249's anet-chrome-pop class
1985
+ // overlays the release-pop. Matching `transform-gpu`
1986
+ // promotes the layer so the scale doesn't trigger
1987
+ // layout/paint thrash. Sibling change on Grid below.
1988
+ /* Round 522 / Loop — extends R521's typography-preview
1989
+ idiom (chrome nodeSize hover:font-medium 400 → 500) to
1990
+ the Ring/Grid layout toggle's inactive variant. Pre-
1991
+ R522 the inactive Ring/Grid had `hover:text-cyan-300
1992
+ hover:bg-cyan-500/5` (R270 color + bg previews of the
1993
+ active state) but no typography preview — the active
1994
+ variant uses `font-medium` (fw 500), inactive sat at
1995
+ default fw 400 even on hover. R522 adds `hover:font-
1996
+ medium` to the inactive Ring/Grid so the rest-vs-hover
1997
+ transition previews the typography state the click
1998
+ would commit to, matching the click commits's locked
1999
+ weight.
2000
+ font-weight 150ms appended to the transition list
2001
+ matching the existing 150ms color/bg cadence at this
2002
+ button — when hover lifts color (gray-400 → cyan-300)
2003
+ + bg (transparent → cyan-500/5) + fw (400 → 500), all
2004
+ 3 ease at the same 150ms beat.
2005
+ Hover-fw family extension (6 anchors): R416/R420/R425/
2006
+ R520/R521/R522. R522 closes the chrome toggle group
2007
+ typography preview at the last remaining toggle —
2008
+ layout (Ring/Grid). After R521 (nodeSize) + R522
2009
+ (layout), every multi-state chrome toggle has hover-
2010
+ fw preview on its inactive variant.
2011
+ data-topo-chrome-layout-hover-preview-fw="500" attr
2012
+ on inactive button exposes the polish for tests. */
2013
+ className={`px-2.5 py-1 focus:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset hover:tracking-wide active:scale-95 transform-gpu ${layout === 'ring' ? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25' : 'text-gray-400 hover:text-cyan-300 hover:bg-cyan-500/5 active:bg-cyan-500/15 hover:font-medium'} ${chromePopping === 'layout-ring' ? ' anet-chrome-pop' : ''}`}
2014
+ data-topo-chrome-layout-hover-preview-fw={layout === 'ring' ? null : '500'}
2015
+ style={{ transition: 'background-color 150ms ease, color 150ms ease, letter-spacing 200ms ease-out, transform 150ms ease-out, font-weight 150ms ease' }}
1948
2016
  >
1949
2017
  Ring
1950
2018
  </button>
@@ -1963,7 +2031,15 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
1963
2031
  // all chrome buttons.
1964
2032
  // R351 sibling — Grid button picks up hover:tracking-wide
1965
2033
  // + inline transition spec. Same vocabulary as Ring.
1966
- 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 ${layout === 'grid' ? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25' : 'text-gray-400 hover:text-cyan-300 hover:bg-cyan-500/5 active:bg-cyan-500/15'} ${chromePopping === 'layout-grid' ? ' anet-chrome-pop' : ''}`}
2034
+ // R492 sibling Grid button picks up active:scale-95
2035
+ // press feedback + transform in transition list. Same
2036
+ // vocabulary as Ring above.
2037
+ /* Round 522 sibling — Grid button mirrors Ring above:
2038
+ inactive variant gains `hover:font-medium` typography
2039
+ preview + font-weight 150ms in inline transition list.
2040
+ Same idiom, same family (R522 chrome layout). */
2041
+ className={`px-2.5 py-1 border-l focus:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset hover:tracking-wide active:scale-95 transform-gpu ${layout === 'grid' ? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25' : 'text-gray-400 hover:text-cyan-300 hover:bg-cyan-500/5 active:bg-cyan-500/15 hover:font-medium'} ${chromePopping === 'layout-grid' ? ' anet-chrome-pop' : ''}`}
2042
+ data-topo-chrome-layout-hover-preview-fw={layout === 'grid' ? null : '500'}
1967
2043
  /* Round 268 / Loop: Grid button's left border (the
1968
2044
  internal divider between Ring and Grid) picks up
1969
2045
  pal.containerBorder, matching the wrapper change at
@@ -1973,8 +2049,10 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
1973
2049
  transition list into the inline spec below so the
1974
2050
  letter-spacing tween rides alongside without snapping
1975
2051
  the border-color flip — border-color 200ms ease-out
1976
- keeps R268's theme-toggle smoothness intact. */
1977
- style={{ borderColor: pal.containerBorder, transition: 'background-color 150ms ease, color 150ms ease, border-color 200ms ease-out, letter-spacing 200ms ease-out' }}
2052
+ keeps R268's theme-toggle smoothness intact.
2053
+ R492 adds `transform 150ms ease-out` so active:scale-95
2054
+ eases smoothly. */
2055
+ style={{ borderColor: pal.containerBorder, transition: 'background-color 150ms ease, color 150ms ease, border-color 200ms ease-out, letter-spacing 200ms ease-out, transform 150ms ease-out, font-weight 150ms ease' }}
1978
2056
  >
1979
2057
  Grid
1980
2058
  </button>
@@ -2091,9 +2169,17 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
2091
2169
  // to R355 filter pin pill inner-span hover-brighten.
2092
2170
  // Hover-brighten family extends from filter pills to
2093
2171
  // chip-row chips at the inner-span scope.
2172
+ // Round 494 / Loop — chip-row working chip joins the
2173
+ // active:scale-95 press-feedback family (R492 Ring/Grid +
2174
+ // R493 chrome-strip rest). Gated on the clickable branch
2175
+ // (workingCount > 0) — when the chip is a placeholder
2176
+ // at count=0, scale-95 stays off to match the existing
2177
+ // R398 hover-lift conditional. Composes with hover:-
2178
+ // translate-y-px for the same lift-and-compress
2179
+ // tactile signature R493 brought to reset/fullscreen.
2094
2180
  className={`group tabular-nums font-medium px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-colors transition-transform duration-200 ease-out transform-gpu ${
2095
2181
  workingCount > 0
2096
- ? 'bg-green-500/10 text-green-300 border-green-500/20 hover:bg-green-500/15 hover:border-green-500/30 hover:-translate-y-px'
2182
+ ? 'bg-green-500/10 text-green-300 border-green-500/20 hover:bg-green-500/15 hover:border-green-500/30 hover:-translate-y-px active:scale-95'
2097
2183
  : 'bg-green-500/10 text-green-300 border-green-500/20'
2098
2184
  }`}
2099
2185
  data-chip-hover-lift={workingCount > 0 ? 'true' : 'false'}
@@ -2193,9 +2279,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
2193
2279
  same digit-jitter physics on count crossings). */
2194
2280
  // R398: hover translate-y lift on clickable variant — see working chip above.
2195
2281
  // R414: `group` parent + inner unit span group-hover-brighten — see working chip above.
2282
+ // R494 sibling — online chip joins the active:scale-95 press
2283
+ // family (gated on onlineNodes.length > 0 clickable branch,
2284
+ // same conditional pattern as the working chip above).
2196
2285
  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 ${
2197
2286
  onlineNodes.length > 0
2198
- ? 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20 hover:bg-cyan-500/15 hover:border-cyan-500/30 hover:-translate-y-px'
2287
+ ? 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20 hover:bg-cyan-500/15 hover:border-cyan-500/30 hover:-translate-y-px active:scale-95'
2199
2288
  : 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20'
2200
2289
  }`}
2201
2290
  data-chip-hover-lift={onlineNodes.length > 0 ? 'true' : 'false'}
@@ -2470,7 +2559,13 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
2470
2559
  // R355: `group` lets the inner opacity-70 spans (prefix
2471
2560
  // `filter:` + count `· N`) brighten to 100 % on pill hover.
2472
2561
  // Sibling treatment on group + vendor pills below.
2473
- 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 transform-gpu" data-topo-filter-pill-hover-lift="true"
2562
+ // R495 filter pills (3 sibling `group` variants) join the
2563
+ // active:scale-95 press-feedback family. R490's !important
2564
+ // transition list on .anet-topo-chip-focus already covers
2565
+ // transform, so just appending active:scale-95 to the
2566
+ // className wires the press tactile in one token. Compound
2567
+ // with R400-era hover:-translate-y-px gives lift-and-compress.
2568
+ 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"
2474
2569
  title={matchCount > 0 ? `${matchPreview}${matchSuffix} — click to clear` : 'Click to clear filter'}
2475
2570
  onClick={() => setPinnedStatus(null)}
2476
2571
  style={{
@@ -2534,7 +2629,13 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
2534
2629
  data-filter-match-count={matchCount}
2535
2630
  data-filter-match-aliases={matchAliases.join(',')}
2536
2631
  // R355 sibling — `group` parent + group-hover on inner spans.
2537
- 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 transform-gpu" data-topo-filter-pill-hover-lift="true"
2632
+ // R495 filter pills (3 sibling `group` variants) join the
2633
+ // active:scale-95 press-feedback family. R490's !important
2634
+ // transition list on .anet-topo-chip-focus already covers
2635
+ // transform, so just appending active:scale-95 to the
2636
+ // className wires the press tactile in one token. Compound
2637
+ // with R400-era hover:-translate-y-px gives lift-and-compress.
2638
+ 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"
2538
2639
  title={matchCount > 0 ? `${matchPreview}${matchSuffix} — click to clear` : 'Click to clear filter'}
2539
2640
  onClick={() => setPinnedGroup(null)}
2540
2641
  style={{
@@ -2600,7 +2701,13 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
2600
2701
  data-filter-match-count={matchCount}
2601
2702
  data-filter-match-aliases={matchAliases.join(',')}
2602
2703
  // R355 sibling — `group` parent + group-hover on inner spans.
2603
- 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 transform-gpu" data-topo-filter-pill-hover-lift="true"
2704
+ // R495 filter pills (3 sibling `group` variants) join the
2705
+ // active:scale-95 press-feedback family. R490's !important
2706
+ // transition list on .anet-topo-chip-focus already covers
2707
+ // transform, so just appending active:scale-95 to the
2708
+ // className wires the press tactile in one token. Compound
2709
+ // with R400-era hover:-translate-y-px gives lift-and-compress.
2710
+ 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"
2604
2711
  title={matchCount > 0 ? `${matchPreview}${matchSuffix} — click to clear` : 'Click to clear vendor filter'}
2605
2712
  onClick={() => setPinnedVendor(null)}
2606
2713
  style={{
@@ -2663,7 +2770,10 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
2663
2770
  data-filter-match-count={link.count}
2664
2771
  data-filter-match-aliases={`${link.from},${link.to}`}
2665
2772
  data-active-filter-edge-hot={isHot ? 'true' : 'false'}
2666
- 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 transform-gpu" data-topo-filter-pill-hover-lift="true"
2773
+ // R495 sibling 4th filter pill (no `group` prefix variant)
2774
+ // joins active:scale-95 press family alongside the 3 group
2775
+ // variants above. Same recipe.
2776
+ 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"
2667
2777
  title={`${link.from} → ${link.to} (${link.count} msg${link.count === 1 ? '' : 's'}${isHot ? ', hot lane · ≥ 10' : ''}) — click to clear`}
2668
2778
  onClick={() => setPinnedEdgeKey(null)}
2669
2779
  style={{
@@ -3013,7 +3123,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3013
3123
  // — sibling to R355 filter-pill prefix/suffix + R414
3014
3124
  // chip-row unit brighten. Closes the inner-span
3015
3125
  // hover-brighten family at the vendor chip surface.
3016
- className="group tabular-nums font-medium inline-flex items-baseline gap-0.5 px-1 rounded anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu hover:-translate-y-px"
3126
+ // R496 vendor letter chip joins active:scale-95 press
3127
+ // family. Last vendor-row clickable joining the family
3128
+ // R495 cashed via R490's transition-cascade dividend.
3129
+ // Same compound w/ R401 hover-lift idiom — lift-and-
3130
+ // compress on press, springs back on release.
3131
+ className="group tabular-nums font-medium inline-flex items-baseline gap-0.5 px-1 rounded anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu hover:-translate-y-px active:scale-95"
3017
3132
  data-vendor-letter={v.initial}
3018
3133
  data-vendor-letter-count={v.count}
3019
3134
  data-vendor-letter-hover-lift="true"
@@ -3251,9 +3366,13 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3251
3366
  data-chip-hover-lift attr exposes the lift surface
3252
3367
  state ('true' clickable, 'false' empty) for tests. */
3253
3368
  // R414: `group` parent + inner unit span group-hover-brighten — see working chip above.
3369
+ // R496 — active-links chip joins active:scale-95 press
3370
+ // family. Sibling to working+online chips (R494). Gated
3371
+ // on `isInteractive` (flowLinks.length > 0) — same R399
3372
+ // conditional pattern used for hover-lift.
3254
3373
  className={`group tabular-nums font-medium hidden sm:inline px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu ${
3255
3374
  isInteractive
3256
- ? 'bg-gray-500/10 text-gray-400 border-gray-500/20 hover:bg-cyan-500/10 hover:text-cyan-200 hover:border-cyan-500/30 hover:-translate-y-px'
3375
+ ? 'bg-gray-500/10 text-gray-400 border-gray-500/20 hover:bg-cyan-500/10 hover:text-cyan-200 hover:border-cyan-500/30 hover:-translate-y-px active:scale-95'
3257
3376
  : 'bg-gray-500/10 text-gray-400 border-gray-500/20'
3258
3377
  }`}
3259
3378
  data-chip-hover-lift={isInteractive ? 'true' : 'false'}
@@ -3500,6 +3619,36 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3500
3619
  on the canvas root for non-visual consumers.
3501
3620
  Composed from existing onlineNodes / workingCount /
3502
3621
  offlineNodes / flowLinks — no new state. */
3622
+ /* Round 502 / Loop — categorical density-tier paired with the
3623
+ R469 numeric counts. data-topo-fleet-density-tier classifies
3624
+ the fleet size into 5 buckets so external consumers (CSS
3625
+ selectors, Playwright probes, future density-conditional
3626
+ polish gates like R109 dense-label collapse at 16+ nodes)
3627
+ can branch on a stable tier name without re-deriving the
3628
+ threshold logic from the raw numeric. Buckets:
3629
+ 'empty' — onlineNodes.length === 0
3630
+ 'sparse' — 1-3 nodes
3631
+ 'normal' — 4-15 nodes
3632
+ 'dense' — 16-30 nodes (matches R109 collapse gate)
3633
+ 'very-dense' — 31+ nodes
3634
+ Picks the gate boundaries that already drive CONDITIONAL
3635
+ RENDER decisions elsewhere (R109 denseLayout = >16, R110
3636
+ plain-text fallback) so the tier name is semantically
3637
+ aligned with the visual mode the canvas already switches
3638
+ to. Composed from existing onlineNodes — no new state.
3639
+ 12th attr in the canvas state surface set (R462/R466/R467/
3640
+ R469×4/R471×2/R487/R488/R502). 12 attrs covers: build
3641
+ identity, transient/sticky inspection modes, fleet split
3642
+ numerics, fleet density tier, canvas layout/theme, canvas
3643
+ zoom, hover identity. A test harness can snapshot the
3644
+ full canvas state with 12 getAttribute calls. */
3645
+ data-topo-fleet-density-tier={
3646
+ onlineNodes.length === 0 ? 'empty' :
3647
+ onlineNodes.length <= 3 ? 'sparse' :
3648
+ onlineNodes.length <= 15 ? 'normal' :
3649
+ onlineNodes.length <= 30 ? 'dense' :
3650
+ 'very-dense'
3651
+ }
3503
3652
  data-topo-online-count={onlineNodes.length}
3504
3653
  data-topo-working-count={workingCount}
3505
3654
  data-topo-offline-count={offlineNodes.length}
@@ -3565,6 +3714,119 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3565
3714
  categorical) — separate dedicated attrs if/when needed.
3566
3715
  Root svg attribute set now 11 attrs total. */
3567
3716
  data-topo-hovered-alias={hoveredAlias ?? ''}
3717
+ /* Round 504 / Loop — categorical pin-aspect attr paired with
3718
+ R467 any-pinned boolean and R488 hovered-alias identity.
3719
+ Pre-R504 the canvas state surface set told tests WHETHER
3720
+ any pin was active (R467 boolean) but tests had to enumerate
3721
+ 4 individual state vars to determine WHICH pin axis fired:
3722
+ pinnedStatus legend-row status filter
3723
+ pinnedGroup prefix-cluster lock
3724
+ pinnedVendor vendor-chip filter
3725
+ pinnedEdgeKey edge-focus
3726
+ R504 surfaces the active aspect as a single categorical
3727
+ attribute: data-topo-pinned-aspect ∈
3728
+ 'none' no pin active
3729
+ 'status' pinnedStatus only
3730
+ 'group' pinnedGroup only
3731
+ 'vendor' pinnedVendor only
3732
+ 'edge' pinnedEdgeKey only
3733
+ 'multi' 2 or more pins active simultaneously
3734
+ ('multi' covers cross-cutting filters — e.g. user pins
3735
+ status='working' AND vendor='claude' simultaneously to
3736
+ narrow the canvas. Each pin axis is independently
3737
+ dismissable via Esc / individual chip click, so multi
3738
+ states are reachable and worth surfacing as a distinct
3739
+ tier.)
3740
+ 13th attr in the canvas state surface set after R502.
3741
+ Composed from 4 existing state vars — no new state. */
3742
+ /* Round 512 / Loop — 14th canvas state attr. groupBoxes.length
3743
+ surfaces the count of cluster boxes currently rendered in
3744
+ grid layout (always 0 in ring). Paired with R502 categorical
3745
+ density tier + R469 fleet numerics for a complete cluster-
3746
+ cardinality surface:
3747
+ R469 data-topo-online-count node-count
3748
+ R502 data-topo-fleet-density-tier categorical
3749
+ R512 data-topo-cluster-count cluster-count ← this round
3750
+ Use cases:
3751
+ - Playwright: assert orphan-band existence by
3752
+ `cluster-count === N + 1` vs prefix-only `=== N`
3753
+ - external CSS: `[data-topo-cluster-count='1']` to apply
3754
+ single-cluster grid-specific layout adjustments
3755
+ - future polish gates: cluster-count > N could trigger
3756
+ dense-grid mode
3757
+ Composed from existing `groupBoxes.length` — no new state.
3758
+ Always renders (0 in ring layout, N in grid), so tests can
3759
+ rely on attribute presence + value. */
3760
+ data-topo-cluster-count={groupBoxes.length}
3761
+ /* Round 513 / Loop — 15th canvas state attr. Surfaces the
3762
+ user's prefers-reduced-motion preference directly on the
3763
+ root SVG so external CSS / Playwright tests can branch on
3764
+ a11y state without re-reading the media query.
3765
+ reducedMotion is already in component scope (R29 a11y
3766
+ blanket reads it via a useEffect listener); R513 just
3767
+ exposes it as a stable attribute handle.
3768
+ Use cases:
3769
+ - Playwright: assert reduced-motion gates from one attr
3770
+ read instead of mocking media-query state per test
3771
+ - External CSS hooks: `[data-topo-prefers-reduced-motion=
3772
+ "true"]` to apply paint-only overrides (e.g. mute
3773
+ hover glows entirely on a11y instead of just
3774
+ disabling transitions)
3775
+ - Future polish rounds: any motion-gated render can
3776
+ read this attr server-side without the media-query
3777
+ hydration mismatch risk
3778
+ 'true' / 'false' string values (consistent with R466/R467
3779
+ boolean attrs). */
3780
+ data-topo-prefers-reduced-motion={reducedMotion ? 'true' : 'false'}
3781
+ /* Round 515 / Loop — 16th canvas state attr. Surfaces the
3782
+ fullscreen-mode state directly on root SVG so external
3783
+ consumers don't have to traverse the chrome strip's
3784
+ `data-topo-chrome-fullscreen-active` button attr (which
3785
+ measures the BUTTON state, not the canvas state — they
3786
+ agree, but reading from the root is semantically cleaner
3787
+ for canvas-state probes).
3788
+ Composed from existing isFullscreen React state (R103
3789
+ fullscreen toggle).
3790
+ Use cases:
3791
+ - Playwright: assert canvas mode in one attr read
3792
+ (paired with R471 data-topo-layout for ring/grid +
3793
+ R487 data-topo-zoom for zoom level + R513 reduced-
3794
+ motion for a11y mode = 4-axis canvas-mode probe)
3795
+ - External CSS: `[data-topo-fullscreen="true"]` to
3796
+ apply fullscreen-only paint adjustments outside the
3797
+ React tree (e.g. body-level scrollbar hide)
3798
+ 'true' / 'false' string values (consistent with R466/
3799
+ R467/R513 boolean attrs). */
3800
+ data-topo-fullscreen={isFullscreen ? 'true' : 'false'}
3801
+ /* Round 516 / Loop — 17th canvas state attr. Surfaces the
3802
+ grid layout's content-bottom y-coordinate so tests can
3803
+ verify grid content doesn't extend past the viewBox or
3804
+ collide with chrome elements positioned below the canvas.
3805
+ Composed from existing gridContentBottom derived state
3806
+ (computed at line ~915 from gy0 + totalRows * cellH + 8).
3807
+ In ring layout, gridContentBottom is 0 (no grid). In grid
3808
+ layout it's the actual pixel y-coordinate where the
3809
+ cluster bands end.
3810
+ Use cases:
3811
+ - Playwright: assert grid layout doesn't exceed viewBox
3812
+ height (680) without re-computing the layout math
3813
+ - External CSS: `[data-topo-grid-content-bottom='0']` to
3814
+ distinguish ring-mode (no grid content) from grid-mode
3815
+ in CSS without parsing layout attr
3816
+ - Future polish gates: if cluster count grows large
3817
+ enough to push grid bottom past viewBox, can trigger
3818
+ a 'compact' mode automatically */
3819
+ data-topo-grid-content-bottom={gridContentBottom}
3820
+ data-topo-pinned-aspect={(() => {
3821
+ const aspects: string[] = [];
3822
+ if (pinnedStatus) aspects.push('status');
3823
+ if (pinnedGroup) aspects.push('group');
3824
+ if (pinnedVendor) aspects.push('vendor');
3825
+ if (pinnedEdgeKey) aspects.push('edge');
3826
+ if (aspects.length === 0) return 'none';
3827
+ if (aspects.length === 1) return aspects[0];
3828
+ return 'multi';
3829
+ })()}
3568
3830
  /* Round 466 / Loop — aggregate hover signal on the root SVG.
3569
3831
  Exposes a single boolean `data-topo-any-hover` that
3570
3832
  reflects whether ANY hover state in the topology is
@@ -3807,7 +4069,38 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3807
4069
  const x = ((seed * 13) % 1000);
3808
4070
  const y = ((seed * 7) % 680);
3809
4071
  const r = (i % 3 === 0) ? 1.2 : 0.7;
3810
- return <circle key={i} cx={x} cy={y} r={r} fill="#a5b4fc" opacity={0.35 + (i % 4) * 0.05} data-topo-starfield-dot={i} />;
4072
+ /* Round 523 / Loop 配色 family extension to a 3rd anchor.
4073
+ Pre-R523 all 14 starfield dots painted at the same
4074
+ hardcoded `#a5b4fc` (indigo-300). The starfield's role
4075
+ is atmospheric depth (R45, R291 comment), but a flat
4076
+ single-hue field reads more like a regular dot grid
4077
+ than a star field — real starlight has color
4078
+ temperature variation (blue-white hot stars / yellow
4079
+ sun-like / cool red).
4080
+ R523 cycles a 3-color deterministic rotation based on
4081
+ `i % 3`:
4082
+ i % 3 === 0 → #a5b4fc indigo-300 (original, cool)
4083
+ i % 3 === 1 → #67e8f9 cyan-300 (cyber accent, hot)
4084
+ i % 3 === 2 → #cbd5e1 slate-300 (neutral, warm white)
4085
+ All three hues sit inside the cyber theme's palette
4086
+ family (indigo / cyan / slate) so the starfield reads
4087
+ varied-but-coherent rather than rainbow. At opacity
4088
+ 0.5 (parent <g>) * 0.35-0.50 (per-dot) the temperature
4089
+ shifts are gentle but perceptible — closes the gap
4090
+ between 'dot grid' and 'star field'.
4091
+ 配色 family extension (3 anchors): R509/R510 hub-
4092
+ highlight cross-theme fill + R523 starfield color
4093
+ temperature variation. Light theme unaffected
4094
+ (starfield gated `!isLight` so light theme stays
4095
+ clean per R45's original 'white surface stays clean'
4096
+ intent).
4097
+ Deterministic on `i` — no JS hydration mismatch,
4098
+ same SSR/client output. data-topo-starfield-dot-hue
4099
+ attr exposes the resolved hue category for tests. */
4100
+ const hues = ['#a5b4fc', '#67e8f9', '#cbd5e1'] as const;
4101
+ const hueNames = ['indigo', 'cyan', 'slate'] as const;
4102
+ const hueIdx = i % 3;
4103
+ 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]} />;
3811
4104
  })}
3812
4105
  </g>
3813
4106
  )}
@@ -4494,12 +4787,75 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
4494
4787
  // pinned → fill 0.08 / 0.13, stroke 3 px (locked)
4495
4788
  // hovered → fill 0.05 / 0.09, stroke 2 px (inspecting)
4496
4789
  // idle → fill 0.025 / 0.045, stroke 1.5 px dashed
4497
- fillOpacity={isPinned ? (isLight ? 0.08 : 0.13)
4498
- : isHovered ? (isLight ? 0.05 : 0.09)
4499
- : (isLight ? 0.025 : 0.045)}
4790
+ /* Round 506 / Loop category-differentiation family
4791
+ 3rd anchor. Orphan band rest-state fillOpacity drops
4792
+ slightly below prefix-group rest (0.025/0.045
4793
+ 0.015/0.028). Adds a 3rd independent paint
4794
+ differentiator to the orphan visual signature:
4795
+ R499 fontStyle: italic (label text)
4796
+ R503 '3 6' dash pattern (rect stroke)
4797
+ R506 lower fillOpacity (rect fill) ← this round
4798
+ Three independent channels (typography + stroke
4799
+ pattern + fill density) collectively encode the
4800
+ catchall semantic at rest. Pin and hover branches
4801
+ UNCHANGED (still 0.05/0.09 hover, 0.08/0.13 pin) —
4802
+ orphan box gets full visual emphasis on inspection
4803
+ identical to prefix groups; the differentiation
4804
+ lives ONLY in the unsolicited rest state. The
4805
+ ~40% drop (0.045 → 0.028 cyber, 0.025 → 0.015
4806
+ light) is subtle enough that the orphan box stays
4807
+ visible at rest, just quieter — matches the
4808
+ "misc bucket, less attention-deserving" semantic
4809
+ without losing the visual anchor.
4810
+ Pure paint axis; bbox unchanged; R51 SVG sentinel
4811
+ safety untouched (overlap-test gates to g[data-
4812
+ node], cluster rect invisible to it).
4813
+ data-group-box-fill-opacity attr surfaces the
4814
+ resolved value for tests. */
4815
+ fillOpacity={
4816
+ isPinned ? (isLight ? 0.08 : 0.13)
4817
+ : isHovered ? (isLight ? 0.05 : 0.09)
4818
+ : box.isOrphan ? (isLight ? 0.015 : 0.028)
4819
+ : (isLight ? 0.025 : 0.045)
4820
+ }
4821
+ data-group-box-fill-opacity={
4822
+ isPinned ? (isLight ? 0.08 : 0.13)
4823
+ : isHovered ? (isLight ? 0.05 : 0.09)
4824
+ : box.isOrphan ? (isLight ? 0.015 : 0.028)
4825
+ : (isLight ? 0.025 : 0.045)
4826
+ }
4500
4827
  stroke={(isPinned || isHovered) ? pal.legendAccent : pal.ringStroke}
4501
4828
  strokeWidth={isPinned ? 3 : isHovered ? 2 : 1.5}
4502
- strokeDasharray={(isPinned || isHovered) ? 'none' : '6 6'}
4829
+ /* Round 503 / Loop category-differentiation family
4830
+ 2nd anchor (R499 = orphan label italic, 1st anchor).
4831
+ Orphan band rest-state strokeDasharray switches from
4832
+ '6 6' (prefix-group default) to '3 6' (tighter
4833
+ dashes). Pre-R503 the rect dash pattern was uniform
4834
+ across all bands; combined with R499's italic label,
4835
+ the orphan box now has TWO independent paint/
4836
+ typography differentiators at rest:
4837
+ R499 fontStyle: italic (label text)
4838
+ R503 '3 6' dash pattern (rect stroke) ← this round
4839
+ The R85 marching-ants animation continues to work
4840
+ with the new dash size (uses --march-dur custom
4841
+ property, dash-length-agnostic) — orphan's ants
4842
+ just have a different visual rhythm than prefix-
4843
+ group ants, reinforcing the catchall semantic.
4844
+ Pinned/hovered orphan still gets 'none' (solid
4845
+ stroke) so the hover/pin affordance is preserved
4846
+ — the differentiation lives ONLY in the rest
4847
+ state, never blocking inspection.
4848
+ Pure paint axis; no geometry change; bbox unchanged
4849
+ (strokeDasharray is paint-only). R51 SVG sentinel
4850
+ safety untouched (overlap-test gates to g[data-
4851
+ node], this cluster rect is invisible to it).
4852
+ data-group-box-orphan attr surfaces the gate for
4853
+ tests + future polish references. */
4854
+ strokeDasharray={
4855
+ (isPinned || isHovered) ? 'none' :
4856
+ box.isOrphan ? '3 6' : '6 6'
4857
+ }
4858
+ data-group-box-orphan={box.isOrphan ? 'true' : 'false'}
4503
4859
  /* Round 380 / Loop: cluster box stroke gets round
4504
4860
  linecap + round linejoin. Sibling SVG stroke-
4505
4861
  softening polish to R378 flow-rail linecap + R379
@@ -4844,16 +5200,39 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
4844
5200
  ease-out' alongside the existing fill/ls/fw/opacity
4845
5201
  200ms tweens. */
4846
5202
  data-group-label-glow={isPinned ? 'true' : 'false'}
5203
+ /* Round 499 / Loop — orphan band "其他" label gets
5204
+ fontStyle: italic to visually distinguish the
5205
+ catchall from real prefix-group bands. Pre-R499
5206
+ the orphan box label rendered identically to
5207
+ prefix-group labels (Hero D fontSize=9, fw=700,
5208
+ opacity 0.55 rest), so users had to read the
5209
+ literal text "其他" to identify the catchall. R499
5210
+ adds a pure-typography differentiation: italic
5211
+ signals "this is the misc bucket, not a real
5212
+ named group" while preserving full opacity
5213
+ affordance on hover/pin — the orphan box stays
5214
+ equally inspectable, just typographically marked
5215
+ as a different category. No geometry change
5216
+ (italic shifts glyph slant within the same bbox),
5217
+ no opacity loss, no behavior change. Sibling to
5218
+ R432 letter-spacing 3-tier + R457 pin fw-lift +
5219
+ R479 pin drop-shadow at the group-label scope.
5220
+ Falls under 配色 / 节点视觉 themes per the prompt;
5221
+ advances the "信息密度" axis by encoding
5222
+ category-distinction into a single typography
5223
+ channel without adding visual chrome. */
4847
5224
  style={{
4848
5225
  transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out, opacity 200ms ease-out, filter 200ms ease-out',
4849
5226
  letterSpacing: isPinned ? '0.5px' :
4850
5227
  isHovered ? '0.25px' : '0px',
5228
+ fontStyle: box.isOrphan ? 'italic' : undefined,
4851
5229
  filter: isPinned
4852
5230
  ? `drop-shadow(0 0 3px ${pal.legendAccent}80)`
4853
5231
  : undefined,
4854
5232
  }}
4855
5233
  data-group-label={box.key}
4856
5234
  data-group-label-pinned={isPinned ? 'true' : 'false'}
5235
+ data-group-label-orphan={box.isOrphan ? 'true' : 'false'}
4857
5236
  >
4858
5237
  {box.key}
4859
5238
  {/* Round 19 / Loop: member-count chip. Inline tspan stays
@@ -6468,11 +6847,45 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
6468
6847
  so the glow eases under the same cadence as the
6469
6848
  scale + fw + fill axes. */
6470
6849
  data-topo-hub-working-count-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
6850
+ /* Round 507 / Loop — focal recede. When ANY non-hub
6851
+ canvas surface is hovered (a node / an edge / a
6852
+ group label / a legend row / a vendor chip), the
6853
+ hub-center workingCount digit fades to 0.85 opacity,
6854
+ signaling "you're inspecting elsewhere, hub recedes
6855
+ to background." When the user un-hovers (or hovers
6856
+ the hub itself), opacity returns to 1.0. Pure paint
6857
+ polish at the canvas's most prominent focal point.
6858
+ Hits 信息密度 + 动效 themes — the hub digit gives
6859
+ way visually to the surface under inspection,
6860
+ reinforcing the "this is the focal point right now"
6861
+ gesture without requiring users to track which
6862
+ surface holds attention.
6863
+ Gate excludes hoveredHub specifically: hovering the
6864
+ hub itself should LIFT the digit (R425 fw bump +
6865
+ R476 glow + R209 scale 1.08) — the existing hover-
6866
+ on-hub signature is intact; only inspection
6867
+ ELSEWHERE recedes the hub.
6868
+ Composed from existing hoveredAlias / hoveredEdge-
6869
+ Key / hoveredGroupLabel / hoveredStatus / hovered-
6870
+ Vendor — no new state. 300ms ease-out opacity
6871
+ transition already in the style list (existing R213
6872
+ transition spec), so the fade rides on existing
6873
+ infrastructure.
6874
+ data-topo-hub-recede attr surfaces the gate state
6875
+ for tests. */
6876
+ data-topo-hub-recede={
6877
+ (hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
6878
+ hoveredStatus || hoveredVendor) && !hoveredHub ? 'true' : 'false'
6879
+ }
6471
6880
  style={{
6472
6881
  pointerEvents: 'none',
6473
6882
  transform: !reducedMotion && hoveredHub ? 'scale(1.08)' : 'scale(1)',
6474
6883
  transformBox: 'fill-box',
6475
6884
  transformOrigin: 'center',
6885
+ opacity: (hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
6886
+ hoveredStatus || hoveredVendor) && !hoveredHub
6887
+ ? 0.85
6888
+ : 1,
6476
6889
  filter: !reducedMotion && hoveredHub
6477
6890
  ? (isLight
6478
6891
  ? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.6))'
@@ -6482,7 +6895,9 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
6482
6895
  bump 700 → 800 eases under the same cadence as
6483
6896
  R209 scale + R253 fill + R213 opacity.
6484
6897
  R476: filter 200ms appended so the new drop-
6485
- shadow glow eases at the same cadence. */
6898
+ shadow glow eases at the same cadence.
6899
+ R507: opacity 300ms (existing in list) covers
6900
+ the new focal-recede fade. */
6486
6901
  transition: 'transform 200ms ease-out, opacity 300ms ease-out, fill 200ms ease-out, font-weight 200ms ease-out, filter 200ms ease-out',
6487
6902
  fontVariantNumeric: 'tabular-nums',
6488
6903
  }}
@@ -6529,19 +6944,138 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
6529
6944
  + R213 always-mount opacity-gate + pointerEvents:none
6530
6945
  + R365 r=5.5 all preserved. data-topo-hub-highlight-
6531
6946
  opacity attr exposes the resolved value for tests. */}
6532
- <circle
6533
- cx={cx} cy={cy} r="5.5"
6534
- fill="#d1fae5"
6535
- opacity={workingCount > 0 ? 0 : 0.95}
6536
- data-topo-hub-highlight
6537
- data-topo-hub-highlight-visible={workingCount > 0 ? 'false' : 'true'}
6538
- data-topo-hub-highlight-radius="5.5"
6539
- data-topo-hub-highlight-opacity={workingCount > 0 ? 0 : 0.95}
6540
- style={{
6541
- pointerEvents: 'none',
6542
- transition: 'opacity 300ms ease-out',
6543
- }}
6544
- />
6947
+ {/* Round 508 / Loop — focal-recede pattern 2nd anchor.
6948
+ Extends R507's hub-digit recede to the hub-highlight
6949
+ circle so the hub focal CLUSTER (digit at z-top + this
6950
+ idle-state highlight beneath) recedes as a unit when
6951
+ canvas attention is elsewhere. Computed once: a single
6952
+ non-hub-hover gate drives BOTH the digit (R507) AND
6953
+ this highlight (R508) so they always co-move.
6954
+ Recede multiplies the visible opacity by 0.85 — when
6955
+ workingCount===0 the rest opacity 0.95 becomes 0.81
6956
+ during external-hover; when workingCount>0 the
6957
+ opacity stays 0 (invisible) regardless of recede.
6958
+ Additionally, when recede is active the SMIL breath
6959
+ animation halts (animate node un-mounts) so the
6960
+ receded state reads as quietly static, not pulsing
6961
+ at 0.85↔1.0 against the recede multiplier (which
6962
+ would visually conflict — competing 15% drops). On
6963
+ un-hover the animate re-mounts and breath resumes.
6964
+ data-topo-hub-recede on both digit AND highlight
6965
+ provides a stable test handle for the unified-recede
6966
+ gate.
6967
+ Composed from existing hover state vars — no new
6968
+ state. Pure paint axis. */}
6969
+ {(() => {
6970
+ const hubRecede = !!((hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
6971
+ hoveredStatus || hoveredVendor) && !hoveredHub);
6972
+ /* Round 511 / Loop — hub-highlight gains a 3rd opacity tier
6973
+ (hovered-amplify). Pre-R511 the highlight had 2 visible
6974
+ states: rest (0.95) and recede (0.81 = 0.95 × 0.85).
6975
+ When the hub itself was hovered, the digit got R425 fw
6976
+ lift + R476 drop-shadow + R209 scale-1.08, but the
6977
+ highlight disc sibling stayed at 0.95 — the focal
6978
+ cluster lifted in 3 channels (typography/paint/scale)
6979
+ but the highlight didn't participate.
6980
+ R511 closes that asymmetry: when hoveredHub is true,
6981
+ highlight base opacity lifts to 1.0 (5% boost from
6982
+ rest 0.95). Cluster now lifts as a unit on hub-hover,
6983
+ just like it recedes as a unit on non-hub-hover
6984
+ (R508).
6985
+ 3-state opacity ladder:
6986
+ hub-hovered: baseOpacity = 1.0 (R511 NEW)
6987
+ rest (no hover): baseOpacity = 0.95 (existing)
6988
+ non-hub canvas hov: baseOpacity × 0.85 = 0.81 (R508)
6989
+ Composes cleanly: hubRecede gate requires !hoveredHub,
6990
+ so the hovered-amplify and recede states are mutually
6991
+ exclusive (they can't both fire). breathActive
6992
+ continues to halt on either non-rest state (recede OR
6993
+ hub-hover would visually compete with the 0.85↔1
6994
+ breath — clean for the unit-lift semantic too). */
6995
+ const baseOpacity = workingCount > 0 ? 0
6996
+ : hoveredHub ? 1.0
6997
+ : 0.95;
6998
+ const resolvedOpacity = hubRecede ? baseOpacity * 0.85 : baseOpacity;
6999
+ const breathActive = !reducedMotion && workingCount === 0 && !hubRecede && !hoveredHub;
7000
+ return (
7001
+ <circle
7002
+ cx={cx} cy={cy} r="5.5"
7003
+ /* Round 509 / Loop — 配色 cross-theme cleanup. Pre-R509
7004
+ the hub-highlight fill was hardcoded `#d1fae5`
7005
+ (emerald-100, a pale tone). On the light theme this
7006
+ near-white green ran against a pale background at
7007
+ 0.95 opacity — the disc was effectively invisible.
7008
+ Matches the existing R253 halo theme-inversion
7009
+ pattern (line ~6481): light theme picks the dark
7010
+ vibrant emerald (#10b981 emerald-600), dark theme
7011
+ keeps the pale emerald (#d1fae5 emerald-100). Both
7012
+ read at the same 0.95 opacity against their
7013
+ respective backdrops — light gets a saturated
7014
+ focal dot; dark keeps the soft glow signature.
7015
+ Pure paint axis (fill change only); bbox unchanged;
7016
+ R51 SVG sentinel safety untouched.
7017
+ transition list already includes `fill 200ms`?
7018
+ Actually the existing transition spec is `opacity
7019
+ 300ms ease-out` — fill change on theme toggle
7020
+ will be instant. That's acceptable: theme toggle
7021
+ is a discrete event, and the halo (line 6500)
7022
+ already snaps fill on theme toggle the same way
7023
+ (`fill 200ms ease-out` was added later to halo
7024
+ via R253). Future round could add `fill 200ms`
7025
+ to highlight too if theme-switch flicker is
7026
+ noticed. */
7027
+ fill={isLight ? '#10b981' : '#d1fae5'}
7028
+ opacity={resolvedOpacity}
7029
+ data-topo-hub-highlight
7030
+ data-topo-hub-highlight-visible={workingCount > 0 ? 'false' : 'true'}
7031
+ data-topo-hub-highlight-radius="5.5"
7032
+ data-topo-hub-highlight-opacity={resolvedOpacity}
7033
+ data-topo-hub-highlight-breath={breathActive ? 'true' : 'false'}
7034
+ data-topo-hub-highlight-recede={hubRecede ? 'true' : 'false'}
7035
+ /* Round 510 / Loop — R509 follow-on: theme-toggle fill
7036
+ ease. Pre-R510 the hub-highlight transition spec only
7037
+ listed `opacity 300ms ease-out`. When R509 introduced
7038
+ theme-conditional fill (#d1fae5 ↔ #10b981), the fill
7039
+ change SNAPPED on theme toggle because the transition
7040
+ list didn't include `fill`. R510 extends to `fill
7041
+ 200ms ease-out` so theme cycles smoothly through the
7042
+ emerald palette. 200ms timing matches the R253 halo
7043
+ fill transition (line ~6500) — both hub-cluster
7044
+ theme transitions now share a cadence so the focal
7045
+ cluster (digit + highlight + halo) eases as a unit.
7046
+ R508's recede opacity transition unchanged (300ms);
7047
+ fill is independent. */
7048
+ style={{
7049
+ pointerEvents: 'none',
7050
+ transition: 'opacity 300ms ease-out, fill 200ms ease-out',
7051
+ }}
7052
+ >
7053
+ {/* Round 497 / Loop — idle-state breath (呼吸感 theme pivot
7054
+ from the R492-R496 press-family arc). Pre-R497 the hub
7055
+ idle highlight read as a static dim disc — present but
7056
+ motionless, visually mute. R497 adds a 4s opacity breath
7057
+ (0.85 ↔ 1.0 ↔ 0.85) so the hub reads "alive but quiet"
7058
+ instead of "frozen", giving the empty-fleet state a
7059
+ subtle living signature.
7060
+ Gates:
7061
+ - !reducedMotion (R29 a11y blanket) — reducedMotion
7062
+ users see static 0.95 disc, no animate
7063
+ - workingCount === 0 — when fleet is busy, the
7064
+ highlight is invisible (opacity=0) so the animate
7065
+ would waste paint cycles. Gating saves work.
7066
+ SMIL <animate> overrides the static opacity={0.95}
7067
+ during its run; falls back to 0.95 when reducedMotion
7068
+ flips on (the animate node simply doesn't render).
7069
+ 4s cycle is long enough to feel like ambient breath
7070
+ rather than a pulse, matching the "quiet" semantic.
7071
+ data-topo-hub-highlight-breath attr exposes the
7072
+ resolved gate state for tests. */}
7073
+ {breathActive && (
7074
+ <animate attributeName="opacity" values="0.85;1;0.85" dur="4s" repeatCount="indefinite" />
7075
+ )}
7076
+ </circle>
7077
+ );
7078
+ })()}
6545
7079
  {/* R115 / Loop: hover hint ring. Stroke-only circle at r=14
6546
7080
  that fades in when the hub is hovered — the same idea
6547
7081
  R44 used for node avatars (group-hover stroke). r=14
@@ -7526,6 +8060,30 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
7526
8060
  const internByAlias = /书生|书小生|intern/i.test(session.alias);
7527
8061
 
7528
8062
  if (isIntern || internByAlias || vendor.logo) {
8063
+ /* Round 501 / Loop — vendor avatar inside node circles
8064
+ gains a hover-gated brightness lift. Pre-R501 the
8065
+ avatar <image> was the only per-node surface with
8066
+ NO hover treatment: R26 lifted the card, R242 tinted
8067
+ the card stroke, R427 spread the alias letter-
8068
+ spacing, R500 added the alias drop-shadow, R208
8069
+ lifted the runtime badge ring, R443 thickened
8070
+ the badge icon stroke, R177 brightened the
8071
+ halo — but the most visually-prominent element
8072
+ (the vendor logo / 书生 coin centred in each node)
8073
+ stayed paint-static. R501 closes the per-node
8074
+ hover-affordance arc by adding a 15% brightness
8075
+ lift on hover.
8076
+ Implementation: CSS filter: brightness(1.15)
8077
+ when hoveredAlias === session.alias. Pure paint
8078
+ axis on the <image> element — no geometry change,
8079
+ no bbox shift. Modern-browser supported (Chrome 64+
8080
+ / FF 56+ / Safari 9.1+).
8081
+ Hits 节点视觉 theme. data-node-avatar-hovered
8082
+ attr surfaces the gate for tests.
8083
+ Gated on !reducedMotion as a courtesy (brightness
8084
+ transition < ~50ms still feels instant; the gate
8085
+ avoids the transition cycle for a11y users). */
8086
+ const isAvatarHovered = !reducedMotion && hoveredAlias === session.alias;
7529
8087
  return (
7530
8088
  <image
7531
8089
  href={vendor.logo ?? '/intern_avatar.png'}
@@ -7534,6 +8092,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
7534
8092
  width={size}
7535
8093
  height={size}
7536
8094
  preserveAspectRatio="xMidYMid meet"
8095
+ data-node-avatar={session.alias}
8096
+ data-node-avatar-hovered={isAvatarHovered ? 'true' : 'false'}
8097
+ style={{
8098
+ filter: isAvatarHovered ? 'brightness(1.15)' : undefined,
8099
+ transition: 'filter 200ms ease-out',
8100
+ }}
7537
8101
  />
7538
8102
  );
7539
8103
  }
@@ -7957,6 +8521,43 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
7957
8521
  R211 fill 300ms + R305 letter-spacing 200ms
7958
8522
  transition list preserved; only the
7959
8523
  conditional gets a middle case. */}
8524
+ {/* Round 500 / Loop — milestone round, opens
8525
+ per-node alias drop-shadow polish. Extends the
8526
+ R476-R481 drop-shadow visual-polish family to a
8527
+ 7th anchor: hovered alias text gains a soft
8528
+ status-coloured text-glow. Pre-R500 hover on
8529
+ a node triggered card-lift (R26 translateY) +
8530
+ card-stroke (R242 tint) + alias letter-spacing
8531
+ (R427 0.3px tier) but the alias TEXT itself had
8532
+ no paint-axis cue beyond fill (R211). R500 adds
8533
+ a drop-shadow on the text glyph itself, so the
8534
+ identity glyph itself lights up under attention
8535
+ — matching the R476 idiom (hub-digit emerald
8536
+ glow on hover) at the per-node identity scope.
8537
+ 2px blur radius at 50% alpha — subtler than the
8538
+ R476 hub-digit (3px at 60%) because the alias
8539
+ text is smaller and more numerous (1 per node)
8540
+ so an aggressive glow would multiply into
8541
+ visual noise. Status-coloured (status.text) so
8542
+ the glow inherits the node's working/idle/
8543
+ offline palette — green/cyan/gray respectively.
8544
+ Drop-shadow visual-polish family — 7 anchors:
8545
+ R476 hub digit hover-gated emerald
8546
+ R477 legend pin-ring pin-gated row.fill
8547
+ R478 recent-row pip fresh-gated cyan
8548
+ R479 group-label text pin-gated cyan
8549
+ R480 hot-lane edge hot-gated amber
8550
+ R481 zoom-state minimap zoom-gated cyan
8551
+ R500 node alias text hover-gated status.text ← this round
8552
+ Filter is paint-only; bbox unchanged; overlap-
8553
+ test invariants hold (R51 selector gated to
8554
+ g[data-node] descendants with strokeWidth
8555
+ sentinels; text element doesn't carry stroke).
8556
+ transition list extends to include 'filter
8557
+ 200ms ease-out' alongside the existing fill
8558
+ 300ms + letter-spacing 200ms tweens.
8559
+ data-node-alias-glow attr surfaces the hover
8560
+ gate for tests. */}
7960
8561
  <text
7961
8562
  x="0" y="1" textAnchor="middle"
7962
8563
  fill={status.text}
@@ -7964,11 +8565,15 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
7964
8565
  data-node-alias-text={session.alias}
7965
8566
  data-node-alias-chat-target={chatAlias === session.alias ? 'true' : 'false'}
7966
8567
  data-node-alias-hovered={hoveredAlias === session.alias ? 'true' : 'false'}
8568
+ data-node-alias-glow={!reducedMotion && hoveredAlias === session.alias ? 'true' : 'false'}
7967
8569
  style={{
7968
- transition: 'fill 300ms ease-out, letter-spacing 200ms ease-out',
8570
+ transition: 'fill 300ms ease-out, letter-spacing 200ms ease-out, filter 200ms ease-out',
7969
8571
  letterSpacing:
7970
8572
  chatAlias === session.alias ? '0.5px' :
7971
8573
  hoveredAlias === session.alias ? '0.3px' : '0px',
8574
+ filter: !reducedMotion && hoveredAlias === session.alias
8575
+ ? `drop-shadow(0 0 2px ${status.text}80)`
8576
+ : undefined,
7972
8577
  }}
7973
8578
  >
7974
8579
  {truncate(session.alias, fullMax)}
@@ -9378,12 +9983,30 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
9378
9983
  under the same R320 fill cadence. data-
9379
9984
  recent-row-count-pinned attr exposes the
9380
9985
  pin gate for tests. */}
9986
+ {/* Round 498 / Loop — hot-count subtle pulse. Pre-
9987
+ R498 the hot row count signaled via color (R127
9988
+ amber fill) + weight (R320 fw-700) + (R445 pin
9989
+ lift) but stayed visually motionless. R498 adds
9990
+ a 3s opacity breath (0.85↔1.0) on the digit when
9991
+ isHot && !reducedMotion — gentle "alive" signal
9992
+ on the lane carrying ≥ 10 messages, drawing
9993
+ glance without becoming noisy. Sibling of R497
9994
+ hub-idle-breath in the 呼吸感 theme arc; same
9995
+ 0.85↔1.0 amplitude. Class adds an animation-
9996
+ only paint axis; no layout / bbox change. R29
9997
+ blanket also catches `animation-duration` for
9998
+ reducedMotion users, but the component-side
9999
+ gate makes the intent explicit and avoids
10000
+ a node tree thrash for those users (className
10001
+ stays absent rather than present-but-paused). */}
9381
10002
  <tspan
9382
10003
  fill={isHot ? hotStroke : undefined}
9383
10004
  fontWeight={(isHot || isRowPinned) ? '700' : '600'}
10005
+ className={isHot && !reducedMotion ? 'anet-recent-hot-pulse' : undefined}
9384
10006
  data-recent-row-count
9385
10007
  data-recent-row-count-pinned={isRowPinned ? 'true' : 'false'}
9386
10008
  data-recent-row-count-font-weight={(isHot || isRowPinned) ? '700' : '600'}
10009
+ data-recent-row-count-hot-pulse={isHot && !reducedMotion ? 'true' : 'false'}
9387
10010
  {...(isHot ? { 'data-recent-row-count-hot': 'true' } : {})}
9388
10011
  style={{
9389
10012
  transition: 'fill 300ms ease-out, font-weight 200ms ease-out',
@@ -9627,6 +10250,39 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
9627
10250
  stays as is, so the rest-vs-hover delta still
9628
10251
  reads clearly. data-recent-panel-more-font-weight
9629
10252
  attr exposes the value for tests. */}
10253
+ {/* Round 520 / Loop — extends the `+N more flows` footer
10254
+ to a 5-axis hover signature by adding fontWeight
10255
+ 500 → 600 on hover. Pre-R520 the footer carried 4
10256
+ hover axes:
10257
+ R195 fill legendText → legendAccent
10258
+ R325 letter-spacing 0.2 → 0.3px (R344 tween)
10259
+ R325 opacity 0.55 → 0.85
10260
+ R133 underline none → underline
10261
+ R368 had set fontWeight 500 statically as a sibling
10262
+ to R363/R364/R366 small-text fw lift family — but
10263
+ the footer's hover state didn't carry a fontWeight
10264
+ DELTA the way other interactive surfaces do (chip-
10265
+ row counts R416, chrome zoom-level R420, hub digit
10266
+ R425). R520 adds the missing weight axis: fw 500
10267
+ → 600 on hover, so the footer reads "thickening AND
10268
+ lighting up" under cursor — same idiom as the
10269
+ chrome zoom-level R420 / chip-row digit R416 hover-
10270
+ bold pattern, applied at the panel nav-action
10271
+ surface.
10272
+ data-recent-panel-more-font-weight attr value
10273
+ flips from '500' → '600' on hover (was static
10274
+ '500' pre-R520).
10275
+ Bonus closure — R475 panel-text cadence: pre-R520
10276
+ the footer's transition list had `opacity 150ms`
10277
+ while R475 unified panel-text transitions at
10278
+ 200ms. R518 closed the same gap at legend-count.
10279
+ R520 closes the LAST panel-text 150ms holdout
10280
+ here AND adds the new font-weight 200ms axis. All
10281
+ 4 transition properties (opacity / fill / letter-
10282
+ spacing / font-weight) now uniform 200ms at the
10283
+ footer — same cadence as legend-label / legend-
10284
+ count / recent-row alias / recent-row count /
10285
+ group-label. */}
9630
10286
  <text
9631
10287
  x="115" y="82"
9632
10288
  textAnchor="middle"
@@ -9634,14 +10290,15 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
9634
10290
  fontSize="9"
9635
10291
  fontFamily="monospace"
9636
10292
  fontStyle="italic"
9637
- fontWeight="500"
10293
+ fontWeight={hoveredRecentMore ? '600' : '500'}
9638
10294
  letterSpacing={hoveredRecentMore ? '0.3' : '0.2'}
9639
10295
  opacity={hoveredRecentMore ? 0.85 : 0.55}
9640
10296
  textDecoration={hoveredRecentMore ? 'underline' : 'none'}
9641
10297
  data-recent-panel-more={moreCount}
9642
10298
  data-recent-panel-more-hovered={hoveredRecentMore ? 'true' : 'false'}
9643
- data-recent-panel-more-font-weight="500"
9644
- style={{ transition: 'opacity 150ms ease-out, fill 200ms ease-out, letter-spacing 200ms ease-out' }}
10299
+ data-recent-panel-more-font-weight={hoveredRecentMore ? '600' : '500'}
10300
+ data-recent-panel-more-transition="200ms"
10301
+ style={{ transition: 'opacity 200ms ease-out, fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out' }}
9645
10302
  >
9646
10303
  {`+ ${moreCount}`}
9647
10304
  <tspan opacity="0.7" data-recent-panel-more-unit>{` more flow${moreCount === 1 ? '' : 's'}`}</tspan>
@@ -10358,7 +11015,43 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
10358
11015
  data-legend-count-pinned={isPinned ? 'true' : 'false'}
10359
11016
  data-legend-count-font-weight={isPinned ? '700' : '600'}
10360
11017
  data-legend-count-fill={row.count > 0 && (hoveredStatus === row.key || isPinned) ? 'tier' : 'neutral'}
10361
- style={{ pointerEvents: 'none', transition: 'opacity 150ms ease-out, fill 150ms ease-out, font-weight 150ms ease-out', fontVariantNumeric: 'tabular-nums' }}
11018
+ /* Round 518 / Loop extends R433's 3-tier hover-
11019
+ letter-spacing tween from the legend-row LABEL
11020
+ (text at x=30) to the SIBLING legend-row COUNT
11021
+ digit (this text at x=215). Pre-R518 the row's
11022
+ label spread on hover/pin (R433: 0/0.25/0.5px)
11023
+ while the count digit at the row's right edge
11024
+ stayed dead-typographic — same row, two halves,
11025
+ asymmetric kerning gesture. R518 mirrors the
11026
+ 3-tier scale at the count so the WHOLE row's
11027
+ typography reads as one unit under cursor: label
11028
+ + count spread together at matching values.
11029
+ Tabular-nums (R225) makes the kerning still
11030
+ visible on 2-digit counts — each digit cell
11031
+ keeps its fixed width, but the inter-digit
11032
+ advance grows. R518 also closes R475's panel-
11033
+ row TEXT cadence at the count surface — R475
11034
+ lifted the label text transitions to 200ms but
11035
+ the count was missed; R518 lifts opacity / fill
11036
+ / font-weight from 150 → 200ms AND adds the new
11037
+ letter-spacing axis at 200ms. One transition
11038
+ list, one cadence, one motion-coherent multi-
11039
+ axis hover/pin signature across the row.
11040
+ Hover-letter-spacing family extension (10
11041
+ anchors now): R344/R345/R347/R420/R427/R431/
11042
+ R432/R433/R517/R518. R518 closes the legend-
11043
+ row pair (label R433 + count R518). data-
11044
+ legend-count-letter-spacing attr exposes the
11045
+ resolved value for tests. */
11046
+ data-legend-count-letter-spacing={isPinned ? '0.5px' : hoveredStatus === row.key ? '0.25px' : '0px'}
11047
+ data-legend-count-transition="200ms"
11048
+ style={{
11049
+ pointerEvents: 'none',
11050
+ transition: 'opacity 200ms ease-out, fill 200ms ease-out, font-weight 200ms ease-out, letter-spacing 200ms ease-out',
11051
+ fontVariantNumeric: 'tabular-nums',
11052
+ letterSpacing: isPinned ? '0.5px' :
11053
+ hoveredStatus === row.key ? '0.25px' : '0px',
11054
+ }}
10362
11055
  >{row.count}</text>
10363
11056
  </g>
10364
11057
  );
@@ -10417,6 +11110,74 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
10417
11110
  spacing as typographic intent. Stays well inside the
10418
11111
  bottom-left corner; opacity 0.4 unchanged so the
10419
11112
  watermark stays a watermark. */}
11113
+ {/* Round 519 / Loop — 呼吸感 family 3rd anchor. Pre-R519 the
11114
+ breath family had 2 anchors (R497 hub idle digit + R498
11115
+ recent-row hot pulse). Both signal active state — the
11116
+ digit when canvas is idle (no work pending), the recent
11117
+ row when fresh signal arrives. R519 adds a SLOW ambient
11118
+ breath to the brand watermark — present always, not gated
11119
+ on activity state. The watermark IS the canvas-corner
11120
+ register that says "the canvas is alive even when nothing
11121
+ is happening"; a 6s opacity pulse around its 0.4 mean
11122
+ (±0.08 swing → 0.32 ↔ 0.48) reads as ambient liveness
11123
+ rather than foreground signal.
11124
+ Why 6s (not R497's 4s): the breath family now spans
11125
+ activity registers (R497 4s — idle-focal: present and
11126
+ waiting; R498 ~3s — hot signal: just arrived) and now
11127
+ ambient register (R519 6s — corner watermark: always-on
11128
+ background). Slower cadence keeps the watermark in the
11129
+ background; ~10 pct slower than R497 keeps it out of
11130
+ phase so the two anchors never beat together visibly.
11131
+ Gate: !reducedMotion. Inside the prefers-reduced-motion
11132
+ media query, SMIL animate isn't covered by globals.css
11133
+ R29 (which only kills CSS animation property), so we
11134
+ gate at JSX level — when reducedMotion is true the
11135
+ <animate> child isn't mounted and opacity stays at the
11136
+ static 0.4. data-topo-brand-watermark-breath attr
11137
+ exposes the gate state for tests.
11138
+ 呼吸感 family extension (3 anchors): R497 hub idle / R498
11139
+ recent-row hot / R519 brand watermark ambient. */}
11140
+ {/* Round 525 / Loop — focal-recede family 3rd anchor. R507
11141
+ receded the hub-center workingCount digit; R508 receded
11142
+ the hub-highlight disc; both fade to 0.85× when any non-
11143
+ hub canvas surface is hovered (alias / edge / group /
11144
+ status / vendor) — the "you're inspecting elsewhere"
11145
+ gesture. R525 extends the pattern to the brand watermark
11146
+ at canvas bottom-left, the always-on decorative brand
11147
+ element. Pre-R525 the watermark stayed at its R519
11148
+ breath baseline (0.32-0.48 SMIL pulse) regardless of
11149
+ canvas attention; post-R525 it fades to 70% wrapper
11150
+ opacity (effective 0.224-0.336 with breath) when canvas
11151
+ attention is elsewhere, matching the same focal-recede
11152
+ semantic R507/R508 establish at the hub focal cluster.
11153
+ Implementation: wrap the existing <text> in a <g>
11154
+ wrapper whose opacity multiplies with the inner text's
11155
+ SMIL-animated opacity. SVG opacity composes
11156
+ multiplicatively across the parent/child chain, so:
11157
+ normal: g.opacity=1.0 × text.opacity(SMIL 0.32-0.48) = 0.32-0.48
11158
+ recede: g.opacity=0.7 × text.opacity(SMIL 0.32-0.48) = 0.224-0.336
11159
+ SMIL on inner text continues running through both
11160
+ states; only the wrapper opacity flips. 300ms ease-out
11161
+ transition on wrapper (matches R508 hub-highlight recede
11162
+ transition).
11163
+ Gate matches R507/R508 — focal-recede is a UNIFIED
11164
+ non-hub-canvas-hover signal driving multiple anchors,
11165
+ so all three (hub digit / hub-highlight / brand
11166
+ watermark) fade together as the canvas's decorative
11167
+ register, leaving only the surface under inspection
11168
+ foregrounded.
11169
+ Focal-recede family extension (3 anchors): R507 hub
11170
+ digit / R508 hub-highlight / R525 brand watermark. */}
11171
+ <g
11172
+ opacity={(hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
11173
+ hoveredStatus || hoveredVendor) && !hoveredHub ? 0.7 : 1}
11174
+ data-topo-brand-watermark-wrapper
11175
+ data-topo-brand-watermark-recede={
11176
+ (hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
11177
+ hoveredStatus || hoveredVendor) && !hoveredHub ? 'true' : 'false'
11178
+ }
11179
+ style={{ pointerEvents: 'none', transition: 'opacity 300ms ease-out' }}
11180
+ >
10420
11181
  <text
10421
11182
  x="16" y="672"
10422
11183
  fontSize="11" fontFamily="monospace" fontWeight="600"
@@ -10424,8 +11185,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
10424
11185
  fill={pal.legendText}
10425
11186
  opacity="0.4"
10426
11187
  data-topo-brand-watermark
11188
+ data-topo-brand-watermark-breath={reducedMotion ? 'false' : 'true'}
10427
11189
  style={{ pointerEvents: 'none', transition: 'fill 200ms ease-out' }}
10428
- >sleep2agi</text>
11190
+ >sleep2agi{!reducedMotion && (
11191
+ <animate attributeName="opacity" values="0.32;0.48;0.32" dur="6s" repeatCount="indefinite" />
11192
+ )}</text>
11193
+ </g>
10429
11194
  {/* v0.10.0 Hero 3 Wave 1 / RFC §3.I (Vincent 5215 + 通信龙
10430
11195
  lead-autonomy Q4 dual-anchor minimal): canvas top-left
10431
11196
  crescent moon brand mark, visible ONLY when the
@@ -10460,10 +11225,46 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
10460
11225
  the R175 panel-fade-in uses for cascade rhythm. data-
10461
11226
  topo-brand-canvas-mark-visible exposes the gate for
10462
11227
  tests. */}
11228
+ {/* Round 526 / Loop — focal-recede family 4th anchor.
11229
+ Symmetric polish to R525 (watermark recede). The
11230
+ brand crescent at canvas top-left is the second
11231
+ decorative brand element on the canvas; pre-R526 it
11232
+ stayed at flat opacity 0.35 (when visible) regardless
11233
+ of canvas attention. R526 multiplies its visible
11234
+ opacity by 0.7 when ANY non-hub canvas surface is
11235
+ hovered, matching R525's deeper-recede semantic for
11236
+ decorative brand elements (vs hub focal cluster's
11237
+ 0.85× recede at R507/R508).
11238
+ Composes cleanly with existing flowLinks gate:
11239
+ normal, flowLinks=0: opacity = 0.35 * 1.0 = 0.350
11240
+ recede, flowLinks=0: opacity = 0.35 * 0.7 = 0.245
11241
+ invisible, flowLinks>0: opacity = 0.00 * any = 0.000
11242
+ Multiplicative chain means recede only matters when
11243
+ crescent is visible (quiet canvas, flowLinks=0) —
11244
+ exactly when canvas attention elsewhere should
11245
+ dim the decorative register. 300ms transition
11246
+ already covers both axes (the existing visibility
11247
+ opacity ramp + the new recede multiplier easing).
11248
+ Focal-recede family extension (4 anchors): R507 hub
11249
+ digit / R508 hub-highlight / R525 watermark / R526
11250
+ crescent (this round). Canvas brand surfaces (R525
11251
+ watermark + R526 crescent) now BOTH carry focal-
11252
+ recede at the same 0.7 multiplier, fading as a
11253
+ decorative pair when the canvas's focal attention
11254
+ shifts elsewhere.
11255
+ data-topo-brand-canvas-mark-recede attr exposes the
11256
+ gate state for tests. */}
10463
11257
  <g
10464
- opacity={flowLinks.length === 0 ? 0.35 : 0}
11258
+ opacity={(flowLinks.length === 0 ? 0.35 : 0) * (
11259
+ (hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
11260
+ hoveredStatus || hoveredVendor) && !hoveredHub ? 0.7 : 1
11261
+ )}
10465
11262
  data-topo-brand-canvas-mark
10466
11263
  data-topo-brand-canvas-mark-visible={flowLinks.length === 0 ? 'true' : 'false'}
11264
+ data-topo-brand-canvas-mark-recede={
11265
+ (hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
11266
+ hoveredStatus || hoveredVendor) && !hoveredHub ? 'true' : 'false'
11267
+ }
10467
11268
  style={{ pointerEvents: 'none', transition: 'opacity 300ms ease-out, fill 200ms ease-out' }}
10468
11269
  >
10469
11270
  <defs>
@@ -10967,7 +11768,49 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
10967
11768
  / fullscreen) preview their active state on hover.
10968
11769
  Pure actions (zoom -/+, reset) stay white — they
10969
11770
  aren't toggles, have no active state to preview. */
10970
- className={`px-2 py-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset ${idx > 0 ? 'border-l' : ''} ${nodeScale === v ? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25' : 'hover:bg-cyan-500/5 active:bg-cyan-500/15'}${chromePopping === popKey ? ' anet-chrome-pop' : ''}`}
11771
+ // Round 493 / Loop extends R492 chrome-strip press-feedback
11772
+ // family to nodeSize S/M/L buttons. Adds active:scale-95
11773
+ // alongside the existing color-deepen (R196) + chrome-pop
11774
+ // (R249). transition-transform + duration-200 + ease-out
11775
+ // + transform-gpu added since this className previously had
11776
+ // transition-colors only — without the transform transition,
11777
+ // active:scale-95 would hard-cut. transform-gpu promotes the
11778
+ // layer so scale doesn't trigger paint thrash.
11779
+ /* Round 521 / Loop — extends R270's hover-preview pattern
11780
+ (inactive toggle hover previews the active state's
11781
+ visual register) to the TYPOGRAPHY axis at the chrome
11782
+ nodeSize S/M/L surface. Pre-R521 the inactive variant
11783
+ had `hover:bg-cyan-500/5` (R270 bg preview) but no
11784
+ typography preview — active variant uses `font-medium`
11785
+ (fw 500), inactive variant sat at default fw 400 even
11786
+ on hover.
11787
+ R521 adds `hover:font-medium` + `transition-[font-
11788
+ weight]` to the inactive variant so hovering an
11789
+ inactive S/M/L letter thickens the glyph 400 → 500,
11790
+ previewing the typography of the active state the
11791
+ click would commit to. Sibling to R421 chrome zoom-
11792
+ level fontWeight hover delta (rest 500 → hover 600)
11793
+ and R520 footer fontWeight hover (500 → 600) — same
11794
+ idiom: thicken-on-hover for chrome surfaces with a
11795
+ pre-commit gesture.
11796
+ `font-medium` (500) matches the ACTIVE variant's
11797
+ fw exactly — the inactive hover landing weight equals
11798
+ the active locked weight, so clicking commits to a
11799
+ typography state the eye already saw 'on the way in'.
11800
+ Hover-fw family extension (5 anchors now):
11801
+ R416 chip-row count digit rest 500 → hover 700/600
11802
+ R420 chrome zoom-level rest 500 → hover 600
11803
+ R425 hub-center digit rest 700 → hover 800
11804
+ R520 +N more flows footer rest 500 → hover 600
11805
+ R521 chrome nodeSize S/M/L inactive rest 400 → hover 500 ← this round
11806
+ Active variant `font-medium` unchanged so the rest-vs-
11807
+ active typography distinction stays intact when the
11808
+ user IS clicked-in (active stays at fw 500, inactive
11809
+ rest at fw 400, inactive hover preview at fw 500).
11810
+ data-topo-chrome-nodesize-hover-preview-fw="500" attr
11811
+ exposes the polish for tests. */
11812
+ className={`px-2 py-1 transition-colors transition-transform transition-[font-weight] duration-200 ease-out transform-gpu active:scale-95 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset ${idx > 0 ? 'border-l' : ''} ${nodeScale === v ? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25' : 'hover:bg-cyan-500/5 active:bg-cyan-500/15 hover:font-medium'}${chromePopping === popKey ? ' anet-chrome-pop' : ''}`}
11813
+ data-topo-chrome-nodesize-hover-preview-fw={nodeScale === v ? null : '500'}
10971
11814
  style={{ color: nodeScale === v ? undefined : pal.legendText, borderColor: pal.containerBorder }}
10972
11815
  >
10973
11816
  {lbl}
@@ -11009,7 +11852,11 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
11009
11852
  // → white/10) so mouse-down has a tactile dim before the
11010
11853
  // R186 icon pop fires on release.
11011
11854
  // R352: `group` lets the inner svg respond via group-hover.
11012
- className="group px-2 py-1 hover:bg-white/5 active:bg-white/10 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset"
11855
+ // R493 zoom +/− buttons join the chrome-strip active:scale-95
11856
+ // press-feedback family (R492 + nodeSize above). transition-
11857
+ // transform + duration-200 + ease-out + transform-gpu added
11858
+ // since the className had only transition-colors.
11859
+ className="group px-2 py-1 hover:bg-white/5 active:bg-white/10 transition-colors transition-transform 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"
11013
11860
  style={{ color: pal.legendText }}
11014
11861
  aria-label="Zoom out"
11015
11862
  title="Zoom out (−)"
@@ -11101,10 +11948,32 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
11101
11948
  ? 'true' : 'false'
11102
11949
  }
11103
11950
  data-topo-chrome-zoom-level-hover={hoveredZoomLevel ? 'true' : 'false'}
11951
+ /* Round 517 / Loop — extends the chrome zoom-level readout
11952
+ from 2-axis (R347 letter-spacing + R420 fontWeight) to
11953
+ 3-axis hover signature by adding a color brighten to
11954
+ pal.legendHeadline. Pre-R517 the readout's color stayed
11955
+ at pal.legendText on hover; the digits got tighter
11956
+ kerning (0→0.5px) and heavier weight (500→600) but
11957
+ stayed the same legendText gray tone. R517 lifts color
11958
+ to legendHeadline on hover so the readout brightens
11959
+ into the headline tier at the same beat — matching the
11960
+ R55/R197/R239 hover-deepen-own-hue idiom that legend-
11961
+ row label + count carry at panel scope. Chrome strip's
11962
+ only data display now has full 3-axis hover signature
11963
+ (letter-spacing + fontWeight + color), parity with the
11964
+ chip-row chips' own hover-brighten pattern.
11965
+ Implementation: inline color uses the same hoveredZoom-
11966
+ Level state as R347/R420 — no new state. Transition
11967
+ already includes 'color 200ms ease-out' (R264) so the
11968
+ brighten eases under the same cadence as the kerning +
11969
+ weight tweens — one motion-coherent 3-axis lift.
11970
+ data-topo-chrome-zoom-level-color attr exposes the
11971
+ resolved color string for tests. */
11972
+ data-topo-chrome-zoom-level-color={hoveredZoomLevel ? 'headline' : 'text'}
11104
11973
  onMouseEnter={() => setHoveredZoomLevel(true)}
11105
11974
  onMouseLeave={() => setHoveredZoomLevel(false)}
11106
11975
  style={{
11107
- color: pal.legendText,
11976
+ color: hoveredZoomLevel ? pal.legendHeadline : pal.legendText,
11108
11977
  borderColor: pal.containerBorder,
11109
11978
  minWidth: 46,
11110
11979
  display: 'inline-block',
@@ -11149,7 +12018,11 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
11149
12018
  data-topo-chrome-zoom-in-popping={chromePopping === 'zoom-in' ? 'true' : 'false'}
11150
12019
  // R196: press-state (mirror of zoom-out above).
11151
12020
  // R352: `group` lets the inner svg respond via group-hover.
11152
- className="group px-2 py-1 hover:bg-white/5 active:bg-white/10 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset"
12021
+ // R493 zoom +/− buttons join the chrome-strip active:scale-95
12022
+ // press-feedback family (R492 + nodeSize above). transition-
12023
+ // transform + duration-200 + ease-out + transform-gpu added
12024
+ // since the className had only transition-colors.
12025
+ className="group px-2 py-1 hover:bg-white/5 active:bg-white/10 transition-colors transition-transform 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"
11153
12026
  style={{ color: pal.legendText }}
11154
12027
  aria-label="Zoom in"
11155
12028
  title="Zoom in (+)"
@@ -11201,7 +12074,14 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
11201
12074
  Every standalone interactive HTML surface in TopoGraph
11202
12075
  now lifts on hover. data-topo-chrome-reset-hover-lift
11203
12076
  attr surfaces the lift for tests. */
11204
- className="p-1.5 rounded-md border hover:bg-white/5 active:bg-white/10 hover:-translate-y-px transition-colors transition-transform duration-200 ease-out transform-gpu focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60"
12077
+ // R493 reset button joins the chrome-strip active:scale-95
12078
+ // press-feedback family. The button already has transition-
12079
+ // transform + transform-gpu (R350 reset spin + R400 hover lift),
12080
+ // so just appending active:scale-95 plugs straight in. Compound
12081
+ // active state during press = hover-lift (-1px) + scale-95
12082
+ // composes as translateY(-1px) scale(0.95) — lift-and-compress
12083
+ // for tactile click feel.
12084
+ className="p-1.5 rounded-md border hover:bg-white/5 active:bg-white/10 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"
11205
12085
  data-topo-chrome-reset-hover-lift="true"
11206
12086
  style={{ background: pal.legendBox.fill, borderColor: pal.containerBorder, color: pal.legendText }}
11207
12087
  aria-label="Reset view"
@@ -11249,8 +12129,34 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
11249
12129
  // owns transform during its 450ms run. transformOrigin
11250
12130
  // 'center' so rotation pivots around the icon's centre
11251
12131
  // (default would be top-left and the icon would arc).
12132
+ /* Round 514 / Loop — extends R352/R353 chrome icon hover-
12133
+ scale family to the reset button. Pre-R514 the reset
12134
+ icon had hover-rotate (-8°, R350) + hover-sw (2.5→2.8,
12135
+ R453) but no hover-scale, while zoom-out (R352), zoom-
12136
+ in (R352), and fullscreen (R353) icons all carried
12137
+ `group-hover:scale-110`. R514 brings the reset icon
12138
+ into the same 3-axis hover signature (rotate + sw +
12139
+ scale) as the rest of the chrome strip.
12140
+ Implementation: inline transform composes rotate +
12141
+ scale into one string. `transform: rotate(-8deg)
12142
+ scale(1.1)` on hover; `rotate(0) scale(1)` at rest.
12143
+ transformOrigin 'center' applies to both — rotation
12144
+ pivots around centre AND scale grows from centre.
12145
+ The Tailwind `group-hover:scale-110` approach can't
12146
+ work here because inline `style.transform` overrides
12147
+ className-based transforms; compose the multi-axis
12148
+ transform inline instead.
12149
+ Chrome icon hover gesture parity (post-R514):
12150
+ zoom-out scale-110 + sw-lift (R352/R454)
12151
+ zoom-in scale-110 + sw-lift (R352/R454)
12152
+ fullscreen scale-110 + sw-lift (R353/R455)
12153
+ reset scale-1.1 + sw-lift + rotate -8°
12154
+ (R514 + R453 + R350)
12155
+ reset gets the EXTRA rotate axis because R350's spin
12156
+ preview semantic is reset-specific — the rotation
12157
+ hints at the click-spin (R184) the button will fire. */
11252
12158
  style={{
11253
- transform: hoveredReset && !resetSpinning ? 'rotate(-8deg)' : 'rotate(0deg)',
12159
+ transform: hoveredReset && !resetSpinning ? 'rotate(-8deg) scale(1.1)' : 'rotate(0deg) scale(1)',
11254
12160
  transformOrigin: 'center',
11255
12161
  transition: 'transform 200ms ease-out, stroke-width 200ms ease-out',
11256
12162
  }}
@@ -11294,7 +12200,9 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
11294
12200
  // fullscreen now all carry an icon-level hover gesture in
11295
12201
  // addition to the bg hover).
11296
12202
  // R400: hover translateY(-1px) lift — see reset button above for family doc.
11297
- className={`group p-1.5 rounded-md border hover:-translate-y-px transition-colors transition-transform duration-200 ease-out transform-gpu focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 ${
12203
+ // R493 fullscreen joins active:scale-95 press family (same as
12204
+ // reset above: lift-and-compress compound transform on press).
12205
+ 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 ${
11298
12206
  isFullscreen
11299
12207
  ? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25'
11300
12208
  : 'hover:bg-cyan-500/5 active:bg-cyan-500/15'