@sleep2agi/agent-network-dashboard 0.5.3-preview.1 → 0.5.3-preview.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +32 -32
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +12 -12
- package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
- package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/server/app/admin.html +2 -2
- package/.next/server/app/admin.rsc +14 -14
- package/.next/server/app/admin.segments/_full.segment.rsc +14 -14
- package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
- package/.next/server/app/admin.segments/_index.segment.rsc +7 -7
- package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +14 -14
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/index.segments/_full.segment.rsc +14 -14
- package/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/server/app/index.segments/_index.segment.rsc +7 -7
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +2 -2
- package/.next/server/app/login.rsc +14 -14
- package/.next/server/app/login.segments/_full.segment.rsc +14 -14
- package/.next/server/app/login.segments/_head.segment.rsc +4 -4
- package/.next/server/app/login.segments/_index.segment.rsc +7 -7
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/login.segments/login.segment.rsc +3 -3
- package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/logs.html +2 -2
- package/.next/server/app/logs.rsc +14 -14
- package/.next/server/app/logs.segments/_full.segment.rsc +14 -14
- package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
- package/.next/server/app/logs.segments/_index.segment.rsc +7 -7
- package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/logs.segments/logs.segment.rsc +3 -3
- package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
- package/.next/server/app/messages.html +2 -2
- package/.next/server/app/messages.rsc +14 -14
- package/.next/server/app/messages.segments/_full.segment.rsc +14 -14
- package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
- package/.next/server/app/messages.segments/_index.segment.rsc +7 -7
- package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/messages.segments/messages.segment.rsc +3 -3
- package/.next/server/app/node/page_client-reference-manifest.js +1 -1
- package/.next/server/app/node.html +2 -2
- package/.next/server/app/node.rsc +14 -14
- package/.next/server/app/node.segments/_full.segment.rsc +14 -14
- package/.next/server/app/node.segments/_head.segment.rsc +4 -4
- package/.next/server/app/node.segments/_index.segment.rsc +7 -7
- package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/node.segments/node.segment.rsc +3 -3
- package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
- package/.next/server/app/nodes.html +2 -2
- package/.next/server/app/nodes.rsc +14 -14
- package/.next/server/app/nodes.segments/_full.segment.rsc +14 -14
- package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
- package/.next/server/app/nodes.segments/_index.segment.rsc +7 -7
- package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/nodes.segments/nodes.segment.rsc +3 -3
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +2 -2
- package/.next/server/app/server-logs.rsc +14 -14
- package/.next/server/app/server-logs.segments/_full.segment.rsc +14 -14
- package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
- package/.next/server/app/server-logs.segments/_index.segment.rsc +7 -7
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/server-logs.segments/server-logs.segment.rsc +3 -3
- package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/networks.html +2 -2
- package/.next/server/app/settings/networks.rsc +14 -14
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +14 -14
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +7 -7
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +3 -3
- package/.next/server/app/settings/networks.segments/settings.segment.rsc +3 -3
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +2 -2
- package/.next/server/app/settings/tokens.rsc +14 -14
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +14 -14
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +7 -7
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +3 -3
- package/.next/server/app/settings/tokens.segments/settings.segment.rsc +3 -3
- package/.next/server/app/settings.html +2 -2
- package/.next/server/app/settings.rsc +14 -14
- package/.next/server/app/settings.segments/_full.segment.rsc +14 -14
- package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings.segments/_index.segment.rsc +7 -7
- package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
- package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks.html +2 -2
- package/.next/server/app/tasks.rsc +14 -14
- package/.next/server/app/tasks.segments/_full.segment.rsc +14 -14
- package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
- package/.next/server/app/tasks.segments/_index.segment.rsc +7 -7
- package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +4 -4
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/0-c2b_r~s.a00.js +1 -0
- package/.next/static/chunks/{0ce~u5hn~wege.js → 0nvxj45vzw-1t.js} +1 -1
- package/.next/static/chunks/{03a4--7ncekmk.js → 0v4-5tng.uh.7.js} +2 -2
- package/.next/static/chunks/0v9i~z.k.2uji.js +1 -0
- package/.next/static/chunks/0w3dd-f9bl6xs.js +4 -0
- package/.next/static/chunks/13~aih56vx-cf.css +2 -0
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/ServersDrawer.tsx +16 -3
- package/app/components/TopoGraph.tsx +2747 -140
- package/app/globals.css +142 -6
- package/package.json +4 -4
- package/scripts/p157-servers-copy-test.mjs +95 -0
- package/scripts/topo-active-chrome-hover-text-test.mjs +107 -0
- package/scripts/topo-alias-glow-test.mjs +121 -0
- package/scripts/topo-avatar-brightness-test.mjs +116 -0
- package/scripts/topo-avatar-fallback-hover-test.mjs +104 -0
- package/scripts/topo-brand-logo-breath-test.mjs +102 -0
- package/scripts/topo-brand-logo-hover-brightness-test.mjs +105 -0
- package/scripts/topo-brand-logo-hover-rotate-test.mjs +93 -0
- package/scripts/topo-brand-logo-hover-test.mjs +85 -0
- package/scripts/topo-chip-row-digit-ls-test.mjs +135 -0
- package/scripts/topo-chip-row-member-alias-lit-test.mjs +154 -0
- package/scripts/topo-chip-row-press-test.mjs +93 -0
- package/scripts/topo-chip-row-tier-glow-brightness-test.mjs +99 -0
- package/scripts/topo-chip-row-unit-hover-tracking-test.mjs +124 -0
- package/scripts/topo-chrome-press-fullstrip-test.mjs +105 -0
- package/scripts/topo-chrome-press-scale-test.mjs +100 -0
- package/scripts/topo-cluster-count-attr-test.mjs +80 -0
- package/scripts/topo-crescent-breath-test.mjs +104 -0
- package/scripts/topo-crescent-recede-test.mjs +111 -0
- package/scripts/topo-edge-badge-hover-glow-test.mjs +90 -0
- package/scripts/topo-edge-badge-text-brightness-test.mjs +83 -0
- package/scripts/topo-edge-particle-brightness-test.mjs +82 -0
- package/scripts/topo-edge-pill-glow-test.mjs +67 -0
- package/scripts/topo-edge-visible-brightness-test.mjs +84 -0
- package/scripts/topo-endpoint-ring-brightness-test.mjs +83 -0
- package/scripts/topo-filter-pill-glow-test.mjs +90 -0
- package/scripts/topo-filter-pills-press-test.mjs +96 -0
- package/scripts/topo-fleet-density-tier-test.mjs +84 -0
- package/scripts/topo-flow-rail-brightness-test.mjs +80 -0
- package/scripts/topo-focus-outline-transition-test.mjs +107 -0
- package/scripts/topo-freshness-chip-fade-test.mjs +105 -0
- package/scripts/topo-fullscreen-attr-test.mjs +73 -0
- package/scripts/topo-fullscreen-icon-rotate-test.mjs +93 -0
- package/scripts/topo-grid-content-bottom-attr-test.mjs +72 -0
- package/scripts/topo-group-label-brightness-test.mjs +84 -0
- package/scripts/topo-group-label-hover-glow-test.mjs +86 -0
- package/scripts/topo-group-label-member-alias-hover-test.mjs +125 -0
- package/scripts/topo-group-pill-glow-test.mjs +76 -0
- package/scripts/topo-hover-ring-duration-test.mjs +87 -0
- package/scripts/topo-hub-digit-brightness-test.mjs +79 -0
- package/scripts/topo-hub-digit-ls-test.mjs +119 -0
- package/scripts/topo-hub-halo-brightness-test.mjs +80 -0
- package/scripts/topo-hub-halo-glow-test.mjs +96 -0
- package/scripts/topo-hub-highlight-amplify-test.mjs +139 -0
- package/scripts/topo-hub-highlight-brightness-test.mjs +84 -0
- package/scripts/topo-hub-highlight-fill-transition-test.mjs +84 -0
- package/scripts/topo-hub-highlight-glow-test.mjs +99 -0
- package/scripts/topo-hub-highlight-r-test.mjs +112 -0
- package/scripts/topo-hub-highlight-recede-test.mjs +144 -0
- package/scripts/topo-hub-highlight-theme-fill-test.mjs +83 -0
- package/scripts/topo-hub-hover-ring-brightness-test.mjs +79 -0
- package/scripts/topo-hub-hover-ring-glow-test.mjs +97 -0
- package/scripts/topo-hub-idle-breath-test.mjs +109 -0
- package/scripts/topo-hub-recede-test.mjs +124 -0
- package/scripts/topo-hub-spoke-brightness-test.mjs +77 -0
- package/scripts/topo-hub-spoke-glow-test.mjs +112 -0
- package/scripts/topo-layout-hover-fw-test.mjs +98 -0
- package/scripts/topo-legend-count-letter-spacing-test.mjs +108 -0
- package/scripts/topo-legend-label-fw-test.mjs +107 -0
- package/scripts/topo-legend-row-label-glow-test.mjs +102 -0
- package/scripts/topo-legend-swatch-glow-test.mjs +109 -0
- package/scripts/topo-legend-swatch-member-alias-match-test.mjs +139 -0
- package/scripts/topo-minimap-hover-glow-test.mjs +109 -0
- package/scripts/topo-node-alias-brightness-test.mjs +84 -0
- package/scripts/topo-node-sub-text-brightness-test.mjs +88 -0
- package/scripts/topo-nodesize-hover-fw-test.mjs +99 -0
- package/scripts/topo-orphan-box-dash-test.mjs +89 -0
- package/scripts/topo-orphan-fill-opacity-test.mjs +91 -0
- package/scripts/topo-orphan-label-italic-test.mjs +90 -0
- package/scripts/topo-orphan-label-opacity-test.mjs +98 -0
- package/scripts/topo-panel-count-hover-ls-test.mjs +87 -0
- package/scripts/topo-panel-row-brightness-test.mjs +116 -0
- package/scripts/topo-panel-title-brightness-test.mjs +98 -0
- package/scripts/topo-panel-title-glow-test.mjs +111 -0
- package/scripts/topo-pill-x-rotate-test.mjs +96 -0
- package/scripts/topo-pinned-aspect-test.mjs +89 -0
- package/scripts/topo-pressure-seg-glow-test.mjs +92 -0
- package/scripts/topo-pressure-seg-member-alias-match-test.mjs +133 -0
- package/scripts/topo-pressure-seg-motion-test.mjs +101 -0
- package/scripts/topo-recent-hot-pulse-test.mjs +102 -0
- package/scripts/topo-recent-more-fw-test.mjs +126 -0
- package/scripts/topo-recent-row-fw-test.mjs +115 -0
- package/scripts/topo-recent-row-text-glow-test.mjs +86 -0
- package/scripts/topo-reduced-motion-attr-test.mjs +69 -0
- package/scripts/topo-reset-icon-hover-scale-test.mjs +102 -0
- package/scripts/topo-runtime-badge-brightness-test.mjs +78 -0
- package/scripts/topo-runtime-badge-glow-test.mjs +108 -0
- package/scripts/topo-starfield-hue-test.mjs +109 -0
- package/scripts/topo-status-ring-brightness-test.mjs +84 -0
- package/scripts/topo-svg-focus-transition-test.mjs +105 -0
- package/scripts/topo-titleblock-h2-hover-fw-test.mjs +109 -0
- package/scripts/topo-titleblock-h2-hover-tracking-test.mjs +128 -0
- package/scripts/topo-titleblock-kicker-hover-test.mjs +134 -0
- package/scripts/topo-vendor-activelinks-press-test.mjs +100 -0
- package/scripts/topo-vendor-chip-glow-test.mjs +97 -0
- package/scripts/topo-vendor-pill-glow-test.mjs +98 -0
- package/scripts/topo-watermark-breath-test.mjs +100 -0
- package/scripts/topo-watermark-recede-test.mjs +114 -0
- package/scripts/topo-zoom-level-color-test.mjs +105 -0
- package/.next/static/chunks/0a4hmfvj-81x5.css +0 -2
- package/.next/static/chunks/14m8prv3qgm45.js +0 -4
- package/.next/static/chunks/17fq.aa.hsdd..js +0 -1
- package/.next/static/chunks/17~las5t-t.kj.js +0 -1
- /package/.next/static/{cBZM18sgaGtUo-xccD_a3 → oBpu6kOuBIOwABE5kiB8V}/_buildManifest.js +0 -0
- /package/.next/static/{cBZM18sgaGtUo-xccD_a3 → oBpu6kOuBIOwABE5kiB8V}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{cBZM18sgaGtUo-xccD_a3 → oBpu6kOuBIOwABE5kiB8V}/_ssgManifest.js +0 -0
package/app/globals.css
CHANGED
|
@@ -863,6 +863,29 @@ body {
|
|
|
863
863
|
transform-box: fill-box;
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
+
/* Round 498 — recent-signal row hot-count subtle pulse (信息密度 +
|
|
867
|
+
呼吸感 themes). When a row's edge count crosses the hot threshold
|
|
868
|
+
(≥ 10), the existing R127/R320/R445 amber-fill + fw-700 typography
|
|
869
|
+
already calls attention; R498 adds a slow 3s opacity breath (0.85 ↔
|
|
870
|
+
1.0) on the digit so the hot tspans gently pulse — at-a-glance scan
|
|
871
|
+
of the panel reads "high-traffic lane right here" with motion in
|
|
872
|
+
addition to color+weight. 3s cycle is deliberate: faster (1-2s)
|
|
873
|
+
would compete with the working-status halo cadence; slower (5s+)
|
|
874
|
+
would lose the "alive" signal. Amplitude 15% (matches R497 hub-
|
|
875
|
+
highlight breath idiom).
|
|
876
|
+
prefers-reduced-motion handled by the R29 blanket override
|
|
877
|
+
(animation-duration: 0.001ms !important) — no per-class guard
|
|
878
|
+
needed. The component-side gate (`!reducedMotion && isHot`)
|
|
879
|
+
ensures the className is only applied when both conditions hold,
|
|
880
|
+
so even without the blanket the no-motion preference is respected. */
|
|
881
|
+
@keyframes anet-recent-hot-pulse-kf {
|
|
882
|
+
0%, 100% { opacity: 0.85; }
|
|
883
|
+
50% { opacity: 1; }
|
|
884
|
+
}
|
|
885
|
+
.anet-recent-hot-pulse {
|
|
886
|
+
animation: anet-recent-hot-pulse-kf 3s ease-in-out infinite;
|
|
887
|
+
}
|
|
888
|
+
|
|
866
889
|
/* Round 36 — current-step ring pulse on TaskDrawer timeline. Halo gently
|
|
867
890
|
breathes around the active step's dot so users can spot "task is here". */
|
|
868
891
|
@keyframes anet-current-step-pulse-kf {
|
|
@@ -900,10 +923,72 @@ body {
|
|
|
900
923
|
and doesn't fight box-shadow, so we use it here. `currentColor`
|
|
901
924
|
inherits the chip's own accent (green for working, cyan for online,
|
|
902
925
|
per-vendor for letters, etc.). Only fires on :focus-visible
|
|
903
|
-
(keyboard) — mouse focus stays unstyled.
|
|
904
|
-
|
|
905
|
-
|
|
926
|
+
(keyboard) — mouse focus stays unstyled.
|
|
927
|
+
Round 490 / Loop — focus outline transitions on color rather than
|
|
928
|
+
hard-cutting. Pre-R490 the keyboard focus ring snapped in/out
|
|
929
|
+
instantly (no `transition` declaration), while every other hover/
|
|
930
|
+
pin state on the same chip eased through the Hero D 200ms ease-out
|
|
931
|
+
vocabulary (R459-R475 cluster + R489 hover ring). Keyboard users
|
|
932
|
+
tabbing through chips saw discontinuous focus jumps — pointer
|
|
933
|
+
users saw smooth motion. R490 unifies the two by holding a
|
|
934
|
+
permanent transparent outline (no painted footprint, no layout
|
|
935
|
+
shift — `outline` is drawn outside the border-box and doesn't
|
|
936
|
+
trigger reflow) and transitioning ONLY outline-color when focus
|
|
937
|
+
arrives/leaves. The cyber-theme dark canvas keyboard nav now
|
|
938
|
+
reads as one motion vocabulary with pointer hover. */
|
|
939
|
+
.anet-topo-chip-focus {
|
|
940
|
+
outline: 2px solid transparent;
|
|
906
941
|
outline-offset: 1px;
|
|
942
|
+
/* R490 (revised) — Tailwind utility classes on the chips (transition-
|
|
943
|
+
colors / transition-transform / duration-200) set their own
|
|
944
|
+
`transition-property` list at the same selector specificity (0,1,0),
|
|
945
|
+
and since Tailwind's stylesheet loads after globals.css they win
|
|
946
|
+
the cascade — without `!important` my outline-color transition is
|
|
947
|
+
ignored. The unified list below replaces Tailwind's narrower list
|
|
948
|
+
with a superset (color, bg, border, opacity, box-shadow, transform
|
|
949
|
+
all preserved) plus `outline-color` for R490. All at 200ms ease-
|
|
950
|
+
out, matching the chip-row's existing Tailwind duration-200 ease-
|
|
951
|
+
out so visible animations on the chip are unchanged.
|
|
952
|
+
|
|
953
|
+
Round 524 / Loop — CORRECTION + bug fix.
|
|
954
|
+
R490's original 'trade-off' note read:
|
|
955
|
+
'chips with inline style.transition (R210 pressure-bar
|
|
956
|
+
segments at 220ms width / 150ms boxShadow / 150ms filter)
|
|
957
|
+
keep their inline value because inline style wins over class
|
|
958
|
+
rules regardless of !important.'
|
|
959
|
+
That was WRONG about CSS cascade. Per the spec, `!important`
|
|
960
|
+
author declarations DO override normal-priority inline-style
|
|
961
|
+
declarations. So R490's transition-property list silently
|
|
962
|
+
dropped every inline transition that targeted a property NOT
|
|
963
|
+
in this class's list — including R165's width 220ms tween on
|
|
964
|
+
the pressure-bar segments AND R210's filter brightness(1.2)
|
|
965
|
+
hover on those same segments. Both motion polishes have been
|
|
966
|
+
silently broken (snapping instead of easing) since R490
|
|
967
|
+
landed; banked as test-craft lesson in R523.
|
|
968
|
+
R524 fixes by extending the transition-property list to
|
|
969
|
+
include `width` and `filter` so the pressure-bar segments
|
|
970
|
+
(and any future chip-focus surface with width/filter motion)
|
|
971
|
+
animate per the class's unified 200ms ease-out. The cadence
|
|
972
|
+
shift (R165's 220ms → 200ms, R210's 150ms → 200ms) loses 20-
|
|
973
|
+
50ms of intent precision but slots into the dashboard's
|
|
974
|
+
uniform 200ms motion vocabulary the rest of the chip family
|
|
975
|
+
already uses — net visible improvement (motion was DEAD,
|
|
976
|
+
now eases at 200ms; that's a strictly better state than
|
|
977
|
+
snapping).
|
|
978
|
+
Other chip-focus surfaces (filter pills, online/working
|
|
979
|
+
chips, minimap container, "+N more" footer's <g>) don't
|
|
980
|
+
change width or filter at runtime, so adding these
|
|
981
|
+
properties to the list is a no-op for them. */
|
|
982
|
+
transition-property:
|
|
983
|
+
outline-color, color, background-color, border-color,
|
|
984
|
+
text-decoration-color, fill, stroke, opacity, box-shadow, transform,
|
|
985
|
+
width, filter
|
|
986
|
+
!important;
|
|
987
|
+
transition-duration: 200ms !important;
|
|
988
|
+
transition-timing-function: ease-out !important;
|
|
989
|
+
}
|
|
990
|
+
.anet-topo-chip-focus:focus-visible {
|
|
991
|
+
outline-color: currentColor;
|
|
907
992
|
}
|
|
908
993
|
|
|
909
994
|
/* R156 — focus-visible outline for SVG-side TopoGraph interactives.
|
|
@@ -914,10 +999,35 @@ body {
|
|
|
914
999
|
R144/R151/R152). Browser default focus outline on SVG is hard
|
|
915
1000
|
to spot against the canvas; explicit cyan-300 ring matches the
|
|
916
1001
|
dashboard's legendAccent. 2-px outline-offset gives breathing
|
|
917
|
-
room around the painted bounding box.
|
|
918
|
-
|
|
919
|
-
|
|
1002
|
+
room around the painted bounding box.
|
|
1003
|
+
Round 491 / Loop — SVG-side counterpart to R490's chip-focus
|
|
1004
|
+
outline-color transition. Pre-R491 keyboard focus on SVG g
|
|
1005
|
+
elements (recent rows, legend rows, group labels, edge badges,
|
|
1006
|
+
nodes, "+N more") snapped instantly; HTML chips (post-R490) now
|
|
1007
|
+
ease through 200ms ease-out but SVG g still hard-cut. Same
|
|
1008
|
+
baseline-transparent + transition-outline-color recipe brings
|
|
1009
|
+
the SVG canvas into the unified keyboard motion vocabulary —
|
|
1010
|
+
keyboard users tabbing between chip-row and SVG canvas see
|
|
1011
|
+
ONE smooth fade timing instead of HTML-smooth-then-SVG-snap.
|
|
1012
|
+
The cyan-300 (#67e8f9) target color matches R156's original
|
|
1013
|
+
choice (legendAccent visual identity); only the transition
|
|
1014
|
+
timing is new.
|
|
1015
|
+
Note on cascade: SVG g elements rarely carry Tailwind
|
|
1016
|
+
transition-* utility classes (Tailwind defaults are HTML-
|
|
1017
|
+
centric), so the (0,1,0) specificity of .anet-topo-svg-focus
|
|
1018
|
+
typically wins without !important. Adding !important defensively
|
|
1019
|
+
anyway since the React component may add future inline styles
|
|
1020
|
+
or Tailwind classes. Same trade-off as R490 (inline
|
|
1021
|
+
style.transition still wins if added). */
|
|
1022
|
+
.anet-topo-svg-focus {
|
|
1023
|
+
outline: 2px solid transparent;
|
|
920
1024
|
outline-offset: 2px;
|
|
1025
|
+
transition-property: outline-color !important;
|
|
1026
|
+
transition-duration: 200ms !important;
|
|
1027
|
+
transition-timing-function: ease-out !important;
|
|
1028
|
+
}
|
|
1029
|
+
.anet-topo-svg-focus:focus-visible {
|
|
1030
|
+
outline-color: #67e8f9;
|
|
921
1031
|
}
|
|
922
1032
|
|
|
923
1033
|
/* Round 46 — animated dashed spokes flowing from hub outward. Each spoke
|
|
@@ -964,6 +1074,32 @@ body {
|
|
|
964
1074
|
animation-iteration-count: infinite;
|
|
965
1075
|
}
|
|
966
1076
|
|
|
1077
|
+
/* Round 553 — title-block brand logo subtle idle breath.
|
|
1078
|
+
5th anchor in the 呼吸感 breath family — cadence ladder:
|
|
1079
|
+
row hot 3s
|
|
1080
|
+
hub idle 4s
|
|
1081
|
+
brand logo 5s ← this round
|
|
1082
|
+
watermark 6s
|
|
1083
|
+
crescent 7s
|
|
1084
|
+
Pure opacity breath (0.92 ↔ 1, ~8% delta) on the title-block
|
|
1085
|
+
crescent SVG so the brand mark reads as a "living mark" at
|
|
1086
|
+
rest. Composes cleanly with R548 hover:scale-105 +
|
|
1087
|
+
R549 hover:rotate-6 (independent properties: opacity vs
|
|
1088
|
+
scale/rotate; the moon keeps breathing as it lifts on hover).
|
|
1089
|
+
prefers-reduced-motion handled by R29 blanket override —
|
|
1090
|
+
animation-duration → 0.001ms neutralises the keyframe without
|
|
1091
|
+
killing the static opacity baseline. Component-side gate also
|
|
1092
|
+
applied (`!reducedMotion` toggles the className) as canonical
|
|
1093
|
+
TopoGraph breath pattern (sibling to R130 hub idle / R519
|
|
1094
|
+
watermark / R326 crescent breath gates). */
|
|
1095
|
+
@keyframes anet-topo-brand-logo-breath-kf {
|
|
1096
|
+
0%, 100% { opacity: 1; }
|
|
1097
|
+
50% { opacity: 0.92; }
|
|
1098
|
+
}
|
|
1099
|
+
.anet-topo-brand-logo-breath {
|
|
1100
|
+
animation: anet-topo-brand-logo-breath-kf 5s ease-in-out infinite;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
967
1103
|
/* ─────────────────────────────────────────────────────────────────────
|
|
968
1104
|
Round 29 — prefers-reduced-motion a11y sweep
|
|
969
1105
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleep2agi/agent-network-dashboard",
|
|
3
|
-
"version": "0.5.3-preview.
|
|
4
|
-
"description": "Agent Network Dashboard
|
|
3
|
+
"version": "0.5.3-preview.100",
|
|
4
|
+
"description": "Agent Network Dashboard \u2014 Web UI for managing AI Agent networks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "next dev",
|
|
7
7
|
"build": "next build",
|
|
8
8
|
"start": "next start",
|
|
9
9
|
"lint": "eslint",
|
|
10
|
-
"prepublishOnly": "[ -f .next/BUILD_ID ] || (echo 'prepublishOnly: .next/BUILD_ID missing
|
|
10
|
+
"prepublishOnly": "[ -f .next/BUILD_ID ] || (echo 'prepublishOnly: .next/BUILD_ID missing \u2014 run npm run build first (see commit 05c1ebf body for R224 chunk-500 root cause)' >&2 && exit 1)"
|
|
11
11
|
},
|
|
12
12
|
"bin": {
|
|
13
13
|
"agent-network-dashboard": "./bin/start.js"
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
"tailwindcss": "^4",
|
|
45
45
|
"typescript": "^5"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* #157 fix verification (v0.10.8 lean ship — Fix #1 only per 通信龙 5573).
|
|
2
|
+
*
|
|
3
|
+
* Pre-fix the Servers panel showed:
|
|
4
|
+
* "agent rollup pending hub ≥ 0.8.2-preview"
|
|
5
|
+
* "disk metric pending hub ≥ 0.8.2-preview"
|
|
6
|
+
* commhub-server@0.8.2 is LIVE on prod but still doesn't ship `agents[]`
|
|
7
|
+
* or `disk_*` — the version-pinned text was misleading.
|
|
8
|
+
*
|
|
9
|
+
* Post-fix:
|
|
10
|
+
* "agent rollup not reported by hub"
|
|
11
|
+
* "disk metric not reported by hub"
|
|
12
|
+
* + data-server-agents-missing + data-server-disk-missing test attrs.
|
|
13
|
+
*
|
|
14
|
+
* Test:
|
|
15
|
+
* 1. Open dashboard, expand Servers drawer (localStorage flag)
|
|
16
|
+
* 2. Expand first server card (localStorage flag)
|
|
17
|
+
* 3. Assert visible copy lacks "0.8.2-preview"
|
|
18
|
+
* 4. Assert test-surface attrs present
|
|
19
|
+
* 5. Source-side regex confirms new copy + attrs wired
|
|
20
|
+
*/
|
|
21
|
+
import { chromium } from 'playwright';
|
|
22
|
+
import { readFileSync } from 'node:fs';
|
|
23
|
+
|
|
24
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
25
|
+
|
|
26
|
+
const browser = await chromium.launch({ headless: true });
|
|
27
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
|
|
28
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
29
|
+
await ctx.addInitScript(() => {
|
|
30
|
+
try {
|
|
31
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
32
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
33
|
+
// Force servers drawer open
|
|
34
|
+
localStorage.setItem('anet-servers-drawer', '1');
|
|
35
|
+
} catch {}
|
|
36
|
+
});
|
|
37
|
+
const page = await ctx.newPage();
|
|
38
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
39
|
+
await page.waitForTimeout(3500); // wait for SWR fetch + servers to render
|
|
40
|
+
|
|
41
|
+
// Expand first server card by clicking it
|
|
42
|
+
const firstCard = await page.$('[data-server-host], [data-server-card], button:has-text("iZ")');
|
|
43
|
+
// Simpler: just probe the drawer body text after expansion attempt
|
|
44
|
+
await page.evaluate(() => {
|
|
45
|
+
const buttons = Array.from(document.querySelectorAll('button'));
|
|
46
|
+
// Find server card expand toggles by their host text
|
|
47
|
+
const candidates = buttons.filter(b => /iZ|elaine/.test(b.textContent || ''));
|
|
48
|
+
if (candidates[0]) candidates[0].click();
|
|
49
|
+
});
|
|
50
|
+
await page.waitForTimeout(800);
|
|
51
|
+
|
|
52
|
+
const probe = await page.evaluate(() => {
|
|
53
|
+
// Probe drawer body for the placeholder text
|
|
54
|
+
const drawer = document.querySelector('[data-servers-body]') || document.body;
|
|
55
|
+
const text = drawer.textContent || '';
|
|
56
|
+
const agentsMissing = document.querySelectorAll('[data-server-agents-missing="true"]');
|
|
57
|
+
const diskMissing = document.querySelectorAll('[data-server-disk-missing="true"]');
|
|
58
|
+
return {
|
|
59
|
+
body_text_excerpt: text.slice(0, 1500),
|
|
60
|
+
has_stale_copy: /0\.8\.2-preview/.test(text),
|
|
61
|
+
has_new_agents_copy: /agent rollup not reported by hub/.test(text),
|
|
62
|
+
has_new_disk_copy: /disk metric not reported by hub/.test(text),
|
|
63
|
+
agents_missing_count: agentsMissing.length,
|
|
64
|
+
disk_missing_count: diskMissing.length,
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
await browser.close();
|
|
69
|
+
|
|
70
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/ServersDrawer.tsx', 'utf8');
|
|
71
|
+
// The OLD strings should be gone from rendered text. The comment block keeps the
|
|
72
|
+
// historical "0.8.2-preview" reference for audit — that's OK because comments
|
|
73
|
+
// don't render. So source check: look for the NEW visible strings AND the test
|
|
74
|
+
// attrs, not for the absence of "0.8.2-preview".
|
|
75
|
+
const sourceNewAgentsCopy = /agent rollup not reported by hub/.test(src);
|
|
76
|
+
const sourceNewDiskCopy = /disk metric not reported by hub/.test(src);
|
|
77
|
+
const sourceAgentsAttr = /data-server-agents-missing="true"/.test(src);
|
|
78
|
+
const sourceDiskAttr = /data-server-disk-missing="true"/.test(src);
|
|
79
|
+
|
|
80
|
+
const results = {
|
|
81
|
+
dom_no_stale_copy: !probe.has_stale_copy,
|
|
82
|
+
dom_new_agents_copy: probe.has_new_agents_copy,
|
|
83
|
+
dom_new_disk_copy: probe.has_new_disk_copy,
|
|
84
|
+
agents_attr_present: probe.agents_missing_count > 0,
|
|
85
|
+
disk_attr_present: probe.disk_missing_count > 0,
|
|
86
|
+
source_new_agents: sourceNewAgentsCopy,
|
|
87
|
+
source_new_disk: sourceNewDiskCopy,
|
|
88
|
+
source_agents_attr: sourceAgentsAttr,
|
|
89
|
+
source_disk_attr: sourceDiskAttr,
|
|
90
|
+
};
|
|
91
|
+
const ok = Object.values(results).every(Boolean);
|
|
92
|
+
console.log(`${ok ? '✅' : '❌'} #157 servers copy fix:`, JSON.stringify(results),
|
|
93
|
+
'\n agents_missing_count:', probe.agents_missing_count, ' disk_missing_count:', probe.disk_missing_count,
|
|
94
|
+
'\n body_excerpt:', probe.body_text_excerpt.replace(/\s+/g, ' ').slice(0, 400));
|
|
95
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* Round 552 verification: chrome active-variant buttons gain
|
|
2
|
+
* hover:text-cyan-200 lift. Coordinated 4-anchor edit:
|
|
3
|
+
* Ring | Grid | S/M/L | Fullscreen
|
|
4
|
+
*
|
|
5
|
+
* Test phases:
|
|
6
|
+
* 1. Pick an active button (Ring is active by default in ring layout)
|
|
7
|
+
* 2. Read rest text color (cyan-300 = rgb(103, 232, 249))
|
|
8
|
+
* 3. Hover → text color = cyan-200 (rgb(165, 243, 252))
|
|
9
|
+
* 4. Verify bg also deepened (cyan-500/20)
|
|
10
|
+
* 5. Source-side regex: 4 occurrences of the new className substring
|
|
11
|
+
*/
|
|
12
|
+
import { chromium } from 'playwright';
|
|
13
|
+
import { readFileSync } from 'node:fs';
|
|
14
|
+
|
|
15
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
16
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
17
|
+
|
|
18
|
+
const browser = await chromium.launch({ headless: true });
|
|
19
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
|
|
20
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
21
|
+
await ctx.addInitScript(() => {
|
|
22
|
+
try {
|
|
23
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
24
|
+
localStorage.setItem('anet-topo-layout', 'ring');
|
|
25
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
26
|
+
} catch {}
|
|
27
|
+
});
|
|
28
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
29
|
+
const r = await route.fetch();
|
|
30
|
+
const b = await r.json();
|
|
31
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
32
|
+
const mk = (alias) => ({
|
|
33
|
+
alias, status: 'idle', model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
34
|
+
network_id: nid, project_dir: null,
|
|
35
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
36
|
+
});
|
|
37
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [mk('a·1')] } });
|
|
38
|
+
});
|
|
39
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
40
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
41
|
+
const page = await ctx.newPage();
|
|
42
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
43
|
+
await page.waitForSelector('[data-topo-chrome-layout="ring"]', { timeout: 15000 });
|
|
44
|
+
await page.waitForTimeout(500);
|
|
45
|
+
|
|
46
|
+
// Ring is active in ring layout
|
|
47
|
+
const sel = '[data-topo-chrome-layout="ring"]';
|
|
48
|
+
const rest = await page.evaluate((s) => {
|
|
49
|
+
const el = document.querySelector(s);
|
|
50
|
+
if (!el) return null;
|
|
51
|
+
const cs = getComputedStyle(el);
|
|
52
|
+
return {
|
|
53
|
+
color: cs.color,
|
|
54
|
+
bg: cs.backgroundColor,
|
|
55
|
+
activeAttr: el.getAttribute('data-topo-chrome-layout-active'),
|
|
56
|
+
};
|
|
57
|
+
}, sel);
|
|
58
|
+
|
|
59
|
+
await page.hover(sel);
|
|
60
|
+
await page.waitForTimeout(400);
|
|
61
|
+
const hover = await page.evaluate((s) => {
|
|
62
|
+
const el = document.querySelector(s);
|
|
63
|
+
if (!el) return null;
|
|
64
|
+
const cs = getComputedStyle(el);
|
|
65
|
+
return { color: cs.color, bg: cs.backgroundColor };
|
|
66
|
+
}, sel);
|
|
67
|
+
|
|
68
|
+
await browser.close();
|
|
69
|
+
|
|
70
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
71
|
+
// New active-variant substring must appear 4× (Ring, Grid, S/M/L, Fullscreen)
|
|
72
|
+
const occurrences = (src.match(/bg-cyan-500\/15 text-cyan-300 font-medium hover:bg-cyan-500\/20 hover:text-cyan-200 active:bg-cyan-500\/25/g) || []).length;
|
|
73
|
+
|
|
74
|
+
// Tailwind v4 emits cyan-300 / cyan-200 in lab() / oklab() color
|
|
75
|
+
// space, not legacy rgb(). Parse the L (lightness) component and
|
|
76
|
+
// verify hover L > rest L (cyan-200 is lighter than cyan-300).
|
|
77
|
+
// Bg uses oklab with alpha; rest alpha = 0.15 (cyan-500/15), hover
|
|
78
|
+
// alpha = 0.2 (cyan-500/20).
|
|
79
|
+
const parseLab = (s) => {
|
|
80
|
+
const m = (s || '').match(/lab\(([0-9.]+)\s/) || (s || '').match(/oklab\(([0-9.]+)\s/);
|
|
81
|
+
return m ? parseFloat(m[1]) : NaN;
|
|
82
|
+
};
|
|
83
|
+
const parseAlpha = (s) => {
|
|
84
|
+
const m = (s || '').match(/\/\s*([0-9.]+)\)/);
|
|
85
|
+
return m ? parseFloat(m[1]) : NaN;
|
|
86
|
+
};
|
|
87
|
+
const restL = parseLab(rest?.color);
|
|
88
|
+
const hoverL = parseLab(hover?.color);
|
|
89
|
+
const restBgA = parseAlpha(rest?.bg);
|
|
90
|
+
const hoverBgA = parseAlpha(hover?.bg);
|
|
91
|
+
|
|
92
|
+
const results = {
|
|
93
|
+
active_attr: rest?.activeAttr === 'true',
|
|
94
|
+
rest_text_parsed: !Number.isNaN(restL),
|
|
95
|
+
hover_text_parsed: !Number.isNaN(hoverL),
|
|
96
|
+
hover_text_lighter_than_rest: hoverL > restL + 3, // cyan-200 L≈91 > cyan-300 L≈85
|
|
97
|
+
rest_bg_alpha_0_15: Math.abs(restBgA - 0.15) < 0.01,
|
|
98
|
+
hover_bg_alpha_0_20: Math.abs(hoverBgA - 0.20) < 0.01,
|
|
99
|
+
source_4_occurrences: occurrences === 4,
|
|
100
|
+
};
|
|
101
|
+
const ok = Object.values(results).every(Boolean);
|
|
102
|
+
console.log(`${ok ? '✅' : '❌'} R552 chrome active-variant hover:text-cyan-200 (4 anchors):`,
|
|
103
|
+
JSON.stringify(results, null, 2),
|
|
104
|
+
'\n rest:', JSON.stringify(rest),
|
|
105
|
+
'\n hover:', JSON.stringify(hover),
|
|
106
|
+
'\n source occurrences:', occurrences);
|
|
107
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* Round 500 verification: node alias text gains a status-coloured
|
|
2
|
+
* drop-shadow on hover (extends R476-R481 drop-shadow visual-polish
|
|
3
|
+
* family to 7th anchor). Pre-R500 hover triggered card-lift + alias
|
|
4
|
+
* letter-spacing; post-R500 the alias glyph itself glows.
|
|
5
|
+
*
|
|
6
|
+
* Test scenarios:
|
|
7
|
+
* 1. Rest state — no hover: data-node-alias-glow='false', no filter
|
|
8
|
+
* 2. Hover state — after synthetic pointerenter dispatch on g[data-node]
|
|
9
|
+
* descendant: glow attr 'true', computed filter contains drop-shadow
|
|
10
|
+
* 3. reducedMotion: glow attr 'false' regardless of hover (a11y)
|
|
11
|
+
* 4. Source-side regex confirms wiring
|
|
12
|
+
*/
|
|
13
|
+
import { chromium } from 'playwright';
|
|
14
|
+
import { readFileSync } from 'node:fs';
|
|
15
|
+
|
|
16
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
17
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
18
|
+
|
|
19
|
+
async function probe({ reducedMotion }) {
|
|
20
|
+
const browser = await chromium.launch({ headless: true });
|
|
21
|
+
const ctx = await browser.newContext({
|
|
22
|
+
viewport: { width: 1500, height: 1200 },
|
|
23
|
+
reducedMotion: reducedMotion ? 'reduce' : 'no-preference',
|
|
24
|
+
});
|
|
25
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
26
|
+
await ctx.addInitScript(() => {
|
|
27
|
+
try {
|
|
28
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
29
|
+
localStorage.setItem('anet-topo-layout', 'ring');
|
|
30
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
31
|
+
} catch {}
|
|
32
|
+
});
|
|
33
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
34
|
+
const r = await route.fetch();
|
|
35
|
+
const b = await r.json();
|
|
36
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
37
|
+
const mk = (alias, status) => ({
|
|
38
|
+
alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
39
|
+
network_id: nid, project_dir: null,
|
|
40
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
41
|
+
});
|
|
42
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
43
|
+
mk('alpha·a1', 'working'),
|
|
44
|
+
mk('alpha·a2', 'idle'),
|
|
45
|
+
] } });
|
|
46
|
+
});
|
|
47
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
48
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
49
|
+
const page = await ctx.newPage();
|
|
50
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
51
|
+
await page.waitForSelector('g[data-node]', { timeout: 15000 });
|
|
52
|
+
await page.waitForTimeout(1500);
|
|
53
|
+
|
|
54
|
+
// Phase 1: rest state
|
|
55
|
+
const rest = await page.evaluate(() => {
|
|
56
|
+
const text = document.querySelector('[data-node-alias-text]');
|
|
57
|
+
if (!text) return null;
|
|
58
|
+
return {
|
|
59
|
+
glow_attr: text.getAttribute('data-node-alias-glow'),
|
|
60
|
+
computed_filter: window.getComputedStyle(text).filter,
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// Phase 2: hover state — synthetic pointerenter (R488 banked recipe)
|
|
65
|
+
const aliasAfterHover = await page.evaluate(() => {
|
|
66
|
+
const g = document.querySelector('g[data-node]');
|
|
67
|
+
if (!g) return null;
|
|
68
|
+
const alias = g.getAttribute('data-node');
|
|
69
|
+
const target = g.querySelector('circle, image, rect') || g;
|
|
70
|
+
['pointerenter', 'pointerover', 'mouseenter', 'mouseover'].forEach((t) => {
|
|
71
|
+
target.dispatchEvent(new Event(t, { bubbles: true, cancelable: true }));
|
|
72
|
+
});
|
|
73
|
+
return alias;
|
|
74
|
+
});
|
|
75
|
+
await page.waitForTimeout(400);
|
|
76
|
+
const hover = await page.evaluate(() => {
|
|
77
|
+
const text = document.querySelector('[data-node-alias-text]');
|
|
78
|
+
if (!text) return null;
|
|
79
|
+
return {
|
|
80
|
+
glow_attr: text.getAttribute('data-node-alias-glow'),
|
|
81
|
+
computed_filter: window.getComputedStyle(text).filter,
|
|
82
|
+
hovered_attr: text.getAttribute('data-node-alias-hovered'),
|
|
83
|
+
};
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
await browser.close();
|
|
87
|
+
return { rest, hover, alias: aliasAfterHover };
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const motion = await probe({ reducedMotion: false });
|
|
91
|
+
const a11y = await probe({ reducedMotion: true });
|
|
92
|
+
|
|
93
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
94
|
+
const sourceFilter = /filter: !reducedMotion && hoveredAlias === session\.alias\s*\?\s*`drop-shadow\(0 0 2px \$\{status\.text\}80\)`\s*:\s*undefined/.test(src);
|
|
95
|
+
const sourceAttr = /data-node-alias-glow=\{!reducedMotion && hoveredAlias === session\.alias \? 'true' : 'false'\}/.test(src);
|
|
96
|
+
const sourceTransition = /transition: 'fill 300ms ease-out, letter-spacing 200ms ease-out, filter 200ms ease-out'/.test(src);
|
|
97
|
+
|
|
98
|
+
const results = {
|
|
99
|
+
// Motion fixture, rest: attr='false', filter='none'
|
|
100
|
+
motion_rest_attr_false: motion.rest && motion.rest.glow_attr === 'false',
|
|
101
|
+
motion_rest_filter_none: motion.rest && motion.rest.computed_filter === 'none',
|
|
102
|
+
// Motion fixture, hover: attr='true', filter contains drop-shadow
|
|
103
|
+
motion_alias_resolved: !!motion.alias,
|
|
104
|
+
motion_hover_attr_true: motion.hover && motion.hover.glow_attr === 'true',
|
|
105
|
+
motion_hover_filter_drop:motion.hover && /drop-shadow/.test(motion.hover.computed_filter || ''),
|
|
106
|
+
// a11y fixture: attr='false' even after hover (component-side gate)
|
|
107
|
+
a11y_rest_attr_false: a11y.rest && a11y.rest.glow_attr === 'false',
|
|
108
|
+
a11y_hover_attr_false: a11y.hover && a11y.hover.glow_attr === 'false',
|
|
109
|
+
a11y_hover_filter_none: a11y.hover && a11y.hover.computed_filter === 'none',
|
|
110
|
+
// Source
|
|
111
|
+
source_filter_wired: sourceFilter,
|
|
112
|
+
source_attr_wired: sourceAttr,
|
|
113
|
+
source_transition_wired: sourceTransition,
|
|
114
|
+
};
|
|
115
|
+
const ok = Object.values(results).every(Boolean);
|
|
116
|
+
console.log(`${ok ? '✅' : '❌'} R500 node alias glow:`, JSON.stringify(results),
|
|
117
|
+
'\n motion rest :', JSON.stringify(motion.rest),
|
|
118
|
+
'\n motion hover:', JSON.stringify(motion.hover),
|
|
119
|
+
'\n a11y rest :', JSON.stringify(a11y.rest),
|
|
120
|
+
'\n a11y hover:', JSON.stringify(a11y.hover));
|
|
121
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* Round 501 verification: vendor avatar <image> inside node circles
|
|
2
|
+
* gains a hover-gated `filter: brightness(1.15)`. Closes the per-node
|
|
3
|
+
* hover-affordance arc — every per-node element type now has a hover
|
|
4
|
+
* treatment.
|
|
5
|
+
*
|
|
6
|
+
* Test fixture: claude-code-cli runtime → vendor.logo path renders the
|
|
7
|
+
* <image> branch (vs monogram fallback). Verifies:
|
|
8
|
+
* 1. rest: data-node-avatar-hovered='false', no brightness filter
|
|
9
|
+
* 2. hover (synthetic pointerenter): attr='true', computed filter
|
|
10
|
+
* contains brightness(1.15)
|
|
11
|
+
* 3. a11y: attr='false' even after hover (component gate)
|
|
12
|
+
* 4. source-side regex confirms wiring
|
|
13
|
+
*/
|
|
14
|
+
import { chromium } from 'playwright';
|
|
15
|
+
import { readFileSync } from 'node:fs';
|
|
16
|
+
|
|
17
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
18
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
19
|
+
|
|
20
|
+
async function probe({ reducedMotion }) {
|
|
21
|
+
const browser = await chromium.launch({ headless: true });
|
|
22
|
+
const ctx = await browser.newContext({
|
|
23
|
+
viewport: { width: 1500, height: 1200 },
|
|
24
|
+
reducedMotion: reducedMotion ? 'reduce' : 'no-preference',
|
|
25
|
+
});
|
|
26
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
27
|
+
await ctx.addInitScript(() => {
|
|
28
|
+
try {
|
|
29
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
30
|
+
localStorage.setItem('anet-topo-layout', 'ring');
|
|
31
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
32
|
+
} catch {}
|
|
33
|
+
});
|
|
34
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
35
|
+
const r = await route.fetch();
|
|
36
|
+
const b = await r.json();
|
|
37
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
38
|
+
const mk = (alias, status) => ({
|
|
39
|
+
// claude-code-cli renders the avatar <image> branch
|
|
40
|
+
alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
41
|
+
network_id: nid, project_dir: null,
|
|
42
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
43
|
+
});
|
|
44
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
45
|
+
mk('alpha·a1', 'working'),
|
|
46
|
+
mk('alpha·a2', 'idle'),
|
|
47
|
+
] } });
|
|
48
|
+
});
|
|
49
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
50
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
51
|
+
const page = await ctx.newPage();
|
|
52
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
53
|
+
await page.waitForSelector('g[data-node]', { timeout: 15000 });
|
|
54
|
+
await page.waitForTimeout(1500);
|
|
55
|
+
|
|
56
|
+
const rest = await page.evaluate(() => {
|
|
57
|
+
const img = document.querySelector('[data-node-avatar]');
|
|
58
|
+
if (!img) return { found: false };
|
|
59
|
+
return {
|
|
60
|
+
found: true,
|
|
61
|
+
hovered_attr: img.getAttribute('data-node-avatar-hovered'),
|
|
62
|
+
computed_filter: window.getComputedStyle(img).filter,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// Synthetic hover via R488 banked recipe
|
|
67
|
+
await page.evaluate(() => {
|
|
68
|
+
const g = document.querySelector('g[data-node]');
|
|
69
|
+
if (!g) return;
|
|
70
|
+
const target = g.querySelector('circle, image, rect') || g;
|
|
71
|
+
['pointerenter', 'pointerover', 'mouseenter', 'mouseover'].forEach((t) => {
|
|
72
|
+
target.dispatchEvent(new Event(t, { bubbles: true, cancelable: true }));
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
await page.waitForTimeout(400);
|
|
76
|
+
|
|
77
|
+
const hover = await page.evaluate(() => {
|
|
78
|
+
const img = document.querySelector('[data-node-avatar]');
|
|
79
|
+
if (!img) return { found: false };
|
|
80
|
+
return {
|
|
81
|
+
found: true,
|
|
82
|
+
hovered_attr: img.getAttribute('data-node-avatar-hovered'),
|
|
83
|
+
computed_filter: window.getComputedStyle(img).filter,
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
await browser.close();
|
|
88
|
+
return { rest, hover };
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const motion = await probe({ reducedMotion: false });
|
|
92
|
+
const a11y = await probe({ reducedMotion: true });
|
|
93
|
+
|
|
94
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
95
|
+
const sourceGate = /const isAvatarHovered = !reducedMotion && hoveredAlias === session\.alias;/.test(src);
|
|
96
|
+
const sourceFilter = /filter: isAvatarHovered \? 'brightness\(1\.15\)' : undefined/.test(src);
|
|
97
|
+
const sourceAttr = /data-node-avatar-hovered=\{isAvatarHovered \? 'true' : 'false'\}/.test(src);
|
|
98
|
+
|
|
99
|
+
const results = {
|
|
100
|
+
motion_rest_found: motion.rest.found,
|
|
101
|
+
motion_rest_attr_false: motion.rest.found && motion.rest.hovered_attr === 'false',
|
|
102
|
+
motion_rest_filter_none: motion.rest.found && motion.rest.computed_filter === 'none',
|
|
103
|
+
motion_hover_attr_true: motion.hover.found && motion.hover.hovered_attr === 'true',
|
|
104
|
+
motion_hover_filter_bright: motion.hover.found && /brightness\(1\.15\)/.test(motion.hover.computed_filter || ''),
|
|
105
|
+
a11y_rest_attr_false: a11y.rest.found && a11y.rest.hovered_attr === 'false',
|
|
106
|
+
a11y_hover_attr_false: a11y.hover.found && a11y.hover.hovered_attr === 'false',
|
|
107
|
+
a11y_hover_filter_none: a11y.hover.found && a11y.hover.computed_filter === 'none',
|
|
108
|
+
source_gate_wired: sourceGate,
|
|
109
|
+
source_filter_wired: sourceFilter,
|
|
110
|
+
source_attr_wired: sourceAttr,
|
|
111
|
+
};
|
|
112
|
+
const ok = Object.values(results).every(Boolean);
|
|
113
|
+
console.log(`${ok ? '✅' : '❌'} R501 avatar brightness:`, JSON.stringify(results),
|
|
114
|
+
'\n motion:', JSON.stringify(motion),
|
|
115
|
+
'\n a11y :', JSON.stringify(a11y));
|
|
116
|
+
process.exit(ok ? 0 : 1);
|