@sleep2agi/agent-network-dashboard 0.5.3-preview.15 → 0.5.3-preview.150
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 +7 -7
- 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 +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- 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 +2 -2
- package/.next/server/app/admin.segments/_full.segment.rsc +2 -2
- package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_index.segment.rsc +2 -2
- package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +3 -3
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +2 -2
- 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 +3 -3
- package/.next/server/app/login.segments/_full.segment.rsc +3 -3
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +2 -2
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- 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 +2 -2
- package/.next/server/app/logs.segments/_full.segment.rsc +2 -2
- package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_index.segment.rsc +2 -2
- package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
- 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 +2 -2
- package/.next/server/app/messages.segments/_full.segment.rsc +2 -2
- package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_index.segment.rsc +2 -2
- package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
- 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 +2 -2
- package/.next/server/app/node.segments/_full.segment.rsc +2 -2
- package/.next/server/app/node.segments/_head.segment.rsc +1 -1
- package/.next/server/app/node.segments/_index.segment.rsc +2 -2
- package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/node.segments/node.segment.rsc +1 -1
- 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 +2 -2
- package/.next/server/app/nodes.segments/_full.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_index.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
- 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 +2 -2
- package/.next/server/app/server-logs.segments/_full.segment.rsc +2 -2
- package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_index.segment.rsc +2 -2
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
- 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 +2 -2
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +2 -2
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
- 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 +2 -2
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings.html +2 -2
- package/.next/server/app/settings.rsc +3 -3
- package/.next/server/app/settings.segments/_full.segment.rsc +3 -3
- package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_index.segment.rsc +2 -2
- package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- 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 +2 -2
- package/.next/server/app/tasks.segments/_full.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_index.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
- 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/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-8bxlg9uqt.w.css +2 -0
- package/.next/static/chunks/043kw-99_5t_n.js +4 -0
- package/.next/static/chunks/0dp74holr7235.js +1 -0
- package/.next/static/chunks/0kxh3fc.osoro.js +1 -0
- package/.next/static/chunks/{0g21xro04lbjk.js → 0ugilm3n2o-cg.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +4043 -174
- package/app/globals.css +58 -7
- package/package.json +4 -4
- package/scripts/topo-active-chrome-hover-text-test.mjs +107 -0
- package/scripts/topo-alias-chat-brightness-test.mjs +79 -0
- package/scripts/topo-avatar-chat-gate-test.mjs +77 -0
- package/scripts/topo-avatar-drop-shadow-test.mjs +86 -0
- package/scripts/topo-avatar-fallback-hover-test.mjs +104 -0
- package/scripts/topo-avatar-fallback-rotate-test.mjs +92 -0
- package/scripts/topo-avatar-rotate-test.mjs +85 -0
- package/scripts/topo-avatar-scale-test.mjs +89 -0
- package/scripts/topo-badge-chat-gate-test.mjs +74 -0
- package/scripts/topo-brand-drop-shadow-test.mjs +71 -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-card-chat-brightness-test.mjs +86 -0
- package/scripts/topo-chat-ring-brightness-test.mjs +80 -0
- package/scripts/topo-chat-ring-sw-breath-test.mjs +123 -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-tier-glow-brightness-test.mjs +99 -0
- package/scripts/topo-chip-row-unit-hover-tracking-test.mjs +124 -0
- package/scripts/topo-click-ripple-glow-test.mjs +86 -0
- package/scripts/topo-click-ripple-sw-test.mjs +110 -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-circle-brightness-test.mjs +82 -0
- package/scripts/topo-edge-badge-circle-hot-pulse-test.mjs +100 -0
- package/scripts/topo-edge-badge-endpoint-gate-test.mjs +94 -0
- package/scripts/topo-edge-badge-hot-pulse-test.mjs +92 -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-chat-gate-test.mjs +71 -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-fleet-density-tier-test.mjs +84 -0
- package/scripts/topo-flow-arrow-brightness-test.mjs +82 -0
- package/scripts/topo-flow-rail-brightness-test.mjs +80 -0
- package/scripts/topo-freshness-chip-fade-test.mjs +105 -0
- package/scripts/topo-fullscreen-attr-test.mjs +73 -0
- package/scripts/topo-fullscreen-brightness-test.mjs +84 -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-box-brightness-test.mjs +84 -0
- package/scripts/topo-group-chat-gate-test.mjs +77 -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-group-tint-brightness-test.mjs +82 -0
- package/scripts/topo-halo-chat-gate-test.mjs +72 -0
- package/scripts/topo-hub-core-brightness-test.mjs +82 -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 +7 -2
- 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-hub-spoke-self-filter-test.mjs +119 -0
- package/scripts/topo-label-card-brightness-test.mjs +81 -0
- package/scripts/topo-layout-hover-fw-test.mjs +98 -0
- package/scripts/topo-layout-toggle-brightness-test.mjs +94 -0
- package/scripts/topo-legend-count-brightness-test.mjs +80 -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-pin-ring-brightness-test.mjs +82 -0
- package/scripts/topo-legend-row-count-brightness-test.mjs +85 -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-legend-tint-brightness-test.mjs +83 -0
- package/scripts/topo-minimap-dot-chat-gate-test.mjs +81 -0
- package/scripts/topo-minimap-hover-glow-test.mjs +109 -0
- package/scripts/topo-minimap-viewport-brightness-test.mjs +84 -0
- package/scripts/topo-more-footer-brightness-test.mjs +94 -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-brightness-test.mjs +82 -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-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-pip-brightness-test.mjs +85 -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-count-brightness-test.mjs +84 -0
- package/scripts/topo-recent-more-fw-test.mjs +126 -0
- package/scripts/topo-recent-panel-hot-pulse-test.mjs +105 -0
- package/scripts/topo-recent-row-chat-gate-test.mjs +75 -0
- package/scripts/topo-recent-row-content-lift-test.mjs +140 -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-recent-tint-brightness-test.mjs +80 -0
- package/scripts/topo-recent-ts-brightness-test.mjs +86 -0
- package/scripts/topo-reduced-motion-attr-test.mjs +69 -0
- package/scripts/topo-reset-brightness-test.mjs +83 -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-runtime-badge-rotate-test.mjs +85 -0
- package/scripts/topo-spoke-chat-gate-test.mjs +72 -0
- package/scripts/topo-starfield-hue-test.mjs +109 -0
- package/scripts/topo-status-ring-brightness-test.mjs +84 -0
- package/scripts/topo-status-ring-chat-gate-test.mjs +72 -0
- package/scripts/topo-sub-text-chat-brightness-test.mjs +81 -0
- package/scripts/topo-titleblock-h2-hover-fw-test.mjs +109 -0
- package/scripts/topo-titleblock-h2-hover-tracking-test.mjs +128 -0
- package/scripts/topo-titleblock-kicker-hover-test.mjs +134 -0
- package/scripts/topo-vendor-chip-glow-test.mjs +97 -0
- package/scripts/topo-vendor-pill-glow-test.mjs +98 -0
- package/scripts/topo-watermark-breath-test.mjs +100 -0
- package/scripts/topo-watermark-recede-test.mjs +114 -0
- package/scripts/topo-zoom-buttons-brightness-test.mjs +94 -0
- package/scripts/topo-zoom-level-brightness-test.mjs +83 -0
- package/scripts/topo-zoom-level-color-test.mjs +105 -0
- package/.next/static/chunks/056n7oz45zp01.js +0 -1
- package/.next/static/chunks/0bud6.ic~l84v.js +0 -1
- package/.next/static/chunks/0m.1mvl~t.avc.css +0 -2
- package/.next/static/chunks/0qf8ynb6zk1~~.js +0 -4
- /package/.next/static/{gEFJytjHWAA9KfebCcNdi → bJDgs4vbQqUFcfsyIzYfu}/_buildManifest.js +0 -0
- /package/.next/static/{gEFJytjHWAA9KfebCcNdi → bJDgs4vbQqUFcfsyIzYfu}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{gEFJytjHWAA9KfebCcNdi → bJDgs4vbQqUFcfsyIzYfu}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* Round 524 verification: pressure-bar segment width + filter motion
|
|
2
|
+
* restored — extends .anet-topo-chip-focus transition-property list
|
|
3
|
+
* to include `width` and `filter`, fixing the R165/R210 motion
|
|
4
|
+
* polishes silently broken by R490.
|
|
5
|
+
*
|
|
6
|
+
* Test phases:
|
|
7
|
+
* 1. computed transition on pressure-seg includes:
|
|
8
|
+
* - background-color (R510 family, R83 box-shadow already works)
|
|
9
|
+
* - width (R165 restoration ← R524)
|
|
10
|
+
* - filter (R210 brightness restoration ← R524)
|
|
11
|
+
* all at 200ms ease-out
|
|
12
|
+
* 2. globals.css source confirms width + filter in property list
|
|
13
|
+
* 3. hover the segment → filter brightness applied + transitioning
|
|
14
|
+
*/
|
|
15
|
+
import { chromium } from 'playwright';
|
|
16
|
+
import { readFileSync } from 'node:fs';
|
|
17
|
+
|
|
18
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
19
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
20
|
+
|
|
21
|
+
const browser = await chromium.launch({ headless: true });
|
|
22
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
|
|
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
|
+
} catch {}
|
|
30
|
+
});
|
|
31
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
32
|
+
const r = await route.fetch();
|
|
33
|
+
const b = await r.json();
|
|
34
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
35
|
+
const mk = (alias, status) => ({
|
|
36
|
+
alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
37
|
+
network_id: nid, project_dir: null,
|
|
38
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
39
|
+
});
|
|
40
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
41
|
+
mk('a·1', 'working'),
|
|
42
|
+
mk('a·2', 'idle'),
|
|
43
|
+
mk('a·3', 'offline'),
|
|
44
|
+
] } });
|
|
45
|
+
});
|
|
46
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
47
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
48
|
+
const page = await ctx.newPage();
|
|
49
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
50
|
+
await page.waitForSelector('[data-pressure-seg="working"]', { timeout: 15000 });
|
|
51
|
+
await page.waitForTimeout(800);
|
|
52
|
+
|
|
53
|
+
const rest = await page.evaluate(() => {
|
|
54
|
+
const el = document.querySelector('[data-pressure-seg="working"]');
|
|
55
|
+
if (!el) return null;
|
|
56
|
+
const cs = getComputedStyle(el);
|
|
57
|
+
return {
|
|
58
|
+
transition: cs.transition,
|
|
59
|
+
transitionProp: cs.transitionProperty,
|
|
60
|
+
transitionDur: cs.transitionDuration,
|
|
61
|
+
filter: cs.filter,
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
// Hover the segment → filter should apply
|
|
66
|
+
await page.hover('[data-pressure-seg="working"]');
|
|
67
|
+
await page.waitForTimeout(350);
|
|
68
|
+
const hover = await page.evaluate(() => {
|
|
69
|
+
const el = document.querySelector('[data-pressure-seg="working"]');
|
|
70
|
+
if (!el) return null;
|
|
71
|
+
const cs = getComputedStyle(el);
|
|
72
|
+
return {
|
|
73
|
+
filter: cs.filter,
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
await browser.close();
|
|
78
|
+
|
|
79
|
+
const css = readFileSync('/home/vansin/agent-network-dashboard/app/globals.css', 'utf8');
|
|
80
|
+
const cssHasWidth =
|
|
81
|
+
/\.anet-topo-chip-focus[\s\S]*?transition-property:[\s\S]*?width[\s\S]*?!important/.test(css);
|
|
82
|
+
const cssHasFilter =
|
|
83
|
+
/\.anet-topo-chip-focus[\s\S]*?transition-property:[\s\S]*?filter[\s\S]*?!important/.test(css);
|
|
84
|
+
|
|
85
|
+
const results = {
|
|
86
|
+
has_width_in_prop: /(^|,\s*)width(,|$)/.test(rest?.transitionProp || '') ||
|
|
87
|
+
/\bwidth\b/.test(rest?.transitionProp || ''),
|
|
88
|
+
has_filter_in_prop: /\bfilter\b/.test(rest?.transitionProp || ''),
|
|
89
|
+
has_bg_color_in_prop: /background-color/.test(rest?.transitionProp || ''), // sanity
|
|
90
|
+
duration_200ms: /(200ms|0\.2s)/.test(rest?.transitionDur || ''),
|
|
91
|
+
rest_no_filter: rest?.filter === 'none' || rest?.filter === '',
|
|
92
|
+
hover_filter_brightness: /brightness\(1\.2\)/.test(hover?.filter || ''),
|
|
93
|
+
css_width_in_list: cssHasWidth,
|
|
94
|
+
css_filter_in_list: cssHasFilter,
|
|
95
|
+
};
|
|
96
|
+
const ok = Object.values(results).every(Boolean);
|
|
97
|
+
console.log(`${ok ? '✅' : '❌'} R524 pressure-seg motion restored:`,
|
|
98
|
+
JSON.stringify(results, null, 2),
|
|
99
|
+
'\n rest:', JSON.stringify(rest),
|
|
100
|
+
'\n hover.filter:', hover?.filter);
|
|
101
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* Round 589 verification: recent-signal panel count <text>
|
|
2
|
+
* root gains filter brightness(1.15) on hoveredPanel ===
|
|
3
|
+
* 'recent'. 28th anchor in per-element brightness family.
|
|
4
|
+
* Sibling to R588 at legend panel — closes panel-pair
|
|
5
|
+
* brightness symmetry at the header-count scope.
|
|
6
|
+
*
|
|
7
|
+
* Test phases:
|
|
8
|
+
* 1. mock 1 flow message → recent-signal panel renders count
|
|
9
|
+
* 2. rest (no panel hover): filter='none', brightness-attr='1'
|
|
10
|
+
* 3. transition-property contains 'filter'
|
|
11
|
+
* 4. source: filter conditional + data-attr + transition extension
|
|
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
|
+
const browser = await chromium.launch({ headless: true });
|
|
20
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
|
|
21
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
22
|
+
await ctx.addInitScript(() => {
|
|
23
|
+
try {
|
|
24
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
25
|
+
localStorage.setItem('anet-topo-layout', 'ring');
|
|
26
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
27
|
+
} catch {}
|
|
28
|
+
});
|
|
29
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
30
|
+
const r = await route.fetch();
|
|
31
|
+
const b = await r.json();
|
|
32
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
33
|
+
const mk = (alias) => ({
|
|
34
|
+
alias, status: 'idle', model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
35
|
+
network_id: nid, project_dir: null,
|
|
36
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
37
|
+
});
|
|
38
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [mk('a·1'), mk('a·2')] } });
|
|
39
|
+
});
|
|
40
|
+
// recent-signal panel renders only when flowLinks.length > 0
|
|
41
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [
|
|
42
|
+
{ from_alias: 'a·1', to_alias: 'a·2', content: 'hi', created_at: fresh },
|
|
43
|
+
] } }));
|
|
44
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
45
|
+
const page = await ctx.newPage();
|
|
46
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
47
|
+
await page.waitForSelector('[data-recent-panel-count-brightness]', { timeout: 15000, state: 'attached' });
|
|
48
|
+
await page.waitForTimeout(500);
|
|
49
|
+
|
|
50
|
+
const rest = await page.evaluate(() => {
|
|
51
|
+
const el = document.querySelector('[data-recent-panel-count-brightness]');
|
|
52
|
+
if (!el) return null;
|
|
53
|
+
const cs = getComputedStyle(el);
|
|
54
|
+
return {
|
|
55
|
+
filter: cs.filter,
|
|
56
|
+
transitionProperty: cs.transitionProperty,
|
|
57
|
+
brightnessAttr: el.getAttribute('data-recent-panel-count-brightness'),
|
|
58
|
+
letterSpacingAttr: el.getAttribute('data-recent-panel-count-letter-spacing'),
|
|
59
|
+
textContent: el.textContent,
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
await browser.close();
|
|
64
|
+
|
|
65
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
66
|
+
const sourceFilter = /filter: hoveredPanel === 'recent' \? 'brightness\(1\.15\)' : undefined/.test(src);
|
|
67
|
+
const sourceAttr = /data-recent-panel-count-brightness=\{hoveredPanel === 'recent' \? '1\.15' : '1'\}/.test(src);
|
|
68
|
+
const sourceTransition = /transition: 'letter-spacing 200ms ease-out, filter 200ms ease-out'/.test(src);
|
|
69
|
+
|
|
70
|
+
const results = {
|
|
71
|
+
count_present: !!rest,
|
|
72
|
+
rest_filter_none: rest?.filter === 'none',
|
|
73
|
+
rest_brightness_1: rest?.brightnessAttr === '1',
|
|
74
|
+
rest_letter_spacing: rest?.letterSpacingAttr === '0.2',
|
|
75
|
+
transition_has_filter: /filter/.test(rest?.transitionProperty || ''),
|
|
76
|
+
source_filter: sourceFilter,
|
|
77
|
+
source_attr: sourceAttr,
|
|
78
|
+
source_transition: sourceTransition,
|
|
79
|
+
};
|
|
80
|
+
const ok = Object.values(results).every(Boolean);
|
|
81
|
+
console.log(`${ok ? '✅' : '❌'} R589 recent-panel-count brightness (28th anchor, panel-pair symmetry closure):`,
|
|
82
|
+
JSON.stringify(results, null, 2),
|
|
83
|
+
`\n rest: ${JSON.stringify(rest)}`);
|
|
84
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* Round 520 verification: `+N more flows` footer gains 5-axis hover
|
|
2
|
+
* signature by adding fontWeight 500 → 600 on hover. Closes R475
|
|
3
|
+
* panel-text cadence at this last 150ms holdout.
|
|
4
|
+
*
|
|
5
|
+
* Test phases:
|
|
6
|
+
* 1. rest: fw=500, attr='500', opacity=0.55, ls=0.2px, no underline
|
|
7
|
+
* + transition list includes opacity at 200ms (not 150ms)
|
|
8
|
+
* 2. hover: fw=600, attr='600', opacity=0.85, ls=0.3px, underline
|
|
9
|
+
* 3. source-side regex confirms fw ternary + cadence
|
|
10
|
+
*
|
|
11
|
+
* Needs flowLinks > 3 to render the footer — uses 5 working sessions
|
|
12
|
+
* with at least 1 inbound flow each via mock messages.
|
|
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
|
+
const browser = await chromium.launch({ headless: true });
|
|
21
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
|
|
22
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
23
|
+
await ctx.addInitScript(() => {
|
|
24
|
+
try {
|
|
25
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
26
|
+
localStorage.setItem('anet-topo-layout', 'ring');
|
|
27
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
28
|
+
} catch {}
|
|
29
|
+
});
|
|
30
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
31
|
+
const r = await route.fetch();
|
|
32
|
+
const b = await r.json();
|
|
33
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
34
|
+
const mk = (alias) => ({
|
|
35
|
+
alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
36
|
+
network_id: nid, project_dir: null,
|
|
37
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
38
|
+
});
|
|
39
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
40
|
+
mk('a·1'), mk('a·2'), mk('a·3'), mk('a·4'), mk('a·5'), mk('a·6'),
|
|
41
|
+
] } });
|
|
42
|
+
});
|
|
43
|
+
// Mock 6 recent messages → 6 flowLinks → "+ 3 more flows" footer (top-3 visible)
|
|
44
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: {
|
|
45
|
+
messages: [
|
|
46
|
+
{ id: 'm1', from_alias: 'a·1', to_alias: 'a·2', content: 't', created_at: fresh },
|
|
47
|
+
{ id: 'm2', from_alias: 'a·2', to_alias: 'a·3', content: 't', created_at: fresh },
|
|
48
|
+
{ id: 'm3', from_alias: 'a·3', to_alias: 'a·4', content: 't', created_at: fresh },
|
|
49
|
+
{ id: 'm4', from_alias: 'a·4', to_alias: 'a·5', content: 't', created_at: fresh },
|
|
50
|
+
{ id: 'm5', from_alias: 'a·5', to_alias: 'a·6', content: 't', created_at: fresh },
|
|
51
|
+
{ id: 'm6', from_alias: 'a·6', to_alias: 'a·1', content: 't', created_at: fresh },
|
|
52
|
+
]
|
|
53
|
+
} }));
|
|
54
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
55
|
+
const page = await ctx.newPage();
|
|
56
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
57
|
+
await page.waitForSelector('[data-recent-panel-more]', { timeout: 15000 });
|
|
58
|
+
await page.waitForTimeout(1000);
|
|
59
|
+
|
|
60
|
+
const sel = '[data-recent-panel-more]';
|
|
61
|
+
|
|
62
|
+
// Phase 1: rest
|
|
63
|
+
const rest = await page.evaluate((sel) => {
|
|
64
|
+
const el = document.querySelector(sel);
|
|
65
|
+
if (!el) return null;
|
|
66
|
+
const cs = getComputedStyle(el);
|
|
67
|
+
return {
|
|
68
|
+
attrFw: el.getAttribute('data-recent-panel-more-font-weight'),
|
|
69
|
+
attrHovered: el.getAttribute('data-recent-panel-more-hovered'),
|
|
70
|
+
attrTrans: el.getAttribute('data-recent-panel-more-transition'),
|
|
71
|
+
fontWeight: cs.fontWeight,
|
|
72
|
+
opacity: cs.opacity,
|
|
73
|
+
letterSpacing: cs.letterSpacing,
|
|
74
|
+
textDecoration:cs.textDecorationLine,
|
|
75
|
+
transition: cs.transition,
|
|
76
|
+
};
|
|
77
|
+
}, sel);
|
|
78
|
+
|
|
79
|
+
// Phase 2: hover the parent <g> (text is wrapped in a click-target <g>)
|
|
80
|
+
await page.hover('[data-recent-panel-more-nav]');
|
|
81
|
+
await page.waitForTimeout(350);
|
|
82
|
+
const hover = await page.evaluate((sel) => {
|
|
83
|
+
const el = document.querySelector(sel);
|
|
84
|
+
if (!el) return null;
|
|
85
|
+
const cs = getComputedStyle(el);
|
|
86
|
+
return {
|
|
87
|
+
attrFw: el.getAttribute('data-recent-panel-more-font-weight'),
|
|
88
|
+
attrHovered: el.getAttribute('data-recent-panel-more-hovered'),
|
|
89
|
+
fontWeight: cs.fontWeight,
|
|
90
|
+
opacity: cs.opacity,
|
|
91
|
+
letterSpacing: cs.letterSpacing,
|
|
92
|
+
textDecoration:cs.textDecorationLine,
|
|
93
|
+
};
|
|
94
|
+
}, sel);
|
|
95
|
+
|
|
96
|
+
await browser.close();
|
|
97
|
+
|
|
98
|
+
// Phase 3: source regex
|
|
99
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
100
|
+
const sourceWiredFw =
|
|
101
|
+
/fontWeight=\{hoveredRecentMore \? '600' : '500'\}/.test(src) &&
|
|
102
|
+
/data-recent-panel-more-font-weight=\{hoveredRecentMore \? '600' : '500'\}/.test(src);
|
|
103
|
+
const sourceWiredCadence =
|
|
104
|
+
/transition: 'opacity 200ms ease-out, fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out'/.test(src);
|
|
105
|
+
|
|
106
|
+
const results = {
|
|
107
|
+
rest_attr_fw_500: rest?.attrFw === '500',
|
|
108
|
+
rest_attr_hovered_false: rest?.attrHovered === 'false',
|
|
109
|
+
rest_attr_trans_200: rest?.attrTrans === '200ms',
|
|
110
|
+
rest_fw_500: rest?.fontWeight === '500',
|
|
111
|
+
rest_underline_none: rest?.textDecoration === 'none' || rest?.textDecoration === '',
|
|
112
|
+
rest_transition_200: /(200ms|0\.2s).+font-weight|font-weight.+(200ms|0\.2s)/.test(rest?.transition || '') ||
|
|
113
|
+
/(200ms|0\.2s)/.test(rest?.transition || ''),
|
|
114
|
+
hover_attr_fw_600: hover?.attrFw === '600',
|
|
115
|
+
hover_attr_hovered_true: hover?.attrHovered === 'true',
|
|
116
|
+
hover_fw_600: hover?.fontWeight === '600',
|
|
117
|
+
hover_letter_spacing_3: hover?.letterSpacing === '0.3px',
|
|
118
|
+
hover_underline: /underline/.test(hover?.textDecoration || ''),
|
|
119
|
+
source_fw_ternary: sourceWiredFw,
|
|
120
|
+
source_cadence_4axis: sourceWiredCadence,
|
|
121
|
+
};
|
|
122
|
+
const ok = Object.values(results).every(Boolean);
|
|
123
|
+
console.log(`${ok ? '✅' : '❌'} R520 recent-panel-more 5-axis hover + 200ms cadence:`,
|
|
124
|
+
JSON.stringify(results, null, 2),
|
|
125
|
+
'\n rest:', JSON.stringify(rest), '\n hover:', JSON.stringify(hover));
|
|
126
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* Round 634 — panel header hot-count tspan joins hot-pulse family
|
|
2
|
+
* at the panel-aggregate tier. ClassName composition combines the
|
|
3
|
+
* one-shot 'anet-fade-in' mount fade with the continuous
|
|
4
|
+
* 'anet-recent-hot-pulse' breath when hotFlowCount > 0 &&
|
|
5
|
+
* !reducedMotion. 4th anchor in hot-pulse family.
|
|
6
|
+
*
|
|
7
|
+
* Test phases:
|
|
8
|
+
* 1. cold (3 messages on one edge → no hot lane): hot-count
|
|
9
|
+
* tspan present but hidden (opacity=0); pulse attr 'off';
|
|
10
|
+
* className === 'anet-fade-in' (no breath)
|
|
11
|
+
* 2. hot (12 messages on one edge → 1 hot lane): tspan visible
|
|
12
|
+
* (opacity=1); pulse attr 'on'; className contains
|
|
13
|
+
* 'anet-recent-hot-pulse'; computed animation-name resolves
|
|
14
|
+
* to anet-recent-hot-pulse-kf
|
|
15
|
+
*/
|
|
16
|
+
import { chromium } from 'playwright';
|
|
17
|
+
import { readFileSync } from 'node:fs';
|
|
18
|
+
|
|
19
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
20
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
21
|
+
|
|
22
|
+
async function shoot(messageCount, label) {
|
|
23
|
+
const browser = await chromium.launch({ headless: true });
|
|
24
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
|
|
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) => ({
|
|
38
|
+
alias, status: 'idle', 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: [mk('a·1'), mk('a·2')] } });
|
|
43
|
+
});
|
|
44
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages:
|
|
45
|
+
Array.from({ length: messageCount }, (_, i) => ({
|
|
46
|
+
from_alias: 'a·1', to_alias: 'a·2', content: `msg-${i}`, created_at: fresh,
|
|
47
|
+
}))
|
|
48
|
+
} }));
|
|
49
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
50
|
+
const page = await ctx.newPage();
|
|
51
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
52
|
+
await page.waitForSelector('[data-recent-panel-hot-count]', { timeout: 15000, state: 'attached' });
|
|
53
|
+
await page.waitForTimeout(500);
|
|
54
|
+
const state = await page.evaluate(() => {
|
|
55
|
+
const el = document.querySelector('[data-recent-panel-hot-count]');
|
|
56
|
+
if (!el) return null;
|
|
57
|
+
const cs = getComputedStyle(el);
|
|
58
|
+
return {
|
|
59
|
+
hotCount: el.getAttribute('data-recent-panel-hot-count'),
|
|
60
|
+
hotVisible: el.getAttribute('data-recent-panel-hot-visible'),
|
|
61
|
+
hotPulseAttr: el.getAttribute('data-recent-panel-hot-pulse'),
|
|
62
|
+
cls: el.getAttribute('class') || '',
|
|
63
|
+
opacity: el.getAttribute('opacity'),
|
|
64
|
+
animName: cs.animationName,
|
|
65
|
+
animDuration: cs.animationDuration,
|
|
66
|
+
animIter: cs.animationIterationCount,
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
await browser.close();
|
|
70
|
+
return { label, state };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const cold = await shoot(3, 'cold');
|
|
74
|
+
const hot = await shoot(12, 'hot');
|
|
75
|
+
|
|
76
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
77
|
+
const sourceClassNameGate = /className=\{hotFlowCount > 0 && !reducedMotion\s*\?\s*'anet-fade-in anet-recent-hot-pulse'\s*:\s*'anet-fade-in'\}/.test(src);
|
|
78
|
+
const sourcePulseAttr = /data-recent-panel-hot-pulse=\{hotFlowCount > 0 && !reducedMotion \? 'on' : 'off'\}/.test(src);
|
|
79
|
+
|
|
80
|
+
const results = {
|
|
81
|
+
cold_present: !!cold.state,
|
|
82
|
+
cold_hot_count_0: cold.state?.hotCount === '0',
|
|
83
|
+
cold_visible_false: cold.state?.hotVisible === 'false',
|
|
84
|
+
cold_pulse_off: cold.state?.hotPulseAttr === 'off',
|
|
85
|
+
cold_opacity_0: cold.state?.opacity === '0',
|
|
86
|
+
cold_cls_no_pulse: !/anet-recent-hot-pulse/.test(cold.state?.cls || ''),
|
|
87
|
+
cold_cls_has_fade_in: /anet-fade-in/.test(cold.state?.cls || ''),
|
|
88
|
+
hot_present: !!hot.state,
|
|
89
|
+
hot_count_1: hot.state?.hotCount === '1',
|
|
90
|
+
hot_visible_true: hot.state?.hotVisible === 'true',
|
|
91
|
+
hot_pulse_on: hot.state?.hotPulseAttr === 'on',
|
|
92
|
+
hot_opacity_1: hot.state?.opacity === '1',
|
|
93
|
+
hot_cls_has_pulse: /anet-recent-hot-pulse/.test(hot.state?.cls || ''),
|
|
94
|
+
hot_cls_has_fade_in: /anet-fade-in/.test(hot.state?.cls || ''),
|
|
95
|
+
// CSS animation-name may include both anet-fade-in + anet-recent-hot-pulse-kf
|
|
96
|
+
hot_anim_name_includes_kf: /anet-recent-hot-pulse-kf/.test(hot.state?.animName || ''),
|
|
97
|
+
source_className_gate: sourceClassNameGate,
|
|
98
|
+
source_pulse_attr: sourcePulseAttr,
|
|
99
|
+
};
|
|
100
|
+
const ok = Object.values(results).every(Boolean);
|
|
101
|
+
console.log(`${ok ? '✅' : '❌'} R634 recent-panel hot-count pulse (4th hot-pulse anchor):`,
|
|
102
|
+
JSON.stringify(results, null, 2),
|
|
103
|
+
`\n cold: ${JSON.stringify(cold.state)}`,
|
|
104
|
+
`\n hot: ${JSON.stringify(hot.state)}`);
|
|
105
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* Round 625 — extend isRowActive gate to include chat-target
|
|
2
|
+
* endpoint match. Recent-row tint rect (R611) brightens when
|
|
3
|
+
* row's from/to matches chatAlias. 11th anchor in chat-target-
|
|
4
|
+
* gated brightness family.
|
|
5
|
+
*
|
|
6
|
+
* Test phases:
|
|
7
|
+
* 1. mock 1 flow message → recent-row + tint rect render
|
|
8
|
+
* 2. rest (no hover, no chat): tint rect at rest, no
|
|
9
|
+
* brightness, fill 'transparent'
|
|
10
|
+
* 3. source: isRowActive declaration includes
|
|
11
|
+
* isChatEndpointRow term
|
|
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
|
+
const browser = await chromium.launch({ headless: true });
|
|
20
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
|
|
21
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
22
|
+
await ctx.addInitScript(() => {
|
|
23
|
+
try {
|
|
24
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
25
|
+
localStorage.setItem('anet-topo-layout', 'ring');
|
|
26
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
27
|
+
} catch {}
|
|
28
|
+
});
|
|
29
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
30
|
+
const r = await route.fetch();
|
|
31
|
+
const b = await r.json();
|
|
32
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
33
|
+
const mk = (alias) => ({
|
|
34
|
+
alias, status: 'idle', model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
35
|
+
network_id: nid, project_dir: null,
|
|
36
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
37
|
+
});
|
|
38
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [mk('a·1'), mk('a·2')] } });
|
|
39
|
+
});
|
|
40
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [
|
|
41
|
+
{ from_alias: 'a·1', to_alias: 'a·2', content: 'hi', created_at: fresh },
|
|
42
|
+
] } }));
|
|
43
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
44
|
+
const page = await ctx.newPage();
|
|
45
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
46
|
+
await page.waitForSelector('[data-recent-row-tint-brightness]', { timeout: 15000, state: 'attached' });
|
|
47
|
+
await page.waitForTimeout(500);
|
|
48
|
+
|
|
49
|
+
const rest = await page.evaluate(() => {
|
|
50
|
+
const el = document.querySelector('[data-recent-row-tint-brightness]');
|
|
51
|
+
if (!el) return null;
|
|
52
|
+
return {
|
|
53
|
+
brightnessAttr: el.getAttribute('data-recent-row-tint-brightness'),
|
|
54
|
+
fill: el.getAttribute('fill'),
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
await browser.close();
|
|
59
|
+
|
|
60
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
61
|
+
const sourceChatEndpoint = /const isChatEndpointRow = !!chatAlias && \(link\.from === chatAlias \|\| link\.to === chatAlias\)/.test(src);
|
|
62
|
+
const sourceRowActive = /const isRowActive\s+= isRowHovered \|\| isRowPinned \|\| isChatEndpointRow/.test(src);
|
|
63
|
+
|
|
64
|
+
const results = {
|
|
65
|
+
tint_present: !!rest,
|
|
66
|
+
rest_brightness_1: rest?.brightnessAttr === '1',
|
|
67
|
+
rest_fill_transparent: rest?.fill === 'transparent',
|
|
68
|
+
source_chat_endpoint: sourceChatEndpoint,
|
|
69
|
+
source_row_active_with_chat: sourceRowActive,
|
|
70
|
+
};
|
|
71
|
+
const ok = Object.values(results).every(Boolean);
|
|
72
|
+
console.log(`${ok ? '✅' : '❌'} R625 recent-row chat-endpoint gate (chat-gated family 11th anchor):`,
|
|
73
|
+
JSON.stringify(results, null, 2),
|
|
74
|
+
`\n rest: ${JSON.stringify(rest)}`);
|
|
75
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* Round 635 — recent-row content preview opacity lifts 0.7 → 1.0
|
|
2
|
+
* on isRowHovered || isRowPinned. 5th anchor in the inspection-
|
|
3
|
+
* overrides-encoding family — extends the pattern to row CONTENT
|
|
4
|
+
* (the truncated message preview, R418 subordinate 0.7 baseline).
|
|
5
|
+
*
|
|
6
|
+
* Test phases:
|
|
7
|
+
* 1. mock 2 nodes + 1 message → recent-row + content tspan
|
|
8
|
+
* render
|
|
9
|
+
* 2. rest (no hover, no pin): lifted='false', opacity-attr='0.7',
|
|
10
|
+
* computed opacity ≈ 0.7
|
|
11
|
+
* 3. hover the row → lifted='true', opacity-attr='1', computed
|
|
12
|
+
* opacity ≈ 1
|
|
13
|
+
* 4. computed transition contains 'opacity'
|
|
14
|
+
* 5. source: <tspan> uses style.opacity gated on
|
|
15
|
+
* (isRowHovered || isRowPinned)
|
|
16
|
+
*/
|
|
17
|
+
import { chromium } from 'playwright';
|
|
18
|
+
import { readFileSync } from 'node:fs';
|
|
19
|
+
|
|
20
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
21
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
22
|
+
|
|
23
|
+
const browser = await chromium.launch({ headless: true });
|
|
24
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
|
|
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) => ({
|
|
38
|
+
alias, status: 'idle', 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: [mk('a·1'), mk('a·2')] } });
|
|
43
|
+
});
|
|
44
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [
|
|
45
|
+
{ from_alias: 'a·1', to_alias: 'a·2', content: 'hello-world-preview', created_at: fresh },
|
|
46
|
+
] } }));
|
|
47
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
48
|
+
const page = await ctx.newPage();
|
|
49
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
50
|
+
await page.waitForSelector('[data-recent-row-content-tspan]', { timeout: 15000, state: 'attached' });
|
|
51
|
+
await page.waitForTimeout(500);
|
|
52
|
+
|
|
53
|
+
const rest = await page.evaluate(() => {
|
|
54
|
+
const el = document.querySelector('[data-recent-row-content-tspan]');
|
|
55
|
+
if (!el) return null;
|
|
56
|
+
const cs = getComputedStyle(el);
|
|
57
|
+
return {
|
|
58
|
+
lifted: el.getAttribute('data-recent-row-content-lifted'),
|
|
59
|
+
opacityAttr:el.getAttribute('data-recent-row-content-opacity'),
|
|
60
|
+
opacityRest:el.getAttribute('data-recent-row-content-opacity-rest'),
|
|
61
|
+
opacityComputed: cs.opacity,
|
|
62
|
+
transitionProperty: cs.transitionProperty,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// Hover the row's parent <g> to trigger isRowHovered
|
|
67
|
+
// recent-row hover region — the row's pip rect serves as hitbox.
|
|
68
|
+
// Easier: dispatch mousemove over the row's tint rect.
|
|
69
|
+
const hovered = await page.evaluate(async () => {
|
|
70
|
+
const tint = document.querySelector('[data-recent-row-tint-brightness]');
|
|
71
|
+
if (!tint) return { error: 'no-tint' };
|
|
72
|
+
const rect = tint.getBoundingClientRect();
|
|
73
|
+
const cx = rect.left + rect.width / 2;
|
|
74
|
+
const cy = rect.top + rect.height / 2;
|
|
75
|
+
// Use elementFromPoint to find the topmost interactive target
|
|
76
|
+
const target = document.elementFromPoint(cx, cy);
|
|
77
|
+
if (!target) return { error: 'no-target' };
|
|
78
|
+
const event = new MouseEvent('mouseenter', { bubbles: true, clientX: cx, clientY: cy });
|
|
79
|
+
target.dispatchEvent(event);
|
|
80
|
+
return { ok: true };
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
// playwright hover route — find a recent-row-tint or content's parent text
|
|
84
|
+
await page.evaluate(() => {
|
|
85
|
+
const tint = document.querySelector('[data-recent-row-tint-brightness]');
|
|
86
|
+
if (!tint) return;
|
|
87
|
+
const rect = tint.getBoundingClientRect();
|
|
88
|
+
const cx = rect.left + rect.width / 2;
|
|
89
|
+
const cy = rect.top + rect.height / 2;
|
|
90
|
+
// dispatch through the hitbox path — use Playwright's mouse.move proxy via real event
|
|
91
|
+
const ev = new PointerEvent('pointermove', { bubbles: true, clientX: cx, clientY: cy });
|
|
92
|
+
document.elementFromPoint(cx, cy)?.dispatchEvent(ev);
|
|
93
|
+
});
|
|
94
|
+
// More reliable: use Playwright's hover API on tint rect element
|
|
95
|
+
const tintBox = await page.evaluate(() => {
|
|
96
|
+
const el = document.querySelector('[data-recent-row-tint-brightness]');
|
|
97
|
+
if (!el) return null;
|
|
98
|
+
const r = el.getBoundingClientRect();
|
|
99
|
+
return { x: r.left + r.width / 2, y: r.top + r.height / 2 };
|
|
100
|
+
});
|
|
101
|
+
if (tintBox) await page.mouse.move(tintBox.x, tintBox.y);
|
|
102
|
+
await page.waitForTimeout(350);
|
|
103
|
+
|
|
104
|
+
const hover = await page.evaluate(() => {
|
|
105
|
+
const el = document.querySelector('[data-recent-row-content-tspan]');
|
|
106
|
+
if (!el) return null;
|
|
107
|
+
const cs = getComputedStyle(el);
|
|
108
|
+
return {
|
|
109
|
+
lifted: el.getAttribute('data-recent-row-content-lifted'),
|
|
110
|
+
opacityAttr:el.getAttribute('data-recent-row-content-opacity'),
|
|
111
|
+
opacityComputed: cs.opacity,
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
await browser.close();
|
|
116
|
+
|
|
117
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
118
|
+
const sourceGate = /<tspan\s+data-recent-row-content-tspan\s+data-recent-row-content-lifted=\{\(isRowHovered \|\| isRowPinned\) \? 'true' : 'false'\}[\s\S]{0,300}opacity: \(isRowHovered \|\| isRowPinned\) \? 1 : 0\.7/.test(src);
|
|
119
|
+
const sourceTransition = /transition: 'opacity 200ms ease-out'/.test(src);
|
|
120
|
+
|
|
121
|
+
const results = {
|
|
122
|
+
rest_present: !!rest,
|
|
123
|
+
rest_lifted_false: rest?.lifted === 'false',
|
|
124
|
+
rest_opacity_attr_07: rest?.opacityAttr === '0.7',
|
|
125
|
+
rest_opacity_rest_07: rest?.opacityRest === '0.7',
|
|
126
|
+
rest_opacity_computed: Math.abs(parseFloat(rest?.opacityComputed || '0') - 0.7) < 0.05,
|
|
127
|
+
rest_transition_opacity:/opacity/.test(rest?.transitionProperty || ''),
|
|
128
|
+
hover_present: !!hover,
|
|
129
|
+
hover_lifted_true: hover?.lifted === 'true',
|
|
130
|
+
hover_opacity_attr_1: hover?.opacityAttr === '1',
|
|
131
|
+
hover_opacity_computed: Math.abs(parseFloat(hover?.opacityComputed || '0') - 1) < 0.05,
|
|
132
|
+
source_gate: sourceGate,
|
|
133
|
+
source_transition: sourceTransition,
|
|
134
|
+
};
|
|
135
|
+
const ok = Object.values(results).every(Boolean);
|
|
136
|
+
console.log(`${ok ? '✅' : '❌'} R635 recent-row content opacity lift (inspection-overrides-encoding 5th anchor):`,
|
|
137
|
+
JSON.stringify(results, null, 2),
|
|
138
|
+
`\n rest: ${JSON.stringify(rest)}`,
|
|
139
|
+
`\n hover: ${JSON.stringify(hover)}`);
|
|
140
|
+
process.exit(ok ? 0 : 1);
|