@sleep2agi/agent-network-dashboard 0.5.7-preview.7 → 0.5.7-preview.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +0 -1
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/diagnostics/route-bundle-stats.json +65 -65
  5. package/.next/fallback-build-manifest.json +3 -3
  6. package/.next/prerender-manifest.json +3 -3
  7. package/.next/routes-manifest.json +0 -6
  8. package/.next/server/app/_global-error.html +1 -1
  9. package/.next/server/app/_global-error.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next/server/app/_not-found/page/next-font-manifest.json +2 -1
  16. package/.next/server/app/_not-found/page.js +1 -1
  17. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  18. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  19. package/.next/server/app/_not-found.html +4 -4
  20. package/.next/server/app/_not-found.rsc +16 -16
  21. package/.next/server/app/_not-found.segments/_full.segment.rsc +16 -16
  22. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  23. package/.next/server/app/_not-found.segments/_index.segment.rsc +9 -9
  24. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  25. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  26. package/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -3
  27. package/.next/server/app/admin/page/next-font-manifest.json +2 -1
  28. package/.next/server/app/admin/page.js +1 -1
  29. package/.next/server/app/admin/page.js.nft.json +1 -1
  30. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  31. package/.next/server/app/admin.html +4 -4
  32. package/.next/server/app/admin.rsc +20 -19
  33. package/.next/server/app/admin.segments/_full.segment.rsc +20 -19
  34. package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
  35. package/.next/server/app/admin.segments/_index.segment.rsc +9 -9
  36. package/.next/server/app/admin.segments/_tree.segment.rsc +5 -4
  37. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
  38. package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
  39. package/.next/server/app/index.html +4 -4
  40. package/.next/server/app/index.rsc +20 -19
  41. package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  42. package/.next/server/app/index.segments/_full.segment.rsc +20 -19
  43. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  44. package/.next/server/app/index.segments/_index.segment.rsc +9 -9
  45. package/.next/server/app/index.segments/_tree.segment.rsc +5 -4
  46. package/.next/server/app/login/page/next-font-manifest.json +2 -1
  47. package/.next/server/app/login/page.js +1 -1
  48. package/.next/server/app/login/page.js.nft.json +1 -1
  49. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  50. package/.next/server/app/login.html +2 -2
  51. package/.next/server/app/login.rsc +20 -19
  52. package/.next/server/app/login.segments/_full.segment.rsc +20 -19
  53. package/.next/server/app/login.segments/_head.segment.rsc +4 -4
  54. package/.next/server/app/login.segments/_index.segment.rsc +9 -9
  55. package/.next/server/app/login.segments/_tree.segment.rsc +5 -4
  56. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  57. package/.next/server/app/login.segments/login.segment.rsc +3 -3
  58. package/.next/server/app/logs/page/next-font-manifest.json +2 -1
  59. package/.next/server/app/logs/page.js +1 -1
  60. package/.next/server/app/logs/page.js.nft.json +1 -1
  61. package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  62. package/.next/server/app/logs.html +4 -4
  63. package/.next/server/app/logs.rsc +20 -19
  64. package/.next/server/app/logs.segments/_full.segment.rsc +20 -19
  65. package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
  66. package/.next/server/app/logs.segments/_index.segment.rsc +9 -9
  67. package/.next/server/app/logs.segments/_tree.segment.rsc +5 -4
  68. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +4 -4
  69. package/.next/server/app/logs.segments/logs.segment.rsc +3 -3
  70. package/.next/server/app/manifest.webmanifest.body +1 -1
  71. package/.next/server/app/messages/page/next-font-manifest.json +2 -1
  72. package/.next/server/app/messages/page.js +1 -1
  73. package/.next/server/app/messages/page.js.nft.json +1 -1
  74. package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
  75. package/.next/server/app/messages.html +4 -4
  76. package/.next/server/app/messages.rsc +20 -19
  77. package/.next/server/app/messages.segments/_full.segment.rsc +20 -19
  78. package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
  79. package/.next/server/app/messages.segments/_index.segment.rsc +9 -9
  80. package/.next/server/app/messages.segments/_tree.segment.rsc +5 -4
  81. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +4 -4
  82. package/.next/server/app/messages.segments/messages.segment.rsc +3 -3
  83. package/.next/server/app/node/page/next-font-manifest.json +2 -1
  84. package/.next/server/app/node/page.js +1 -1
  85. package/.next/server/app/node/page.js.nft.json +1 -1
  86. package/.next/server/app/node/page_client-reference-manifest.js +1 -1
  87. package/.next/server/app/node.html +4 -4
  88. package/.next/server/app/node.rsc +20 -19
  89. package/.next/server/app/node.segments/_full.segment.rsc +20 -19
  90. package/.next/server/app/node.segments/_head.segment.rsc +4 -4
  91. package/.next/server/app/node.segments/_index.segment.rsc +9 -9
  92. package/.next/server/app/node.segments/_tree.segment.rsc +5 -4
  93. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +4 -4
  94. package/.next/server/app/node.segments/node.segment.rsc +3 -3
  95. package/.next/server/app/nodes/page/next-font-manifest.json +2 -1
  96. package/.next/server/app/nodes/page.js +1 -1
  97. package/.next/server/app/nodes/page.js.nft.json +1 -1
  98. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  99. package/.next/server/app/nodes.html +4 -4
  100. package/.next/server/app/nodes.rsc +20 -19
  101. package/.next/server/app/nodes.segments/_full.segment.rsc +20 -19
  102. package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
  103. package/.next/server/app/nodes.segments/_index.segment.rsc +9 -9
  104. package/.next/server/app/nodes.segments/_tree.segment.rsc +5 -4
  105. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +4 -4
  106. package/.next/server/app/nodes.segments/nodes.segment.rsc +3 -3
  107. package/.next/server/app/page/next-font-manifest.json +2 -1
  108. package/.next/server/app/page.js +1 -1
  109. package/.next/server/app/page.js.nft.json +1 -1
  110. package/.next/server/app/page_client-reference-manifest.js +1 -1
  111. package/.next/server/app/server-logs/page/next-font-manifest.json +2 -1
  112. package/.next/server/app/server-logs/page.js +1 -1
  113. package/.next/server/app/server-logs/page.js.nft.json +1 -1
  114. package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
  115. package/.next/server/app/server-logs.html +4 -4
  116. package/.next/server/app/server-logs.rsc +20 -19
  117. package/.next/server/app/server-logs.segments/_full.segment.rsc +20 -19
  118. package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
  119. package/.next/server/app/server-logs.segments/_index.segment.rsc +9 -9
  120. package/.next/server/app/server-logs.segments/_tree.segment.rsc +5 -4
  121. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +4 -4
  122. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +3 -3
  123. package/.next/server/app/servers/page/next-font-manifest.json +2 -1
  124. package/.next/server/app/servers/page.js +1 -1
  125. package/.next/server/app/servers/page.js.nft.json +1 -1
  126. package/.next/server/app/servers/page_client-reference-manifest.js +1 -1
  127. package/.next/server/app/servers.html +4 -4
  128. package/.next/server/app/servers.rsc +20 -19
  129. package/.next/server/app/servers.segments/_full.segment.rsc +20 -19
  130. package/.next/server/app/servers.segments/_head.segment.rsc +4 -4
  131. package/.next/server/app/servers.segments/_index.segment.rsc +9 -9
  132. package/.next/server/app/servers.segments/_tree.segment.rsc +5 -4
  133. package/.next/server/app/servers.segments/servers/__PAGE__.segment.rsc +4 -4
  134. package/.next/server/app/servers.segments/servers.segment.rsc +3 -3
  135. package/.next/server/app/settings/networks/page/next-font-manifest.json +2 -1
  136. package/.next/server/app/settings/networks/page.js +1 -1
  137. package/.next/server/app/settings/networks/page.js.nft.json +1 -1
  138. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  139. package/.next/server/app/settings/networks.html +4 -4
  140. package/.next/server/app/settings/networks.rsc +20 -19
  141. package/.next/server/app/settings/networks.segments/_full.segment.rsc +20 -19
  142. package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
  143. package/.next/server/app/settings/networks.segments/_index.segment.rsc +9 -9
  144. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +5 -4
  145. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +4 -4
  146. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +3 -3
  147. package/.next/server/app/settings/networks.segments/settings.segment.rsc +3 -3
  148. package/.next/server/app/settings/page/next-font-manifest.json +2 -1
  149. package/.next/server/app/settings/page.js +1 -1
  150. package/.next/server/app/settings/page.js.nft.json +1 -1
  151. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  152. package/.next/server/app/settings/tokens/page/next-font-manifest.json +2 -1
  153. package/.next/server/app/settings/tokens/page.js +1 -1
  154. package/.next/server/app/settings/tokens/page.js.nft.json +1 -1
  155. package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
  156. package/.next/server/app/settings/tokens.html +4 -4
  157. package/.next/server/app/settings/tokens.rsc +20 -19
  158. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +20 -19
  159. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
  160. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +9 -9
  161. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +5 -4
  162. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +4 -4
  163. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +3 -3
  164. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +3 -3
  165. package/.next/server/app/settings.html +4 -4
  166. package/.next/server/app/settings.rsc +20 -19
  167. package/.next/server/app/settings.segments/_full.segment.rsc +20 -19
  168. package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  169. package/.next/server/app/settings.segments/_index.segment.rsc +9 -9
  170. package/.next/server/app/settings.segments/_tree.segment.rsc +5 -4
  171. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  172. package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  173. package/.next/server/app/tasks/[id]/page/next-font-manifest.json +2 -1
  174. package/.next/server/app/tasks/[id]/page.js +1 -1
  175. package/.next/server/app/tasks/[id]/page.js.nft.json +1 -1
  176. package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  177. package/.next/server/app/tasks/page/next-font-manifest.json +2 -1
  178. package/.next/server/app/tasks/page.js +1 -1
  179. package/.next/server/app/tasks/page.js.nft.json +1 -1
  180. package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  181. package/.next/server/app/tasks.html +4 -4
  182. package/.next/server/app/tasks.rsc +20 -19
  183. package/.next/server/app/tasks.segments/_full.segment.rsc +20 -19
  184. package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
  185. package/.next/server/app/tasks.segments/_index.segment.rsc +9 -9
  186. package/.next/server/app/tasks.segments/_tree.segment.rsc +5 -4
  187. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
  188. package/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
  189. package/.next/server/app-paths-manifest.json +0 -1
  190. package/.next/server/chunks/00jm_next_dist_0ju_ux9._.js +1 -1
  191. package/.next/server/chunks/00jm_next_dist_0ju_ux9._.js.map +1 -1
  192. package/.next/server/chunks/ssr/[root-of-the-server]__030vg4n._.js +1 -1
  193. package/.next/server/chunks/ssr/[root-of-the-server]__030vg4n._.js.map +1 -1
  194. package/.next/server/chunks/ssr/[root-of-the-server]__04gz75y._.js +3 -0
  195. package/.next/server/chunks/ssr/[root-of-the-server]__04gz75y._.js.map +1 -0
  196. package/.next/server/chunks/ssr/[root-of-the-server]__05kf31s._.js +3 -0
  197. package/.next/server/chunks/ssr/[root-of-the-server]__05kf31s._.js.map +1 -0
  198. package/.next/server/chunks/ssr/[root-of-the-server]__096ytyk._.js +3 -0
  199. package/.next/server/chunks/ssr/[root-of-the-server]__096ytyk._.js.map +1 -0
  200. package/.next/server/chunks/ssr/[root-of-the-server]__0fhoq8i._.js +1 -1
  201. package/.next/server/chunks/ssr/[root-of-the-server]__0fhoq8i._.js.map +1 -1
  202. package/.next/server/chunks/ssr/[root-of-the-server]__0u4-66w._.js +8 -0
  203. package/.next/server/chunks/ssr/[root-of-the-server]__0u4-66w._.js.map +1 -0
  204. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +3 -3
  205. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  206. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  207. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  208. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  209. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  210. package/.next/server/chunks/ssr/agent-network-dashboard_app_0_870i8._.js +3 -0
  211. package/.next/server/chunks/ssr/agent-network-dashboard_app_0_870i8._.js.map +1 -0
  212. package/.next/server/chunks/ssr/agent-network-dashboard_app_0_d45-d._.js +1 -1
  213. package/.next/server/chunks/ssr/agent-network-dashboard_app_0_d45-d._.js.map +1 -1
  214. package/.next/server/chunks/ssr/agent-network-dashboard_app_0fjlnh~._.js +3 -0
  215. package/.next/server/chunks/ssr/agent-network-dashboard_app_0fjlnh~._.js.map +1 -0
  216. package/.next/server/chunks/ssr/agent-network-dashboard_app_0gd.4pc._.js +9 -0
  217. package/.next/server/chunks/ssr/agent-network-dashboard_app_0gd.4pc._.js.map +1 -0
  218. package/.next/server/chunks/ssr/agent-network-dashboard_app_0wn4jc5._.js +3 -0
  219. package/.next/server/chunks/ssr/agent-network-dashboard_app_0wn4jc5._.js.map +1 -0
  220. package/.next/server/chunks/ssr/agent-network-dashboard_app_0xgney8._.js +1 -1
  221. package/.next/server/chunks/ssr/agent-network-dashboard_app_0xgney8._.js.map +1 -1
  222. package/.next/server/chunks/ssr/agent-network-dashboard_app_10hjgv4._.js +1 -1
  223. package/.next/server/chunks/ssr/agent-network-dashboard_app_10hjgv4._.js.map +1 -1
  224. package/.next/server/chunks/ssr/agent-network-dashboard_app_12l4oto._.js +1 -1
  225. package/.next/server/chunks/ssr/agent-network-dashboard_app_12l4oto._.js.map +1 -1
  226. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0r7kb.o._.js +9 -0
  227. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0r7kb.o._.js.map +1 -0
  228. package/.next/server/chunks/ssr/agent-network-dashboard_app_servers_page_tsx_0jib5qm._.js +1 -1
  229. package/.next/server/chunks/ssr/agent-network-dashboard_app_servers_page_tsx_0jib5qm._.js.map +1 -1
  230. package/.next/server/chunks/ssr/agent-network-dashboard_app_tasks_page_tsx_0mwxy4z._.js +1 -1
  231. package/.next/server/chunks/ssr/agent-network-dashboard_app_tasks_page_tsx_0mwxy4z._.js.map +1 -1
  232. package/.next/server/middleware-build-manifest.js +3 -3
  233. package/.next/server/next-font-manifest.js +1 -1
  234. package/.next/server/next-font-manifest.json +30 -15
  235. package/.next/server/pages/404.html +4 -4
  236. package/.next/server/pages/500.html +1 -1
  237. package/.next/server/server-reference-manifest.js +1 -1
  238. package/.next/server/server-reference-manifest.json +1 -1
  239. package/.next/static/chunks/0..h8s._z~uek.js +1 -0
  240. package/.next/static/chunks/0.mh8n0itrii5.js +1 -0
  241. package/.next/static/chunks/{0jp~cs9-zkmqa.js → 00b4y77vxfabl.js} +1 -1
  242. package/.next/static/chunks/049vx3qljs1tt.js +1 -0
  243. package/.next/static/chunks/066jf0nk75nic.css +2 -0
  244. package/.next/static/chunks/06vp7429lrzl7.js +1 -0
  245. package/.next/static/chunks/06xxn73qy0qiz.js +7 -0
  246. package/.next/static/chunks/0_bn~gcrgo.4n.js +1 -0
  247. package/.next/static/chunks/0_tvbie.c68h5.js +1 -0
  248. package/.next/static/chunks/0cp0cz3mxejl~.js +4 -0
  249. package/.next/static/chunks/0g4d-_fi-d9hg.js +1 -0
  250. package/.next/static/chunks/0scww97p6z5z..css +1 -0
  251. package/.next/static/chunks/0shtnff1p8hzw.js +1 -0
  252. package/.next/static/chunks/0wz0122ym_gr3.js +1 -0
  253. package/.next/static/chunks/0y5gol09tlu63.js +1 -0
  254. package/.next/static/chunks/13l-ngu707546.js +1 -0
  255. package/.next/static/chunks/14141xj5.1t3t.js +1 -0
  256. package/.next/static/chunks/149a4l50_3vw-.js +7 -0
  257. package/.next/static/chunks/152_p6jt7txp6.js +1 -0
  258. package/.next/static/chunks/15hos-r_t7doi.js +1 -0
  259. package/.next/static/media/4fa387ec64143e14-s.0wkzw~je483f-.woff2 +0 -0
  260. package/.next/static/media/53b9e256198e5412-s.0-wfv7uh4i7h9.woff2 +0 -0
  261. package/.next/static/media/5ce348bf30bf5439-s.0zgw-jeven.3w.woff2 +0 -0
  262. package/.next/static/media/6306c77e7c8268e4-s.0rhz0arwfsn~5.woff2 +0 -0
  263. package/.next/static/media/7178b3e590c64307-s.0nx0ww8fni_q3.woff2 +0 -0
  264. package/.next/static/media/797e433ab948586e-s.p.08e28id.o-okb.woff2 +0 -0
  265. package/.next/static/media/7d817b4c03b0c5f1-s.0l76wvqk9d84w.woff2 +0 -0
  266. package/.next/static/media/8a480f0b521d4e75-s.0jzbimsg8vl84.woff2 +0 -0
  267. package/.next/static/media/bbc41e54d2fcbd21-s.0k4k9394f2q-k.woff2 +0 -0
  268. package/.next/static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2 +0 -0
  269. package/.next/static/media/fef07dbb0973bf53-s.12tyk43_3sh9u.woff2 +0 -0
  270. package/.next/trace +2 -2
  271. package/.next/trace-build +1 -1
  272. package/.next/types/routes.d.ts +1 -2
  273. package/.next/types/validator.ts +0 -9
  274. package/app/admin/page.tsx +53 -38
  275. package/app/components/AgentCard.tsx +36 -20
  276. package/app/components/AppShell.tsx +7 -1
  277. package/app/components/ChatPopover.tsx +1 -1
  278. package/app/components/CollapsibleSearch.tsx +127 -0
  279. package/app/components/CommandCenter.tsx +14 -4
  280. package/app/components/CommandPalette.tsx +6 -6
  281. package/app/components/DispatchPanel.tsx +13 -10
  282. package/app/components/EmptyState.tsx +19 -4
  283. package/app/components/HealthBanner.tsx +28 -4
  284. package/app/components/HelpOverlay.tsx +4 -7
  285. package/app/components/LoadingSkeleton.tsx +31 -21
  286. package/app/components/MobileNav.tsx +28 -21
  287. package/app/components/Sidebar.tsx +30 -23
  288. package/app/components/StatsBar.tsx +69 -42
  289. package/app/components/TaskChatPanel.tsx +19 -5
  290. package/app/components/TaskDrawer.tsx +9 -7
  291. package/app/components/ThemeSwitcher.tsx +15 -79
  292. package/app/components/TopoGraph.tsx +31 -21
  293. package/app/components/UserBar.tsx +5 -5
  294. package/app/globals.css +1757 -1776
  295. package/app/layout.tsx +37 -4
  296. package/app/lib/hooks.ts +0 -5
  297. package/app/lib/status.ts +24 -17
  298. package/app/login/page.tsx +7 -7
  299. package/app/logs/page.tsx +12 -6
  300. package/app/manifest.ts +2 -2
  301. package/app/messages/page.tsx +67 -47
  302. package/app/node/page.tsx +27 -17
  303. package/app/nodes/page.tsx +62 -49
  304. package/app/page.tsx +60 -282
  305. package/app/server-logs/page.tsx +40 -14
  306. package/app/servers/page.tsx +33 -12
  307. package/app/settings/networks/page.tsx +17 -15
  308. package/app/settings/page.tsx +102 -96
  309. package/app/settings/tokens/page.tsx +5 -5
  310. package/app/tasks/[id]/page.tsx +10 -10
  311. package/app/tasks/page.tsx +58 -34
  312. package/bin/start.js +0 -0
  313. package/package.json +1 -1
  314. package/public/favicon.svg +1 -1
  315. package/public/manifest.webmanifest +24 -0
  316. package/public/robots.txt +7 -0
  317. package/.next/server/app/api/hub/license/route/app-paths-manifest.json +0 -3
  318. package/.next/server/app/api/hub/license/route/build-manifest.json +0 -9
  319. package/.next/server/app/api/hub/license/route/server-reference-manifest.json +0 -4
  320. package/.next/server/app/api/hub/license/route.js +0 -7
  321. package/.next/server/app/api/hub/license/route.js.map +0 -5
  322. package/.next/server/app/api/hub/license/route.js.nft.json +0 -1
  323. package/.next/server/app/api/hub/license/route_client-reference-manifest.js +0 -3
  324. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_license_route_actions_0a4.fuh.js +0 -3
  325. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_license_route_actions_0a4.fuh.js.map +0 -1
  326. package/.next/server/chunks/[root-of-the-server]__0rovr5-._.js +0 -3
  327. package/.next/server/chunks/[root-of-the-server]__0rovr5-._.js.map +0 -1
  328. package/.next/server/chunks/ssr/[root-of-the-server]__0lu1wok._.js +0 -8
  329. package/.next/server/chunks/ssr/[root-of-the-server]__0lu1wok._.js.map +0 -1
  330. package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js +0 -3
  331. package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js.map +0 -1
  332. package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js +0 -3
  333. package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js.map +0 -1
  334. package/.next/server/chunks/ssr/[root-of-the-server]__11fu-5m._.js +0 -3
  335. package/.next/server/chunks/ssr/[root-of-the-server]__11fu-5m._.js.map +0 -1
  336. package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.js +0 -3
  337. package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.js.map +0 -1
  338. package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js +0 -3
  339. package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js.map +0 -1
  340. package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js +0 -9
  341. package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js.map +0 -1
  342. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0s5uqlp._.js +0 -9
  343. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0s5uqlp._.js.map +0 -1
  344. package/.next/server/chunks/ssr/agent-network-dashboard_app_server-logs_page_tsx_0dg.l_8._.js +0 -3
  345. package/.next/server/chunks/ssr/agent-network-dashboard_app_server-logs_page_tsx_0dg.l_8._.js.map +0 -1
  346. package/.next/static/chunks/0-mpa_947ipeq.js +0 -1
  347. package/.next/static/chunks/02to42x11p557.js +0 -7
  348. package/.next/static/chunks/03~5pxwbxxw-b.js +0 -1
  349. package/.next/static/chunks/04~fkia6-79k3.js +0 -1
  350. package/.next/static/chunks/0561vp5-q5.zp.js +0 -1
  351. package/.next/static/chunks/05uk96gc~9mni.js +0 -1
  352. package/.next/static/chunks/085rejlait1fs.js +0 -1
  353. package/.next/static/chunks/0a.9~-nf0gpec.js +0 -1
  354. package/.next/static/chunks/0im751o4n61c7.js +0 -1
  355. package/.next/static/chunks/0inql3s9ldyx5.js +0 -1
  356. package/.next/static/chunks/0ku0fjqlm9mca.js +0 -1
  357. package/.next/static/chunks/0mcamnu4w_x1r.js +0 -4
  358. package/.next/static/chunks/0ss8u23bnbyry.js +0 -1
  359. package/.next/static/chunks/0~rv5y.y5my9s.css +0 -1
  360. package/.next/static/chunks/13yktdzuatx3d.js +0 -1
  361. package/.next/static/chunks/15-ltfhot3b4n.js +0 -7
  362. package/.next/static/chunks/16ls93seuyj8a.js +0 -1
  363. package/.next/static/chunks/17sxlwlx5fhrp.css +0 -1
  364. package/.next/static/chunks/181u38qblp8lz.js +0 -1
  365. package/.next/static/media/4fa387ec64143e14-s.0.qu-9752pffj.woff2 +0 -0
  366. package/.next/static/media/5ce348bf30bf5439-s.0ee55_hj9qcer.woff2 +0 -0
  367. package/.next/static/media/6306c77e7c8268e4-s.0mao5jbfbduzp.woff2 +0 -0
  368. package/.next/static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2 +0 -0
  369. package/.next/static/media/7d817b4c03b0c5f1-s.0uzt.a6d44yda.woff2 +0 -0
  370. package/.next/static/media/bbc41e54d2fcbd21-s.0mvwgmnhv29no.woff2 +0 -0
  371. package/app/api/hub/license/route.ts +0 -33
  372. package/app/components/BroadcastBar.tsx +0 -84
  373. package/app/components/InboxPanel.tsx +0 -36
  374. /package/.next/static/{vv4Gz5yVhOzydMI2UlT1l → TDZA1Sx9EZPbGBOvEQtJ7}/_buildManifest.js +0 -0
  375. /package/.next/static/{vv4Gz5yVhOzydMI2UlT1l → TDZA1Sx9EZPbGBOvEQtJ7}/_clientMiddlewareManifest.js +0 -0
  376. /package/.next/static/{vv4Gz5yVhOzydMI2UlT1l → TDZA1Sx9EZPbGBOvEQtJ7}/_ssgManifest.js +0 -0
@@ -172,7 +172,7 @@ export function EmptyState({ variant = 'generic', title, sub, cta, compact = fal
172
172
  * floating in the content column. */
173
173
  function EmptyCard({ children }: { children: React.ReactNode }) {
174
174
  return (
175
- <div className="max-w-2xl mx-auto rounded-xl border border-[#2a2a4a] bg-[#111128] shadow-lg shadow-black/20">
175
+ <div className="max-w-2xl mx-auto rounded-xl border border-[#26262b] bg-[#161618] shadow-lg shadow-black/20">
176
176
  {children}
177
177
  </div>
178
178
  );
@@ -246,6 +246,14 @@ export function NodesEmptyState({
246
246
  <div className="mt-4 inline-block">
247
247
  <QuickstartCommand cmd="npx --yes @sleep2agi/agent-network init" />
248
248
  </div>
249
+ {/* #214 F6: expectation management — without this line, users
250
+ copy the command and stare at an empty screen not knowing
251
+ what to wait for. The page polls every 5s, so the node
252
+ really does appear by itself. */}
253
+ <p className="text-gray-600 text-xs mt-3 max-w-md mx-auto">
254
+ Once the agent connects, it appears here automatically within a
255
+ few seconds — no refresh needed.
256
+ </p>
249
257
  <div className="mt-3">
250
258
  <a
251
259
  href="https://anet.sh"
@@ -274,13 +282,20 @@ function QuickstartCommand({ cmd }: { cmd: string }) {
274
282
  } catch {}
275
283
  };
276
284
  return (
277
- <div className="anet-empty-cmd flex items-center gap-2 bg-[#0a0a15] border border-[#2a2a4a] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm">
278
- <code className="text-cyan-300 font-mono select-all">{cmd}</code>
285
+ <div className="anet-empty-cmd flex items-start sm:items-center gap-2 bg-[#0e0e10] border border-[#26262b] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm">
286
+ {/* #209 R44: long quickstart commands (e.g. the `npm install -g …`
287
+ variant) overflowed the empty-state card horizontally on phones
288
+ because <code> defaults to white-space:pre. break-all on mobile
289
+ lets them wrap inside the box; sm: up restores normal wrapping
290
+ so desktop monospace lines stay clean. items-start on phones
291
+ aligns the Copy button to the top so a wrapped 2-line command
292
+ doesn't bottom-anchor the button. */}
293
+ <code className="text-cyan-300 font-mono select-all min-w-0 break-all sm:break-normal">{cmd}</code>
279
294
  <button
280
295
  type="button"
281
296
  onClick={onCopy}
282
297
  aria-label={copied ? 'Copied' : 'Copy command'}
283
- className="shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] transition-colors"
298
+ className="shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] transition-colors"
284
299
  >
285
300
  {copied ? (
286
301
  <span className="flex items-center gap-1 text-green-400">
@@ -3,6 +3,7 @@
3
3
  import useSWR from 'swr';
4
4
  import { useState } from 'react';
5
5
  import Link from 'next/link';
6
+ import { parseHubTime } from '../lib/time';
6
7
 
7
8
  interface StatsResponse {
8
9
  ok?: boolean;
@@ -44,6 +45,17 @@ export function HealthBanner() {
44
45
  shouldRetryOnError: false,
45
46
  });
46
47
 
48
+ // #217 S4 (less is more): the amber count used the all-time `failed`
49
+ // total from /api/hub/stats, so the banner said "N failed recently"
50
+ // forever — a permanent warning is no warning. Only fetch the actual
51
+ // failed tasks when stats reports any, and count just the last 24 h.
52
+ const allTimeFailed = stats?.tasks?.by_status?.find(s => s.status === 'failed')?.count || 0;
53
+ const { data: failedTasks } = useSWR<{ tasks?: { created_at?: string | null; completed_at?: string | null }[] }>(
54
+ allTimeFailed > 0 ? '/api/hub/tasks?status=failed&limit=100' : null,
55
+ fetcher,
56
+ { refreshInterval: 60000, dedupingInterval: 30000, shouldRetryOnError: false },
57
+ );
58
+
47
59
  const [dismissed, setDismissed] = useState<boolean>(() => {
48
60
  if (typeof window === 'undefined') return false;
49
61
  return sessionStorage.getItem('anet-hb-dismissed') === '1';
@@ -53,7 +65,11 @@ export function HealthBanner() {
53
65
 
54
66
  // Determine current state — priority: red > amber > empty > green
55
67
  const hubDown = (statsErr && healthErr) || (health && health.ok === false);
56
- const failed = stats?.tasks?.by_status?.find(s => s.status === 'failed')?.count || 0;
68
+ const dayAgo = Date.now() - 24 * 3600 * 1000;
69
+ const failed = (failedTasks?.tasks || []).filter(t => {
70
+ const at = parseHubTime(t.completed_at) ?? parseHubTime(t.created_at);
71
+ return at !== null && at >= dayAgo;
72
+ }).length;
57
73
  const fleetEmpty = stats?.nodes?.total === 0;
58
74
 
59
75
  let kind: 'red' | 'amber' | 'green';
@@ -66,7 +82,7 @@ export function HealthBanner() {
66
82
  cta = { label: 'Open Settings', href: '/settings' };
67
83
  } else if (failed > 0) {
68
84
  kind = 'amber';
69
- message = `${failed} task${failed > 1 ? 's' : ''} failed recently`;
85
+ message = `${failed} task${failed > 1 ? 's' : ''} failed in the last 24h`;
70
86
  cta = { label: 'Review failures', href: '/tasks?status=failed' };
71
87
  } else if (fleetEmpty) {
72
88
  // Round 70 — was "All systems go" before, which is misleading when
@@ -116,11 +132,19 @@ export function HealthBanner() {
116
132
  {cta.label} →
117
133
  </Link>
118
134
  )}
135
+ {/* R9 of #190 mobile polish: the inline `→` CTA and the `×`
136
+ dismiss were ~14px tap targets — below iOS 44px and worst
137
+ for the right-edge dismiss where a thumb-miss either does
138
+ nothing or fires the CTA next to it. The banner is
139
+ intentionally 28px tall (design comment above), so make the
140
+ tap area larger without making the banner taller: an
141
+ invisible `::before` pseudo-element extends the hit zone to
142
+ ~44×40px around each control. Visual size stays as is. */}
119
143
  {cta && (
120
144
  <Link
121
145
  href={cta.href}
122
146
  aria-label={cta.label}
123
- className="sm:hidden text-[11px] font-medium opacity-90 hover:opacity-100"
147
+ className="sm:hidden text-[13px] font-medium opacity-90 hover:opacity-100 relative leading-none px-1.5 before:absolute before:inset-y-[-10px] before:inset-x-[-8px] before:content-['']"
124
148
  >
125
149
 
126
150
  </Link>
@@ -131,7 +155,7 @@ export function HealthBanner() {
131
155
  try { sessionStorage.setItem('anet-hb-dismissed', '1'); } catch {}
132
156
  }}
133
157
  aria-label="Dismiss banner"
134
- className="opacity-50 hover:opacity-100 leading-none px-1"
158
+ className="opacity-60 hover:opacity-100 leading-none px-1.5 text-base relative rounded-md hover:bg-white/5 before:absolute before:inset-y-[-10px] before:inset-x-[-8px] before:content-['']"
135
159
  >
136
160
  ×
137
161
  </button>
@@ -29,10 +29,7 @@ const SHORTCUTS: { group: string; items: Shortcut[] }[] = [
29
29
  { keys: ['g', 'o'], label: 'Go to Overview' },
30
30
  { keys: ['g', 't'], label: 'Go to Tasks' },
31
31
  { keys: ['g', 'n'], label: 'Go to Nodes' },
32
- { keys: ['g', 'm'], label: 'Go to Messages' },
33
- { keys: ['g', 'w'], label: 'Go to Networks' },
34
32
  { keys: ['g', 'a'], label: 'Go to Admin' },
35
- { keys: ['g', 'l'], label: 'Go to Audit Log' },
36
33
  { keys: ['g', 's'], label: 'Go to Settings' },
37
34
  ],
38
35
  },
@@ -236,10 +233,10 @@ export function HelpOverlay() {
236
233
  >
237
234
  <div className="absolute inset-0 bg-black/50 backdrop-blur-sm" aria-hidden />
238
235
  <div
239
- className="relative w-full max-w-md rounded-xl border border-[#2a2a4a] bg-[#0d0d1a] shadow-2xl shadow-black/40 overflow-hidden"
236
+ className="relative w-full max-w-md rounded-xl border border-[#26262b] bg-[#111113] shadow-2xl shadow-black/40 overflow-hidden"
240
237
  onClick={e => e.stopPropagation()}
241
238
  >
242
- <div className="flex items-center justify-between border-b border-[#2a2a4a] px-4 py-2.5">
239
+ <div className="flex items-center justify-between border-b border-[#26262b] px-4 py-2.5">
243
240
  <div className="flex items-center gap-2 text-sm font-medium text-gray-200">
244
241
  <svg width="14" height="14" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth="1.5" className="text-gray-500">
245
242
  <path strokeLinecap="round" strokeLinejoin="round" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
@@ -264,7 +261,7 @@ export function HelpOverlay() {
264
261
  <li key={i} className="flex items-center gap-3 text-xs">
265
262
  <span className="flex items-center gap-1">
266
263
  {s.keys.map((k, ki) => (
267
- <kbd key={ki} className="text-[10px] font-mono border border-[#2a2a4a] rounded px-1.5 py-0.5 text-gray-400 bg-[#1a1a2a]/40">
264
+ <kbd key={ki} className="text-[10px] font-mono border border-[#26262b] rounded px-1.5 py-0.5 text-gray-400 bg-[#1c1c1f]/40">
268
265
  {k}
269
266
  </kbd>
270
267
  ))}
@@ -277,7 +274,7 @@ export function HelpOverlay() {
277
274
  ))}
278
275
  </div>
279
276
 
280
- <div className="border-t border-[#2a2a4a] px-4 py-1.5 text-[10px] text-gray-600 flex items-center justify-between">
277
+ <div className="border-t border-[#26262b] px-4 py-1.5 text-[10px] text-gray-600 flex items-center justify-between">
281
278
  <span>Press <kbd className="font-mono">?</kbd> to toggle</span>
282
279
  <span>or <kbd className="font-mono">esc</kbd> to close</span>
283
280
  </div>
@@ -13,11 +13,14 @@
13
13
  */
14
14
  export function LoadingSkeleton() {
15
15
  return (
16
- <div className="min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono">
17
- {/* KPI top strip — 4 cards matching StatsBar */}
18
- <div className="grid grid-cols-2 sm:grid-cols-4 gap-3 mb-8 anet-skeleton-pulse">
16
+ <div className="min-h-screen bg-[#0b0b0d] text-gray-100 p-4 sm:p-6">
17
+ {/* KPI top strip — 4 cards matching StatsBar.
18
+ #209 R38: mb-8 → mb-4 sm:mb-8 to track the live StatsBar
19
+ wrapper after R29 mobile-tighten. Without this the skeleton
20
+ and the loaded page jump by 16 px on mobile when data arrives. */}
21
+ <div className="grid grid-cols-2 sm:grid-cols-4 gap-3 mb-4 sm:mb-8 anet-skeleton-pulse">
19
22
  {[1, 2, 3, 4].map(i => (
20
- <div key={i} className="rounded-xl border border-[#2a2a4a] bg-[#111128] px-4 py-3">
23
+ <div key={i} className="rounded-xl border border-[#26262b] bg-[#161618] px-4 py-3">
21
24
  <Bar w="2.5rem" h="1.75rem" />
22
25
  <Bar w="3.5rem" h="0.75rem" className="mt-2" />
23
26
  <Bar w="5rem" h="0.625rem" className="mt-1" />
@@ -25,10 +28,12 @@ export function LoadingSkeleton() {
25
28
  ))}
26
29
  </div>
27
30
 
28
- {/* Dispatch + UserBar row */}
29
- <div className="flex items-center gap-3 mb-3 anet-skeleton-pulse">
31
+ {/* Dispatch + UserBar row.
32
+ #209 R38: mb-3 → mb-4 — live page uses mb-4 here, skeleton
33
+ was 4 px tighter and triggered a small jump on load. */}
34
+ <div className="flex items-center gap-3 mb-4 anet-skeleton-pulse">
30
35
  <Bar w="6rem" h="2.5rem" rounded="0.75rem" />
31
- <div className="flex-1 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-2.5 flex items-center gap-3">
36
+ <div className="flex-1 rounded-lg border border-[#26262b] bg-[#161618] px-4 py-2.5 flex items-center gap-3">
32
37
  <div className="w-8 h-8 rounded-full anet-skeleton-bar" />
33
38
  <div className="flex-1">
34
39
  <Bar w="6rem" h="0.875rem" />
@@ -37,15 +42,16 @@ export function LoadingSkeleton() {
37
42
  </div>
38
43
  </div>
39
44
 
40
- {/* Config bar */}
41
- <div className="mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 anet-skeleton-pulse">
45
+ {/* Config bar.
46
+ #209 R38: mb-6 mb-4 sm:mb-6 to track the R28 mobile tighten. */}
47
+ <div className="mb-4 sm:mb-6 rounded-lg border border-[#26262b] bg-[#161618] px-4 py-3 anet-skeleton-pulse">
42
48
  <Bar w="14rem" h="0.875rem" />
43
49
  </div>
44
50
 
45
51
  {/* Stat strip 3 cards */}
46
52
  <div className="grid grid-cols-3 gap-2 sm:gap-3 mb-3 anet-skeleton-pulse">
47
53
  {[1, 2, 3].map(i => (
48
- <div key={i} className="rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-3">
54
+ <div key={i} className="rounded-xl border border-[#26262b] bg-[#161618] px-3 py-3">
49
55
  <Bar w="2rem" h="1.25rem" />
50
56
  <Bar w="2.5rem" h="0.75rem" className="mt-1" />
51
57
  <Bar w="3.5rem" h="0.625rem" className="mt-px" />
@@ -53,26 +59,30 @@ export function LoadingSkeleton() {
53
59
  ))}
54
60
  </div>
55
61
 
56
- {/* Nav rail 3 cards */}
57
- <div className="grid grid-cols-3 gap-2 sm:gap-3 mb-6 anet-skeleton-pulse">
62
+ {/* Nav rail 3 cards.
63
+ #209 R38: mb-6 → mb-4 sm:mb-6 to track the R28 mobile tighten. */}
64
+ <div className="grid grid-cols-3 gap-2 sm:gap-3 mb-4 sm:mb-6 anet-skeleton-pulse">
58
65
  {[1, 2, 3].map(i => (
59
- <div key={i} className="rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-2.5 flex items-center justify-center gap-2">
66
+ <div key={i} className="rounded-xl border border-[#26262b] bg-[#161618] px-3 py-2.5 flex items-center justify-center gap-2">
60
67
  <div className="w-4 h-4 rounded anet-skeleton-bar" />
61
68
  <Bar w="4rem" h="0.75rem" />
62
69
  </div>
63
70
  ))}
64
71
  </div>
65
72
 
66
- {/* Broadcast bar */}
67
- <div className="mb-6 flex gap-2 anet-skeleton-pulse">
68
- <div className="flex-1 h-10 rounded-lg border border-[#2a2a4a] bg-[#111128]" />
69
- <div className="w-28 h-10 rounded-lg anet-skeleton-bar" />
70
- </div>
73
+ {/* #209 R38: Broadcast bar skeleton dropped — the live page
74
+ removed BroadcastBar in r70's "demote zero-data noise" pass
75
+ (it lives behind /admin now) so the skeleton was a phantom
76
+ row that did not exist in the loaded page. Caused a 56 px
77
+ downward shift on data arrival. */}
71
78
 
72
- {/* Agent card grid */}
73
- <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-3 sm:gap-4 anet-skeleton-pulse">
79
+ {/* Agent card grid.
80
+ #209 R38: breakpoints synced with the live AgentCard grid
81
+ (R48 set lg:grid-cols-3 — skeleton was still on lg:grid-cols-2
82
+ which made cards rearrange under hydration on 1024-1279 px). */}
83
+ <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 gap-3 sm:gap-4 anet-skeleton-pulse">
74
84
  {[1, 2, 3, 4].map(i => (
75
- <div key={i} className="rounded-xl border border-[#2a2a4a] bg-[#111128] p-4">
85
+ <div key={i} className="rounded-xl border border-[#26262b] bg-[#161618] p-4">
76
86
  <div className="flex items-center gap-2 mb-3">
77
87
  <div className="w-2 h-2 rounded-full anet-skeleton-bar" />
78
88
  <Bar w="6rem" h="0.875rem" />
@@ -3,23 +3,41 @@
3
3
  import Link from 'next/link';
4
4
  import { usePathname } from 'next/navigation';
5
5
 
6
+ // #209 R25 (Vincent msg 529 "command 留着干嘛" / 530 "Agents 放到最前面?"
7
+ // / 531 "设置放到最后面" / 533+534 "A / 加一个设置啊"):
8
+ // - drop the synthetic-Cmd+K Command tap (no Cmd/Ctrl key on phone — the
9
+ // palette functions it surfaced are reachable from Settings on touch:
10
+ // theme switch, sign-out, navigation to Messages/Logs are all there)
11
+ // - reorder so Agents is the first-thumb tap (Vincent's primary surface)
12
+ // - put Settings rightmost as the consolidated secondary-destinations hub
13
+ // (R16 absorbed Messages / Audit Log / Server Logs into the Resources
14
+ // card grid there, so /settings is the legitimate "everything else"
15
+ // leaf on mobile)
16
+ // Stays at 4 cells (R24's grid-cols-4) — same width per tab.
17
+ // Settings icon path is copied from app/components/Sidebar.tsx:22 so the
18
+ // icon shape matches the desktop sidebar entry.
6
19
  const MOBILE_NAV_ITEMS = [
20
+ { href: '/nodes', label: 'Agents', icon: 'M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01' },
7
21
  { href: '/', label: 'Overview', icon: 'M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6' },
8
22
  { href: '/tasks', label: 'Tasks', icon: 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4' },
9
- { href: '/nodes', label: 'Agents', icon: 'M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01' },
10
- { href: '/messages', label: 'Chats', icon: 'M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z' },
23
+ { href: '/settings', label: 'Settings', icon: 'M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z' },
11
24
  ];
12
25
 
13
26
  export function MobileNav() {
14
27
  const pathname = usePathname();
15
- const isActive = (href: string) => href === '/' ? pathname === '/' : pathname.startsWith(href);
16
- const openCommand = () => {
17
- window.dispatchEvent(new KeyboardEvent('keydown', { key: 'k', metaKey: true, ctrlKey: true }));
28
+ // Match Sidebar.tsx isActive /settings must be exact-match because
29
+ // Settings subpages (/settings/tokens, /settings/networks) have their
30
+ // own headers; startsWith would keep the bottom-nav highlighted there
31
+ // and steal back-affordance from the user.
32
+ const isActive = (href: string) => {
33
+ if (href === '/') return pathname === '/';
34
+ if (href === '/settings') return pathname === '/settings';
35
+ return pathname.startsWith(href);
18
36
  };
19
37
 
20
38
  return (
21
- <nav className="fixed inset-x-0 bottom-0 z-40 border-t border-[#2a2a4a] bg-[#0d0d1a]/95 px-1 pb-[calc(env(safe-area-inset-bottom)+0.35rem)] pt-1.5 backdrop-blur lg:hidden">
22
- <div className="mx-auto grid max-w-md grid-cols-5 gap-1">
39
+ <nav className="fixed inset-x-0 bottom-0 z-40 border-t border-[#26262b] bg-[#111113]/95 px-1 pb-[calc(env(safe-area-inset-bottom)+0.35rem)] pt-1.5 backdrop-blur lg:hidden">
40
+ <div className="mx-auto grid max-w-md grid-cols-4 gap-1">
23
41
  {MOBILE_NAV_ITEMS.map(item => {
24
42
  const active = isActive(item.href);
25
43
  return (
@@ -28,10 +46,10 @@ export function MobileNav() {
28
46
  href={item.href}
29
47
  prefetch={false}
30
48
  aria-current={active ? 'page' : undefined}
31
- className={`flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors ${
49
+ className={`relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors ${
32
50
  active
33
- ? 'bg-cyan-500/12 text-cyan-300'
34
- : 'text-gray-500 active:bg-[#1a1a3a] active:text-gray-200'
51
+ ? 'bg-cyan-500/12 text-cyan-300 before:absolute before:top-0 before:left-3 before:right-3 before:h-0.5 before:rounded-full before:bg-cyan-400'
52
+ : 'text-gray-500 active:bg-[#232327] active:text-gray-200'
35
53
  }`}
36
54
  >
37
55
  <svg className="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={1.6}>
@@ -41,17 +59,6 @@ export function MobileNav() {
41
59
  </Link>
42
60
  );
43
61
  })}
44
- <button
45
- type="button"
46
- onClick={openCommand}
47
- className="flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] text-gray-500 transition-colors active:bg-[#1a1a3a] active:text-gray-200"
48
- aria-label="Open command palette"
49
- >
50
- <svg className="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={1.6}>
51
- <path strokeLinecap="round" strokeLinejoin="round" d="M12 3v3m0 12v3m9-9h-3M6 12H3m15.364-6.364l-2.121 2.121M7.757 16.243l-2.121 2.121m12.728 0l-2.121-2.121M7.757 7.757L5.636 5.636M12 8.5A3.5 3.5 0 1112 15.5 3.5 3.5 0 0112 8.5z" />
52
- </svg>
53
- <span className="max-w-full truncate">Command</span>
54
- </button>
55
62
  </div>
56
63
  </nav>
57
64
  );
@@ -5,19 +5,19 @@ import { usePathname } from 'next/navigation';
5
5
  import { useState } from 'react';
6
6
  import useSWR from 'swr';
7
7
  import { useNetworkId } from '../lib/network-context';
8
- import { ThemeSwitcher } from './ThemeSwitcher';
9
8
 
10
9
  const networkFetcher = (url: string) => fetch(url).then(r => r.ok ? r.json() : { networks: [] });
11
10
 
11
+ // Cleanup (issue #4): sidebar collapsed to the 6 core destinations. The
12
+ // low-frequency / unverified entries (Messages, Networks, Audit Log,
13
+ // Server Logs) were removed from primary nav — those pages still exist
14
+ // and stay reachable via direct URL and the command palette (⌘K); they
15
+ // were just cluttering the main rail. Restore here if usage warrants.
12
16
  const NAV_ITEMS = [
13
17
  { href: '/', label: 'Overview', icon: 'M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6' },
14
18
  { href: '/tasks', label: 'Tasks', icon: 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4' },
15
19
  { href: '/nodes', label: 'Nodes', icon: 'M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01' },
16
20
  { href: '/servers', label: 'Servers', icon: 'M4 6.5A2.5 2.5 0 016.5 4h11A2.5 2.5 0 0120 6.5v1A2.5 2.5 0 0117.5 10h-11A2.5 2.5 0 014 7.5v-1zM4 16.5A2.5 2.5 0 016.5 14h11a2.5 2.5 0 012.5 2.5v1a2.5 2.5 0 01-2.5 2.5h-11A2.5 2.5 0 014 17.5v-1zM7 7h.01M7 17h.01' },
17
- { href: '/messages', label: 'Messages', icon: 'M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z' },
18
- { href: '/settings/networks', label: 'Networks', icon: 'M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9' },
19
- { href: '/logs', label: 'Audit Log', icon: 'M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z' },
20
- { href: '/server-logs', label: 'Server Logs', icon: 'M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z' },
21
21
  { href: '/admin', label: 'Admin', icon: 'M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z' },
22
22
  { href: '/settings', label: 'Settings', icon: 'M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z' },
23
23
  ];
@@ -74,10 +74,10 @@ export function Sidebar() {
74
74
  prefetch={false}
75
75
  onClick={() => setMobileOpen(false)}
76
76
  title={collapsed ? item.label : undefined}
77
- className={`relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] ${
77
+ className={`relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] ${
78
78
  isActive(item.href)
79
79
  ? 'bg-cyan-500/10 text-cyan-300 border border-cyan-500/20 anet-nav-active'
80
- : 'text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a]'
80
+ : 'text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f]'
81
81
  } ${collapsed ? 'justify-center px-0' : ''}`}
82
82
  >
83
83
  <svg className="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={1.5}>
@@ -91,10 +91,12 @@ export function Sidebar() {
91
91
 
92
92
  return (
93
93
  <>
94
- {/* Mobile hamburger */}
94
+ {/* Mobile hamburger — R13 of #190: was p-2.5 = ~40px tap target,
95
+ just below the iOS 44px guideline. Bump padding and add an
96
+ explicit min-w/min-h so it can never be miss-tapped. */}
95
97
  <button
96
98
  onClick={() => setMobileOpen(!mobileOpen)}
97
- className="fixed top-4 left-3 z-50 lg:hidden bg-[#111128] border border-[#2a2a4a] rounded-lg p-2.5 text-gray-400 hover:text-white active:bg-[#1a1a3a]"
99
+ className="fixed top-3 left-3 z-50 lg:hidden bg-[#161618] border border-[#26262b] rounded-lg p-3 min-h-[44px] min-w-[44px] inline-flex items-center justify-center text-gray-400 hover:text-white active:bg-[#232327]"
98
100
  aria-label="Toggle menu"
99
101
  >
100
102
  <svg className="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>
@@ -113,15 +115,15 @@ export function Sidebar() {
113
115
  />
114
116
  )}
115
117
 
116
- {/* Sidebar — `bg-[#0d0d1a]` resolves to var(--bg) in dark themes,
118
+ {/* Sidebar — `bg-[#111113]` resolves to var(--bg) in dark themes,
117
119
  but in light/mint we want a distinct surface, so we layer
118
- `lg:bg-white` / `lg:dark:bg-[#0d0d1a]` via the theme attribute.
120
+ `lg:bg-white` / `lg:dark:bg-[#111113]` via the theme attribute.
119
121
  The CSS shim in globals.css upgrades sidebar bg to bg-secondary
120
122
  in light themes so the sidebar reads as its own card.
121
123
  Round 47: explicit ease-out curve + slight shadow so the drawer
122
124
  edge "leaves a trail" as it slides in. */}
123
125
  <aside data-anet-sidebar="true" className={`
124
- fixed top-0 left-0 h-full z-40 bg-[#0d0d1a] border-r border-[#2a2a4a]
126
+ fixed top-0 left-0 h-full z-40 bg-[#111113] border-r border-[#26262b]
125
127
  transition-transform duration-200 ease-out
126
128
  ${collapsed ? 'w-16' : 'w-52'}
127
129
  ${mobileOpen ? 'translate-x-0 shadow-2xl shadow-black/40 lg:shadow-none' : '-translate-x-full'}
@@ -131,11 +133,11 @@ export function Sidebar() {
131
133
  with an inline live "online" pulse so every page surfaces
132
134
  fleet health without leaving for /nodes. */}
133
135
  <SidebarBrand collapsed={collapsed} />
134
- <div className={`border-b border-[#2a2a4a]`} />
136
+ <div className={`border-b border-[#26262b]`} />
135
137
 
136
138
  {/* Network list */}
137
139
  {!collapsed && networks.length > 0 && (
138
- <div className="px-2 py-3 border-b border-[#2a2a4a]">
140
+ <div className="px-2 py-3 border-b border-[#26262b]">
139
141
  <div className="px-3 text-[10px] text-gray-600 uppercase mb-2">Networks</div>
140
142
  <div className="space-y-0.5 max-h-32 overflow-y-auto">
141
143
  {networks.map((n: SidebarNetwork) => (
@@ -143,10 +145,10 @@ export function Sidebar() {
143
145
  key={n.network_id}
144
146
  onClick={() => { setNetworkId(n.network_id); setMobileOpen(false); }}
145
147
  title={n.network_id}
146
- className={`w-full flex items-center gap-2 px-3 py-1.5 rounded-md text-xs transition-colors text-left ${
148
+ className={`w-full flex items-center gap-2 px-3 py-2.5 lg:py-1.5 rounded-md text-xs transition-colors text-left ${
147
149
  networkId === n.network_id
148
150
  ? 'bg-cyan-500/10 text-cyan-300'
149
- : 'text-gray-500 hover:text-gray-300 hover:bg-[#1a1a2a]'
151
+ : 'text-gray-500 hover:text-gray-300 hover:bg-[#1c1c1f]'
150
152
  }`}
151
153
  >
152
154
  <span>{ROLE_ICON[n.role || 'member'] || '👤'}</span>
@@ -164,21 +166,27 @@ export function Sidebar() {
164
166
  </div>
165
167
  )}
166
168
 
167
- <div className="pb-20">
169
+ {/* #209 R26 (Vincent msg 540 screenshot — "设置页面没展示全"): the
170
+ absolute-bottom footer below stacks 3 rows (Quick search /
171
+ Sign out / collapse) ≈ 92-100px tall, but this spacer was
172
+ pb-20 (80px), so the last nav entry (Settings on /settings)
173
+ was being eaten by the footer overlay. Bump to pb-28 (112px)
174
+ to clear the actual footer height. */}
175
+ <div className="pb-28">
168
176
  {nav}
169
177
  </div>
170
178
 
171
179
  {/* Sign out + collapse — round 27: collapsed-state gets icon-only
172
180
  variants so users still have Sign out / Quick search access at
173
181
  56px width, plus title= tooltips. */}
174
- <div className="absolute bottom-0 left-0 right-0 border-t border-[#2a2a4a] bg-[#0d0d1a]">
182
+ <div className="absolute bottom-0 left-0 right-0 border-t border-[#26262b] bg-[#111113]">
175
183
  <button
176
184
  onClick={() => {
177
185
  window.dispatchEvent(new KeyboardEvent('keydown', { key: 'k', metaKey: true, ctrlKey: true }));
178
186
  }}
179
187
  title={collapsed ? 'Quick search (⌘K)' : undefined}
180
- className={`w-full flex items-center text-[11px] text-gray-600 hover:text-gray-400 hover:bg-[#1a1a2a] transition-colors ${
181
- collapsed ? 'justify-center px-0 py-2.5' : 'justify-between gap-2 px-5 py-2'
188
+ className={`w-full flex items-center text-[11px] text-gray-600 hover:text-gray-400 hover:bg-[#1c1c1f] transition-colors ${
189
+ collapsed ? 'justify-center px-0 py-2.5' : 'justify-between gap-2 px-5 py-3 lg:py-2'
182
190
  }`}
183
191
  aria-label="Open command palette"
184
192
  >
@@ -206,8 +214,7 @@ export function Sidebar() {
206
214
  </svg>
207
215
  {!collapsed && 'Sign out'}
208
216
  </button>
209
- <div className={`flex items-center gap-2 ${collapsed ? 'flex-col px-0 py-2' : 'px-3 py-2 justify-between'}`}>
210
- <ThemeSwitcher compact={collapsed} />
217
+ <div className={`flex items-center ${collapsed ? 'flex-col px-0 py-2' : 'px-3 py-2 justify-end'}`}>
211
218
  <button
212
219
  onClick={() => setCollapsed(!collapsed)}
213
220
  title={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}
@@ -255,7 +262,7 @@ function SidebarBrand({ collapsed }: { collapsed: boolean }) {
255
262
  return (
256
263
  <Link
257
264
  href="/"
258
- className="block px-4 py-4 flex items-center gap-3 hover:bg-[#11112a]/40 transition-colors rounded-r-xl"
265
+ className="block px-4 py-4 flex items-center gap-3 hover:bg-[#161618]/40 transition-colors rounded-r-xl"
259
266
  aria-label="Agent Network — home"
260
267
  >
261
268
  <BrandMark size={32} />