Commit graph

10 commits

Author SHA1 Message Date
Matt Van Horn
833ea18800 fix: add cancelAnimationFrame cleanup in animated-tabs useEffect
Store the requestAnimationFrame ID and cancel it on unmount
to prevent updateActiveIndicator from running on an unmounted
component.

Fixes #1093
2026-04-08 01:39:14 -07:00
Soham Bhattacharjee
e404b05b11
Merge branch 'dev' into fix/replace-transition-all-with-specific-transitions 2026-04-08 05:38:30 +05:30
SohamBhattacharjee2003
4a5af63715 fix: replace transition-all with specific transition properties for better performance
- Replace transition-all with transition-[width] in Sidebar.tsx for width animations
- Replace transition-all with specific properties in animated-tabs.tsx for hover/active indicators
- Replace transition-all with transition-[background-color,border-color,box-shadow] in navbar.tsx
- Replace transition-all with transition-[width] in audio.tsx volume bar
- Replace transition-all with transition-[background-color,border-color,color] in thread.tsx
- Replace transition-all with transition-[box-shadow] in all tool-ui status cards (28+ files)

This reduces unnecessary browser layout/paint work by only animating the specific
properties that change, avoiding expensive recalculations for properties like
width, height, margin, and padding that don't need animation.

Fixes #1147
2026-04-08 05:36:19 +05:30
Anish Sarkar
0a26a6c5bb chore: ran linting 2026-04-07 05:55:39 +05:30
sukarxn
af5977691b perf: optimize ui components with react hooks memoization
- toggle-group.tsx: Wrap contextValue in useMemo to prevent unnecessary re-renders
- animated-tabs.tsx: Hoist constants and memoize handlers with useCallback/useMemo
- LocaleContext.tsx: Wrap setLocale in useCallback and contextValue in useMemo
- plate-editor.tsx: Memoize SaveShortcutPlugin and contextProviderValue, use useRef for stable references
2026-04-03 23:23:54 +05:30
Anish Sarkar
7d33a69e20 refactor: replace Tabs component with animated-tabs in InboxSidebar for improved UI transitions; adjust loading skeleton key props for consistency 2026-03-21 22:42:17 +05:30
Anish Sarkar
440f5aec72 fix: improve accessibility and styling in sidebar components 2026-03-17 12:42:25 +05:30
Anish Sarkar
a65fda359a chore: ran linting 2026-03-08 20:57:29 +05:30
Anish Sarkar
863ba6865c fix: update routing in settings and onboarding components to use 'tab' query parameter instead of 'section' for improved navigation consistency 2026-03-08 20:26:48 +05:30
Anish Sarkar
77dc6b7c91 feat: implement user settings page with profile and API key management components 2026-03-08 19:36:12 +05:30