@shepai/cli 1.136.1-pr440.ded6b06 → 1.136.1
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/apis/json-schema/Feature.yaml +0 -3
- package/apis/json-schema/SdlcLifecycle.yaml +0 -1
- package/dist/packages/core/src/application/ports/output/repositories/feature-repository.interface.d.ts +0 -2
- package/dist/packages/core/src/application/ports/output/repositories/feature-repository.interface.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.d.ts +1 -6
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +0 -1
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +0 -10
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.d.ts +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.js +0 -6
- package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.js +2 -7
- package/dist/src/presentation/cli/commands/feat/index.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/index.js +1 -5
- package/dist/src/presentation/cli/commands/feat/ls.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/ls.command.js +0 -5
- package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
- package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +1 -6
- package/dist/src/presentation/web/app/api/agent-events/route.d.ts.map +1 -1
- package/dist/src/presentation/web/app/api/agent-events/route.js +0 -1
- package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.js +0 -6
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +1 -3
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.js +1 -11
- package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.js +2 -16
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts +0 -5
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.js +1 -75
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +4 -13
- package/dist/src/presentation/web/components/features/control-center/control-center.stories.d.ts +0 -6
- package/dist/src/presentation/web/components/features/control-center/control-center.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center.stories.js +0 -70
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +0 -6
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +2 -43
- package/dist/src/presentation/web/hooks/sidebar-features-context.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/sidebar-features-context.js +0 -1
- package/dist/src/presentation/web/hooks/use-graph-state.d.ts +1 -1
- package/dist/src/presentation/web/hooks/use-graph-state.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/use-graph-state.js +2 -17
- package/dist/src/presentation/web/lib/derive-graph.d.ts +0 -4
- package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/derive-graph.js +0 -12
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +3 -3
- package/web/.next/required-server-files.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +50 -80
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +50 -80
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +62 -92
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +62 -92
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +46 -76
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +50 -80
- package/web/.next/server/app/(dashboard)/create/page.js +2 -2
- package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +62 -92
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +2 -2
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +62 -92
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +2 -2
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +46 -76
- package/web/.next/server/app/(dashboard)/page.js +2 -2
- package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +46 -76
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +2 -2
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
- package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
- package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/skills/page.js.nft.json +1 -1
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/tools/page.js.nft.json +1 -1
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_4d623b8e.js +2 -2
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_4d623b8e.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c6e32a23._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c6e32a23._.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_b49d9c97.js +3 -0
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_b49d9c97.js.map +1 -0
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_28632197.js +3 -0
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_28632197.js.map +1 -0
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_10695d37.js +3 -0
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_10695d37.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3ef34e4c._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__47ded061._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__47ded061._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__68ce373c._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__68ce373c._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6ec59045._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6ec59045._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__718766da._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__718766da._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a5f9c6e5._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a5f9c6e5._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdd058b2._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdd058b2._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_02ec1aea._.js +1 -1
- package/web/.next/server/chunks/ssr/_02ec1aea._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_3a8b11f5._.js +4 -0
- package/web/.next/server/chunks/ssr/_3a8b11f5._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_7dca1882._.js +1 -1
- package/web/.next/server/chunks/ssr/_7dca1882._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_a9f57758._.js +1 -1
- package/web/.next/server/chunks/ssr/_d4b20e29._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_d8575088._.js +1 -1
- package/web/.next/server/chunks/ssr/_d8575088._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_e69a26ba._.js +4 -0
- package/web/.next/server/chunks/ssr/_e69a26ba._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_f39a1adb._.js +1 -1
- package/web/.next/server/chunks/ssr/_f39a1adb._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_fafd03ec._.js +3 -0
- package/web/.next/server/chunks/ssr/{_0f5e9205._.js.map → _fafd03ec._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_53666118._.js +5 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_53666118._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{src_presentation_web_eb026892._.js → src_presentation_web_9d7292c4._.js} +2 -2
- package/web/.next/server/chunks/ssr/{src_presentation_web_eb026892._.js.map → src_presentation_web_9d7292c4._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_d95e128d.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_d95e128d.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_e4df6dd7._.js +5 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_e4df6dd7._.js.map +1 -0
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +307 -463
- package/web/.next/static/chunks/{35c8485fb1995cf7.js → 1ccea0ca4cca00f7.js} +1 -1
- package/web/.next/static/chunks/{f3da449e6cc5524e.js → 4938159e46498d00.js} +1 -1
- package/web/.next/static/chunks/5e66bfba061db621.js +2 -0
- package/web/.next/static/chunks/{2f0f60603e6a6ad3.js → 68351a1fb1e57d86.js} +1 -1
- package/web/.next/static/chunks/{b02f266e89ba1dd8.js → 73fd16bb130a559c.js} +1 -1
- package/web/.next/static/chunks/92cd6f523639a6fa.css +1 -0
- package/web/.next/static/chunks/9f3f53cc48fa1ccf.js +2 -0
- package/web/.next/static/chunks/{94f12c16e8804d19.js → a21d883baebd7bdb.js} +1 -1
- package/web/.next/static/chunks/{16b41271842fdbc1.js → c2311839bfa63e4a.js} +1 -1
- package/web/.next/static/chunks/{57802507d72b99ee.js → d11f1dbba7daafbd.js} +1 -1
- package/web/.next/static/chunks/{bcc1bf1b0cd74b2d.js → d44bf63a94fd5d79.js} +1 -1
- package/web/.next/static/chunks/{a0072880b46edce7.js → e370f42e84b4ac0d.js} +1 -1
- package/web/.next/static/chunks/e84d2b794f97eb3a.js +1 -0
- package/dist/packages/core/src/application/use-cases/features/archive-feature.use-case.d.ts +0 -20
- package/dist/packages/core/src/application/use-cases/features/archive-feature.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/features/archive-feature.use-case.js +0 -74
- package/dist/packages/core/src/application/use-cases/features/unarchive-feature.use-case.d.ts +0 -20
- package/dist/packages/core/src/application/use-cases/features/unarchive-feature.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/features/unarchive-feature.use-case.js +0 -65
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-previous-lifecycle.d.ts +0 -12
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-previous-lifecycle.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-previous-lifecycle.js +0 -16
- package/dist/src/presentation/cli/commands/feat/archive.command.d.ts +0 -18
- package/dist/src/presentation/cli/commands/feat/archive.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/feat/archive.command.js +0 -54
- package/dist/src/presentation/cli/commands/feat/unarchive.command.d.ts +0 -17
- package/dist/src/presentation/cli/commands/feat/unarchive.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/feat/unarchive.command.js +0 -42
- package/dist/src/presentation/web/app/actions/archive-feature.d.ts +0 -6
- package/dist/src/presentation/web/app/actions/archive-feature.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/archive-feature.js +0 -16
- package/dist/src/presentation/web/app/actions/unarchive-feature.d.ts +0 -6
- package/dist/src/presentation/web/app/actions/unarchive-feature.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/unarchive-feature.js +0 -16
- package/web/.next/server/chunks/ssr/[root-of-the-server]__61564698._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__61564698._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__74ab160c._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__74ab160c._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__bd16cded._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__bd16cded._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f14fffe1._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f14fffe1._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_0f5e9205._.js +0 -3
- package/web/.next/server/chunks/ssr/_29c444f1._.js +0 -4
- package/web/.next/server/chunks/ssr/_29c444f1._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_2fdfd9ab._.js +0 -4
- package/web/.next/server/chunks/ssr/_2fdfd9ab._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_65f6e0e0._.js +0 -6
- package/web/.next/server/chunks/ssr/_65f6e0e0._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_a51673dd._.js +0 -4
- package/web/.next/server/chunks/ssr/_a51673dd._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_ae587066._.js +0 -4
- package/web/.next/server/chunks/ssr/_ae587066._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_d162e30d._.js +0 -4
- package/web/.next/server/chunks/ssr/_d162e30d._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_d763f022._.js +0 -6
- package/web/.next/server/chunks/ssr/_d763f022._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js.map +0 -1
- package/web/.next/static/chunks/232c8fb39d55eb0c.js +0 -2
- package/web/.next/static/chunks/24d61546fc6aa030.css +0 -1
- package/web/.next/static/chunks/5edd0e2e784ee069.js +0 -2
- package/web/.next/static/chunks/60f80d39976c5086.js +0 -1
- /package/web/.next/static/{3V1jKEnSKFjbSLn1ERPdV → Ywxn_J9lSl6kCndILP_ke}/_buildManifest.js +0 -0
- /package/web/.next/static/{3V1jKEnSKFjbSLn1ERPdV → Ywxn_J9lSl6kCndILP_ke}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{3V1jKEnSKFjbSLn1ERPdV → Ywxn_J9lSl6kCndILP_ke}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import { expect, fn,
|
|
3
|
+
import { expect, fn, waitFor } from '@storybook/test';
|
|
4
4
|
import { ReactFlowProvider, ReactFlow, useNodesState } from '@xyflow/react';
|
|
5
5
|
import { DeploymentState, PrStatus, CiStatus } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
6
6
|
import { FeatureNode } from './feature-node.js';
|
|
@@ -213,16 +213,6 @@ const allStatesData = [
|
|
|
213
213
|
agentType: 'claude-code',
|
|
214
214
|
hasAgentRun: true,
|
|
215
215
|
},
|
|
216
|
-
{
|
|
217
|
-
name: 'Old Dashboard',
|
|
218
|
-
description: 'Previous iteration of the admin dashboard',
|
|
219
|
-
featureId: '#f8',
|
|
220
|
-
lifecycle: 'maintain',
|
|
221
|
-
state: 'archived',
|
|
222
|
-
progress: 100,
|
|
223
|
-
repositoryPath: '/home/user/my-repo',
|
|
224
|
-
branch: 'feat/old-dashboard',
|
|
225
|
-
},
|
|
226
216
|
];
|
|
227
217
|
export const AllStates = {
|
|
228
218
|
render: () => (_jsx("div", { className: "flex flex-wrap gap-6", children: allStatesData.map((data) => (_jsx(FeatureNodeCanvas, { style: { width: 500, height: 350 }, data: data }, data.featureId))) })),
|
|
@@ -604,67 +594,3 @@ export const PendingWithStart = {
|
|
|
604
594
|
},
|
|
605
595
|
render: (args) => _jsx(FeatureNodeCanvas, { data: args }),
|
|
606
596
|
};
|
|
607
|
-
export const Archived = {
|
|
608
|
-
args: {
|
|
609
|
-
name: 'Old Dashboard',
|
|
610
|
-
description: 'Previous iteration of the admin dashboard',
|
|
611
|
-
featureId: '#a1',
|
|
612
|
-
lifecycle: 'maintain',
|
|
613
|
-
state: 'archived',
|
|
614
|
-
progress: 100,
|
|
615
|
-
},
|
|
616
|
-
render: (args) => _jsx(FeatureNodeCanvas, { data: args }),
|
|
617
|
-
};
|
|
618
|
-
export const ArchivedWithUnarchive = {
|
|
619
|
-
args: {
|
|
620
|
-
name: 'Old Dashboard',
|
|
621
|
-
description: 'Previous iteration of the admin dashboard',
|
|
622
|
-
featureId: '#a2',
|
|
623
|
-
lifecycle: 'maintain',
|
|
624
|
-
state: 'archived',
|
|
625
|
-
progress: 100,
|
|
626
|
-
onUnarchive: fn(),
|
|
627
|
-
},
|
|
628
|
-
render: (args) => _jsx(FeatureNodeCanvas, { data: args }),
|
|
629
|
-
};
|
|
630
|
-
export const DoneWithArchive = {
|
|
631
|
-
args: {
|
|
632
|
-
name: 'Completed Feature',
|
|
633
|
-
description: 'A feature ready to be archived',
|
|
634
|
-
featureId: '#ar1',
|
|
635
|
-
lifecycle: 'maintain',
|
|
636
|
-
state: 'done',
|
|
637
|
-
progress: 100,
|
|
638
|
-
runtime: '2h 30m',
|
|
639
|
-
onArchive: fn(),
|
|
640
|
-
onDelete: fn(),
|
|
641
|
-
},
|
|
642
|
-
render: (args) => _jsx(FeatureNodeCanvas, { data: args }),
|
|
643
|
-
};
|
|
644
|
-
/** Shows the archive confirmation dialog in its open state. */
|
|
645
|
-
export const ArchiveConfirmationDialog = {
|
|
646
|
-
args: {
|
|
647
|
-
name: 'Payment Gateway',
|
|
648
|
-
description: 'Stripe integration for subscriptions',
|
|
649
|
-
featureId: '#cd1',
|
|
650
|
-
lifecycle: 'maintain',
|
|
651
|
-
state: 'done',
|
|
652
|
-
progress: 100,
|
|
653
|
-
runtime: '1h 42m',
|
|
654
|
-
onArchive: fn(),
|
|
655
|
-
},
|
|
656
|
-
render: (args) => _jsx(FeatureNodeCanvas, { data: args, style: { width: 600, height: 500 } }),
|
|
657
|
-
play: async ({ canvasElement }) => {
|
|
658
|
-
const canvas = within(canvasElement);
|
|
659
|
-
// Hover over the node to reveal the archive button
|
|
660
|
-
const card = await waitFor(() => canvas.getByTestId('feature-node-card'));
|
|
661
|
-
await userEvent.hover(card);
|
|
662
|
-
// Click the archive button to open the confirmation dialog
|
|
663
|
-
const archiveButton = await waitFor(() => canvas.getByTestId('feature-node-archive-button'));
|
|
664
|
-
await userEvent.click(archiveButton);
|
|
665
|
-
// Verify the dialog is open
|
|
666
|
-
await waitFor(() => {
|
|
667
|
-
expect(document.querySelector('[role="alertdialog"]')).toBeTruthy();
|
|
668
|
-
});
|
|
669
|
-
},
|
|
670
|
-
};
|
package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-center-inner.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-inner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"control-center-inner.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-inner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,eAAe,CAAC;AAGpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAuB5E,UAAU,uBAAuB;IAC/B,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,YAAY,EAAE,IAAI,EAAE,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,uBAAuB,2CAuWzF"}
|
package/dist/src/presentation/web/components/features/control-center/control-center-inner.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { useRouter, usePathname } from 'next/navigation';
|
|
5
|
-
import {
|
|
6
|
-
import { Eye, EyeOff } from 'lucide-react';
|
|
7
|
-
import { cn } from '../../../lib/utils.js';
|
|
5
|
+
import { useReactFlow } from '@xyflow/react';
|
|
8
6
|
import { FeaturesCanvas } from '../../features/features-canvas/index.js';
|
|
9
7
|
import { useSidebarFeaturesContext, mapNodeStateToSidebarStatus, } from '../../../hooks/sidebar-features-context.js';
|
|
10
8
|
import { useSelectedFeatureId } from '../../../hooks/use-selected-feature-id.js';
|
|
@@ -28,7 +26,7 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
28
26
|
const { fitView } = useReactFlow();
|
|
29
27
|
const drawerTimerRef = useRef(null);
|
|
30
28
|
const { defaultViewport, onMoveEnd: handleViewportChange, resetViewport, } = useViewportPersistence();
|
|
31
|
-
const { nodes, edges, onNodesChange, handleConnect, handleAddRepository,
|
|
29
|
+
const { nodes, edges, onNodesChange, handleConnect, handleAddRepository, handleDeleteFeature, handleRetryFeature, handleStartFeature, handleStopFeature, handleDeleteRepository, createFeatureNode, setCallbacks, } = useControlCenterState(initialNodes, initialEdges);
|
|
32
30
|
// Publish sidebar features + repo state to context
|
|
33
31
|
const { setFeatures: setSidebarFeatures, setHasRepositories: setSidebarHasRepos } = useSidebarFeaturesContext();
|
|
34
32
|
const featureNodes = useMemo(() => nodes.filter((n) => n.type === 'featureNode'), [nodes]);
|
|
@@ -203,8 +201,6 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
203
201
|
onRetryFeature: handleRetryFeature,
|
|
204
202
|
onStartFeature: handleStartFeature,
|
|
205
203
|
onStopFeature: handleStopFeature,
|
|
206
|
-
onArchiveFeature: handleArchiveFeature,
|
|
207
|
-
onUnarchiveFeature: handleUnarchiveFeature,
|
|
208
204
|
onRepositoryAdd: handleAddFeatureToRepo,
|
|
209
205
|
onRepositoryClick: handleRepositoryClick,
|
|
210
206
|
onRepositoryDelete: handleDeleteRepository,
|
|
@@ -212,12 +208,10 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
212
208
|
}, [
|
|
213
209
|
setCallbacks,
|
|
214
210
|
handleAddFeatureToFeature,
|
|
215
|
-
handleArchiveFeature,
|
|
216
211
|
handleDeleteFeature,
|
|
217
212
|
handleRetryFeature,
|
|
218
213
|
handleStartFeature,
|
|
219
214
|
handleStopFeature,
|
|
220
|
-
handleUnarchiveFeature,
|
|
221
215
|
handleAddFeatureToRepo,
|
|
222
216
|
handleRepositoryClick,
|
|
223
217
|
handleDeleteRepository,
|
|
@@ -269,8 +263,5 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
269
263
|
return nodes;
|
|
270
264
|
return nodes.map((n) => n.type === 'repositoryNode' ? { ...n, data: { ...n.data, pulseAdd: true } } : n);
|
|
271
265
|
}, [nodes, isCreateDrawerOpen]);
|
|
272
|
-
|
|
273
|
-
? 'border-primary/30 text-primary'
|
|
274
|
-
: 'text-muted-foreground hover:text-foreground'), children: [showArchived ? _jsx(Eye, { className: "h-3.5 w-3.5" }) : _jsx(EyeOff, { className: "h-3.5 w-3.5" }), showArchived ? 'Archived visible' : 'Show archived'] }) }));
|
|
275
|
-
return (_jsx(FeaturesCanvas, { nodes: showCanvas ? displayNodes : [], edges: showCanvas ? edges : [], selectedFeatureId: selectedFeatureId, defaultViewport: defaultViewport, onNodesChange: onNodesChange, onConnect: handleConnect, onAddFeature: handleAddFeature, onNodeClick: handleNodeClick, onPaneClick: handleClearDrawers, onMoveEnd: handleMoveEnd, onResetViewport: resetViewport, toolbar: archiveToggle, emptyState: _jsx(ControlCenterEmptyState, { onRepositorySelect: addRepoAndFocus }) }));
|
|
266
|
+
return (_jsx(FeaturesCanvas, { nodes: showCanvas ? displayNodes : [], edges: showCanvas ? edges : [], selectedFeatureId: selectedFeatureId, defaultViewport: defaultViewport, onNodesChange: onNodesChange, onConnect: handleConnect, onAddFeature: handleAddFeature, onNodeClick: handleNodeClick, onPaneClick: handleClearDrawers, onMoveEnd: handleMoveEnd, onResetViewport: resetViewport, emptyState: _jsx(ControlCenterEmptyState, { onRepositorySelect: addRepoAndFocus }) }));
|
|
276
267
|
}
|
package/dist/src/presentation/web/components/features/control-center/control-center.stories.d.ts
CHANGED
|
@@ -15,10 +15,4 @@ export declare const WithNodeActions: Story;
|
|
|
15
15
|
* "Horizontal" to switch back.
|
|
16
16
|
*/
|
|
17
17
|
export declare const DagreLayout: Story;
|
|
18
|
-
/**
|
|
19
|
-
* Canvas with active and archived features.
|
|
20
|
-
* The archive toggle button appears in the top-right corner ("Show archived").
|
|
21
|
-
* Click the toggle to reveal the dimmed archived feature node.
|
|
22
|
-
*/
|
|
23
|
-
export declare const WithArchivedFeatures: Story;
|
|
24
18
|
//# sourceMappingURL=control-center.stories.d.ts.map
|
package/dist/src/presentation/web/components/features/control-center/control-center.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-center.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAkBpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA0EnC,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAQ1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAS7B,CAAC;AAiIF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC
|
|
1
|
+
{"version":3,"file":"control-center.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAkBpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA0EnC,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAQ1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAS7B,CAAC;AAiIF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC"}
|
package/dist/src/presentation/web/components/features/control-center/control-center.stories.js
CHANGED
|
@@ -245,73 +245,3 @@ export const DagreLayout = {
|
|
|
245
245
|
initialEdges: dagreLayoutedEdges,
|
|
246
246
|
},
|
|
247
247
|
};
|
|
248
|
-
// --- Archive toggle stories ---
|
|
249
|
-
const archiveRepoNode = {
|
|
250
|
-
id: 'repo-archive',
|
|
251
|
-
type: 'repositoryNode',
|
|
252
|
-
position: { x: 50, y: 115 },
|
|
253
|
-
data: { name: 'shep-ai/cli' },
|
|
254
|
-
};
|
|
255
|
-
const archivedFeatureNodes = [
|
|
256
|
-
{
|
|
257
|
-
id: 'feat-active',
|
|
258
|
-
type: 'featureNode',
|
|
259
|
-
position: { x: 400, y: 0 },
|
|
260
|
-
data: {
|
|
261
|
-
name: 'Auth Module',
|
|
262
|
-
description: 'OAuth2 authentication flow',
|
|
263
|
-
featureId: '#f1',
|
|
264
|
-
lifecycle: 'implementation',
|
|
265
|
-
state: 'running',
|
|
266
|
-
progress: 65,
|
|
267
|
-
repositoryPath: '/home/user/my-repo',
|
|
268
|
-
branch: 'feat/auth-module',
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
id: 'feat-done',
|
|
273
|
-
type: 'featureNode',
|
|
274
|
-
position: { x: 400, y: 230 },
|
|
275
|
-
data: {
|
|
276
|
-
name: 'Payment Gateway',
|
|
277
|
-
description: 'Stripe integration for subscriptions',
|
|
278
|
-
featureId: '#f2',
|
|
279
|
-
lifecycle: 'deploy',
|
|
280
|
-
state: 'done',
|
|
281
|
-
progress: 100,
|
|
282
|
-
runtime: '1h 42m',
|
|
283
|
-
repositoryPath: '/home/user/my-repo',
|
|
284
|
-
branch: 'feat/payment-gateway',
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
id: 'feat-archived',
|
|
289
|
-
type: 'featureNode',
|
|
290
|
-
position: { x: 800, y: 115 },
|
|
291
|
-
data: {
|
|
292
|
-
name: 'Old Dashboard',
|
|
293
|
-
description: 'Previous iteration of the admin dashboard',
|
|
294
|
-
featureId: '#f3',
|
|
295
|
-
lifecycle: 'maintain',
|
|
296
|
-
state: 'archived',
|
|
297
|
-
progress: 100,
|
|
298
|
-
repositoryPath: '/home/user/my-repo',
|
|
299
|
-
branch: 'feat/old-dashboard',
|
|
300
|
-
},
|
|
301
|
-
},
|
|
302
|
-
];
|
|
303
|
-
/**
|
|
304
|
-
* Canvas with active and archived features.
|
|
305
|
-
* The archive toggle button appears in the top-right corner ("Show archived").
|
|
306
|
-
* Click the toggle to reveal the dimmed archived feature node.
|
|
307
|
-
*/
|
|
308
|
-
export const WithArchivedFeatures = {
|
|
309
|
-
args: {
|
|
310
|
-
initialNodes: [archiveRepoNode, ...archivedFeatureNodes],
|
|
311
|
-
initialEdges: [
|
|
312
|
-
{ id: 'e-repo-active', source: 'repo-archive', target: 'feat-active', ...dashedEdge },
|
|
313
|
-
{ id: 'e-repo-done', source: 'repo-archive', target: 'feat-done', ...dashedEdge },
|
|
314
|
-
{ id: 'e-repo-archived', source: 'repo-archive', target: 'feat-archived', ...dashedEdge },
|
|
315
|
-
],
|
|
316
|
-
},
|
|
317
|
-
};
|
package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts
CHANGED
|
@@ -14,18 +14,12 @@ export interface ControlCenterState {
|
|
|
14
14
|
repoPath: string;
|
|
15
15
|
};
|
|
16
16
|
handleLayout: (direction: LayoutDirection) => void;
|
|
17
|
-
handleArchiveFeature: (featureId: string) => void;
|
|
18
17
|
handleDeleteFeature: (featureId: string, cleanup?: boolean, cascadeDelete?: boolean, closePr?: boolean) => void;
|
|
19
18
|
handleRetryFeature: (featureId: string) => void;
|
|
20
19
|
handleStartFeature: (featureId: string) => void;
|
|
21
20
|
handleStopFeature: (featureId: string) => void;
|
|
22
|
-
handleUnarchiveFeature: (featureId: string) => void;
|
|
23
21
|
handleDeleteRepository: (repositoryId: string) => Promise<void>;
|
|
24
22
|
createFeatureNode: (sourceNodeId: string | null, dataOverride?: Partial<FeatureNodeData>, edgeType?: string) => string;
|
|
25
|
-
/** Whether archived features are shown on the canvas. */
|
|
26
|
-
showArchived: boolean;
|
|
27
|
-
/** Toggle archived feature visibility. */
|
|
28
|
-
setShowArchived: (show: boolean) => void;
|
|
29
23
|
/** Stable lookup: repositoryPath for a feature node. */
|
|
30
24
|
getFeatureRepositoryPath: (featureNodeId: string) => string | undefined;
|
|
31
25
|
/** Stable lookup: repository data by nodeId. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-control-center-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/use-control-center-state.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-control-center-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/use-control-center-state.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AAgBjC,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM7E,MAAM,WAAW,kBAA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AAC;CACnD;AAQD,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,cAAc,EAAE,EAC9B,YAAY,EAAE,IAAI,EAAE,GACnB,kBAAkB,CAwhBpB"}
|
package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useCallback, useEffect, useMemo, useRef
|
|
2
|
+
import { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
3
|
import { useRouter } from 'next/navigation';
|
|
4
4
|
import { toast } from 'sonner';
|
|
5
5
|
import { layoutWithDagre, CANVAS_LAYOUT_DEFAULTS, } from '../../../lib/layout-with-dagre.js';
|
|
6
|
-
import { archiveFeature } from '../../../app/actions/archive-feature.js';
|
|
7
6
|
import { deleteFeature } from '../../../app/actions/delete-feature.js';
|
|
8
7
|
import { resumeFeature } from '../../../app/actions/resume-feature.js';
|
|
9
8
|
import { startFeature } from '../../../app/actions/start-feature.js';
|
|
10
9
|
import { stopFeature } from '../../../app/actions/stop-feature.js';
|
|
11
|
-
import { unarchiveFeature } from '../../../app/actions/unarchive-feature.js';
|
|
12
10
|
import { addRepository } from '../../../app/actions/add-repository.js';
|
|
13
11
|
import { deleteRepository } from '../../../app/actions/delete-repository.js';
|
|
14
12
|
import { getFeatureMetadata } from '../../../app/actions/get-feature-metadata.js';
|
|
@@ -27,9 +25,7 @@ export function useControlCenterState(initialNodes, initialEdges) {
|
|
|
27
25
|
const router = useRouter();
|
|
28
26
|
const deleteSound = useSoundAction('delete');
|
|
29
27
|
const createSound = useSoundAction('create');
|
|
30
|
-
|
|
31
|
-
const [showArchived, setShowArchived] = useState(false);
|
|
32
|
-
const { nodes, edges, reconcile, updateFeature, addPendingFeature, removeFeature, restoreFeature, addRepository: addRepositoryToMap, removeRepository, replaceRepository, getFeatureRepositoryPath, getRepositoryData, getRepoMapSize, setCallbacks, beginMutation, endMutation, isMutating, } = useGraphState(initialNodes, initialEdges, showArchived);
|
|
28
|
+
const { nodes, edges, reconcile, updateFeature, addPendingFeature, removeFeature, restoreFeature, addRepository: addRepositoryToMap, removeRepository, replaceRepository, getFeatureRepositoryPath, getRepositoryData, getRepoMapSize, setCallbacks, beginMutation, endMutation, isMutating, } = useGraphState(initialNodes, initialEdges);
|
|
33
29
|
// Refs for stable access to latest nodes/edges without callback recreation
|
|
34
30
|
const nodesRef = useRef(nodes);
|
|
35
31
|
const edgesRef = useRef(edges);
|
|
@@ -283,39 +279,6 @@ export function useControlCenterState(initialNodes, initialEdges) {
|
|
|
283
279
|
})
|
|
284
280
|
.finally(() => endMutation());
|
|
285
281
|
}, [beginMutation, endMutation]);
|
|
286
|
-
const handleArchiveFeature = useCallback((featureId) => {
|
|
287
|
-
beginMutation();
|
|
288
|
-
archiveFeature(featureId)
|
|
289
|
-
.then((result) => {
|
|
290
|
-
if (result.error) {
|
|
291
|
-
toast.error(result.error);
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
toast.success('Feature archived');
|
|
295
|
-
}
|
|
296
|
-
})
|
|
297
|
-
.catch(() => {
|
|
298
|
-
toast.error('Failed to archive feature');
|
|
299
|
-
})
|
|
300
|
-
.finally(() => endMutation());
|
|
301
|
-
}, [beginMutation, endMutation]);
|
|
302
|
-
const handleUnarchiveFeature = useCallback((featureId) => {
|
|
303
|
-
beginMutation();
|
|
304
|
-
unarchiveFeature(featureId)
|
|
305
|
-
.then((result) => {
|
|
306
|
-
if (result.error) {
|
|
307
|
-
toast.error(result.error);
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
// The next poll/reconcile will restore the correct state and lifecycle
|
|
311
|
-
toast.success('Feature unarchived');
|
|
312
|
-
}
|
|
313
|
-
})
|
|
314
|
-
.catch(() => {
|
|
315
|
-
toast.error('Failed to unarchive feature');
|
|
316
|
-
})
|
|
317
|
-
.finally(() => endMutation());
|
|
318
|
-
}, [beginMutation, endMutation]);
|
|
319
282
|
const handleDeleteFeature = useCallback((featureId, cleanup, cascadeDelete, closePr) => {
|
|
320
283
|
const nodeId = `feat-${featureId}`;
|
|
321
284
|
const shouldCascade = cascadeDelete === true;
|
|
@@ -492,17 +455,13 @@ export function useControlCenterState(initialNodes, initialEdges) {
|
|
|
492
455
|
onNodesChange,
|
|
493
456
|
handleConnect,
|
|
494
457
|
handleAddRepository,
|
|
495
|
-
handleArchiveFeature,
|
|
496
458
|
handleLayout,
|
|
497
459
|
handleDeleteFeature,
|
|
498
460
|
handleRetryFeature,
|
|
499
461
|
handleStartFeature,
|
|
500
462
|
handleStopFeature,
|
|
501
|
-
handleUnarchiveFeature,
|
|
502
463
|
handleDeleteRepository,
|
|
503
464
|
createFeatureNode,
|
|
504
|
-
showArchived,
|
|
505
|
-
setShowArchived,
|
|
506
465
|
getFeatureRepositoryPath,
|
|
507
466
|
getRepositoryData,
|
|
508
467
|
setCallbacks,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-features-context.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/sidebar-features-context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAI/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"sidebar-features-context.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/sidebar-features-context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAI/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAiBD;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,gBAAgB,GAAG,aAAa,GAAG,IAAI,CAEzF;AAMD,UAAU,2BAA2B;IACnC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,WAAW,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;IACtD,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAID,UAAU,4BAA4B;IACpC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,4BAA4B,2CAYjF;AAED,wBAAgB,yBAAyB,IAAI,2BAA2B,CAMvE"}
|
|
@@ -54,5 +54,5 @@ export interface UseGraphStateReturn {
|
|
|
54
54
|
isMutating: () => boolean;
|
|
55
55
|
}
|
|
56
56
|
type FeatureDataUpdates = Partial<Pick<FeatureNodeData, 'state' | 'lifecycle' | 'name' | 'description'>>;
|
|
57
|
-
export declare function useGraphState(initialNodes: CanvasNodeType[], initialEdges: Edge[]
|
|
57
|
+
export declare function useGraphState(initialNodes: CanvasNodeType[], initialEdges: Edge[]): UseGraphStateReturn;
|
|
58
58
|
//# sourceMappingURL=use-graph-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-graph-state.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/use-graph-state.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,cAAc,EACpB,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,mDAAmD;IACnD,KAAK,EAAE,IAAI,EAAE,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,CAAC,QAAQ,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAClE,uEAAuE;IACvE,aAAa,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC5E,kEAAkE;IAClE,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1F,yDAAyD;IACzD,oBAAoB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,sDAAsD;IACtD,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,uDAAuD;IACvD,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC9D,2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E,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACtF,gEAAgE;IAChE,wBAAwB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACxE,yDAAyD;IACzD,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IACtE,+EAA+E;IAC/E,cAAc,EAAE,MAAM,MAAM,CAAC;IAC7B,6EAA6E;IAC7E,YAAY,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC;IAClD;;;;OAIG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B;;;OAGG;IACH,WAAW,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,0EAA0E;IAC1E,UAAU,EAAE,MAAM,OAAO,CAAC;CAC3B;AAuCD,KAAK,kBAAkB,GAAG,OAAO,CAC/B,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,aAAa,CAAC,CACtE,CAAC;AA8BF,wBAAgB,aAAa,CAC3B,YAAY,EAAE,cAAc,EAAE,EAC9B,YAAY,EAAE,IAAI,EAAE,GACnB,mBAAmB,CA+ZrB"}
|
|
@@ -56,7 +56,7 @@ function mapsEqual(a, b) {
|
|
|
56
56
|
}
|
|
57
57
|
return true;
|
|
58
58
|
}
|
|
59
|
-
export function useGraphState(initialNodes, initialEdges
|
|
59
|
+
export function useGraphState(initialNodes, initialEdges) {
|
|
60
60
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- intentional: parse only on mount (like useState initializer)
|
|
61
61
|
const init = useMemo(() => parseMaps(initialNodes, initialEdges), []);
|
|
62
62
|
const [featureMap, setFeatureMap] = useState(init.featureMap);
|
|
@@ -91,29 +91,14 @@ export function useGraphState(initialNodes, initialEdges, showArchived = false)
|
|
|
91
91
|
onRepositoryDelete: (repositoryId) => callbacksRef.current.onRepositoryDelete?.(repositoryId),
|
|
92
92
|
onRetryFeature: (featureId) => callbacksRef.current.onRetryFeature?.(featureId),
|
|
93
93
|
onStartFeature: (featureId) => callbacksRef.current.onStartFeature?.(featureId),
|
|
94
|
-
onArchiveFeature: (featureId) => callbacksRef.current.onArchiveFeature?.(featureId),
|
|
95
|
-
onUnarchiveFeature: (featureId) => callbacksRef.current.onUnarchiveFeature?.(featureId),
|
|
96
94
|
}), []);
|
|
97
95
|
// Stable refs for domain Maps (for use in callbacks without depending on state)
|
|
98
96
|
const featureMapRef = useRef(featureMap);
|
|
99
97
|
featureMapRef.current = featureMap;
|
|
100
98
|
const repoMapRef = useRef(repoMap);
|
|
101
99
|
repoMapRef.current = repoMap;
|
|
102
|
-
// Filter archived features from the Map when the toggle is off.
|
|
103
|
-
// This gives instant toggle response (no server round-trip) per NFR-3.
|
|
104
|
-
const visibleFeatureMap = useMemo(() => {
|
|
105
|
-
if (showArchived)
|
|
106
|
-
return featureMap;
|
|
107
|
-
const filtered = new Map();
|
|
108
|
-
for (const [id, entry] of featureMap) {
|
|
109
|
-
if (entry.data.state !== 'archived') {
|
|
110
|
-
filtered.set(id, entry);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return filtered.size === featureMap.size ? featureMap : filtered;
|
|
114
|
-
}, [featureMap, showArchived]);
|
|
115
100
|
// Derive graph from domain Maps (runs on every Map change, but dagre only on topology change)
|
|
116
|
-
const derived = useMemo(() => deriveGraph(
|
|
101
|
+
const derived = useMemo(() => deriveGraph(featureMap, repoMap, pendingMap, stableCallbacks), [featureMap, repoMap, pendingMap, stableCallbacks]);
|
|
117
102
|
// Cache dagre layout positions — only re-run when node set or edge connections change
|
|
118
103
|
const layoutCacheRef = useRef({ key: '', positions: new Map() });
|
|
119
104
|
const { nodes, edges } = useMemo(() => {
|
|
@@ -41,10 +41,6 @@ export interface GraphCallbacks {
|
|
|
41
41
|
onStartFeature?: (featureId: string) => void;
|
|
42
42
|
/** Called when the user stops a running feature. */
|
|
43
43
|
onStopFeature?: (featureId: string) => void;
|
|
44
|
-
/** Called when the user archives a feature. */
|
|
45
|
-
onArchiveFeature?: (featureId: string) => void;
|
|
46
|
-
/** Called when the user unarchives a feature. */
|
|
47
|
-
onUnarchiveFeature?: (featureId: string) => void;
|
|
48
44
|
}
|
|
49
45
|
/**
|
|
50
46
|
* Derives React Flow nodes and edges from domain Maps.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive-graph.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/derive-graph.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;IACtB,sGAAsG;IACtG,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wDAAwD;AACxD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC7B,4FAA4F;IAC5F,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,qEAAqE;IACrE,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,8CAA8C;IAC9C,eAAe,CAAC,EAAE,CAChB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,OAAO,EACjB,aAAa,CAAC,EAAE,OAAO,EACvB,OAAO,CAAC,EAAE,OAAO,KACd,IAAI,CAAC;IACV,6E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E,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,8CAA8C;IAC9C,eAAe,CAAC,EAAE,CAChB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,OAAO,EACjB,aAAa,CAAC,EAAE,OAAO,EACvB,OAAO,CAAC,EAAE,OAAO,KACd,IAAI,CAAC;IACV,6EAA6E;IAC7E,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,qDAAqD;IACrD,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,qDAAqD;IACrD,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,oDAAoD;IACpD,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACzB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACrC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACrC,SAAS,CAAC,EAAE,cAAc,GACzB;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAiK5C"}
|
|
@@ -115,18 +115,6 @@ export function deriveGraph(featureMap, repoMap, pendingMap, callbacks) {
|
|
|
115
115
|
callbacks?.onStopFeature && {
|
|
116
116
|
onStop: callbacks.onStopFeature,
|
|
117
117
|
}),
|
|
118
|
-
...(!isCreating &&
|
|
119
|
-
(entry.data.state === 'done' ||
|
|
120
|
-
entry.data.state === 'blocked' ||
|
|
121
|
-
entry.data.state === 'pending') &&
|
|
122
|
-
callbacks?.onArchiveFeature && {
|
|
123
|
-
onArchive: callbacks.onArchiveFeature,
|
|
124
|
-
}),
|
|
125
|
-
...(!isCreating &&
|
|
126
|
-
entry.data.state === 'archived' &&
|
|
127
|
-
callbacks?.onUnarchiveFeature && {
|
|
128
|
-
onUnarchive: callbacks.onUnarchiveFeature,
|
|
129
|
-
}),
|
|
130
118
|
};
|
|
131
119
|
nodes.push({
|
|
132
120
|
id: nodeId,
|