diff --git a/.phase43-state.json b/.phase43-state.json index 891bb07..056b29f 100644 --- a/.phase43-state.json +++ b/.phase43-state.json @@ -1,5 +1,8 @@ { "completed_features": [], - "current_feature": "date-input-component", - "started_at": "2026-05-23T10:33:26.504299" + "current_feature": "time-input-component", + "started_at": "2026-05-23T10:33:26.504299", + "attempted_features": [ + "date-input-component" + ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index 2e6a568..8b20d1a 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -4448,3 +4448,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:33:41` **INFO** Committed feature date-input-component +- `10:33:41` **INFO** Pushed: rc=0 + +## Phase-3 Feature: time-input-component (2026-05-23 10:33:41) + +- `10:33:41` **INFO** Description: TimeInput für HH:MM +- `10:33:41` **INFO** Generating apps/web/src/components/TimeInput.tsx (TimeInput-Component. Props: value (string HH:MM), onChange, label?, st…) +- `10:33:51` **INFO** wrote 1180 chars in 9.8s (attempt 1) +- `10:33:51` **INFO** Running tsc --noEmit on api… +- `10:33:52` **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/TimeInput.tsx b/apps/web/src/components/TimeInput.tsx new file mode 100644 index 0000000..aebbdd4 --- /dev/null +++ b/apps/web/src/components/TimeInput.tsx @@ -0,0 +1,40 @@ +import React from 'react'; +import { Clock } from 'lucide-react'; + +interface TimeInputProps { + value: string; + onChange: (value: string) => void; + label?: string; + step?: number; +} + +const TimeInput: React.FC = ({ + value, + onChange, + label, + step = 60 +}) => { + return ( +
+ {label && ( + + )} +
+
+ +
+ onChange(e.target.value)} + step={step} + className="w-full pl-10 pr-3 py-2 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-sm text-slate-900 dark:text-slate-100 focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 transition-all" + /> +
+
+ ); +}; + +export default TimeInput; \ No newline at end of file