fix(picture): resolve all TypeScript type errors

- Migrate stores from Database types to API types (camelCase)
- Fix snake_case to camelCase property access across components
- Remove deprecated userId params from API calls (now auth-based)
- Fix Konva type comparisons in BoardCanvas
- Fix async onMount return type issues
- Add emoji property to ThemeVariantDefinition type
- Fix Input autocomplete type to use AutoFill
- Remove invalid 'downloading' status checks

Reduces type errors from 120 to 0.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Till-JS 2025-11-29 09:17:55 +01:00
parent 8a4cc298f6
commit b9608bd5d2
16 changed files with 70 additions and 81 deletions

View file

@ -202,6 +202,7 @@ export const THEME_DEFINITIONS: Record<ThemeVariant, ThemeVariantDefinition> = {
name: 'lume',
label: 'Lume',
emoji: '✨',
icon: 'sparkle',
hue: 47,
light: lumeLight,
dark: lumeDark,
@ -210,6 +211,7 @@ export const THEME_DEFINITIONS: Record<ThemeVariant, ThemeVariantDefinition> = {
name: 'nature',
label: 'Nature',
emoji: '🌿',
icon: 'leaf',
hue: 122,
light: natureLight,
dark: natureDark,
@ -218,6 +220,7 @@ export const THEME_DEFINITIONS: Record<ThemeVariant, ThemeVariantDefinition> = {
name: 'stone',
label: 'Stone',
emoji: '🪨',
icon: 'hexagon',
hue: 200,
light: stoneLight,
dark: stoneDark,
@ -226,6 +229,7 @@ export const THEME_DEFINITIONS: Record<ThemeVariant, ThemeVariantDefinition> = {
name: 'ocean',
label: 'Ocean',
emoji: '🌊',
icon: 'waves',
hue: 199,
light: oceanLight,
dark: oceanDark,

View file

@ -77,7 +77,10 @@ export interface ThemeColors {
export interface ThemeVariantDefinition {
name: string;
label: string;
/** Emoji representation of the theme */
emoji: string;
/** Icon name for the theme (e.g., 'sparkle', 'leaf', 'hexagon', 'waves') */
icon: string;
/** The primary hue for this variant (used for accent colors) */
hue: number;
light: ThemeColors;