diff --git a/.phase45-state.json b/.phase45-state.json index defe14e..92bdd50 100644 --- a/.phase45-state.json +++ b/.phase45-state.json @@ -1,8 +1,9 @@ { "completed_features": [], - "current_feature": "hint-component", + "current_feature": "loader-component", "started_at": "2026-05-23T10:43:31.771649", "attempted_features": [ - "footer-component" + "footer-component", + "hint-component" ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index acb878a..59ef78e 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -4624,3 +4624,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, +- `10:43:52` **INFO** Committed feature hint-component +- `10:43:52` **INFO** Pushed: rc=0 + +## Phase-3 Feature: loader-component (2026-05-23 10:43:52) + +- `10:43:52` **INFO** Description: Loader fullscreen-overlay +- `10:43:52` **INFO** Generating apps/web/src/components/Loader.tsx (Loader-Component. Props: message? (default 'Wird geladen...'), fullscr…) +- `10:44:01` **INFO** wrote 1066 chars in 8.5s (attempt 1) +- `10:44:01` **INFO** Running tsc --noEmit on api… +- `10:44:02` **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(45,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(49,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(53,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/Loader.tsx b/apps/web/src/components/Loader.tsx new file mode 100644 index 0000000..c15b6fd --- /dev/null +++ b/apps/web/src/components/Loader.tsx @@ -0,0 +1,36 @@ +import React from 'react'; +import { Loader2 } from 'lucide-react'; + +interface LoaderProps { + message?: string; + fullscreen?: boolean; +} + +const Loader: React.FC = ({ + message = 'Wird geladen...', + fullscreen = false +}) => { + if (fullscreen) { + return ( +
+
+ + + {message} + +
+
+ ); + } + + return ( +
+ + + {message} + +
+ ); +}; + +export default Loader; \ No newline at end of file