From dea538987b186d9e90e760a2338cb2df5cdc1c37 Mon Sep 17 00:00:00 2001 From: "Dennis (via Claude+Gemma)" Date: Sat, 23 May 2026 09:54:27 +0200 Subject: [PATCH] feat(radio-group-component): RadioGroup mit Optionen [tsc:fail] --- .phase35-state.json | 5 ++- GENERATION_LOG.md | 18 ++++++++ apps/web/src/components/RadioGroup.tsx | 58 ++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 apps/web/src/components/RadioGroup.tsx diff --git a/.phase35-state.json b/.phase35-state.json index 07ab7f8..911de8d 100644 --- a/.phase35-state.json +++ b/.phase35-state.json @@ -1,9 +1,10 @@ { "completed_features": [], - "current_feature": "switch-toggle-component", + "current_feature": "radio-group-component", "started_at": "2026-05-23T09:53:25.616963", "attempted_features": [ "dropdown-menu-component", - "checkbox-component" + "checkbox-component", + "switch-toggle-component" ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index 3ad39a3..5a7e747 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -3852,3 +3852,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, +- `09:54:11` **INFO** Committed feature switch-toggle-component +- `09:54:11` **INFO** Pushed: rc=0 + +## Phase-3 Feature: radio-group-component (2026-05-23 09:54:11) + +- `09:54:11` **INFO** Description: RadioGroup mit Optionen +- `09:54:11` **INFO** Generating apps/web/src/components/RadioGroup.tsx (RadioGroup-Component. Props: value, onChange, options (array {value, l…) +- `09:54:25` **INFO** wrote 1703 chars in 13.6s (attempt 1) +- `09:54:25` **INFO** Running tsc --noEmit on api… +- `09:54:27` **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/RadioGroup.tsx b/apps/web/src/components/RadioGroup.tsx new file mode 100644 index 0000000..7c38f8c --- /dev/null +++ b/apps/web/src/components/RadioGroup.tsx @@ -0,0 +1,58 @@ +import React from 'react'; + +interface RadioOption { + value: string; + label: string; + description?: string; +} + +interface RadioGroupProps { + name: string; + value: string; + onChange: (value: string) => void; + options: RadioOption[]; +} + +const RadioGroup: React.FC = ({ name, value, onChange, options }) => { + return ( +
+ {options.map((option) => { + const isSelected = value === option.value; + return ( + + ); + })} +
+ ); +}; + +export default RadioGroup; \ No newline at end of file