- Introduced a new context for managing drag state in the media preview component, allowing for improved user interaction during image dragging.
- Updated the image viewer to handle click events more effectively, considering drag state and timing to prevent unintended dismissals.
- Refactored the modal component to ensure the title is correctly rendered, enhancing accessibility.
These changes improve the overall user experience when interacting with media previews, making the interface more intuitive and responsive.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a new hook, useEntryContextMenu, to manage context menu actions for entry items, including copy functionality.
- Integrated the context menu into EntrySubscriptionItem and EntryItemWrapper components, enhancing user interaction with entry items.
- Streamlined context menu handling by consolidating related logic into the new hook, improving code maintainability.
These changes provide a more intuitive context menu experience for users interacting with entries.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new layout architecture for the Follow application, leveraging React Router v7's nested routing capabilities.
- Added multiple layout components including MainDestopLayout, TimelineEntryTwoColumnLayout, AIEnhancedTimelineLayout, and SubviewLayout to support various application modes.
- Enhanced the AI chat functionality with a dedicated AIChatLayout, allowing for dynamic panel styles based on user preferences.
- Implemented responsive design features and error handling mechanisms across layouts to improve user experience.
- Refactored existing components to utilize the new layout structure, ensuring a cohesive and maintainable codebase.
These changes establish a robust foundation for the application's UI, enhancing flexibility and user interaction.
Signed-off-by: Innei <tukon479@gmail.com>
- Added keyboard shortcut support for toggling AI chat in AISmartSidebar.
- Improved styling and transition effects in CollapsibleError for better user experience.
- Updated EntryReadHistory to conditionally render based on user visibility.
- Refactored SourceContentView to simplify rendering logic and improve performance.
- Enhanced Kbd component to support abbreviations for better accessibility.
These changes aim to improve the functionality and usability of the AI chat features and related components.
Signed-off-by: Innei <tukon479@gmail.com>
- Added EntriesProvider and context to manage subscription entries more effectively across components.
- Refactored EntrySubscriptionList and related components to utilize the new context for data fetching and state management.
- Introduced EntrySubscriptionSkeleton for better loading states in the subscription column.
- Removed the outdated useEntrySubscriptionData hook to streamline data handling.
These changes enhance the overall architecture and performance of the subscription column, providing a more cohesive user experience.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced new components for managing subscription entries, including EntrySubscriptionItem and EntrySubscriptionList, to improve the display and interaction within the subscription column.
- Added hooks for handling entry visibility and data fetching, optimizing performance and user experience.
- Implemented a toolbar for toggling the visibility of the entry list, enhancing user control over the interface.
- Refactored sidebar atoms to support new subscription-related states and actions.
These changes aim to provide a more robust and user-friendly experience in managing subscriptions within the application.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the HIDE_ACTIONS_IN_ENTRY_CONTEXT_MENU to explicitly define its type for better type safety.
- Introduced HIDE_ACTIONS_IN_ENTRY_TOOLBAR_ACTIONS to consolidate hidden actions for the toolbar.
- Refactored ActionBar to utilize useSortedEntryActions for improved action filtering and rendering.
These changes aim to streamline the entry actions logic and improve the maintainability of the ActionBar component.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated modal component styles for improved visual consistency, including changes to border radius, padding, and text styles.
- Adjusted shadow properties in the Tailwind CSS configuration for better appearance in both light and dark themes.
- Refined layout and spacing within the modal to enhance user experience.
These changes aim to improve the overall aesthetics and usability of the modal component.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated EntryColumnShortcutHandler to utilize getRouteParams for retrieving the view parameter during navigation.
- Ensured that the view parameter is passed correctly when navigating to the next entry, improving the consistency of navigation behavior.
These changes aim to enhance the clarity and functionality of the entry column navigation logic.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the logic in useNavigateEntry to ensure the final view is determined correctly based on the type of the view parameter.
- Refactored the EntryTitle component to simplify the rendering of recent readers, improving readability and maintainability.
- Adjusted the EntryHeaderBreadcrumb to pass the view parameter during navigation, enhancing functionality.
These changes aim to improve code clarity and ensure consistent behavior across navigation and entry display components.
Signed-off-by: Innei <tukon479@gmail.com>
- Simplified the Enter key handling in the ChatInput component by removing unnecessary conditions.
- Ensured that the handleSend function is called directly when the Enter key is pressed, improving code clarity.
These changes enhance the readability and maintainability of the ChatInput component.
Signed-off-by: Innei <tukon479@gmail.com>
- Removed the 'compact' parameter from several components to streamline the entry actions logic.
- Updated the CommandActionButton usage in ActionBar for better context menu interaction.
- Enhanced the ActionBar component to handle mouse position for context menu display.
- Cleaned up imports and adjusted related components to reflect the changes in props and structure.
These modifications aim to improve code clarity and maintainability while ensuring consistent functionality across entry actions.
Signed-off-by: Innei <tukon479@gmail.com>
- Added getAvatarUrl function to handle user avatar retrieval, including fallback logic for missing images.
- Updated EntryUser and UserProfileModalContent components to utilize the new getAvatarUrl function for improved avatar handling.
These changes enhance the user experience by ensuring consistent avatar display across the application.
- Introduced a new higher-order component, withAppErrorBoundary, to wrap components with error boundary functionality.
- Created EntryNotFoundErrorFallback component to display a user-friendly message when an entry is not found.
- Updated error handling in EntryContent to utilize the new EntryNotFound error type.
- Added EntryContentFallback component to manage entry prefetching and loading states, enhancing user experience during data retrieval.
These changes improve error management and user feedback for entry-related issues.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a new hook, useAttachScrollBeyond, to manage scroll behavior and state across components.
- Updated ChatInterface and WelcomeScreen to utilize the new hook for handling scroll events, improving the user experience by ensuring consistent scroll threshold management.
- Refactored AIChatRoot to maintain clean code structure.
These changes enhance the chat interface by providing a centralized way to manage scroll interactions, improving overall usability.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new hook, useAIShortcut, to manage keyboard shortcuts for creating new chats and closing the AI chat panel.
- Integrated the useAIShortcut hook into the AIChatRoot component to enable these shortcuts when the AI chat is focused.
These changes improve user experience by providing quick access to essential chat functions through keyboard shortcuts.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a "Close Sidebar" option in the ChatMoreDropdown for improved user control over the AI panel.
- Updated AIIndicator to simplify visibility logic for the spline button.
- Refactored AIEntryLayout to better manage AI panel visibility and layout based on the current panel style.
These changes improve the user experience by providing more intuitive controls and ensuring consistent behavior of the AI panel across components.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced AIRootStateContext to manage the scroll threshold state across components.
- Updated AIChatRoot, ChatHeader, ChatInterface, and WelcomeScreen to utilize the new context for scroll behavior.
- Added SCROLLED_BEYOND_THRESHOLD constant to define the scroll limit for triggering state changes.
These changes enhance the chat interface by allowing components to react to scroll position, improving user experience and interaction dynamics.
Signed-off-by: Innei <tukon479@gmail.com>
- Modified the AIEntryLayout component to include a relative positioning class for better layout management.
- This change enhances the overall rendering and interaction experience within the entry column.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated AIEntryLayout to include a wrapper div for better pointer event management and layout structure.
- Removed unnecessary layout animation div in EntryContent to streamline rendering.
- Adjusted padding in SocialMediaLayout for improved spacing.
These changes enhance the user experience by ensuring smoother animations and better layout consistency across components.
Signed-off-by: Innei <tukon479@gmail.com>
- Adjusted highlight styles in the AllItem component to remove text color for better visual clarity.
- Reduced the minimum height of media elements in AllItem for a more compact layout.
- Updated the column width in AllMasonry for improved responsiveness and layout.
- Simplified the class names in MasonryItemRender for cleaner code.
These changes enhance the overall user interface by providing a more consistent and visually appealing layout across components.
- Renamed timeline column hooks to subscription column hooks for clarity and consistency.
- Updated zen mode handling in the settings and sidebar components to streamline functionality.
- Adjusted Tailwind CSS configurations for improved variant handling related to zen mode and left column visibility.
These changes enhance code readability and maintainability while improving the user experience in managing subscription visibility and settings.
Signed-off-by: Innei <tukon479@gmail.com>
- Added z-index to ChatInput for improved layering.
- Refactored ChatInterface to simplify rendering logic and ensure consistent display of messages and loading indicators.
- Introduced a backdrop for the ChatInput when not centered, enhancing visual separation.
These changes improve the user interface and interaction experience within the AI chat components.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced custom ordering for timeline views to improve swipe direction calculations.
- Updated state management to reflect the active view index accurately.
- Replaced animation transition properties with predefined spring presets for smoother animations.
These changes enhance the user experience by providing more intuitive swipe interactions and improved animation performance.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated `useEntryActions` to include `routeEntryId` for better context handling.
- Added `isCurrentVisitEntry` logic to conditionally hide the export action in the entry menu.
- Modified `MoreActions` component to conditionally render the customize toolbar action based on the new prop.
- Adjusted animation properties in `EntryItemWrapper` for smoother transitions.
- Added `data-hide-in-print` attribute to `AIChatFixedPanel` for improved print handling.
These changes improve the functionality and user experience of entry actions and related UI components.
Signed-off-by: Innei <tukon479@gmail.com>
- Added AIEntryHeader component to display entry details dynamically.
- Implemented entry header animation using AnimatePresence for smoother transitions.
- Updated entry content rendering logic to improve visual consistency and user experience.
These changes enhance the layout and interaction of the AI entry components.
Signed-off-by: Innei <tukon479@gmail.com>
* init
Signed-off-by: Innei <tukon479@gmail.com>
* feat(ai): add showSplineButton setting and update UI components
- Introduced a new setting `showSplineButton` to control the visibility of the AI assistant indicator.
- Updated the `createDefaultSettings` function to include the new setting with a default value of true.
- Modified the `AISplineButton` component to conditionally render based on the `showSplineButton` setting.
- Adjusted the modal content width in the `useDialog` hook for better layout.
- Enhanced the settings tab to define the new `showSplineButton` item with appropriate labels and descriptions.
- Updated localization files to include translations for the new setting.
These changes improve user control over the AI assistant's visibility and enhance the overall UI experience.
Signed-off-by: Innei <tukon479@gmail.com>
* feat(ai): implement AISmartSidebar with CSS animations
- Added AISmartSidebar component to replace motion/react animations with CSS animations for improved performance and visual effects.
- Introduced corresponding AISmartSidebar.css file to define animations and styles for the sidebar elements.
- Updated AISplineButton to conditionally render AISmartSidebar based on visibility settings.
- Refactored AIEntryLayout to use the new AIIndicator component, enhancing the integration of the sidebar.
These changes enhance the user experience by providing smoother animations and better control over the AI assistant's visibility.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor(ui): update icon usage and improve layout spacing
- Replaced icons in the EntryMoreActions and MoreActions components for consistency.
- Adjusted padding and margin in various components, including AIEntryHeader and SubscriptionColumn, to enhance layout and visual appeal.
- Added a new label 'View' to the ai-block-constants for better clarity.
These changes improve the overall user interface and maintain consistency across components.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor(ui): enhance ChatHeader and EntryListHeader layouts
- Updated the ChatHeaderLayout to conditionally render styles based on the floating state, improving visual consistency.
- Adjusted the EntryListHeader component to set a fixed height, ensuring uniformity in layout across different views.
These changes improve the overall user interface and maintain a consistent layout experience.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor(ui): update ChatHeader and ChatMoreDropdown components
- Replaced GlassButton with ActionButton in ChatHeader for improved consistency and styling.
- Simplified the rendering of TaskReportDropdown and ChatMoreDropdown components.
- Adjusted layout styles in WelcomeScreen for better alignment.
- Enhanced ChatInterface to improve input positioning when no messages are present.
These changes enhance the user interface and maintain a consistent look across components.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor(ai): adjust AI chat layout width for improved styling
- Updated the AI chat component to set a custom layout width of 65rem, enhancing the overall appearance and usability of the chat interface.
This change aims to provide a more consistent and visually appealing layout for the AI chat experience.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor(ui): adjust spacing in EntryListHeader component
- Increased the gap between items in the EntryListHeader from 1 to 2 for improved layout and visual consistency.
This change enhances the overall user interface by providing better spacing in the header layout.
Signed-off-by: Innei <tukon479@gmail.com>
---------
Signed-off-by: Innei <tukon479@gmail.com>