diff --git a/.phase26-state.json b/.phase26-state.json index ee0d586..c5dffe6 100644 --- a/.phase26-state.json +++ b/.phase26-state.json @@ -1,5 +1,8 @@ { "completed_features": [], - "current_feature": "loading-skeletons", - "started_at": "2026-05-23T08:51:33.874805" + "current_feature": "empty-state-illustrations", + "started_at": "2026-05-23T08:51:33.874805", + "attempted_features": [ + "loading-skeletons" + ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index f6090f9..19a277d 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -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. Argument of type 'Promise' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. Type 'Promise' provides no match for the signature '(instance: FastifyInstance, +- `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' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. + Type 'Promise' provides no match for the signature '(instance: FastifyInstance, diff --git a/apps/web/src/components/EmptyState.tsx b/apps/web/src/components/EmptyState.tsx index 4833b30..2e9d24a 100644 --- a/apps/web/src/components/EmptyState.tsx +++ b/apps/web/src/components/EmptyState.tsx @@ -1,21 +1,36 @@ import React from 'react'; +import { Inbox, FileQuestion, PackageOpen, SearchX } from 'lucide-react'; interface EmptyStateProps { title: string; description: string; + icon?: 'inbox' | 'file' | 'package' | 'search'; action?: { label: string; 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 ( -
-
- 📋 +
+
+ {IconComponent ? ( + + ) : ( + 📋 + )}
-

+

{title}