feat: conditionally set Gemini ThinkingBudget based on MaxOutputTokens - #1278
Conversation
- Add translation "Expose ratio API" for Chinese text "暴露倍率接口" - Update English locale file (en.json) with new translation entry
- Change message from "已与上游倍率完全一致,无需同步" to "未找到差异化倍率,无需同步" - Update English translation to "No differential ratio found, no synchronization is required" - Improve user experience clarity for upstream ratio synchronization status
- Add icons to each settings tab to enhance visual recognition - Import necessary Lucide React icons (Settings, Calculator, Gauge, Shapes, etc.) - Create consistent tab styling with icons aligned next to text - Reorder tabs to place "Other Settings" as the last option - Improve overall settings page UI with better visual hierarchy
- Create new ChatsSetting component for managing chat configurations - Add "Chat Settings" tab with MessageSquare icon in settings page - Remove chat settings section from OperationSetting component - Update import path to use Chat directory structure
- Create a new DrawingSetting component for managing drawing-related configurations - Add a dedicated "Drawing Settings" tab with Palette icon in the settings page - Remove drawing settings section from the OperationSetting component - Update import path to use Drawing directory instead of Operation directory - Improve UI organization by separating drawing settings from general operations
…ection This commit relocates the DataDashboard settings component from the Operation section to the Dashboard section for better logical organization. The changes include: - Remove DataDashboard import and component from OperationSetting.js - Add DataDashboard component to DashboardSetting.js - Update import path from Operation to Dashboard directory - Add DataExport related state management in DashboardSetting This restructuring improves the application's information architecture by grouping related dashboard visualization settings together.
Restructure payment settings into a separate tab for better organization and user experience. The changes include: 1. Create dedicated Payment components in the Setting directory structure 2. Move payment-related settings from SystemSetting to PaymentSetting 3. Add proper i18n support with useTranslation hook 4. Split payment settings into GeneralPayment and PaymentGateway components 5. Fix internationalization issues in placeholder text 6. Update navigation with CreditCard icon for payment tab This refactoring improves code maintainability by following the established project pattern of having specialized setting components in their own directories.
feat(model-ratio): add default ratios for new Gemini models and refine flash model handling
feat: allow for a lower percentage of the thinkingBudget
refactor: optimize Dockerfile apk usage
…lance feat: add moonshot(kimi) update balance
…l, and shine animation • HeaderBar - Added dynamic unread badge; click now opens NoticeModal on “System Announcements” tab - Passes `defaultTab` and `unreadKeys` props to NoticeModal for contextual behaviour • NoticeModal - Introduced Tabs inside the modal title with Lucide icons (Bell, Megaphone) - Displays in-app notice (markdown) and system announcements separately - Highlights unread announcements with “shine” text animation - Accepts new props `defaultTab`, `unreadKeys` to control initial tab and highlight logic • CSS (index.css) - Implemented `sweep-shine` keyframes and `.shine-text` utility for left-to-right glow - Added dark-mode variant for better contrast - Ensured cross-browser support with standard `background-clip` Overall, users now see an unread counter, are directed to new announcements automatically, and benefit from an eye-catching glow effect that works in both light and dark themes.
Add reverse-chronological sorting for the announcements list so that the newest items appear first in the dashboard. No API changes; this only affects front-end display and user notifications.
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces new settings sections and components for chat, drawing, and payment management in the web application's settings interface, along with enhanced notification handling and visual improvements. It also refines backend logic for model ratios, channel billing, and Gemini pricing, while removing deprecated or redundant settings and updating localization strings and styles for improved usability and clarity. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant HeaderBar
participant NoticeModal
participant localStorage
User->>HeaderBar: Clicks bell icon
HeaderBar->>NoticeModal: Opens with unreadKeys, defaultTab
NoticeModal->>User: Shows announcements (tabs: inApp/system)
User->>NoticeModal: Closes modal
NoticeModal->>HeaderBar: Triggers handleNoticeClose
HeaderBar->>localStorage: Marks all announcements as read
HeaderBar->>HeaderBar: Updates unreadCount
sequenceDiagram
participant User
participant SettingsPage
participant ChatsSetting
participant DrawingSetting
participant PaymentSetting
User->>SettingsPage: Navigates to Settings
SettingsPage->>ChatsSetting: Renders tab (if root)
SettingsPage->>DrawingSetting: Renders tab (if root)
SettingsPage->>PaymentSetting: Renders tab (if root)
ChatsSetting->>API: Fetches chat options
DrawingSetting->>API: Fetches drawing options
PaymentSetting->>API: Fetches payment options
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (27)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
feat: conditionally set Gemini ThinkingBudget based on MaxOutputTokens
Summary by CodeRabbit
New Features
Improvements
Removals
Bug Fixes
Style
Chores