Commit Graph
5973 Commits
Author SHA1 Message Date
Innei f1f9bc8c65 feat: add hover preview cards for entries and feeds
- Introduced EntryPreviewCard and FeedPreviewCard components for enhanced hover previews.
- Implemented prefetching of entry details and feed information on hover.
- Updated AnimatedMarkdown to utilize the new hover preview components for better user interaction.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-29 20:47:20 +08:00
Innei c27aced55b fix: timeline chat session unique
- Introduced localization for "New Chat" and timeline summary title in multiple languages.
- Updated AIChatRoot to accept chatId as a prop for better state management.
- Refactored useChatHistory to utilize localized titles for chat sessions.
- Improved ChatHeader and ChatMoreDropdown to leverage translation for tooltips and messages.
- Enhanced WelcomeScreen to set a localized title for the timeline summary.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-29 20:24:50 +08:00
Innei 06076d8116 fix: adjust some ai elements style
- Modified ChatMoreDropdown to use group-data attributes for hover effects.
- Adjusted WelcomeScreen's border radius for a more refined appearance.
- Refactored AnimatedMarkdown to streamline inline reference handling and improve tooltip integration.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-29 19:54:29 +08:00
DIYgod 1dbca292b0 fix: missing display tools 2025-09-29 19:20:12 +08:00
Stephen Zhou bd33ad5898 fix: no CustomizeSubscriptionTabs for legacy layout 2025-09-28 17:13:00 +08:00
Stephen Zhou c64dcac1d0 fix: padding in entry content modal 2025-09-28 16:45:20 +08:00
Stephen Zhou 6faaf722c7 feat: action settings in entry get 2025-09-28 16:23:04 +08:00
lawvs ab0c3b00c0 refactor: extract localized weekday name retrieval for task scheduling 2025-09-27 23:51:24 +08:00
Innei 4cba9aedc3 fix: keyboard interaction in ChatInterface
- Improved keyboard event handling in ChatInterface to prevent focus shift when modifier keys are pressed.
- Added functionality to handle incomplete custom mention tags and `<Use:` wrappers in markdown parsing, ensuring cleaner output during streaming.
- Enhanced the parsing logic to better manage incomplete formatting scenarios, including bold and italic markers in list items.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-27 23:48:51 +08:00
Innei 81c6de6615 refactor: enhance AIChatMessage and AnimatedMarkdown components
- Updated AIChatMessage to conditionally render action buttons based on original message metadata.
- Refactored AnimatedMarkdown to integrate tooltips for inline references, improving user interaction and accessibility.
- Added new tooltip components for better display of entry and feed information.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-27 23:01:56 +08:00
lawvs cf725721a7 fix: update day of week i18n for weekly schedule 2025-09-26 18:15:39 +08:00
Stephen Zhou 78816d5b4a chore: fix type 2025-09-26 16:34:17 +08:00
lawvs fa7a6e18d8 feat(i18n): add translations for task management features
- Implemented internationalization for task scheduling, actions, and modal titles.
- Updated existing components to utilize translation functions for better localization support.
2025-09-26 16:29:15 +08:00
Stephen Zhou 1a91d57cf0 refactor: merge main view and feed in data block 2025-09-26 16:05:07 +08:00
lawvs 090ae03b42 fix: correct types in getDefaultFormData function 2025-09-26 15:18:22 +08:00
Stephen Zhou 3815c6c71c fix: update client sdk to fix string array query 2025-09-26 10:50:43 +08:00
Stephen Zhou 13f5fcb0c9 fix: remove refer feed and date, update mention format (#4522) 2025-09-26 10:13:31 +08:00
DIYgod 54e8c87508 feat: remove tip and boost 2025-09-25 21:35:46 +08:00
DIYgod 3e02f92971 fix: posthog cors error 2025-09-25 20:20:30 +08:00
lawvs 69996e83e5 feat: support hover on mention dropdown 2025-09-25 18:36:33 +08:00
Innei 5a8c40a2bc fix(ai-chat): update icon in AIChatContextBar component
- Replaced the icon in the `AIChatContextBar` component from `i-mgc-add-cute-re` to `i-mgc-at-cute-re` for improved visual representation.

This change aims to enhance the accuracy of the icons used in the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 17:44:01 +08:00
Innei b3464a9b07 fix(ai-chat): enhance AIChainOfThought and ToolInvocationComponent with animations
- Integrated `AnimatePresence` and `m` from `motion/react` into the `AIChainOfThought` component to improve the display of reasoning titles with smooth transitions.
- Updated the `ToolInvocationComponent` to accept a `variant` prop, allowing for tighter spacing when necessary.
- Refined the `ShinyText` component's styles for better visual effects and consistency across components.

These changes aim to enhance the user experience by providing smoother animations and improved layout flexibility in the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 17:42:44 +08:00
DIYgod ba552ea6aa fix(ai-chat): rename folo-entry and folo-feed to mention-entry and mention-feed; add id prop to InlineFoloReference 2025-09-25 17:29:17 +08:00
Innei 1eb6fc7d14 fix(ai-chat): AIChainOfThought width
- Added memoization to the `AIChainOfThought` component for improved performance.
- Updated the message display format to include brackets around tool types for better clarity.
- Modified the placeholder text in the `ChatInput` component to provide clearer instructions for users.
- Implemented a transition for setting message container width in `ChatInterface` to enhance responsiveness.

These changes aim to improve the user experience and performance of the AI chat interface components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 17:14:33 +08:00
Innei 5717d495c5 fix(ai-chat): update icon in context menu for reference date
- Replaced the icon for the reference date in the `ContextMenuContent` component from `i-mgc-calendar-time-add-cute-re` to `i-mgc-calendar-time-add-cute-fi`, ensuring the correct visual representation.
- Added a new SVG icon file for `i-mgc-calendar-time-add-cute-fi` to the icons directory.

These changes aim to improve the accuracy of the context menu's visual elements in the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 15:44:32 +08:00
Innei 413fb986ff refactor(ai-chat): enhance ShinyText component and integrate into AIChainOfThought and WelcomeScreen
- Updated the `ShinyText` component to support children and customizable shimmer width, improving flexibility in usage.
- Refactored styles for the `ShinyText` component to enhance the shine animation effect.
- Integrated the `ShinyText` component into the `AIChainOfThought` and `WelcomeScreen` components, ensuring consistent visual styling across the AI chat interface.

These changes aim to improve the visual appeal and maintainability of the components within the AI chat module.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 14:30:45 +08:00
Innei cafdc42916 fix(ai-chat): filter empty message parts
- Added a new utility function `filterEmptyMessagePart` to filter out empty message parts in the `AIChatMessage` component, ensuring only relevant parts are displayed.
- Updated the `AIChatMessage` component to utilize the new filtering logic when processing messages that start with a "step-start" type.
- Enhanced the `AnimatedMarkdown` component to apply a background style to the rendered markdown, improving visual consistency.

These changes aim to enhance the clarity and maintainability of the AI chat message rendering logic.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 14:21:36 +08:00
Stephen Zhou 39ca3ee6d8 refactor: get category in feed title component 2025-09-25 11:58:56 +08:00
Stephen Zhou 20a60ae50b refactor: merge main view and main feed context block 2025-09-25 11:47:03 +08:00
Stephen Zhou 2b0245b278 fix: improve context block load logic 2025-09-25 11:05:42 +08:00
Stephen Zhou f60e8e0883 feat: mention category (#4515) 2025-09-25 10:47:53 +08:00
Innei 1f46f3f156 feat(app): font rendering in selector
- Added functionality to the `BootstrapManager` to remove cache directories (`Cache` and `Code Cache`) when the app is in development mode during the quit process.
- Updated `NetworkStatusIndicator` to conditionally apply styles based on the `ELECTRON` environment.
- Enhanced font rendering in `ContentFontSelector` and `UIFontSelector` components to apply custom font styles dynamically.

These changes aim to improve the development experience and UI consistency across the desktop application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 01:04:22 +08:00
Innei 97e2972ad7 feat(ai-chat): add custom date range picker to context menu
- Introduced a new `CustomRangePicker` component within the `ContextMenuContent` to allow users to select custom date ranges.
- Enhanced the `DateTimePicker` to support range selection mode, enabling users to pick start and end dates.
- Integrated relative date options into the context menu, improving the flexibility of date mentions in the AI chat interface.
- Updated localization to ensure new date range options are translatable.

These changes aim to enhance user experience by providing more options for date selection in the AI chat context menu.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 00:51:31 +08:00
Innei 09f8d1d3bf feat(ai-chat): enhance date mention functionality with new relative date options
- Added support for relative date mentions for the last 15 days and specific weekdays (Monday to Sunday) in the AI chat.
- Updated localization files to include translations for the new date mention keys in English, Japanese, and Simplified Chinese.
- Refactored the date mention configuration to improve clarity and maintainability.

These changes aim to provide users with more flexible date mention options, enhancing the overall user experience in the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 00:23:50 +08:00
Innei bcb781e30c refactor(ai-chat): enhance AIChainOfThought and ToolInvocationComponent for improved reasoning handling
- Updated the `AIChainOfThought` component to support a new `ChainReasoningPart` type, allowing for better integration of tool and reasoning parts.
- Refactored the logic for determining when the current chain reasoning is finished, ensuring accurate state management.
- Enhanced the `AIMessageParts` component to utilize the new `ChainReasoningPart` type, improving the handling of message parts.
- Modified the `ToolInvocationComponent` to streamline the rendering of tool invocation details, improving UI consistency and clarity.

These changes aim to enhance the functionality and maintainability of the AI chat components, providing a more robust user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 00:07:34 +08:00
Innei d0b148b101 refactor(mobile): update header height calculations for improved layout
- Refactored the `getDefaultHeaderHeight` function calls across multiple components to accept an object with properties for landscape orientation, modal presentation, and top inset. This change enhances the clarity and maintainability of the header height calculations.
- Updated components including `NavigationHeader`, `SafeNavigationScrollView`, `ProfileScreen`, and `Settings` to utilize the new function signature, ensuring consistent header height behavior across the mobile application.

These changes aim to improve the layout responsiveness and maintainability of the mobile app's header components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 23:59:07 +08:00
Innei 822d6b0417 feat(mobile): integrate expo-glass-effect for enhanced blur effects
- Added the `expo-glass-effect` package to `package.json` to enable glass effect features.
- Updated `BlurEffect` and `ThemedBlurView` components to conditionally render a glass effect on iOS 26 devices.
- Introduced `GlassPlayerTabBar` component for improved tab bar aesthetics and functionality.
- Enhanced `PlayerAction` component to utilize the new glass effect in its UI.

These changes aim to improve the visual experience of the mobile application by incorporating modern UI effects.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 23:53:37 +08:00
Innei 36a86d48a7 fix(ios26): safe insets for tabbar
- Imported the `PlayerTabBar` component into `ReactNativeTab.ios.tsx`, enhancing the tab bar functionality for the mobile application.
- This integration aims to improve the user experience by providing additional navigation options within the tab bar.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 22:57:50 +08:00
Innei 2a90db2d1f feat(mobile): implement NativeTabBarHolder for dynamic tab bar height adjustment
- Added the `NativeTabBarHolder` component to manage the height of the bottom tab bar based on safe area insets, ensuring proper layout on iOS devices.
- Updated the `ReactNativeTab` component to render `NativeTabBarHolder` when conditions are met, enhancing the user interface for iPad and iPhone users.
- Utilized `useLayoutEffect` to adjust the tab bar height dynamically, improving the overall user experience in the mobile app.

These changes aim to provide a more responsive and visually appealing tab bar layout in the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 22:41:59 +08:00
Innei ccdfbe3442 fix(ai-chat): alway add en date mention parsing with localization support
- Updated the `extractSearchTerms` function to accept an optional language parameter, improving localization handling for date mentions.
- Ensured that English terms are always included in search results for better user experience.
- Refactored the mention handling to streamline the addition of search terms, enhancing code clarity and maintainability.

These changes aim to provide a more robust and localized experience when users interact with date mentions in the AI chat.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 22:34:39 +08:00
Innei 402004c880 refactor(mobile): simplify animation configurations in dialog and player control components
- Removed damping and stiffness parameters from the entering animations in both the dialog and play/pause button components, streamlining the animation setup.
- This change aims to enhance code readability and maintainability while preserving the intended animation effects.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 22:33:42 +08:00
Innei 091a4740ba feat(ai-chat): enhance date mention functionality and localization
- Introduced new date mention capabilities, allowing for relative date mentions such as "today," "yesterday," and various ranges (e.g., "last 3 days").
- Updated localization files to include translations for new date mention keys in English, Japanese, and Simplified Chinese.
- Refactored mention handling to improve the display of date mentions, ensuring they are formatted correctly based on user language settings.
- Added support for dynamic display names based on date ranges, enhancing user experience in the AI chat interface.

These changes aim to provide a more intuitive and localized experience when users interact with date mentions in the AI chat.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 22:20:50 +08:00
DIYgod f2f70ecd47 fix: update span class for improved whitespace handling 2025-09-24 21:36:48 +08:00
Innei 2ec185364e chore(mobile): bump version to 0.2.9 in package.json and Info.plist
- Updated the version number from 0.2.8 to 0.2.9 in both package.json and Info.plist to reflect the latest changes and improvements.

This version bump ensures that the mobile app is correctly identified with the latest updates.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 20:05:26 +08:00
Innei a06a3fe2fc refactor(ai-chat): restructure image thumbnail handling and enhance message components
- Moved the `ImageThumbnail` component to a new location, consolidating its functionality with hover preview and error handling.
- Updated `UserMessageParts` to utilize `UserRichTextMessage` instead of the deprecated `AIRichTextMessage`, improving clarity in message rendering.
- Enhanced `FileAttachmentNode` to utilize the new `useMessageByIdSelector` for better file attachment management.
- Refactored `useFileUpload` to omit the nonce from options, streamlining the file upload process.

These changes aim to improve the modularity and maintainability of the AI chat components, enhancing the overall user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 18:47:42 +08:00
Stephen Zhou 3f2b7401b8 fix: explicit date range 2025-09-24 16:55:51 +08:00
Innei 2fe07f9489 fix(ai-chat): improve file attachment display logic in message components
- Updated the `getFileDisplayContent` function to default to "completed" status for file attachments, enhancing clarity in the display of upload statuses.
- Added a condition in `AIDataBlockItem` to return the attachment name directly when no upload status is present, improving user feedback for file attachments.
- Refactored the handling of reasoning parts in `AIMessageParts` to use a more descriptive variable name, enhancing code readability.

These changes aim to provide a clearer and more informative user experience when interacting with file attachments in the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 16:41:43 +08:00
Stephen Zhou d590edf742 fix: peek modal for entry not loaded 2025-09-24 16:12:56 +08:00
Stephen Zhou d955c424c6 feat: mention date (#4512) 2025-09-24 16:03:02 +08:00
Whitewater ef60144235 fix: re-patch react-native-sheet-transitions (#4513)
* fix: re-patch react-native-sheet-transitions

* fix: patch
2025-09-24 07:55:09 +00:00