@shepai/cli 1.53.0 → 1.53.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/src/presentation/cli/commands/feat/ls.command.d.ts.map +1 -1
  2. package/dist/src/presentation/cli/commands/feat/ls.command.js +1 -0
  3. package/dist/src/presentation/web/app/page.d.ts.map +1 -1
  4. package/dist/src/presentation/web/app/page.js +0 -27
  5. package/dist/src/presentation/web/components/common/add-repository-node/add-repository-button.d.ts +6 -0
  6. package/dist/src/presentation/web/components/common/add-repository-node/add-repository-button.d.ts.map +1 -0
  7. package/dist/src/presentation/web/components/common/add-repository-node/add-repository-button.js +23 -0
  8. package/dist/src/presentation/web/components/common/add-repository-node/index.d.ts +1 -0
  9. package/dist/src/presentation/web/components/common/add-repository-node/index.d.ts.map +1 -1
  10. package/dist/src/presentation/web/components/common/add-repository-node/index.js +1 -0
  11. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts.map +1 -1
  12. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.js +3 -3
  13. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.stories.d.ts +1 -0
  14. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.stories.d.ts.map +1 -1
  15. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.stories.js +31 -1
  16. package/dist/tsconfig.build.tsbuildinfo +1 -1
  17. package/package.json +1 -1
  18. package/web/.next/BUILD_ID +1 -1
  19. package/web/.next/build-manifest.json +2 -2
  20. package/web/.next/cache/.previewinfo +1 -1
  21. package/web/.next/cache/.rscinfo +1 -1
  22. package/web/.next/cache/.tsbuildinfo +1 -1
  23. package/web/.next/cache/config.json +3 -3
  24. package/web/.next/fallback-build-manifest.json +2 -2
  25. package/web/.next/prerender-manifest.json +3 -3
  26. package/web/.next/required-server-files.js +1 -1
  27. package/web/.next/required-server-files.json +1 -1
  28. package/web/.next/server/app/_global-error.html +2 -2
  29. package/web/.next/server/app/_global-error.rsc +1 -1
  30. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  31. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  32. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  33. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  34. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  35. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  36. package/web/.next/server/app/page/server-reference-manifest.json +14 -14
  37. package/web/.next/server/app/page.js.nft.json +1 -1
  38. package/web/.next/server/app/page_client-reference-manifest.js +1 -1
  39. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  40. package/web/.next/server/chunks/ssr/[root-of-the-server]__03a0dba7._.js +2 -2
  41. package/web/.next/server/chunks/ssr/[root-of-the-server]__03a0dba7._.js.map +1 -1
  42. package/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js +1 -1
  43. package/web/.next/server/chunks/ssr/[root-of-the-server]__2d1a8e37._.js +2 -2
  44. package/web/.next/server/chunks/ssr/src_presentation_web_ed0934e5._.js +1 -1
  45. package/web/.next/server/chunks/ssr/src_presentation_web_ed0934e5._.js.map +1 -1
  46. package/web/.next/server/pages/500.html +2 -2
  47. package/web/.next/server/server-reference-manifest.js +1 -1
  48. package/web/.next/server/server-reference-manifest.json +15 -15
  49. package/web/.next/standalone/src/presentation/web/.next/BUILD_ID +1 -1
  50. package/web/.next/standalone/src/presentation/web/.next/build-manifest.json +2 -2
  51. package/web/.next/standalone/src/presentation/web/.next/prerender-manifest.json +3 -3
  52. package/web/.next/standalone/src/presentation/web/.next/required-server-files.json +1 -1
  53. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.html +2 -2
  54. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.rsc +1 -1
  55. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  56. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  57. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  58. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  59. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  60. package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  61. package/web/.next/standalone/src/presentation/web/.next/server/app/page/server-reference-manifest.json +14 -14
  62. package/web/.next/standalone/src/presentation/web/.next/server/app/page.js.nft.json +1 -1
  63. package/web/.next/standalone/src/presentation/web/.next/server/app/page_client-reference-manifest.js +1 -1
  64. package/web/.next/standalone/src/presentation/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  65. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__03a0dba7._.js +2 -2
  66. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js +1 -1
  67. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__2d1a8e37._.js +2 -2
  68. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_ed0934e5._.js +1 -1
  69. package/web/.next/standalone/src/presentation/web/.next/server/pages/500.html +2 -2
  70. package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.js +1 -1
  71. package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.json +15 -15
  72. package/web/.next/standalone/src/presentation/web/app/page.tsx +0 -30
  73. package/web/.next/standalone/src/presentation/web/components/common/add-repository-node/add-repository-button.tsx +43 -0
  74. package/web/.next/standalone/src/presentation/web/components/common/add-repository-node/index.ts +1 -0
  75. package/web/.next/standalone/src/presentation/web/components/features/features-canvas/features-canvas.stories.tsx +41 -0
  76. package/web/.next/standalone/src/presentation/web/components/features/features-canvas/features-canvas.tsx +7 -2
  77. package/web/.next/standalone/src/presentation/web/server.js +1 -1
  78. package/web/.next/static/chunks/13d5334b17480a16.js +10 -0
  79. package/web/.next/static/chunks/16dec8021e251230.css +2 -0
  80. package/web/.next/trace +1 -1
  81. package/web/.next/trace-build +1 -1
  82. package/web/.next/static/chunks/48309f9ad2a84b15.css +0 -2
  83. package/web/.next/static/chunks/5123ae1490fd2606.js +0 -10
  84. /package/web/.next/static/{OXSWdTgy-1XJBN9IJtQPz → nFvWyY2BF3AIS3FpZBKEb}/_buildManifest.js +0 -0
  85. /package/web/.next/static/{OXSWdTgy-1XJBN9IJtQPz → nFvWyY2BF3AIS3FpZBKEb}/_clientMiddlewareManifest.json +0 -0
  86. /package/web/.next/static/{OXSWdTgy-1XJBN9IJtQPz → nFvWyY2BF3AIS3FpZBKEb}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ls.command.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/feat/ls.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmKpC,wBAAgB,eAAe,IAAI,OAAO,CAgGzC"}
1
+ {"version":3,"file":"ls.command.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/feat/ls.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoKpC,wBAAgB,eAAe,IAAI,OAAO,CAgGzC"}
@@ -22,6 +22,7 @@ const NODE_TO_PHASE = {
22
22
  research: 'Researching',
23
23
  plan: 'Planning',
24
24
  implement: 'Implementing',
25
+ merge: 'Merging',
25
26
  };
26
27
  /** Map graph node names to review action labels. */
27
28
  const NODE_TO_REVIEW = {
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/page.tsx"],"names":[],"mappings":"AAcA,uFAAuF;AACvF,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAsBvC,wBAA8B,QAAQ,qDAsJrC"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/page.tsx"],"names":[],"mappings":"AAcA,uFAAuF;AACvF,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAsBvC,wBAA8B,QAAQ,qDAwHrC"}
@@ -122,32 +122,5 @@ export default async function HomePage() {
122
122
  ranksep: 200,
123
123
  nodesep: 15,
124
124
  });
125
- // Position "+ Add Repository" below the last repo node (no-features case) or
126
- // vertically centered with a bottom feature node (features case).
127
- const repoNodes = laid.nodes.filter((n) => n.type === 'repositoryNode');
128
- const featureNodes = laid.nodes.filter((n) => n.type === 'featureNode');
129
- const repoX = repoNodes[0]?.position.x ?? 0;
130
- let addRepoPosition;
131
- if (featureNodes.length > 0) {
132
- // Mirror how dagre centers repo nodes with their connected features
133
- const sortedFeatures = [...featureNodes].sort((a, b) => a.position.y - b.position.y);
134
- const centerIdx = Math.floor(sortedFeatures.length / 2);
135
- const targetFeature = sortedFeatures[centerIdx + 1] ?? sortedFeatures[sortedFeatures.length - 1];
136
- // Center the add-repo node (h=50) with the target feature node (h=140)
137
- addRepoPosition = { x: repoX, y: targetFeature.position.y + 70 - 25 };
138
- }
139
- else {
140
- // No features — place below the bottom-most repo node with a gap
141
- const lastRepoY = repoNodes.length > 0 ? Math.max(...repoNodes.map((n) => n.position.y)) : 0;
142
- const repoHeight = 50;
143
- const gap = 200;
144
- addRepoPosition = { x: repoX, y: lastRepoY + repoHeight + gap };
145
- }
146
- laid.nodes.push({
147
- id: 'add-repository',
148
- type: 'addRepositoryNode',
149
- position: addRepoPosition,
150
- data: {},
151
- });
152
125
  return (_jsx("div", { className: "h-screen w-full", children: _jsx(ControlCenter, { initialNodes: laid.nodes, initialEdges: laid.edges }) }));
153
126
  }
@@ -0,0 +1,6 @@
1
+ interface AddRepositoryButtonProps {
2
+ onSelect?: (path: string) => void;
3
+ }
4
+ export declare function AddRepositoryButton({ onSelect }: AddRepositoryButtonProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=add-repository-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-repository-button.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/add-repository-node/add-repository-button.tsx"],"names":[],"mappings":"AAMA,UAAU,wBAAwB;IAChC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE,wBAAwB,2CAgCzE"}
@@ -0,0 +1,23 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState } from 'react';
4
+ import { Plus, Loader2 } from 'lucide-react';
5
+ import { pickFolder } from './pick-folder.js';
6
+ export function AddRepositoryButton({ onSelect }) {
7
+ const [loading, setLoading] = useState(false);
8
+ async function handleClick() {
9
+ if (loading)
10
+ return;
11
+ setLoading(true);
12
+ try {
13
+ const path = await pickFolder();
14
+ if (path) {
15
+ onSelect?.(path);
16
+ }
17
+ }
18
+ finally {
19
+ setLoading(false);
20
+ }
21
+ }
22
+ return (_jsxs("button", { type: "button", "data-testid": "add-repository-button", onClick: handleClick, disabled: loading, className: "border-muted-foreground/30 flex cursor-pointer items-center gap-2 rounded-full border-2 border-dashed px-3 py-1.5 text-xs transition-colors hover:border-blue-500 hover:text-blue-500 disabled:cursor-wait disabled:opacity-60", children: [loading ? (_jsx(Loader2, { className: "h-3.5 w-3.5 shrink-0 animate-spin" })) : (_jsx(Plus, { className: "h-3.5 w-3.5 shrink-0" })), _jsx("span", { className: "font-medium", children: loading ? 'Opening...' : 'Add Repository' })] }));
23
+ }
@@ -1,3 +1,4 @@
1
1
  export { AddRepositoryNode } from './add-repository-node.js';
2
+ export { AddRepositoryButton } from './add-repository-button.js';
2
3
  export type { AddRepositoryNodeData, AddRepositoryNodeType } from './add-repository-node-config.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/add-repository-node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/add-repository-node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1 +1,2 @@
1
1
  export { AddRepositoryNode } from './add-repository-node.js';
2
+ export { AddRepositoryButton } from './add-repository-button.js';
@@ -1 +1 @@
1
- {"version":3,"file":"features-canvas.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/features-canvas/features-canvas.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,kCAAkC,CAAC;AAEzF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGrF,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAE1F,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,KAAK,IAAI,CAAC;IAChE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IACtE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAC7C,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,KAAK,EACL,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,SAAS,EACT,WAAW,EACX,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,OAAO,EACP,UAAU,GACX,EAAE,mBAAmB,2CAmHrB"}
1
+ {"version":3,"file":"features-canvas.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/features-canvas/features-canvas.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,kCAAkC,CAAC;AAEzF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGrF,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAE1F,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,KAAK,IAAI,CAAC;IAChE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IACtE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAC7C,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,KAAK,EACL,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,SAAS,EACT,WAAW,EACX,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,OAAO,EACP,UAAU,GACX,EAAE,mBAAmB,2CAwHrB"}
@@ -1,13 +1,13 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useCallback, useMemo } from 'react';
4
- import { ReactFlow, Background, Controls, ReactFlowProvider } from '@xyflow/react';
4
+ import { ReactFlow, Background, Controls, Panel, ReactFlowProvider } from '@xyflow/react';
5
5
  import { Plus } from 'lucide-react';
6
6
  import { Button } from '../../ui/button.js';
7
7
  import { EmptyState } from '../../common/empty-state/index.js';
8
8
  import { FeatureNode } from '../../common/feature-node/index.js';
9
9
  import { RepositoryNode } from '../../common/repository-node/index.js';
10
- import { AddRepositoryNode } from '../../common/add-repository-node/index.js';
10
+ import { AddRepositoryButton, AddRepositoryNode } from '../../common/add-repository-node/index.js';
11
11
  import { DependencyEdge } from './dependency-edge.js';
12
12
  export function FeaturesCanvas({ nodes, edges, onNodesChange, onAddFeature, onNodeAction, onNodeSettings, onConnect, onNodeClick, onPaneClick, onRepositoryAdd, onRepositoryDelete, onRepositorySelect, toolbar, emptyState, }) {
13
13
  const nodeTypes = useMemo(() => ({
@@ -63,5 +63,5 @@ export function FeaturesCanvas({ nodes, edges, onNodesChange, onAddFeature, onNo
63
63
  }
64
64
  return (_jsx("div", { "data-testid": "features-canvas-empty", children: _jsx(EmptyState, { title: "No features yet", description: "Get started by creating your first feature.", action: _jsxs(Button, { onClick: onAddFeature, children: [_jsx(Plus, { className: "mr-2 h-4 w-4" }), "New Feature"] }) }) }));
65
65
  }
66
- return (_jsx("div", { "data-testid": "features-canvas", className: "h-full w-full", children: _jsx(ReactFlowProvider, { children: _jsxs(ReactFlow, { nodes: enrichedNodes, edges: edges, nodeTypes: nodeTypes, edgeTypes: edgeTypes, isValidConnection: isValidConnection, onConnect: onConnect, onNodesChange: onNodesChange, onNodeClick: onNodeClick, onPaneClick: onPaneClick, defaultViewport: { x: 30, y: 30, zoom: 0.85 }, nodesDraggable: false, nodesConnectable: false, elementsSelectable: false, children: [_jsx(Background, {}), _jsx(Controls, {}), toolbar] }) }) }));
66
+ return (_jsx("div", { "data-testid": "features-canvas", className: "h-full w-full", children: _jsx(ReactFlowProvider, { children: _jsxs(ReactFlow, { nodes: enrichedNodes, edges: edges, nodeTypes: nodeTypes, edgeTypes: edgeTypes, isValidConnection: isValidConnection, onConnect: onConnect, onNodesChange: onNodesChange, onNodeClick: onNodeClick, onPaneClick: onPaneClick, defaultViewport: { x: 30, y: 30, zoom: 0.85 }, nodesDraggable: false, nodesConnectable: false, elementsSelectable: false, children: [_jsx(Background, {}), _jsx(Controls, {}), onRepositorySelect ? (_jsx(Panel, { position: "top-right", className: "mr-16", children: _jsx(AddRepositoryButton, { onSelect: onRepositorySelect }) })) : null, toolbar] }) }) }));
67
67
  }
@@ -14,4 +14,5 @@ export declare const SingleRepositoryMultipleFeatures: Story;
14
14
  export declare const MultipleRepositories: Story;
15
15
  export declare const MultipleRepositoriesMixedConnections: Story;
16
16
  export declare const InteractiveWithRepository: Story;
17
+ export declare const AddRepositoryButtonClearanceCheck: Story;
17
18
  //# sourceMappingURL=features-canvas.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"features-canvas.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/features-canvas/features-canvas.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAcrC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAwKnC,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAK3B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAWzB,CAAC;AA4DF,eAAO,MAAM,mCAAmC,EAAE,KAOjD,CAAC;AAkCF,eAAO,MAAM,gCAAgC,EAAE,KAS9C,CAAC;AAgEF,eAAO,MAAM,gCAAgC,EAAE,KAW9C,CAAC;AAuDF,eAAO,MAAM,oBAAoB,EAAE,KAUlC,CAAC;AA2GF,eAAO,MAAM,oCAAoC,EAAE,KAOlD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KASvC,CAAC"}
1
+ {"version":3,"file":"features-canvas.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/features-canvas/features-canvas.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAcrC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAwKnC,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAK3B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAWzB,CAAC;AA4DF,eAAO,MAAM,mCAAmC,EAAE,KAOjD,CAAC;AAkCF,eAAO,MAAM,gCAAgC,EAAE,KAS9C,CAAC;AAgEF,eAAO,MAAM,gCAAgC,EAAE,KAW9C,CAAC;AAuDF,eAAO,MAAM,oBAAoB,EAAE,KAUlC,CAAC;AA2GF,eAAO,MAAM,oCAAoC,EAAE,KAOlD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KASvC,CAAC;AAKF,eAAO,MAAM,iCAAiC,EAAE,KAoC/C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { FeaturesCanvas } from './features-canvas.js';
3
3
  import { layoutWithDagre } from '../../../lib/layout-with-dagre.js';
4
4
  const meta = {
@@ -562,3 +562,33 @@ export const InteractiveWithRepository = {
562
562
  onRepositoryAdd: () => undefined,
563
563
  },
564
564
  };
565
+ // Story to visually verify the Add Repository button does not overlap the ThemeToggle.
566
+ // The simulated ThemeToggle (top-3 right-3, 40×40 px) is rendered as an overlay so
567
+ // reviewers can confirm the mr-16 (64 px) gap keeps the Panel clear of the toggle zone.
568
+ export const AddRepositoryButtonClearanceCheck = {
569
+ decorators: [
570
+ (Story) => (_jsxs("div", { style: { height: '100vh', position: 'relative' }, children: [_jsx(Story, {}), _jsx("div", { style: {
571
+ position: 'absolute',
572
+ top: 12,
573
+ right: 12,
574
+ width: 40,
575
+ height: 40,
576
+ background: 'rgba(255, 0, 0, 0.35)',
577
+ border: '2px dashed red',
578
+ borderRadius: 6,
579
+ display: 'flex',
580
+ alignItems: 'center',
581
+ justifyContent: 'center',
582
+ fontSize: 10,
583
+ pointerEvents: 'none',
584
+ zIndex: 50,
585
+ }, children: "Theme" })] })),
586
+ ],
587
+ args: {
588
+ nodes: repoFeatureNodes,
589
+ edges: repoFeatureEdges,
590
+ onNodeAction: () => undefined,
591
+ onNodeSettings: () => undefined,
592
+ onRepositorySelect: () => undefined,
593
+ },
594
+ };