diff --git a/.phase36-state.json b/.phase36-state.json index 0555515..f3ec3ec 100644 --- a/.phase36-state.json +++ b/.phase36-state.json @@ -1,8 +1,9 @@ { "completed_features": [], - "current_feature": "textarea-component", + "current_feature": "select-component", "started_at": "2026-05-23T09:58:25.839766", "attempted_features": [ - "input-component" + "input-component", + "textarea-component" ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index ce2b7d0..144d8a3 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -3913,3 +3913,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:59:03` **INFO** Committed feature textarea-component +- `09:59:03` **INFO** Pushed: rc=0 + +## Phase-3 Feature: select-component (2026-05-23 09:59:03) + +- `09:59:03` **INFO** Description: Select mit custom-styling +- `09:59:03` **INFO** Generating apps/web/src/components/Select.tsx (Select-Component. Props: value, onChange, options (array {value, label…) +- `09:59:23` **INFO** wrote 2222 chars in 20.0s (attempt 1) +- `09:59:23` **INFO** Running tsc --noEmit on api… +- `09:59:25` **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/Select.tsx b/apps/web/src/components/Select.tsx new file mode 100644 index 0000000..ea94aea --- /dev/null +++ b/apps/web/src/components/Select.tsx @@ -0,0 +1,85 @@ +import React from 'react'; +import { ChevronDown } from 'lucide-react'; + +export interface SelectOption { + value: string; + label: string; + disabled?: boolean; +} + +interface SelectProps { + value: string; + onChange: (value: string) => void; + options: SelectOption[]; + label?: string; + placeholder?: string; + error?: string; + disabled?: boolean; + name?: string; +} + +const Select: React.FC = ({ + value, + onChange, + options, + label, + placeholder, + error, + disabled = false, + name, +}) => { + return ( +
+ {label && ( + + )} + +
+ + +
+ +
+
+ + {error && ( + + {error} + + )} +
+ ); +}; + +export default Select; \ No newline at end of file