1. 27 Jul, 2025 2 commits
    • 🗂️ refactor(table): isolate column preferences per role · 84fb6eea
      Summary
      • Added role-specific localStorage keys for column visibility in three hooks:
        - `useUsageLogsData.js` → `logs-table-columns-admin` / `logs-table-columns-user`
        - `useMjLogsData.js`   → `mj-logs-table-columns-admin` / `mj-logs-table-columns-user`
        - `useTaskLogsData.js` → `task-logs-table-columns-admin` / `task-logs-table-columns-user`
      
      Details
      1. Each hook now derives a `STORAGE_KEY` based on `isAdminUser`, preventing admin and non-admin sessions from overwriting one another’s column settings.
      2. Removed the previous “save but strip admin columns” workaround—settings are persisted unmodified to each role’s key.
      3. Kept runtime behaviour: non-admin users still see admin-only columns forcibly hidden.
      4. Replaced newly added Chinese comments with clear English equivalents for consistency.
      
      Result
      Switching between admin and non-admin accounts no longer corrupts column visibility preferences, and codebase comments are fully English-localized.
      t0ng7u committed
  2. 26 Jul, 2025 13 commits
  3. 25 Jul, 2025 6 commits
    • refactor: Restructure model pricing components and improve UX consistency · 1327404e
      - **Fix SideSheet double-click issue**: Remove early return for null modelData to prevent rendering blockage during async state updates
      - **Component modularization**:
        - Split ModelDetailSideSheet into focused sub-components (ModelHeader, ModelBasicInfo, ModelEndpoints, ModelPricingTable)
        - Refactor PricingFilterModal with FilterModalContent and FilterModalFooter components
        - Remove unnecessary FilterSection wrapper for cleaner interface
      - **Improve visual consistency**:
        - Unify avatar/icon logic between ModelHeader and PricingCardView components
        - Standardize tag colors across all pricing components (violet/teal for billing types)
        - Apply consistent dashed border styling using Semi UI theme colors
      - **Enhance data accuracy**:
        - Display raw endpoint type names (e.g., "openai", "anthropic") instead of translated descriptions
        - Remove text alignment classes for better responsive layout
        - Add proper null checks to prevent runtime errors
      - **Code quality improvements**:
        - Reduce component complexity by 52-74% through modularization
        - Improve maintainability with single responsibility principle
        - Add comprehensive error handling for edge cases
      
      This refactoring improves component reusability, reduces bundle size, and provides a more consistent user experience across the model pricing interface.
      t0ng7u committed
    • 🔒 fix: Enforce admin-only column visibility in logs tables · 3ea058e0
      Ensure non-admin users cannot enable columns reserved for administrators
      across the following hooks:
      
      * web/src/hooks/usage-logs/useUsageLogsData.js
        - Force-hide CHANNEL, USERNAME and RETRY columns for non-admins.
      
      * web/src/hooks/mj-logs/useMjLogsData.js
        - Force-hide CHANNEL and SUBMIT_RESULT columns for non-admins.
      
      * web/src/hooks/task-logs/useTaskLogsData.js
        - Force-hide CHANNEL column for non-admins.
      
      The checks run when loading column preferences from localStorage, overriding
      any tampered settings to keep sensitive information hidden from
      unauthorized users.
      t0ng7u committed
    • 🌟 fix: standardize and improve Playground Chat VIP group functionality · 64260422
      Merge pull request #1424 from feitianbubu/pr/fix-playground-chat-vip-group
      同語 committed
  4. 24 Jul, 2025 9 commits
  5. 23 Jul, 2025 10 commits