1. 03 Jun, 2026 1 commit
  2. 02 Jun, 2026 5 commits
  3. 01 Jun, 2026 6 commits
  4. 31 May, 2026 2 commits
  5. 30 May, 2026 2 commits
    • fix(model): correct idx_created_at_id index column order to (created_at, id) (#5191) · afb470e4
      The idx_created_at_id composite index on the logs table was defined as
      (id, created_at) because the GORM `priority` values on Id and CreatedAt were
      swapped. Since `id` is the auto-increment primary key, a secondary composite
      index leading with `id` is redundant with the PK and cannot accelerate
      `created_at` range scans (a range column must sit at the index prefix).
      
      This defeats the common log-listing queries
      (`WHERE created_at BETWEEN ? AND ? ORDER BY id DESC LIMIT n` in
      GetAllLogs/GetUserLogs) that the index name implies it should serve — the
      optimizer falls back to scanning the primary key, degrading to near full-table
      scans on large logs tables.
      
      Swap the priorities so the column order becomes (created_at, id), matching the
      index name and its intended purpose. idx_user_id_id and idx_created_at_type are
      unaffected.
      
      Note: GORM AutoMigrate does not change the column order of an already-existing
      index with the same name, so existing deployments must rebuild the index
      manually (see PR description for per-database DDL).
      
      Co-authored-by: wuyupeng <wuyupeng@floatmiracle.com>
      Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
      YuPeng Wu committed
  6. 29 May, 2026 2 commits
  7. 28 May, 2026 3 commits
  8. 27 May, 2026 1 commit
  9. 26 May, 2026 15 commits
  10. 25 May, 2026 3 commits
    • 🎨 feat(web/default): add Anthropic theme preset and configurable serif typography · a64f26d1
      Introduce a switchable Anthropic-inspired color preset and a new Font customization axis so users can adopt the editorial serif look across the entire UI, including sidebar navigation, tabs, form controls, buttons, and table headers.
      
      Theme preset
      
      Add anthropic to the theme preset registry with warm cream canvas, slate foreground, and clay/coral accent tokens for light and dark modes
      Define explicit surface colors for the Anthropic preset instead of relying on the semantic surface bridge
      Exclude anthropic from the primary-color surface bridge so bespoke warm neutrals are not overridden by accent-tinted mixes
      Typography system
      
      Add @fontsource-variable/lora and a global --font-serif token with CJK serif fallbacks (Noto Serif SC, Source Han Serif, Songti SC, etc.)
      Introduce a --font-body token and drive <body> font-family from it
      Add a Font axis (default | sans | serif) parallel to radius/scale
      Resolve font: 'default' against preset defaults (anthropic → serif)
      Persist font preference via cookie and apply data-theme-font on <body>
      Apply serif OpenType features (kern, liga, calt, tnum) and heading display tuning when serif is active
      Remove per-component sans opt-outs so serif inherits through sidebar, tabs, inputs, buttons, badges, and table headers via natural CSS cascade
      Keep monospace contexts unchanged via Tailwind preflight and .font-mono
      UI and i18n
      
      Add Font selector to the theme config drawer (Auto / Sans / Serif)
      Add "Font" and "Select body font" translations for en, zh, fr, ja, ru, vi
      Misc
      
      Tighten group and status badge sizing for better balance with serif text
      t0ng7u committed
    • ️ refactor(channels): rebuild channel editor UX with modular sections and Base UI multi-select · 33608826
      Restructure the default-theme channel create/edit experience to match classic
      frontend behavior, improve form UX, and align with the project's Base UI design
      system.
      
      Channel editor architecture:
      - Split the monolithic channel mutate drawer into focused section components
        (basic, API access, auth, models, advanced) with shared drawer layout
        primitives
      - Extract submission, toast handling, and react-query cache invalidation into
        `useChannelMutateForm`
      - Add a dedicated loading skeleton for channel detail fetch during edit mode
      - Remove the top-level configuration summary block
      
      Form validation and data handling:
      - Strengthen `channel-form` Zod schema with JSON, model mapping, status code
        mapping, Codex credential, and Vertex AI key refinements
      - Move type-specific conditional validation into `superRefine`
      - Normalize base URL formatting and tighten model mapping value validation
      
      Model mapping editor:
      - Add Visual/JSON tabbed editing with inline JSON and duplicate-key feedback
      - Improve accessibility for icon-only actions and add model suggestion datalists
      
      MultiSelect component:
      - Replace the custom cmdk-based implementation with Base UI Combobox chips
      - Align focus, border, ring, disabled, and invalid states with standard Input
        styling via `ComboboxChips`
      - Preserve existing API for all current callers (`options`, `selected`,
        `onChange`, `allowCreate`, `createLabel`)
      - Support inline custom value creation and comma/newline batch input
      - Limit visible chips with a compact "+N more" overflow summary via
        `maxVisibleChips` (8 in the channel editor)
      - Anchor the dropdown to the full chips container via `useComboboxAnchor` so
        the popup matches input width and long model names are no longer truncated
      
      Models & groups UX:
      - Integrate manual custom model entry directly into the model MultiSelect
      - Remove the separate manual model input/button block
      - Keep selected-model count badge and existing model-mapping guardrail behavior
      
      i18n:
      - Add and sync translation keys for section descriptions, validation messages,
        model mapping UI, and MultiSelect labels across en, zh, fr, ja, ru, and vi
      - Fix missing translations for "Name, provider type, and availability.",
        "Endpoint, provider-specific settings, and credentials.", and "Published
        models, groups, and model remapping rules."
      - Remove obsolete keys tied to the deprecated summary and manual model entry UI
      t0ng7u committed