• Steven's avatar
    fix(web): convert enum values to string names in API resource paths · 8a7e0088
    Steven authored
    Frontend was incorrectly using numeric enum values (e.g., 1, 2, 3) instead
    of string names (e.g., "GENERAL", "STORAGE") when constructing API resource
    paths. This caused the backend to fail with "unsupported instance setting
    key: INSTANCE_SETTING_KEY_UNSPECIFIED" errors during initialization.
    
    Changes:
    - Add helper functions in store/common.ts to convert enum values to names
      - getInstanceSettingKeyName() and buildInstanceSettingName()
      - getUserSettingKeyName() and buildUserSettingName()
    - Update instance store to use string enum names in API calls
    - Update user store to use string enum names in API calls
    - Update all components to use new helper functions for setting names
    
    Fixes enum string conversion for:
    - InstanceSetting_Key (6 locations)
    - UserSetting_Key (2 locations)
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    Co-Authored-By: 's avatarClaude Sonnet 4.5 <noreply@anthropic.com>
    8a7e0088
Name
Last commit
Last update
..
public Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
biome.json Loading commit data...
components.json Loading commit data...
index.html Loading commit data...
package.json Loading commit data...
pnpm-lock.yaml Loading commit data...
tsconfig.json Loading commit data...
vite.config.mts Loading commit data...