Danny Avila
b01c744eb8
🧵 fix: Prevent Unnecessary Re-renders when Loading Chats ( #5189 )
...
* chore: typing
* chore: typing
* fix: enhance message scrolling logic to handle empty messages tree and ref checks
* fix: optimize message selection logic with useCallback for better performance
* chore: typing
* refactor: optimize icon rendering
* refactor: further optimize chat props
* fix: remove unnecessary console log in useQueryParams cleanup
* refactor: add queryClient to reset message data on new conversation initiation
* refactor: update data-testid attributes for consistency and improve code readability
* refactor: integrate queryClient to reset message data on new conversation initiation
2025-01-06 10:32:44 -05:00
Danny Avila
b3821c1404
🎨 style: Enhance UI/UX for Font Size, Mentions, and Prompts ( #3575 )
...
* style: fix prompts icon shrinking in command popover
* fix: scroll into view behavior for mentions
* fix: always apply default font size if not found
* refactor: Update useMessageScrolling threshold and debounceRate
2024-08-08 10:02:30 -04:00
Danny Avila
2bb0842650
🅰️ feat: Dynamic Font Size ( #3568 )
...
* wip: general setup
* added: translations for font-size
* fix: prompts related linter errors and add theming
* wip: font size selector
* refactor: Update FontSizeSelector options display property
* refactor: adjust Intersection Observer threshold and debounce rate
* feat: Update selectedPrompt type in PromptForm to be optional
* feat: dynamic font size
* refactor: Update message font size in navigation bar
* refactor: Update code analyze block styling
* refactor: ProgressText dynamic font size
* refactor: move FontSizeSelector component to Chat from General settings
* fix: HoverButtons styling for better visibility
* refactor: Update HoverButtons styling for better visibility
---------
Co-authored-by: kraken <solodarken@gmail.com>
2024-08-07 14:23:33 -04:00
Danny Avila
c2a79aee1b
⏬ feat: Optimize Scroll Handling with Intersection Observer ( #3564 )
...
* ⏬ refactor(ScrollToBottom): use Intersection Observer for efficient scroll handling
* chore: imports, remove debug console
2024-08-06 16:18:15 -04:00
Danny Avila
83292a47a7
📜 refactor: Enhance Auto Scroll Speed and UseEffect Cleanup ( #1591 )
2024-01-18 21:25:57 -05:00
Danny Avila
4674a54c70
refactor: Consolidate Message Scrolling & other Logic to Custom Hooks 🔄 ( #1257 )
...
* refactor: remove unnecessary drilling/invoking of ScrollToBottom
- feat: useMessageScrolling: consolidates all scrolling logic to hook
- feat: useMessageHelpers: creates message utilities and consolidates logic from UI component
* fix: ensure automatic scrolling is triggered by messagesTree re-render and is throttled
2023-12-01 19:54:09 -05:00