feat(time-input-component): TimeInput für HH:MM [tsc:fail]

This commit is contained in:
Dennis (via Claude+Gemma) 2026-05-23 10:33:52 +02:00
parent b1403587a2
commit f2e28b7b7d
3 changed files with 63 additions and 2 deletions

View File

@ -1,5 +1,8 @@
{ {
"completed_features": [], "completed_features": [],
"current_feature": "date-input-component", "current_feature": "time-input-component",
"started_at": "2026-05-23T10:33:26.504299" "started_at": "2026-05-23T10:33:26.504299",
"attempted_features": [
"date-input-component"
]
} }

View File

@ -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. 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<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
- `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<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,

View File

@ -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<TimeInputProps> = ({
value,
onChange,
label,
step = 60
}) => {
return (
<div className="flex flex-col gap-1.5 w-full">
{label && (
<label className="text-sm font-medium text-slate-700 dark:text-slate-300">
{label}
</label>
)}
<div className="relative group">
<div className="absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-blue-500 transition-colors">
<Clock size={16} />
</div>
<input
type="time"
value={value}
onChange={(e) => 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"
/>
</div>
</div>
);
};
export default TimeInput;