feat(empty-inbox-component): EmptyInbox Empty-State für Listen [tsc:fail]
This commit is contained in:
parent
935df90393
commit
ef6570d708
@ -1,9 +1,10 @@
|
||||
{
|
||||
"completed_features": [],
|
||||
"current_feature": "brand-component",
|
||||
"current_feature": "empty-inbox-component",
|
||||
"started_at": "2026-05-23T10:58:29.718105",
|
||||
"attempted_features": [
|
||||
"notice-component",
|
||||
"list-item-component"
|
||||
"list-item-component",
|
||||
"brand-component"
|
||||
]
|
||||
}
|
||||
@ -4879,3 +4879,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:59:08` **INFO** Committed feature brand-component
|
||||
- `10:59:08` **INFO** Pushed: rc=0
|
||||
|
||||
## Phase-3 Feature: empty-inbox-component (2026-05-23 10:59:08)
|
||||
|
||||
- `10:59:08` **INFO** Description: EmptyInbox Empty-State für Listen
|
||||
- `10:59:08` **INFO** Generating apps/web/src/components/EmptyInbox.tsx (EmptyInbox-Component. Props: title? (default 'Alles erledigt'), descri…)
|
||||
- `10:59:14` **INFO** wrote 698 chars in 5.7s (attempt 1)
|
||||
- `10:59:14` **INFO** Running tsc --noEmit on api…
|
||||
- `10:59: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>,
|
||||
|
||||
26
apps/web/src/components/EmptyInbox.tsx
Normal file
26
apps/web/src/components/EmptyInbox.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
import React from 'react';
|
||||
import { Inbox } from 'lucide-react';
|
||||
|
||||
interface EmptyInboxProps {
|
||||
title?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export default function EmptyInbox({
|
||||
title = 'Alles erledigt',
|
||||
description = 'Hier gibt es nichts zu sehen.'
|
||||
}: EmptyInboxProps) {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center min-h-[400px] text-center p-8">
|
||||
<div className="bg-slate-100 p-6 rounded-full mb-4">
|
||||
<Inbox className="w-12 h-12 text-slate-400" />
|
||||
</div>
|
||||
<h3 className="text-xl font-semibold text-slate-900 mb-2">
|
||||
{title}
|
||||
</h3>
|
||||
<p className="text-slate-500 max-w-xs">
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user