@shepai/cli 1.138.0-pr445.9f2c136 → 1.138.0
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/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 +6 -8
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts +0 -2
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.js +1 -61
- package/dist/src/presentation/web/components/features/control-center/control-center.stories.d.ts +10 -0
- package/dist/src/presentation/web/components/features/control-center/control-center.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center.stories.js +166 -273
- 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 +28 -28
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +28 -28
- 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 +36 -36
- 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 +36 -36
- 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 +26 -26
- 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 +28 -28
- 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 +36 -36
- 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 +36 -36
- 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 +26 -26
- 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 +26 -26
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +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/[root-of-the-server]__2c703b78._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2c703b78._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3ef34e4c._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__59a3897b._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__59a3897b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__78aecdd5._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__78aecdd5._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a5f9c6e5._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f222995d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f222995d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_02ec1aea._.js +1 -1
- package/web/.next/server/chunks/ssr/_02ec1aea._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0c5f56e3._.js +2 -2
- package/web/.next/server/chunks/ssr/_0c5f56e3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1b719e7f._.js +1 -1
- package/web/.next/server/chunks/ssr/_1b719e7f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_74c3ee79._.js → _1c296899._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_74c3ee79._.js.map → _1c296899._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_2119691d._.js +3 -0
- package/web/.next/server/chunks/ssr/{_817e2ffb._.js.map → _2119691d._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_37e8548b._.js +1 -1
- package/web/.next/server/chunks/ssr/_37e8548b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_55d763e2._.js +1 -1
- package/web/.next/server/chunks/ssr/_55d763e2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_64bdfc6f._.js +2 -2
- package/web/.next/server/chunks/ssr/_64bdfc6f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_7dca1882._.js +1 -1
- package/web/.next/server/chunks/ssr/_7dca1882._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_a9f57758._.js +1 -1
- package/web/.next/server/chunks/ssr/_a9f57758._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_b71645b4._.js +1 -1
- package/web/.next/server/chunks/ssr/_b71645b4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_d8575088._.js +1 -1
- package/web/.next/server/chunks/ssr/_d8575088._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f39a1adb._.js +1 -1
- package/web/.next/server/chunks/ssr/_f39a1adb._.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_844c9657._.js +3 -0
- package/web/.next/server/chunks/ssr/{src_presentation_web_7512ae5c._.js.map → src_presentation_web_844c9657._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +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/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +44 -44
- package/web/.next/static/chunks/0e9ca746aadf6c8d.js +1 -0
- package/web/.next/static/chunks/{00e7cffbd2b4d181.js → 2e9491b73bcb5948.js} +1 -1
- package/web/.next/static/chunks/{7b0a014d05edbd4b.js → 3722a9f53d9069d1.js} +2 -2
- package/web/.next/static/chunks/{37f736bbf17e91e7.js → 47ae402c9d3ad1ca.js} +1 -1
- package/web/.next/static/chunks/{6dfdade9e67387b4.js → 4c760047d0972f96.js} +2 -2
- package/web/.next/static/chunks/{970496436becf660.js → 6c097d096a289e07.js} +1 -1
- package/web/.next/static/chunks/{ccb0bfb16178e592.js → a2a9cfdc7ff45d62.js} +1 -1
- package/web/.next/static/chunks/{4a889c493442a597.js → ad74ee85368e7d04.js} +1 -1
- package/web/.next/static/chunks/{69be489ef69b0a66.js → c581e1010c5c217e.js} +1 -1
- package/web/.next/static/chunks/{50e8000dd2361904.js → ce8197531c98b4ea.js} +1 -1
- package/web/.next/static/chunks/eb35e98c31806836.css +1 -0
- package/web/.next/static/chunks/{294cf0803b1e5b91.js → ec01c627aae92366.js} +1 -1
- package/web/.next/static/chunks/{1787aa31bde0a9b5.js → f15f1f16948e7263.js} +1 -1
- package/web/.next/server/chunks/ssr/_817e2ffb._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_7512ae5c._.js +0 -3
- package/web/.next/static/chunks/ba967f7de77cd5ee.css +0 -1
- package/web/.next/static/chunks/f627005f412cf658.js +0 -1
- /package/web/.next/static/{qsD7mHHMpZAzAyBy-5rSN → 0zlf5ntHpnR5YfkgEsA-1}/_buildManifest.js +0 -0
- /package/web/.next/static/{qsD7mHHMpZAzAyBy-5rSN → 0zlf5ntHpnR5YfkgEsA-1}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{qsD7mHHMpZAzAyBy-5rSN → 0zlf5ntHpnR5YfkgEsA-1}/_ssgManifest.js +0 -0
package/dist/src/presentation/web/components/features/control-center/control-center.stories.js
CHANGED
|
@@ -3,12 +3,6 @@ import { ControlCenter } from './control-center.js';
|
|
|
3
3
|
import { layoutWithDagre } from '../../../lib/layout-with-dagre.js';
|
|
4
4
|
import { AgentEventsProvider } from '../../../hooks/agent-events-provider.js';
|
|
5
5
|
import { DrawerCloseGuardProvider } from '../../../hooks/drawer-close-guard.js';
|
|
6
|
-
import { SidebarFeaturesProvider } from '../../../hooks/sidebar-features-context.js';
|
|
7
|
-
import { DeploymentState, PrStatus, CiStatus } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function -- storybook noop callbacks
|
|
9
|
-
const noop = () => { };
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function -- storybook noop callbacks
|
|
11
|
-
const noopId = (_id) => { };
|
|
12
6
|
const meta = {
|
|
13
7
|
title: 'Features/ControlCenter',
|
|
14
8
|
component: ControlCenter,
|
|
@@ -17,339 +11,238 @@ const meta = {
|
|
|
17
11
|
layout: 'fullscreen',
|
|
18
12
|
},
|
|
19
13
|
decorators: [
|
|
20
|
-
(Story) => (_jsx(AgentEventsProvider, { children: _jsx(
|
|
14
|
+
(Story) => (_jsx(AgentEventsProvider, { children: _jsx(DrawerCloseGuardProvider, { children: _jsx("div", { style: { height: '100vh' }, children: _jsx(Story, {}) }) }) })),
|
|
21
15
|
],
|
|
22
16
|
};
|
|
23
17
|
export default meta;
|
|
24
|
-
|
|
25
|
-
// Shared helpers
|
|
26
|
-
// ---------------------------------------------------------------------------
|
|
27
|
-
const dashedEdge = { style: { strokeDasharray: '5 5' } };
|
|
28
|
-
// ---------------------------------------------------------------------------
|
|
29
|
-
// FullSpectrum — realistic multi-repo workspace with every state represented
|
|
30
|
-
// ---------------------------------------------------------------------------
|
|
31
|
-
const fullSpectrumRepos = [
|
|
32
|
-
{
|
|
33
|
-
id: 'repo-backend',
|
|
34
|
-
type: 'repositoryNode',
|
|
35
|
-
position: { x: 0, y: 0 },
|
|
36
|
-
data: { name: 'acme/backend' },
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: 'repo-frontend',
|
|
40
|
-
type: 'repositoryNode',
|
|
41
|
-
position: { x: 0, y: 0 },
|
|
42
|
-
data: { name: 'acme/frontend' },
|
|
43
|
-
},
|
|
18
|
+
const featureNodes = [
|
|
44
19
|
{
|
|
45
|
-
id: '
|
|
46
|
-
type: '
|
|
47
|
-
position: { x:
|
|
48
|
-
data: {
|
|
20
|
+
id: 'feat-1',
|
|
21
|
+
type: 'featureNode',
|
|
22
|
+
position: { x: 400, y: 0 },
|
|
23
|
+
data: {
|
|
24
|
+
name: 'Auth Module',
|
|
25
|
+
description: 'OAuth2 authentication flow',
|
|
26
|
+
featureId: '#f1',
|
|
27
|
+
lifecycle: 'implementation',
|
|
28
|
+
state: 'running',
|
|
29
|
+
progress: 65,
|
|
30
|
+
repositoryPath: '/home/user/my-repo',
|
|
31
|
+
branch: 'feat/auth-module',
|
|
32
|
+
},
|
|
49
33
|
},
|
|
50
|
-
];
|
|
51
|
-
const fullSpectrumFeatures = [
|
|
52
|
-
// --- backend features ---
|
|
53
34
|
{
|
|
54
|
-
id: 'feat-
|
|
35
|
+
id: 'feat-2',
|
|
55
36
|
type: 'featureNode',
|
|
56
|
-
position: { x:
|
|
37
|
+
position: { x: 400, y: 230 },
|
|
57
38
|
data: {
|
|
58
|
-
name: '
|
|
59
|
-
description: '
|
|
60
|
-
featureId: '
|
|
61
|
-
lifecycle: '
|
|
39
|
+
name: 'User Dashboard',
|
|
40
|
+
description: 'Main dashboard layout and widgets',
|
|
41
|
+
featureId: '#f2',
|
|
42
|
+
lifecycle: 'research',
|
|
62
43
|
state: 'action-required',
|
|
63
|
-
progress:
|
|
64
|
-
repositoryPath: '/home/user/
|
|
65
|
-
branch: 'feat/
|
|
66
|
-
agentType: 'claude-code',
|
|
67
|
-
startedAt: Date.now() - 12 * 60_000,
|
|
68
|
-
showHandles: true,
|
|
69
|
-
onDelete: noop,
|
|
70
|
-
onAction: noop,
|
|
71
|
-
hasAgentRun: true,
|
|
72
|
-
pr: undefined,
|
|
44
|
+
progress: 20,
|
|
45
|
+
repositoryPath: '/home/user/my-repo',
|
|
46
|
+
branch: 'feat/user-dashboard',
|
|
73
47
|
},
|
|
74
48
|
},
|
|
75
49
|
{
|
|
76
|
-
id: 'feat-
|
|
50
|
+
id: 'feat-3',
|
|
77
51
|
type: 'featureNode',
|
|
78
|
-
position: { x:
|
|
52
|
+
position: { x: 800, y: 115 },
|
|
79
53
|
data: {
|
|
80
|
-
name: '
|
|
81
|
-
description: '
|
|
82
|
-
featureId: '
|
|
83
|
-
lifecycle: '
|
|
84
|
-
state: '
|
|
85
|
-
progress:
|
|
86
|
-
repositoryPath: '/home/user/
|
|
87
|
-
branch: 'feat/
|
|
88
|
-
agentType: 'claude-code',
|
|
89
|
-
startedAt: Date.now() - 38 * 60_000,
|
|
90
|
-
showHandles: true,
|
|
91
|
-
onDelete: noop,
|
|
92
|
-
onAction: noop,
|
|
93
|
-
hasAgentRun: true,
|
|
94
|
-
hasPlan: true,
|
|
54
|
+
name: 'API Gateway',
|
|
55
|
+
description: 'Rate limiting and routing',
|
|
56
|
+
featureId: '#f3',
|
|
57
|
+
lifecycle: 'deploy',
|
|
58
|
+
state: 'done',
|
|
59
|
+
progress: 100,
|
|
60
|
+
repositoryPath: '/home/user/my-repo',
|
|
61
|
+
branch: 'feat/api-gateway',
|
|
95
62
|
},
|
|
96
63
|
},
|
|
97
64
|
{
|
|
98
|
-
id: 'feat-
|
|
65
|
+
id: 'feat-4',
|
|
99
66
|
type: 'featureNode',
|
|
100
|
-
position: { x:
|
|
67
|
+
position: { x: 800, y: 345 },
|
|
101
68
|
data: {
|
|
102
|
-
name: '
|
|
103
|
-
description: '
|
|
104
|
-
featureId: '
|
|
69
|
+
name: 'Merge Review',
|
|
70
|
+
description: 'PR ready for merge approval',
|
|
71
|
+
featureId: '#f4',
|
|
105
72
|
lifecycle: 'review',
|
|
106
73
|
state: 'action-required',
|
|
107
|
-
progress:
|
|
108
|
-
repositoryPath: '/home/user/
|
|
109
|
-
branch: 'feat/
|
|
110
|
-
agentType: 'claude-code',
|
|
111
|
-
showHandles: true,
|
|
112
|
-
onDelete: noop,
|
|
113
|
-
onAction: noop,
|
|
114
|
-
hasAgentRun: true,
|
|
115
|
-
hasPlan: true,
|
|
116
|
-
deployment: {
|
|
117
|
-
status: DeploymentState.Ready,
|
|
118
|
-
url: 'https://feat-rate-limiter.preview.acme.dev',
|
|
119
|
-
},
|
|
120
|
-
pr: {
|
|
121
|
-
url: 'https://github.com/acme/backend/pull/142',
|
|
122
|
-
number: 142,
|
|
123
|
-
status: PrStatus.Open,
|
|
124
|
-
ciStatus: CiStatus.Success,
|
|
125
|
-
mergeable: true,
|
|
126
|
-
},
|
|
74
|
+
progress: 90,
|
|
75
|
+
repositoryPath: '/home/user/my-repo',
|
|
76
|
+
branch: 'feat/merge-review',
|
|
127
77
|
},
|
|
128
78
|
},
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
repositoryPath: '/home/user/acme/backend',
|
|
142
|
-
branch: 'feat/webhooks',
|
|
143
|
-
agentType: 'cursor',
|
|
144
|
-
showHandles: true,
|
|
145
|
-
onDelete: noop,
|
|
146
|
-
hasAgentRun: true,
|
|
147
|
-
hasPlan: true,
|
|
148
|
-
},
|
|
79
|
+
];
|
|
80
|
+
const repoNode = {
|
|
81
|
+
id: 'repo-1',
|
|
82
|
+
type: 'repositoryNode',
|
|
83
|
+
position: { x: 50, y: 115 },
|
|
84
|
+
data: { name: 'shep-ai/cli' },
|
|
85
|
+
};
|
|
86
|
+
const dashedEdge = { style: { strokeDasharray: '5 5' } };
|
|
87
|
+
export const Empty = {
|
|
88
|
+
args: {
|
|
89
|
+
initialNodes: [],
|
|
90
|
+
initialEdges: [],
|
|
149
91
|
},
|
|
92
|
+
};
|
|
93
|
+
export const WithFeatures = {
|
|
94
|
+
args: {
|
|
95
|
+
initialNodes: featureNodes,
|
|
96
|
+
initialEdges: [
|
|
97
|
+
{ id: 'e1-3', source: 'feat-1', target: 'feat-3' },
|
|
98
|
+
{ id: 'e2-3', source: 'feat-2', target: 'feat-3' },
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
export const WithToolbar = {
|
|
103
|
+
args: {
|
|
104
|
+
initialNodes: [featureNodes[0], featureNodes[1]],
|
|
105
|
+
initialEdges: [],
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
export const WithNodeActions = {
|
|
109
|
+
args: {
|
|
110
|
+
initialNodes: [repoNode, ...featureNodes],
|
|
111
|
+
initialEdges: [
|
|
112
|
+
{ id: 'e-repo-f1', source: 'repo-1', target: 'feat-1', ...dashedEdge },
|
|
113
|
+
{ id: 'e-repo-f2', source: 'repo-1', target: 'feat-2', ...dashedEdge },
|
|
114
|
+
{ id: 'e1-3', source: 'feat-1', target: 'feat-3' },
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
// --- Dagre-layouted story: multiple repos with feature trees ---
|
|
119
|
+
const dagreRepoNodes = [
|
|
150
120
|
{
|
|
151
|
-
id: '
|
|
152
|
-
type: '
|
|
121
|
+
id: 'repo-cli',
|
|
122
|
+
type: 'repositoryNode',
|
|
153
123
|
position: { x: 0, y: 0 },
|
|
154
|
-
data: {
|
|
155
|
-
name: 'Audit Log',
|
|
156
|
-
description: 'Immutable audit trail for all mutations with structured event schema and compliance export',
|
|
157
|
-
featureId: 'd8e2a1',
|
|
158
|
-
lifecycle: 'research',
|
|
159
|
-
state: 'running',
|
|
160
|
-
progress: 22,
|
|
161
|
-
repositoryPath: '/home/user/acme/backend',
|
|
162
|
-
branch: 'feat/audit-log',
|
|
163
|
-
agentType: 'gemini-cli',
|
|
164
|
-
startedAt: Date.now() - 5 * 60_000,
|
|
165
|
-
showHandles: true,
|
|
166
|
-
onDelete: noop,
|
|
167
|
-
onAction: noop,
|
|
168
|
-
hasAgentRun: true,
|
|
169
|
-
},
|
|
124
|
+
data: { name: 'shep-ai/cli' },
|
|
170
125
|
},
|
|
171
|
-
// --- frontend features ---
|
|
172
126
|
{
|
|
173
|
-
id: '
|
|
174
|
-
type: '
|
|
127
|
+
id: 'repo-web',
|
|
128
|
+
type: 'repositoryNode',
|
|
175
129
|
position: { x: 0, y: 0 },
|
|
176
|
-
data: {
|
|
177
|
-
name: 'User Dashboard',
|
|
178
|
-
description: 'Analytics dashboard with real-time charts, filterable data tables, and CSV export',
|
|
179
|
-
featureId: '5e7a9c',
|
|
180
|
-
lifecycle: 'maintain',
|
|
181
|
-
state: 'done',
|
|
182
|
-
progress: 100,
|
|
183
|
-
runtime: '2h 15m',
|
|
184
|
-
repositoryPath: '/home/user/acme/frontend',
|
|
185
|
-
branch: 'feat/user-dashboard',
|
|
186
|
-
agentType: 'claude-code',
|
|
187
|
-
showHandles: true,
|
|
188
|
-
onDelete: noop,
|
|
189
|
-
hasAgentRun: true,
|
|
190
|
-
hasPlan: true,
|
|
191
|
-
deployment: { status: DeploymentState.Ready, url: 'https://feat-dashboard.preview.acme.dev' },
|
|
192
|
-
pr: {
|
|
193
|
-
url: 'https://github.com/acme/frontend/pull/87',
|
|
194
|
-
number: 87,
|
|
195
|
-
status: PrStatus.Merged,
|
|
196
|
-
ciStatus: CiStatus.Success,
|
|
197
|
-
},
|
|
198
|
-
},
|
|
130
|
+
data: { name: 'shep-ai/web' },
|
|
199
131
|
},
|
|
132
|
+
];
|
|
133
|
+
const dagreFeatureNodes = [
|
|
200
134
|
{
|
|
201
|
-
id: 'feat-
|
|
135
|
+
id: 'feat-auth',
|
|
202
136
|
type: 'featureNode',
|
|
203
137
|
position: { x: 0, y: 0 },
|
|
204
138
|
data: {
|
|
205
|
-
name: '
|
|
206
|
-
description: '
|
|
207
|
-
featureId: '
|
|
139
|
+
name: 'Auth Module',
|
|
140
|
+
description: 'OAuth2 authentication flow',
|
|
141
|
+
featureId: '#f1',
|
|
208
142
|
lifecycle: 'implementation',
|
|
209
|
-
state: '
|
|
210
|
-
progress:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
branch: 'feat/onboarding',
|
|
214
|
-
agentType: 'claude-code',
|
|
215
|
-
showHandles: true,
|
|
216
|
-
onDelete: noop,
|
|
217
|
-
onRetry: noopId,
|
|
218
|
-
hasAgentRun: true,
|
|
219
|
-
hasPlan: true,
|
|
143
|
+
state: 'running',
|
|
144
|
+
progress: 65,
|
|
145
|
+
repositoryPath: '/home/user/my-repo',
|
|
146
|
+
branch: 'feat/auth-module',
|
|
220
147
|
},
|
|
221
148
|
},
|
|
222
149
|
{
|
|
223
|
-
id: 'feat-
|
|
150
|
+
id: 'feat-sso',
|
|
224
151
|
type: 'featureNode',
|
|
225
152
|
position: { x: 0, y: 0 },
|
|
226
153
|
data: {
|
|
227
|
-
name: '
|
|
228
|
-
description: '
|
|
229
|
-
featureId: '
|
|
230
|
-
lifecycle: '
|
|
231
|
-
state: '
|
|
232
|
-
progress:
|
|
233
|
-
repositoryPath: '/home/user/
|
|
234
|
-
branch: 'feat/
|
|
235
|
-
showHandles: true,
|
|
236
|
-
onDelete: noop,
|
|
237
|
-
onStart: noopId,
|
|
154
|
+
name: 'SSO Integration',
|
|
155
|
+
description: 'Single sign-on across services',
|
|
156
|
+
featureId: '#f2',
|
|
157
|
+
lifecycle: 'research',
|
|
158
|
+
state: 'action-required',
|
|
159
|
+
progress: 20,
|
|
160
|
+
repositoryPath: '/home/user/my-repo',
|
|
161
|
+
branch: 'feat/sso-integration',
|
|
238
162
|
},
|
|
239
163
|
},
|
|
240
164
|
{
|
|
241
|
-
id: 'feat-
|
|
165
|
+
id: 'feat-dashboard',
|
|
242
166
|
type: 'featureNode',
|
|
243
167
|
position: { x: 0, y: 0 },
|
|
244
168
|
data: {
|
|
245
|
-
name: '
|
|
246
|
-
description: '
|
|
247
|
-
featureId: '
|
|
248
|
-
lifecycle: '
|
|
249
|
-
state: '
|
|
250
|
-
progress:
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
branch: 'feat/update-readme',
|
|
254
|
-
agentType: 'claude-code',
|
|
255
|
-
fastMode: true,
|
|
256
|
-
showHandles: true,
|
|
257
|
-
onDelete: noop,
|
|
258
|
-
hasAgentRun: true,
|
|
259
|
-
deployment: { status: DeploymentState.Ready, url: 'https://feat-readme.preview.acme.dev' },
|
|
260
|
-
pr: {
|
|
261
|
-
url: 'https://github.com/acme/frontend/pull/91',
|
|
262
|
-
number: 91,
|
|
263
|
-
status: PrStatus.Merged,
|
|
264
|
-
ciStatus: CiStatus.Success,
|
|
265
|
-
},
|
|
169
|
+
name: 'User Dashboard',
|
|
170
|
+
description: 'Main dashboard layout and widgets',
|
|
171
|
+
featureId: '#f3',
|
|
172
|
+
lifecycle: 'requirements',
|
|
173
|
+
state: 'running',
|
|
174
|
+
progress: 10,
|
|
175
|
+
repositoryPath: '/home/user/my-repo',
|
|
176
|
+
branch: 'feat/user-dashboard',
|
|
266
177
|
},
|
|
267
178
|
},
|
|
268
|
-
// --- infra features ---
|
|
269
179
|
{
|
|
270
|
-
id: 'feat-
|
|
180
|
+
id: 'feat-gateway',
|
|
271
181
|
type: 'featureNode',
|
|
272
182
|
position: { x: 0, y: 0 },
|
|
273
183
|
data: {
|
|
274
|
-
name: '
|
|
275
|
-
description: '
|
|
276
|
-
featureId: '
|
|
277
|
-
lifecycle: '
|
|
184
|
+
name: 'API Gateway',
|
|
185
|
+
description: 'Rate limiting and routing',
|
|
186
|
+
featureId: '#f4',
|
|
187
|
+
lifecycle: 'deploy',
|
|
278
188
|
state: 'done',
|
|
279
189
|
progress: 100,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
branch: 'feat/ci-pipeline',
|
|
283
|
-
agentType: 'claude-code',
|
|
284
|
-
showHandles: true,
|
|
285
|
-
onDelete: noop,
|
|
286
|
-
hasAgentRun: true,
|
|
287
|
-
hasPlan: true,
|
|
288
|
-
pr: {
|
|
289
|
-
url: 'https://github.com/acme/infra/pull/34',
|
|
290
|
-
number: 34,
|
|
291
|
-
status: PrStatus.Merged,
|
|
292
|
-
ciStatus: CiStatus.Success,
|
|
293
|
-
},
|
|
190
|
+
repositoryPath: '/home/user/my-repo',
|
|
191
|
+
branch: 'feat/api-gateway',
|
|
294
192
|
},
|
|
295
193
|
},
|
|
296
194
|
{
|
|
297
|
-
id: 'feat-
|
|
195
|
+
id: 'feat-admin',
|
|
298
196
|
type: 'featureNode',
|
|
299
197
|
position: { x: 0, y: 0 },
|
|
300
198
|
data: {
|
|
301
|
-
name: '
|
|
302
|
-
description: '
|
|
303
|
-
featureId: '
|
|
304
|
-
lifecycle: '
|
|
305
|
-
state: '
|
|
306
|
-
progress:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
startedAt: Date.now() - 22 * 60_000,
|
|
311
|
-
showHandles: true,
|
|
312
|
-
onDelete: noop,
|
|
313
|
-
onAction: noop,
|
|
314
|
-
hasAgentRun: true,
|
|
315
|
-
hasPlan: true,
|
|
316
|
-
deployment: { status: DeploymentState.Booting },
|
|
199
|
+
name: 'Admin Panel',
|
|
200
|
+
description: 'Internal admin tools',
|
|
201
|
+
featureId: '#f5',
|
|
202
|
+
lifecycle: 'review',
|
|
203
|
+
state: 'blocked',
|
|
204
|
+
progress: 40,
|
|
205
|
+
blockedBy: 'API Gateway',
|
|
206
|
+
repositoryPath: '/home/user/my-repo',
|
|
207
|
+
branch: 'feat/admin-panel',
|
|
317
208
|
},
|
|
318
209
|
},
|
|
319
210
|
];
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
{ id: 'e-
|
|
324
|
-
{ id: 'e-
|
|
325
|
-
|
|
326
|
-
{
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
{ id: 'e-infra-ci', source: 'repo-infra', target: 'feat-ci', ...dashedEdge },
|
|
332
|
-
{ id: 'e-infra-tf', source: 'repo-infra', target: 'feat-terraform', ...dashedEdge },
|
|
333
|
-
// dependency edges
|
|
334
|
-
{ id: 'e-graphql-webhooks', source: 'feat-graphql', target: 'feat-webhooks' },
|
|
335
|
-
{ id: 'e-graphql-rate', source: 'feat-graphql', target: 'feat-rate-limiter' },
|
|
336
|
-
{ id: 'e-payment-dashboard', source: 'feat-payment', target: 'feat-dashboard' },
|
|
337
|
-
{ id: 'e-ci-terraform', source: 'feat-ci', target: 'feat-terraform' },
|
|
338
|
-
];
|
|
339
|
-
const { nodes: fullSpectrumNodes, edges: fullSpectrumLayoutedEdges } = layoutWithDagre([...fullSpectrumRepos, ...fullSpectrumFeatures], fullSpectrumEdges, { direction: 'LR' });
|
|
340
|
-
// ---------------------------------------------------------------------------
|
|
341
|
-
// Stories
|
|
342
|
-
// ---------------------------------------------------------------------------
|
|
343
|
-
export const Empty = {
|
|
344
|
-
args: {
|
|
345
|
-
initialNodes: [],
|
|
346
|
-
initialEdges: [],
|
|
211
|
+
const dagreNodesRaw = [...dagreRepoNodes, ...dagreFeatureNodes];
|
|
212
|
+
const dagreEdges = [
|
|
213
|
+
// cli repo → Auth, SSO
|
|
214
|
+
{ id: 'e-cli-auth', source: 'repo-cli', target: 'feat-auth', style: { strokeDasharray: '5 5' } },
|
|
215
|
+
{ id: 'e-cli-sso', source: 'repo-cli', target: 'feat-sso', style: { strokeDasharray: '5 5' } },
|
|
216
|
+
// web repo → Dashboard, Admin
|
|
217
|
+
{
|
|
218
|
+
id: 'e-web-dash',
|
|
219
|
+
source: 'repo-web',
|
|
220
|
+
target: 'feat-dashboard',
|
|
221
|
+
style: { strokeDasharray: '5 5' },
|
|
347
222
|
},
|
|
348
|
-
|
|
349
|
-
|
|
223
|
+
{
|
|
224
|
+
id: 'e-web-admin',
|
|
225
|
+
source: 'repo-web',
|
|
226
|
+
target: 'feat-admin',
|
|
227
|
+
style: { strokeDasharray: '5 5' },
|
|
228
|
+
},
|
|
229
|
+
// Feature dependencies: Auth → Gateway, SSO → Gateway, Gateway → Admin
|
|
230
|
+
{ id: 'e-auth-gw', source: 'feat-auth', target: 'feat-gateway' },
|
|
231
|
+
{ id: 'e-sso-gw', source: 'feat-sso', target: 'feat-gateway' },
|
|
232
|
+
{ id: 'e-gw-admin', source: 'feat-gateway', target: 'feat-admin' },
|
|
233
|
+
];
|
|
234
|
+
const { nodes: dagreLayoutedNodes, edges: dagreLayoutedEdges } = layoutWithDagre(dagreNodesRaw, dagreEdges, { direction: 'LR' });
|
|
235
|
+
/**
|
|
236
|
+
* Dagre auto-layout story — two repositories with interconnected feature trees.
|
|
237
|
+
*
|
|
238
|
+
* Demonstrates the Vertical / Horizontal toolbar buttons that re-layout the graph.
|
|
239
|
+
* Initial layout is LR (horizontal). Click "Vertical" to switch to TB, or
|
|
240
|
+
* "Horizontal" to switch back.
|
|
241
|
+
*/
|
|
242
|
+
export const DagreLayout = {
|
|
350
243
|
args: {
|
|
351
|
-
initialNodes:
|
|
352
|
-
initialEdges:
|
|
244
|
+
initialNodes: dagreLayoutedNodes,
|
|
245
|
+
initialEdges: dagreLayoutedEdges,
|
|
353
246
|
},
|
|
354
247
|
};
|
|
355
248
|
// --- Archive toggle stories ---
|