@sleep2agi/agent-network-dashboard 0.4.6-preview.21 → 0.4.6-preview.211
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/app-path-routes-manifest.json +1 -0
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +41 -41
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +6 -0
- 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/api/hub/servers/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/hub/servers/route/build-manifest.json +9 -0
- package/.next/server/app/api/hub/servers/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/hub/servers/route.js +7 -0
- package/.next/server/app/api/hub/servers/route.js.map +5 -0
- package/.next/server/app/api/hub/servers/route.js.nft.json +1 -0
- package/.next/server/app/api/hub/servers/route_client-reference-manifest.js +3 -0
- 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/app-paths-manifest.json +1 -0
- package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_servers_route_actions_08-m-cs.js +3 -0
- package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_servers_route_actions_08-m-cs.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0tx8s8i._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0tx8s8i._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__03b.f76._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__03b.f76._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0fhoq8i._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0fhoq8i._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +4 -1
- 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_057q.ne._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.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_0_d45-d._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0_d45-d._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0xgney8._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0xgney8._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_10hjgv4._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_10hjgv4._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_12l4oto._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_12l4oto._.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/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/0-mpa_947ipeq.js +1 -0
- package/.next/static/chunks/01lmbsd37fybu.js +1 -0
- package/.next/static/chunks/03o.h6kvmw4l_.js +1 -0
- package/.next/static/chunks/03~~oirxz7~vc.js +1 -0
- package/.next/static/chunks/05uk96gc~9mni.js +1 -0
- package/.next/static/chunks/08kf-.bgs10ze.js +1 -0
- package/.next/static/chunks/09mo5s0d1t.rl.js +4 -0
- package/.next/static/chunks/0_tufsuno-ybu.js +1 -0
- package/.next/static/chunks/0ggj5ummw2a84.js +7 -0
- package/.next/static/chunks/0glmrdj9112tc.js +7 -0
- package/.next/static/chunks/0rxrez_cjn.eh.js +1 -0
- package/.next/static/chunks/0x8x.29hkju5a.js +1 -0
- package/.next/static/chunks/0yjst6n4eqy4c.js +1 -0
- package/.next/static/chunks/0~k1yvhakbob6.css +2 -0
- package/.next/static/chunks/174re5ar~kxne.js +1 -0
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/.next/types/routes.d.ts +2 -1
- package/.next/types/validator.ts +9 -0
- package/app/api/hub/servers/route.ts +39 -0
- package/app/components/ChatPopover.tsx +38 -2
- package/app/components/CommandPalette.tsx +107 -0
- package/app/components/HelpOverlay.tsx +126 -0
- package/app/components/ServersDrawer.tsx +64 -27
- package/app/components/TopoGraph.tsx +4228 -255
- package/app/components/utils.ts +8 -7
- package/app/globals.css +110 -5
- package/app/lib/time.ts +36 -0
- package/package.json +1 -1
- package/scripts/help-overlay-topo-test.mjs +44 -0
- package/scripts/servers-drawer-live-test.mjs +96 -0
- package/scripts/topo-active-filter-pill-test.mjs +101 -0
- package/scripts/topo-active-links-chip-hover-test.mjs +103 -0
- package/scripts/topo-active-links-chip-nav-test.mjs +117 -0
- package/scripts/topo-active-links-chip-self-hover-test.mjs +171 -0
- package/scripts/topo-active-links-chip-test.mjs +73 -0
- package/scripts/topo-active-links-freshness-test.mjs +113 -0
- package/scripts/topo-active-links-tooltip-test.mjs +79 -0
- package/scripts/topo-arrival-ping-test.mjs +87 -0
- package/scripts/topo-arrow-tier-test.mjs +61 -0
- package/scripts/topo-auto-fit-test.mjs +73 -0
- package/scripts/topo-canvas-aria-test.mjs +108 -0
- package/scripts/topo-chat-target-breath-test.mjs +84 -0
- package/scripts/topo-chat-target-ring-fade-test.mjs +124 -0
- package/scripts/topo-chip-focus-test.mjs +95 -0
- package/scripts/topo-chip-pin-mirror-test.mjs +113 -0
- package/scripts/topo-chrome-a11y-test.mjs +107 -0
- package/scripts/topo-chrome-press-state-test.mjs +135 -0
- package/scripts/topo-chrome-zoom-level-pop-test.mjs +122 -0
- package/scripts/topo-chrome-zoom-pop-test.mjs +130 -0
- package/scripts/topo-click-ripple-test.mjs +66 -0
- package/scripts/topo-cmdk-edge-clear-test.mjs +109 -0
- package/scripts/topo-cmdk-layout-view-test.mjs +108 -0
- package/scripts/topo-cmdk-pin-test.mjs +123 -0
- package/scripts/topo-cmdk-vendor-clear-test.mjs +133 -0
- package/scripts/topo-cmdk-vendor-pin-test.mjs +103 -0
- package/scripts/topo-cwd-tooltip-test.mjs +64 -0
- package/scripts/topo-dblclick-reset-test.mjs +74 -0
- package/scripts/topo-discrete-zoom-smooth-test.mjs +125 -0
- package/scripts/topo-dispatch-pulse-test.mjs +83 -0
- package/scripts/topo-edge-badge-click-pin-test.mjs +94 -0
- package/scripts/topo-edge-badge-hot-test.mjs +115 -0
- package/scripts/topo-edge-badge-hover-test.mjs +85 -0
- package/scripts/topo-edge-badge-lift-test.mjs +150 -0
- package/scripts/topo-edge-badge-ripple-test.mjs +111 -0
- package/scripts/topo-edge-badge-stroke-transition-test.mjs +118 -0
- package/scripts/topo-edge-count-badge-test.mjs +86 -0
- package/scripts/topo-edge-endpoint-highlight-test.mjs +111 -0
- package/scripts/topo-edge-fadein-test.mjs +106 -0
- package/scripts/topo-edge-focus-test.mjs +113 -0
- package/scripts/topo-edge-hover-test.mjs +93 -0
- package/scripts/topo-edge-pill-hot-test.mjs +129 -0
- package/scripts/topo-edge-pill-test.mjs +105 -0
- package/scripts/topo-edge-stroke-transition-test.mjs +132 -0
- package/scripts/topo-edge-tooltip-test.mjs +70 -0
- package/scripts/topo-empty-state-breath-test.mjs +150 -0
- package/scripts/topo-endpoint-ring-fade-test.mjs +132 -0
- package/scripts/topo-endpoint-ring-test.mjs +93 -0
- package/scripts/topo-esc-clears-pin-test.mjs +98 -0
- package/scripts/topo-filter-pill-aliases-test.mjs +121 -0
- package/scripts/topo-filter-pill-body-click-test.mjs +112 -0
- package/scripts/topo-filter-pill-count-test.mjs +110 -0
- package/scripts/topo-filter-pill-mobile-test.mjs +90 -0
- package/scripts/topo-fit-key-test.mjs +106 -0
- package/scripts/topo-freshness-chip-test.mjs +74 -0
- package/scripts/topo-freshness-chip-transition-test.mjs +80 -0
- package/scripts/topo-fullscreen-active-test.mjs +115 -0
- package/scripts/topo-group-box-pinned-state-test.mjs +95 -0
- package/scripts/topo-group-count-test.mjs +68 -0
- package/scripts/topo-group-hover-test.mjs +82 -0
- package/scripts/topo-group-label-a11y-test.mjs +113 -0
- package/scripts/topo-group-label-hover-test.mjs +119 -0
- package/scripts/topo-group-label-tint-test.mjs +99 -0
- package/scripts/topo-group-label-title-test.mjs +83 -0
- package/scripts/topo-group-pin-test.mjs +119 -0
- package/scripts/topo-group-status-pips-test.mjs +103 -0
- package/scripts/topo-groupbox-fadein-test.mjs +95 -0
- package/scripts/topo-groupbox-hover-lift-test.mjs +127 -0
- package/scripts/topo-groupbox-live-test.mjs +100 -0
- package/scripts/topo-groupbox-march-busyness-test.mjs +155 -0
- package/scripts/topo-groupbox-test.mjs +4 -2
- package/scripts/topo-help-overlay-r109-test.mjs +67 -0
- package/scripts/topo-help-overlay-r118-test.mjs +69 -0
- package/scripts/topo-help-overlay-r123-test.mjs +69 -0
- package/scripts/topo-help-overlay-r134-test.mjs +74 -0
- package/scripts/topo-help-overlay-r137-test.mjs +81 -0
- package/scripts/topo-help-overlay-r141-test.mjs +86 -0
- package/scripts/topo-help-overlay-r153-test.mjs +85 -0
- package/scripts/topo-help-overlay-r59-test.mjs +67 -0
- package/scripts/topo-help-overlay-r65-test.mjs +64 -0
- package/scripts/topo-help-overlay-r70-test.mjs +63 -0
- package/scripts/topo-help-overlay-r78-test.mjs +59 -0
- package/scripts/topo-help-overlay-r81-test.mjs +58 -0
- package/scripts/topo-help-overlay-r87-test.mjs +64 -0
- package/scripts/topo-help-overlay-r91-test.mjs +65 -0
- package/scripts/topo-hub-a11y-test.mjs +112 -0
- package/scripts/topo-hub-busyness-test.mjs +100 -0
- package/scripts/topo-hub-click-fit-test.mjs +137 -0
- package/scripts/topo-hub-fadein-test.mjs +88 -0
- package/scripts/topo-hub-hover-lift-test.mjs +101 -0
- package/scripts/topo-hub-hover-ring-test.mjs +82 -0
- package/scripts/topo-hub-title-test.mjs +93 -0
- package/scripts/topo-hub-working-count-test.mjs +99 -0
- package/scripts/topo-ingroup-edge-test.mjs +103 -0
- package/scripts/topo-label-lift-test.mjs +119 -0
- package/scripts/topo-label-scale-test.mjs +78 -0
- package/scripts/topo-lastseen-tooltip-test.mjs +59 -0
- package/scripts/topo-layout-key-test.mjs +91 -0
- package/scripts/topo-layout-switch-crossfade-test.mjs +126 -0
- package/scripts/topo-layout-toggle-test.mjs +131 -0
- package/scripts/topo-legend-count-empty-test.mjs +126 -0
- package/scripts/topo-legend-count-test.mjs +88 -0
- package/scripts/topo-legend-hover-test.mjs +113 -0
- package/scripts/topo-legend-panel-header-test.mjs +83 -0
- package/scripts/topo-legend-pin-ring-fade-test.mjs +112 -0
- package/scripts/topo-legend-pin-test.mjs +128 -0
- package/scripts/topo-legend-row-hover-lift-test.mjs +109 -0
- package/scripts/topo-legend-row-tint-test.mjs +95 -0
- package/scripts/topo-legend-row-title-test.mjs +102 -0
- package/scripts/topo-legend-swatch-grow-test.mjs +116 -0
- package/scripts/topo-minimap-a11y-test.mjs +101 -0
- package/scripts/topo-minimap-dot-transition-test.mjs +113 -0
- package/scripts/topo-minimap-test.mjs +68 -0
- package/scripts/topo-minimap-viewport-smooth-test.mjs +124 -0
- package/scripts/topo-mobile-chips-test.mjs +103 -0
- package/scripts/topo-node-a11y-test.mjs +107 -0
- package/scripts/topo-node-hover-lift-test.mjs +85 -0
- package/scripts/topo-node-label-card-elevation-test.mjs +157 -0
- package/scripts/topo-node-stroke-transition-test.mjs +103 -0
- package/scripts/topo-node-title-peers-test.mjs +107 -0
- package/scripts/topo-node-title-test.mjs +101 -0
- package/scripts/topo-nodesize-active-hover-test.mjs +109 -0
- package/scripts/topo-nodesize-crossfade-test.mjs +141 -0
- package/scripts/topo-offline-dim-test.mjs +70 -0
- package/scripts/topo-online-chip-nav-test.mjs +143 -0
- package/scripts/topo-orbit-busyness-test.mjs +96 -0
- package/scripts/topo-overlap-test.mjs +32 -5
- package/scripts/topo-pan-cursor-test.mjs +62 -0
- package/scripts/topo-panel-elevation-test.mjs +76 -0
- package/scripts/topo-panel-fadein-test.mjs +102 -0
- package/scripts/topo-panel-hot-tail-fade-test.mjs +124 -0
- package/scripts/topo-panel-hover-elevation-test.mjs +118 -0
- package/scripts/topo-particle-stagger-test.mjs +82 -0
- package/scripts/topo-pin-intersection-empty-test.mjs +129 -0
- package/scripts/topo-pin-intersection-test.mjs +121 -0
- package/scripts/topo-pin-mirror-transition-test.mjs +101 -0
- package/scripts/topo-pin-persistence-test.mjs +105 -0
- package/scripts/topo-popover-meta-test.mjs +78 -0
- package/scripts/topo-pressure-bar-test.mjs +69 -0
- package/scripts/topo-pressure-hover-test.mjs +123 -0
- package/scripts/topo-pressure-pin-test.mjs +119 -0
- package/scripts/topo-pressure-seg-tooltip-test.mjs +98 -0
- package/scripts/topo-pressure-seg-transition-test.mjs +107 -0
- package/scripts/topo-pulse-rate-test.mjs +71 -0
- package/scripts/topo-recent-panel-count-freshness-test.mjs +109 -0
- package/scripts/topo-recent-panel-count-test.mjs +72 -0
- package/scripts/topo-recent-panel-hot-header-test.mjs +132 -0
- package/scripts/topo-recent-panel-more-cyan-hover-test.mjs +151 -0
- package/scripts/topo-recent-panel-more-nav-test.mjs +127 -0
- package/scripts/topo-recent-panel-more-test.mjs +106 -0
- package/scripts/topo-recent-row-count-fill-test.mjs +129 -0
- package/scripts/topo-recent-row-fadein-test.mjs +107 -0
- package/scripts/topo-recent-row-freshness-test.mjs +102 -0
- package/scripts/topo-recent-row-hot-test.mjs +110 -0
- package/scripts/topo-recent-row-hover-lift-test.mjs +128 -0
- package/scripts/topo-recent-row-hover-test.mjs +122 -0
- package/scripts/topo-recent-row-pin-test.mjs +126 -0
- package/scripts/topo-recent-row-tint-test.mjs +91 -0
- package/scripts/topo-recent-row-title-test.mjs +112 -0
- package/scripts/topo-recent-row-ts-alpha-test.mjs +100 -0
- package/scripts/topo-recent-row-ts-test.mjs +95 -0
- package/scripts/topo-recent-row-typography-test.mjs +119 -0
- package/scripts/topo-recent-signal-empty-hint-test.mjs +73 -0
- package/scripts/topo-recent-signal-empty-test.mjs +63 -0
- package/scripts/topo-reduced-motion-test.mjs +77 -0
- package/scripts/topo-reset-spin-test.mjs +120 -0
- package/scripts/topo-spoke-busyness-test.mjs +110 -0
- package/scripts/topo-status-chip-hover-test.mjs +101 -0
- package/scripts/topo-status-chip-tooltip-test.mjs +95 -0
- package/scripts/topo-statusbar-chips-self-hover-test.mjs +177 -0
- package/scripts/topo-svg-focus-test.mjs +112 -0
- package/scripts/topo-sweep-busyness-test.mjs +94 -0
- package/scripts/topo-tier-ring-fadein-test.mjs +107 -0
- package/scripts/topo-tier-ring-occupancy-test.mjs +87 -0
- package/scripts/topo-tier-ring-test.mjs +69 -0
- package/scripts/topo-tier-ring-tint-test.mjs +110 -0
- package/scripts/topo-tier-stagger-test.mjs +89 -0
- package/scripts/topo-tz-ghost-test.mjs +69 -0
- package/scripts/topo-vendor-chip-hover-test.mjs +111 -0
- package/scripts/topo-vendor-chip-self-hover-test.mjs +130 -0
- package/scripts/topo-vendor-letter-tooltip-test.mjs +92 -0
- package/scripts/topo-vendor-pill-test.mjs +125 -0
- package/scripts/topo-vendor-pin-test.mjs +125 -0
- package/scripts/topo-view-smooth-test.mjs +131 -0
- package/scripts/topo-wheel-zoom-test.mjs +79 -0
- package/scripts/topo-working-chip-pin-test.mjs +154 -0
- package/scripts/topo-working-halo-breath-test.mjs +86 -0
- package/scripts/topo-zoom-keys-test.mjs +89 -0
- package/.next/static/chunks/0-7iowzu4.798.js +0 -1
- package/.next/static/chunks/01j59m93~ijpq.js +0 -1
- package/.next/static/chunks/02t5jr4shh.hy.js +0 -1
- package/.next/static/chunks/09nd.t_hd.y6t.css +0 -2
- package/.next/static/chunks/0_qfg5s5uzs7..js +0 -7
- package/.next/static/chunks/0elalb9n_.~di.js +0 -1
- package/.next/static/chunks/0fqy_0wj_1xa7.js +0 -7
- package/.next/static/chunks/0j_q__o8p6g83.js +0 -1
- package/.next/static/chunks/0jl6_w50zh4l5.js +0 -1
- package/.next/static/chunks/0ms~5~zq93-vs.js +0 -1
- package/.next/static/chunks/0nh4tljy5z5ns.js +0 -1
- package/.next/static/chunks/0r4q73.-1bkyl.js +0 -1
- package/.next/static/chunks/0r_c8eccg3z2o.js +0 -1
- package/.next/static/chunks/10oi7l-tycgl9.js +0 -1
- package/.next/static/chunks/11uk1izuv3~0t.js +0 -1
- /package/.next/static/{XiA2VWgHsZvuY-5yWxSPj → FMKI0Nb4m8uK25F_8komz}/_buildManifest.js +0 -0
- /package/.next/static/{XiA2VWgHsZvuY-5yWxSPj → FMKI0Nb4m8uK25F_8komz}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{XiA2VWgHsZvuY-5yWxSPj → FMKI0Nb4m8uK25F_8komz}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* Round 169 verification: keyboard '+'/'−' and chrome zoom in/out
|
|
2
|
+
* buttons arm the R168 smoothView transition.
|
|
3
|
+
*
|
|
4
|
+
* R168 introduced one-shot smoothView arming on resetView/fitView.
|
|
5
|
+
* R169 extends the same arming to the three other DISCRETE zoom
|
|
6
|
+
* surfaces (one keypress / button-click = one 1.2× step):
|
|
7
|
+
* keyboard '+' / '=' / '−' / '_'
|
|
8
|
+
* chrome zoom-in / zoom-out buttons
|
|
9
|
+
*
|
|
10
|
+
* Wheel zoom stays direct (every tick = live, no transition lag).
|
|
11
|
+
* Wrapper:
|
|
12
|
+
* const zoomByDiscrete = (factor) => {
|
|
13
|
+
* setSmoothView(true);
|
|
14
|
+
* setTimeout(() => setSmoothView(false), 350);
|
|
15
|
+
* zoomBy(factor);
|
|
16
|
+
* };
|
|
17
|
+
*
|
|
18
|
+
* Test:
|
|
19
|
+
* 1. Idle: smooth=false, no transition
|
|
20
|
+
* 2. Press '+': smooth=true, transition 'transform 300ms ease-out'
|
|
21
|
+
* zoom 100% → 120%
|
|
22
|
+
* 3. Wait 450ms: smooth=false, transition cleared
|
|
23
|
+
* 4. Click chrome zoom-in button: smooth=true again (same path)
|
|
24
|
+
* 5. Press '−': smooth=true, zoom back toward 100%
|
|
25
|
+
*/
|
|
26
|
+
import { chromium } from 'playwright';
|
|
27
|
+
import { readFileSync } from 'node:fs';
|
|
28
|
+
|
|
29
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
30
|
+
const browser = await chromium.launch({ headless: true });
|
|
31
|
+
|
|
32
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
33
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
34
|
+
await ctx.addInitScript(() => {
|
|
35
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
39
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
40
|
+
const r = await route.fetch();
|
|
41
|
+
const b = await r.json();
|
|
42
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
43
|
+
const mk = (alias) => ({
|
|
44
|
+
alias, status: 'working', model: 'claude-opus-4', runtime: 'cli-claude-code',
|
|
45
|
+
network_id: nid, project_dir: null,
|
|
46
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
47
|
+
});
|
|
48
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [mk('alpha'), mk('beta'), mk('gamma')] } });
|
|
49
|
+
});
|
|
50
|
+
await ctx.route('**/api/hub/messages*', (route) => route.fulfill({ json: { messages: [] } }));
|
|
51
|
+
await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
|
|
52
|
+
|
|
53
|
+
const page = await ctx.newPage();
|
|
54
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
55
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 3, { timeout: 30000 });
|
|
56
|
+
await page.waitForSelector('[data-topo-viewport]', { timeout: 10000 });
|
|
57
|
+
await page.waitForTimeout(400);
|
|
58
|
+
|
|
59
|
+
const probeViewport = () => page.evaluate(() => {
|
|
60
|
+
const g = document.querySelector('[data-topo-viewport]');
|
|
61
|
+
return {
|
|
62
|
+
smooth: g?.getAttribute('data-topo-viewport-smooth'),
|
|
63
|
+
transition: g?.style?.transition || '',
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
const probeZoom = () => page.evaluate(() =>
|
|
67
|
+
document.querySelector('[data-topo-chrome-zoom-level]')?.textContent?.trim());
|
|
68
|
+
|
|
69
|
+
const idle = await probeViewport();
|
|
70
|
+
const zoomIdle = await probeZoom();
|
|
71
|
+
|
|
72
|
+
// Press '+' → keyboard zoom-in. Probe within the 350ms window.
|
|
73
|
+
await page.keyboard.press('+');
|
|
74
|
+
await page.waitForTimeout(50);
|
|
75
|
+
const duringKbZoomIn = await probeViewport();
|
|
76
|
+
const zoomAfterKb = await probeZoom();
|
|
77
|
+
|
|
78
|
+
// Wait past the 350ms window
|
|
79
|
+
await page.waitForTimeout(450);
|
|
80
|
+
const afterKbZoomIn = await probeViewport();
|
|
81
|
+
|
|
82
|
+
// Click chrome zoom-in button → same arming path
|
|
83
|
+
await page.locator('[data-topo-chrome-zoom-in]').click();
|
|
84
|
+
await page.waitForTimeout(50);
|
|
85
|
+
const duringChromeZoomIn = await probeViewport();
|
|
86
|
+
const zoomAfterChromeIn = await probeZoom();
|
|
87
|
+
|
|
88
|
+
// Wait past window then press '−' (keyboard zoom-out)
|
|
89
|
+
await page.waitForTimeout(450);
|
|
90
|
+
await page.keyboard.press('-');
|
|
91
|
+
await page.waitForTimeout(50);
|
|
92
|
+
const duringKbZoomOut = await probeViewport();
|
|
93
|
+
const zoomAfterKbOut = await probeZoom();
|
|
94
|
+
|
|
95
|
+
await browser.close();
|
|
96
|
+
|
|
97
|
+
const results = {
|
|
98
|
+
viewport_found: idle !== null,
|
|
99
|
+
idle_smooth_false: idle.smooth === 'false',
|
|
100
|
+
idle_no_transition: !idle.transition.includes('transform'),
|
|
101
|
+
idle_zoom_100: zoomIdle === '100%',
|
|
102
|
+
|
|
103
|
+
kb_plus_armed_smooth: duringKbZoomIn.smooth === 'true',
|
|
104
|
+
kb_plus_transition_set: duringKbZoomIn.transition.includes('transform 300ms'),
|
|
105
|
+
kb_plus_zoom_increased: zoomAfterKb !== '100%',
|
|
106
|
+
|
|
107
|
+
after_kb_smooth_cleared: afterKbZoomIn.smooth === 'false',
|
|
108
|
+
after_kb_no_transition: !afterKbZoomIn.transition.includes('transform'),
|
|
109
|
+
|
|
110
|
+
chrome_in_armed_smooth: duringChromeZoomIn.smooth === 'true',
|
|
111
|
+
chrome_in_transition_set: duringChromeZoomIn.transition.includes('transform 300ms'),
|
|
112
|
+
chrome_in_zoom_increased: zoomAfterChromeIn !== zoomAfterKb,
|
|
113
|
+
|
|
114
|
+
kb_minus_armed_smooth: duringKbZoomOut.smooth === 'true',
|
|
115
|
+
kb_minus_transition_set: duringKbZoomOut.transition.includes('transform 300ms'),
|
|
116
|
+
kb_minus_zoom_decreased: zoomAfterKbOut !== zoomAfterChromeIn,
|
|
117
|
+
};
|
|
118
|
+
const ok = Object.values(results).every(Boolean);
|
|
119
|
+
console.log(`${ok ? '✅' : '❌'} discrete zoom smooth:`, JSON.stringify(results),
|
|
120
|
+
`\n idle =`, idle, `zoom=${zoomIdle}`,
|
|
121
|
+
`\n '+' fired =`, duringKbZoomIn, `zoom=${zoomAfterKb}`,
|
|
122
|
+
`\n after '+' =`, afterKbZoomIn,
|
|
123
|
+
`\n chrome-in fired =`, duringChromeZoomIn, `zoom=${zoomAfterChromeIn}`,
|
|
124
|
+
`\n '-' fired =`, duringKbZoomOut, `zoom=${zoomAfterKbOut}`);
|
|
125
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* Round 76 verification: source-side dispatch pulse renders for high-
|
|
2
|
+
* traffic edges only (link.count >= 3), bookending the R75 destination
|
|
3
|
+
* ping. Quiet edges (count < 3) skip the source pulse to keep the
|
|
4
|
+
* canvas calm. Reduced-motion users see neither pulse nor ping.
|
|
5
|
+
*
|
|
6
|
+
* - Busy alpha→beta (5 messages, fresh) → dispatch pulse present at
|
|
7
|
+
* source AND arrival ping at destination.
|
|
8
|
+
* - Quiet gamma→delta (1 message, fresh) → arrival ping only, no
|
|
9
|
+
* dispatch pulse.
|
|
10
|
+
* - Reduced-motion: no dispatch pulses, no arrival pings.
|
|
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 browser = await chromium.launch({ headless: true });
|
|
17
|
+
|
|
18
|
+
async function probe(reducedMotion) {
|
|
19
|
+
const ctx = await browser.newContext({
|
|
20
|
+
viewport: { width: 1280, height: 1500 },
|
|
21
|
+
reducedMotion: reducedMotion ? 'reduce' : 'no-preference',
|
|
22
|
+
});
|
|
23
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
24
|
+
await ctx.addInitScript(() => {
|
|
25
|
+
try {
|
|
26
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
27
|
+
localStorage.setItem('anet-topo-layout', 'ring');
|
|
28
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
29
|
+
sessionStorage.removeItem('anet-topo-pinned-status');
|
|
30
|
+
sessionStorage.removeItem('anet-topo-pinned-group');
|
|
31
|
+
} catch {}
|
|
32
|
+
});
|
|
33
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
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 sessions = ['alpha', 'beta', 'gamma', 'delta'].map(a => ({
|
|
39
|
+
alias: a, status: 'idle', 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
|
+
});
|
|
44
|
+
// 5 busy messages alpha→beta + 1 quiet gamma→delta.
|
|
45
|
+
const now = new Date().toISOString();
|
|
46
|
+
const msgs = [
|
|
47
|
+
...Array.from({ length: 5 }).map(() => ({ from_alias: 'alpha', to_alias: 'beta', content: 'm', created_at: now })),
|
|
48
|
+
{ from_alias: 'gamma', to_alias: 'delta', content: 'm', created_at: now },
|
|
49
|
+
];
|
|
50
|
+
await ctx.route('**/api/hub/messages*', (route) => route.fulfill({ json: { messages: msgs } }));
|
|
51
|
+
await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
|
|
52
|
+
const page = await ctx.newPage();
|
|
53
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
54
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 4, { timeout: 30000 });
|
|
55
|
+
await page.waitForTimeout(600);
|
|
56
|
+
const elements = await page.evaluate(() => {
|
|
57
|
+
return {
|
|
58
|
+
dispatchPulses: [...document.querySelectorAll('[data-dispatch-pulse]')].map(el => el.getAttribute('data-dispatch-pulse')),
|
|
59
|
+
arrivalPings: [...document.querySelectorAll('[data-arrival-ping]')].map(el => el.getAttribute('data-arrival-ping')),
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
await ctx.close();
|
|
63
|
+
return elements;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const normal = await probe(false);
|
|
67
|
+
const reduced = await probe(true);
|
|
68
|
+
await browser.close();
|
|
69
|
+
|
|
70
|
+
const has = (arr, key) => arr.includes(key);
|
|
71
|
+
const results = {
|
|
72
|
+
normal_busyHasDispatch: has(normal.dispatchPulses, 'alpha->beta'),
|
|
73
|
+
normal_quietHasNoDispatch: !has(normal.dispatchPulses, 'gamma->delta'),
|
|
74
|
+
normal_busyHasArrival: has(normal.arrivalPings, 'alpha->beta'),
|
|
75
|
+
normal_quietHasArrival: has(normal.arrivalPings, 'gamma->delta'),
|
|
76
|
+
reduced_noDispatchPulses: reduced.dispatchPulses.length === 0,
|
|
77
|
+
reduced_noArrivalPings: reduced.arrivalPings.length === 0,
|
|
78
|
+
};
|
|
79
|
+
const ok = Object.values(results).every(Boolean);
|
|
80
|
+
console.log(`${ok ? '✅' : '❌'} dispatch pulse:`, JSON.stringify(results),
|
|
81
|
+
`\n normal=`, normal,
|
|
82
|
+
`\n reduced=`, reduced);
|
|
83
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* Round 121 verification: clicking an edge midpoint count badge
|
|
2
|
+
* (R100) pins the matching flow, mirroring the R116 recent-signal
|
|
3
|
+
* row click-pin from the canvas side. Closes the gap where the
|
|
4
|
+
* canvas had no pin-from-here affordance.
|
|
5
|
+
*
|
|
6
|
+
* Drive: 1 flow with count >= 3 (badge renders). Click badge →
|
|
7
|
+
* data-edge-count-badge-pinned="true", aria-pressed="true", the
|
|
8
|
+
* matching pill (R119) appears. Click again → release.
|
|
9
|
+
*/
|
|
10
|
+
import { chromium } from 'playwright';
|
|
11
|
+
import { readFileSync } from 'node:fs';
|
|
12
|
+
|
|
13
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
14
|
+
const browser = await chromium.launch({ headless: true });
|
|
15
|
+
|
|
16
|
+
const ctx = await browser.newContext({ viewport: { width: 1400, height: 1500 } });
|
|
17
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
18
|
+
await ctx.addInitScript(() => {
|
|
19
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
23
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
24
|
+
const r = await route.fetch();
|
|
25
|
+
const b = await r.json();
|
|
26
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
27
|
+
const mk = (alias) => ({
|
|
28
|
+
alias, status: 'idle', model: 'claude-opus-4', runtime: 'cli-claude-code',
|
|
29
|
+
network_id: nid, project_dir: null,
|
|
30
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
31
|
+
});
|
|
32
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [mk('alpha'), mk('beta'), mk('gamma')] } });
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const now = Date.now();
|
|
36
|
+
const mkMsg = (id, from_alias, to_alias, ageMs) => ({
|
|
37
|
+
id, from_alias, to_alias, content: 'hi', network_id: 'default',
|
|
38
|
+
created_at: new Date(now - ageMs).toISOString(),
|
|
39
|
+
});
|
|
40
|
+
await ctx.route('**/api/hub/messages*', (route) => route.fulfill({ json: { messages: [
|
|
41
|
+
mkMsg('m1', 'alpha', 'beta', 30 * 1000),
|
|
42
|
+
mkMsg('m2', 'alpha', 'beta', 40 * 1000),
|
|
43
|
+
mkMsg('m3', 'alpha', 'beta', 50 * 1000),
|
|
44
|
+
mkMsg('m4', 'alpha', 'beta', 60 * 1000),
|
|
45
|
+
] } }));
|
|
46
|
+
await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
|
|
47
|
+
const page = await ctx.newPage();
|
|
48
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
49
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 3, { timeout: 30000 });
|
|
50
|
+
await page.waitForSelector('[data-edge-count-badge]', { timeout: 10000 });
|
|
51
|
+
await page.waitForTimeout(400);
|
|
52
|
+
|
|
53
|
+
const probe = () => page.evaluate(() => {
|
|
54
|
+
const badge = document.querySelector('[data-edge-count-badge="alpha->beta"]');
|
|
55
|
+
return {
|
|
56
|
+
badgePinned: badge?.getAttribute('data-edge-count-badge-pinned') || '',
|
|
57
|
+
aria: badge?.getAttribute('aria-pressed') || '',
|
|
58
|
+
pillExists: document.querySelector('[data-active-filter="edge"]') !== null,
|
|
59
|
+
title: badge?.querySelector('title')?.textContent || '',
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const before = await probe();
|
|
64
|
+
|
|
65
|
+
// Click the badge → pin.
|
|
66
|
+
await page.locator('[data-edge-count-badge="alpha->beta"]').click();
|
|
67
|
+
await page.mouse.move(10, 10);
|
|
68
|
+
await page.waitForTimeout(300);
|
|
69
|
+
const afterClick = await probe();
|
|
70
|
+
|
|
71
|
+
// Click again → release.
|
|
72
|
+
await page.locator('[data-edge-count-badge="alpha->beta"]').click();
|
|
73
|
+
await page.mouse.move(10, 10);
|
|
74
|
+
await page.waitForTimeout(300);
|
|
75
|
+
const afterRelease = await probe();
|
|
76
|
+
|
|
77
|
+
await browser.close();
|
|
78
|
+
|
|
79
|
+
const results = {
|
|
80
|
+
before_notPinned: before.badgePinned === 'false' && before.aria === 'false',
|
|
81
|
+
before_noPill: before.pillExists === false,
|
|
82
|
+
before_titlePinHint: /click to pin/.test(before.title),
|
|
83
|
+
click_pinned: afterClick.badgePinned === 'true' && afterClick.aria === 'true',
|
|
84
|
+
click_pillAppears: afterClick.pillExists === true,
|
|
85
|
+
click_titleReleaseHint: /click to release pin/.test(afterClick.title),
|
|
86
|
+
release_unpinned: afterRelease.badgePinned === 'false' && afterRelease.aria === 'false',
|
|
87
|
+
release_pillGone: afterRelease.pillExists === false,
|
|
88
|
+
};
|
|
89
|
+
const ok = Object.values(results).every(Boolean);
|
|
90
|
+
console.log(`${ok ? '✅' : '❌'} edge-badge click-pin:`, JSON.stringify(results),
|
|
91
|
+
`\n before=`, before,
|
|
92
|
+
`\n afterClick=`, afterClick,
|
|
93
|
+
`\n afterRelease=`, afterRelease);
|
|
94
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* Round 126 verification: hot-edge accent on the midpoint count
|
|
2
|
+
* badge. The edge stroke width (line 2344 of TopoGraph.tsx) scales
|
|
3
|
+
* with count but clamps at 7px — so count=5 and count=50 look
|
|
4
|
+
* identical at the line. R100 introduced the badge for high-traffic
|
|
5
|
+
* lanes, but the badge itself stayed the same colour regardless.
|
|
6
|
+
*
|
|
7
|
+
* R126 buckets count ≥ 10 as "hot" and flips the badge stroke to
|
|
8
|
+
* amber (#d97706 light, #fbbf24 dark) + thickens to width 2. Pin
|
|
9
|
+
* still wins (uses legendHeadline) so pinned-hot reads as locked
|
|
10
|
+
* via the badge text + edge brightness, not via a third stroke
|
|
11
|
+
* colour. Reuses R125's amber convention — "amber draws the eye".
|
|
12
|
+
*
|
|
13
|
+
* Fleet:
|
|
14
|
+
* alpha (working) — pings beta with 12 msgs (hot)
|
|
15
|
+
* beta (working) — pings gamma with 4 msgs (warm, badge but not hot)
|
|
16
|
+
* gamma (idle)
|
|
17
|
+
*
|
|
18
|
+
* Path:
|
|
19
|
+
* 1. alpha→beta: badge hot=true, stroke matches amber rgb
|
|
20
|
+
* 2. beta→gamma: badge hot=false, stroke matches flowEdge (not amber)
|
|
21
|
+
* 3. Click alpha→beta to pin; pin still wins (stroke = legendHeadline,
|
|
22
|
+
* data-edge-count-badge-pinned=true, hot=true is still flagged
|
|
23
|
+
* via the attribute but the visible stroke is the pin colour)
|
|
24
|
+
*/
|
|
25
|
+
import { chromium } from 'playwright';
|
|
26
|
+
import { readFileSync } from 'node:fs';
|
|
27
|
+
|
|
28
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
29
|
+
const browser = await chromium.launch({ headless: true });
|
|
30
|
+
|
|
31
|
+
const ctx = await browser.newContext({ viewport: { width: 1400, height: 1500 } });
|
|
32
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
33
|
+
await ctx.addInitScript(() => {
|
|
34
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
38
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
39
|
+
const r = await route.fetch();
|
|
40
|
+
const b = await r.json();
|
|
41
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
42
|
+
const mk = (alias, status) => ({
|
|
43
|
+
alias, status, model: 'claude-opus-4', runtime: 'cli-claude-code',
|
|
44
|
+
network_id: nid, project_dir: null,
|
|
45
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
46
|
+
});
|
|
47
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
48
|
+
mk('alpha', 'working'),
|
|
49
|
+
mk('beta', 'working'),
|
|
50
|
+
mk('gamma', 'idle'),
|
|
51
|
+
] } });
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const now = Date.now();
|
|
55
|
+
const mkMsg = (id, from_alias, to_alias, ageMs) => ({
|
|
56
|
+
id, from_alias, to_alias, content: 'x', network_id: 'default',
|
|
57
|
+
created_at: new Date(now - ageMs).toISOString(),
|
|
58
|
+
});
|
|
59
|
+
// 12 alpha→beta = HOT, 4 beta→gamma = warm
|
|
60
|
+
const msgs = [];
|
|
61
|
+
for (let i = 0; i < 12; i++) msgs.push(mkMsg(`a${i}`, 'alpha', 'beta', 20000 + i * 500));
|
|
62
|
+
for (let i = 0; i < 4; i++) msgs.push(mkMsg(`b${i}`, 'beta', 'gamma', 30000 + i * 500));
|
|
63
|
+
await ctx.route('**/api/hub/messages*', (route) => route.fulfill({ json: { messages: msgs } }));
|
|
64
|
+
await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
|
|
65
|
+
|
|
66
|
+
const page = await ctx.newPage();
|
|
67
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
68
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 3, { timeout: 30000 });
|
|
69
|
+
await page.waitForSelector('[data-edge-count-badge="alpha->beta"]', { timeout: 10000 });
|
|
70
|
+
await page.waitForTimeout(400);
|
|
71
|
+
|
|
72
|
+
const inspect = (key) => page.evaluate((k) => {
|
|
73
|
+
const g = document.querySelector(`[data-edge-count-badge="${k}"]`);
|
|
74
|
+
if (!g) return null;
|
|
75
|
+
const circle = g.querySelector('circle');
|
|
76
|
+
return {
|
|
77
|
+
hot: g.getAttribute('data-edge-count-badge-hot'),
|
|
78
|
+
pinned: g.getAttribute('data-edge-count-badge-pinned'),
|
|
79
|
+
stroke: circle?.getAttribute('stroke'),
|
|
80
|
+
strokeWidth: circle?.getAttribute('stroke-width'),
|
|
81
|
+
};
|
|
82
|
+
}, key);
|
|
83
|
+
|
|
84
|
+
// State 1 + 2: before any pin
|
|
85
|
+
const a2b = await inspect('alpha->beta');
|
|
86
|
+
const b2g = await inspect('beta->gamma');
|
|
87
|
+
|
|
88
|
+
// State 3: pin alpha→beta — pin wins over hot
|
|
89
|
+
await page.locator('[data-edge-count-badge="alpha->beta"]').click();
|
|
90
|
+
await page.waitForTimeout(200);
|
|
91
|
+
const a2bPinned = await inspect('alpha->beta');
|
|
92
|
+
|
|
93
|
+
await browser.close();
|
|
94
|
+
|
|
95
|
+
// Cyber theme amber: #fbbf24
|
|
96
|
+
const amberHex = '#fbbf24';
|
|
97
|
+
const flowEdgeNotAmber = (s) => !!s && s.toLowerCase() !== amberHex.toLowerCase();
|
|
98
|
+
|
|
99
|
+
const results = {
|
|
100
|
+
hot_present: a2b !== null && a2b.hot === 'true',
|
|
101
|
+
hot_strokeAmber: a2b !== null && (a2b.stroke || '').toLowerCase() === amberHex.toLowerCase(),
|
|
102
|
+
hot_strokeWidth2: a2b !== null && a2b.strokeWidth === '2',
|
|
103
|
+
warm_notHot: b2g !== null && b2g.hot === 'false',
|
|
104
|
+
warm_strokeNotAmber: b2g !== null && flowEdgeNotAmber(b2g.stroke),
|
|
105
|
+
warm_strokeWidth1: b2g !== null && b2g.strokeWidth === '1',
|
|
106
|
+
pin_winsOverHot: a2bPinned !== null && a2bPinned.pinned === 'true' && a2bPinned.hot === 'true'
|
|
107
|
+
&& (a2bPinned.stroke || '').toLowerCase() !== amberHex.toLowerCase()
|
|
108
|
+
&& a2bPinned.strokeWidth === '2',
|
|
109
|
+
};
|
|
110
|
+
const ok = Object.values(results).every(Boolean);
|
|
111
|
+
console.log(`${ok ? '✅' : '❌'} edge-badge hot:`, JSON.stringify(results),
|
|
112
|
+
`\n a2b(12msg)=`, a2b,
|
|
113
|
+
`\n b2g(4msg)=`, b2g,
|
|
114
|
+
`\n a2b-pinned=`, a2bPinned);
|
|
115
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* Round 122 verification: hovering the edge midpoint count badge
|
|
2
|
+
* (R100/R121) sets hoveredEdgeKey — same as hovering the line
|
|
3
|
+
* itself (R48). Endpoint rings light, edge brightens. R121 only
|
|
4
|
+
* wired click; R122 closes the hover consistency gap.
|
|
5
|
+
*
|
|
6
|
+
* Fleet: alpha→beta with 4 msgs (badge renders), gamma idle.
|
|
7
|
+
* Hover the badge → alpha + beta get endpoint rings (R111),
|
|
8
|
+
* gamma stays bare. mouseleave → rings clear.
|
|
9
|
+
*/
|
|
10
|
+
import { chromium } from 'playwright';
|
|
11
|
+
import { readFileSync } from 'node:fs';
|
|
12
|
+
|
|
13
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
14
|
+
const browser = await chromium.launch({ headless: true });
|
|
15
|
+
|
|
16
|
+
const ctx = await browser.newContext({ viewport: { width: 1400, height: 1500 } });
|
|
17
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
18
|
+
await ctx.addInitScript(() => {
|
|
19
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
23
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
24
|
+
const r = await route.fetch();
|
|
25
|
+
const b = await r.json();
|
|
26
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
27
|
+
const mk = (alias) => ({
|
|
28
|
+
alias, status: 'idle', model: 'claude-opus-4', runtime: 'cli-claude-code',
|
|
29
|
+
network_id: nid, project_dir: null,
|
|
30
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
31
|
+
});
|
|
32
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [mk('alpha'), mk('beta'), mk('gamma')] } });
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const now = Date.now();
|
|
36
|
+
const mkMsg = (id, from_alias, to_alias, ageMs) => ({
|
|
37
|
+
id, from_alias, to_alias, content: 'hi', network_id: 'default',
|
|
38
|
+
created_at: new Date(now - ageMs).toISOString(),
|
|
39
|
+
});
|
|
40
|
+
await ctx.route('**/api/hub/messages*', (route) => route.fulfill({ json: { messages: [
|
|
41
|
+
mkMsg('m1', 'alpha', 'beta', 30 * 1000),
|
|
42
|
+
mkMsg('m2', 'alpha', 'beta', 40 * 1000),
|
|
43
|
+
mkMsg('m3', 'alpha', 'beta', 50 * 1000),
|
|
44
|
+
mkMsg('m4', 'alpha', 'beta', 60 * 1000),
|
|
45
|
+
] } }));
|
|
46
|
+
await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
|
|
47
|
+
const page = await ctx.newPage();
|
|
48
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
49
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 3, { timeout: 30000 });
|
|
50
|
+
await page.waitForSelector('[data-edge-count-badge]', { timeout: 10000 });
|
|
51
|
+
await page.waitForTimeout(400);
|
|
52
|
+
|
|
53
|
+
const rings = () => page.evaluate(() => ({
|
|
54
|
+
alpha: !!document.querySelector('g[data-node="alpha"] [data-edge-endpoint-ring]'),
|
|
55
|
+
beta: !!document.querySelector('g[data-node="beta"] [data-edge-endpoint-ring]'),
|
|
56
|
+
gamma: !!document.querySelector('g[data-node="gamma"] [data-edge-endpoint-ring]'),
|
|
57
|
+
}));
|
|
58
|
+
|
|
59
|
+
const before = await rings();
|
|
60
|
+
|
|
61
|
+
// Hover the badge.
|
|
62
|
+
await page.locator('[data-edge-count-badge="alpha->beta"]').hover();
|
|
63
|
+
await page.waitForTimeout(300);
|
|
64
|
+
const onHover = await rings();
|
|
65
|
+
|
|
66
|
+
// Mouse far away.
|
|
67
|
+
await page.mouse.move(10, 10);
|
|
68
|
+
await page.waitForTimeout(300);
|
|
69
|
+
const afterLeave = await rings();
|
|
70
|
+
|
|
71
|
+
await browser.close();
|
|
72
|
+
|
|
73
|
+
const results = {
|
|
74
|
+
before_noRings: !before.alpha && !before.beta && !before.gamma,
|
|
75
|
+
hover_alphaRing: onHover.alpha === true,
|
|
76
|
+
hover_betaRing: onHover.beta === true,
|
|
77
|
+
hover_gammaBare: onHover.gamma === false,
|
|
78
|
+
leave_allClear: !afterLeave.alpha && !afterLeave.beta && !afterLeave.gamma,
|
|
79
|
+
};
|
|
80
|
+
const ok = Object.values(results).every(Boolean);
|
|
81
|
+
console.log(`${ok ? '✅' : '❌'} edge-badge hover:`, JSON.stringify(results),
|
|
82
|
+
`\n before=`, before,
|
|
83
|
+
`\n onHover=`, onHover,
|
|
84
|
+
`\n afterLeave=`, afterLeave);
|
|
85
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/* Round 164 verification: edge midpoint count badge gains
|
|
2
|
+
* hover-lift (6th surface in the hover-elevation idiom family).
|
|
3
|
+
*
|
|
4
|
+
* Pre-R164 the badge had R122 hover→edge-brighten propagation
|
|
5
|
+
* but the badge itself stayed static (r=9, strokeWidth=1 or 2).
|
|
6
|
+
* The hover-elevation family covered nodes/panels/group boxes/
|
|
7
|
+
* recent rows/legend rows but not the canvas edge badges.
|
|
8
|
+
*
|
|
9
|
+
* R164:
|
|
10
|
+
* r = (isHoveredEdge || isPinned) ? 10.5 : 9
|
|
11
|
+
* transition r 180ms ease-out
|
|
12
|
+
* data-edge-badge-lifted = 'true' | 'false'
|
|
13
|
+
*
|
|
14
|
+
* Pin still keeps its R121 stroke change (legendHeadline +
|
|
15
|
+
* width 2). Hover and pin share the radius lift.
|
|
16
|
+
*
|
|
17
|
+
* Test:
|
|
18
|
+
* 1. Mock 4 msgs on alpha→beta (R100 threshold = count >= 3)
|
|
19
|
+
* 2. Probe idle radius = 9
|
|
20
|
+
* 3. Hover the edge line → badge r = 10.5
|
|
21
|
+
* 4. Mouseleave → r = 9 again
|
|
22
|
+
* 5. Click badge → pin, r = 10.5 + stroke change
|
|
23
|
+
*/
|
|
24
|
+
import { chromium } from 'playwright';
|
|
25
|
+
import { readFileSync } from 'node:fs';
|
|
26
|
+
|
|
27
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
28
|
+
const browser = await chromium.launch({ headless: true });
|
|
29
|
+
|
|
30
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
31
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
32
|
+
await ctx.addInitScript(() => {
|
|
33
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
37
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
38
|
+
const r = await route.fetch();
|
|
39
|
+
const b = await r.json();
|
|
40
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
41
|
+
const mk = (alias) => ({
|
|
42
|
+
alias, status: 'working', model: 'claude-opus-4', runtime: 'cli-claude-code',
|
|
43
|
+
network_id: nid, project_dir: null,
|
|
44
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
45
|
+
});
|
|
46
|
+
// 4 sessions so alpha and beta sit 90° apart on the ring
|
|
47
|
+
// (not 180° apart — which would put alpha→beta midpoint
|
|
48
|
+
// exactly on the hub at 500,330 and let the hub's r=18
|
|
49
|
+
// halo intercept the badge hover). gamma + delta are
|
|
50
|
+
// filler with no flows; the only edge badge that renders
|
|
51
|
+
// is alpha↔beta.
|
|
52
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
53
|
+
mk('alpha'), mk('beta'), mk('gamma'), mk('delta'),
|
|
54
|
+
] } });
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
const now = Date.now();
|
|
58
|
+
const msgs = [];
|
|
59
|
+
for (let i = 0; i < 4; i++) {
|
|
60
|
+
msgs.push({ id: `m${i}`, from_alias: 'alpha', to_alias: 'beta', content: 'hi',
|
|
61
|
+
network_id: 'default', created_at: new Date(now - (10000 + i * 500)).toISOString() });
|
|
62
|
+
}
|
|
63
|
+
await ctx.route('**/api/hub/messages*', (route) => route.fulfill({ json: { messages: msgs } }));
|
|
64
|
+
await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
|
|
65
|
+
|
|
66
|
+
const page = await ctx.newPage();
|
|
67
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
68
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 4, { timeout: 30000 });
|
|
69
|
+
await page.waitForSelector('[data-edge-count-badge]', { timeout: 10000 });
|
|
70
|
+
await page.waitForTimeout(400);
|
|
71
|
+
|
|
72
|
+
// Probe idle state
|
|
73
|
+
const idle = await page.evaluate(() => {
|
|
74
|
+
const g = document.querySelector('[data-edge-count-badge]');
|
|
75
|
+
if (!g) return null;
|
|
76
|
+
const c = g.querySelector('circle');
|
|
77
|
+
return {
|
|
78
|
+
r: parseFloat(c.getAttribute('r')),
|
|
79
|
+
lifted: c.getAttribute('data-edge-badge-lifted'),
|
|
80
|
+
stroke: c.getAttribute('stroke'),
|
|
81
|
+
strokeWidth: parseFloat(c.getAttribute('stroke-width')),
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// Hover the badge (it also propagates to hoveredEdgeKey)
|
|
86
|
+
await page.locator('[data-edge-count-badge]').hover();
|
|
87
|
+
await page.waitForTimeout(300);
|
|
88
|
+
const hovered = await page.evaluate(() => {
|
|
89
|
+
const g = document.querySelector('[data-edge-count-badge]');
|
|
90
|
+
if (!g) return null;
|
|
91
|
+
const c = g.querySelector('circle');
|
|
92
|
+
return {
|
|
93
|
+
r: parseFloat(c.getAttribute('r')),
|
|
94
|
+
lifted: c.getAttribute('data-edge-badge-lifted'),
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
// Move cursor away to a known empty area
|
|
99
|
+
await page.mouse.move(10, 10);
|
|
100
|
+
await page.waitForTimeout(300);
|
|
101
|
+
const idleAgain = await page.evaluate(() => {
|
|
102
|
+
const g = document.querySelector('[data-edge-count-badge]');
|
|
103
|
+
if (!g) return null;
|
|
104
|
+
const c = g.querySelector('circle');
|
|
105
|
+
return {
|
|
106
|
+
r: parseFloat(c.getAttribute('r')),
|
|
107
|
+
lifted: c.getAttribute('data-edge-badge-lifted'),
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// Click badge → pin
|
|
112
|
+
await page.locator('[data-edge-count-badge]').click({ force: true });
|
|
113
|
+
await page.waitForTimeout(300);
|
|
114
|
+
// Move away to clear hover, then probe pinned state.
|
|
115
|
+
await page.mouse.move(10, 10);
|
|
116
|
+
await page.waitForTimeout(300);
|
|
117
|
+
const pinned = await page.evaluate(() => {
|
|
118
|
+
const g = document.querySelector('[data-edge-count-badge]');
|
|
119
|
+
if (!g) return null;
|
|
120
|
+
const c = g.querySelector('circle');
|
|
121
|
+
return {
|
|
122
|
+
r: parseFloat(c.getAttribute('r')),
|
|
123
|
+
lifted: c.getAttribute('data-edge-badge-lifted'),
|
|
124
|
+
strokeWidth: parseFloat(c.getAttribute('stroke-width')),
|
|
125
|
+
pinnedAttr: g.getAttribute('data-edge-count-badge-pinned'),
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
await browser.close();
|
|
130
|
+
|
|
131
|
+
const results = {
|
|
132
|
+
idle_r_9: idle && Math.abs(idle.r - 9) < 0.01,
|
|
133
|
+
idle_lifted_false: idle && idle.lifted === 'false',
|
|
134
|
+
idle_strokeWidth_1: idle && idle.strokeWidth === 1,
|
|
135
|
+
hover_r_10p5: hovered && Math.abs(hovered.r - 10.5) < 0.01,
|
|
136
|
+
hover_lifted_true: hovered && hovered.lifted === 'true',
|
|
137
|
+
idle_again_r_9: idleAgain && Math.abs(idleAgain.r - 9) < 0.01,
|
|
138
|
+
idle_again_lifted_false: idleAgain && idleAgain.lifted === 'false',
|
|
139
|
+
pinned_r_10p5: pinned && Math.abs(pinned.r - 10.5) < 0.01,
|
|
140
|
+
pinned_lifted_true: pinned && pinned.lifted === 'true',
|
|
141
|
+
pinned_strokeWidth_2: pinned && pinned.strokeWidth === 2,
|
|
142
|
+
pinned_attr_true: pinned && pinned.pinnedAttr === 'true',
|
|
143
|
+
};
|
|
144
|
+
const ok = Object.values(results).every(Boolean);
|
|
145
|
+
console.log(`${ok ? '✅' : '❌'} edge badge lift:`, JSON.stringify(results),
|
|
146
|
+
`\n idle =`, idle,
|
|
147
|
+
`\n hovered =`, hovered,
|
|
148
|
+
`\n idleAgain =`, idleAgain,
|
|
149
|
+
`\n pinned =`, pinned);
|
|
150
|
+
process.exit(ok ? 0 : 1);
|