@shepai/cli 1.116.3-pr375.ea5b2a2 → 1.117.0-pr377.9e8e17c
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/AnalyzeRepoTimeouts.yaml +10 -0
- package/apis/json-schema/SdlcLifecycle.yaml +1 -0
- package/apis/json-schema/StageTimeouts.yaml +35 -0
- package/apis/json-schema/WorkflowConfig.yaml +6 -0
- 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 +17 -8
- package/dist/packages/core/src/application/use-cases/features/create/types.d.ts +2 -0
- 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/resume-feature.use-case.d.ts +1 -3
- package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.js +2 -4
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts +25 -0
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.js +116 -0
- package/dist/packages/core/src/domain/generated/output.d.ts +47 -0
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +1 -0
- package/dist/packages/core/src/domain/lifecycle-gates.d.ts +3 -0
- package/dist/packages/core/src/domain/lifecycle-gates.d.ts.map +1 -1
- package/dist/packages/core/src/domain/lifecycle-gates.js +3 -0
- 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/settings.mapper.d.ts +7 -0
- 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 +44 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.d.ts +22 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.js +53 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.js +15 -6
- package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +15 -0
- package/dist/packages/core/src/infrastructure/services/agents/analyze-repo/analyze-repository-graph.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/analyze-repo/analyze-repository-graph.js +15 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts +11 -1
- 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 +42 -3
- package/dist/src/presentation/cli/commands/feat/index.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/index.js +2 -0
- package/dist/src/presentation/cli/commands/feat/ls.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/ls.command.js +3 -0
- package/dist/src/presentation/cli/commands/feat/new.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/new.command.js +9 -1
- package/dist/src/presentation/cli/commands/feat/start.command.d.ts +12 -0
- package/dist/src/presentation/cli/commands/feat/start.command.d.ts.map +1 -0
- package/dist/src/presentation/cli/commands/feat/start.command.js +43 -0
- package/dist/src/presentation/web/app/actions/approve-feature.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/approve-feature.js +0 -9
- package/dist/src/presentation/web/app/actions/create-feature.d.ts +2 -0
- 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 -1
- package/dist/src/presentation/web/app/actions/reject-feature.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/reject-feature.js +0 -9
- package/dist/src/presentation/web/app/actions/start-feature.d.ts +5 -0
- package/dist/src/presentation/web/app/actions/start-feature.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/start-feature.js +16 -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/components/common/base-drawer/base-drawer.js +1 -1
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.stories.js +1 -1
- 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 +20 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts +2 -0
- 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 +6 -2
- 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 +6 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +3 -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 +13 -1
- 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 +12 -3
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts +2 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.js +36 -2
- package/dist/src/presentation/web/components/common/merge-review/diff-view.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/merge-review/diff-view.js +166 -8
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +3 -1
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +1 -0
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +23 -0
- 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 +75 -2
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts +1 -0
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +23 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.d.ts +11 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.js +63 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.d.ts +10 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.js +24 -0
- package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/workflow-settings-section.js +97 -2
- package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.js +22 -0
- package/dist/src/presentation/web/components/ui/code-block.d.ts +36 -0
- package/dist/src/presentation/web/components/ui/code-block.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/code-block.js +103 -0
- package/dist/src/presentation/web/components/ui/code-block.stories.d.ts +16 -0
- package/dist/src/presentation/web/components/ui/code-block.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/code-block.stories.js +145 -0
- package/dist/src/presentation/web/components/ui/file-tree.d.ts +53 -0
- package/dist/src/presentation/web/components/ui/file-tree.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/file-tree.js +185 -0
- package/dist/src/presentation/web/components/ui/file-tree.stories.d.ts +14 -0
- package/dist/src/presentation/web/components/ui/file-tree.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/file-tree.stories.js +84 -0
- package/dist/src/presentation/web/components/ui/slider.d.ts +5 -0
- package/dist/src/presentation/web/components/ui/slider.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/slider.js +10 -0
- package/dist/src/presentation/web/components/ui/slider.stories.d.ts +7 -0
- package/dist/src/presentation/web/components/ui/slider.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/slider.stories.js +15 -0
- package/dist/src/presentation/web/hooks/sidebar-features-context.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/sidebar-features-context.js +1 -0
- package/dist/src/presentation/web/hooks/use-graph-state.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/use-graph-state.js +1 -0
- package/dist/src/presentation/web/lib/derive-graph.d.ts +2 -0
- package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/derive-graph.js +5 -0
- 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 +2 -2
- package/web/.next/required-server-files.json +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +55 -40
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
- 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 +67 -52
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -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 +67 -52
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -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]/page/server-reference-manifest.json +51 -36
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +55 -40
- package/web/.next/server/app/(dashboard)/create/page.js +1 -1
- 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 +67 -52
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -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 +67 -52
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -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 +51 -36
- package/web/.next/server/app/(dashboard)/page.js +1 -1
- package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +51 -36
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
- 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 +1 -1
- 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/settings/page/server-reference-manifest.json +5 -5
- 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 +6 -6
- 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 +6 -6
- 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 +1 -1
- 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 +2 -2
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_4d623b8e.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.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]__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/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js +3 -0
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js.map +1 -0
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js +3 -0
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__07a39ff2._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0d4580d1._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0d4580d1._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__172d9576._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__172d9576._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2a5592d5._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2a5592d5._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__98470b18._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__98470b18._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a93289b0._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a93289b0._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ac0304e7._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ac0304e7._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ea2e0b1c._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ea2e0b1c._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_009a242e._.js +3 -0
- package/web/.next/server/chunks/ssr/_009a242e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_250a63ae._.js +1 -1
- package/web/.next/server/chunks/ssr/_250a63ae._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_6d26a08f._.js +1 -1
- package/web/.next/server/chunks/ssr/_6d26a08f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_f2f36bf9._.js → _786e1f56._.js} +2 -2
- package/web/.next/server/chunks/ssr/_786e1f56._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_aef4036f._.js +3 -0
- package/web/.next/server/chunks/ssr/_aef4036f._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_c5e12a69._.js +3 -0
- package/web/.next/server/chunks/ssr/{_86617fb9._.js.map → _c5e12a69._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js +5 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_scroll-area_tsx_53ae5be7._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_scroll-area_tsx_53ae5be7._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js +5 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js.map +1 -0
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +300 -229
- package/web/.next/static/chunks/16ac819e75bae3d0.js +1 -0
- package/web/.next/static/chunks/26bf91fe491accce.js +1 -0
- package/web/.next/static/chunks/{763f6ecc4593dc10.js → 2f750d537c3f7e31.js} +1 -1
- package/web/.next/static/chunks/{053b644519f721f1.js → 37a9d60101fcd7ae.js} +1 -1
- package/web/.next/static/chunks/3d673546d066ba0a.js +11 -0
- package/web/.next/static/chunks/4943e3f713ca59b9.js +1 -0
- package/web/.next/static/chunks/5382c19c5dff93e5.js +1 -0
- package/web/.next/static/chunks/60108fd0bf8db1b0.js +1 -0
- package/web/.next/static/chunks/69a1e15358d875cc.css +1 -0
- package/web/.next/static/chunks/{5225e7b93df59de9.js → 98af7ce84b9623c5.js} +1 -1
- package/web/.next/static/chunks/c0c8a062afe141ed.js +1 -0
- package/web/.next/static/chunks/{f32b896b3ceae18d.js → d3fb12295262040f.js} +2 -2
- package/web/.next/static/chunks/d59479021791a7c1.js +1 -0
- package/web/.next/static/chunks/db91e49ac07fb578.js +2 -0
- package/web/.next/static/chunks/eddc1cdee17c30ef.js +1 -0
- package/web/package.json +3 -1
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_d0119342._.js +0 -3
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_d0119342._.js.map +0 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js +0 -3
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js.map +0 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js +0 -3
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b1e68e34._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b1e68e34._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_86617fb9._.js +0 -3
- package/web/.next/server/chunks/ssr/_b5d0b00e._.js +0 -3
- package/web/.next/server/chunks/ssr/_b5d0b00e._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_f2f36bf9._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js +0 -5
- package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js +0 -5
- package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js.map +0 -1
- package/web/.next/static/chunks/121a2e602cb9df92.js +0 -11
- package/web/.next/static/chunks/303a1217006489b9.js +0 -1
- package/web/.next/static/chunks/57b45edf86522369.css +0 -1
- package/web/.next/static/chunks/619af41a8d3232e5.js +0 -1
- package/web/.next/static/chunks/6770c61692fe5605.js +0 -1
- package/web/.next/static/chunks/8c3ff8561102a386.js +0 -1
- package/web/.next/static/chunks/a1b3371ef3ffd58b.js +0 -2
- package/web/.next/static/chunks/b1f3c0e8e9872ef8.js +0 -1
- package/web/.next/static/chunks/bec349a77c5c5796.js +0 -1
- package/web/.next/static/chunks/e85bcc69a4ceb89e.js +0 -1
- /package/web/.next/static/{Ci7i00ReHDH8Xv9NQW3By → fBX3qEmi-temIllSxz1uu}/_buildManifest.js +0 -0
- /package/web/.next/static/{Ci7i00ReHDH8Xv9NQW3By → fBX3qEmi-temIllSxz1uu}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{Ci7i00ReHDH8Xv9NQW3By → fBX3qEmi-temIllSxz1uu}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Accordion as AccordionPrimitive } from 'radix-ui';
|
|
5
|
+
import { FileIcon, FolderIcon, FolderOpenIcon, ChevronsDownUp, ChevronsUpDown } from 'lucide-react';
|
|
6
|
+
import { ScrollArea } from '../ui/scroll-area.js';
|
|
7
|
+
import { cn } from '../../lib/utils.js';
|
|
8
|
+
const TreeContext = React.createContext(null);
|
|
9
|
+
const useTree = () => {
|
|
10
|
+
const context = React.useContext(TreeContext);
|
|
11
|
+
if (!context) {
|
|
12
|
+
throw new Error('useTree must be used within a TreeProvider');
|
|
13
|
+
}
|
|
14
|
+
return context;
|
|
15
|
+
};
|
|
16
|
+
const isFolderElement = (element) => {
|
|
17
|
+
if (element.type) {
|
|
18
|
+
return element.type === 'folder';
|
|
19
|
+
}
|
|
20
|
+
return Array.isArray(element.children);
|
|
21
|
+
};
|
|
22
|
+
const mergeExpandedItems = (currentItems, nextItems) => [
|
|
23
|
+
...new Set([...(currentItems ?? []), ...nextItems]),
|
|
24
|
+
];
|
|
25
|
+
const treeCollator = new Intl.Collator('en', {
|
|
26
|
+
numeric: true,
|
|
27
|
+
sensitivity: 'base',
|
|
28
|
+
});
|
|
29
|
+
const defaultTreeComparator = (a, b) => {
|
|
30
|
+
const aIsFolder = isFolderElement(a);
|
|
31
|
+
const bIsFolder = isFolderElement(b);
|
|
32
|
+
if (aIsFolder !== bIsFolder) {
|
|
33
|
+
return aIsFolder ? -1 : 1;
|
|
34
|
+
}
|
|
35
|
+
return treeCollator.compare(a.name, b.name);
|
|
36
|
+
};
|
|
37
|
+
const getTreeComparator = (sort) => {
|
|
38
|
+
if (sort === 'none')
|
|
39
|
+
return undefined;
|
|
40
|
+
if (sort === 'default')
|
|
41
|
+
return defaultTreeComparator;
|
|
42
|
+
return sort;
|
|
43
|
+
};
|
|
44
|
+
const sortTreeElements = (elements, sort) => {
|
|
45
|
+
const comparator = getTreeComparator(sort);
|
|
46
|
+
const nextElements = elements.map((element) => {
|
|
47
|
+
if (!Array.isArray(element.children))
|
|
48
|
+
return element;
|
|
49
|
+
return { ...element, children: sortTreeElements(element.children, sort) };
|
|
50
|
+
});
|
|
51
|
+
if (!comparator)
|
|
52
|
+
return nextElements;
|
|
53
|
+
return [...nextElements].sort(comparator);
|
|
54
|
+
};
|
|
55
|
+
const renderTreeElements = (elements, sort) => sortTreeElements(elements, sort).map((element) => {
|
|
56
|
+
if (isFolderElement(element)) {
|
|
57
|
+
return (_jsx(Folder, { value: element.id, element: element.name, isSelectable: element.isSelectable, children: Array.isArray(element.children) ? renderTreeElements(element.children, sort) : null }, element.id));
|
|
58
|
+
}
|
|
59
|
+
return (_jsx(File, { value: element.id, isSelectable: element.isSelectable, children: _jsx("span", { children: element.name }) }, element.id));
|
|
60
|
+
});
|
|
61
|
+
const Tree = React.forwardRef(({ className, elements, initialSelectedId, initialExpandedItems, children, indicator = true, openIcon, closeIcon, dir, onSelect, sort = 'default', ...props }, ref) => {
|
|
62
|
+
const [selectedId, setSelectedId] = React.useState(initialSelectedId);
|
|
63
|
+
const [expandedItems, setExpandedItems] = React.useState(initialExpandedItems);
|
|
64
|
+
const selectItem = React.useCallback((id) => {
|
|
65
|
+
setSelectedId(id);
|
|
66
|
+
onSelect?.(id);
|
|
67
|
+
}, [onSelect]);
|
|
68
|
+
const handleExpand = React.useCallback((id) => {
|
|
69
|
+
setExpandedItems((prev) => {
|
|
70
|
+
if (prev?.includes(id)) {
|
|
71
|
+
return prev.filter((item) => item !== id);
|
|
72
|
+
}
|
|
73
|
+
return [...(prev ?? []), id];
|
|
74
|
+
});
|
|
75
|
+
}, []);
|
|
76
|
+
const expandSpecificTargetedElements = React.useCallback((elems, selectId) => {
|
|
77
|
+
if (!elems || !selectId)
|
|
78
|
+
return;
|
|
79
|
+
const findParent = (currentElement, currentPath = []) => {
|
|
80
|
+
const isSelectable = currentElement.isSelectable ?? true;
|
|
81
|
+
const newPath = [...currentPath, currentElement.id];
|
|
82
|
+
if (currentElement.id === selectId) {
|
|
83
|
+
if (isSelectable) {
|
|
84
|
+
setExpandedItems((prev) => mergeExpandedItems(prev, newPath));
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
if (newPath.includes(currentElement.id)) {
|
|
88
|
+
newPath.pop();
|
|
89
|
+
setExpandedItems((prev) => mergeExpandedItems(prev, newPath));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (Array.isArray(currentElement.children) && currentElement.children.length > 0) {
|
|
95
|
+
currentElement.children.forEach((child) => {
|
|
96
|
+
findParent(child, newPath);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
elems.forEach((element) => {
|
|
101
|
+
findParent(element);
|
|
102
|
+
});
|
|
103
|
+
}, []);
|
|
104
|
+
React.useEffect(() => {
|
|
105
|
+
if (initialSelectedId) {
|
|
106
|
+
expandSpecificTargetedElements(elements, initialSelectedId);
|
|
107
|
+
}
|
|
108
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
109
|
+
}, [initialSelectedId, elements]);
|
|
110
|
+
const direction = dir === 'rtl' ? 'rtl' : 'ltr';
|
|
111
|
+
const treeChildren = children ?? (elements ? renderTreeElements(elements, sort) : null);
|
|
112
|
+
return (_jsx(TreeContext.Provider, { value: {
|
|
113
|
+
selectedId,
|
|
114
|
+
expandedItems,
|
|
115
|
+
handleExpand,
|
|
116
|
+
selectItem,
|
|
117
|
+
setExpandedItems,
|
|
118
|
+
indicator,
|
|
119
|
+
openIcon,
|
|
120
|
+
closeIcon,
|
|
121
|
+
direction,
|
|
122
|
+
}, children: _jsx("div", { className: cn('size-full', className), children: _jsx(ScrollArea, { ref: ref, className: "relative h-full px-2", dir: dir, children: _jsx(AccordionPrimitive.Root, { ...props, type: "multiple", value: expandedItems, className: "flex flex-col gap-1", dir: dir, children: treeChildren }) }) }) }));
|
|
123
|
+
});
|
|
124
|
+
Tree.displayName = 'Tree';
|
|
125
|
+
const TreeIndicator = React.forwardRef(({ className, ...props }, ref) => {
|
|
126
|
+
const { direction } = useTree();
|
|
127
|
+
return (_jsx("div", { dir: direction, ref: ref, className: cn('bg-muted absolute left-1.5 h-full w-px rounded-md py-3 duration-300 ease-in-out hover:bg-slate-300 rtl:right-1.5', className), ...props }));
|
|
128
|
+
});
|
|
129
|
+
TreeIndicator.displayName = 'TreeIndicator';
|
|
130
|
+
const Folder = React.forwardRef(({ className, element, value, isSelectable = true, isSelect, children, ...props }, ref) => {
|
|
131
|
+
const { direction, handleExpand, expandedItems, indicator, selectedId, selectItem, openIcon, closeIcon, } = useTree();
|
|
132
|
+
const isSelected = isSelect ?? selectedId === value;
|
|
133
|
+
return (_jsxs(AccordionPrimitive.Item, { ...props, ref: ref, value: value, className: "relative h-full overflow-hidden", children: [_jsxs(AccordionPrimitive.Trigger, { className: cn('flex items-center gap-1 rounded-md text-sm', className, {
|
|
134
|
+
'bg-muted rounded-md': isSelected && isSelectable,
|
|
135
|
+
'cursor-pointer': isSelectable,
|
|
136
|
+
'cursor-not-allowed opacity-50': !isSelectable,
|
|
137
|
+
}), disabled: !isSelectable, onClick: () => {
|
|
138
|
+
selectItem(value);
|
|
139
|
+
handleExpand(value);
|
|
140
|
+
}, children: [expandedItems?.includes(value)
|
|
141
|
+
? (openIcon ?? _jsx(FolderOpenIcon, { className: "size-4" }))
|
|
142
|
+
: (closeIcon ?? _jsx(FolderIcon, { className: "size-4" })), _jsx("span", { children: element })] }), _jsxs(AccordionPrimitive.Content, { className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down relative h-full overflow-hidden text-sm", children: [element && indicator ? _jsx(TreeIndicator, { "aria-hidden": "true" }) : null, _jsx(AccordionPrimitive.Root, { dir: direction, type: "multiple", className: "ml-5 flex flex-col gap-1 py-1 rtl:mr-5", value: expandedItems, children: children })] })] }));
|
|
143
|
+
});
|
|
144
|
+
Folder.displayName = 'Folder';
|
|
145
|
+
const File = React.forwardRef(({ value, className, handleSelect, onClick, isSelectable = true, isSelect, fileIcon, children, ...props }, ref) => {
|
|
146
|
+
const { direction, selectedId, selectItem } = useTree();
|
|
147
|
+
const isSelected = isSelect ?? selectedId === value;
|
|
148
|
+
return (_jsxs("button", { ref: ref, type: "button", disabled: !isSelectable, className: cn('flex w-fit items-center gap-1 rounded-md pr-1 text-sm duration-200 ease-in-out rtl:pr-0 rtl:pl-1', {
|
|
149
|
+
'bg-muted': isSelected && isSelectable,
|
|
150
|
+
}, isSelectable ? 'cursor-pointer' : 'cursor-not-allowed opacity-50', direction === 'rtl' ? 'rtl' : 'ltr', className), onClick: (event) => {
|
|
151
|
+
selectItem(value);
|
|
152
|
+
handleSelect?.(value);
|
|
153
|
+
onClick?.(event);
|
|
154
|
+
}, ...props, children: [fileIcon ?? _jsx(FileIcon, { className: "size-4" }), children] }));
|
|
155
|
+
});
|
|
156
|
+
File.displayName = 'File';
|
|
157
|
+
const CollapseButton = React.forwardRef(({ className, elements, expandAll = false, children, ...props }, ref) => {
|
|
158
|
+
const { expandedItems, setExpandedItems } = useTree();
|
|
159
|
+
const expandAllTree = React.useCallback((elems) => {
|
|
160
|
+
const ids = [];
|
|
161
|
+
const walk = (el) => {
|
|
162
|
+
if ((el.isSelectable ?? true) && el.children && el.children.length > 0) {
|
|
163
|
+
ids.push(el.id);
|
|
164
|
+
for (const child of el.children)
|
|
165
|
+
walk(child);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
for (const el of elems)
|
|
169
|
+
walk(el);
|
|
170
|
+
return [...new Set(ids)];
|
|
171
|
+
}, []);
|
|
172
|
+
const closeAll = React.useCallback(() => {
|
|
173
|
+
setExpandedItems?.([]);
|
|
174
|
+
}, [setExpandedItems]);
|
|
175
|
+
React.useEffect(() => {
|
|
176
|
+
if (expandAll) {
|
|
177
|
+
setExpandedItems?.(expandAllTree(elements));
|
|
178
|
+
}
|
|
179
|
+
}, [expandAll, elements, expandAllTree, setExpandedItems]);
|
|
180
|
+
const isExpanded = expandedItems && expandedItems.length > 0;
|
|
181
|
+
return (_jsxs("button", { type: "button", className: cn('text-muted-foreground hover:text-foreground flex items-center gap-1 rounded-md p-1 text-xs transition-colors', className), onClick: isExpanded ? closeAll : () => setExpandedItems?.(expandAllTree(elements)), ref: ref, ...props, children: [children ??
|
|
182
|
+
(isExpanded ? (_jsx(ChevronsDownUp, { className: "h-3.5 w-3.5" })) : (_jsx(ChevronsUpDown, { className: "h-3.5 w-3.5" }))), _jsx("span", { className: "sr-only", children: "Toggle" })] }));
|
|
183
|
+
});
|
|
184
|
+
CollapseButton.displayName = 'CollapseButton';
|
|
185
|
+
export { CollapseButton, File, Folder, Tree, useTree };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Tree } from './file-tree.js';
|
|
3
|
+
declare const meta: Meta<typeof Tree>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Tree>;
|
|
6
|
+
/** Default file tree with auto-rendered elements */
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
/** Custom-rendered tree nodes with status icons */
|
|
9
|
+
export declare const WithStatusIcons: Story;
|
|
10
|
+
/** Collapsed by default */
|
|
11
|
+
export declare const Collapsed: Story;
|
|
12
|
+
/** With a collapse/expand all button */
|
|
13
|
+
export declare const WithCollapseButton: Story;
|
|
14
|
+
//# sourceMappingURL=file-tree.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-tree.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/file-tree.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAgB,IAAI,EAAwC,MAAM,aAAa,CAAC;AA8CvF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAsB3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,oDAAoD;AACpD,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,eAAe,EAAE,KA8B7B,CAAC;AAEF,2BAA2B;AAC3B,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,wCAAwC;AACxC,eAAO,MAAM,kBAAkB,EAAE,KAoChC,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { File, Folder, Tree, CollapseButton } from './file-tree.js';
|
|
3
|
+
import { FilePlus, FileEdit, FileMinus } from 'lucide-react';
|
|
4
|
+
const sampleElements = [
|
|
5
|
+
{
|
|
6
|
+
id: 'src',
|
|
7
|
+
name: 'src',
|
|
8
|
+
children: [
|
|
9
|
+
{
|
|
10
|
+
id: 'src/components',
|
|
11
|
+
name: 'components',
|
|
12
|
+
children: [
|
|
13
|
+
{ id: 'src/components/button.tsx', name: 'button.tsx' },
|
|
14
|
+
{ id: 'src/components/input.tsx', name: 'input.tsx' },
|
|
15
|
+
{ id: 'src/components/dialog.tsx', name: 'dialog.tsx' },
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'src/lib',
|
|
20
|
+
name: 'lib',
|
|
21
|
+
children: [
|
|
22
|
+
{ id: 'src/lib/utils.ts', name: 'utils.ts' },
|
|
23
|
+
{ id: 'src/lib/auth.ts', name: 'auth.ts' },
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
{ id: 'src/index.ts', name: 'index.ts' },
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
{ id: 'package.json', name: 'package.json' },
|
|
30
|
+
{ id: 'tsconfig.json', name: 'tsconfig.json' },
|
|
31
|
+
];
|
|
32
|
+
const allIds = [
|
|
33
|
+
'src',
|
|
34
|
+
'src/components',
|
|
35
|
+
'src/components/button.tsx',
|
|
36
|
+
'src/components/input.tsx',
|
|
37
|
+
'src/components/dialog.tsx',
|
|
38
|
+
'src/lib',
|
|
39
|
+
'src/lib/utils.ts',
|
|
40
|
+
'src/lib/auth.ts',
|
|
41
|
+
'src/index.ts',
|
|
42
|
+
'package.json',
|
|
43
|
+
'tsconfig.json',
|
|
44
|
+
];
|
|
45
|
+
const meta = {
|
|
46
|
+
title: 'Primitives/FileTree',
|
|
47
|
+
component: Tree,
|
|
48
|
+
tags: ['autodocs'],
|
|
49
|
+
parameters: {
|
|
50
|
+
layout: 'centered',
|
|
51
|
+
},
|
|
52
|
+
decorators: [
|
|
53
|
+
(Story) => (_jsx("div", { style: {
|
|
54
|
+
width: '300px',
|
|
55
|
+
height: '400px',
|
|
56
|
+
border: '1px solid var(--color-border)',
|
|
57
|
+
borderRadius: '8px',
|
|
58
|
+
padding: '8px',
|
|
59
|
+
}, children: _jsx(Story, {}) })),
|
|
60
|
+
],
|
|
61
|
+
};
|
|
62
|
+
export default meta;
|
|
63
|
+
/** Default file tree with auto-rendered elements */
|
|
64
|
+
export const Default = {
|
|
65
|
+
args: {
|
|
66
|
+
elements: sampleElements,
|
|
67
|
+
initialExpandedItems: allIds,
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
/** Custom-rendered tree nodes with status icons */
|
|
71
|
+
export const WithStatusIcons = {
|
|
72
|
+
render: () => (_jsxs(Tree, { initialExpandedItems: allIds, elements: sampleElements, sort: "none", children: [_jsxs(Folder, { element: "src", value: "src", children: [_jsxs(Folder, { element: "components", value: "src/components", children: [_jsxs(File, { value: "src/components/button.tsx", fileIcon: _jsx(FileEdit, { className: "h-4 w-4 text-amber-600" }), children: [_jsx("span", { className: "text-xs", children: "button.tsx" }), _jsx("span", { className: "ml-auto pl-2 text-[10px] text-green-600", children: "+12" })] }), _jsxs(File, { value: "src/components/input.tsx", fileIcon: _jsx(FilePlus, { className: "h-4 w-4 text-green-600" }), children: [_jsx("span", { className: "text-xs", children: "input.tsx" }), _jsx("span", { className: "ml-auto pl-2 text-[10px] text-green-600", children: "+45" })] })] }), _jsx(Folder, { element: "lib", value: "src/lib", children: _jsxs(File, { value: "src/lib/utils.ts", fileIcon: _jsx(FileMinus, { className: "h-4 w-4 text-red-600" }), children: [_jsx("span", { className: "text-xs", children: "utils.ts" }), _jsx("span", { className: "ml-auto pl-2 text-[10px] text-red-600", children: "-8" })] }) })] }), _jsx(CollapseButton, { elements: sampleElements, className: "mt-1" })] })),
|
|
73
|
+
};
|
|
74
|
+
/** Collapsed by default */
|
|
75
|
+
export const Collapsed = {
|
|
76
|
+
args: {
|
|
77
|
+
elements: sampleElements,
|
|
78
|
+
initialExpandedItems: [],
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
/** With a collapse/expand all button */
|
|
82
|
+
export const WithCollapseButton = {
|
|
83
|
+
render: () => (_jsxs(Tree, { elements: sampleElements, initialExpandedItems: allIds, sort: "default", children: [_jsxs(Folder, { element: "src", value: "src", children: [_jsxs(Folder, { element: "components", value: "src/components", children: [_jsx(File, { value: "src/components/button.tsx", children: _jsx("span", { className: "text-xs", children: "button.tsx" }) }), _jsx(File, { value: "src/components/input.tsx", children: _jsx("span", { className: "text-xs", children: "input.tsx" }) }), _jsx(File, { value: "src/components/dialog.tsx", children: _jsx("span", { className: "text-xs", children: "dialog.tsx" }) })] }), _jsxs(Folder, { element: "lib", value: "src/lib", children: [_jsx(File, { value: "src/lib/utils.ts", children: _jsx("span", { className: "text-xs", children: "utils.ts" }) }), _jsx(File, { value: "src/lib/auth.ts", children: _jsx("span", { className: "text-xs", children: "auth.ts" }) })] }), _jsx(File, { value: "src/index.ts", children: _jsx("span", { className: "text-xs", children: "index.ts" }) })] }), _jsx(File, { value: "package.json", children: _jsx("span", { className: "text-xs", children: "package.json" }) }), _jsx(File, { value: "tsconfig.json", children: _jsx("span", { className: "text-xs", children: "tsconfig.json" }) }), _jsx(CollapseButton, { elements: sampleElements, className: "mt-2" })] })),
|
|
84
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
3
|
+
declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Slider };
|
|
5
|
+
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AAIrD,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAyCnD;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
5
|
+
import { cn } from '../../lib/utils.js';
|
|
6
|
+
function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
|
|
7
|
+
const _values = React.useMemo(() => (Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max]), [value, defaultValue, min, max]);
|
|
8
|
+
return (_jsxs(SliderPrimitive.Root, { "data-slot": "slider", defaultValue: defaultValue, value: value, min: min, max: max, className: cn('relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col', className), ...props, children: [_jsx(SliderPrimitive.Track, { "data-slot": "slider-track", className: cn('bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5'), children: _jsx(SliderPrimitive.Range, { "data-slot": "slider-range", className: cn('bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full') }) }), Array.from({ length: _values.length }, (_, index) => (_jsx(SliderPrimitive.Thumb, { "data-slot": "slider-thumb", className: "border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50" }, index)))] }));
|
|
9
|
+
}
|
|
10
|
+
export { Slider };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Slider } from './slider.js';
|
|
3
|
+
declare const meta: Meta<typeof Slider>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Slider>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
//# sourceMappingURL=slider.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/slider.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAG7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAYrC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Slider } from './slider.js';
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'UI/Slider',
|
|
6
|
+
component: Slider,
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
function SliderDemo() {
|
|
10
|
+
const [value, setValue] = useState([50]);
|
|
11
|
+
return (_jsxs("div", { style: { width: 300 }, children: [_jsx(Slider, { value: value, onValueChange: setValue, min: 0, max: 100, step: 1 }), _jsxs("p", { style: { marginTop: 8, fontSize: 12 }, children: ["Value: ", value[0]] })] }));
|
|
12
|
+
}
|
|
13
|
+
export const Default = {
|
|
14
|
+
render: () => _jsx(SliderDemo, {}),
|
|
15
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-features-context.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/sidebar-features-context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAI/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"sidebar-features-context.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/sidebar-features-context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAI/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAiBD;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,gBAAgB,GAAG,aAAa,GAAG,IAAI,CAEzF;AAMD,UAAU,2BAA2B;IACnC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,WAAW,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;CACvD;AAID,UAAU,4BAA4B;IACpC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,4BAA4B,2CAQjF;AAED,wBAAgB,yBAAyB,IAAI,2BAA2B,CAMvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-graph-state.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/use-graph-state.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M,GAAG,SAAS,CAAC;IACxE,yDAAyD;IACzD,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IACtE,+EAA+E;IAC/E,cAAc,EAAE,MAAM,MAAM,CAAC;IAC7B,6EAA6E;IAC7E,YAAY,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC;IAClD;;;;OAIG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B;;;OAGG;IACH,WAAW,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,0EAA0E;IAC1E,UAAU,EAAE,MAAM,OAAO,CAAC;CAC3B;AAuCD,KAAK,kBAAkB,GAAG,OAAO,CAC/B,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,aAAa,CAAC,CACtE,CAAC;AA8BF,wBAAgB,aAAa,CAC3B,YAAY,EAAE,cAAc,EAAE,EAC9B,YAAY,EAAE,IAAI,EAAE,GACnB,mBAAmB,CA8ZrB"}
|
|
@@ -90,6 +90,7 @@ export function useGraphState(initialNodes, initialEdges) {
|
|
|
90
90
|
onRepositoryClick: (nodeId) => callbacksRef.current.onRepositoryClick?.(nodeId),
|
|
91
91
|
onRepositoryDelete: (repositoryId) => callbacksRef.current.onRepositoryDelete?.(repositoryId),
|
|
92
92
|
onRetryFeature: (featureId) => callbacksRef.current.onRetryFeature?.(featureId),
|
|
93
|
+
onStartFeature: (featureId) => callbacksRef.current.onStartFeature?.(featureId),
|
|
93
94
|
}), []);
|
|
94
95
|
// Stable refs for domain Maps (for use in callbacks without depending on state)
|
|
95
96
|
const featureMapRef = useRef(featureMap);
|
|
@@ -37,6 +37,8 @@ export interface GraphCallbacks {
|
|
|
37
37
|
onRepositoryDelete?: (repositoryId: string) => void;
|
|
38
38
|
/** Called when the user retries a failed feature. */
|
|
39
39
|
onRetryFeature?: (featureId: string) => void;
|
|
40
|
+
/** Called when the user starts a pending feature. */
|
|
41
|
+
onStartFeature?: (featureId: string) => void;
|
|
40
42
|
}
|
|
41
43
|
/**
|
|
42
44
|
* Derives React Flow nodes and edges from domain Maps.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive-graph.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/derive-graph.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;IACtB,sGAAsG;IACtG,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wDAAwD;AACxD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC7B,4FAA4F;IAC5F,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,qEAAqE;IACrE,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,8CAA8C;IAC9C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1F,6EAA6E;IAC7E,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,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,CAAC;IACxC,qEAAqE;IACrE,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,8CAA8C;IAC9C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1F,6EAA6E;IAC7E,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,qDAAqD;IACrD,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,qDAAqD;IACrD,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACzB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACrC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACrC,SAAS,CAAC,EAAE,cAAc,GACzB;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAyJ5C"}
|
|
@@ -102,6 +102,11 @@ export function deriveGraph(featureMap, repoMap, pendingMap, callbacks) {
|
|
|
102
102
|
callbacks?.onRetryFeature && {
|
|
103
103
|
onRetry: callbacks.onRetryFeature,
|
|
104
104
|
}),
|
|
105
|
+
...(!isCreating &&
|
|
106
|
+
entry.data.state === 'pending' &&
|
|
107
|
+
callbacks?.onStartFeature && {
|
|
108
|
+
onStart: callbacks.onStartFeature,
|
|
109
|
+
}),
|
|
105
110
|
};
|
|
106
111
|
nodes.push({
|
|
107
112
|
id: nodeId,
|