feat(divider-component): Divider horizontal/vertikal [tsc:fail]

This commit is contained in:
Dennis (via Claude+Gemma) 2026-05-23 09:43:56 +02:00
parent bd0c071efa
commit 581d3334eb
3 changed files with 65 additions and 2 deletions

View File

@ -1,5 +1,8 @@
{
"completed_features": [],
"current_feature": "avatar-component",
"started_at": "2026-05-23T09:43:23.964164"
"current_feature": "divider-component",
"started_at": "2026-05-23T09:43:23.964164",
"attempted_features": [
"avatar-component"
]
}

View File

@ -3658,3 +3658,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<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>,
- `09:43:45` **INFO** Committed feature avatar-component
- `09:43:45` **INFO** Pushed: rc=0
## Phase-3 Feature: divider-component (2026-05-23 09:43:45)
- `09:43:45` **INFO** Description: Divider horizontal/vertikal
- `09:43:45` **INFO** Generating apps/web/src/components/Divider.tsx (Divider-Component. Props: orientation?: 'horizontal'|'vertical' (defau…)
- `09:43:54` **INFO** wrote 1036 chars in 9.2s (attempt 1)
- `09:43:54` **INFO** Running tsc --noEmit on api…
- `09:43:56` **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,42 @@
import React from 'react';
import { twMerge } from 'tailwind-merge';
interface DividerProps {
orientation?: 'horizontal' | 'vertical';
label?: string;
className?: string;
}
const Divider: React.FC<DividerProps> = ({
orientation = 'horizontal',
label,
className,
}) => {
if (orientation === 'vertical') {
return (
<div
className={twMerge(
'border-l border-gray-200 dark:border-gray-800 h-full inline-block',
className
)}
/>
);
}
return (
<div className={twMerge('relative my-4', className)}>
<div className="absolute inset-0 flex items-center" aria-hidden="true">
<div className="w-full border-t border-gray-200 dark:border-gray-800" />
</div>
{label && (
<div className="relative flex justify-center text-xs uppercase">
<span className="bg-white dark:bg-gray-950 px-2 text-gray-500 dark:text-gray-400">
{label}
</span>
</div>
)}
</div>
);
};
export default Divider;