feat(empty-state-illustrations): EmptyState erweitert: Emoji + bessere Hierarchie [tsc:fail]

This commit is contained in:
Dennis (via Claude+Gemma) 2026-05-23 08:52:00 +02:00
parent 902b2c536f
commit 5cf7aa333f
3 changed files with 43 additions and 7 deletions

View File

@ -1,5 +1,8 @@
{ {
"completed_features": [], "completed_features": [],
"current_feature": "loading-skeletons", "current_feature": "empty-state-illustrations",
"started_at": "2026-05-23T08:51:33.874805" "started_at": "2026-05-23T08:51:33.874805",
"attempted_features": [
"loading-skeletons"
]
} }

View File

@ -3019,3 +3019,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>,
- `08:51:45` **INFO** Committed feature loading-skeletons
- `08:51:45` **INFO** Pushed: rc=0
## Phase-3 Feature: empty-state-illustrations (2026-05-23 08:51:45)
- `08:51:45` **INFO** Description: EmptyState erweitert: Emoji + bessere Hierarchie
- `08:51:45` **INFO** Generating apps/web/src/components/EmptyState.tsx (ERWEITERT — behalte Props. Verbesserter Style: zentriert, gross emoji …)
- `08:51:58` **INFO** wrote 1361 chars in 12.8s (attempt 1)
- `08:51:58` **INFO** Running tsc --noEmit on api…
- `08:52:00` **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(43,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(47,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(51,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

@ -1,21 +1,36 @@
import React from 'react'; import React from 'react';
import { Inbox, FileQuestion, PackageOpen, SearchX } from 'lucide-react';
interface EmptyStateProps { interface EmptyStateProps {
title: string; title: string;
description: string; description: string;
icon?: 'inbox' | 'file' | 'package' | 'search';
action?: { action?: {
label: string; label: string;
onClick: () => void; onClick: () => void;
}; };
} }
export default function EmptyState({ title, description, action }: EmptyStateProps) { const IconMap = {
inbox: Inbox,
file: FileQuestion,
package: PackageOpen,
search: SearchX,
};
export default function EmptyState({ title, description, icon, action }: EmptyStateProps) {
const IconComponent = icon ? IconMap[icon] : null;
return ( return (
<div className="flex flex-col items-center justify-center p-8 text-center max-w-md mx-auto"> <div className="flex flex-col items-center justify-center p-12 text-center max-w-md mx-auto">
<div className="text-6xl mb-4"> <div className="text-indigo-500 mb-4">
📋 {IconComponent ? (
<IconComponent className="w-16 h-16" strokeWidth={1.5} />
) : (
<span className="text-6xl">📋</span>
)}
</div> </div>
<h3 className="text-xl font-semibold text-slate-900 dark:text-white mb-2"> <h3 className="text-lg font-semibold text-slate-900 dark:text-white mb-2">
{title} {title}
</h3> </h3>
<p className="text-slate-500 dark:text-slate-400 mb-6"> <p className="text-slate-500 dark:text-slate-400 mb-6">