feat(map-placeholder-component): MapPlaceholder (kein echtes Map, nur grayed) [tsc:fail]
This commit is contained in:
parent
4400fc9b9a
commit
8040524960
@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"completed_features": [],
|
"completed_features": [],
|
||||||
"current_feature": "calendar-month-grid-component",
|
"current_feature": "map-placeholder-component",
|
||||||
"started_at": "2026-05-23T10:53:28.415380",
|
"started_at": "2026-05-23T10:53:28.415380",
|
||||||
"attempted_features": [
|
"attempted_features": [
|
||||||
"receipt-component",
|
"receipt-component",
|
||||||
"order-summary-component"
|
"order-summary-component",
|
||||||
|
"calendar-month-grid-component"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -4800,3 +4800,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:54:18` **INFO** Committed feature calendar-month-grid-component
|
||||||
|
- `10:54:18` **INFO** Pushed: rc=0
|
||||||
|
|
||||||
|
## Phase-3 Feature: map-placeholder-component (2026-05-23 10:54:18)
|
||||||
|
|
||||||
|
- `10:54:18` **INFO** Description: MapPlaceholder (kein echtes Map, nur grayed)
|
||||||
|
- `10:54:18` **INFO** Generating apps/web/src/components/MapPlaceholder.tsx (MapPlaceholder-Component. Props: lat?, lng?, address?, height? (defaul…)
|
||||||
|
- `10:54:25` **INFO** wrote 763 chars in 6.2s (attempt 1)
|
||||||
|
- `10:54:25` **INFO** Running tsc --noEmit on api…
|
||||||
|
- `10:54:26` **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>,
|
||||||
|
|||||||
29
apps/web/src/components/MapPlaceholder.tsx
Normal file
29
apps/web/src/components/MapPlaceholder.tsx
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { MapPin } from 'lucide-react';
|
||||||
|
|
||||||
|
interface MapPlaceholderProps {
|
||||||
|
lat?: number;
|
||||||
|
lng?: number;
|
||||||
|
address?: string;
|
||||||
|
height?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function MapPlaceholder({
|
||||||
|
address,
|
||||||
|
height = '300px'
|
||||||
|
}: MapPlaceholderProps) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className="relative w-full bg-slate-100 border-2 border-dashed border-slate-300 rounded-xl flex flex-col items-center justify-center text-slate-500 p-4 text-center"
|
||||||
|
style={{ height }}
|
||||||
|
>
|
||||||
|
<MapPin className="w-10 h-10 mb-2 text-slate-400" />
|
||||||
|
<p className="font-medium">Karte nicht verfügbar</p>
|
||||||
|
{address && (
|
||||||
|
<p className="text-sm text-slate-400 mt-1 max-w-xs truncate">
|
||||||
|
{address}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user