feat(empty-chart-component): EmptyChart-Placeholder für Charts ohne Daten [tsc:fail]
This commit is contained in:
parent
b278c4e4e8
commit
5759154f61
@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"completed_features": [],
|
"completed_features": [],
|
||||||
"current_feature": "skeleton-block-component",
|
"current_feature": "empty-chart-component",
|
||||||
"started_at": "2026-05-23T10:03:26.504746",
|
"started_at": "2026-05-23T10:03:26.504746",
|
||||||
"attempted_features": [
|
"attempted_features": [
|
||||||
"stepper-component",
|
"stepper-component",
|
||||||
"timeline-component"
|
"timeline-component",
|
||||||
|
"skeleton-block-component"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -4010,3 +4010,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>,
|
||||||
|
- `10:04:15` **INFO** Committed feature skeleton-block-component
|
||||||
|
- `10:04:16` **INFO** Pushed: rc=0
|
||||||
|
|
||||||
|
## Phase-3 Feature: empty-chart-component (2026-05-23 10:04:16)
|
||||||
|
|
||||||
|
- `10:04:16` **INFO** Description: EmptyChart-Placeholder für Charts ohne Daten
|
||||||
|
- `10:04:16` **INFO** Generating apps/web/src/components/EmptyChart.tsx (EmptyChart-Component. Props: message? (default 'Keine Daten verfügbar'…)
|
||||||
|
- `10:04:21` **INFO** wrote 585 chars in 5.6s (attempt 1)
|
||||||
|
- `10:04:21` **INFO** Running tsc --noEmit on api…
|
||||||
|
- `10:04:23` **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>,
|
||||||
|
|||||||
22
apps/web/src/components/EmptyChart.tsx
Normal file
22
apps/web/src/components/EmptyChart.tsx
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { BarChart } from 'lucide-react';
|
||||||
|
|
||||||
|
interface EmptyChartProps {
|
||||||
|
message?: string;
|
||||||
|
height?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function EmptyChart({
|
||||||
|
message = 'Keine Daten verfügbar',
|
||||||
|
height = '200px'
|
||||||
|
}: EmptyChartProps) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className="flex flex-col items-center justify-center border-2 border-dashed border-slate-200 rounded-lg text-slate-400 bg-slate-50/50"
|
||||||
|
style={{ height }}
|
||||||
|
>
|
||||||
|
<BarChart className="w-12 h-12 mb-2 opacity-40" />
|
||||||
|
<span className="text-sm font-medium">{message}</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user