@shepai/cli 1.61.0 → 1.63.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/packages/core/src/infrastructure/services/pr-sync/pr-sync-watcher.service.js +1 -1
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.d.ts +17 -0
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.js +23 -0
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.stories.d.ts +22 -0
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.stories.js +56 -0
- package/dist/src/presentation/web/components/common/base-drawer/index.d.ts +2 -0
- package/dist/src/presentation/web/components/common/base-drawer/index.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/base-drawer/index.js +1 -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 +11 -16
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.d.ts +1 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.js +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer/feature-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer/feature-drawer.js +14 -14
- package/dist/src/presentation/web/components/common/repository-node/index.d.ts +1 -0
- package/dist/src/presentation/web/components/common/repository-node/index.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/repository-node/index.js +1 -0
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts +7 -0
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.js +12 -0
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.stories.d.ts +9 -0
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.stories.js +34 -0
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell.js +4 -6
- 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 +20 -2
- package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts +3 -1
- package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/features-canvas/features-canvas.js +4 -2
- package/dist/src/presentation/web/components/features/skills/skill-detail-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/skills/skill-detail-drawer.js +3 -6
- 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/cache/.previewinfo +1 -1
- package/web/.next/cache/.rscinfo +1 -1
- package/web/.next/cache/.tsbuildinfo +1 -1
- package/web/.next/cache/config.json +3 -3
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +1 -1
- package/web/.next/required-server-files.json +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/page/server-reference-manifest.json +14 -14
- package/web/.next/server/app/page.js.nft.json +1 -1
- package/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +1 -1
- 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 +1 -1
- 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/ssr/[root-of-the-server]__08ba9bd3._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5e0f14e9._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5e0f14e9._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9add7c3a._.js +4 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9add7c3a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ae251147._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ae251147._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b6839c3f._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b6839c3f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__da0ade1f._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__da0ade1f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dd5b62cb._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dd5b62cb._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fbc89707._.js +1 -1
- package/web/.next/server/chunks/ssr/_73d14b70._.js +3 -0
- package/web/.next/server/chunks/ssr/_73d14b70._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_7f386377._.js +3 -0
- package/web/.next/server/chunks/ssr/_7f386377._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_d3711354._.js +2 -2
- package/web/.next/server/chunks/ssr/_d3711354._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_a64b7b24._.js → _d81184e2._.js} +2 -2
- package/web/.next/server/chunks/ssr/_d81184e2._.js.map +1 -0
- package/web/.next/{standalone/src/presentation/web/.next/server/chunks/ssr/node_modules__pnpm_fe355030._.js → server/chunks/ssr/node_modules__pnpm_87f920e7._.js} +2 -2
- package/web/.next/server/chunks/ssr/{node_modules__pnpm_fe355030._.js.map → node_modules__pnpm_87f920e7._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_7a0b09da._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_7a0b09da._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.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 +15 -15
- package/web/.next/standalone/src/presentation/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/src/presentation/web/.next/build-manifest.json +2 -2
- package/web/.next/standalone/src/presentation/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/src/presentation/web/.next/required-server-files.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/page/server-reference-manifest.json +14 -14
- package/web/.next/standalone/src/presentation/web/.next/server/app/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page/server-reference-manifest.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page/server-reference-manifest.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/version/page.js.nft.json +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__5e0f14e9._.js +3 -0
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__9add7c3a._.js +4 -4
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__ae251147._.js +3 -0
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__b6839c3f._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__da0ade1f._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__dd5b62cb._.js +3 -0
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__fbc89707._.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_73d14b70._.js +3 -0
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_7f386377._.js +3 -0
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_d3711354._.js +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/{_a64b7b24._.js → _d81184e2._.js} +2 -2
- package/web/.next/{server/chunks/ssr/node_modules__pnpm_fe355030._.js → standalone/src/presentation/web/.next/server/chunks/ssr/node_modules__pnpm_87f920e7._.js} +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_components_7a0b09da._.js +3 -0
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +3 -0
- package/web/.next/standalone/src/presentation/web/.next/server/pages/500.html +2 -2
- package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.json +15 -15
- package/web/.next/standalone/src/presentation/web/components/common/base-drawer/base-drawer.stories.tsx +207 -0
- package/web/.next/standalone/src/presentation/web/components/common/base-drawer/base-drawer.tsx +90 -0
- package/web/.next/standalone/src/presentation/web/components/common/base-drawer/index.ts +1 -0
- package/web/.next/standalone/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.tsx +1 -1
- package/web/.next/standalone/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx +145 -172
- package/web/.next/standalone/src/presentation/web/components/common/feature-drawer/feature-drawer.tsx +119 -133
- package/web/.next/standalone/src/presentation/web/components/common/repository-node/index.ts +1 -0
- package/web/.next/standalone/src/presentation/web/components/common/repository-node/repository-drawer.stories.tsx +58 -0
- package/web/.next/standalone/src/presentation/web/components/common/repository-node/repository-drawer.tsx +82 -0
- package/web/.next/standalone/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell.tsx +79 -96
- package/web/.next/standalone/src/presentation/web/components/features/control-center/control-center-inner.tsx +30 -2
- package/web/.next/standalone/src/presentation/web/components/features/features-canvas/features-canvas.tsx +7 -0
- package/web/.next/standalone/src/presentation/web/components/features/skills/skill-detail-drawer.tsx +71 -77
- package/web/.next/standalone/src/presentation/web/server.js +1 -1
- package/web/.next/static/chunks/0c6654ec27f11c7e.js +1 -0
- package/web/.next/static/chunks/12c70bfd5951cf9b.js +1 -0
- package/web/.next/static/chunks/21541b346dd4dd28.js +1 -0
- package/web/.next/static/chunks/{cb1b27e4a21415d3.js → 3b941e59ac013e12.js} +2 -2
- package/web/.next/static/chunks/426292e5fb0b2a61.js +1 -0
- package/web/.next/static/chunks/{09d898be63c54f20.js → 78919481e7c5ad4f.js} +1 -1
- package/web/.next/static/chunks/a5b6a22de303e877.css +2 -0
- package/web/.next/static/chunks/af7a5bcb7c49e46e.js +1 -0
- package/web/.next/static/chunks/be784143669bb992.js +1 -0
- package/web/.next/static/chunks/ea57f9afe9055c7a.js +10 -0
- package/web/.next/trace +1 -1
- package/web/.next/trace-build +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2395adc6._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2395adc6._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__87fda958._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__87fda958._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ee7cffe1._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ee7cffe1._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_9915d2a7._.js +0 -3
- package/web/.next/server/chunks/ssr/_9915d2a7._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_a64b7b24._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_e7a4b0e4._.js +0 -3
- package/web/.next/server/chunks/ssr/_e7a4b0e4._.js.map +0 -1
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__2395adc6._.js +0 -3
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__87fda958._.js +0 -3
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__ee7cffe1._.js +0 -3
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_9915d2a7._.js +0 -3
- package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_e7a4b0e4._.js +0 -3
- package/web/.next/static/chunks/13664c029245afc8.js +0 -1
- package/web/.next/static/chunks/25f42652257ff43d.js +0 -1
- package/web/.next/static/chunks/2934854f0378f815.js +0 -1
- package/web/.next/static/chunks/2960a70537e4fd12.js +0 -10
- package/web/.next/static/chunks/45f510f84c7c417d.css +0 -2
- package/web/.next/static/chunks/79718b1f5713fdc0.js +0 -1
- /package/web/.next/static/{_DBWexyU1QkK02q15qod2 → 23Y-ea-5g4_fUHZyGpCb0}/_buildManifest.js +0 -0
- /package/web/.next/static/{_DBWexyU1QkK02q15qod2 → 23Y-ea-5g4_fUHZyGpCb0}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{_DBWexyU1QkK02q15qod2 → 23Y-ea-5g4_fUHZyGpCb0}/_ssgManifest.js +0 -0
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { useState, useCallback, useEffect, useRef } from 'react';
|
|
4
4
|
import type { LucideIcon } from 'lucide-react';
|
|
5
5
|
import {
|
|
6
|
-
XIcon,
|
|
7
6
|
PlusIcon,
|
|
8
7
|
FileIcon,
|
|
9
8
|
FileTextIcon,
|
|
@@ -15,14 +14,8 @@ import {
|
|
|
15
14
|
} from 'lucide-react';
|
|
16
15
|
import { cn } from '@/lib/utils';
|
|
17
16
|
import { useSoundAction } from '@/hooks/use-sound-action';
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
DrawerContent,
|
|
21
|
-
DrawerHeader,
|
|
22
|
-
DrawerTitle,
|
|
23
|
-
DrawerDescription,
|
|
24
|
-
DrawerFooter,
|
|
25
|
-
} from '@/components/ui/drawer';
|
|
17
|
+
import { BaseDrawer } from '@/components/common/base-drawer';
|
|
18
|
+
import { DrawerTitle, DrawerDescription } from '@/components/ui/drawer';
|
|
26
19
|
import { Button } from '@/components/ui/button';
|
|
27
20
|
import { Input } from '@/components/ui/input';
|
|
28
21
|
import { Textarea } from '@/components/ui/textarea';
|
|
@@ -142,16 +135,11 @@ export function FeatureCreateDrawer({
|
|
|
142
135
|
setParentId(undefined);
|
|
143
136
|
}, [defaultGates, defaultPush, defaultOpenPr]);
|
|
144
137
|
|
|
145
|
-
const
|
|
146
|
-
(
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
onClose();
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
[onClose, resetForm, drawerCloseSound]
|
|
154
|
-
);
|
|
138
|
+
const handleClose = useCallback(() => {
|
|
139
|
+
drawerCloseSound.play();
|
|
140
|
+
resetForm();
|
|
141
|
+
onClose();
|
|
142
|
+
}, [onClose, resetForm, drawerCloseSound]);
|
|
155
143
|
|
|
156
144
|
const handleSubmit = useCallback(
|
|
157
145
|
(e: React.FormEvent) => {
|
|
@@ -173,6 +161,7 @@ export function FeatureCreateDrawer({
|
|
|
173
161
|
openPr,
|
|
174
162
|
...(parentId ? { parentId } : {}),
|
|
175
163
|
});
|
|
164
|
+
resetForm();
|
|
176
165
|
},
|
|
177
166
|
[
|
|
178
167
|
name,
|
|
@@ -185,6 +174,7 @@ export function FeatureCreateDrawer({
|
|
|
185
174
|
openPr,
|
|
186
175
|
parentId,
|
|
187
176
|
createSound,
|
|
177
|
+
resetForm,
|
|
188
178
|
]
|
|
189
179
|
);
|
|
190
180
|
|
|
@@ -206,23 +196,14 @@ export function FeatureCreateDrawer({
|
|
|
206
196
|
const hasFeatures = features && features.length > 0;
|
|
207
197
|
|
|
208
198
|
return (
|
|
209
|
-
<
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
onClose();
|
|
218
|
-
}}
|
|
219
|
-
className="ring-offset-background focus:ring-ring absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden"
|
|
220
|
-
>
|
|
221
|
-
<XIcon className="size-4" />
|
|
222
|
-
</button>
|
|
223
|
-
|
|
224
|
-
{/* Header */}
|
|
225
|
-
<DrawerHeader>
|
|
199
|
+
<BaseDrawer
|
|
200
|
+
open={open}
|
|
201
|
+
onClose={handleClose}
|
|
202
|
+
size="md"
|
|
203
|
+
modal={false}
|
|
204
|
+
data-testid="feature-create-drawer"
|
|
205
|
+
header={
|
|
206
|
+
<>
|
|
226
207
|
<div className="flex items-center gap-2">
|
|
227
208
|
<div className="h-2.5 w-2.5 shrink-0 rounded-full bg-blue-500" />
|
|
228
209
|
<DrawerTitle>NEW FEATURE</DrawerTitle>
|
|
@@ -232,164 +213,156 @@ export function FeatureCreateDrawer({
|
|
|
232
213
|
<Badge variant="secondary">Creating...</Badge>
|
|
233
214
|
</div>
|
|
234
215
|
</DrawerDescription>
|
|
235
|
-
|
|
216
|
+
</>
|
|
217
|
+
}
|
|
218
|
+
footer={
|
|
219
|
+
<div className="flex flex-row justify-end gap-2">
|
|
220
|
+
<Button variant="outline" onClick={handleClose} disabled={isSubmitting}>
|
|
221
|
+
Cancel
|
|
222
|
+
</Button>
|
|
223
|
+
<Button type="submit" form="create-feature-form" disabled={!name.trim() || isSubmitting}>
|
|
224
|
+
{isSubmitting ? 'Creating...' : '+ Create Feature'}
|
|
225
|
+
</Button>
|
|
226
|
+
</div>
|
|
227
|
+
}
|
|
228
|
+
>
|
|
229
|
+
<Separator />
|
|
230
|
+
|
|
231
|
+
{/* Form body */}
|
|
232
|
+
<div className="p-4">
|
|
233
|
+
<form id="create-feature-form" onSubmit={handleSubmit} className="flex flex-col gap-4">
|
|
234
|
+
{/* Feature name */}
|
|
235
|
+
<div className="flex flex-col gap-1.5">
|
|
236
|
+
<Label
|
|
237
|
+
htmlFor="feature-name"
|
|
238
|
+
className="text-muted-foreground text-xs font-semibold tracking-wider"
|
|
239
|
+
>
|
|
240
|
+
FEATURE NAME
|
|
241
|
+
</Label>
|
|
242
|
+
<Input
|
|
243
|
+
id="feature-name"
|
|
244
|
+
placeholder="e.g. GitHub OAuth Login"
|
|
245
|
+
value={name}
|
|
246
|
+
onChange={(e) => setName(e.target.value)}
|
|
247
|
+
required
|
|
248
|
+
disabled={isSubmitting}
|
|
249
|
+
/>
|
|
250
|
+
</div>
|
|
236
251
|
|
|
237
|
-
|
|
252
|
+
{/* Description */}
|
|
253
|
+
<div className="flex flex-col gap-1.5">
|
|
254
|
+
<Label
|
|
255
|
+
htmlFor="feature-description"
|
|
256
|
+
className="text-muted-foreground text-xs font-semibold tracking-wider"
|
|
257
|
+
>
|
|
258
|
+
DESCRIPTION
|
|
259
|
+
</Label>
|
|
260
|
+
<Textarea
|
|
261
|
+
id="feature-description"
|
|
262
|
+
placeholder="Describe what this feature does..."
|
|
263
|
+
value={description}
|
|
264
|
+
onChange={(e) => setDescription(e.target.value)}
|
|
265
|
+
rows={4}
|
|
266
|
+
disabled={isSubmitting}
|
|
267
|
+
/>
|
|
268
|
+
</div>
|
|
238
269
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
<form id="create-feature-form" onSubmit={handleSubmit} className="flex flex-col gap-4">
|
|
242
|
-
{/* Feature name */}
|
|
270
|
+
{/* Parent feature selector (only when features are available) */}
|
|
271
|
+
{hasFeatures ? (
|
|
243
272
|
<div className="flex flex-col gap-1.5">
|
|
244
273
|
<Label
|
|
245
|
-
htmlFor="feature
|
|
274
|
+
htmlFor="parent-feature"
|
|
246
275
|
className="text-muted-foreground text-xs font-semibold tracking-wider"
|
|
247
276
|
>
|
|
248
|
-
FEATURE
|
|
277
|
+
PARENT FEATURE
|
|
249
278
|
</Label>
|
|
250
|
-
<
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
onChange={(e) => setName(e.target.value)}
|
|
255
|
-
required
|
|
279
|
+
<ParentFeatureCombobox
|
|
280
|
+
features={features}
|
|
281
|
+
value={parentId}
|
|
282
|
+
onChange={setParentId}
|
|
256
283
|
disabled={isSubmitting}
|
|
257
284
|
/>
|
|
258
285
|
</div>
|
|
286
|
+
) : null}
|
|
287
|
+
|
|
288
|
+
{/* Auto-approve checkboxes */}
|
|
289
|
+
<div className="flex flex-col gap-1.5">
|
|
290
|
+
<Label className="text-muted-foreground text-xs font-semibold tracking-wider">
|
|
291
|
+
APPROVE
|
|
292
|
+
</Label>
|
|
293
|
+
<CheckboxGroup
|
|
294
|
+
label="Autonomous Mode"
|
|
295
|
+
description="YOLO!"
|
|
296
|
+
parentAriaLabel="Auto approve all"
|
|
297
|
+
options={AUTO_APPROVE_OPTIONS}
|
|
298
|
+
value={approvalGates}
|
|
299
|
+
onValueChange={setApprovalGates}
|
|
300
|
+
disabled={isSubmitting}
|
|
301
|
+
/>
|
|
302
|
+
</div>
|
|
259
303
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
304
|
+
{/* Git options */}
|
|
305
|
+
<div className="flex flex-col gap-1.5">
|
|
306
|
+
<Label className="text-muted-foreground text-xs font-semibold tracking-wider">
|
|
307
|
+
GIT
|
|
308
|
+
</Label>
|
|
309
|
+
<div className="flex flex-col gap-2">
|
|
310
|
+
<CheckboxGroupItem
|
|
311
|
+
id="push"
|
|
312
|
+
label="Push"
|
|
313
|
+
description="Push branch to remote after implementation."
|
|
314
|
+
checked={push || openPr}
|
|
315
|
+
onCheckedChange={setPush}
|
|
316
|
+
disabled={openPr || isSubmitting}
|
|
317
|
+
/>
|
|
318
|
+
<CheckboxGroupItem
|
|
319
|
+
id="open-pr"
|
|
320
|
+
label="Create PR"
|
|
321
|
+
description="Open a pull request after pushing."
|
|
322
|
+
checked={openPr}
|
|
323
|
+
onCheckedChange={setOpenPr}
|
|
274
324
|
disabled={isSubmitting}
|
|
275
325
|
/>
|
|
276
326
|
</div>
|
|
327
|
+
</div>
|
|
277
328
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
<Label
|
|
282
|
-
htmlFor="parent-feature"
|
|
283
|
-
className="text-muted-foreground text-xs font-semibold tracking-wider"
|
|
284
|
-
>
|
|
285
|
-
PARENT FEATURE
|
|
286
|
-
</Label>
|
|
287
|
-
<ParentFeatureCombobox
|
|
288
|
-
features={features}
|
|
289
|
-
value={parentId}
|
|
290
|
-
onChange={setParentId}
|
|
291
|
-
disabled={isSubmitting}
|
|
292
|
-
/>
|
|
293
|
-
</div>
|
|
294
|
-
) : null}
|
|
295
|
-
|
|
296
|
-
{/* Auto-approve checkboxes */}
|
|
297
|
-
<div className="flex flex-col gap-1.5">
|
|
329
|
+
{/* Attachments */}
|
|
330
|
+
<div className="flex flex-col gap-2">
|
|
331
|
+
<div className="flex items-center justify-between">
|
|
298
332
|
<Label className="text-muted-foreground text-xs font-semibold tracking-wider">
|
|
299
|
-
|
|
333
|
+
ATTACHMENTS
|
|
334
|
+
{attachments.length > 0 && (
|
|
335
|
+
<span className="text-muted-foreground/60 ml-1.5">({attachments.length})</span>
|
|
336
|
+
)}
|
|
300
337
|
</Label>
|
|
301
|
-
<
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
value={approvalGates}
|
|
307
|
-
onValueChange={setApprovalGates}
|
|
338
|
+
<Button
|
|
339
|
+
type="button"
|
|
340
|
+
variant="outline"
|
|
341
|
+
size="xs"
|
|
342
|
+
onClick={handleAddFiles}
|
|
308
343
|
disabled={isSubmitting}
|
|
309
|
-
|
|
344
|
+
>
|
|
345
|
+
<PlusIcon className="size-3" />
|
|
346
|
+
Add Files
|
|
347
|
+
</Button>
|
|
310
348
|
</div>
|
|
311
349
|
|
|
312
|
-
{
|
|
313
|
-
<div className="flex flex-col gap-1.5">
|
|
314
|
-
<Label className="text-muted-foreground text-xs font-semibold tracking-wider">
|
|
315
|
-
GIT
|
|
316
|
-
</Label>
|
|
350
|
+
{attachments.length > 0 && (
|
|
317
351
|
<div className="flex flex-col gap-2">
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
<CheckboxGroupItem
|
|
327
|
-
id="open-pr"
|
|
328
|
-
label="Create PR"
|
|
329
|
-
description="Open a pull request after pushing."
|
|
330
|
-
checked={openPr}
|
|
331
|
-
onCheckedChange={setOpenPr}
|
|
332
|
-
disabled={isSubmitting}
|
|
333
|
-
/>
|
|
352
|
+
{attachments.map((file) => (
|
|
353
|
+
<AttachmentCard
|
|
354
|
+
key={file.path}
|
|
355
|
+
file={file}
|
|
356
|
+
onRemove={() => handleRemoveFile(file.path)}
|
|
357
|
+
disabled={isSubmitting}
|
|
358
|
+
/>
|
|
359
|
+
))}
|
|
334
360
|
</div>
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
<Label className="text-muted-foreground text-xs font-semibold tracking-wider">
|
|
341
|
-
ATTACHMENTS
|
|
342
|
-
{attachments.length > 0 && (
|
|
343
|
-
<span className="text-muted-foreground/60 ml-1.5">({attachments.length})</span>
|
|
344
|
-
)}
|
|
345
|
-
</Label>
|
|
346
|
-
<Button
|
|
347
|
-
type="button"
|
|
348
|
-
variant="outline"
|
|
349
|
-
size="xs"
|
|
350
|
-
onClick={handleAddFiles}
|
|
351
|
-
disabled={isSubmitting}
|
|
352
|
-
>
|
|
353
|
-
<PlusIcon className="size-3" />
|
|
354
|
-
Add Files
|
|
355
|
-
</Button>
|
|
356
|
-
</div>
|
|
357
|
-
|
|
358
|
-
{attachments.length > 0 && (
|
|
359
|
-
<div className="flex flex-col gap-2">
|
|
360
|
-
{attachments.map((file) => (
|
|
361
|
-
<AttachmentCard
|
|
362
|
-
key={file.path}
|
|
363
|
-
file={file}
|
|
364
|
-
onRemove={() => handleRemoveFile(file.path)}
|
|
365
|
-
disabled={isSubmitting}
|
|
366
|
-
/>
|
|
367
|
-
))}
|
|
368
|
-
</div>
|
|
369
|
-
)}
|
|
370
|
-
</div>
|
|
371
|
-
</form>
|
|
372
|
-
</div>
|
|
373
|
-
|
|
374
|
-
{/* Footer */}
|
|
375
|
-
<Separator />
|
|
376
|
-
<DrawerFooter className="flex-row justify-end gap-2">
|
|
377
|
-
<Button
|
|
378
|
-
variant="outline"
|
|
379
|
-
onClick={() => {
|
|
380
|
-
drawerCloseSound.play();
|
|
381
|
-
onClose();
|
|
382
|
-
}}
|
|
383
|
-
disabled={isSubmitting}
|
|
384
|
-
>
|
|
385
|
-
Cancel
|
|
386
|
-
</Button>
|
|
387
|
-
<Button type="submit" form="create-feature-form" disabled={!name.trim() || isSubmitting}>
|
|
388
|
-
{isSubmitting ? 'Creating...' : '+ Create Feature'}
|
|
389
|
-
</Button>
|
|
390
|
-
</DrawerFooter>
|
|
391
|
-
</DrawerContent>
|
|
392
|
-
</Drawer>
|
|
361
|
+
)}
|
|
362
|
+
</div>
|
|
363
|
+
</form>
|
|
364
|
+
</div>
|
|
365
|
+
</BaseDrawer>
|
|
393
366
|
);
|
|
394
367
|
}
|
|
395
368
|
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useCallback, useEffect } from 'react';
|
|
4
|
+
import { Loader2, Trash2, ExternalLink, GitCommitHorizontal } from 'lucide-react';
|
|
4
5
|
import { PrStatus } from '@shepai/core/domain/generated/output';
|
|
5
6
|
import { cn } from '@/lib/utils';
|
|
6
7
|
import { useSoundAction } from '@/hooks/use-sound-action';
|
|
7
8
|
import { OpenActionMenu } from '@/components/common/open-action-menu';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
DrawerContent,
|
|
11
|
-
DrawerHeader,
|
|
12
|
-
DrawerTitle,
|
|
13
|
-
DrawerDescription,
|
|
14
|
-
} from '@/components/ui/drawer';
|
|
9
|
+
import { BaseDrawer } from '@/components/common/base-drawer';
|
|
10
|
+
import { DrawerTitle, DrawerDescription } from '@/components/ui/drawer';
|
|
15
11
|
import { Button } from '@/components/ui/button';
|
|
16
12
|
import { Badge } from '@/components/ui/badge';
|
|
17
13
|
import { Separator } from '@/components/ui/separator';
|
|
@@ -48,143 +44,133 @@ export function FeatureDrawer({
|
|
|
48
44
|
const drawerOpenSound = useSoundAction('drawer-open');
|
|
49
45
|
const drawerCloseSound = useSoundAction('drawer-close');
|
|
50
46
|
|
|
47
|
+
const isOpen = selectedNode !== null;
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (isOpen) drawerOpenSound.play();
|
|
50
|
+
}, [isOpen, drawerOpenSound]);
|
|
51
|
+
|
|
52
|
+
const handleClose = useCallback(() => {
|
|
53
|
+
drawerCloseSound.play();
|
|
54
|
+
onClose();
|
|
55
|
+
}, [onClose, drawerCloseSound]);
|
|
56
|
+
|
|
51
57
|
return (
|
|
52
|
-
<
|
|
53
|
-
direction="right"
|
|
54
|
-
modal={false}
|
|
55
|
-
handleOnly
|
|
58
|
+
<BaseDrawer
|
|
56
59
|
open={selectedNode !== null}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
onClose={handleClose}
|
|
61
|
+
size="sm"
|
|
62
|
+
modal={false}
|
|
63
|
+
data-testid="feature-drawer"
|
|
64
|
+
header={
|
|
65
|
+
selectedNode ? (
|
|
66
|
+
<div data-testid="feature-drawer-header">
|
|
67
|
+
<DrawerTitle>{selectedNode.name}</DrawerTitle>
|
|
68
|
+
<DrawerDescription>{selectedNode.featureId}</DrawerDescription>
|
|
69
|
+
</div>
|
|
70
|
+
) : undefined
|
|
71
|
+
}
|
|
65
72
|
>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}}
|
|
77
|
-
className="ring-offset-background focus:ring-ring absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden"
|
|
78
|
-
>
|
|
79
|
-
<XIcon className="size-4" />
|
|
80
|
-
</button>
|
|
73
|
+
{selectedNode ? (
|
|
74
|
+
<>
|
|
75
|
+
{/* Action buttons */}
|
|
76
|
+
{selectedNode.repositoryPath && selectedNode.branch ? (
|
|
77
|
+
<DrawerActions
|
|
78
|
+
repositoryPath={selectedNode.repositoryPath}
|
|
79
|
+
branch={selectedNode.branch}
|
|
80
|
+
specPath={selectedNode.specPath}
|
|
81
|
+
/>
|
|
82
|
+
) : null}
|
|
81
83
|
|
|
82
|
-
|
|
83
|
-
<DrawerHeader data-testid="feature-drawer-header">
|
|
84
|
-
<DrawerTitle>{selectedNode.name}</DrawerTitle>
|
|
85
|
-
<DrawerDescription>{selectedNode.featureId}</DrawerDescription>
|
|
86
|
-
</DrawerHeader>
|
|
84
|
+
<Separator />
|
|
87
85
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
specPath={selectedNode.specPath}
|
|
94
|
-
/>
|
|
95
|
-
) : null}
|
|
96
|
-
|
|
97
|
-
<Separator />
|
|
98
|
-
|
|
99
|
-
{/* Status */}
|
|
100
|
-
<div data-testid="feature-drawer-status" className="flex flex-col gap-3 p-4">
|
|
101
|
-
<div className="text-muted-foreground text-xs font-semibold tracking-wider">
|
|
102
|
-
{lifecycleDisplayLabels[selectedNode.lifecycle]}
|
|
103
|
-
</div>
|
|
86
|
+
{/* Status */}
|
|
87
|
+
<div data-testid="feature-drawer-status" className="flex flex-col gap-3 p-4">
|
|
88
|
+
<div className="text-muted-foreground text-xs font-semibold tracking-wider">
|
|
89
|
+
{lifecycleDisplayLabels[selectedNode.lifecycle]}
|
|
90
|
+
</div>
|
|
104
91
|
|
|
105
|
-
|
|
92
|
+
<StateBadge data={selectedNode} />
|
|
106
93
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
</div>
|
|
113
|
-
<div className="bg-muted h-2 w-full overflow-hidden rounded-full">
|
|
114
|
-
<div
|
|
115
|
-
className={cn(
|
|
116
|
-
'h-full rounded-full transition-all',
|
|
117
|
-
featureNodeStateConfig[selectedNode.state].progressClass
|
|
118
|
-
)}
|
|
119
|
-
style={{ width: `${selectedNode.progress}%` }}
|
|
120
|
-
/>
|
|
121
|
-
</div>
|
|
94
|
+
{selectedNode.progress > 0 ? (
|
|
95
|
+
<div data-testid="feature-drawer-progress" className="flex flex-col gap-1">
|
|
96
|
+
<div className="text-muted-foreground flex items-center justify-between text-xs">
|
|
97
|
+
<span>Progress</span>
|
|
98
|
+
<span>{selectedNode.progress}%</span>
|
|
122
99
|
</div>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
100
|
+
<div className="bg-muted h-2 w-full overflow-hidden rounded-full">
|
|
101
|
+
<div
|
|
102
|
+
className={cn(
|
|
103
|
+
'h-full rounded-full transition-all',
|
|
104
|
+
featureNodeStateConfig[selectedNode.state].progressClass
|
|
105
|
+
)}
|
|
106
|
+
style={{ width: `${selectedNode.progress}%` }}
|
|
107
|
+
/>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
132
110
|
) : null}
|
|
111
|
+
</div>
|
|
133
112
|
|
|
134
|
-
|
|
113
|
+
{/* PR info */}
|
|
114
|
+
{selectedNode.pr ? (
|
|
115
|
+
<>
|
|
116
|
+
<Separator />
|
|
117
|
+
<PrInfoSection pr={selectedNode.pr} />
|
|
118
|
+
</>
|
|
119
|
+
) : null}
|
|
135
120
|
|
|
136
|
-
|
|
137
|
-
<DetailsSection data={selectedNode} />
|
|
121
|
+
<Separator />
|
|
138
122
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
123
|
+
{/* Details */}
|
|
124
|
+
<DetailsSection data={selectedNode} />
|
|
125
|
+
|
|
126
|
+
{/* Delete action */}
|
|
127
|
+
{onDelete ? (
|
|
128
|
+
<>
|
|
129
|
+
<Separator />
|
|
130
|
+
<div data-testid="feature-drawer-delete" className="p-4">
|
|
131
|
+
<AlertDialog>
|
|
132
|
+
<AlertDialogTrigger asChild>
|
|
133
|
+
<Button variant="destructive" className="w-full" disabled={isDeleting}>
|
|
134
|
+
<Trash2 className="mr-2 h-4 w-4" />
|
|
135
|
+
Delete feature
|
|
136
|
+
</Button>
|
|
137
|
+
</AlertDialogTrigger>
|
|
138
|
+
<AlertDialogContent>
|
|
139
|
+
<AlertDialogHeader>
|
|
140
|
+
<AlertDialogTitle>Delete feature?</AlertDialogTitle>
|
|
141
|
+
<AlertDialogDescription>
|
|
142
|
+
This will permanently delete <strong>{selectedNode.name}</strong> (
|
|
143
|
+
{selectedNode.featureId}). This action cannot be undone.
|
|
144
|
+
{selectedNode.state === 'running' ? (
|
|
145
|
+
<> This feature has a running agent that will be stopped.</>
|
|
146
|
+
) : null}
|
|
147
|
+
</AlertDialogDescription>
|
|
148
|
+
</AlertDialogHeader>
|
|
149
|
+
<AlertDialogFooter>
|
|
150
|
+
<AlertDialogCancel disabled={isDeleting}>Cancel</AlertDialogCancel>
|
|
151
|
+
<AlertDialogAction
|
|
152
|
+
variant="destructive"
|
|
153
|
+
disabled={isDeleting}
|
|
154
|
+
onClick={() => onDelete(selectedNode.featureId)}
|
|
155
|
+
>
|
|
156
|
+
{isDeleting ? (
|
|
157
|
+
<>
|
|
158
|
+
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
|
|
159
|
+
Deleting…
|
|
160
|
+
</>
|
|
161
|
+
) : (
|
|
162
|
+
'Delete'
|
|
163
|
+
)}
|
|
164
|
+
</AlertDialogAction>
|
|
165
|
+
</AlertDialogFooter>
|
|
166
|
+
</AlertDialogContent>
|
|
167
|
+
</AlertDialog>
|
|
168
|
+
</div>
|
|
169
|
+
</>
|
|
170
|
+
) : null}
|
|
171
|
+
</>
|
|
172
|
+
) : null}
|
|
173
|
+
</BaseDrawer>
|
|
188
174
|
);
|
|
189
175
|
}
|
|
190
176
|
|