- Added constants for navigation hints, including icons and text, to improve maintainability and clarity.
- Refactored the EntryNavigationHandler and useEntryNavigationHints hook to utilize these constants, enhancing the user experience with clearer guidance.
- Updated styling for hint buttons to improve visual consistency across components.
These changes collectively streamline the navigation hint implementation, providing a more intuitive interaction model for users.
Signed-off-by: Innei <tukon479@gmail.com>
- Removed the scroll hint indicator from the AIEntryLayout component to streamline the layout.
- Introduced an EntryNavigationHandler to manage navigation hints and close gestures in the EntryContent component, improving user guidance.
- Updated the EntryScrollingAndNavigationHandler to remove unnecessary state management related to navigation hints, simplifying the logic.
These changes collectively enhance the user experience by providing clearer navigation cues and a more efficient entry content interaction model.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a custom hook `useWheelGestureClose` to handle closing the entry content via wheel gestures when at the top of the scrollable area.
- Refactored `AIEntryLayout` and `EntryContent` components to integrate the new wheel gesture functionality, enhancing user experience during entry navigation.
- Updated `EntryColumnShortcutHandler` to streamline command bindings and improve interaction with the entry content.
- Enhanced entry navigation hints to provide clearer guidance for users on how to exit the entry view.
These changes collectively improve the responsiveness and intuitiveness of the entry content interactions, offering a more seamless user experience.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced AISplineButton component to provide a floating button for opening the AI chat panel.
- Integrated AISplineButton into MainDestopLayout, ensuring it is displayed when the AI chat panel is not visible and the layout is in floating mode.
- Updated welcome description in localization to reflect a more focused assistance context.
These changes enhance the user interface by providing quick access to AI chat functionality, improving overall user experience.
- Added swipe and scroll gesture detection to close the entry content when scrolled up significantly.
- Introduced a scroll hint button to guide users on how to exit the entry view.
- Refactored AIEntryLayout to improve animation handling and user experience during entry transitions.
- Updated EntryScrollingAndNavigationHandler to streamline scroll detection logic and remove unnecessary state management.
These changes collectively enhance the interaction model for entry content, providing a more intuitive and responsive user experience.
- Removed unnecessary viewportProps from ScrollArea in EntryContent component.
- Introduced constants for scroll detection thresholds and UI panel positioning to improve readability and maintainability.
- Enhanced the EntryScrollingAndNavigationHandler to manage scroll-based navigation more effectively, including touch and wheel gesture support.
- Added logic to show/hide navigation panels based on scroll position and user interactions, improving the overall user experience.
These changes collectively streamline the scrolling and navigation functionality, providing a more intuitive interaction within the entry content components.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced `LCPEndDetector` to monitor and optimize Largest Contentful Paint (LCP) by deferring animations until the page is fully loaded.
- Updated motion components to accept `lcpOptimization` prop, disabling initial animations until LCP is confirmed to improve performance.
- Integrated `LCPEndDetector` into the root providers for effective monitoring across the application.
These changes collectively enhance the loading performance and user experience by ensuring smoother transitions and animations.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new `checkFeatureEnabled` function to centralize feature checking logic, reducing code duplication.
- Added `getFeature` function for non-hook feature checks.
- Updated `useFeature` hook to utilize the new utility for better clarity and maintainability.
- Enhanced type definitions for debug feature values and feature keys.
These changes improve the structure and readability of feature management within the application.
Signed-off-by: Innei <tukon479@gmail.com>
- Refactored featureConfigMap to utilize TypeScript's `satisfies` operator for improved type safety.
- Added a focusable reference in EntryContent to manage focus behavior during animations.
- Integrated hotkey handling in EntryScrollingAndNavigationHandler to improve navigation experience based on AI feature status and Zen mode.
These changes collectively enhance the code structure and user interaction within the entry content components, providing a more responsive and intuitive experience.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed the default variant of GlassButton from "glass" to "flat" for a more streamlined appearance.
- Integrated GlassButton into SubviewLayout for the back button and action area, enhancing the visual consistency and user interaction.
- Improved layout structure in EntryTitle for better spacing and readability.
These changes collectively enhance the UI components, providing a more cohesive and user-friendly experience across the application.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated AIEntryLayout to include smoother animations for entry transitions.
- Added feedId and entryId to entry title metadata for better context handling.
- Refactored EntryTimeline component to accept additional className prop for styling flexibility.
- Improved EntryContent component structure by replacing motion div with a standard div for better performance.
- Enhanced entry read history and layout components for improved user experience.
These changes collectively enhance the visual appeal and functionality of the entry content layout, providing a more seamless user experience.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the debug feature atom to support feature overrides and added a new hook for setting debug feature values.
- Integrated debug feature toggles into the EnvironmentIndicator component, allowing users to enable or disable features dynamically.
- Refactored the useFeature hook to accommodate the new debug feature logic.
- Improved the EntryLayoutContent and AIEntryLayout components to handle feature visibility based on debug settings.
- Introduced a new AIEntryHeader component for better separation of concerns in entry header rendering.
These changes collectively enhance the configurability and usability of the debug features, providing users with better control over feature management in the application.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new PoweredByFooter component to display copyright information and social media links.
- Updated layout and styling for better responsiveness and visual appeal.
- Removed the old PoweredByFooter implementation from the internal components.
These changes collectively enhance the user experience by providing a consistent branding element across the application.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated header component styles for better responsiveness and visual appeal.
- Changed border radius and padding for the header elements to enhance the overall design.
- Adjusted margin and width properties to ensure consistent layout across different screen sizes.
These changes collectively enhance the user experience by providing a more polished and adaptable header design.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a new PanelStyleSegment component to manage AI chat panel styles, allowing users to select between fixed and floating layouts.
- Updated localization files to include new strings for panel style settings.
- Refactored existing components to integrate the new panel style options, improving user configurability and experience.
These changes collectively enhance the flexibility and usability of the AI chat interface, providing users with better control over their layout preferences.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new interface for WebAISettings, extending AISettings to include panel style options.
- Updated default settings creation to include a fixed panel style.
- Refactored AI chat panel visibility management, allowing dynamic visibility based on panel style.
- Implemented a new hook for managing AI panel visibility and integrated it into the floating panel component.
- Removed deprecated context bar search service and replaced it with a unified feed entry search service for improved search functionality.
These changes collectively enhance the configurability and usability of the AI chat interface, providing users with better control over their settings and layout preferences.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new enum for AI chat panel styles, allowing users to toggle between fixed and floating layouts.
- Added state management for the floating panel dimensions and position, ensuring it remains anchored during window resizing.
- Updated various components to utilize the new panel style settings, enhancing the user experience with improved layout flexibility.
- Implemented UI elements for toggling between fixed and floating modes in the chat interface.
These changes collectively enhance the functionality and usability of the AI chat interface, providing users with more control over their layout preferences.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced memoization for the ShikiHighLighter component to enhance performance during code rendering.
- Updated layout properties in AIDisplayFlowPart and AIMessageParts for improved responsiveness and visual consistency.
- Enhanced the ChatInterface component with flex properties for better layout management.
- Adjusted message rendering logic in AIMarkdownStreamingMessage to improve first paint performance.
These changes collectively enhance the efficiency and user experience of the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the AI chat settings to include an auto-scroll feature when streaming messages.
- Introduced a new settings initialization function to set default values for various AI settings.
- Enhanced the ChatInterface component to utilize the new auto-scroll setting for improved user experience.
- Added localization support for the new auto-scroll setting in the English language file.
These changes collectively enhance the functionality and usability of the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced custom spring transition settings with predefined Spring presets for smoother animations in AIEntryLayout.
- Removed unused animation logic and imports in EntryContent to simplify the component structure.
- Enhanced ArticleLayout's responsiveness by adjusting padding for better layout on smaller screens.
These changes collectively improve code maintainability and user interface responsiveness.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the ChatInterface component to improve scrolling behavior and UI elements.
- Replaced the scroll-to-bottom button with a more visually appealing design and added functionality to reset scroll state.
- Enhanced the AIChatWaitingIndicator with animations for better user feedback during processing.
- Refactored the useAutoScroll hook to improve performance and user interaction handling, ensuring smoother scrolling experience.
- Filtered out empty message parts before persisting to the database, improving data integrity.
These changes collectively enhance the user experience in the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Added FileAttachmentNode to handle file attachments in the editor.
- Introduced FileUploadPlugin to manage file uploads via drag-and-drop and paste.
- Created hooks for file upload integration and synchronization with chat blocks.
- Implemented UI components for file drop zone and file attachment display.
- Enhanced error handling and progress tracking during file uploads.
- Updated existing components to support new file attachment features.
Signed-off-by: Innei <tukon479@gmail.com>
* init
Signed-off-by: Innei <tukon479@gmail.com>
* feat(ai-chat): enhance file handling with category-based icon retrieval
- Introduced `getFileCategoryFromMimeType` function to categorize file types based on MIME type, improving the clarity of file handling in the AI chat interface.
- Updated `FileAttachmentBlock` and `AIChatContextBar` components to utilize the new categorization function for determining file icons, streamlining the code and enhancing maintainability.
- Removed redundant MIME type checks, simplifying the logic for icon assignment.
These changes improve the user experience by ensuring accurate file representation and reduce code complexity.
Signed-off-by: Innei <tukon479@gmail.com>
* feat: preview image
* Update avatar upload to use followApi and bump deps
* feat: Refactor AI chat context blocks and file upload handling
- Introduced new components for rendering AI chat context blocks, including AIDataBlockItem and AIDataBlockPart.
- Enhanced file attachment handling by updating the structure of AIChatContextBlock to separate file attachments from other block types.
- Implemented a new file upload hook (useFileUpload) to manage file uploads with progress tracking and toast notifications.
- Added UploadProgress and CircularProgress components for visual feedback during file uploads.
- Improved file processing logic to simulate realistic upload progress and handle errors more effectively.
- Updated existing components to utilize the new block structure and file upload logic.
- Created utility functions for managing block styles, icons, and labels for better code organization.
Signed-off-by: Innei <tukon479@gmail.com>
* feat: Enhance chat message rendering with Suspense and add ThinkingIndicator component
Signed-off-by: Innei <tukon479@gmail.com>
* fix: Remove error check for message metadata in AIChatMessage component
Signed-off-by: Innei <tukon479@gmail.com>
---------
Signed-off-by: Innei <tukon479@gmail.com>
- Swapped the order of title rendering to prioritize the provided title over the preferred title from the feed.
- This change improves the clarity of the displayed title in the feed component.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the positioning of the personal prompt in the WelcomeScreen to use absolute positioning for better visibility.
- Corrected the translate-y calculation in ChatInterface to ensure proper alignment when no messages are present.
These changes enhance the layout and user experience of the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Adjusted the SCROLL_BOTTOM_THRESHOLD to dynamically use half of the window's inner height, improving the scrolling behavior in the chat interface.
- This change enhances the user experience by ensuring better visibility of new messages.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced the AIChatTypingIndicator component with AIChatWaitingIndicator for improved clarity in the chat interface.
- Updated the rendering logic in ChatInterface to reflect this change, enhancing the user experience during message submission.
These modifications streamline the chat interface and clarify the status of message processing.
Signed-off-by: Innei <tukon479@gmail.com>
- Integrated AnimatePresence for smoother transitions in the ChatInterface layout.
- Refactored scroll area handling to use state instead of ref, improving responsiveness and state management.
- Updated WelcomeScreen button animations for better user experience during interactions.
These changes enhance the visual appeal and functionality of the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>