- Added @xyflow/react as a dependency and integrated its flow chart functionality into the AI chat interface.
- Updated AIDisplay components to improve rendering and state management, ensuring a more responsive user experience.
- Refactored several display components for better readability and maintainability, including AIDisplayAnalyticsPart, AIDisplayEntriesPart, AIDisplayFeedsPart, and AIDisplaySubscriptionsPart.
- Introduced AIDisplayFlowPart for visualizing flow charts, enhancing the overall functionality of the chat interface.
These changes significantly improve the user experience and maintainability of the AI chat application.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced AIMarkdownStreamingMessage to handle streaming text updates, improving user experience during message processing.
- Updated AIMessageParts to conditionally render AIMarkdownStreamingMessage for assistant messages, ensuring proper display during streaming.
- Added safety checks and cleanup logic in useStreamingTextBuffer to prevent memory leaks and ensure robust handling of text updates.
These changes enhance the functionality and responsiveness of the AI chat interface during streaming scenarios.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced motion div with a standard div in AIErrorFallback for improved layout consistency.
- Updated button label from "Reload Chat" to "Reload Page" for clarity.
- Streamlined the ChatInterface component by removing unnecessary return statements, enhancing readability.
These changes improve the clarity and maintainability of the AI chat components.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced AIErrorFallback component to provide a user-friendly error display for AI chat errors.
- Wrapped ChatInterface in an ErrorBoundary to catch and handle errors gracefully, enhancing user experience during failures.
- Updated ChatInput rendering logic to improve layout responsiveness based on message presence.
These changes improve error management and user interaction within the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Integrated ScrollArea for better message editing experience in the EditableMessage component.
- Updated initial editor state handling to streamline the setup process.
- Added MentionPlugin to support mentions within the editor, enhancing user interaction.
- Refactored LexicalRichEditor to utilize EditorRefPlugin for improved editor reference management.
These changes improve the usability and functionality of the message editing interface in the AI chat application.
Signed-off-by: Innei <tukon479@gmail.com>
- Refactored AIDisplay components to utilize a new higher-order component for display state management, improving code clarity and reducing redundancy.
- Introduced DisplayCardWrapper for consistent card layout across display components.
- Removed unused ChartPlaceholder component and consolidated state handling logic.
- Updated AIDisplay components to enhance user experience by ensuring proper loading and error states.
These changes improve maintainability and user experience in the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Eliminated the clearUISettings function call from clearLocalPersistStoreData, streamlining the data clearing process.
- This change improves code clarity and maintains the focus on database cleanup operations.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated MENTION_TRIGGER_PATTERN to include support for Chinese, Japanese, and Korean characters, improving the mention feature's accessibility for a broader audience.
- Refactored getMentionType to return both mention type and cleaned query for better handling in search functionalities.
- Adjusted mention search hooks and dropdown components to utilize the updated patterns and improve user experience during mention input.
These changes enhance the overall functionality and inclusivity of the mention feature in the chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed the fallback in MentionNode from displaying the mention name to null, enhancing the rendering behavior during loading states.
This update improves the user experience by ensuring a cleaner interface while mentions are being processed.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated AIMarkdownMessage to conditionally apply rehypePlugins based on processing state, enhancing performance.
- Replaced preformatted JSON display in ToolInvocationComponent with JsonHighlighter for better readability and styling.
- Adjusted ShikiHighLighter component in FeedClaimModalContent to remove unnecessary padding, improving layout consistency.
- Wrapped claim button text in a span for better semantic structure.
These changes enhance the user experience by improving the rendering of messages and ensuring a more consistent UI across components.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced an animatedPlugin for enhanced text rendering in AIMarkdownMessage, adding a fade-in effect for words.
- Updated StreamingMessageBuffer to include a maximum buffer size to prevent out-of-memory issues.
- Improved the layout of ChatInput in ChatInterface for better spacing.
- Adjusted the PoweredByFooter link color for better visibility.
- Refactored parseMarkdown to support rehype plugins, allowing for more flexible markdown processing.
These changes enhance the user experience in the AI chat interface by improving text animations and performance during message rendering.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new StreamingMessageBuffer class for efficient text rendering during streaming, allowing for better state management and performance.
- Updated the AIMarkdownMessage component to utilize the streaming buffer for rendering text, improving responsiveness during processing.
- Enhanced the ThinkingIndicator component with a shimmering effect for a more visually appealing user experience.
These changes improve the overall performance and user interaction within the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated @follow-app/client-sdk to version 0.3.26 in pnpm-lock.yaml and pnpm-workspace.yaml.
- Upgraded ai package to version 5.0.2 across various package.json files.
- Refactored ai-chat components to use new store structure, moving types and hooks from __internal__ to store.
- Introduced new AIChatContext and hooks for better state management in the ai-chat module.
These changes enhance the maintainability and performance of the ai-chat module while ensuring compatibility with updated dependencies.
Signed-off-by: Innei <tukon479@gmail.com>
* init
* refactor
* implement mention plugin for chat input
- Updated pnpm-lock.yaml and pnpm-workspace.yaml to include new versions of @floating-ui packages.
- Added MentionPlugin to the chat input component, enabling mention functionality.
- Created necessary components, hooks, and utilities for mention handling, including MentionNode, MentionDropdown, and related styles.
- Refactored existing code to integrate mention features seamlessly into the chat interface.
This update enhances the chat experience by allowing users to mention others easily, improving interactivity and engagement.
Signed-off-by: Innei <tukon479@gmail.com>
* Enhance mention functionality in chat editor
- Integrated MentionNode into AIRichTextMessage for improved mention handling.
- Updated MentionPlugin to utilize new hooks for mention search and insertion.
- Added useMentionIntegration and useMentionSearchService hooks for better mention management.
- Created contextBarSearchService and feedEntrySearchService for unified search functionality.
- Refactored LexicalRichEditor to support custom nodes from plugins.
This update improves the chat experience by streamlining mention interactions and enhancing search capabilities.
Signed-off-by: Innei <tukon479@gmail.com>
* Enhance mention integration and synchronization in chat editor
- Updated ChatInput layout for improved button positioning.
- Added select-none class to mention styles for better user experience.
- Refactored MentionDropdown to improve the display of mention types and content.
- Introduced useMentionBlockSync hook for bidirectional synchronization between mention nodes and context blocks.
- Enhanced useMentionIntegration to handle mention insertion with node key tracking.
- Implemented useMentionSearchService for streamlined mention search functionality.
These changes improve the overall mention handling and user interaction within the chat editor, making it more intuitive and efficient.
Signed-off-by: Innei <tukon479@gmail.com>
* Refactor ChatInput layout to include ScrollArea for improved scrolling experience
- Wrapped LexicalRichEditor in a ScrollArea component to enhance the input area’s usability.
- Adjusted styles in LexicalRichEditor for better layout consistency.
These changes aim to improve user interaction within the chat input by providing a more flexible scrolling interface.
Signed-off-by: Innei <tukon479@gmail.com>
* Remove deprecated mention functionality and update MentionNode for markdown export
- Deleted mention-related files and types as functionality has been moved to the desktop app.
- Updated MentionNode to change the text content format for markdown export.
- Refactored useMentionBlockSync to remove unused helper functions and streamline dependencies.
- Adjusted LexicalRichEditor placeholder styles for better alignment.
These changes clean up the codebase by removing obsolete mention features and enhancing the current mention handling in the chat editor.
Signed-off-by: Innei <tukon479@gmail.com>
* Implement AI chat message tracking functionality
- Added tracking for AI chat messages sent by integrating the tracker module into the ChatInterface component.
- Introduced a new tracker point for AIChatMessageSent in the TrackerMapper enum.
- Removed deprecated entry tracking methods to streamline the tracking process.
These changes enhance the analytics capabilities of the chat interface by monitoring AI interactions more effectively.
Signed-off-by: Innei <tukon479@gmail.com>
* Update VSCode settings for Tailwind CSS and i18n-ally configuration
- Streamlined the tailwindCSS.experimental.classRegex by removing unnecessary line breaks for better readability.
- Consolidated the tailwindCSS.experimental.configFile and i18n-ally settings into single-line arrays for consistency.
- Ensured proper formatting and alignment of settings to enhance maintainability.
These changes improve the clarity and organization of the VSCode settings file.
Signed-off-by: Innei <tukon479@gmail.com>
---------
Signed-off-by: Innei <tukon479@gmail.com>
* refactor: upgrade FlashList to v2
* chore: upgrade @shopify/flash-list to v2.0.0
* chore: update packageManager version to pnpm@10.14.0
* fix: revert packageManager version to pnpm@10.12.1
* chore: update ref type for TimelineSelectorMasonryList component
- Changed the icon in FeedItem component to a more appropriate representation.
- Updated color constants for various themes to improve contrast and visual appeal, ensuring better accessibility and aesthetics.
This update enhances the user interface by refining iconography and color usage across the application.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced URL scheme handling in the integration module, allowing users to define and execute URL schemes.
- Added validation for URL scheme templates to ensure correct format and required fields.
- Enhanced the CustomIntegrationManager to support both HTTP and URL scheme integrations.
- Implemented a preview feature for URL schemes in the CustomIntegrationModal.
- Updated UI components to accommodate new integration types and improve user experience.
This update expands the capabilities of custom integrations, enabling seamless interaction with external applications through URL schemes.
Signed-off-by: Innei <tukon479@gmail.com>
- Added text selection capabilities to ShadowDOM, allowing for text selection events to be captured and handled.
- Introduced a new utility for managing text selection within ShadowDOM.
- Updated ArticleLayout to support text selection events and integrate with AI chat block actions.
- Refactored EntryContent components to improve error handling and streamline entry updates.
- Implemented a new AIEntryLayout for better integration of AI chat features within entry content.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated ai package version from 5.0.0-beta.34 to 5.0.0.
- Added react-fast-compare package for improved memoization in chat components.
- Refactored AIDisplayAnalyticsPart and AIDisplaySubscriptionsPart to utilize toolMemo for performance optimization.
- Introduced a new utility function for throttled markdown parsing in AIMarkdownMessage component.
Signed-off-by: Innei <tukon479@gmail.com>
- Refactored ToolInvocationComponent to use React.memo for performance optimization.
- Updated AIDisplayAnalyticsPart, AIDisplayEntriesPart, AIDisplayFeedsPart, and AIDisplaySubscriptionsPart to utilize memoization.
- Replaced GridContainer with standard div elements for layout consistency.
- Removed unused GridContainer and StatisticsOverview components to streamline the codebase.
Signed-off-by: Innei <tukon479@gmail.com>
- Added support for rich text messages in the chat interface using Lexical.
- Updated ChatInput and related components to handle EditorState and rich text formats.
- Introduced AIRichTextMessage component for rendering rich text messages.
- Removed legacy LexicalRichEditor component and adjusted database schema to drop richTextSchema.
- Updated dependencies to include Lexical packages at version 0.33.1.
Signed-off-by: Innei <tukon479@gmail.com>
- Modified regex patterns in extract-release-info.mjs to be case-insensitive for desktop and mobile release tags, improving compatibility with various tag formats.
Signed-off-by: Innei <tukon479@gmail.com>
- Added ky as a dependency to handle HTTP requests for file downloads.
- Implemented downloadFileWithProgress function to provide progress updates during downloads.
- Updated hot-updater to utilize the new download function, enhancing user experience with download status logging.
- Cleaned up and refactored related code for better maintainability.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated nbump version from 2.1.3 to 2.1.5 in pnpm-lock.yaml, package.json for desktop, mobile, and readability packages.
- Updated zx version from 8.6.1 to 8.7.2 in pnpm-lock.yaml.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a web request handler to bypass CORS restrictions for requests to 'us.i.posthog.com'.
- Configured response headers to allow all origins, methods, and credentials for analytics integration.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the version setup action to handle new tag formats for desktop and mobile releases.
- Introduced a new script to extract release information from commit messages, improving the tagging process.
- Modified workflows to create tags in the format of `desktop/v1.2.3` and `mobile/v1.2.3`.
- Enhanced the updater logic to accommodate the new tagging structure and ensure proper release handling.
Signed-off-by: Innei <tukon479@gmail.com>