diff --git a/.phase26-state.json b/.phase26-state.json index c5dffe6..4fa9a42 100644 --- a/.phase26-state.json +++ b/.phase26-state.json @@ -1,8 +1,9 @@ { "completed_features": [], - "current_feature": "empty-state-illustrations", + "current_feature": "confirm-modal", "started_at": "2026-05-23T08:51:33.874805", "attempted_features": [ - "loading-skeletons" + "loading-skeletons", + "empty-state-illustrations" ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index 19a277d..65cac8f 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -3037,3 +3037,21 @@ src/index.ts(27,25): error TS2769: No overload matches this call. Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error. Argument of type 'Promise' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. Type 'Promise' provides no match for the signature '(instance: FastifyInstance, +- `08:52:00` **INFO** Committed feature empty-state-illustrations +- `08:52:00` **INFO** Pushed: rc=0 + +## Phase-3 Feature: confirm-modal (2026-05-23 08:52:00) + +- `08:52:00` **INFO** Description: Reusable Confirm-Modal statt window.confirm() +- `08:52:00` **INFO** Generating apps/web/src/components/ConfirmModal.tsx (ConfirmModal-Component. Props: open, onClose, onConfirm, title, messag…) +- `08:52:16` **INFO** wrote 1754 chars in 16.0s (attempt 1) +- `08:52:16` **INFO** Running tsc --noEmit on api… +- `08:52:18` **WARN** tsc errors: +src/db/schema.ts(37,14): error TS7022: 'customers' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +src/db/schema.ts(43,59): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +src/db/schema.ts(47,14): error TS7022: 'projects' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +src/db/schema.ts(51,56): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +src/index.ts(27,25): error TS2769: No overload matches this call. + Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error. + Argument of type 'Promise' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. + Type 'Promise' provides no match for the signature '(instance: FastifyInstance, diff --git a/apps/web/src/components/ConfirmModal.tsx b/apps/web/src/components/ConfirmModal.tsx new file mode 100644 index 0000000..2efec29 --- /dev/null +++ b/apps/web/src/components/ConfirmModal.tsx @@ -0,0 +1,62 @@ +import React from 'react'; + +interface ConfirmModalProps { + open: boolean; + onClose: () => void; + onConfirm: () => void; + title: string; + message: string; + confirmLabel?: string; + danger?: boolean; +} + +export default function ConfirmModal({ + open, + onClose, + onConfirm, + title, + message, + confirmLabel = 'Bestätigen', + danger = false, +}: ConfirmModalProps) { + if (!open) return null; + + return ( +
+
e.stopPropagation()} + > +
+

+ {title} +

+

+ {message} +

+
+
+ + +
+
+
+ ); +} \ No newline at end of file