- 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>
- 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>
- Updated the AIMessageParts component to improve handling of tool-related message parts by modifying the condition to check for "tool-" prefix.
- Introduced the ToolInvocationComponent for rendering tool-specific parts, enhancing the modularity and clarity of the message display logic.
These changes aim to streamline the integration of tool functionalities within the AI chat interface, improving user experience and maintainability.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated various description strings in the locales to ensure they end with appropriate punctuation, enhancing consistency and readability.
- Adjusted entries in English, Japanese, Simplified Chinese, and Traditional Chinese locales to follow sentence case and proper punctuation rules.
These changes aim to improve the overall user experience by providing clearer and more professional text presentation across the application.
Signed-off-by: Innei <tukon479@gmail.com>
- Adjusted padding in the modal component for improved layout consistency.
- Refactored the `MarkdownAnimateText` component to simplify text animation logic and improve rendering of various input types.
- Introduced a new customization option for timeline tabs in the settings, enhancing user experience and flexibility.
These changes aim to improve the overall UI consistency and provide users with more customization options in the application.
Signed-off-by: Innei <tukon479@gmail.com>
- Adjusted the width calculations in multiple components to use `--ai-chat-message-container-width` instead of the previous layout width. This change ensures a more consistent and responsive design across the AI chat interface.
- Updated components including `AIChainOfThought`, `AIDisplayFlowPart`, `AIReasoningPart`, and others to reflect this new width calculation, enhancing the overall user experience.
These modifications aim to streamline the layout and improve visual coherence in the chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a new style for `prose-pre:text-base` in the `AIMarkdownStreamingMessage` component to enhance text readability.
- Deleted the unused `styles.css` file related to animation, streamlining the codebase and removing unnecessary files.
These changes aim to improve the visual presentation of messages and maintain a cleaner project structure.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a dynamic width calculation to the `AIMarkdownStreamingMessage` component, ensuring it adapts to the AI chat layout width. This change enhances the responsiveness and visual consistency of the message display.
These modifications aim to improve the user experience by providing a more flexible and visually appealing chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced manual checks for editable elements in global shortcuts with a utility function `detectIsEditableElement` for cleaner code and better maintainability.
- Updated `AIChatRoot` to use `LexicalRichEditorRef` for the input reference, enhancing type safety and consistency in the chat input handling.
- Integrated `AIPanelRefsContext` in `ChatInput` and `ChatInterfaceContent` to streamline access to the input reference across components.
- Removed the deprecated `animatedPlugin` file to clean up unused code.
These changes aim to enhance the overall structure and functionality of the AI chat interface, improving user experience and code maintainability.
Signed-off-by: Innei <tukon479@gmail.com>
- Enhanced `AIMarkdownStreamingMessage` to use a stable reference for the `isStreaming` state, ensuring consistent rendering during updates.
- Updated `MarkdownAnimateText` to handle number inputs and preserve element structure for valid React elements, improving flexibility in rendering.
- Added logic in `TokenizedText` to skip rendering completely empty tokens and preserve whitespace-only tokens without additional DOM elements.
These changes aim to enhance the rendering logic and user experience in the AI chat interface by providing more robust handling of various input types and improving performance during streaming.
Signed-off-by: Innei <tukon479@gmail.com>
- Integrated `ShinyText` into `AIChainOfThought` for improved visual feedback during reasoning.
- Updated `AIMessageParts` to conditionally render reasoning parts only if text is present, enhancing logic clarity.
- Introduced `useDeferredValue` for low-priority rendering of display parts, optimizing performance.
These changes aim to improve the user experience by providing clearer visual cues and more efficient rendering in the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new `AIInnerReasoningPart` component to encapsulate the rendering logic for individual reasoning parts, enhancing modularity.
- Updated `AIChainOfThought` to utilize the new component and manage collapse state more effectively using a ref.
- Simplified the extraction of headings from reasoning text, improving readability and maintainability of the code.
These changes aim to enhance the user experience by providing clearer feedback during AI reasoning processes and improving the overall structure of the components.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated AIChainOfThought to accept an additional `isStreaming` prop for better control over rendering during streaming.
- Adjusted AIMessageParts to pass the `shouldMessageAnimation` state to AIChainOfThought, ensuring consistent behavior in the chat interface.
- Refactored the component structure for improved readability and maintainability.
These changes aim to enhance the user experience by providing clearer feedback during AI reasoning processes.
Signed-off-by: Innei <tukon479@gmail.com>
- Refactored AIChainOfThought to accept groups of ReasoningUIPart instead of children, improving the structure for displaying reasoning parts.
- Added logic to extract headings from reasoning text for better context presentation during streaming.
- Simplified AIReasoningPart by removing unnecessary collapse functionality, focusing on rendering text directly.
- Updated AIMessageParts to utilize the new structure for displaying reasoning parts, ensuring a cohesive integration.
These changes aim to improve the clarity and functionality of the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed the default Xcode version from 16.4.0 to 26.0.0 in the setup-xcode action configuration.
This update ensures compatibility with the latest development requirements.
Signed-off-by: Innei <tukon479@gmail.com>
- Created a new .watchmanconfig file to specify directories to ignore during file watching, enhancing performance and reducing unnecessary processing.
- Modified the Xcode project configuration to clean up output paths and ensure proper handling of build flags.
- Updated BottomTabProvider to use ResolvedTabScreenProps for better type safety.
- Adjusted spring configurations in various components for improved animation performance.
- Added Eye2CuteReIcon to EntryDetailScreen for enhanced user interface.
These changes aim to optimize the development workflow and improve the overall user experience in the mobile application.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced AGENTS.md to provide detailed, agent-focused guidance for working within the monorepo.
- Consolidated existing CLAUDE.md content and added new sections on project overview, setup commands, quality gates, code style, architecture, UI design tokens, and testing strategies.
- Established clear guidelines for component placement, reusable UI components, and agent workflows to enhance development consistency across applications.
This addition aims to streamline onboarding and improve collaboration among team members by providing a centralized resource for best practices and project structure.
Signed-off-by: Innei <tukon479@gmail.com>
- Added Sentry for error reporting in the mobile application.
- Updated the app configuration to initialize Sentry with the necessary DSN and settings.
- Replaced Firebase Crashlytics with Sentry for error capturing in the ErrorBoundary component.
- Updated various workflows to include Sentry authentication token.
- Adjusted dependencies to use React Native version 0.79.6 and updated related packages.
This integration enhances the application's ability to track and manage errors effectively.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced onTabItemPress event in TabBarRootView to handle tab item presses.
- Updated TabBarModule to include the new event in the definition.
- Modified TabBarRootWrapper to accept onTabItemPress and selectedIndex props.
- Enhanced TabRoot to utilize the onTabItemPress callback for scroll-to-top functionality.
This update improves user interaction with the tab bar by allowing for additional actions on tab item presses.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the version of posthog-react-native from 4.1.3 to 4.6.1 to ensure compatibility with the latest features and fixes.
- Adjusted related dependencies in pnpm-lock.yaml for consistency.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the prompt to ensure that issues with the same ID/number as the current issue are excluded from the similarity search results.
Signed-off-by: Innei <tukon479@gmail.com>
- Enhanced error handling in createErrorFallback to differentiate between error types and provide more specific responses.
- Removed unused kose-font dependency from package.json.
- Added @fontsource-variable/noto-sans-sc and @fontsource/noto-sans dependencies for improved font support in SSR.
Signed-off-by: Innei <tukon479@gmail.com>