@tyroneross/navgator 0.2.0 → 0.2.2
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/.claude-plugin/marketplace.json +23 -0
- package/.claude-plugin/plugin.json +10 -7
- package/CLAUDE.md +72 -0
- package/README.md +49 -80
- package/dist/cli/index.js +1 -1
- package/hooks/hooks.json +5 -5
- package/package.json +5 -3
- package/scripts/install-plugin.sh +98 -0
- package/skills/check/SKILL.md +64 -0
- package/skills/connections/SKILL.md +54 -0
- package/skills/diagram/SKILL.md +64 -0
- package/skills/export/SKILL.md +49 -0
- package/skills/impact/SKILL.md +58 -0
- package/skills/install/SKILL.md +94 -0
- package/skills/scan/SKILL.md +75 -0
- package/skills/status/SKILL.md +37 -0
- package/skills/ui/SKILL.md +43 -0
- package/skills/update/SKILL.md +43 -0
- package/web/.next/standalone/web/.next/BUILD_ID +1 -0
- package/web/.next/standalone/web/.next/app-path-routes-manifest.json +13 -0
- package/web/.next/standalone/web/.next/build-manifest.json +20 -0
- package/web/.next/standalone/web/.next/package.json +1 -0
- package/web/.next/standalone/web/.next/prerender-manifest.json +88 -0
- package/web/.next/standalone/web/.next/required-server-files.json +317 -0
- package/web/.next/standalone/web/.next/routes-manifest.json +110 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page/build-manifest.json +17 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page.js +10 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.meta +15 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.rsc +12 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +12 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +7 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +4 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page/build-manifest.json +17 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page.js +13 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.meta +16 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.rsc +17 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +17 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +8 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +8 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route.js +7 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/index.html +1 -0
- package/web/.next/standalone/web/.next/server/app/index.meta +14 -0
- package/web/.next/standalone/web/.next/server/app/index.rsc +23 -0
- package/web/.next/standalone/web/.next/server/app/index.segments/__PAGE__.segment.rsc +9 -0
- package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +23 -0
- package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +8 -0
- package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +8 -0
- package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +5 -0
- package/web/.next/standalone/web/.next/server/app/page/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/page/build-manifest.json +17 -0
- package/web/.next/standalone/web/.next/server/app/page/next-font-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/web/.next/standalone/web/.next/server/app/page/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/page.js +15 -0
- package/web/.next/standalone/web/.next/server/app/page.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/page.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/page_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app-paths-manifest.json +13 -0
- package/web/.next/standalone/web/.next/server/chunks/2374f_next_dist_esm_build_templates_app-route_0bb4e66a.js +19 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__006b837d._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__1ab91221._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__2e09fec9._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__38d0390f._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__539ef30d._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__594bcf20._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__b888fadf._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__f3450c22._.js +21 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__fa2ec862._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[turbopack]_runtime.js +770 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_e6039567._.js +6 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_09351209._.js +6 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_222be7ae._.js +6 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_2346e1b3._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_cec86455._.js +4 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_client_components_9c5d1a14._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_client_components_builtin_forbidden_8eae0c85.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_client_components_builtin_global-error_81159d60.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_client_components_builtin_unauthorized_7d34a31c.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_e03afa0e._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_esm_build_templates_app-page_2c8d71b9.js +4 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_server_route-modules_app-page_vendored_ssr_react-dom_8910f04c.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__1a0663e6._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__4306eafc._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__44903626._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__60278e3f._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__61942f24._.js +4 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__8c45c3c9._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__9a2f110d._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__ed07bd88._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__f2db61af._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[turbopack]_runtime.js +770 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_0103e631._.js +4 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_171de0df._.js +14 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web__next-internal_server_app__global-error_page_actions_2a1e94d4.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web__next-internal_server_app__not-found_page_actions_9eaa9845.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web__next-internal_server_app_page_actions_ec26bf28.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_components_route_actions_c88bf2a6.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_connections_route_actions_b1d5e95a.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_graph_route_actions_e2dd052c.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_projects_route_actions_3f671cbb.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_prompts_route_actions_85b56166.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_scan_route_actions_861cde8d.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_settings_route_actions_e19026ae.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_status_route_actions_8b8c6c89.js +3 -0
- package/web/.next/standalone/web/.next/server/functions-config-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/middleware-build-manifest.js +21 -0
- package/web/.next/standalone/web/.next/server/middleware-manifest.json +6 -0
- package/web/.next/standalone/web/.next/server/next-font-manifest.js +1 -0
- package/web/.next/standalone/web/.next/server/next-font-manifest.json +15 -0
- package/web/.next/standalone/web/.next/server/pages/404.html +1 -0
- package/web/.next/standalone/web/.next/server/pages/500.html +2 -0
- package/web/.next/standalone/web/.next/server/pages-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -0
- package/web/.next/standalone/web/.next/server/server-reference-manifest.json +5 -0
- package/web/.next/standalone/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_buildManifest.js +11 -0
- package/web/.next/standalone/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_clientMiddlewareManifest.json +1 -0
- package/web/.next/standalone/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_ssgManifest.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/062ae79751df2759.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/159889e17b2cf1f8.js +2 -0
- package/web/.next/standalone/web/.next/static/chunks/458d6f37339fc069.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/6d3d39425a878d7f.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/8a80e7184ad3a13f.css +2 -0
- package/web/.next/standalone/web/.next/static/chunks/a6dad97d9634a72d.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/c056475f5f4424b6.css +1 -0
- package/web/.next/standalone/web/.next/static/chunks/c57fee8cce8d7cb9.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/cb3513192b63e480.js +12 -0
- package/web/.next/standalone/web/.next/static/chunks/dd22b5f2beb2cc31.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/e0affeef0ddb9a97.js +4 -0
- package/web/.next/standalone/web/.next/static/chunks/f74a6859e1c4d5e3.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/turbopack-c0c89f9e6f0a38c4.js +3 -0
- package/web/.next/standalone/web/.next/static/media/4fa387ec64143e14-s.c1fdd6c2.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/7178b3e590c64307-s.b97b3418.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/797e433ab948586e-s.p.dbea232f.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/8a480f0b521d4e75-s.8e0177b5.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/bbc41e54d2fcbd21-s.799d8ef8.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
- package/web/.next/standalone/web/app/api/components/route.ts +252 -0
- package/web/.next/standalone/web/app/api/connections/route.ts +319 -0
- package/web/.next/standalone/web/app/api/graph/route.ts +235 -0
- package/web/.next/standalone/web/app/api/projects/route.ts +221 -0
- package/web/.next/standalone/web/app/api/prompts/route.ts +328 -0
- package/web/.next/standalone/web/app/api/scan/route.ts +108 -0
- package/web/.next/standalone/web/app/api/settings/route.ts +198 -0
- package/web/.next/standalone/web/app/api/status/route.ts +169 -0
- package/web/.next/standalone/web/app/globals.css +99 -0
- package/web/.next/standalone/web/app/layout.tsx +49 -0
- package/web/.next/standalone/web/app/page.tsx +94 -0
- package/web/.next/standalone/web/components/components-panel.tsx +240 -0
- package/web/.next/standalone/web/components/connections-panel.tsx +220 -0
- package/web/.next/standalone/web/components/diagram-view.tsx +735 -0
- package/web/.next/standalone/web/components/header.tsx +225 -0
- package/web/.next/standalone/web/components/impact-analysis.tsx +358 -0
- package/web/.next/standalone/web/components/llm-tracking-panel.tsx +1483 -0
- package/web/.next/standalone/web/components/settings-panel.tsx +671 -0
- package/web/.next/standalone/web/components/sidebar.tsx +74 -0
- package/web/.next/standalone/web/components/status-overview.tsx +326 -0
- package/web/.next/standalone/web/components/theme-provider.tsx +11 -0
- package/web/.next/standalone/web/components/ui/accordion.tsx +66 -0
- package/web/.next/standalone/web/components/ui/alert-dialog.tsx +157 -0
- package/web/.next/standalone/web/components/ui/alert.tsx +66 -0
- package/web/.next/standalone/web/components/ui/aspect-ratio.tsx +11 -0
- package/web/.next/standalone/web/components/ui/avatar.tsx +53 -0
- package/web/.next/standalone/web/components/ui/badge.tsx +46 -0
- package/web/.next/standalone/web/components/ui/breadcrumb.tsx +109 -0
- package/web/.next/standalone/web/components/ui/button-group.tsx +83 -0
- package/web/.next/standalone/web/components/ui/button.tsx +60 -0
- package/web/.next/standalone/web/components/ui/calendar.tsx +213 -0
- package/web/.next/standalone/web/components/ui/card.tsx +92 -0
- package/web/.next/standalone/web/components/ui/carousel.tsx +241 -0
- package/web/.next/standalone/web/components/ui/chart.tsx +353 -0
- package/web/.next/standalone/web/components/ui/checkbox.tsx +32 -0
- package/web/.next/standalone/web/components/ui/collapsible.tsx +33 -0
- package/web/.next/standalone/web/components/ui/command.tsx +184 -0
- package/web/.next/standalone/web/components/ui/context-menu.tsx +252 -0
- package/web/.next/standalone/web/components/ui/dialog.tsx +143 -0
- package/web/.next/standalone/web/components/ui/drawer.tsx +135 -0
- package/web/.next/standalone/web/components/ui/dropdown-menu.tsx +257 -0
- package/web/.next/standalone/web/components/ui/empty.tsx +104 -0
- package/web/.next/standalone/web/components/ui/field.tsx +244 -0
- package/web/.next/standalone/web/components/ui/form.tsx +167 -0
- package/web/.next/standalone/web/components/ui/hover-card.tsx +44 -0
- package/web/.next/standalone/web/components/ui/input-group.tsx +169 -0
- package/web/.next/standalone/web/components/ui/input-otp.tsx +77 -0
- package/web/.next/standalone/web/components/ui/input.tsx +21 -0
- package/web/.next/standalone/web/components/ui/item.tsx +193 -0
- package/web/.next/standalone/web/components/ui/kbd.tsx +28 -0
- package/web/.next/standalone/web/components/ui/label.tsx +24 -0
- package/web/.next/standalone/web/components/ui/menubar.tsx +276 -0
- package/web/.next/standalone/web/components/ui/navigation-menu.tsx +166 -0
- package/web/.next/standalone/web/components/ui/pagination.tsx +127 -0
- package/web/.next/standalone/web/components/ui/popover.tsx +48 -0
- package/web/.next/standalone/web/components/ui/progress.tsx +31 -0
- package/web/.next/standalone/web/components/ui/radio-group.tsx +45 -0
- package/web/.next/standalone/web/components/ui/resizable.tsx +56 -0
- package/web/.next/standalone/web/components/ui/scroll-area.tsx +58 -0
- package/web/.next/standalone/web/components/ui/select.tsx +185 -0
- package/web/.next/standalone/web/components/ui/separator.tsx +28 -0
- package/web/.next/standalone/web/components/ui/sheet.tsx +139 -0
- package/web/.next/standalone/web/components/ui/sidebar.tsx +726 -0
- package/web/.next/standalone/web/components/ui/skeleton.tsx +13 -0
- package/web/.next/standalone/web/components/ui/slider.tsx +63 -0
- package/web/.next/standalone/web/components/ui/sonner.tsx +25 -0
- package/web/.next/standalone/web/components/ui/spinner.tsx +16 -0
- package/web/.next/standalone/web/components/ui/switch.tsx +31 -0
- package/web/.next/standalone/web/components/ui/table.tsx +116 -0
- package/web/.next/standalone/web/components/ui/tabs.tsx +66 -0
- package/web/.next/standalone/web/components/ui/textarea.tsx +18 -0
- package/web/.next/standalone/web/components/ui/toast.tsx +129 -0
- package/web/.next/standalone/web/components/ui/toaster.tsx +35 -0
- package/web/.next/standalone/web/components/ui/toggle-group.tsx +73 -0
- package/web/.next/standalone/web/components/ui/toggle.tsx +47 -0
- package/web/.next/standalone/web/components/ui/tooltip.tsx +61 -0
- package/web/.next/standalone/web/components/ui/use-mobile.tsx +19 -0
- package/web/.next/standalone/web/components/ui/use-toast.ts +191 -0
- package/web/.next/standalone/web/components.json +21 -0
- package/web/.next/standalone/web/hooks/use-mobile.ts +19 -0
- package/web/.next/standalone/web/hooks/use-toast.ts +191 -0
- package/web/.next/standalone/web/lib/hooks/index.ts +8 -0
- package/web/.next/standalone/web/lib/hooks/use-components.ts +83 -0
- package/web/.next/standalone/web/lib/hooks/use-connections.ts +83 -0
- package/web/.next/standalone/web/lib/hooks/use-projects.ts +116 -0
- package/web/.next/standalone/web/lib/hooks/use-prompts.ts +122 -0
- package/web/.next/standalone/web/lib/hooks/use-settings.ts +135 -0
- package/web/.next/standalone/web/lib/hooks/use-status.ts +80 -0
- package/web/.next/standalone/web/lib/project-context.tsx +46 -0
- package/web/.next/standalone/web/lib/transform.ts +625 -0
- package/web/.next/standalone/web/lib/types.ts +198 -0
- package/web/.next/standalone/web/lib/utils.ts +6 -0
- package/web/.next/standalone/web/next.config.mjs +12 -0
- package/web/.next/standalone/web/package-lock.json +3987 -0
- package/web/.next/standalone/web/package.json +73 -0
- package/web/.next/standalone/web/pnpm-lock.yaml +5 -0
- package/web/.next/standalone/web/postcss.config.mjs +8 -0
- package/web/.next/standalone/web/public/apple-icon.png +0 -0
- package/web/.next/standalone/web/public/icon-dark-32x32.png +0 -0
- package/web/.next/standalone/web/public/icon-light-32x32.png +0 -0
- package/web/.next/standalone/web/public/icon.svg +26 -0
- package/web/.next/standalone/web/public/navgator-logo.png +0 -0
- package/web/.next/standalone/web/public/placeholder-logo.png +0 -0
- package/web/.next/standalone/web/public/placeholder-logo.svg +1 -0
- package/web/.next/standalone/web/public/placeholder-user.jpg +0 -0
- package/web/.next/standalone/web/public/placeholder.jpg +0 -0
- package/web/.next/standalone/web/public/placeholder.svg +1 -0
- package/web/.next/standalone/web/public/public/apple-icon.png +0 -0
- package/web/.next/standalone/web/public/public/icon-dark-32x32.png +0 -0
- package/web/.next/standalone/web/public/public/icon-light-32x32.png +0 -0
- package/web/.next/standalone/web/public/public/icon.svg +26 -0
- package/web/.next/standalone/web/public/public/navgator-logo.png +0 -0
- package/web/.next/standalone/web/public/public/placeholder-logo.png +0 -0
- package/web/.next/standalone/web/public/public/placeholder-logo.svg +1 -0
- package/web/.next/standalone/web/public/public/placeholder-user.jpg +0 -0
- package/web/.next/standalone/web/public/public/placeholder.jpg +0 -0
- package/web/.next/standalone/web/public/public/placeholder.svg +1 -0
- package/web/.next/standalone/web/server.js +38 -0
- package/web/.next/standalone/web/styles/globals.css +125 -0
- package/web/.next/standalone/web/tsconfig.json +41 -0
- package/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_buildManifest.js +11 -0
- package/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_clientMiddlewareManifest.json +1 -0
- package/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_ssgManifest.js +1 -0
- package/web/.next/static/chunks/062ae79751df2759.js +1 -0
- package/web/.next/static/chunks/159889e17b2cf1f8.js +2 -0
- package/web/.next/static/chunks/458d6f37339fc069.js +1 -0
- package/web/.next/static/chunks/6d3d39425a878d7f.js +1 -0
- package/web/.next/static/chunks/8a80e7184ad3a13f.css +2 -0
- package/web/.next/static/chunks/a6dad97d9634a72d.js +1 -0
- package/web/.next/static/chunks/c056475f5f4424b6.css +1 -0
- package/web/.next/static/chunks/c57fee8cce8d7cb9.js +1 -0
- package/web/.next/static/chunks/cb3513192b63e480.js +12 -0
- package/web/.next/static/chunks/dd22b5f2beb2cc31.js +1 -0
- package/web/.next/static/chunks/e0affeef0ddb9a97.js +4 -0
- package/web/.next/static/chunks/f74a6859e1c4d5e3.js +1 -0
- package/web/.next/static/chunks/turbopack-c0c89f9e6f0a38c4.js +3 -0
- package/web/.next/static/media/4fa387ec64143e14-s.c1fdd6c2.woff2 +0 -0
- package/web/.next/static/media/7178b3e590c64307-s.b97b3418.woff2 +0 -0
- package/web/.next/static/media/797e433ab948586e-s.p.dbea232f.woff2 +0 -0
- package/web/.next/static/media/8a480f0b521d4e75-s.8e0177b5.woff2 +0 -0
- package/web/.next/static/media/bbc41e54d2fcbd21-s.799d8ef8.woff2 +0 -0
- package/web/.next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
- package/commands/nav-check.md +0 -64
- package/commands/nav-connections.md +0 -58
- package/commands/nav-diagram.md +0 -106
- package/commands/nav-export.md +0 -71
- package/commands/nav-impact.md +0 -58
- package/commands/nav-scan.md +0 -46
- package/commands/nav-status.md +0 -44
- package/skills/architecture-awareness/SKILL.md +0 -141
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { useState } from "react"
|
|
4
|
+
import {
|
|
5
|
+
Package,
|
|
6
|
+
Database,
|
|
7
|
+
Cloud,
|
|
8
|
+
Server,
|
|
9
|
+
Box,
|
|
10
|
+
Search,
|
|
11
|
+
Filter,
|
|
12
|
+
ChevronRight,
|
|
13
|
+
RefreshCw,
|
|
14
|
+
Loader2,
|
|
15
|
+
Info,
|
|
16
|
+
} from "lucide-react"
|
|
17
|
+
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
|
|
18
|
+
import { Input } from "@/components/ui/input"
|
|
19
|
+
import { Button } from "@/components/ui/button"
|
|
20
|
+
import { Badge } from "@/components/ui/badge"
|
|
21
|
+
import {
|
|
22
|
+
DropdownMenu,
|
|
23
|
+
DropdownMenuContent,
|
|
24
|
+
DropdownMenuCheckboxItem,
|
|
25
|
+
DropdownMenuTrigger,
|
|
26
|
+
} from "@/components/ui/dropdown-menu"
|
|
27
|
+
import { cn } from "@/lib/utils"
|
|
28
|
+
import { useComponents } from "@/lib/hooks"
|
|
29
|
+
|
|
30
|
+
interface ComponentsPanelProps {
|
|
31
|
+
onSelectComponent: (name: string) => void
|
|
32
|
+
initialTypeFilter?: string | null
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const typeIcons: Record<string, typeof Package> = {
|
|
36
|
+
npm: Package,
|
|
37
|
+
service: Cloud,
|
|
38
|
+
database: Database,
|
|
39
|
+
infra: Server,
|
|
40
|
+
queue: Box,
|
|
41
|
+
framework: Box,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const typeColors: Record<string, string> = {
|
|
45
|
+
npm: "text-chart-1",
|
|
46
|
+
service: "text-chart-2",
|
|
47
|
+
database: "text-chart-3",
|
|
48
|
+
infra: "text-chart-4",
|
|
49
|
+
queue: "text-chart-5",
|
|
50
|
+
framework: "text-primary",
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ComponentsPanel({ onSelectComponent, initialTypeFilter }: ComponentsPanelProps) {
|
|
54
|
+
const { components, isLoading, source, refresh } = useComponents({ autoFetch: true })
|
|
55
|
+
const [search, setSearch] = useState("")
|
|
56
|
+
const [selectedTypes, setSelectedTypes] = useState<string[]>(initialTypeFilter ? [initialTypeFilter] : [])
|
|
57
|
+
const [selectedLayers, setSelectedLayers] = useState<string[]>([])
|
|
58
|
+
|
|
59
|
+
const types = [...new Set(components.map((c) => c.type))]
|
|
60
|
+
const layers = [...new Set(components.map((c) => c.layer))]
|
|
61
|
+
|
|
62
|
+
const filtered = components.filter((c) => {
|
|
63
|
+
const matchesSearch = c.name.toLowerCase().includes(search.toLowerCase())
|
|
64
|
+
const matchesType = selectedTypes.length === 0 || selectedTypes.includes(c.type)
|
|
65
|
+
const matchesLayer = selectedLayers.length === 0 || selectedLayers.includes(c.layer)
|
|
66
|
+
return matchesSearch && matchesType && matchesLayer
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
const grouped = filtered.reduce(
|
|
70
|
+
(acc, c) => {
|
|
71
|
+
if (!acc[c.type]) acc[c.type] = []
|
|
72
|
+
acc[c.type].push(c)
|
|
73
|
+
return acc
|
|
74
|
+
},
|
|
75
|
+
{} as Record<string, typeof components>
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
return (
|
|
79
|
+
<div className="space-y-6">
|
|
80
|
+
<div className="flex items-center justify-between">
|
|
81
|
+
<div>
|
|
82
|
+
<h1 className="text-2xl font-semibold text-foreground">Components</h1>
|
|
83
|
+
<p className="text-sm text-muted-foreground">
|
|
84
|
+
All detected packages, services, and infrastructure
|
|
85
|
+
{source === "mock" && (
|
|
86
|
+
<span className="ml-2 text-info">(Demo data)</span>
|
|
87
|
+
)}
|
|
88
|
+
</p>
|
|
89
|
+
</div>
|
|
90
|
+
<Button
|
|
91
|
+
variant="outline"
|
|
92
|
+
size="sm"
|
|
93
|
+
onClick={() => refresh()}
|
|
94
|
+
disabled={isLoading}
|
|
95
|
+
>
|
|
96
|
+
{isLoading ? (
|
|
97
|
+
<Loader2 className="h-4 w-4 animate-spin" />
|
|
98
|
+
) : (
|
|
99
|
+
<RefreshCw className="h-4 w-4" />
|
|
100
|
+
)}
|
|
101
|
+
<span className="ml-2">Refresh</span>
|
|
102
|
+
</Button>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
{source === "mock" && (
|
|
106
|
+
<div className="flex items-center gap-2 rounded-lg border border-info/30 bg-info/10 p-3">
|
|
107
|
+
<Info className="h-4 w-4 text-info" />
|
|
108
|
+
<p className="text-sm text-info">
|
|
109
|
+
Run <code className="rounded bg-info/20 px-1">navgator scan</code> to scan your project for real data.
|
|
110
|
+
</p>
|
|
111
|
+
</div>
|
|
112
|
+
)}
|
|
113
|
+
|
|
114
|
+
{/* Filters */}
|
|
115
|
+
<div className="flex flex-col gap-3 sm:flex-row sm:items-center">
|
|
116
|
+
<div className="relative flex-1">
|
|
117
|
+
<Search className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
|
|
118
|
+
<Input
|
|
119
|
+
placeholder="Filter components..."
|
|
120
|
+
value={search}
|
|
121
|
+
onChange={(e) => setSearch(e.target.value)}
|
|
122
|
+
className="bg-card pl-9"
|
|
123
|
+
/>
|
|
124
|
+
</div>
|
|
125
|
+
<div className="flex gap-2">
|
|
126
|
+
<DropdownMenu>
|
|
127
|
+
<DropdownMenuTrigger asChild>
|
|
128
|
+
<Button variant="outline" size="sm" className="gap-2 bg-transparent">
|
|
129
|
+
<Filter className="h-4 w-4" />
|
|
130
|
+
Type
|
|
131
|
+
{selectedTypes.length > 0 && (
|
|
132
|
+
<Badge variant="secondary" className="ml-1 h-5 px-1.5">
|
|
133
|
+
{selectedTypes.length}
|
|
134
|
+
</Badge>
|
|
135
|
+
)}
|
|
136
|
+
</Button>
|
|
137
|
+
</DropdownMenuTrigger>
|
|
138
|
+
<DropdownMenuContent align="end">
|
|
139
|
+
{types.map((type) => (
|
|
140
|
+
<DropdownMenuCheckboxItem
|
|
141
|
+
key={type}
|
|
142
|
+
checked={selectedTypes.includes(type)}
|
|
143
|
+
onCheckedChange={(checked) => {
|
|
144
|
+
if (checked) {
|
|
145
|
+
setSelectedTypes([...selectedTypes, type])
|
|
146
|
+
} else {
|
|
147
|
+
setSelectedTypes(selectedTypes.filter((t) => t !== type))
|
|
148
|
+
}
|
|
149
|
+
}}
|
|
150
|
+
>
|
|
151
|
+
<span className="capitalize">{type}</span>
|
|
152
|
+
</DropdownMenuCheckboxItem>
|
|
153
|
+
))}
|
|
154
|
+
</DropdownMenuContent>
|
|
155
|
+
</DropdownMenu>
|
|
156
|
+
|
|
157
|
+
<DropdownMenu>
|
|
158
|
+
<DropdownMenuTrigger asChild>
|
|
159
|
+
<Button variant="outline" size="sm" className="gap-2 bg-transparent">
|
|
160
|
+
<Filter className="h-4 w-4" />
|
|
161
|
+
Layer
|
|
162
|
+
{selectedLayers.length > 0 && (
|
|
163
|
+
<Badge variant="secondary" className="ml-1 h-5 px-1.5">
|
|
164
|
+
{selectedLayers.length}
|
|
165
|
+
</Badge>
|
|
166
|
+
)}
|
|
167
|
+
</Button>
|
|
168
|
+
</DropdownMenuTrigger>
|
|
169
|
+
<DropdownMenuContent align="end">
|
|
170
|
+
{layers.map((layer) => (
|
|
171
|
+
<DropdownMenuCheckboxItem
|
|
172
|
+
key={layer}
|
|
173
|
+
checked={selectedLayers.includes(layer)}
|
|
174
|
+
onCheckedChange={(checked) => {
|
|
175
|
+
if (checked) {
|
|
176
|
+
setSelectedLayers([...selectedLayers, layer])
|
|
177
|
+
} else {
|
|
178
|
+
setSelectedLayers(selectedLayers.filter((l) => l !== layer))
|
|
179
|
+
}
|
|
180
|
+
}}
|
|
181
|
+
>
|
|
182
|
+
<span className="capitalize">{layer}</span>
|
|
183
|
+
</DropdownMenuCheckboxItem>
|
|
184
|
+
))}
|
|
185
|
+
</DropdownMenuContent>
|
|
186
|
+
</DropdownMenu>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
|
|
190
|
+
{/* Components List */}
|
|
191
|
+
<div className="grid gap-4 lg:grid-cols-2">
|
|
192
|
+
{Object.entries(grouped).map(([type, components]) => {
|
|
193
|
+
const Icon = typeIcons[type] || Box
|
|
194
|
+
const color = typeColors[type] || "text-muted-foreground"
|
|
195
|
+
|
|
196
|
+
return (
|
|
197
|
+
<Card key={type} className="bg-card">
|
|
198
|
+
<CardHeader className="pb-2">
|
|
199
|
+
<CardTitle className="flex items-center gap-2 text-base font-medium">
|
|
200
|
+
<Icon className={cn("h-4 w-4", color)} />
|
|
201
|
+
<span className="capitalize">{type}</span>
|
|
202
|
+
<Badge variant="secondary" className="ml-auto">
|
|
203
|
+
{components.length}
|
|
204
|
+
</Badge>
|
|
205
|
+
</CardTitle>
|
|
206
|
+
</CardHeader>
|
|
207
|
+
<CardContent>
|
|
208
|
+
<div className="divide-y divide-border">
|
|
209
|
+
{components.map((component) => (
|
|
210
|
+
<button
|
|
211
|
+
key={`${component.type}-${component.name}`}
|
|
212
|
+
onClick={() => onSelectComponent(component.name)}
|
|
213
|
+
className="flex w-full items-center justify-between py-2.5 text-left transition-colors hover:bg-secondary/50 -mx-2 px-2 rounded"
|
|
214
|
+
>
|
|
215
|
+
<div>
|
|
216
|
+
<p className="text-sm font-medium text-card-foreground">
|
|
217
|
+
{component.name}
|
|
218
|
+
</p>
|
|
219
|
+
<p className="text-xs text-muted-foreground">
|
|
220
|
+
{component.version ? `v${component.version}` : component.purpose} ·{" "}
|
|
221
|
+
{component.layer}
|
|
222
|
+
</p>
|
|
223
|
+
</div>
|
|
224
|
+
<div className="flex items-center gap-2">
|
|
225
|
+
<span className="text-xs text-muted-foreground">
|
|
226
|
+
{component.connections} conn
|
|
227
|
+
</span>
|
|
228
|
+
<ChevronRight className="h-4 w-4 text-muted-foreground" />
|
|
229
|
+
</div>
|
|
230
|
+
</button>
|
|
231
|
+
))}
|
|
232
|
+
</div>
|
|
233
|
+
</CardContent>
|
|
234
|
+
</Card>
|
|
235
|
+
)
|
|
236
|
+
})}
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
)
|
|
240
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { useState } from "react"
|
|
4
|
+
import {
|
|
5
|
+
ArrowRight,
|
|
6
|
+
ArrowLeft,
|
|
7
|
+
Search,
|
|
8
|
+
Code2,
|
|
9
|
+
FileCode,
|
|
10
|
+
RefreshCw,
|
|
11
|
+
Loader2,
|
|
12
|
+
Info,
|
|
13
|
+
} from "lucide-react"
|
|
14
|
+
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
|
|
15
|
+
import { Input } from "@/components/ui/input"
|
|
16
|
+
import { Badge } from "@/components/ui/badge"
|
|
17
|
+
import { Button } from "@/components/ui/button"
|
|
18
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
|
|
19
|
+
import { cn } from "@/lib/utils"
|
|
20
|
+
import { useConnections } from "@/lib/hooks"
|
|
21
|
+
|
|
22
|
+
interface ConnectionsPanelProps {
|
|
23
|
+
selectedComponent: string | null
|
|
24
|
+
onSelectComponent: (name: string) => void
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const connectionTypeColors: Record<string, string> = {
|
|
28
|
+
"service-call": "bg-chart-2/20 text-chart-2 border-chart-2/30",
|
|
29
|
+
"api-calls-db": "bg-chart-3/20 text-chart-3 border-chart-3/30",
|
|
30
|
+
"frontend-calls-api": "bg-chart-1/20 text-chart-1 border-chart-1/30",
|
|
31
|
+
"queue-triggers": "bg-chart-4/20 text-chart-4 border-chart-4/30",
|
|
32
|
+
"observes": "bg-info/20 text-info border-info/30",
|
|
33
|
+
"conforms-to": "bg-primary/20 text-primary border-primary/30",
|
|
34
|
+
"notifies": "bg-chart-5/20 text-chart-5 border-chart-5/30",
|
|
35
|
+
"stores": "bg-warning/20 text-warning border-warning/30",
|
|
36
|
+
"navigates-to": "bg-chart-1/20 text-chart-1 border-chart-1/30",
|
|
37
|
+
"requires-entitlement": "bg-destructive/20 text-destructive border-destructive/30",
|
|
38
|
+
"target-contains": "bg-chart-4/20 text-chart-4 border-chart-4/30",
|
|
39
|
+
"generates": "bg-chart-3/20 text-chart-3 border-chart-3/30",
|
|
40
|
+
"imports": "bg-muted text-muted-foreground border-muted",
|
|
41
|
+
"prompt-usage": "bg-warning/20 text-warning border-warning/30",
|
|
42
|
+
"deploys-to": "bg-info/20 text-info border-info/30",
|
|
43
|
+
"uses-package": "bg-chart-1/20 text-chart-1 border-chart-1/30",
|
|
44
|
+
"other": "bg-muted text-muted-foreground border-muted",
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const connectionTypeLabels: Record<string, string> = {
|
|
48
|
+
"service-call": "Service Calls",
|
|
49
|
+
"api-calls-db": "DB Queries",
|
|
50
|
+
"frontend-calls-api": "API Calls",
|
|
51
|
+
"queue-triggers": "Queue Triggers",
|
|
52
|
+
"observes": "Observes",
|
|
53
|
+
"conforms-to": "Conforms To",
|
|
54
|
+
"notifies": "Notifies",
|
|
55
|
+
"stores": "Stores",
|
|
56
|
+
"navigates-to": "Navigates",
|
|
57
|
+
"requires-entitlement": "Entitlements",
|
|
58
|
+
"target-contains": "Target Contains",
|
|
59
|
+
"generates": "Generates",
|
|
60
|
+
"imports": "Imports",
|
|
61
|
+
"prompt-usage": "Prompt Usage",
|
|
62
|
+
"deploys-to": "Deploys To",
|
|
63
|
+
"uses-package": "Uses Package",
|
|
64
|
+
"other": "Other",
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ConnectionsPanel({ selectedComponent, onSelectComponent }: ConnectionsPanelProps) {
|
|
68
|
+
const { connections, isLoading, source, refresh } = useConnections({ autoFetch: true })
|
|
69
|
+
const [search, setSearch] = useState("")
|
|
70
|
+
const [activeTab, setActiveTab] = useState("all")
|
|
71
|
+
|
|
72
|
+
const filtered = connections.filter((c) => {
|
|
73
|
+
const matchesSearch =
|
|
74
|
+
c.from.toLowerCase().includes(search.toLowerCase()) ||
|
|
75
|
+
c.to.toLowerCase().includes(search.toLowerCase()) ||
|
|
76
|
+
c.symbol.toLowerCase().includes(search.toLowerCase())
|
|
77
|
+
|
|
78
|
+
if (activeTab === "all") return matchesSearch
|
|
79
|
+
return matchesSearch && c.type === activeTab
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
// Dynamically group by connection type (only types that exist in the data)
|
|
83
|
+
const typeCounts = connections.reduce<Record<string, number>>((acc, c) => {
|
|
84
|
+
acc[c.type] = (acc[c.type] || 0) + 1
|
|
85
|
+
return acc
|
|
86
|
+
}, {})
|
|
87
|
+
const activeTypes = Object.entries(typeCounts)
|
|
88
|
+
.sort((a, b) => b[1] - a[1])
|
|
89
|
+
.map(([type]) => type)
|
|
90
|
+
|
|
91
|
+
return (
|
|
92
|
+
<div className="space-y-6">
|
|
93
|
+
<div className="flex items-center justify-between">
|
|
94
|
+
<div>
|
|
95
|
+
<h1 className="text-2xl font-semibold text-foreground">Connections</h1>
|
|
96
|
+
<p className="text-sm text-muted-foreground">
|
|
97
|
+
All detected relationships between components
|
|
98
|
+
{source === "mock" && (
|
|
99
|
+
<span className="ml-2 text-info">(Demo data)</span>
|
|
100
|
+
)}
|
|
101
|
+
</p>
|
|
102
|
+
</div>
|
|
103
|
+
<Button
|
|
104
|
+
variant="outline"
|
|
105
|
+
size="sm"
|
|
106
|
+
onClick={() => refresh()}
|
|
107
|
+
disabled={isLoading}
|
|
108
|
+
>
|
|
109
|
+
{isLoading ? (
|
|
110
|
+
<Loader2 className="h-4 w-4 animate-spin" />
|
|
111
|
+
) : (
|
|
112
|
+
<RefreshCw className="h-4 w-4" />
|
|
113
|
+
)}
|
|
114
|
+
<span className="ml-2">Refresh</span>
|
|
115
|
+
</Button>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
{source === "mock" && (
|
|
119
|
+
<div className="flex items-center gap-2 rounded-lg border border-info/30 bg-info/10 p-3">
|
|
120
|
+
<Info className="h-4 w-4 text-info" />
|
|
121
|
+
<p className="text-sm text-info">
|
|
122
|
+
Run <code className="rounded bg-info/20 px-1">navgator scan</code> to scan your project for real data.
|
|
123
|
+
</p>
|
|
124
|
+
</div>
|
|
125
|
+
)}
|
|
126
|
+
|
|
127
|
+
{/* Search */}
|
|
128
|
+
<div className="relative max-w-md">
|
|
129
|
+
<Search className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
|
|
130
|
+
<Input
|
|
131
|
+
placeholder="Search connections..."
|
|
132
|
+
value={search}
|
|
133
|
+
onChange={(e) => setSearch(e.target.value)}
|
|
134
|
+
className="bg-card pl-9"
|
|
135
|
+
/>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
{/* Tabs */}
|
|
139
|
+
<Tabs value={activeTab} onValueChange={setActiveTab}>
|
|
140
|
+
<TabsList className="bg-secondary flex-wrap h-auto gap-1 p-1">
|
|
141
|
+
<TabsTrigger value="all">
|
|
142
|
+
All
|
|
143
|
+
<Badge variant="secondary" className="ml-2 h-5 px-1.5 bg-muted">
|
|
144
|
+
{filtered.length}
|
|
145
|
+
</Badge>
|
|
146
|
+
</TabsTrigger>
|
|
147
|
+
{activeTypes.map((type) => (
|
|
148
|
+
<TabsTrigger key={type} value={type}>
|
|
149
|
+
{connectionTypeLabels[type] || type.replace(/-/g, " ")}
|
|
150
|
+
<Badge variant="secondary" className="ml-2 h-5 px-1.5 bg-muted">
|
|
151
|
+
{typeCounts[type]}
|
|
152
|
+
</Badge>
|
|
153
|
+
</TabsTrigger>
|
|
154
|
+
))}
|
|
155
|
+
</TabsList>
|
|
156
|
+
|
|
157
|
+
<TabsContent value={activeTab} className="mt-4">
|
|
158
|
+
<div className="space-y-3">
|
|
159
|
+
{filtered.map((connection, idx) => (
|
|
160
|
+
<Card
|
|
161
|
+
key={`${connection.id}-${idx}`}
|
|
162
|
+
className="bg-card transition-colors hover:bg-card/80"
|
|
163
|
+
>
|
|
164
|
+
<CardContent className="p-4">
|
|
165
|
+
<div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
|
|
166
|
+
<div className="flex items-center gap-2 text-sm">
|
|
167
|
+
<button
|
|
168
|
+
onClick={() => {
|
|
169
|
+
const name = connection.from.split("/").pop()?.replace(/\.(ts|tsx|js|jsx)$/, "") || connection.from
|
|
170
|
+
onSelectComponent(name)
|
|
171
|
+
}}
|
|
172
|
+
className="flex items-center gap-1.5 rounded bg-secondary px-2 py-1 font-mono text-xs text-foreground hover:bg-secondary/80"
|
|
173
|
+
>
|
|
174
|
+
<FileCode className="h-3.5 w-3.5 text-muted-foreground" />
|
|
175
|
+
{connection.from}
|
|
176
|
+
</button>
|
|
177
|
+
<ArrowRight className="h-4 w-4 text-muted-foreground" />
|
|
178
|
+
<button
|
|
179
|
+
onClick={() => onSelectComponent(connection.to)}
|
|
180
|
+
className="flex items-center gap-1.5 rounded bg-primary/10 px-2 py-1 font-mono text-xs text-primary hover:bg-primary/20"
|
|
181
|
+
>
|
|
182
|
+
{connection.to}
|
|
183
|
+
</button>
|
|
184
|
+
</div>
|
|
185
|
+
<Badge
|
|
186
|
+
variant="outline"
|
|
187
|
+
className={cn("text-xs", connectionTypeColors[connection.type])}
|
|
188
|
+
>
|
|
189
|
+
{connection.type.replace(/-/g, " ")}
|
|
190
|
+
</Badge>
|
|
191
|
+
</div>
|
|
192
|
+
|
|
193
|
+
<div className="mt-3 rounded-md bg-secondary/50 p-3">
|
|
194
|
+
<div className="flex items-center gap-2 text-xs text-muted-foreground">
|
|
195
|
+
<Code2 className="h-3.5 w-3.5" />
|
|
196
|
+
<span className="font-medium text-foreground">{connection.symbol}</span>
|
|
197
|
+
<span>at line {connection.line}</span>
|
|
198
|
+
</div>
|
|
199
|
+
<pre className="mt-2 font-mono text-xs text-muted-foreground overflow-x-auto">
|
|
200
|
+
{connection.code}
|
|
201
|
+
</pre>
|
|
202
|
+
</div>
|
|
203
|
+
</CardContent>
|
|
204
|
+
</Card>
|
|
205
|
+
))}
|
|
206
|
+
|
|
207
|
+
{filtered.length === 0 && (
|
|
208
|
+
<div className="flex flex-col items-center justify-center py-12 text-center">
|
|
209
|
+
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-secondary">
|
|
210
|
+
<ArrowLeft className="h-6 w-6 text-muted-foreground" />
|
|
211
|
+
</div>
|
|
212
|
+
<p className="mt-4 text-sm text-muted-foreground">No connections found</p>
|
|
213
|
+
</div>
|
|
214
|
+
)}
|
|
215
|
+
</div>
|
|
216
|
+
</TabsContent>
|
|
217
|
+
</Tabs>
|
|
218
|
+
</div>
|
|
219
|
+
)
|
|
220
|
+
}
|