1. 09 Jun, 2025 11 commits
    • 💄 style(ui): improve API info card layout with separate columns for avatar and text · b40f4b99
      - Restructure API info card layout to use two-column design
      - Move avatar to separate left column with fixed width
      - Align route name, URL, and description text to same starting position
      - Remove unnecessary indentation and improve visual hierarchy
      - Enhance readability and consistency of API information display
      Apple\Apple committed
    • 💄 style(LogsTable): set minimum width for log type selector · c29ac9bb
      - Add min-w-[120px] class to Form.Select component for log type filtering
      - Remove redundant min-width constraint from parent div container
      - Ensure consistent dropdown width across different screen sizes
      - Improve UI consistency and readability for log type selection
      Apple\Apple committed
    • 🎨 refactor: reorganize log type selector layout with responsive design · efa807ab
      - Move Form.Select (log type selector) from grid layout to action button row
      - Position log type selector on the left side of the action button area
      - Keep action buttons (Query, Reset, Column Settings) aligned to the right
      - Implement responsive design with sm: breakpoint (640px)
        - Mobile: vertical stacking with full-width elements
        - Desktop: horizontal layout with proper spacing
      - Add min-width constraint (140px) for log type selector
      - Remove extra padding-top from button area for cleaner spacing
      - Maintain accessibility and usability across all screen sizes
      
      This change improves the UI layout by better utilizing horizontal space
      and providing a more intuitive grouping of form controls and actions.
      Apple\Apple committed
    • feat: major refactor and enhancement of Detail dashboard component & add api url display · 4c673d26
      - **Code Organization & Architecture:**
        - Restructured component with clear sections (Hooks, Constants, Helper Functions, etc.)
        - Added comprehensive code organization comments for better maintainability
        - Extracted reusable helper functions and constants for better separation of concerns
      
      - **Performance Optimizations:**
        - Implemented extensive use of useCallback and useMemo hooks for expensive operations
        - Optimized data processing pipeline with dedicated processing functions
        - Memoized chart configurations, performance metrics, and grouped stats data
        - Cached helper functions like getTrendSpec, handleCopyUrl, and modal handlers
      
      - **UI/UX Enhancements:**
        - Added Empty state component with construction illustrations for better UX
        - Implemented responsive grid layout with conditional API info section visibility
        - Enhanced button styling with consistent rounded design and hover effects
        - Added mini trend charts to statistics cards for visual data representation
        - Improved form field consistency with reusable createFormField helper
      
      - **Feature Improvements:**
        - Added self-use mode detection to conditionally hide/show API information section
        - Enhanced chart configurations with centralized CHART_CONFIG constant
        - Improved time handling with dedicated helper functions (getTimeInterval, getInitialTimestamp)
        - Added comprehensive performance metrics calculation (RPM/TPM trends)
        - Implemented advanced data aggregation and processing workflows
      
      - **Code Quality & Maintainability:**
        - Extracted complex data processing logic into dedicated functions
        - Added proper prop destructuring and state organization
        - Implemented consistent naming conventions and helper utilities
        - Enhanced error handling and loading states management
        - Added comprehensive JSDoc-style comments for better code documentation
      
      - **Technical Debt Reduction:**
        - Replaced repetitive form field definitions with reusable components
        - Consolidated chart update logic into centralized updateChartSpec function
        - Improved data flow with better state management patterns
        - Reduced code duplication through strategic use of helper functions
      
      This refactor significantly improves component performance, maintainability, and user experience while maintaining backward compatibility and existing functionality.
      Apple\Apple committed
    • Merge pull request #1186 from tylinux/main · bc71259c
      feat: use bun when develop locally
      Calcium-Ion committed
    • Merge pull request #1184 from QuantumNous/refactor/message · a8b24bed
      fix: message 转 any 后,ImageUrl判断 panic
      Calcium-Ion committed
    • refactor(home): redesign homepage layout with centered content and improved responsiveness · 03645264
      - Remove example image and right-side image section for cleaner layout
      - Center all content vertically and horizontally on the page
      - Implement comprehensive responsive design using Tailwind CSS breakpoints
        - Typography scales from text-3xl to xl:text-6xl across screen sizes
        - Spacing and padding adjust dynamically (py-12 to lg:py-20)
        - Icon grid adapts from gap-3 to lg:gap-8
      - Keep action buttons horizontally aligned on all screen sizes
      - Add play icon to "Get Started" button for better UX
      - Refactor version display logic:
        - Show version tag only in demo site mode
        - Replace GitHub button text with version number in demo mode
        - Add docs button with same logic as HeaderBar when not in demo mode
      - Optimize icon layout with consistent 40px size and responsive containers
      - Improve overall mobile-first responsive design from 320px to 1280px+ screens
      Apple\Apple committed
  2. 08 Jun, 2025 24 commits
    • 🎨 style: remove overly vibrant colors and simplify UI design · af0f59cb
      - Remove colorful gradient backgrounds from dashboard panel headers in Detail page
      - Replace custom header styling with default Semi-UI card title styling
      - Remove background images and gradient overlays from all authentication pages
      - Simplify authentication page layouts with clean gray backgrounds
      - Update title text colors from white to dark gray for better contrast
      - Remove unnecessary z-index layering and complex positioning
      - Clean up unused background image imports
      
      This change creates a more professional and consistent visual appearance
      across the application by removing distracting visual elements.
      Apple\Apple committed
    • feat(tables): add "No Results" empty state for all table components · 4c4d3331
      Add consistent empty state handling across all table components to improve
      user experience when search/filter results are empty.
      
      Changes:
      - Import Empty component and IllustrationNoResult/IllustrationNoResultDark from @douyinfe/semi-ui
      - Add empty prop to Table components with "搜索无结果" message
      - Support both light and dark theme illustrations
      - Apply internationalization support for empty state text
      
      Affected files:
      - web/src/components/table/MjLogsTable.js
      - web/src/components/table/LogsTable.js
      - web/src/components/table/ChannelsTable.js
      - web/src/components/table/RedemptionsTable.js
      - web/src/components/table/TaskLogsTable.js
      - web/src/components/table/TokensTable.js
      - web/src/components/table/UsersTable.js
      - web/src/components/table/ModelPricing.js
      
      This ensures consistent UX across all table components when no data
      matches the current search or filter criteria.
      Apple\Apple committed
    • feat(ui): add lucide-react icons to dashboard sections · 2fc3b392
      Add visual icons to improve user experience and section identification:
      
      - Import lucide-react icons: Wallet, Activity, Zap, Gauge, PieChart
      - Add Wallet icon to "Account Data" section
      - Add Activity icon to "Usage Statistics" section
      - Add Zap icon to "Resource Consumption" section
      - Add Gauge icon to "Performance Metrics" section
      - Add PieChart icon to "Model Data Analysis" card
      
      All icons are styled with 16px size and proper flex layout with consistent spacing. Icons inherit parent text color for seamless integration with existing gradient headers.
      Apple\Apple committed
    • 🎨 feat(ui): replace list icon with tags icon for channel tag aggregation · 2df42cea
      - Replace IconList with Tags icon from lucide-react for better semantic representation
      - Update renderTagType function to use Tags icon instead of list icon
      - Remove unused IconList import from semi-icons
      - Improve visual clarity for tag aggregation feature in channels table
      
      The Tags icon better represents the concept of multiple tags being aggregated
      together, providing more intuitive user experience in the channels management
      interface.
      Apple\Apple committed
    • feat: Add lucide-react icons to all table Tag components · 48599d70
      - Add semantic icons to ChannelsTable.js for channel status, response time, and quota display
      - Add status and quota icons to TokensTable.js for better visual distinction
      - Add status and quota icons to RedemptionsTable.js for redemption code management
      - Add role, status, and statistics icons to UsersTable.js for user management
      - Import appropriate lucide-react icons for each table component
      - Enhance UI consistency and user experience across all table interfaces
      
      Icons added include:
      - Status indicators: CheckCircle, XCircle, AlertCircle, HelpCircle
      - Performance metrics: Zap, Timer, Clock, AlertTriangle, TestTube
      - Financial data: Coins, DollarSign
      - User roles: User, Shield, Crown
      - Activity tracking: Activity, Users, UserPlus
      
      This improves visual clarity and makes table data more intuitive to understand.
      Apple\Apple committed
    • 🔄 fix(tables): ensure search buttons show loading state consistently across all tables · 26d8c3ae
      Fix inconsistent loading state behavior where search buttons in ChannelsTable,
      RedemptionsTable, and UsersTable didn't display loading animation when tables
      were loading data, unlike LogsTable which handled this correctly.
      
      Changes:
      - Fix ChannelsTable searchChannels function to properly manage loading state
        - Move setSearching(true) to function start and use try-finally pattern
        - Ensure loading state is set for both search and load operations
      - Update search button loading prop in ChannelsTable: loading={searching} → loading={loading || searching}
      - Update search button loading prop in RedemptionsTable: loading={searching} → loading={loading || searching}
      - Update search button loading prop in UsersTable: loading={searching} → loading={loading || searching}
      
      This ensures search buttons show loading state consistently when:
      - Table is loading data (initial load, pagination, operations)
      - Search operation is in progress
      
      All table components now provide unified UX behavior matching LogsTable,
      preventing duplicate clicks and clearly indicating system state to users.
      Apple\Apple committed
    • ️ refactor(components): migrate all table components to use Form API · a62a8441
      - Refactor LogsTable, MjLogsTable, TokensTable, UsersTable, and ChannelsTable to use Semi-UI Form components
      - Replace individual input state management with centralized Form API
      - Add form validation and consistent form handling across all tables
      - Implement auto-search functionality with proper state update timing
      - Add reset functionality to clear all search filters
      - Improve responsive layout design for better mobile experience
      - Remove duplicate form initial values and consolidate form logic
      - Remove column visibility feature from ChannelsTable to simplify UI
      - Standardize search form structure and styling across all table components
      - Fix state update timing issues in search functionality
      - Add proper form submission handling with loading states
      
      BREAKING CHANGE: Form state management has been completely rewritten.
      All table components now use Form API instead of individual useState hooks.
      Column visibility settings for ChannelsTable have been removed.
      Apple\Apple committed
    • refactor(LogsTable): enhance Form component with auto-search and state synchronization · d1fb8415
      - Refactor Form component to use Semi Design best practices
      - Remove duplicate initValues configuration for DatePicker
      - Add real-time value change monitoring with onValueChange
      - Implement auto-search functionality for log type selector changes
      - Fix state synchronization issues causing stale values in search requests
      - Optimize form layout with proper vertical layout configuration
      - Enhance user experience with placeholders, clear buttons, and search icons
      - Remove logType parameter passing to prevent async state update conflicts
      - Ensure all form controls use latest values from formApi instead of stale state
      - Add proper validation triggers and error handling configuration
      - Improve reset button logic with proper timing for form state updates
      
      The changes resolve the issue where users needed to select log type twice
      for the search request to use the correct value, and ensure all form
      interactions provide immediate and accurate results.
      Apple\Apple committed
    • fix(relay-channel): correct condition for mediaMessages initialization in… · 2b3e64e8
      fix(relay-channel): correct condition for mediaMessages initialization in requestOpenAI2Mistral function
      CaIon committed
    • Merge pull request #1174 from QuantumNous/refactor/message · 5d7e688b
      refactor: message content 改成 any
      Calcium-Ion committed
    • Merge pull request #1179 from QuantumNous/alpha · 762d2c81
      merge alpha to main
      Calcium-Ion committed
    • Merge pull request #1162 from RedwindA/fix-redis-hdel · f1153427
      fix: Rename and refactor RedisHDelObj to RedisDelKey
      Calcium-Ion committed
    • 💄 style(channel): unify text link styles in EditTagModal with EditChannel · 4d9ecdb8
      Update text link styling in EditTagModal.js to match the consistent design
      pattern used in EditChannel.js. Changed className from 'text-blue-500 cursor-pointer'
      to '!text-semi-color-primary cursor-pointer' for template-related action links
      ("填入模板", "清空重定向", "不更改").
      
      This change ensures:
      - Visual consistency across channel editing components
      - Better theme adaptability using Semi Design color variables
      - Adherence to established design patterns in the codebase
      
      Files modified:
      - web/src/pages/Channel/EditTagModal.js
      Apple\Apple committed
    • Merge pull request #1176 from RedwindA/feat/tagMode-channelModelList · 58f235af
      feat: 标签聚合模式编辑渠道时复用渠道模型列表
      Calcium-Ion committed
    • feat(token): auto-generate default token names when user input is empty · e0ff3b6f
      When creating tokens, if the user doesn't provide a token name (empty or whitespace-only),
      the system will now automatically generate a name using the format "default-xxxxxx" where
      "xxxxxx" is a 6-character random alphanumeric string.
      
      This enhancement ensures that all created tokens have meaningful names and improves the
      user experience by removing the requirement to manually input token names for quick token
      creation scenarios.
      
      Changes:
      - Modified token creation logic to detect empty token names
      - Added automatic fallback to "default" base name when user input is missing
      - Maintained existing behavior for multiple token creation with random suffixes
      - Ensured consistent naming pattern across single and batch token creation
      Apple\Apple committed
    • 💄 style(Logs): Add rounded corners to image view button in MjLogsTable · 50402359
      - Add rounded-full class to "查看图片" (View Image) button for consistent UI styling
      - All other buttons in both MjLogsTable.js and TaskLogsTable.js already have rounded corners applied
      - Ensures uniform button styling across the log tables interface
      Apple\Apple committed
    • 🎨 fix: Import Semi UI CSS explicitly to resolve missing component styles · 07f141e8
      - Add explicit import of '@douyinfe/semi-ui/dist/css/semi.css' in index.js
      - Ensures Semi Design components render with proper styling
      - Resolves issue where Semi components appeared unstyled after dependency updates
      
      This change addresses the style loading issue that occurred after adding antd
      dependency and updating the build configuration. The explicit import ensures
      consistent style loading regardless of plugin behavior changes.
      Apple\Apple committed
  3. 07 Jun, 2025 5 commits