feat(timeline-component): Timeline für Activity-Feed [tsc:fail]

This commit is contained in:
Dennis (via Claude+Gemma) 2026-05-23 10:04:04 +02:00
parent d6bddc51ed
commit d7fcf9f90c
3 changed files with 77 additions and 2 deletions

View File

@ -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"
]
}

View File

@ -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<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: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<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

@ -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<TimelineProps> = ({ items }) => {
return (
<div className="relative space-y-8 before:absolute before:inset-0 before:ml-5 before:-translate-x-px before:h-full before:w-0.5 before:bg-gradient-to-b before:from-transparent before:via-slate-300 before:to-transparent">
{items.map((item, index) => (
<div key={item.id} className="relative flex items-start group">
{/* Icon Circle */}
<div className={`relative z-10 flex items-center justify-center w-10 h-10 rounded-full border-2 bg-white shadow-sm transition-colors duration-200 ${item.color || 'border-slate-300 group-hover:border-blue-500'}`}>
{item.icon ? (
<div className="flex items-center justify-center">
{item.icon}
</div>
) : (
<div className="w-2 h-2 rounded-full bg-slate-400" />
)}
</div>
{/* Content */}
<div className="flex flex-col ml-4 pt-1">
<div className="flex items-baseline gap-2">
<h3 className="text-sm font-semibold text-slate-900 leading-none">
{item.title}
</h3>
<span className="text-xs font-medium text-slate-400 whitespace-nowrap">
{item.timestamp}
</span>
</div>
{item.description && (
<p className="mt-1 text-sm text-slate-600 leading-relaxed">
{item.description}
</p>
)}
</div>
</div>
))}
</div>
);
};
export default Timeline;