feat(skeleton-block-component): SkeletonBlock für Loading-Placeholders [tsc:fail]
This commit is contained in:
parent
d7fcf9f90c
commit
b278c4e4e8
@ -1,8 +1,9 @@
|
||||
{
|
||||
"completed_features": [],
|
||||
"current_feature": "timeline-component",
|
||||
"current_feature": "skeleton-block-component",
|
||||
"started_at": "2026-05-23T10:03:26.504746",
|
||||
"attempted_features": [
|
||||
"stepper-component"
|
||||
"stepper-component",
|
||||
"timeline-component"
|
||||
]
|
||||
}
|
||||
@ -3992,3 +3992,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>,
|
||||
- `10:04:04` **INFO** Committed feature timeline-component
|
||||
- `10:04:05` **INFO** Pushed: rc=0
|
||||
|
||||
## Phase-3 Feature: skeleton-block-component (2026-05-23 10:04:05)
|
||||
|
||||
- `10:04:05` **INFO** Description: SkeletonBlock für Loading-Placeholders
|
||||
- `10:04:05` **INFO** Generating apps/web/src/components/SkeletonBlock.tsx (SkeletonBlock-Component. Props: width?, height? (default 'full'/'4'), …)
|
||||
- `10:04:14` **INFO** wrote 862 chars in 8.9s (attempt 1)
|
||||
- `10:04:14` **INFO** Running tsc --noEmit on api…
|
||||
- `10:04:15` **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>,
|
||||
|
||||
38
apps/web/src/components/SkeletonBlock.tsx
Normal file
38
apps/web/src/components/SkeletonBlock.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import React from 'react';
|
||||
|
||||
interface SkeletonBlockProps {
|
||||
width?: 'full' | 'auto' | string;
|
||||
height?: 'full' | 'auto' | string;
|
||||
rounded?: 'none' | 'sm' | 'md' | 'full';
|
||||
}
|
||||
|
||||
const SkeletonBlock: React.FC<SkeletonBlockProps> = ({
|
||||
width = 'full',
|
||||
height = '4',
|
||||
rounded = 'md',
|
||||
}) => {
|
||||
const widthClass = width === 'full' ? 'w-full' : width === 'auto' ? 'w-auto' : `w-[${width}]`;
|
||||
const heightClass = height === 'full' ? 'h-full' : height === 'auto' ? 'h-auto' : `h-[${height}]`;
|
||||
|
||||
const roundedMap = {
|
||||
none: 'rounded-none',
|
||||
sm: 'rounded-sm',
|
||||
md: 'rounded-md',
|
||||
full: 'rounded-full',
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`
|
||||
${widthClass}
|
||||
${heightClass}
|
||||
${roundedMap[rounded]}
|
||||
bg-zinc-200
|
||||
dark:bg-zinc-700
|
||||
animate-pulse
|
||||
`}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonBlock;
|
||||
Loading…
Reference in New Issue
Block a user