Commit Graph

6319 Commits

Author SHA1 Message Date
DIYgod 73261ccf74
chore: update changelog for v1.1.0 with new features and fixes 2025-11-07 15:11:26 +08:00
DIYgod fd55f86766
release(desktop): release v1.1.0 2025-11-07 10:53:22 +08:00
Innei 77f04b9753
feat(ai-chat): add interruption notice and retry functionality
- Implemented a notice for users when the session is interrupted, prompting them to retry their last message.
- Added localization for the interruption message in English, Japanese, and Chinese.
- Enhanced the chat interface to handle message retries effectively, improving user experience during connection issues.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-07 00:43:19 +08:00
lawvs 500814ad3a fix: simplify type usage in rate limit functions 2025-11-07 00:10:14 +08:00
lawvs f60083c730 chore: update package versions for client-sdk and ai-tools 2025-11-07 00:08:54 +08:00
Innei 8794dcbce9
chore: lint
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 23:58:20 +08:00
Innei 60f4ce2355
feat(ai): rate limit indicator 2025-11-06 23:42:25 +08:00
Innei c465843bd9
feat(ai-chat): merge ChatHistoryDropdown and TaskReportDropdown
- Refactored session handling by introducing shared components for session items and empty states.
- Added functionality to filter and display both chat and task sessions in ChatHistoryDropdown.
- Implemented loading states and delete session capabilities for better user experience.
- Improved task session management with the ability to create new tasks directly from the dropdown.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 22:47:14 +08:00
Innei ec672495b3
fix(ai): fix load ai history session
- Changed RateLimitNotice from a div to a button for better accessibility and interaction.
- Added an "Upgrade Plan" button to encourage users to upgrade their plan directly from the notice.
- Improved layout styling for better visual clarity.

fix(useChatHistory): streamline loading state checks

- Simplified loading state condition in loadHistory function to improve performance.

fix(ai-chat-session): remove unnecessary localization logic in fetchRemoteSessions

- Cleaned up fetchRemoteSessions function by removing unused i18n imports and related code.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 22:24:24 +08:00
DIYgod 3492de2c3c
fix: downgrade vite version from 7.2.0 to 7.1.11 2025-11-06 21:55:28 +08:00
DIYgod 2ff37e1094
fix: use exact package version 2025-11-06 21:30:35 +08:00
Innei e0a2e6c49c
fix(chat): chat bottom input container calcultion
- Removed the rateLimitNoticeRef from ChatInterface, simplifying the height calculation.
- Updated RateLimitNotice component to eliminate the ref prop, streamlining its implementation.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 21:26:11 +08:00
DIYgod 7ca97e0208
fix: types 2025-11-06 21:16:06 +08:00
Innei ad1d4d9635
feat(ai-chat): add unread message indicator to TaskReportDropdown and SessionItem components
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 21:13:33 +08:00
DIYgod 68fb09eb03
chore: update dependencies (#4667)
* chore: update dependencies

* Implement code changes to enhance functionality and improve performance
2025-11-06 21:09:46 +08:00
lawvs 7d6df0ec17 fix: correct token usage message logic 2025-11-06 20:57:36 +08:00
Whitewater b6787a79f4
feat(rateLimit): enhance RateLimitNotice to display token usage info (#4662)
* feat(rateLimit): enhance RateLimitNotice to display token usage information

Updated RateLimitNotice component to accept token usage data and display it alongside error messages. Modified related components to utilize the new token usage prop for improved user feedback on rate limits.

* fix: remove rate limit notice for onboarding

* fix: handle negative reset time

* fix: correct reset time check in RateLimitNotice component

* refactor(rateLimit): refactor RateLimitNotice to utilize chatConfig for message display

- Removed tokenUsage prop and normalized token data logic.
- Integrated chatConfig to build messages for free usage and token usage.
- Improved message rendering logic for better clarity on rate limits and resets.

* chore: clean code

* refactor: update RateLimitNotice handling and layout adjustments
2025-11-06 20:45:19 +08:00
songkeys 46d8fccd2f feat(onboarding): compatible with json 2025-11-06 19:11:58 +08:00
DIYgod 959904d72e
feat(chat): enhance resumeStream handling to manage transient status during stream resumption 2025-11-06 17:41:15 +08:00
DIYgod 264bd711e6
refactor(debug-registry): streamline debug registry entries for error simulation and app upgrade notifications 2025-11-06 17:14:24 +08:00
DIYgod 5ee4817cb6
fix(ai-chain-of-thought): update title rendering logic and improve heading extraction 2025-11-06 17:12:43 +08:00
songkeys 84380d5c1a feat(onboarding): add skip button 2025-11-06 17:04:32 +08:00
DIYgod 6748801e4e
feat(ai): add max height and auto scroll support to AIReasoningPart component 2025-11-06 17:03:33 +08:00
Innei 3439180c6c
feat(updater): implement distribution update handling and external link opening
- Added a new method to open external URLs in the app.
- Enhanced the updater to check for distribution updates and notify users.
- Updated the updater status types to include distribution updates.
- Refactored the update notice component to handle distribution store updates.
- Added localization for distribution update notifications.

This update improves the user experience by allowing seamless updates from distribution stores and providing clear notifications for available updates.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 16:37:33 +08:00
DIYgod fef048fc2c
feat(about): integrate EnvironmentDebugModalContent and enhance renderer version click handling 2025-11-06 16:25:40 +08:00
lawvs 9b9ee76bcc fix: handle undefined initialValue and check for empty JSON root 2025-11-06 15:32:15 +08:00
songkeys 6f02b5142a fix(onboarding): missing step 2025-11-06 12:28:02 +08:00
DIYgod 0634a79780
fix: types 2025-11-06 09:51:38 +08:00
DIYgod ae97aa2b1a
refactor(ai): drop floating chat panel and simplify timeline layout 2025-11-06 09:09:06 +08:00
Innei f6a8691e3a
fix(translation): update user role checks for translation prefetching
Refactored translation prefetching logic across multiple components to utilize the new isFreeRole function. This change ensures that users with Free roles do not trigger translation prefetching, optimizing performance and enhancing user experience. Updated relevant imports and conditions in EntryItemImpl, useEntryContent, and various EntryList components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 21:41:56 +08:00
DIYgod f7b648f25e
feat(aiChat): conditionally render floating panel based on view type
style: adjust padding in ListItem component for better spacing
2025-11-05 17:33:57 +08:00
DIYgod aee647197b
refactor: remove aiColWidthAll from UISettings interface 2025-11-05 17:12:53 +08:00
DIYgod 9bd586345c
feat: new ai layout for all view 2025-11-05 17:03:43 +08:00
DIYgod b0fdc29688
feat(context): remove feedId from timeline summary context and related functions 2025-11-05 15:38:28 +08:00
Innei 61398f72f1
feat(mcp): add Fabric AI workspace integration to MCP presets
Introduced a new MCP preset for Fabric AI, including configuration details such as transport type and API URL. This addition enhances the functionality of the MCP by allowing users to connect their Fabric AI workspace, enabling features like reading and searching workspaces, creating, and updating notes.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 14:44:58 +08:00
Innei 053f680dc0
fix(translation): implement user role-based translation prefetching
Enhanced translation prefetching logic across multiple components by incorporating user role checks. Users with the Free role will no longer trigger translation prefetching, optimizing performance and resource usage. Updated relevant hooks and components to utilize the new logic for improved user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 01:24:34 +08:00
Innei e9553e40d0
feat(payment): implement upgrade prompt for AI summary and enhance error handling
Added functionality to suggest an upgrade when payment-related errors occur in the AI summary component. Introduced a new UpgradeRequiredDialog for user prompts and integrated it with existing error handling. Updated localization for upgrade messages in multiple languages. Refactored related components to improve clarity and maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 01:06:36 +08:00
Innei cd99ec9179
feat(error-handling): enhance error parsing and localization updates
Updated the error parsing logic in the error-parser.ts file to include additional status handling for FollowAPIError. Improved the toastFetchError function to utilize status codes for payment-related errors. Additionally, localized new error messages in English, Japanese, and Chinese, including updates for trial user limits and AI memory errors.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 23:18:35 +08:00
Innei 2ac5aed4e1
fix(ui): sonner styles
Updated the global shortcuts registration to ensure proper detection of editable elements by checking if the target is an instance of HTMLElement. This change enhances the accuracy of shortcut handling in editable contexts.

style(toast): remove unused toast styles

Deleted redundant CSS styles related to sonner toast notifications to streamline the stylesheet and improve maintainability.

style(toast): enhance toast styles with z-index and pointer events

Added z-index and pointer-events styles to the toast component for better layering and interaction handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 22:55:49 +08:00
Innei ad97c27906
feat(ai-summary): enhance AI summary card with upgrade suggestion and error handling
Updated the AISummaryCardBase component to suggest an upgrade when encountering a payment-related error. Refactored error handling to utilize the FollowAPIError class. Improved localization for upgrade prompts in English, Japanese, and Chinese. Adjusted related components to pass error objects instead of error codes for better clarity.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 22:33:41 +08:00
Innei d4389ce2d3
fix(view-all): can not move to category in all view
Refactored the FeedCategoryImpl function to replace the 'view' prop with 'viewOnRoute' for better clarity and consistency. Adjusted related subscription action calls to utilize the new prop, ensuring proper state management and navigation behavior.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 21:42:44 +08:00
Innei fabe63621e
refactor(api): remove unused API fetch and activation modal components
Deleted the api-fetch module and the ActivationModalContent component, streamlining the codebase. Updated references to use the new UpgradePlanModalContent where necessary. Adjusted response interceptors in the api-client to remove unused router references and error handling logic.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 21:21:23 +08:00
Innei 6a49168181
feat(subscription): add SubscriptionScreen and update settings navigation
Introduced a new SubscriptionScreen for managing user subscriptions, replacing the previous PlanScreen references. Updated navigation links in SettingsList to reflect this change, ensuring proper routing. Enhanced localization files to include new subscription-related strings for multiple languages.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 20:45:58 +08:00
lawvs 2541490129 chore: only refetch chat session when user has task 2025-11-04 15:48:09 +08:00
Innei 45b607d8fa
fix(header): adjust header and banner styles for modal presentation
Updated the header and user banner components to conditionally adjust styles based on modal presentation state. The header now accounts for modal visibility when setting padding, and the user banner adjusts its margin and padding accordingly to enhance layout consistency in modal views.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-03 22:42:31 +08:00
Innei b1dd6dab33
fix(tray): set default minimize to tray behavior for all platforms
Updated the default behavior for minimizing the application to the system tray, ensuring it is set to false across all platforms, including macOS. This change simplifies the tray configuration logic.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-03 22:03:21 +08:00
Innei e6f520aa5b
fix(updater): windows path seq
Enhanced logging in the updater module to provide more context during update checks and downloads. Updated path resolution logic for Windows to ensure correct handling of installation paths. Removed the outdated logger module to streamline the codebase.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-03 22:00:31 +08:00
songkeys 61acd01f7a fix(guide-modal): update onboarding step completion conditions
Modified the conditions for marking onboarding steps as complete in the GuideModalContent component. Now considers both "finish" and "manual-import-finish" steps as completed, ensuring proper tracking and user flow.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-03 21:52:50 +08:00
Innei 19c4b567b2
refactor(updater): remove unused renderer update functions
Removed the extractRendererManifest, evaluateRendererUpdate, and applyRendererUpdate functions from the hot-updater module to streamline the codebase. Updated logging in the index module for clarity.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-03 19:58:18 +08:00
Innei c8c789f4fd
refactor(updater): app update based own server
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-03 19:58:18 +08:00