diff --git a/.phase47-state.json b/.phase47-state.json index c8a5174..2dc9ab3 100644 --- a/.phase47-state.json +++ b/.phase47-state.json @@ -1,9 +1,10 @@ { "completed_features": [], - "current_feature": "calendar-month-grid-component", + "current_feature": "map-placeholder-component", "started_at": "2026-05-23T10:53:28.415380", "attempted_features": [ "receipt-component", - "order-summary-component" + "order-summary-component", + "calendar-month-grid-component" ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index 82f31b5..1676259 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -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. 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: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' 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/MapPlaceholder.tsx b/apps/web/src/components/MapPlaceholder.tsx new file mode 100644 index 0000000..fa04956 --- /dev/null +++ b/apps/web/src/components/MapPlaceholder.tsx @@ -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 ( +
+ +

Karte nicht verfügbar

+ {address && ( +

+ {address} +

+ )} +
+ ); +} \ No newline at end of file