@sleep2agi/agent-network-dashboard 0.5.7-preview.7 → 0.5.7-preview.75
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 +0 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +65 -65
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +0 -6
- 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/next-font-manifest.json +2 -1
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +4 -4
- package/.next/server/app/_not-found.rsc +16 -16
- package/.next/server/app/_not-found.segments/_full.segment.rsc +16 -16
- package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_index.segment.rsc +9 -9
- 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 +3 -3
- package/.next/server/app/admin/page/next-font-manifest.json +2 -1
- package/.next/server/app/admin/page.js +1 -1
- package/.next/server/app/admin/page.js.nft.json +1 -1
- package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/server/app/admin.html +4 -4
- package/.next/server/app/admin.rsc +20 -19
- package/.next/server/app/admin.segments/_full.segment.rsc +20 -19
- package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
- package/.next/server/app/admin.segments/_index.segment.rsc +9 -9
- package/.next/server/app/admin.segments/_tree.segment.rsc +5 -4
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
- package/.next/server/app/index.html +4 -4
- package/.next/server/app/index.rsc +20 -19
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/index.segments/_full.segment.rsc +20 -19
- package/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/server/app/index.segments/_index.segment.rsc +9 -9
- package/.next/server/app/index.segments/_tree.segment.rsc +5 -4
- package/.next/server/app/login/page/next-font-manifest.json +2 -1
- package/.next/server/app/login/page.js +1 -1
- package/.next/server/app/login/page.js.nft.json +1 -1
- 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 +20 -19
- package/.next/server/app/login.segments/_full.segment.rsc +20 -19
- package/.next/server/app/login.segments/_head.segment.rsc +4 -4
- package/.next/server/app/login.segments/_index.segment.rsc +9 -9
- package/.next/server/app/login.segments/_tree.segment.rsc +5 -4
- 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/next-font-manifest.json +2 -1
- package/.next/server/app/logs/page.js +1 -1
- package/.next/server/app/logs/page.js.nft.json +1 -1
- package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/logs.html +4 -4
- package/.next/server/app/logs.rsc +20 -19
- package/.next/server/app/logs.segments/_full.segment.rsc +20 -19
- package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
- package/.next/server/app/logs.segments/_index.segment.rsc +9 -9
- package/.next/server/app/logs.segments/_tree.segment.rsc +5 -4
- 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/manifest.webmanifest.body +1 -1
- package/.next/server/app/messages/page/next-font-manifest.json +2 -1
- package/.next/server/app/messages/page.js +1 -1
- package/.next/server/app/messages/page.js.nft.json +1 -1
- package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
- package/.next/server/app/messages.html +4 -4
- package/.next/server/app/messages.rsc +20 -19
- package/.next/server/app/messages.segments/_full.segment.rsc +20 -19
- package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
- package/.next/server/app/messages.segments/_index.segment.rsc +9 -9
- package/.next/server/app/messages.segments/_tree.segment.rsc +5 -4
- 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/next-font-manifest.json +2 -1
- package/.next/server/app/node/page.js +1 -1
- package/.next/server/app/node/page.js.nft.json +1 -1
- package/.next/server/app/node/page_client-reference-manifest.js +1 -1
- package/.next/server/app/node.html +4 -4
- package/.next/server/app/node.rsc +20 -19
- package/.next/server/app/node.segments/_full.segment.rsc +20 -19
- package/.next/server/app/node.segments/_head.segment.rsc +4 -4
- package/.next/server/app/node.segments/_index.segment.rsc +9 -9
- package/.next/server/app/node.segments/_tree.segment.rsc +5 -4
- 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/next-font-manifest.json +2 -1
- package/.next/server/app/nodes/page.js +1 -1
- package/.next/server/app/nodes/page.js.nft.json +1 -1
- package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
- package/.next/server/app/nodes.html +4 -4
- package/.next/server/app/nodes.rsc +20 -19
- package/.next/server/app/nodes.segments/_full.segment.rsc +20 -19
- package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
- package/.next/server/app/nodes.segments/_index.segment.rsc +9 -9
- package/.next/server/app/nodes.segments/_tree.segment.rsc +5 -4
- 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/next-font-manifest.json +2 -1
- package/.next/server/app/page.js +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs/page/next-font-manifest.json +2 -1
- package/.next/server/app/server-logs/page.js +1 -1
- package/.next/server/app/server-logs/page.js.nft.json +1 -1
- package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +4 -4
- package/.next/server/app/server-logs.rsc +20 -19
- package/.next/server/app/server-logs.segments/_full.segment.rsc +20 -19
- package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
- package/.next/server/app/server-logs.segments/_index.segment.rsc +9 -9
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +5 -4
- 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/servers/page/next-font-manifest.json +2 -1
- package/.next/server/app/servers/page.js +1 -1
- package/.next/server/app/servers/page.js.nft.json +1 -1
- package/.next/server/app/servers/page_client-reference-manifest.js +1 -1
- package/.next/server/app/servers.html +4 -4
- package/.next/server/app/servers.rsc +20 -19
- package/.next/server/app/servers.segments/_full.segment.rsc +20 -19
- package/.next/server/app/servers.segments/_head.segment.rsc +4 -4
- package/.next/server/app/servers.segments/_index.segment.rsc +9 -9
- package/.next/server/app/servers.segments/_tree.segment.rsc +5 -4
- package/.next/server/app/servers.segments/servers/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/servers.segments/servers.segment.rsc +3 -3
- package/.next/server/app/settings/networks/page/next-font-manifest.json +2 -1
- package/.next/server/app/settings/networks/page.js +1 -1
- package/.next/server/app/settings/networks/page.js.nft.json +1 -1
- package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/networks.html +4 -4
- package/.next/server/app/settings/networks.rsc +20 -19
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +20 -19
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +5 -4
- 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/next-font-manifest.json +2 -1
- package/.next/server/app/settings/page.js +1 -1
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens/page/next-font-manifest.json +2 -1
- package/.next/server/app/settings/tokens/page.js +1 -1
- package/.next/server/app/settings/tokens/page.js.nft.json +1 -1
- package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +4 -4
- package/.next/server/app/settings/tokens.rsc +20 -19
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +20 -19
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +5 -4
- 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 +4 -4
- package/.next/server/app/settings.rsc +20 -19
- package/.next/server/app/settings.segments/_full.segment.rsc +20 -19
- package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings.segments/_tree.segment.rsc +5 -4
- 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/next-font-manifest.json +2 -1
- package/.next/server/app/tasks/[id]/page.js +1 -1
- package/.next/server/app/tasks/[id]/page.js.nft.json +1 -1
- package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks/page/next-font-manifest.json +2 -1
- package/.next/server/app/tasks/page.js +1 -1
- package/.next/server/app/tasks/page.js.nft.json +1 -1
- package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks.html +4 -4
- package/.next/server/app/tasks.rsc +20 -19
- package/.next/server/app/tasks.segments/_full.segment.rsc +20 -19
- package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
- package/.next/server/app/tasks.segments/_index.segment.rsc +9 -9
- package/.next/server/app/tasks.segments/_tree.segment.rsc +5 -4
- 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 +0 -1
- package/.next/server/chunks/00jm_next_dist_0ju_ux9._.js +1 -1
- package/.next/server/chunks/00jm_next_dist_0ju_ux9._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__030vg4n._.js +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__030vg4n._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__05kf31s._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__05kf31s._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__096ytyk._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__096ytyk._.js.map +1 -0
- 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]__0nw1f-j._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0nw1f-j._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0u4-66w._.js +8 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0u4-66w._.js.map +1 -0
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +3 -3
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_012oyw5._.js +3 -0
- package/.next/server/chunks/ssr/agent-network-dashboard_app_012oyw5._.js.map +1 -0
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_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_0fjlnh~._.js +3 -0
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0fjlnh~._.js.map +1 -0
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0gd.4pc._.js +9 -0
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0gd.4pc._.js.map +1 -0
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0wn4jc5._.js +3 -0
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0wn4jc5._.js.map +1 -0
- 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_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_0r7kb.o._.js +9 -0
- package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0r7kb.o._.js.map +1 -0
- package/.next/server/chunks/ssr/agent-network-dashboard_app_servers_page_tsx_0jib5qm._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_servers_page_tsx_0jib5qm._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_tasks_page_tsx_0mwxy4z._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_tasks_page_tsx_0mwxy4z._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +30 -15
- package/.next/server/pages/404.html +4 -4
- 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.mh8n0itrii5.js +1 -0
- package/.next/static/chunks/049vx3qljs1tt.js +1 -0
- package/.next/static/chunks/04uju~n5s9g7..css +1 -0
- package/.next/static/chunks/066jf0nk75nic.css +2 -0
- package/.next/static/chunks/06vp7429lrzl7.js +1 -0
- package/.next/static/chunks/{0jp~cs9-zkmqa.js → 07h2umbpc5lqy.js} +2 -2
- package/.next/static/chunks/0_bn~gcrgo.4n.js +1 -0
- package/.next/static/chunks/0_cm~9rtqil56.js +1 -0
- package/.next/static/chunks/0cp0cz3mxejl~.js +4 -0
- package/.next/static/chunks/0g1o7c8fbafn7.js +1 -0
- package/.next/static/chunks/0g4d-_fi-d9hg.js +1 -0
- package/.next/static/chunks/0iv.0p9_5b36e.js +1 -0
- package/.next/static/chunks/0tor7h4q5_rz..js +1 -0
- package/.next/static/chunks/0vun~4ljcrj3p.js +7 -0
- package/.next/static/chunks/0wz0122ym_gr3.js +1 -0
- package/.next/static/chunks/0y5gol09tlu63.js +1 -0
- package/.next/static/chunks/114o05335p68v.js +1 -0
- package/.next/static/chunks/14141xj5.1t3t.js +1 -0
- package/.next/static/chunks/149a4l50_3vw-.js +7 -0
- package/.next/static/chunks/15hos-r_t7doi.js +1 -0
- package/.next/static/media/4fa387ec64143e14-s.0wkzw~je483f-.woff2 +0 -0
- package/.next/static/media/53b9e256198e5412-s.0-wfv7uh4i7h9.woff2 +0 -0
- package/.next/static/media/5ce348bf30bf5439-s.0zgw-jeven.3w.woff2 +0 -0
- package/.next/static/media/6306c77e7c8268e4-s.0rhz0arwfsn~5.woff2 +0 -0
- package/.next/static/media/7178b3e590c64307-s.0nx0ww8fni_q3.woff2 +0 -0
- package/.next/static/media/797e433ab948586e-s.p.08e28id.o-okb.woff2 +0 -0
- package/.next/static/media/7d817b4c03b0c5f1-s.0l76wvqk9d84w.woff2 +0 -0
- package/.next/static/media/8a480f0b521d4e75-s.0jzbimsg8vl84.woff2 +0 -0
- package/.next/static/media/bbc41e54d2fcbd21-s.0k4k9394f2q-k.woff2 +0 -0
- package/.next/static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2 +0 -0
- package/.next/static/media/fef07dbb0973bf53-s.12tyk43_3sh9u.woff2 +0 -0
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/.next/types/routes.d.ts +1 -2
- package/.next/types/validator.ts +0 -9
- package/app/admin/page.tsx +53 -38
- package/app/components/AgentCard.tsx +36 -20
- package/app/components/AppShell.tsx +7 -1
- package/app/components/ChatPopover.tsx +1 -1
- package/app/components/CollapsibleSearch.tsx +127 -0
- package/app/components/CommandCenter.tsx +14 -4
- package/app/components/CommandPalette.tsx +6 -6
- package/app/components/DispatchPanel.tsx +13 -10
- package/app/components/EmptyState.tsx +19 -4
- package/app/components/HealthBanner.tsx +28 -4
- package/app/components/HelpOverlay.tsx +4 -7
- package/app/components/LoadingSkeleton.tsx +31 -21
- package/app/components/MobileNav.tsx +28 -21
- package/app/components/Sidebar.tsx +30 -23
- package/app/components/StatsBar.tsx +69 -42
- package/app/components/TaskChatPanel.tsx +105 -12
- package/app/components/TaskDrawer.tsx +9 -7
- package/app/components/ThemeSwitcher.tsx +15 -79
- package/app/components/TopoGraph.tsx +31 -21
- package/app/components/UserBar.tsx +5 -5
- package/app/globals.css +1757 -1776
- package/app/layout.tsx +37 -4
- package/app/lib/hooks.ts +4 -6
- package/app/lib/status.ts +24 -17
- package/app/login/page.tsx +7 -7
- package/app/logs/page.tsx +12 -6
- package/app/manifest.ts +2 -2
- package/app/messages/page.tsx +108 -50
- package/app/node/page.tsx +27 -17
- package/app/nodes/page.tsx +62 -49
- package/app/page.tsx +60 -282
- package/app/server-logs/page.tsx +40 -14
- package/app/servers/page.tsx +33 -12
- package/app/settings/networks/page.tsx +17 -15
- package/app/settings/page.tsx +102 -96
- package/app/settings/tokens/page.tsx +5 -5
- package/app/tasks/[id]/page.tsx +10 -10
- package/app/tasks/page.tsx +58 -34
- package/bin/start.js +0 -0
- package/package.json +1 -1
- package/public/favicon.svg +1 -1
- package/public/manifest.webmanifest +24 -0
- package/public/robots.txt +7 -0
- package/.next/server/app/api/hub/license/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/hub/license/route/build-manifest.json +0 -9
- package/.next/server/app/api/hub/license/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/hub/license/route.js +0 -7
- package/.next/server/app/api/hub/license/route.js.map +0 -5
- package/.next/server/app/api/hub/license/route.js.nft.json +0 -1
- package/.next/server/app/api/hub/license/route_client-reference-manifest.js +0 -3
- package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_license_route_actions_0a4.fuh.js +0 -3
- package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_license_route_actions_0a4.fuh.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0rovr5-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0rovr5-._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0lu1wok._.js +0 -8
- package/.next/server/chunks/ssr/[root-of-the-server]__0lu1wok._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__11fu-5m._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__11fu-5m._.js.map +0 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.js +0 -3
- package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.js.map +0 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js +0 -3
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js.map +0 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js +0 -9
- package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js.map +0 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0s5uqlp._.js +0 -9
- package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0s5uqlp._.js.map +0 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_server-logs_page_tsx_0dg.l_8._.js +0 -3
- package/.next/server/chunks/ssr/agent-network-dashboard_app_server-logs_page_tsx_0dg.l_8._.js.map +0 -1
- package/.next/static/chunks/0-mpa_947ipeq.js +0 -1
- package/.next/static/chunks/02to42x11p557.js +0 -7
- package/.next/static/chunks/03~5pxwbxxw-b.js +0 -1
- package/.next/static/chunks/04~fkia6-79k3.js +0 -1
- package/.next/static/chunks/0561vp5-q5.zp.js +0 -1
- package/.next/static/chunks/05uk96gc~9mni.js +0 -1
- package/.next/static/chunks/085rejlait1fs.js +0 -1
- package/.next/static/chunks/0a.9~-nf0gpec.js +0 -1
- package/.next/static/chunks/0im751o4n61c7.js +0 -1
- package/.next/static/chunks/0inql3s9ldyx5.js +0 -1
- package/.next/static/chunks/0ku0fjqlm9mca.js +0 -1
- package/.next/static/chunks/0mcamnu4w_x1r.js +0 -4
- package/.next/static/chunks/0ss8u23bnbyry.js +0 -1
- package/.next/static/chunks/0~rv5y.y5my9s.css +0 -1
- package/.next/static/chunks/13yktdzuatx3d.js +0 -1
- package/.next/static/chunks/15-ltfhot3b4n.js +0 -7
- package/.next/static/chunks/16ls93seuyj8a.js +0 -1
- package/.next/static/chunks/17sxlwlx5fhrp.css +0 -1
- package/.next/static/chunks/181u38qblp8lz.js +0 -1
- package/.next/static/media/4fa387ec64143e14-s.0.qu-9752pffj.woff2 +0 -0
- package/.next/static/media/5ce348bf30bf5439-s.0ee55_hj9qcer.woff2 +0 -0
- package/.next/static/media/6306c77e7c8268e4-s.0mao5jbfbduzp.woff2 +0 -0
- package/.next/static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2 +0 -0
- package/.next/static/media/7d817b4c03b0c5f1-s.0uzt.a6d44yda.woff2 +0 -0
- package/.next/static/media/bbc41e54d2fcbd21-s.0mvwgmnhv29no.woff2 +0 -0
- package/app/api/hub/license/route.ts +0 -33
- package/app/components/BroadcastBar.tsx +0 -84
- package/app/components/InboxPanel.tsx +0 -36
- /package/.next/static/{vv4Gz5yVhOzydMI2UlT1l → nPhsSMLrgn8H0RsXNP4ku}/_buildManifest.js +0 -0
- /package/.next/static/{vv4Gz5yVhOzydMI2UlT1l → nPhsSMLrgn8H0RsXNP4ku}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{vv4Gz5yVhOzydMI2UlT1l → nPhsSMLrgn8H0RsXNP4ku}/_ssgManifest.js +0 -0
package/app/layout.tsx
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import type { Metadata, Viewport } from "next";
|
|
2
|
-
import { Geist_Mono } from "next/font/google";
|
|
2
|
+
import { Geist, Geist_Mono } from "next/font/google";
|
|
3
3
|
import "./globals.css";
|
|
4
4
|
import { AppShell } from "./components/AppShell";
|
|
5
5
|
import { NetworkProvider } from "./lib/network-context";
|
|
6
6
|
import { ThemeProvider } from "./components/ThemeSwitcher";
|
|
7
7
|
import { PwaInstaller } from "./components/PwaInstaller";
|
|
8
8
|
|
|
9
|
+
// #217 D1 (Vincent: OpenWebUI-style serious-product feel): UI text is
|
|
10
|
+
// sans; mono stays for code blocks, IDs and logs via .font-mono.
|
|
11
|
+
const geistSans = Geist({
|
|
12
|
+
variable: "--font-geist-sans",
|
|
13
|
+
subsets: ["latin"],
|
|
14
|
+
});
|
|
15
|
+
|
|
9
16
|
const geistMono = Geist_Mono({
|
|
10
17
|
variable: "--font-geist-mono",
|
|
11
18
|
subsets: ["latin"],
|
|
@@ -20,7 +27,26 @@ export const metadata: Metadata = {
|
|
|
20
27
|
statusBarStyle: "black-translucent",
|
|
21
28
|
title: "Agent Network",
|
|
22
29
|
},
|
|
23
|
-
|
|
30
|
+
// R26 of #190: Next.js 16 renders `mobile-web-app-capable` (the modern
|
|
31
|
+
// standardized meta) but NOT the legacy `apple-mobile-web-app-capable`.
|
|
32
|
+
// iOS Safari < 16.4 only checks the apple-prefixed name; without it,
|
|
33
|
+
// the dashboard won't install as a web app on those iOS versions and
|
|
34
|
+
// the statusBarStyle + apple-touch-icon (R24) are silently ignored.
|
|
35
|
+
// Emit the legacy alias via metadata.other for back-compat.
|
|
36
|
+
other: {
|
|
37
|
+
'apple-mobile-web-app-capable': 'yes',
|
|
38
|
+
},
|
|
39
|
+
// R24 of #190: appleWebApp.capable above declares this is an iOS web
|
|
40
|
+
// app, but only `icon` was specified, leaving iOS Safari to fall back
|
|
41
|
+
// to a generic icon on Add-to-Home-Screen. iOS 15+ accepts SVG via
|
|
42
|
+
// `rel="apple-touch-icon" type="image/svg+xml"`; older iOS will fall
|
|
43
|
+
// back to the manifest icons (added R23) and then the generic. Reuse
|
|
44
|
+
// the existing sleep2agi-logo.svg — no new asset shipped.
|
|
45
|
+
icons: {
|
|
46
|
+
icon: [{ url: '/favicon.svg', type: 'image/svg+xml' }],
|
|
47
|
+
apple: [{ url: '/sleep2agi-logo.svg', type: 'image/svg+xml' }],
|
|
48
|
+
shortcut: '/favicon.svg',
|
|
49
|
+
},
|
|
24
50
|
openGraph: {
|
|
25
51
|
title: "Agent Network Dashboard",
|
|
26
52
|
description: "Real-time monitoring dashboard for Agent Network nodes",
|
|
@@ -33,7 +59,14 @@ export const viewport: Viewport = {
|
|
|
33
59
|
initialScale: 1,
|
|
34
60
|
maximumScale: 5,
|
|
35
61
|
userScalable: true,
|
|
36
|
-
themeColor: "#
|
|
62
|
+
themeColor: "#0b0b0d",
|
|
63
|
+
// R25 of #190: metadata.appleWebApp.statusBarStyle above is
|
|
64
|
+
// "black-translucent", which renders the iOS status bar as a
|
|
65
|
+
// transparent overlay above the page (rather than reserving its own
|
|
66
|
+
// strip). Without viewportFit: "cover" the resulting safe-area-inset
|
|
67
|
+
// env() values resolve to 0, so the HealthBanner gets occluded by
|
|
68
|
+
// the clock/battery row when the user opens the installed PWA.
|
|
69
|
+
viewportFit: "cover",
|
|
37
70
|
};
|
|
38
71
|
|
|
39
72
|
// Inline pre-paint script to apply persisted theme before React hydrates,
|
|
@@ -51,7 +84,7 @@ export default function RootLayout({
|
|
|
51
84
|
children: React.ReactNode;
|
|
52
85
|
}>) {
|
|
53
86
|
return (
|
|
54
|
-
<html lang="en" data-theme="cyber" className={`${geistMono.variable} h-full antialiased`}>
|
|
87
|
+
<html lang="en" data-theme="cyber" className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}>
|
|
55
88
|
<head>
|
|
56
89
|
<script dangerouslySetInnerHTML={{ __html: themeBootScript }} />
|
|
57
90
|
</head>
|
package/app/lib/hooks.ts
CHANGED
|
@@ -63,17 +63,15 @@ export function useStats() {
|
|
|
63
63
|
return { stats: data?.ok ? data : null, error };
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export function useLicense() {
|
|
67
|
-
const { data, error } = useSWR('/api/hub/license', fetcher, { refreshInterval: 60000 });
|
|
68
|
-
return { license: data?.ok ? data : null, error };
|
|
69
|
-
}
|
|
70
|
-
|
|
71
66
|
export function useMessages(limit = 100) {
|
|
72
67
|
const { networkId } = useNetworkId();
|
|
68
|
+
// keepPreviousData: /messages grows `limit` when the user asks for older
|
|
69
|
+
// history (#217 M5) — without it the key change would blank the list and
|
|
70
|
+
// flash the skeleton while the bigger page is in flight.
|
|
73
71
|
const { data, error, isLoading } = useSWR(
|
|
74
72
|
withNetwork(`/api/hub/messages?limit=${limit}`, networkId),
|
|
75
73
|
fetcher,
|
|
76
|
-
SWR_OPTIONS,
|
|
74
|
+
{ ...SWR_OPTIONS, keepPreviousData: true },
|
|
77
75
|
);
|
|
78
76
|
return { messages: data?.messages || [], error, isLoading };
|
|
79
77
|
}
|
package/app/lib/status.ts
CHANGED
|
@@ -23,39 +23,46 @@ export type TaskStatus = typeof TASK_STATUSES[number];
|
|
|
23
23
|
|
|
24
24
|
/** Pill / chip background+text+border. Tailwind classes, not inlined hex,
|
|
25
25
|
* because chips are static class names safe from purge. */
|
|
26
|
+
/** #217 D3 (OpenWebUI-style color restraint): the 9-hue rainbow is
|
|
27
|
+
* collapsed to a semantic triad — green = actively running, red =
|
|
28
|
+
* failed, gray = everything else (in-flight states in lighter gray,
|
|
29
|
+
* terminal states dimmer). Color now means something instead of
|
|
30
|
+
* decorating every enum value. */
|
|
26
31
|
export const STATUS_CHIP_CLASS: Record<string, string> = {
|
|
27
32
|
created: 'bg-gray-500/10 text-gray-400 border-gray-500/20',
|
|
28
|
-
delivered: 'bg-
|
|
29
|
-
acked: 'bg-
|
|
33
|
+
delivered: 'bg-gray-500/10 text-gray-300 border-gray-500/20',
|
|
34
|
+
acked: 'bg-gray-500/10 text-gray-300 border-gray-500/20',
|
|
30
35
|
running: 'bg-green-500/10 text-green-300 border-green-500/20',
|
|
31
|
-
replied: 'bg-
|
|
36
|
+
replied: 'bg-gray-500/10 text-gray-300 border-gray-500/20',
|
|
32
37
|
closed: 'bg-gray-500/10 text-gray-500 border-gray-500/20',
|
|
33
38
|
failed: 'bg-red-500/10 text-red-300 border-red-500/20',
|
|
34
|
-
cancelled: 'bg-
|
|
35
|
-
expired: 'bg-
|
|
39
|
+
cancelled: 'bg-gray-500/10 text-gray-500 border-gray-500/20',
|
|
40
|
+
expired: 'bg-gray-500/10 text-gray-500 border-gray-500/20',
|
|
36
41
|
};
|
|
37
42
|
|
|
38
43
|
/** Inline hex dots — used wherever Tailwind would purge dynamic class
|
|
39
44
|
* names (`bg-${family}-400`). Style attribute carries the color. */
|
|
40
45
|
export const STATUS_DOT_HEX: Record<string, string> = {
|
|
41
46
|
created: '#9ca3af',
|
|
42
|
-
delivered: '#
|
|
43
|
-
acked: '#
|
|
47
|
+
delivered: '#9ca3af',
|
|
48
|
+
acked: '#9ca3af',
|
|
44
49
|
running: '#4ade80',
|
|
45
|
-
replied: '#
|
|
50
|
+
replied: '#9ca3af',
|
|
46
51
|
closed: '#6b7280',
|
|
47
52
|
failed: '#f87171',
|
|
48
|
-
cancelled: '#
|
|
49
|
-
expired: '#
|
|
53
|
+
cancelled: '#6b7280',
|
|
54
|
+
expired: '#6b7280',
|
|
50
55
|
};
|
|
51
56
|
|
|
52
57
|
/** Session lifecycle (distinct from task lifecycle above). Shared by
|
|
53
58
|
* /nodes status pills and /admin Online Sessions row chips so an
|
|
54
59
|
* agent in `blocked` state reads the same color everywhere.
|
|
55
60
|
* Round 91 — extracted from app/nodes/page.tsx. */
|
|
61
|
+
/** D3: idle drops from blue to gray — only working (green), blocked
|
|
62
|
+
* (amber, actionable) and error (red) earn color. */
|
|
56
63
|
export const SESSION_STATUS_CHIP_CLASS: Record<string, string> = {
|
|
57
64
|
working: 'bg-green-500/10 text-green-300 border-green-500/20',
|
|
58
|
-
idle: 'bg-
|
|
65
|
+
idle: 'bg-gray-500/10 text-gray-300 border-gray-500/20',
|
|
59
66
|
blocked: 'bg-yellow-500/10 text-yellow-300 border-yellow-500/20',
|
|
60
67
|
error: 'bg-red-500/10 text-red-300 border-red-500/20',
|
|
61
68
|
offline: 'bg-gray-500/10 text-gray-500 border-gray-500/20',
|
|
@@ -65,7 +72,7 @@ export const SESSION_STATUS_CHIP_CLASS: Record<string, string> = {
|
|
|
65
72
|
* would be too heavy — e.g. /node detail header status label. */
|
|
66
73
|
export const SESSION_STATUS_TEXT_CLASS: Record<string, string> = {
|
|
67
74
|
working: 'text-green-400',
|
|
68
|
-
idle: 'text-
|
|
75
|
+
idle: 'text-gray-400',
|
|
69
76
|
blocked: 'text-yellow-400',
|
|
70
77
|
error: 'text-red-400',
|
|
71
78
|
offline: 'text-gray-500',
|
|
@@ -74,12 +81,12 @@ export const SESSION_STATUS_TEXT_CLASS: Record<string, string> = {
|
|
|
74
81
|
/** Solid bar segment background for the Tasks distribution bar. */
|
|
75
82
|
export const STATUS_BAR_CLASS: Record<string, string> = {
|
|
76
83
|
created: 'bg-gray-500',
|
|
77
|
-
delivered: 'bg-
|
|
78
|
-
acked: 'bg-
|
|
84
|
+
delivered: 'bg-gray-400',
|
|
85
|
+
acked: 'bg-gray-300',
|
|
79
86
|
running: 'bg-green-500',
|
|
80
|
-
replied: 'bg-
|
|
87
|
+
replied: 'bg-gray-400',
|
|
81
88
|
closed: 'bg-gray-600',
|
|
82
89
|
failed: 'bg-red-500',
|
|
83
|
-
cancelled: 'bg-
|
|
84
|
-
expired: 'bg-
|
|
90
|
+
cancelled: 'bg-gray-600',
|
|
91
|
+
expired: 'bg-gray-600',
|
|
85
92
|
};
|
package/app/login/page.tsx
CHANGED
|
@@ -46,7 +46,7 @@ export default function LoginPage() {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
|
-
<main className="min-h-screen bg-[#
|
|
49
|
+
<main className="min-h-screen bg-[#0b0b0d] text-gray-100 flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16">
|
|
50
50
|
{/* Subtle off-grid background — restraint over AI-glow.
|
|
51
51
|
Dark themes get a faint radial wash; light themes show a low-contrast
|
|
52
52
|
dotted grid for surface texture without noise. */}
|
|
@@ -57,7 +57,7 @@ export default function LoginPage() {
|
|
|
57
57
|
{/* Brand mark — uses the favicon 3-node mesh SVG which IS the
|
|
58
58
|
agent-network concept (nodes + edges). Replaces the previous
|
|
59
59
|
flat emerald square placeholder. */}
|
|
60
|
-
<div className="inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#
|
|
60
|
+
<div className="inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#161618] border border-[#26262b] anet-login-mark">
|
|
61
61
|
<svg className="w-9 h-9" viewBox="0 0 32 32" aria-hidden>
|
|
62
62
|
<circle cx="16" cy="16" r="10" fill="none" stroke="currentColor" strokeWidth="1.5" opacity="0.25" className="text-cyan-400 anet-login-mark-ring" />
|
|
63
63
|
<line x1="16" y1="10" x2="10" y2="20" stroke="currentColor" strokeWidth="1" opacity="0.5" className="text-cyan-400 anet-login-mark-edge" />
|
|
@@ -77,7 +77,7 @@ export default function LoginPage() {
|
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
79
|
{/* Mode toggle */}
|
|
80
|
-
<div className="flex rounded-lg border border-[#
|
|
80
|
+
<div className="flex rounded-lg border border-[#26262b] bg-[#161618] p-1 mb-4">
|
|
81
81
|
{(['login', 'register'] as const).map(m => (
|
|
82
82
|
<button key={m} type="button" onClick={() => { setMode(m); setError(''); }}
|
|
83
83
|
className={`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${mode === m ? 'bg-cyan-500/10 text-cyan-300' : 'text-gray-500 hover:text-gray-200'}`}>
|
|
@@ -86,13 +86,13 @@ export default function LoginPage() {
|
|
|
86
86
|
))}
|
|
87
87
|
</div>
|
|
88
88
|
|
|
89
|
-
<form onSubmit={submit} className="border border-[#
|
|
89
|
+
<form onSubmit={submit} className="border border-[#26262b] bg-[#161618]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30">
|
|
90
90
|
<label htmlFor="username" className="block text-xs text-gray-500 mb-2 uppercase tracking-wider">
|
|
91
91
|
Username
|
|
92
92
|
</label>
|
|
93
93
|
<input id="username" type="text" value={username} onChange={e => setUsername(e.target.value)} autoFocus
|
|
94
94
|
placeholder="Enter username"
|
|
95
|
-
className="w-full bg-[#
|
|
95
|
+
className="w-full bg-[#0e0e10] border border-[#26262b] rounded-lg px-4 py-3 text-base sm:text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4" />
|
|
96
96
|
|
|
97
97
|
<label htmlFor="password" className="block text-xs text-gray-500 mb-2 uppercase tracking-wider">
|
|
98
98
|
Password
|
|
@@ -100,13 +100,13 @@ export default function LoginPage() {
|
|
|
100
100
|
<div className="relative">
|
|
101
101
|
<input id="password" type={showPassword ? 'text' : 'password'} value={password} onChange={e => setPassword(e.target.value)}
|
|
102
102
|
placeholder="Enter password"
|
|
103
|
-
className="w-full bg-[#
|
|
103
|
+
className="w-full bg-[#0e0e10] border border-[#26262b] rounded-lg px-4 pr-11 py-3 text-base sm:text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all" />
|
|
104
104
|
<button
|
|
105
105
|
type="button"
|
|
106
106
|
onClick={() => setShowPassword(s => !s)}
|
|
107
107
|
tabIndex={-1}
|
|
108
108
|
aria-label={showPassword ? 'Hide password' : 'Show password'}
|
|
109
|
-
className="absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors"
|
|
109
|
+
className="absolute inset-y-0 right-0 flex items-center justify-center min-w-[44px] px-3 text-gray-600 hover:text-gray-300 transition-colors"
|
|
110
110
|
>
|
|
111
111
|
{showPassword ? (
|
|
112
112
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round">
|
package/app/logs/page.tsx
CHANGED
|
@@ -75,8 +75,10 @@ export default function LogsPage() {
|
|
|
75
75
|
}, [fetchLogs]);
|
|
76
76
|
|
|
77
77
|
return (
|
|
78
|
-
<div className="min-h-screen bg-[#
|
|
79
|
-
|
|
78
|
+
<div className="min-h-screen bg-[#0b0b0d] text-gray-100 p-4 sm:p-6">
|
|
79
|
+
{/* #209 R36: mobile vertical rhythm — same R28/R30/R31 pattern,
|
|
80
|
+
mb-6 → mb-4 sm:mb-6 here and on the action-filter strip below. */}
|
|
81
|
+
<div className="flex items-center gap-4 mb-4 sm:mb-6">
|
|
80
82
|
<h1 className="text-2xl font-bold text-white lg:ml-0 ml-10">Audit Log</h1>
|
|
81
83
|
{/* Round 87: dropped {logs.length} header chip — r43 added
|
|
82
84
|
`All <count>` to the action-filter strip below, which
|
|
@@ -87,7 +89,7 @@ export default function LogsPage() {
|
|
|
87
89
|
status tabs / Overview agent filter. Each chip carries its
|
|
88
90
|
ACTION_STRIPE dot so the visual key matches the per-row left
|
|
89
91
|
rail. Counts come from the currently loaded log set. */}
|
|
90
|
-
<div className="mb-6 flex flex-wrap items-center gap-1 anet-tabstrip-wrap overflow-x-auto sm:overflow-x-visible">
|
|
92
|
+
<div className="mb-4 sm:mb-6 flex flex-wrap items-center gap-1 anet-tabstrip-wrap overflow-x-auto sm:overflow-x-visible">
|
|
91
93
|
{(() => {
|
|
92
94
|
const counts: Record<string, number> = {};
|
|
93
95
|
logs.forEach(l => { counts[l.action] = (counts[l.action] || 0) + 1; });
|
|
@@ -111,7 +113,7 @@ export default function LogsPage() {
|
|
|
111
113
|
className={`flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs transition-colors disabled:opacity-30 disabled:cursor-not-allowed shrink-0 whitespace-nowrap ${
|
|
112
114
|
isActive
|
|
113
115
|
? 'bg-cyan-500/10 text-cyan-300 border border-cyan-500/30'
|
|
114
|
-
: 'text-gray-500 hover:text-gray-200 hover:bg-[#
|
|
116
|
+
: 'text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] border border-transparent'
|
|
115
117
|
}`}
|
|
116
118
|
>
|
|
117
119
|
{c.dot && <span aria-hidden className="inline-block w-1.5 h-1.5 rounded-full" style={{ backgroundColor: c.dot }} />}
|
|
@@ -162,11 +164,15 @@ export default function LogsPage() {
|
|
|
162
164
|
) : logs.length === 0 ? (
|
|
163
165
|
<EmptyState variant="logs" />
|
|
164
166
|
) : (
|
|
165
|
-
|
|
167
|
+
/* R18 of #190 mobile polish: /logs was 28,791 px on 390 px
|
|
168
|
+
mobile; same dense-card pattern that R7/R8 hit on /nodes
|
|
169
|
+
and /tasks. Tighten card padding and inter-card gap on
|
|
170
|
+
mobile, sm:-gated so desktop stays comfortable. */
|
|
171
|
+
<div className="space-y-1 sm:space-y-2">
|
|
166
172
|
{logs.map(log => {
|
|
167
173
|
const userName = log.username || log.user_id;
|
|
168
174
|
return (
|
|
169
|
-
<div key={log.id} className="relative bg-[#
|
|
175
|
+
<div key={log.id} className="relative bg-[#161618] border border-[#26262b] rounded-lg pl-3 pr-3 py-2 sm:pl-4 sm:pr-4 sm:py-3 hover:border-[#3a3a41] transition-colors overflow-hidden">
|
|
170
176
|
{/* 2px left rail per action (round 33) — failed logins, token
|
|
171
177
|
rotations spike out of a wall of register/login rows. */}
|
|
172
178
|
<span
|
package/app/manifest.ts
CHANGED
|
@@ -8,8 +8,8 @@ export default function manifest(): MetadataRoute.Manifest {
|
|
|
8
8
|
start_url: '/',
|
|
9
9
|
scope: '/',
|
|
10
10
|
display: 'standalone',
|
|
11
|
-
background_color: '#
|
|
12
|
-
theme_color: '#
|
|
11
|
+
background_color: '#0b0b0d',
|
|
12
|
+
theme_color: '#0b0b0d',
|
|
13
13
|
orientation: 'portrait',
|
|
14
14
|
icons: [
|
|
15
15
|
{
|
package/app/messages/page.tsx
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useMemo, useState } from 'react';
|
|
3
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { useMessages } from '../lib/hooks';
|
|
5
5
|
import { timeAgo, previewContent } from '../components/utils';
|
|
6
6
|
import { EmptyState } from '../components/EmptyState';
|
|
7
7
|
import { AliasAvatar } from '../components/AliasAvatar';
|
|
8
|
+
import { useCollapsibleSearch } from '../components/CollapsibleSearch';
|
|
8
9
|
|
|
9
10
|
interface MessageItem {
|
|
10
11
|
id: string;
|
|
@@ -52,12 +53,40 @@ function renderHighlighted(content: string | undefined, search: string) {
|
|
|
52
53
|
return <>{text.slice(0, idx)}<mark className="bg-yellow-500/30 text-yellow-200 rounded px-0.5">{text.slice(idx, idx + q.length)}</mark>{text.slice(idx + q.length)}</>;
|
|
53
54
|
}
|
|
54
55
|
|
|
56
|
+
// #217 M5 (Vincent tg 655/656, same directive as chat M4): don't pull the
|
|
57
|
+
// full history on every 5s poll. Open with the newest page only and grow
|
|
58
|
+
// the window when the user explicitly asks for older messages.
|
|
59
|
+
const HISTORY_PAGE = 30;
|
|
60
|
+
|
|
55
61
|
export default function MessagesPage() {
|
|
56
|
-
const
|
|
62
|
+
const [histLimit, setHistLimit] = useState(HISTORY_PAGE);
|
|
63
|
+
const { messages, isLoading } = useMessages(histLimit);
|
|
64
|
+
// The hub returned a full page → assume more history exists beyond it.
|
|
65
|
+
const hasOlder = messages.length >= histLimit;
|
|
66
|
+
const loadingOlder = isLoading && messages.length > 0;
|
|
57
67
|
const [filterType, setFilterType] = useState('');
|
|
58
68
|
const [search, setSearch] = useState('');
|
|
59
69
|
const [debug, setDebug] = useState(false);
|
|
60
70
|
const [viewMode, setViewMode] = useState<'timeline' | 'grouped'>('timeline');
|
|
71
|
+
// M5: the timeline runs oldest→newest top-to-bottom, so land the first
|
|
72
|
+
// paint on the newest message (what the user came to read) instead of
|
|
73
|
+
// the oldest of the loaded window. Once only — later polls/loads must
|
|
74
|
+
// not yank the scroll position.
|
|
75
|
+
const endRef = useRef<HTMLDivElement>(null);
|
|
76
|
+
const didInitialScrollRef = useRef(false);
|
|
77
|
+
useEffect(() => {
|
|
78
|
+
if (didInitialScrollRef.current || messages.length === 0) return;
|
|
79
|
+
didInitialScrollRef.current = true;
|
|
80
|
+
endRef.current?.scrollIntoView();
|
|
81
|
+
}, [messages.length]);
|
|
82
|
+
// #209 R33→R34: WeChat-style magnifier-toggle search hook (shared with /nodes).
|
|
83
|
+
const searchCtl = useCollapsibleSearch({
|
|
84
|
+
value: search,
|
|
85
|
+
onChange: setSearch,
|
|
86
|
+
placeholder: 'Search from/to/content or use from:alias…',
|
|
87
|
+
label: 'Search messages',
|
|
88
|
+
enabled: messages.length > 0,
|
|
89
|
+
});
|
|
61
90
|
|
|
62
91
|
const quickFromChips = useMemo(() => {
|
|
63
92
|
const aliases = new Set<string>();
|
|
@@ -104,56 +133,64 @@ export default function MessagesPage() {
|
|
|
104
133
|
}, [filtered]);
|
|
105
134
|
|
|
106
135
|
return (
|
|
107
|
-
<div className="min-h-screen bg-[#
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
<
|
|
116
|
-
className="text-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
`**${m.from_alias || '?'}** → ${m.to_alias || '?'} (${m.type || '?'}) — ${m.created_at || ''}\n\n${m.content || '--'}\n\n---`
|
|
126
|
-
).join('\n\n');
|
|
127
|
-
const blob = new Blob([`# Messages Export\n\n${md}`], { type: 'text/markdown' });
|
|
128
|
-
const url = URL.createObjectURL(blob);
|
|
129
|
-
const a = document.createElement('a');
|
|
130
|
-
a.href = url; a.download = `messages-${new Date().toISOString().slice(0,10)}.md`;
|
|
131
|
-
a.click(); URL.revokeObjectURL(url);
|
|
132
|
-
}}
|
|
133
|
-
className="text-xs text-gray-500 hover:text-gray-300 border border-gray-700/50 px-2.5 py-1 rounded-lg transition-colors"
|
|
136
|
+
<div className="min-h-screen bg-[#0b0b0d] text-gray-100 p-4 sm:p-6">
|
|
137
|
+
{/* #209 R31 (mobile vertical rhythm — same pattern as R28/R30):
|
|
138
|
+
header row + quick-from chips row both mb-6 → mb-4 sm:mb-6.
|
|
139
|
+
#209 R33: header restructured to mirror /nodes R32 — title
|
|
140
|
+
cluster left (Messages + count chip + Export MD), magnifier
|
|
141
|
+
circle right. Inline ~290 px search input was moved into the
|
|
142
|
+
collapsible row below. */}
|
|
143
|
+
<div className="flex items-center gap-4 mb-4 sm:mb-6">
|
|
144
|
+
<div className="flex items-center gap-3 min-w-0 flex-1">
|
|
145
|
+
<h1 className="text-2xl font-bold text-white lg:ml-0 ml-10">Messages</h1>
|
|
146
|
+
{/* Round 89: filter-aware chip. When search/type filter is active
|
|
147
|
+
the visible rows are filtered.length; the total loaded is
|
|
148
|
+
messages.length (the M5 lazy window, newest histLimit). Show
|
|
149
|
+
`filtered / total` so users notice how much the filter is
|
|
150
|
+
hiding. Same pattern as r88 /tasks chip. */}
|
|
151
|
+
<span
|
|
152
|
+
className="text-xs bg-blue-900/30 text-blue-400 px-2 py-0.5 rounded-full border border-blue-800/30 tabular-nums shrink-0"
|
|
153
|
+
title={filtered.length < messages.length ? `Showing ${filtered.length} of ${messages.length} messages` : undefined}
|
|
134
154
|
>
|
|
135
|
-
|
|
136
|
-
</
|
|
137
|
-
|
|
155
|
+
{filtered.length < messages.length ? `${filtered.length} / ${messages.length}` : messages.length}
|
|
156
|
+
</span>
|
|
157
|
+
{filtered.length > 0 && (
|
|
158
|
+
<button
|
|
159
|
+
onClick={() => {
|
|
160
|
+
const md = filtered.map((m: MessageItem) =>
|
|
161
|
+
`**${m.from_alias || '?'}** → ${m.to_alias || '?'} (${m.type || '?'}) — ${m.created_at || ''}\n\n${m.content || '--'}\n\n---`
|
|
162
|
+
).join('\n\n');
|
|
163
|
+
const blob = new Blob([`# Messages Export\n\n${md}`], { type: 'text/markdown' });
|
|
164
|
+
const url = URL.createObjectURL(blob);
|
|
165
|
+
const a = document.createElement('a');
|
|
166
|
+
a.href = url; a.download = `messages-${new Date().toISOString().slice(0,10)}.md`;
|
|
167
|
+
a.click(); URL.revokeObjectURL(url);
|
|
168
|
+
}}
|
|
169
|
+
className="text-xs text-gray-500 hover:text-gray-300 border border-gray-700/50 px-2.5 py-1 rounded-lg transition-colors shrink-0"
|
|
170
|
+
>
|
|
171
|
+
Export MD
|
|
172
|
+
</button>
|
|
173
|
+
)}
|
|
174
|
+
</div>
|
|
175
|
+
<searchCtl.Button />
|
|
138
176
|
</div>
|
|
139
177
|
|
|
178
|
+
{/* #209 R34: shared <CollapsibleSearch> component. enabled gate
|
|
179
|
+
handles the no-content case (button + row both hide). */}
|
|
180
|
+
<searchCtl.Row />
|
|
181
|
+
|
|
140
182
|
{/* Round 76: hide search + type filter + view toggle + Debug button
|
|
141
183
|
when there are no messages at all. Same r70-class fix carried
|
|
142
184
|
across /nodes (r74) and /tasks (r75). When at least one message
|
|
143
185
|
exists, the chrome reappears so users can still clear filters. */}
|
|
144
186
|
{messages.length > 0 && (
|
|
145
187
|
<div className="flex flex-wrap gap-3 mb-3">
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
value={search}
|
|
149
|
-
onChange={e => setSearch(e.target.value)}
|
|
150
|
-
placeholder="Search from/to/content or use from:alias"
|
|
151
|
-
className="bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-blue-500/50 focus:outline-none w-full sm:w-72"
|
|
152
|
-
/>
|
|
188
|
+
{/* R33: inline search input moved to the top-right magnifier
|
|
189
|
+
toggle above. Type select + view-mode toggle + Debug stay. */}
|
|
153
190
|
<select
|
|
154
191
|
value={filterType}
|
|
155
192
|
onChange={e => setFilterType(e.target.value)}
|
|
156
|
-
className="bg-[#
|
|
193
|
+
className="bg-[#161618] border border-[#26262b] rounded-lg px-3 py-2 text-base sm:text-sm text-white focus:border-blue-500/50 focus:outline-none"
|
|
157
194
|
>
|
|
158
195
|
<option value="">All types</option>
|
|
159
196
|
<option value="task">task</option>
|
|
@@ -161,7 +198,7 @@ export default function MessagesPage() {
|
|
|
161
198
|
<option value="broadcast">broadcast</option>
|
|
162
199
|
<option value="reply">reply</option>
|
|
163
200
|
</select>
|
|
164
|
-
<div className="flex rounded-lg border border-[#
|
|
201
|
+
<div className="flex rounded-lg border border-[#26262b] bg-[#161618] p-0.5">
|
|
165
202
|
{(['timeline', 'grouped'] as const).map(mode => (
|
|
166
203
|
<button key={mode} type="button" onClick={() => setViewMode(mode)}
|
|
167
204
|
className={`rounded-md px-2.5 py-1.5 text-xs transition-colors ${viewMode === mode ? 'bg-cyan-500/10 text-cyan-300' : 'text-gray-500 hover:text-gray-200'}`}>
|
|
@@ -180,17 +217,20 @@ export default function MessagesPage() {
|
|
|
180
217
|
</div>
|
|
181
218
|
)}
|
|
182
219
|
|
|
220
|
+
{/* #217 S8 (less is more): on phones the sender chips wrapped into
|
|
221
|
+
~5 rows and pushed the first message below the fold. One
|
|
222
|
+
scrollable row on mobile; wrap returns from sm: up. */}
|
|
183
223
|
{quickFromChips.length > 0 && (
|
|
184
|
-
<div className="mb-6 flex flex-wrap
|
|
224
|
+
<div className="mb-4 sm:mb-6 flex gap-2 overflow-x-auto whitespace-nowrap pb-1 scrollbar-thin sm:flex-wrap sm:overflow-visible sm:whitespace-normal sm:pb-0">
|
|
185
225
|
{quickFromChips.map(alias => (
|
|
186
226
|
<button
|
|
187
227
|
key={alias}
|
|
188
228
|
type="button"
|
|
189
229
|
onClick={() => setSearch(`from:${alias}`)}
|
|
190
|
-
className={`rounded-full border px-3 py-1 text-xs transition-colors ${
|
|
230
|
+
className={`shrink-0 rounded-full border px-3 py-1 text-xs transition-colors ${
|
|
191
231
|
search === `from:${alias}`
|
|
192
232
|
? 'border-cyan-500/30 bg-cyan-500/10 text-cyan-300'
|
|
193
|
-
: 'border-[#
|
|
233
|
+
: 'border-[#26262b] bg-[#161618] text-gray-400 hover:text-gray-200'
|
|
194
234
|
}`}
|
|
195
235
|
>
|
|
196
236
|
from:{alias}
|
|
@@ -200,7 +240,7 @@ export default function MessagesPage() {
|
|
|
200
240
|
<button
|
|
201
241
|
type="button"
|
|
202
242
|
onClick={() => setSearch('')}
|
|
203
|
-
className="rounded-full border border-gray-700 px-3 py-1 text-xs text-gray-500 hover:text-gray-200"
|
|
243
|
+
className="shrink-0 rounded-full border border-gray-700 px-3 py-1 text-xs text-gray-500 hover:text-gray-200"
|
|
204
244
|
>
|
|
205
245
|
Clear
|
|
206
246
|
</button>
|
|
@@ -208,7 +248,24 @@ export default function MessagesPage() {
|
|
|
208
248
|
</div>
|
|
209
249
|
)}
|
|
210
250
|
|
|
211
|
-
{
|
|
251
|
+
{/* M5: paging affordance — mirrors the chat panel's M4 row. Sits
|
|
252
|
+
above the list because older history is prepended above what's
|
|
253
|
+
already on screen. Hidden once the hub returns a short page
|
|
254
|
+
(we've reached the beginning). */}
|
|
255
|
+
{messages.length > 0 && hasOlder && (
|
|
256
|
+
<div className="mb-3 flex justify-center">
|
|
257
|
+
<button
|
|
258
|
+
type="button"
|
|
259
|
+
onClick={() => setHistLimit(l => l + HISTORY_PAGE)}
|
|
260
|
+
disabled={loadingOlder}
|
|
261
|
+
className="rounded-full border border-[#26262b] bg-[#161618] px-4 py-1.5 text-xs text-gray-400 transition-colors hover:text-gray-200 disabled:opacity-50"
|
|
262
|
+
>
|
|
263
|
+
{loadingOlder ? 'Loading…' : '↑ Load earlier messages'}
|
|
264
|
+
</button>
|
|
265
|
+
</div>
|
|
266
|
+
)}
|
|
267
|
+
|
|
268
|
+
{isLoading && messages.length === 0 ? (
|
|
212
269
|
<div className="animate-pulse space-y-3">
|
|
213
270
|
{[1, 2, 3, 4, 5].map(i => <div key={i} className="h-20 rounded-2xl bg-gray-800/20" />)}
|
|
214
271
|
</div>
|
|
@@ -217,8 +274,8 @@ export default function MessagesPage() {
|
|
|
217
274
|
) : viewMode === 'grouped' ? (
|
|
218
275
|
<div className="space-y-4">
|
|
219
276
|
{conversations.map((conv, ci) => (
|
|
220
|
-
<div key={ci} className="bg-[#
|
|
221
|
-
<div className="px-4 py-2.5 border-b border-[#
|
|
277
|
+
<div key={ci} className="bg-[#161618] border border-[#26262b] rounded-xl overflow-hidden">
|
|
278
|
+
<div className="px-4 py-2.5 border-b border-[#26262b] flex items-center justify-between">
|
|
222
279
|
<div className="flex items-center gap-2">
|
|
223
280
|
<AliasAvatar alias={conv.participants[0]} size={16} />
|
|
224
281
|
<span className="text-sm text-gray-200 font-medium">{conv.participants[0]}</span>
|
|
@@ -266,9 +323,9 @@ export default function MessagesPage() {
|
|
|
266
323
|
Halve it on mobile. */}
|
|
267
324
|
{gapExceeded && (
|
|
268
325
|
<div className="my-2 sm:my-4 flex items-center gap-3">
|
|
269
|
-
<div className="h-px flex-1 bg-[#
|
|
326
|
+
<div className="h-px flex-1 bg-[#26262b]" />
|
|
270
327
|
<div className="text-[11px] text-gray-600">{formatDividerLabel(message.created_at)}</div>
|
|
271
|
-
<div className="h-px flex-1 bg-[#
|
|
328
|
+
<div className="h-px flex-1 bg-[#26262b]" />
|
|
272
329
|
</div>
|
|
273
330
|
)}
|
|
274
331
|
|
|
@@ -351,6 +408,7 @@ export default function MessagesPage() {
|
|
|
351
408
|
</div>
|
|
352
409
|
);
|
|
353
410
|
})}
|
|
411
|
+
<div ref={endRef} />
|
|
354
412
|
</div>
|
|
355
413
|
)}
|
|
356
414
|
</div>
|