1. 09 Jun, 2025 17 commits
    • Merge pull request #1182 from RedwindA/fix/mistral-tool-content · be71bbb6
      fix(mistral): adjust condition for assistant content with tool call
      Calcium-Ion committed
    • ️ refactor(setting): move API info functions to dedicated module · e3b1d691
      Move validateApiInfo and getApiInfo functions from controller layer to
      setting/api_info.go to improve code organization and separation of concerns.
      
      Changes:
      - Create setting/api_info.go with ValidateApiInfo() and GetApiInfo() functions
      - Remove validateApiInfo function from controller/option.go
      - Remove getApiInfo function from controller/misc.go
      - Update function calls to use setting package
      - Clean up unused imports (net/url, regexp, fmt) in controller/option.go
      
      This refactoring aligns the API info configuration management with the
      existing pattern used by other setting modules (chat.go, group_ratio.go,
      rate_limit.go, etc.) and improves code reusability and maintainability.
      Apple\Apple committed
    • feat: Add speed test functionality to API info display · 52a665d6
      - Add speed test tag with gauge icon for each API route
      - Integrate tcptest.cn service for API endpoint performance testing
      - Implement handleSpeedTest callback to open speed test in new tab
      - Add Tag component import from @douyinfe/semi-ui
      - Use Gauge icon with white circular tag styling
      - Position speed test tag before API route for better visibility
      - URL encoding handles special characters for proper test URL generation
      - Remove unused IconTestScoreStroked import and clean up comments
      
      The speed test feature allows users to quickly test API endpoint
      performance by clicking a small circular tag that opens the
      tcptest.cn speed testing service with the encoded API URL.
      Apple\Apple committed
    • 💄 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 23 commits