diff --git a/.phase37-state.json b/.phase37-state.json index a503ac3..8ba451a 100644 --- a/.phase37-state.json +++ b/.phase37-state.json @@ -1,5 +1,8 @@ { "completed_features": [], - "current_feature": "stepper-component", - "started_at": "2026-05-23T10:03:26.504746" + "current_feature": "timeline-component", + "started_at": "2026-05-23T10:03:26.504746", + "attempted_features": [ + "stepper-component" + ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index 9b475cc..d4dde28 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -3974,3 +3974,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, +- `10:03:47` **INFO** Committed feature stepper-component +- `10:03:47` **INFO** Pushed: rc=0 + +## Phase-3 Feature: timeline-component (2026-05-23 10:03:47) + +- `10:03:47` **INFO** Description: Timeline für Activity-Feed +- `10:03:47` **INFO** Generating apps/web/src/components/Timeline.tsx (Timeline-Component. Props: items (array {id, title, description?, time…) +- `10:04:03` **INFO** wrote 1834 chars in 15.1s (attempt 1) +- `10:04:03` **INFO** Running tsc --noEmit on api… +- `10:04:04` **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' 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/Timeline.tsx b/apps/web/src/components/Timeline.tsx new file mode 100644 index 0000000..8dc1255 --- /dev/null +++ b/apps/web/src/components/Timeline.tsx @@ -0,0 +1,54 @@ +import React from 'react'; + +interface TimelineItem { + id: string; + title: string; + description?: string; + timestamp: string; + icon?: React.ReactNode; + color?: string; +} + +interface TimelineProps { + items: TimelineItem[]; +} + +const Timeline: React.FC = ({ items }) => { + return ( +
+ {items.map((item, index) => ( +
+ {/* Icon Circle */} +
+ {item.icon ? ( +
+ {item.icon} +
+ ) : ( +
+ )} +
+ + {/* Content */} +
+
+

+ {item.title} +

+ + {item.timestamp} + +
+ {item.description && ( +

+ {item.description} +

+ )} +
+
+ ))} +
+ ); +}; + +export default Timeline; \ No newline at end of file