@shepai/cli 1.164.1 → 1.165.0-pr513.2621e83
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 +17 -5
- package/apis/json-schema/FeatureMode.yaml +8 -0
- package/apis/json-schema/SdlcLifecycle.yaml +1 -0
- package/apis/json-schema/WorkflowConfig.yaml +10 -5
- package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts +2 -2
- package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/spec-initializer.interface.d.ts +4 -3
- package/dist/packages/core/src/application/ports/output/services/spec-initializer.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.js +2 -2
- package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.js +2 -2
- package/dist/packages/core/src/application/use-cases/features/adopt-branch.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/adopt-branch.use-case.js +3 -2
- package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.js +2 -2
- package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.js +18 -7
- package/dist/packages/core/src/application/use-cases/features/create/types.d.ts +3 -2
- package/dist/packages/core/src/application/use-cases/features/create/types.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/delete-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/delete-feature.use-case.js +13 -0
- package/dist/packages/core/src/application/use-cases/features/promote/promote-exploration.use-case.d.ts +40 -0
- package/dist/packages/core/src/application/use-cases/features/promote/promote-exploration.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/features/promote/promote-exploration.use-case.js +125 -0
- package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.js +2 -2
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.js +5 -3
- package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
- package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +2 -1
- package/dist/packages/core/src/domain/generated/output.d.ts +22 -4
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +7 -0
- package/dist/packages/core/src/domain/lifecycle-gates.d.ts +21 -6
- package/dist/packages/core/src/domain/lifecycle-gates.d.ts.map +1 -1
- package/dist/packages/core/src/domain/lifecycle-gates.js +25 -6
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +5 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.d.ts +3 -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 +10 -4
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +2 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +7 -2
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/051-replace-fast-with-mode.d.ts +19 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/051-replace-fast-with-mode.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/051-replace-fast-with-mode.js +46 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/052-replace-default-fast-mode-with-default-mode.d.ts +17 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/052-replace-default-fast-mode-with-default-mode.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/052-replace-default-fast-mode-with-default-mode.js +37 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-exploration-max-iterations.d.ts +12 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-exploration-max-iterations.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-exploration-max-iterations.js +17 -0
- 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 +5 -3
- package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +3 -3
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/exploration-agent-graph.d.ts +362 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/exploration-agent-graph.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/exploration-agent-graph.js +72 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts +20 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts +68 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts +2 -2
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.js +3 -3
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts +2 -2
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.js +19 -8
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/lifecycle-context.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/lifecycle-context.js +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/apply-feedback.node.d.ts +18 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/apply-feedback.node.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/apply-feedback.node.js +52 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/apply-feedback.prompt.d.ts +24 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/apply-feedback.prompt.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/apply-feedback.prompt.js +38 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/prototype-generate.prompt.d.ts +31 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/prototype-generate.prompt.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/prototype-generate.prompt.js +240 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prototype-generate.node.d.ts +21 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prototype-generate.node.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prototype-generate.node.js +134 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts +4 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.js +17 -0
- package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.d.ts +1 -1
- package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.js +7 -4
- package/dist/src/presentation/cli/commands/feat/feedback.command.d.ts +12 -0
- package/dist/src/presentation/cli/commands/feat/feedback.command.d.ts.map +1 -0
- package/dist/src/presentation/cli/commands/feat/feedback.command.js +64 -0
- package/dist/src/presentation/cli/commands/feat/index.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/index.js +5 -1
- package/dist/src/presentation/cli/commands/feat/new.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/new.command.js +18 -5
- package/dist/src/presentation/cli/commands/feat/promote.command.d.ts +13 -0
- package/dist/src/presentation/cli/commands/feat/promote.command.d.ts.map +1 -0
- package/dist/src/presentation/cli/commands/feat/promote.command.js +41 -0
- package/dist/src/presentation/web/app/actions/create-feature.d.ts +3 -2
- package/dist/src/presentation/web/app/actions/create-feature.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/create-feature.js +3 -3
- package/dist/src/presentation/web/app/actions/discard-exploration.d.ts +9 -0
- package/dist/src/presentation/web/app/actions/discard-exploration.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/discard-exploration.js +29 -0
- package/dist/src/presentation/web/app/actions/get-workflow-defaults.d.ts +2 -1
- package/dist/src/presentation/web/app/actions/get-workflow-defaults.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/get-workflow-defaults.js +2 -1
- package/dist/src/presentation/web/app/actions/promote-exploration.d.ts +11 -0
- package/dist/src/presentation/web/app/actions/promote-exploration.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/promote-exploration.js +21 -0
- package/dist/src/presentation/web/app/actions/submit-exploration-feedback.d.ts +12 -0
- package/dist/src/presentation/web/app/actions/submit-exploration-feedback.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/submit-exploration-feedback.js +40 -0
- 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 +1 -0
- package/dist/src/presentation/web/app/build-feature-node-data.d.ts.map +1 -1
- package/dist/src/presentation/web/app/build-feature-node-data.js +4 -2
- package/dist/src/presentation/web/app/build-graph-nodes.js +4 -2
- package/dist/src/presentation/web/components/common/control-center-drawer/drawer-view.d.ts +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/drawer-view.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/drawer-view.js +3 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.js +65 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts +3 -2
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +15 -11
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.js +2 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/mode-selector.d.ts +8 -0
- package/dist/src/presentation/web/components/common/feature-create-drawer/mode-selector.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-create-drawer/mode-selector.js +33 -0
- package/dist/src/presentation/web/components/common/feature-create-drawer/mode-selector.stories.d.ts +10 -0
- package/dist/src/presentation/web/components/common/feature-create-drawer/mode-selector.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-create-drawer/mode-selector.stories.js +33 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts +6 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.js +16 -4
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.d.ts +11 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.js +34 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.stories.d.ts +16 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.stories.js +70 -0
- 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 +2 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +6 -2
- 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 +12 -0
- 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 +7 -2
- package/dist/src/presentation/web/components/common/repo-group/repo-group.d.ts +3 -1
- package/dist/src/presentation/web/components/common/repo-group/repo-group.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/repo-group/repo-group.js +6 -3
- package/dist/src/presentation/web/components/common/repo-group/repo-group.stories.d.ts +1 -0
- package/dist/src/presentation/web/components/common/repo-group/repo-group.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/repo-group/repo-group.stories.js +10 -1
- package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/settings-page-client.js +6 -6
- package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.js +3 -3
- package/dist/src/presentation/web/components/layouts/app-shell/app-shell.d.ts.map +1 -1
- package/dist/src/presentation/web/components/layouts/app-shell/app-shell.js +4 -1
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts +3 -1
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +2 -2
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.stories.js +2 -0
- package/dist/src/presentation/web/components/ui/toggle-group.d.ts +10 -0
- package/dist/src/presentation/web/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/toggle-group.js +22 -0
- package/dist/src/presentation/web/components/ui/toggle.d.ts +10 -0
- package/dist/src/presentation/web/components/ui/toggle.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/toggle.js +26 -0
- package/dist/translations/ar/cli.json +24 -0
- package/dist/translations/ar/web.json +6 -2
- package/dist/translations/de/cli.json +24 -0
- package/dist/translations/de/web.json +6 -2
- package/dist/translations/en/cli.json +24 -0
- package/dist/translations/en/web.json +6 -2
- package/dist/translations/es/cli.json +24 -0
- package/dist/translations/es/web.json +6 -2
- package/dist/translations/fr/cli.json +24 -0
- package/dist/translations/fr/web.json +6 -2
- package/dist/translations/he/cli.json +24 -0
- package/dist/translations/he/web.json +6 -2
- package/dist/translations/pt/cli.json +24 -0
- package/dist/translations/pt/web.json +6 -2
- package/dist/translations/ru/cli.json +24 -0
- package/dist/translations/ru/web.json +6 -2
- 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 +29 -29
- 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/chat/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +30 -30
- 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 +119 -74
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +2 -1
- 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 +119 -74
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +2 -1
- 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]/[tab]/page/server-reference-manifest.json +28 -28
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
- 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)/chat/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +30 -30
- 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 +119 -74
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +2 -1
- 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 +119 -74
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +2 -1
- 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 +27 -27
- 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]/[tab]/page/server-reference-manifest.json +28 -28
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
- 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 +6 -6
- package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- 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/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +9 -9
- 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 +11 -11
- 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 +11 -11
- 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 +6 -6
- package/web/.next/server/app/version/page.js.nft.json +1 -1
- 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 +1 -1
- 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]__c78383b1._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c78383b1._.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_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/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +3 -3
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1abe77bb._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1abe77bb._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2d0c3840._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2d0c3840._.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]__4ed9b909._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__58a5b819._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__58a5b819._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__67a193c8._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__67a193c8._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__684a868c._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__684a868c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__754fb18e._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__754fb18e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7562afc6._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7562afc6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__8b0aac03._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__96ba046b._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__96ba046b._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c1262d08._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c16bf5de._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c16bf5de._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dffa13c5._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dffa13c5._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_02e01240._.js +1 -1
- package/web/.next/server/chunks/ssr/_02e01240._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_05c23ad9._.js +1 -1
- package/web/.next/server/chunks/ssr/_05c23ad9._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0727935d._.js +1 -1
- package/web/.next/server/chunks/ssr/_0727935d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0dc06d07._.js +1 -1
- package/web/.next/server/chunks/ssr/_0dc06d07._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_423abf07._.js → _11cefd16._.js} +2 -2
- package/web/.next/server/chunks/ssr/_11cefd16._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_12c98a3d._.js +3 -0
- package/web/.next/server/chunks/ssr/_12c98a3d._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_16eb4fec._.js +1 -1
- package/web/.next/server/chunks/ssr/_16eb4fec._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_18886033._.js +1 -1
- package/web/.next/server/chunks/ssr/_18886033._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1e08a336._.js +1 -1
- package/web/.next/server/chunks/ssr/_22e00a14._.js +1 -1
- package/web/.next/server/chunks/ssr/_22e00a14._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_43ba79e7._.js +3 -0
- package/web/.next/server/chunks/ssr/_43ba79e7._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_5119a3df._.js +1 -1
- package/web/.next/server/chunks/ssr/_5119a3df._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
- package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_5eb460b1._.js +3 -0
- package/web/.next/server/chunks/ssr/_5eb460b1._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_3694ac1d._.js → _75f0b0fe._.js} +2 -2
- package/web/.next/server/chunks/ssr/_75f0b0fe._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_997b560b._.js +3 -0
- package/web/.next/server/chunks/ssr/_997b560b._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a5a5901d._.js +1 -1
- package/web/.next/server/chunks/ssr/_a5a5901d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_acc5e43e._.js +9 -0
- package/web/.next/server/chunks/ssr/_acc5e43e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_ad09f271._.js +1 -1
- package/web/.next/server/chunks/ssr/_ad09f271._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_c3f595c6._.js +1 -1
- package/web/.next/server/chunks/ssr/_c3f595c6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_ea9e1556._.js +1 -1
- package/web/.next/server/chunks/ssr/_ea9e1556._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f1ba9be6._.js +2 -2
- package/web/.next/server/chunks/ssr/_f1ba9be6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f33cd07e._.js +2 -2
- package/web/.next/server/chunks/ssr/_f33cd07e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_97d6bed3._.js → _f4086cb6._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_97d6bed3._.js.map → _f4086cb6._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_f8b45233._.js +1 -1
- package/web/.next/server/chunks/ssr/_f8b45233._.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/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
- package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_approve-feature_ts_9453ce8b._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_approve-feature_ts_9453ce8b._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +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_895e5bfa._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.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_db9fa0c2._.js +1 -1
- package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js +1 -1
- package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js.map +1 -1
- 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 +303 -195
- package/web/.next/static/chunks/{d5366257d6b9f855.js → 2a9af061f4fbe7f5.js} +1 -1
- package/web/.next/static/chunks/2ceebcc839ee0d4b.js +1 -0
- package/web/.next/static/chunks/3425e7d1b8c44fcf.js +5 -0
- package/web/.next/static/chunks/387b61bf5fe98489.js +1 -0
- package/web/.next/static/chunks/3ffd3d331ce9991e.js +1 -0
- package/web/.next/static/chunks/{2bf4ef44d86ffc3b.js → 408f0fae9aebd4ce.js} +3 -3
- package/web/.next/static/chunks/7b2ba627f78d1730.js +1 -0
- package/web/.next/static/chunks/84ecdec18d323210.css +1 -0
- package/web/.next/static/chunks/{779b5c49587b074e.js → 884fceb3e6a67215.js} +1 -1
- package/web/.next/static/chunks/{abffc5c232738d87.js → 8a0b6b5e00501f7d.js} +1 -1
- package/web/.next/static/chunks/8b0a9cb5109fe899.js +1 -0
- package/web/.next/static/chunks/{6590ee22b55e119c.js → 9aa8486d10ba7131.js} +1 -1
- package/web/.next/static/chunks/a32e0107a4ad74d3.js +1 -0
- package/web/.next/static/chunks/{ba1873d442ce6a95.js → b1335961d331f89d.js} +1 -1
- package/web/.next/static/chunks/{dbd876611e25a77a.js → c1d5987a3df2faa3.js} +2 -2
- package/web/.next/static/chunks/ec8409b3fd25f477.js +1 -0
- package/web/.next/static/chunks/{2afb3ff30c02d222.js → edb42f3dc7a611e5.js} +1 -1
- package/web/.next/static/chunks/f10474885c41b290.js +7 -0
- package/web/.next/static/chunks/fbbd01277183d8f5.js +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__563e4faf._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__563e4faf._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__821a11c1._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__821a11c1._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__98740ee4._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__98740ee4._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ba9f9e11._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ba9f9e11._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e0be67c7._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e0be67c7._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_3694ac1d._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_423abf07._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_4d49a312._.js +0 -3
- package/web/.next/server/chunks/ssr/_4d49a312._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_9215e9ec._.js +0 -3
- package/web/.next/server/chunks/ssr/_9215e9ec._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_c45aee16._.js +0 -3
- package/web/.next/server/chunks/ssr/_c45aee16._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_cc654b75._.js +0 -9
- package/web/.next/server/chunks/ssr/_cc654b75._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_1300ae39._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules__pnpm_1300ae39._.js.map +0 -1
- package/web/.next/static/chunks/28ae5046faef6cec.js +0 -1
- package/web/.next/static/chunks/57ab723edeb11139.js +0 -5
- package/web/.next/static/chunks/648c64fc71830213.js +0 -1
- package/web/.next/static/chunks/87aab386fe53c79a.js +0 -1
- package/web/.next/static/chunks/89846d73600950d1.js +0 -1
- package/web/.next/static/chunks/966eb2688300b7f5.js +0 -1
- package/web/.next/static/chunks/9ddf7523e76e17a5.js +0 -7
- package/web/.next/static/chunks/9f8caef46056054a.js +0 -1
- package/web/.next/static/chunks/d45bab7ae6805b07.js +0 -1
- package/web/.next/static/chunks/eeadf13c0ea6cbe0.css +0 -1
- /package/web/.next/static/{xUxHXKly7tXyWCOO7vL7O → kNm1fszszwTmqzND9yEZH}/_buildManifest.js +0 -0
- /package/web/.next/static/{xUxHXKly7tXyWCOO7vL7O → kNm1fszszwTmqzND9yEZH}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{xUxHXKly7tXyWCOO7vL7O → kNm1fszszwTmqzND9yEZH}/_ssgManifest.js +0 -0
package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useCallback, useEffect, useRef } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { PaperclipIcon, ChevronsUpDown, CheckIcon,
|
|
5
|
+
import { PaperclipIcon, ChevronsUpDown, CheckIcon, Clock, FolderPlus, Loader2, GitFork, FileText, RefreshCw, } from 'lucide-react';
|
|
6
6
|
import { cn } from '../../../lib/utils.js';
|
|
7
7
|
import { useSoundAction } from '../../../hooks/use-sound-action.js';
|
|
8
8
|
import { BaseDrawer } from '../../common/base-drawer/index.js';
|
|
@@ -23,7 +23,9 @@ import { Separator } from '../../ui/separator.js';
|
|
|
23
23
|
import { pickFolder } from '../../common/add-repository-button/pick-folder.js';
|
|
24
24
|
import { ReactFileManagerDialog } from '../../common/react-file-manager-dialog/index.js';
|
|
25
25
|
import { useFeatureFlags } from '../../../hooks/feature-flags-context.js';
|
|
26
|
+
import { FeatureMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
26
27
|
import { addRepository } from '../../../app/actions/add-repository.js';
|
|
28
|
+
import { ModeSelector } from './mode-selector.js';
|
|
27
29
|
import { pickFiles } from './pick-files.js';
|
|
28
30
|
const MAX_FILE_SIZE = 10 * 1024 * 1024; // 10 MB
|
|
29
31
|
const ALLOWED_EXTENSIONS = new Set([
|
|
@@ -112,7 +114,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
112
114
|
const defaultCiWatch = workflowDefaults?.ciWatchEnabled !== false;
|
|
113
115
|
const defaultEnableEvidence = workflowDefaults?.enableEvidence ?? false;
|
|
114
116
|
const defaultCommitEvidence = workflowDefaults?.commitEvidence ?? false;
|
|
115
|
-
const
|
|
117
|
+
const defaultMode = workflowDefaults?.defaultMode ?? FeatureMode.Fast;
|
|
116
118
|
const [description, setDescription] = useState(initialDescription ?? '');
|
|
117
119
|
// Sync description when initialDescription prop changes (e.g. from session context)
|
|
118
120
|
useEffect(() => {
|
|
@@ -128,7 +130,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
128
130
|
const [enableEvidence, setEnableEvidence] = useState(defaultEnableEvidence);
|
|
129
131
|
const [commitEvidence, setCommitEvidence] = useState(defaultCommitEvidence);
|
|
130
132
|
const [parentId, setParentId] = useState(undefined);
|
|
131
|
-
const [
|
|
133
|
+
const [mode, setMode] = useState(defaultMode);
|
|
132
134
|
const [pending, setPending] = useState(false);
|
|
133
135
|
const [forkAndPr, setForkAndPr] = useState(false);
|
|
134
136
|
const [commitSpecs, setCommitSpecs] = useState(true);
|
|
@@ -153,7 +155,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
153
155
|
setCiWatchEnabled(workflowDefaults.ciWatchEnabled !== false);
|
|
154
156
|
setEnableEvidence(workflowDefaults.enableEvidence);
|
|
155
157
|
setCommitEvidence(workflowDefaults.commitEvidence);
|
|
156
|
-
|
|
158
|
+
setMode(workflowDefaults.defaultMode ?? FeatureMode.Fast);
|
|
157
159
|
}
|
|
158
160
|
}, [workflowDefaults]);
|
|
159
161
|
// Sync localRepos when repositories prop changes
|
|
@@ -203,7 +205,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
203
205
|
setParentId(undefined);
|
|
204
206
|
setSelectedRepoPath(validRepoPath || undefined);
|
|
205
207
|
setLocalRepos(repositories ?? []);
|
|
206
|
-
|
|
208
|
+
setMode(defaultMode);
|
|
207
209
|
setPending(false);
|
|
208
210
|
setForkAndPr(false);
|
|
209
211
|
setCommitSpecs(true);
|
|
@@ -220,7 +222,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
220
222
|
defaultEnableEvidence,
|
|
221
223
|
defaultCiWatch,
|
|
222
224
|
defaultCommitEvidence,
|
|
223
|
-
|
|
225
|
+
defaultMode,
|
|
224
226
|
validRepoPath,
|
|
225
227
|
repositories,
|
|
226
228
|
]);
|
|
@@ -357,7 +359,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
357
359
|
ciWatchEnabled,
|
|
358
360
|
enableEvidence,
|
|
359
361
|
commitEvidence,
|
|
360
|
-
|
|
362
|
+
mode,
|
|
361
363
|
forkAndPr,
|
|
362
364
|
commitSpecs,
|
|
363
365
|
rebaseBeforeBranch,
|
|
@@ -380,7 +382,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
380
382
|
enableEvidence,
|
|
381
383
|
ciWatchEnabled,
|
|
382
384
|
commitEvidence,
|
|
383
|
-
|
|
385
|
+
mode,
|
|
384
386
|
forkAndPr,
|
|
385
387
|
commitSpecs,
|
|
386
388
|
rebaseBeforeBranch,
|
|
@@ -490,8 +492,10 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
490
492
|
validRepoPath.split('/').pop() })] })) : null, _jsxs("div", { role: "region", "aria-label": t('createDrawer.fileDropZone'), "data-drag-over": isDragOver ? 'true' : 'false', onDragEnter: handleDragEnter, onDragLeave: handleDragLeave, onDragOver: handleDragOver, onDrop: handleDrop, className: cn('flex flex-col gap-1.5 rounded-md border-2 border-transparent p-1 transition-colors', isDragOver && 'border-primary/50 bg-primary/5'), children: [_jsx(Label, { htmlFor: "feature-description", className: "text-muted-foreground text-xs font-semibold tracking-wider", children: t('createDrawer.describeFeature') }), _jsxs("div", { ref: promptContainerRef, onFocus: handlePromptFocus, onBlur: handlePromptBlur, className: cn('border-input flex h-56 flex-col overflow-hidden rounded-md border shadow-xs transition-[color,box-shadow]', isPromptFocused && 'ring-ring/50 border-ring ring-[3px]'), children: [_jsx(Textarea, { id: "feature-description", placeholder: t('createDrawer.featurePlaceholder'), value: description, onChange: (e) => setDescription(e.target.value), onPaste: handlePaste, required: true, disabled: isSubmitting, className: "min-h-0 flex-1 resize-none rounded-none border-0 shadow-none focus-visible:ring-0" }), attachments.length > 0 && (_jsx("div", { className: "flex flex-wrap items-center gap-1.5 px-3 py-2", children: attachments.map((file) => (_jsx(AttachmentChip, { name: file.name, size: file.size, mimeType: file.mimeType, path: file.path, onRemove: () => handleRemoveFile(file.id), disabled: isSubmitting, loading: file.loading, notes: file.notes, onNotesChange: (notes) => handleNotesChange(file.id, notes) }, file.id))) })), uploadError ? (_jsx("p", { className: "text-destructive px-3 pb-2 text-xs", children: uploadError })) : null, _jsxs("div", { className: "border-input flex items-center gap-3 border-t px-3 py-1.5", children: [_jsx(AgentModelPicker, { initialAgentType: overrideAgent ?? currentAgentType ?? 'claude-code', initialModel: overrideModel ?? currentModel ?? 'claude-sonnet-4-6', mode: "override", onAgentModelChange: (agent, model) => {
|
|
491
493
|
setOverrideAgent(agent);
|
|
492
494
|
setOverrideModel(model);
|
|
493
|
-
}, disabled: isSubmitting, className: "w-55" }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "ml-auto flex cursor-pointer items-center gap-2", children: [_jsx(Switch, { id: "pending-mode", checked: pending, onCheckedChange: setPending, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "pending-mode", className: "flex cursor-pointer items-center gap-1 text-sm font-medium", children: [_jsx(Clock, { className: "h-3.5 w-3.5" }), t('createDrawer.pendingMode')] })] }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.pendingModeDescription') })] }),
|
|
494
|
-
(
|
|
495
|
+
}, disabled: isSubmitting, className: "w-55" }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "ml-auto flex cursor-pointer items-center gap-2", children: [_jsx(Switch, { id: "pending-mode", checked: pending, onCheckedChange: setPending, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "pending-mode", className: "flex cursor-pointer items-center gap-1 text-sm font-medium", children: [_jsx(Clock, { className: "h-3.5 w-3.5" }), t('createDrawer.pendingMode')] })] }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.pendingModeDescription') })] }), _jsx(ModeSelector, { value: mode, onChange: setMode, disabled: isSubmitting }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: handleAddFiles, disabled: isSubmitting, "aria-label": t('chat.attachFiles'), className: "text-muted-foreground hover:text-foreground cursor-pointer rounded p-1 transition-colors", children: _jsx(PaperclipIcon, { className: "h-4 w-4" }) }) }), _jsx(TooltipContent, { side: "bottom", children: t('chat.attachFiles') })] })] })] })] }), hasFeatures && initialParentId !== undefined ? (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx(Label, { htmlFor: "parent-feature", className: "text-muted-foreground text-xs font-semibold tracking-wider", children: t('createDrawer.parentFeature') }), _jsx(ParentFeatureCombobox, { features: features, value: parentId, onChange: setParentId, disabled: isSubmitting })] })) : null, _jsxs("div", { className: "flex flex-col gap-2", children: [mode !== FeatureMode.Exploration && (_jsxs("div", { className: "border-input flex items-center gap-4 rounded-md border px-3 py-2.5", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "text-muted-foreground w-16 shrink-0 cursor-default text-xs font-semibold tracking-wider", children: t('createDrawer.approve') }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.approveDescription') })] }), _jsx("div", { className: "flex flex-1 items-center gap-4", children: AUTO_APPROVE_OPTIONS.map((opt) => (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: `approve-${opt.id}`, size: "sm", checked: approvalGates[opt.id] ?? false, onCheckedChange: (v) => setApprovalGates((prev) => ({ ...prev, [opt.id]: v })), disabled: isSubmitting ||
|
|
496
|
+
(mode === FeatureMode.Fast &&
|
|
497
|
+
(opt.id === 'allowPrd' || opt.id === 'allowPlan')) }), _jsx(Label, { htmlFor: `approve-${opt.id}`, className: "cursor-pointer text-xs font-medium", children: opt.label })] }) }), _jsx(TooltipContent, { side: "bottom", children: mode === FeatureMode.Fast &&
|
|
498
|
+
(opt.id === 'allowPrd' || opt.id === 'allowPlan')
|
|
495
499
|
? t('createDrawer.skippedInFastMode')
|
|
496
500
|
: opt.description })] }, opt.id))) }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: () => {
|
|
497
501
|
const allOn = AUTO_APPROVE_OPTIONS.every((o) => approvalGates[o.id]);
|
|
@@ -499,7 +503,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
499
503
|
for (const o of AUTO_APPROVE_OPTIONS)
|
|
500
504
|
next[o.id] = !allOn;
|
|
501
505
|
setApprovalGates(next);
|
|
502
|
-
}, disabled: isSubmitting, className: cn('text-muted-foreground hover:text-foreground cursor-pointer rounded px-1.5 py-0.5 text-[10px] font-semibold tracking-wider uppercase transition-colors', AUTO_APPROVE_OPTIONS.every((o) => approvalGates[o.id]) && 'text-primary'), children: t('createDrawer.all') }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.toggleAllApprovalGates') })] })] }), _jsxs("div", { className: "border-input flex items-center gap-4 rounded-md border px-3 py-2.5", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "text-muted-foreground w-16 shrink-0 cursor-default text-xs font-semibold tracking-wider", children: t('createDrawer.evidence') }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.evidenceDescription') })] }), _jsxs("div", { className: "flex flex-1 items-center gap-4", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "enable-evidence", size: "sm", checked: enableEvidence, onCheckedChange: (v) => {
|
|
506
|
+
}, disabled: isSubmitting, className: cn('text-muted-foreground hover:text-foreground cursor-pointer rounded px-1.5 py-0.5 text-[10px] font-semibold tracking-wider uppercase transition-colors', AUTO_APPROVE_OPTIONS.every((o) => approvalGates[o.id]) && 'text-primary'), children: t('createDrawer.all') }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.toggleAllApprovalGates') })] })] })), _jsxs("div", { className: "border-input flex items-center gap-4 rounded-md border px-3 py-2.5", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "text-muted-foreground w-16 shrink-0 cursor-default text-xs font-semibold tracking-wider", children: t('createDrawer.evidence') }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.evidenceDescription') })] }), _jsxs("div", { className: "flex flex-1 items-center gap-4", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "enable-evidence", size: "sm", checked: enableEvidence, onCheckedChange: (v) => {
|
|
503
507
|
setEnableEvidence(v);
|
|
504
508
|
if (!v)
|
|
505
509
|
setCommitEvidence(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-create-drawer.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"feature-create-drawer.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAW9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAgC1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAsDlD,uFAAuF;AACvF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAMhC,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAgBjC,CAAC;AAgBF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAWlC,CAAC;AAkDF,+EAA+E;AAC/E,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAwCF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAM/B,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAgBjC,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAMF,eAAO,MAAM,WAAW,EAAE,KAwCzB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAMF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAU9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,KAatC,CAAC;AAuCF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAM9B,CAAC;AA6BF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAMnC,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAU/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAa9B,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { within, userEvent, fn, expect } from '@storybook/test';
|
|
4
4
|
import { FeatureCreateDrawer } from './feature-create-drawer.js';
|
|
5
|
+
import { FeatureMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
5
6
|
import { Button } from '../../ui/button.js';
|
|
6
7
|
import { DrawerCloseGuardProvider } from '../../../hooks/drawer-close-guard.js';
|
|
7
8
|
/* ---------------------------------------------------------------------------
|
|
@@ -271,7 +272,7 @@ const SAMPLE_WORKFLOW_DEFAULTS = {
|
|
|
271
272
|
ciWatchEnabled: true,
|
|
272
273
|
enableEvidence: true,
|
|
273
274
|
commitEvidence: false,
|
|
274
|
-
|
|
275
|
+
defaultMode: FeatureMode.Fast,
|
|
275
276
|
};
|
|
276
277
|
/**
|
|
277
278
|
* Drawer pre-populated from workflow settings — PRD and Plan approval gates
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FeatureMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
2
|
+
export interface ModeSelectorProps {
|
|
3
|
+
value: FeatureMode;
|
|
4
|
+
onChange: (mode: FeatureMode) => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function ModeSelector({ value, onChange, disabled }: ModeSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=mode-selector.d.ts.map
|
package/dist/src/presentation/web/components/common/feature-create-drawer/mode-selector.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mode-selector.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/mode-selector.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAuBnE,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAmC5E"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ClipboardList, Zap, FlaskConical } from 'lucide-react';
|
|
4
|
+
import { ToggleGroup, ToggleGroupItem } from '../../ui/toggle-group.js';
|
|
5
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../ui/tooltip.js';
|
|
6
|
+
import { FeatureMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
7
|
+
const MODE_OPTIONS = [
|
|
8
|
+
{
|
|
9
|
+
value: FeatureMode.Regular,
|
|
10
|
+
icon: ClipboardList,
|
|
11
|
+
label: 'Regular',
|
|
12
|
+
description: 'Full SDLC — requirements, research, planning, implementation, and review.',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
value: FeatureMode.Fast,
|
|
16
|
+
icon: Zap,
|
|
17
|
+
label: 'Fast',
|
|
18
|
+
description: 'Direct implementation — skip SDLC phases, go straight to code.',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
value: FeatureMode.Exploration,
|
|
22
|
+
icon: FlaskConical,
|
|
23
|
+
label: 'Explore',
|
|
24
|
+
description: 'Iterative prototyping — generate quick prototypes and iterate with feedback.',
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
export function ModeSelector({ value, onChange, disabled }) {
|
|
28
|
+
return (_jsx(TooltipProvider, { delayDuration: 300, children: _jsx(ToggleGroup, { type: "single", variant: "outline", size: "sm", value: value, onValueChange: (v) => {
|
|
29
|
+
// ToggleGroup emits empty string when clicking the already-selected item — ignore it
|
|
30
|
+
if (v)
|
|
31
|
+
onChange(v);
|
|
32
|
+
}, disabled: disabled, "aria-label": "Feature mode", "data-testid": "mode-selector", children: MODE_OPTIONS.map((opt) => (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs(ToggleGroupItem, { value: opt.value, "aria-label": opt.label, "data-testid": `mode-option-${opt.value.toLowerCase()}`, className: "flex items-center gap-1 px-2 text-xs", children: [_jsx(opt.icon, { className: "h-3.5 w-3.5" }), opt.label] }) }), _jsx(TooltipContent, { side: "bottom", children: opt.description })] }, opt.value))) }) }));
|
|
33
|
+
}
|
package/dist/src/presentation/web/components/common/feature-create-drawer/mode-selector.stories.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ModeSelector } from './mode-selector.js';
|
|
3
|
+
declare const meta: Meta<typeof ModeSelector>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ModeSelector>;
|
|
6
|
+
export declare const Regular: Story;
|
|
7
|
+
export declare const Fast: Story;
|
|
8
|
+
export declare const Exploration: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
//# sourceMappingURL=mode-selector.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mode-selector.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/mode-selector.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAOnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAO3C,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC"}
|
package/dist/src/presentation/web/components/common/feature-create-drawer/mode-selector.stories.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { ModeSelector } from './mode-selector.js';
|
|
4
|
+
import { FeatureMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Drawers/Feature/ModeSelector',
|
|
7
|
+
component: ModeSelector,
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
function InteractiveModeSelector({ initial = FeatureMode.Fast }) {
|
|
15
|
+
const [mode, setMode] = useState(initial);
|
|
16
|
+
return _jsx(ModeSelector, { value: mode, onChange: setMode });
|
|
17
|
+
}
|
|
18
|
+
export const Regular = {
|
|
19
|
+
render: () => _jsx(InteractiveModeSelector, { initial: FeatureMode.Regular }),
|
|
20
|
+
};
|
|
21
|
+
export const Fast = {
|
|
22
|
+
render: () => _jsx(InteractiveModeSelector, { initial: FeatureMode.Fast }),
|
|
23
|
+
};
|
|
24
|
+
export const Exploration = {
|
|
25
|
+
render: () => _jsx(InteractiveModeSelector, { initial: FeatureMode.Exploration }),
|
|
26
|
+
};
|
|
27
|
+
export const Disabled = {
|
|
28
|
+
args: {
|
|
29
|
+
value: FeatureMode.Fast,
|
|
30
|
+
onChange: () => undefined,
|
|
31
|
+
disabled: true,
|
|
32
|
+
},
|
|
33
|
+
};
|
package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { TechDecisionsReviewData } from '../../common/tech-decisions-review
|
|
|
5
5
|
import type { ProductDecisionsSummaryData } from '../../common/product-decisions-summary/index.js';
|
|
6
6
|
import type { MergeReviewData } from '../../common/merge-review/index.js';
|
|
7
7
|
import type { RejectAttachment } from '../../common/drawer-action-bar/index.js';
|
|
8
|
+
import type { FeatureMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
8
9
|
import type { FeatureTabKey } from '../../common/control-center-drawer/drawer-view.js';
|
|
9
10
|
import type { BranchSyncData } from '../../../hooks/use-branch-sync-status.js';
|
|
10
11
|
export interface FeatureDrawerTabsProps {
|
|
@@ -48,8 +49,12 @@ export interface FeatureDrawerTabsProps {
|
|
|
48
49
|
isRejecting?: boolean;
|
|
49
50
|
chatInput?: string;
|
|
50
51
|
onChatInputChange?: (value: string) => void;
|
|
52
|
+
onSubmitFeedback?: (feedback: string) => Promise<void>;
|
|
53
|
+
onPromote?: (targetMode: FeatureMode.Regular | FeatureMode.Fast) => Promise<void>;
|
|
54
|
+
onDiscardExploration?: () => Promise<void>;
|
|
55
|
+
isPrototypeSubmitting?: boolean;
|
|
51
56
|
/** When false, the Chat tab is hidden from the tab bar (FR-17). Defaults to true. */
|
|
52
57
|
interactiveAgentEnabled?: boolean;
|
|
53
58
|
}
|
|
54
|
-
export declare function FeatureDrawerTabs({ featureName, headerContent, featureNode, featureId, initialTab, urlTab, prdData, prdSelections, onPrdSelect, onPrdApprove, onPrdReject, isPrdLoading, techData, onTechApprove, onTechReject, isTechLoading, productData, mergeData, onMergeApprove, onMergeReject, isMergeLoading, syncStatus, syncLoading, syncError, onRefreshSync, onRebaseOnMain, rebaseLoading, rebaseError, isRejecting, chatInput, onChatInputChange, sseEvents, interactiveAgentEnabled, onRetry, onStop, onStart, }: FeatureDrawerTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare function FeatureDrawerTabs({ featureName, headerContent, featureNode, featureId, initialTab, urlTab, prdData, prdSelections, onPrdSelect, onPrdApprove, onPrdReject, isPrdLoading, techData, onTechApprove, onTechReject, isTechLoading, productData, mergeData, onMergeApprove, onMergeReject, isMergeLoading, syncStatus, syncLoading, syncError, onRefreshSync, onRebaseOnMain, rebaseLoading, rebaseError, isRejecting, chatInput, onChatInputChange, sseEvents, onSubmitFeedback, onPromote, onDiscardExploration, isPrototypeSubmitting, interactiveAgentEnabled, onRetry, onStop, onStart, }: FeatureDrawerTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
55
60
|
//# sourceMappingURL=feature-drawer-tabs.d.ts.map
|
package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-drawer-tabs.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"feature-drawer-tabs.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAU9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAMxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAUxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAuErE,MAAM,WAAW,sBAAsB;IACrC,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,WAAW,EAAE,eAAe,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,UAAU,CAAC,EA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
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useEffect, useCallback, useRef, useMemo } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { usePathname } from 'next/navigation';
|
|
6
|
-
import { Loader2, AlertCircle, LayoutDashboard, Activity, ScrollText, Map, FileCheck, Cpu, Package, GitMerge, MessageSquare, Play, Square, RotateCcw, Zap, Layers, } from 'lucide-react';
|
|
6
|
+
import { Loader2, AlertCircle, LayoutDashboard, Activity, ScrollText, Map, FileCheck, Cpu, Package, GitMerge, MessageSquare, Play, Square, RotateCcw, Zap, Layers, FlaskConical, } from 'lucide-react';
|
|
7
7
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from '../../ui/tabs.js';
|
|
8
8
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../ui/tooltip.js';
|
|
9
9
|
import { getFeaturePhaseTimings } from '../../../app/actions/get-feature-phase-timings.js';
|
|
@@ -20,12 +20,14 @@ import { OverviewTab } from './overview-tab.js';
|
|
|
20
20
|
import { ActivityTab } from './activity-tab.js';
|
|
21
21
|
import { LogTab } from './log-tab.js';
|
|
22
22
|
import { PlanTab } from './plan-tab.js';
|
|
23
|
+
import { PrototypeTab } from './prototype-tab.js';
|
|
23
24
|
import { ChatTab } from '../../features/chat/ChatTab.js';
|
|
24
25
|
import { useFeatureLogs } from '../../../hooks/use-feature-logs.js';
|
|
25
26
|
import { useTabDataFetch } from './use-tab-data-fetch.js';
|
|
26
27
|
/** All possible tabs in display order. */
|
|
27
28
|
const ALL_TABS = [
|
|
28
29
|
{ key: 'overview', label: 'Overview', icon: LayoutDashboard },
|
|
30
|
+
{ key: 'prototype', label: 'Prototype', icon: FlaskConical },
|
|
29
31
|
{ key: 'activity', label: 'Activity', icon: Activity },
|
|
30
32
|
{ key: 'log', label: 'Log', icon: ScrollText },
|
|
31
33
|
{ key: 'plan', label: 'Plan', icon: Map },
|
|
@@ -37,7 +39,17 @@ const ALL_TABS = [
|
|
|
37
39
|
];
|
|
38
40
|
/** Compute which tabs are visible based on feature lifecycle + state. */
|
|
39
41
|
function computeVisibleTabs(node, interactiveAgentEnabled = true) {
|
|
40
|
-
const tabs = ['overview'
|
|
42
|
+
const tabs = ['overview'];
|
|
43
|
+
// Exploration mode: show prototype tab, skip SDLC-specific tabs
|
|
44
|
+
if (node.lifecycle === 'exploring') {
|
|
45
|
+
tabs.push('prototype', 'activity');
|
|
46
|
+
if (node.hasAgentRun)
|
|
47
|
+
tabs.push('log');
|
|
48
|
+
if (interactiveAgentEnabled)
|
|
49
|
+
tabs.push('chat');
|
|
50
|
+
return tabs;
|
|
51
|
+
}
|
|
52
|
+
tabs.push('activity');
|
|
41
53
|
if (node.hasAgentRun) {
|
|
42
54
|
tabs.push('log');
|
|
43
55
|
}
|
|
@@ -78,7 +90,7 @@ const TAB_FETCHERS = {
|
|
|
78
90
|
activity: fetchActivity,
|
|
79
91
|
plan: fetchPlan,
|
|
80
92
|
};
|
|
81
|
-
export function FeatureDrawerTabs({ featureName, headerContent, featureNode, featureId, initialTab, urlTab, prdData, prdSelections, onPrdSelect, onPrdApprove, onPrdReject, isPrdLoading, techData, onTechApprove, onTechReject, isTechLoading, productData, mergeData, onMergeApprove, onMergeReject, isMergeLoading, syncStatus, syncLoading, syncError, onRefreshSync, onRebaseOnMain, rebaseLoading, rebaseError, isRejecting, chatInput, onChatInputChange, sseEvents, interactiveAgentEnabled = true, onRetry, onStop, onStart, }) {
|
|
93
|
+
export function FeatureDrawerTabs({ featureName, headerContent, featureNode, featureId, initialTab, urlTab, prdData, prdSelections, onPrdSelect, onPrdApprove, onPrdReject, isPrdLoading, techData, onTechApprove, onTechReject, isTechLoading, productData, mergeData, onMergeApprove, onMergeReject, isMergeLoading, syncStatus, syncLoading, syncError, onRefreshSync, onRebaseOnMain, rebaseLoading, rebaseError, isRejecting, chatInput, onChatInputChange, sseEvents, onSubmitFeedback, onPromote, onDiscardExploration, isPrototypeSubmitting, interactiveAgentEnabled = true, onRetry, onStop, onStart, }) {
|
|
82
94
|
const pathname = usePathname();
|
|
83
95
|
const visibleTabs = useMemo(() => computeVisibleTabs(featureNode, interactiveAgentEnabled), [featureNode, interactiveAgentEnabled]);
|
|
84
96
|
const visibleTabDefs = useMemo(() => ALL_TABS.filter((t) => visibleTabs.includes(t.key)).map((t) => t.key === 'merge-review' && featureNode.lifecycle === 'maintain'
|
|
@@ -263,7 +275,7 @@ export function FeatureDrawerTabs({ featureName, headerContent, featureNode, fea
|
|
|
263
275
|
return _jsx(I, { className: "size-3.5 shrink-0" });
|
|
264
276
|
})()), featureNodeStateConfig[featureNode.state].label] }), featureNode.state === 'pending' && onStart ? (_jsxs("button", { type: "button", onClick: () => onStart(featureNode.featureId), className: "text-muted-foreground flex items-center gap-1 self-stretch px-3 hover:bg-green-500/10 hover:text-green-600 dark:hover:text-green-400", "data-testid": "feature-drawer-start-button", children: [_jsx(Play, { className: "size-3.5" }), " Start"] })) : featureNode.state === 'error' && onRetry ? (_jsxs("button", { type: "button", onClick: () => onRetry(featureNode.featureId), className: "text-muted-foreground flex items-center gap-1 self-stretch px-3 hover:bg-red-500/10 hover:text-red-500 dark:hover:text-red-400", "data-testid": "feature-drawer-retry-button", children: [_jsx(RotateCcw, { className: "size-3.5" }), " Retry"] })) : featureNode.state === 'running' && onStop ? (_jsxs("button", { type: "button", onClick: () => onStop(featureNode.featureId), className: "text-muted-foreground flex items-center gap-1 self-stretch px-3 hover:bg-red-500/10 hover:text-red-500 dark:hover:text-red-400", "data-testid": "feature-drawer-stop-button", children: [_jsx(Square, { className: "size-3.5" }), " Stop"] })) : null] }) }), featureNode.errorMessage ? (_jsxs(TooltipContent, { side: "bottom", align: "end", sideOffset: 4, className: "z-[100] max-w-xs cursor-pointer text-xs leading-relaxed select-text", onClick: () => {
|
|
265
277
|
void navigator.clipboard.writeText(featureNode.errorMessage);
|
|
266
|
-
}, children: [featureNode.errorMessage, _jsx("span", { className: "text-muted-foreground ml-1 text-[10px] italic", children: "(click to copy)" })] })) : null] }) })] })) : null, headerContent] }), _jsx(TabsContent, { value: "overview", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(OverviewTab, { data: featureNode, syncStatus: syncStatus, syncLoading: syncLoading, syncError: syncError, onRefreshSync: onRefreshSync, onRebaseOnMain: onRebaseOnMain, rebaseLoading: rebaseLoading, rebaseError: rebaseError }) }), _jsx(TabsContent, { value: "activity", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(ActivityTab, { timings: tabs.activity.data?.timings ?? null, loading: tabs.activity.loading, error: tabs.activity.error, rejectionFeedback: tabs.activity.data?.rejectionFeedback }) }), _jsx(TabsContent, { value: "log", className: "mt-0 flex-1 overflow-hidden", children: _jsx(LogTab, { content: featureLogs.content, isConnected: featureLogs.isConnected, error: featureLogs.error }) }), _jsx(TabsContent, { value: "plan", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(PlanTab, { plan: tabs.plan.data, loading: tabs.plan.loading, error: tabs.plan.error }) }), visibleTabs.includes('prd-review') ? (_jsx(TabsContent, { value: "prd-review", className: "mt-0 flex min-h-0 flex-1 flex-col", children: prdData ? (_jsx(PrdQuestionnaire, { data: prdData, selections: prdSelections ?? {}, onSelect: onPrdSelect ?? (() => undefined), onApprove: onPrdApprove ?? (() => undefined), onReject: onPrdReject, isProcessing: isPrdLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) })) : null, visibleTabs.includes('tech-decisions') ? (_jsx(TabsContent, { value: "tech-decisions", className: "mt-0 flex min-h-0 flex-1 flex-col", children: techData ? (_jsxs("div", { className: "flex min-h-0 flex-1 flex-col", children: [_jsx("div", { className: "flex-1 overflow-y-auto", children: _jsx(TechDecisionsContent, { data: techData }) }), _jsx(DrawerActionBarForTech, { onApprove: onTechApprove ?? (() => undefined), onReject: onTechReject, isProcessing: isTechLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })] })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) })) : null, visibleTabs.includes('product-decisions') ? (_jsx(TabsContent, { value: "product-decisions", className: "mt-0 flex-1 overflow-y-auto", children: productData === null ? (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) : productData ? (_jsx(ProductDecisionsSummary, { data: productData })) : (_jsx("p", { className: "text-muted-foreground p-4 text-center text-sm", children: "No product decisions available." })) })) : null, visibleTabs.includes('merge-review') ? (_jsx(TabsContent, { value: "merge-review", className: "mt-0 flex min-h-0 flex-1 flex-col", children: mergeData ? (_jsx(MergeReview, { data: mergeData, readOnly: featureNode.lifecycle === 'maintain', onApprove: onMergeApprove ?? (() => undefined), onReject: onMergeReject, isProcessing: isMergeLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: isMergeLoading ? (_jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" })) : (_jsxs("div", { className: "text-muted-foreground flex flex-col items-center gap-2 text-sm", children: [_jsx(AlertCircle, { className: "h-6 w-6" }), _jsx("span", { children: "Merge review data unavailable" })] })) })) })) : null, visibleTabs.includes('chat') ? (_jsx(TabsContent, { value: "chat", className: "mt-0 flex min-h-0 flex-1 flex-col overflow-hidden", children: _jsx(ChatTab, { featureId: featureId, worktreePath: featureNode.worktreePath }) })) : null] }) }));
|
|
278
|
+
}, children: [featureNode.errorMessage, _jsx("span", { className: "text-muted-foreground ml-1 text-[10px] italic", children: "(click to copy)" })] })) : null] }) })] })) : null, headerContent] }), _jsx(TabsContent, { value: "overview", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(OverviewTab, { data: featureNode, syncStatus: syncStatus, syncLoading: syncLoading, syncError: syncError, onRefreshSync: onRefreshSync, onRebaseOnMain: onRebaseOnMain, rebaseLoading: rebaseLoading, rebaseError: rebaseError }) }), visibleTabs.includes('prototype') ? (_jsx(TabsContent, { value: "prototype", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(PrototypeTab, { data: featureNode, onSubmitFeedback: onSubmitFeedback, onPromote: onPromote, onDiscard: onDiscardExploration, isSubmitting: isPrototypeSubmitting }) })) : null, _jsx(TabsContent, { value: "activity", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(ActivityTab, { timings: tabs.activity.data?.timings ?? null, loading: tabs.activity.loading, error: tabs.activity.error, rejectionFeedback: tabs.activity.data?.rejectionFeedback }) }), _jsx(TabsContent, { value: "log", className: "mt-0 flex-1 overflow-hidden", children: _jsx(LogTab, { content: featureLogs.content, isConnected: featureLogs.isConnected, error: featureLogs.error }) }), _jsx(TabsContent, { value: "plan", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(PlanTab, { plan: tabs.plan.data, loading: tabs.plan.loading, error: tabs.plan.error }) }), visibleTabs.includes('prd-review') ? (_jsx(TabsContent, { value: "prd-review", className: "mt-0 flex min-h-0 flex-1 flex-col", children: prdData ? (_jsx(PrdQuestionnaire, { data: prdData, selections: prdSelections ?? {}, onSelect: onPrdSelect ?? (() => undefined), onApprove: onPrdApprove ?? (() => undefined), onReject: onPrdReject, isProcessing: isPrdLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) })) : null, visibleTabs.includes('tech-decisions') ? (_jsx(TabsContent, { value: "tech-decisions", className: "mt-0 flex min-h-0 flex-1 flex-col", children: techData ? (_jsxs("div", { className: "flex min-h-0 flex-1 flex-col", children: [_jsx("div", { className: "flex-1 overflow-y-auto", children: _jsx(TechDecisionsContent, { data: techData }) }), _jsx(DrawerActionBarForTech, { onApprove: onTechApprove ?? (() => undefined), onReject: onTechReject, isProcessing: isTechLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })] })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) })) : null, visibleTabs.includes('product-decisions') ? (_jsx(TabsContent, { value: "product-decisions", className: "mt-0 flex-1 overflow-y-auto", children: productData === null ? (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) : productData ? (_jsx(ProductDecisionsSummary, { data: productData })) : (_jsx("p", { className: "text-muted-foreground p-4 text-center text-sm", children: "No product decisions available." })) })) : null, visibleTabs.includes('merge-review') ? (_jsx(TabsContent, { value: "merge-review", className: "mt-0 flex min-h-0 flex-1 flex-col", children: mergeData ? (_jsx(MergeReview, { data: mergeData, readOnly: featureNode.lifecycle === 'maintain', onApprove: onMergeApprove ?? (() => undefined), onReject: onMergeReject, isProcessing: isMergeLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: isMergeLoading ? (_jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" })) : (_jsxs("div", { className: "text-muted-foreground flex flex-col items-center gap-2 text-sm", children: [_jsx(AlertCircle, { className: "h-6 w-6" }), _jsx("span", { children: "Merge review data unavailable" })] })) })) })) : null, visibleTabs.includes('chat') ? (_jsx(TabsContent, { value: "chat", className: "mt-0 flex min-h-0 flex-1 flex-col overflow-hidden", children: _jsx(ChatTab, { featureId: featureId, worktreePath: featureNode.worktreePath }) })) : null] }) }));
|
|
267
279
|
}
|
|
268
280
|
// ── Private helper ──────────────────────────────────────────────────────
|
|
269
281
|
function DrawerActionBarForTech({ onApprove, onReject, isProcessing, isRejecting, chatInput, onChatInputChange, }) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FeatureMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
2
|
+
import type { FeatureNodeData } from '../../common/feature-node/index.js';
|
|
3
|
+
export interface PrototypeTabProps {
|
|
4
|
+
data: FeatureNodeData;
|
|
5
|
+
onSubmitFeedback?: (feedback: string) => Promise<void>;
|
|
6
|
+
onPromote?: (targetMode: FeatureMode.Regular | FeatureMode.Fast) => Promise<void>;
|
|
7
|
+
onDiscard?: () => Promise<void>;
|
|
8
|
+
isSubmitting?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function PrototypeTab({ data, onSubmitFeedback, onPromote, onDiscard, isSubmitting, }: PrototypeTabProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=prototype-tab.d.ts.map
|
package/dist/src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prototype-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,eAAe,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClF,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,YAAoB,GACrB,EAAE,iBAAiB,2CAyKnB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useCallback } from 'react';
|
|
4
|
+
import { FlaskConical, ArrowUpRight, Trash2, Loader2, Send } from 'lucide-react';
|
|
5
|
+
import { Button } from '../../ui/button.js';
|
|
6
|
+
import { Textarea } from '../../ui/textarea.js';
|
|
7
|
+
import { Badge } from '../../ui/badge.js';
|
|
8
|
+
import { Separator } from '../../ui/separator.js';
|
|
9
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from '../../ui/alert-dialog.js';
|
|
10
|
+
import { FeatureMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
11
|
+
export function PrototypeTab({ data, onSubmitFeedback, onPromote, onDiscard, isSubmitting = false, }) {
|
|
12
|
+
const [feedback, setFeedback] = useState('');
|
|
13
|
+
const [discardDialogOpen, setDiscardDialogOpen] = useState(false);
|
|
14
|
+
const [promoteDialogOpen, setPromoteDialogOpen] = useState(false);
|
|
15
|
+
const handleSubmitFeedback = useCallback(async () => {
|
|
16
|
+
if (!feedback.trim() || !onSubmitFeedback)
|
|
17
|
+
return;
|
|
18
|
+
await onSubmitFeedback(feedback.trim());
|
|
19
|
+
setFeedback('');
|
|
20
|
+
}, [feedback, onSubmitFeedback]);
|
|
21
|
+
const handlePromote = useCallback(async (targetMode) => {
|
|
22
|
+
setPromoteDialogOpen(false);
|
|
23
|
+
await onPromote?.(targetMode);
|
|
24
|
+
}, [onPromote]);
|
|
25
|
+
const handleDiscard = useCallback(async () => {
|
|
26
|
+
setDiscardDialogOpen(false);
|
|
27
|
+
await onDiscard?.();
|
|
28
|
+
}, [onDiscard]);
|
|
29
|
+
const isWaitingFeedback = data.state === 'action-required' && data.lifecycle === 'exploring';
|
|
30
|
+
const isGenerating = data.state === 'running' && data.lifecycle === 'exploring';
|
|
31
|
+
return (_jsxs("div", { className: "flex flex-col gap-4 p-4", "data-testid": "prototype-tab", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FlaskConical, { className: "h-4 w-4 text-amber-500" }), _jsx("span", { className: "text-sm font-medium", children: "Exploration Prototype" }), (data.iterationCount ?? 0) > 0 && (_jsxs(Badge, { variant: "secondary", "data-testid": "prototype-iteration-badge", children: ["Iteration ", data.iterationCount] })), isGenerating ? (_jsxs(Badge, { variant: "outline", className: "text-teal-600 dark:text-teal-400", children: [_jsx(Loader2, { className: "mr-1 h-3 w-3 animate-spin" }), "Generating..."] })) : null, isWaitingFeedback ? (_jsx(Badge, { variant: "outline", className: "text-amber-600 dark:text-amber-400", children: "Awaiting feedback" })) : null] }), _jsx(Separator, {}), _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("label", { htmlFor: "prototype-feedback", className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "Feedback" }), _jsx(Textarea, { id: "prototype-feedback", placeholder: isWaitingFeedback
|
|
32
|
+
? 'Describe what to change in the next iteration...'
|
|
33
|
+
: 'Feedback can be submitted when the prototype is ready for review.', value: feedback, onChange: (e) => setFeedback(e.target.value), disabled: !isWaitingFeedback || isSubmitting, className: "min-h-24 resize-none", "data-testid": "prototype-feedback-input" }), _jsxs(Button, { onClick: handleSubmitFeedback, disabled: !feedback.trim() || !isWaitingFeedback || isSubmitting, size: "sm", className: "self-end", "data-testid": "prototype-submit-feedback", children: [isSubmitting ? (_jsx(Loader2, { className: "mr-1 h-3.5 w-3.5 animate-spin" })) : (_jsx(Send, { className: "mr-1 h-3.5 w-3.5" })), "Send Feedback"] })] }), _jsx(Separator, {}), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs(Button, { variant: "default", size: "sm", onClick: () => setPromoteDialogOpen(true), disabled: !isWaitingFeedback || isSubmitting, "data-testid": "prototype-promote-button", children: [_jsx(ArrowUpRight, { className: "mr-1 h-3.5 w-3.5" }), "Promote to Feature"] }), _jsxs(Button, { variant: "outline", size: "sm", onClick: () => setDiscardDialogOpen(true), disabled: isSubmitting, className: "text-destructive hover:text-destructive", "data-testid": "prototype-discard-button", children: [_jsx(Trash2, { className: "mr-1 h-3.5 w-3.5" }), "Discard"] })] }), _jsx(AlertDialog, { open: promoteDialogOpen, onOpenChange: setPromoteDialogOpen, children: _jsxs(AlertDialogContent, { children: [_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: "Promote to Feature" }), _jsx(AlertDialogDescription, { children: "Choose the mode for the promoted feature. The prototype code will be preserved as the starting point." })] }), _jsxs(AlertDialogFooter, { className: "flex-col gap-2 sm:flex-row", children: [_jsx(AlertDialogCancel, { children: "Cancel" }), _jsx(AlertDialogAction, { onClick: () => handlePromote(FeatureMode.Fast), "data-testid": "promote-fast", children: "Fast (Direct Implementation)" }), _jsx(AlertDialogAction, { onClick: () => handlePromote(FeatureMode.Regular), "data-testid": "promote-regular", children: "Regular (Full SDLC)" })] })] }) }), _jsx(AlertDialog, { open: discardDialogOpen, onOpenChange: setDiscardDialogOpen, children: _jsxs(AlertDialogContent, { children: [_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: "Discard Exploration?" }), _jsx(AlertDialogDescription, { children: "This will delete the exploration feature, its worktree, and all prototype code. This action cannot be undone." })] }), _jsxs(AlertDialogFooter, { children: [_jsx(AlertDialogCancel, { children: "Cancel" }), _jsx(AlertDialogAction, { onClick: handleDiscard, className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", "data-testid": "discard-confirm", children: "Discard" })] })] }) })] }));
|
|
34
|
+
}
|
package/dist/src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.stories.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PrototypeTab } from './prototype-tab.js';
|
|
3
|
+
declare const meta: Meta<typeof PrototypeTab>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PrototypeTab>;
|
|
6
|
+
/** First iteration — prototype just generated, awaiting feedback. */
|
|
7
|
+
export declare const FirstIteration: Story;
|
|
8
|
+
/** Mid-iteration — user has given multiple rounds of feedback. */
|
|
9
|
+
export declare const MidIteration: Story;
|
|
10
|
+
/** Generating — the agent is currently producing a prototype. */
|
|
11
|
+
export declare const Generating: Story;
|
|
12
|
+
/** Submitting feedback — loading state while feedback is being sent. */
|
|
13
|
+
export declare const Submitting: Story;
|
|
14
|
+
/** Zero iterations — just created, no prototype yet. */
|
|
15
|
+
export declare const ZeroIterations: Story;
|
|
16
|
+
//# sourceMappingURL=prototype-tab.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prototype-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAOnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAe3C,qEAAqE;AACrE,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC;AAEF,iEAAiE;AACjE,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC"}
|
package/dist/src/presentation/web/components/common/feature-drawer-tabs/prototype-tab.stories.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { fn } from '@storybook/test';
|
|
2
|
+
import { PrototypeTab } from './prototype-tab.js';
|
|
3
|
+
import { FeatureMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Drawers/Feature/PrototypeTab',
|
|
6
|
+
component: PrototypeTab,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: 'centered',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
const baseExplorationData = {
|
|
14
|
+
name: 'Workspace grouping prototype',
|
|
15
|
+
description: 'Explore different UI approaches for grouping repos into workspaces',
|
|
16
|
+
featureId: 'abc123',
|
|
17
|
+
lifecycle: 'exploring',
|
|
18
|
+
state: 'action-required',
|
|
19
|
+
progress: 0,
|
|
20
|
+
repositoryPath: '/home/user/project',
|
|
21
|
+
branch: 'feat/explore-workspace-grouping',
|
|
22
|
+
mode: FeatureMode.Exploration,
|
|
23
|
+
iterationCount: 1,
|
|
24
|
+
};
|
|
25
|
+
/** First iteration — prototype just generated, awaiting feedback. */
|
|
26
|
+
export const FirstIteration = {
|
|
27
|
+
args: {
|
|
28
|
+
data: { ...baseExplorationData, iterationCount: 1 },
|
|
29
|
+
onSubmitFeedback: fn(),
|
|
30
|
+
onPromote: fn(),
|
|
31
|
+
onDiscard: fn(),
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
/** Mid-iteration — user has given multiple rounds of feedback. */
|
|
35
|
+
export const MidIteration = {
|
|
36
|
+
args: {
|
|
37
|
+
data: { ...baseExplorationData, iterationCount: 5 },
|
|
38
|
+
onSubmitFeedback: fn(),
|
|
39
|
+
onPromote: fn(),
|
|
40
|
+
onDiscard: fn(),
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
/** Generating — the agent is currently producing a prototype. */
|
|
44
|
+
export const Generating = {
|
|
45
|
+
args: {
|
|
46
|
+
data: { ...baseExplorationData, state: 'running', iterationCount: 3 },
|
|
47
|
+
onSubmitFeedback: fn(),
|
|
48
|
+
onPromote: fn(),
|
|
49
|
+
onDiscard: fn(),
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
/** Submitting feedback — loading state while feedback is being sent. */
|
|
53
|
+
export const Submitting = {
|
|
54
|
+
args: {
|
|
55
|
+
data: { ...baseExplorationData, iterationCount: 2 },
|
|
56
|
+
onSubmitFeedback: fn(),
|
|
57
|
+
onPromote: fn(),
|
|
58
|
+
onDiscard: fn(),
|
|
59
|
+
isSubmitting: true,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
/** Zero iterations — just created, no prototype yet. */
|
|
63
|
+
export const ZeroIterations = {
|
|
64
|
+
args: {
|
|
65
|
+
data: { ...baseExplorationData, state: 'running', iterationCount: 0 },
|
|
66
|
+
onSubmitFeedback: fn(),
|
|
67
|
+
onPromote: fn(),
|
|
68
|
+
onDiscard: fn(),
|
|
69
|
+
},
|
|
70
|
+
};
|
package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive-feature-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/derive-feature-state.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAIL,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAE3F;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,EAC1B,OAAO,CAAC,EAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,GACjC,gBAAgB,CAiElB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAYvD;AAED,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,qBAAqB,GAAG,gBAAgB,CAsBtF;AAED,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"derive-feature-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/derive-feature-state.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAIL,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAE3F;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,EAC1B,OAAO,CAAC,EAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,GACjC,gBAAgB,CAiElB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAYvD;AAED,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,qBAAqB,GAAG,gBAAgB,CAsBtF;AAED,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAUlE,CAAC;AAiBF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,IAAI,GAAG,qBAAqB,CAQ7F;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACpC,SAAS,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC7C,SAAS,EAAE,qBAAqB,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,qBAAqB,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,GAC7F,cAAc,EAAE,CAmBlB;AAED,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,MAAM,GAAG,SAAS,GAC5B,qBAAqB,GAAG,SAAS,CAGnC"}
|
|
@@ -124,6 +124,7 @@ export const sdlcLifecycleMap = {
|
|
|
124
124
|
'Deploy & QA': 'deploy',
|
|
125
125
|
Maintain: 'maintain',
|
|
126
126
|
Pending: 'pending',
|
|
127
|
+
Exploring: 'exploring',
|
|
127
128
|
Archived: 'maintain',
|
|
128
129
|
};
|
|
129
130
|
/** Map agent graph node names (from agent_run.result or SSE phaseName) to UI lifecycle phases. */
|
|
@@ -137,6 +138,7 @@ const phaseNameToLifecycle = {
|
|
|
137
138
|
maintain: 'maintain',
|
|
138
139
|
blocked: 'requirements',
|
|
139
140
|
pending: 'pending',
|
|
141
|
+
exploring: 'exploring',
|
|
140
142
|
archived: 'maintain',
|
|
141
143
|
};
|
|
142
144
|
/**
|
package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type LucideIcon } from 'lucide-react';
|
|
2
2
|
import type { Node } from '@xyflow/react';
|
|
3
|
-
import type { PrStatus, CiStatus, DeploymentState } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
3
|
+
import type { PrStatus, CiStatus, DeploymentState, FeatureMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
4
4
|
import type { AgentTypeValue } from './agent-type-icons.js';
|
|
5
5
|
export type FeatureNodeState = 'creating' | 'running' | 'action-required' | 'done' | 'blocked' | 'pending' | 'error' | 'deleting' | 'archived';
|
|
6
|
-
export type FeatureLifecyclePhase = 'pending' | 'requirements' | 'research' | 'implementation' | 'review' | 'awaitingUpstream' | 'deploy' | 'maintain';
|
|
6
|
+
export type FeatureLifecyclePhase = 'pending' | 'requirements' | 'research' | 'implementation' | 'review' | 'awaitingUpstream' | 'deploy' | 'maintain' | 'exploring';
|
|
7
7
|
/** Human-readable display labels for lifecycle phases. */
|
|
8
8
|
export declare const lifecycleDisplayLabels: Record<FeatureLifecyclePhase, string>;
|
|
9
9
|
/** Inline-start border color for each lifecycle phase. */
|
|
@@ -51,6 +51,10 @@ export interface FeatureNodeData {
|
|
|
51
51
|
errorMessage?: string;
|
|
52
52
|
/** Whether the feature was created in fast mode (skip SDLC phases). */
|
|
53
53
|
fastMode?: boolean;
|
|
54
|
+
/** Feature execution mode (Regular, Fast, Exploration). */
|
|
55
|
+
mode?: FeatureMode;
|
|
56
|
+
/** Current feedback iteration count in exploration mode. */
|
|
57
|
+
iterationCount?: number;
|
|
54
58
|
/** Agent executor type (e.g. "claude-code", "cursor"). */
|
|
55
59
|
agentType?: AgentTypeValue;
|
|
56
60
|
/** LLM model identifier used for this feature's agent run. */
|
package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO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