From d6bddc51ed050bf69e4c0fa3ed5c93a1fd30ed66 Mon Sep 17 00:00:00 2001 From: "Dennis (via Claude+Gemma)" Date: Sat, 23 May 2026 10:03:47 +0200 Subject: [PATCH] =?UTF-8?q?feat(stepper-component):=20Stepper=20f=C3=BCr?= =?UTF-8?q?=20Wizard-Flows=20[tsc:fail]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .phase36-state.json | 3 +- .phase37-state.json | 5 ++ GENERATION_LOG.md | 25 ++++++++ apps/web/src/components/Stepper.tsx | 73 ++++++++++++++++++++++ scripts/phase37_features.py | 96 +++++++++++++++++++++++++++++ 5 files changed, 201 insertions(+), 1 deletion(-) create mode 100644 .phase37-state.json create mode 100644 apps/web/src/components/Stepper.tsx create mode 100644 scripts/phase37_features.py diff --git a/.phase36-state.json b/.phase36-state.json index a6e0059..adb7bad 100644 --- a/.phase36-state.json +++ b/.phase36-state.json @@ -5,6 +5,7 @@ "attempted_features": [ "input-component", "textarea-component", - "select-component" + "select-component", + "search-box-component" ] } \ No newline at end of file diff --git a/.phase37-state.json b/.phase37-state.json new file mode 100644 index 0000000..a503ac3 --- /dev/null +++ b/.phase37-state.json @@ -0,0 +1,5 @@ +{ + "completed_features": [], + "current_feature": "stepper-component", + "started_at": "2026-05-23T10:03:26.504746" +} \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index 49b3e42..9b475cc 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -3949,3 +3949,28 @@ 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, +- `09:59:39` **INFO** Committed feature search-box-component +- `09:59:39` **INFO** Pushed: rc=0 + +## Phase-36 Run beendet (2026-05-23 09:59:39) + +- `09:59:39` **INFO** OK: 0, Attempted: 4, Total: 4 + +## 🚀 Phase-37 Codegen-Run gestartet (2026-05-23 10:03:26) + + +## Phase-3 Feature: stepper-component (2026-05-23 10:03:26) + +- `10:03:26` **INFO** Description: Stepper für Wizard-Flows +- `10:03:26` **INFO** Generating apps/web/src/components/Stepper.tsx (Stepper-Component. Props: steps (array {label, description?}), current…) +- `10:03:45` **INFO** wrote 2446 chars in 19.4s (attempt 1) +- `10:03:45` **INFO** Running tsc --noEmit on api… +- `10:03:47` **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/Stepper.tsx b/apps/web/src/components/Stepper.tsx new file mode 100644 index 0000000..3893da6 --- /dev/null +++ b/apps/web/src/components/Stepper.tsx @@ -0,0 +1,73 @@ +import React from 'react'; +import { Check } from 'lucide-react'; + +interface Step { + label: string; + description?: string; +} + +interface StepperProps { + steps: Step[]; + currentStep: number; +} + +const Stepper: React.FC = ({ steps, currentStep }) => { + return ( +
+
+ {steps.map((step, index) => { + const isCompleted = index < currentStep; + const isActive = index === currentStep; + const isPending = index > currentStep; + + return ( +
+ {/* Connector Line */} + {index !== steps.length - 1 && ( +
+ )} + + {/* Step Circle */} +
+ {isCompleted ? ( + + ) : ( + {index + 1} + )} +
+ + {/* Labels */} +
+

+ {step.label} +

+ {step.description && ( +

+ {step.description} +

+ )} +
+
+ ); + })} +
+
+ ); +}; + +export default Stepper; \ No newline at end of file diff --git a/scripts/phase37_features.py b/scripts/phase37_features.py new file mode 100644 index 0000000..f894c96 --- /dev/null +++ b/scripts/phase37_features.py @@ -0,0 +1,96 @@ +#!/usr/bin/env python3 +"""Phase-37: standalone components — Stepper, Timeline, SkeletonBlock, EmptyChart.""" + +from __future__ import annotations + +import asyncio, datetime, json, sys +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parent)) +from phase2_features import Feature, FileGen, ROOT, log, log_section +from phase3_features import run_feature_v2 + +PHASE_STATE = ROOT / ".phase37-state.json" + +FEATURES: list[Feature] = [ + Feature( + name="stepper-component", + description="Stepper für Wizard-Flows", + files=[FileGen( + path="apps/web/src/components/Stepper.tsx", + purpose=( + "Stepper-Component. Props: steps (array {label, description?}), currentStep (number, 0-indexed). " + "Horizontaler Stepper mit Kreisen + Verbindungslinien. " + "Active: blue, completed: green mit Check-Icon, pending: gray. Tailwind. Export default." + ), + )], + ), + Feature( + name="timeline-component", + description="Timeline für Activity-Feed", + files=[FileGen( + path="apps/web/src/components/Timeline.tsx", + purpose=( + "Timeline-Component. Props: items (array {id, title, description?, timestamp, icon?, color?}). " + "Vertikale Liste mit linker Linie + Kreisen. Pro item: Icon im Kreis, title + description rechts, timestamp grey. " + "Tailwind. Export default." + ), + )], + ), + Feature( + name="skeleton-block-component", + description="SkeletonBlock für Loading-Placeholders", + files=[FileGen( + path="apps/web/src/components/SkeletonBlock.tsx", + purpose=( + "SkeletonBlock-Component. Props: width?, height? (default 'full'/'4'), rounded?: 'none'|'sm'|'md'|'full'. " + "Div mit bg-zinc-200 dark:bg-zinc-700 + animate-pulse + Tailwind w/h Klassen. Export default." + ), + )], + ), + Feature( + name="empty-chart-component", + description="EmptyChart-Placeholder für Charts ohne Daten", + files=[FileGen( + path="apps/web/src/components/EmptyChart.tsx", + purpose=( + "EmptyChart-Component. Props: message? (default 'Keine Daten verfügbar'), height? (default '200px'). " + "Zentriert: BarChart-Icon (lucide-react, grey, large) + message text. " + "Border dashed. Tailwind. Export default." + ), + )], + ), +] + + +def load_state(): + if PHASE_STATE.exists(): + return json.loads(PHASE_STATE.read_text()) + return {"completed_features": [], "current_feature": None, "started_at": datetime.datetime.now().isoformat()} + + +def save_state(state): + PHASE_STATE.write_text(json.dumps(state, indent=2)) + + +async def main(): + log_section("🚀 Phase-37 Codegen-Run gestartet") + state = load_state() + for feature in FEATURES: + if feature.name in state.get("completed_features", []): + continue + state["current_feature"] = feature.name; save_state(state) + try: + success = await run_feature_v2(feature) + state.setdefault("completed_features" if success else "attempted_features", []).append(feature.name) + save_state(state) + except Exception as e: + log(f"❌ {feature.name} crashed: {e}", level="ERROR") + state.setdefault("attempted_features", []).append(feature.name); save_state(state) + log_section("Phase-37 Run beendet") + log(f"OK: {len(state.get('completed_features', []))}, Attempted: {len(state.get('attempted_features', []))}, Total: {len(FEATURES)}") + return 0 + + +if __name__ == "__main__": + sys.exit(asyncio.run(main()))