diff --git a/.phase46-state.json b/.phase46-state.json index 45165dd..54c89a5 100644 --- a/.phase46-state.json +++ b/.phase46-state.json @@ -1,9 +1,10 @@ { "completed_features": [], - "current_feature": "address-component", + "current_feature": "icon-button-component", "started_at": "2026-05-23T10:48:26.654134", "attempted_features": [ "price-tag-component", - "time-ago-component" + "time-ago-component", + "address-component" ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index 1034a0e..3a0ce2e 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -4721,3 +4721,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:48:53` **INFO** Committed feature address-component +- `10:48:53` **INFO** Pushed: rc=0 + +## Phase-3 Feature: icon-button-component (2026-05-23 10:48:53) + +- `10:48:53` **INFO** Description: IconButton (only icon, square, accessible) +- `10:48:53` **INFO** Generating apps/web/src/components/IconButton.tsx (IconButton-Component. Props: icon (ReactNode), ariaLabel (required), o…) +- `10:49:04` **INFO** wrote 1225 chars in 10.6s (attempt 1) +- `10:49:04` **INFO** Running tsc --noEmit on api… +- `10:49:06` **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/IconButton.tsx b/apps/web/src/components/IconButton.tsx new file mode 100644 index 0000000..ea0269d --- /dev/null +++ b/apps/web/src/components/IconButton.tsx @@ -0,0 +1,50 @@ +import React from 'react'; + +interface IconButtonProps { + icon: React.ReactNode; + ariaLabel: string; + onClick: () => void; + variant?: 'ghost' | 'solid'; + size?: 'sm' | 'md' | 'lg'; + className?: string; +} + +const IconButton: React.FC = ({ + icon, + ariaLabel, + onClick, + variant = 'ghost', + size = 'md', + className = '', +}) => { + const sizeClasses = { + sm: 'p-1 text-xs', + md: 'p-2 text-sm', + lg: 'p-3 text-base', + }; + + const variantClasses = { + ghost: 'text-slate-600 hover:bg-slate-100 hover:text-slate-900 dark:text-slate-400 dark:hover:bg-slate-800 dark:hover:text-slate-100', + solid: 'bg-slate-900 text-white hover:bg-slate-800 dark:bg-slate-100 dark:text-slate-900 dark:hover:bg-slate-200', + }; + + return ( + + ); +}; + +export default IconButton; \ No newline at end of file