feat(kbd-component): Kbd für Keyboard-Shortcut-Display [tsc:fail]

This commit is contained in:
Dennis (via Claude+Gemma) 2026-05-23 10:24:08 +02:00
parent ffae5f8dd5
commit ce3fb66a6f
3 changed files with 34 additions and 2 deletions

View File

@ -1,9 +1,10 @@
{ {
"completed_features": [], "completed_features": [],
"current_feature": "toolbar-button-component", "current_feature": "kbd-component",
"started_at": "2026-05-23T10:23:26.274445", "started_at": "2026-05-23T10:23:26.274445",
"attempted_features": [ "attempted_features": [
"page-header-component", "page-header-component",
"stat-card-component" "stat-card-component",
"toolbar-button-component"
] ]
} }

View File

@ -4326,3 +4326,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:24:02` **INFO** Committed feature toolbar-button-component
- `10:24:02` **INFO** Pushed: rc=0
## Phase-3 Feature: kbd-component (2026-05-23 10:24:02)
- `10:24:02` **INFO** Description: Kbd für Keyboard-Shortcut-Display
- `10:24:02` **INFO** Generating apps/web/src/components/Kbd.tsx (Kbd-Component. Props: children (key text wie 'Ctrl' oder 'K'). Kleiner…)
- `10:24:06` **INFO** wrote 400 chars in 4.2s (attempt 1)
- `10:24:06` **INFO** Running tsc --noEmit on api…
- `10:24:08` **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,13 @@
import React from 'react';
interface KbdProps {
children: React.ReactNode;
}
export default function Kbd({ children }: KbdProps) {
return (
<kbd className="inline-flex items-center justify-center px-1.5 py-0.5 font-mono text-xs font-medium text-zinc-800 bg-zinc-100 border border-zinc-300 rounded dark:bg-zinc-700 dark:text-zinc-200 dark:border-zinc-600">
{children}
</kbd>
);
}