SurfSense/surfsense_web/components/layout/ui/sidebar
suryo12 ddae506631 refactor(web): replace slideout panel window event with jotai atom (fixes #1358)
Replace the `SLIDEOUT_PANEL_OPENED_EVENT` window event with a
`slideoutOpenedTickAtom` jotai atom. The dispatcher in
`SidebarSlideOutPanel` now bumps the tick via `useSetAtom`, and the
listener in `Thread` reads it via `useAtomValue` and reacts on change
behind a ref guard that skips the initial render — preserving the
one-shot-per-open semantics of the previous event.

This removes the implicit cross-module string contract, makes the
signal traceable through React DevTools / jotai inspector, and lets
TypeScript catch typos that the string-based event API silently
swallowed.
2026-05-24 16:41:47 +07:00
..
AllPrivateChatsSidebar.tsx Merge remote-tracking branch 'upstream/dev' into feat/ui-revamp 2026-05-16 19:26:36 +05:30
AllSharedChatsSidebar.tsx Merge remote-tracking branch 'upstream/dev' into feat/ui-revamp 2026-05-16 19:26:36 +05:30
AuthenticatedPageUsageDisplay.tsx feat(sidebar): live pages meter via Zero for authenticated users 2026-05-02 03:32:19 +05:30
ChatListItem.tsx refactor: replace button elements with Button component for improved consistency and styling across multiple UI components 2026-05-14 14:17:44 +05:30
DesktopLocalTabContent.tsx chore: ran linting 2026-05-19 21:02:07 +05:30
DocumentsSidebar.tsx Merge pull request #1417 from VarunShukla07/fix/env-config-editor-chat-dashboard 2026-05-20 12:14:01 -07:00
InboxSidebar.tsx chore: ran linting 2026-05-19 21:02:07 +05:30
index.ts feat(announcements): rename "Announcements" to "What's New" across the application; add AnnouncementsDialog component for displaying updates; update empty state messaging; remove unused AnnouncementsSidebar component. 2026-05-03 18:42:29 +05:30
LocalFilesystemBrowser.tsx refactor: replace button elements with Button component for improved consistency and styling across additional UI components 2026-05-14 14:40:08 +05:30
MobileSidebar.tsx chore: ran linting 2026-05-19 21:02:07 +05:30
NavSection.tsx refactor(sidebar): update sidebar resizing logic to use pointer events; enhance drag cursor handling and improve sidebar width persistence 2026-05-04 01:47:17 +05:30
PageUsageDisplay.tsx feat: no login experience and prem tokens 2026-04-15 17:02:00 -07:00
PremiumTokenUsageDisplay.tsx feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
Sidebar.tsx feat: add collapsed header content support in LayoutShell and Sidebar components 2026-05-19 20:58:19 +05:30
SidebarButton.tsx chore: ran linting 2026-05-19 21:02:07 +05:30
SidebarCollapseButton.tsx feat: implement macOS-specific title bar adjustments and enhance RightPanel with toggle functionality 2026-05-19 18:57:06 +05:30
SidebarHeader.tsx refactor(sidebar): standardize padding, font sizes, and icon dimensions across sidebar components for improved consistency 2026-04-28 20:21:18 +05:30
SidebarSection.tsx chore: ran linting 2026-05-19 21:02:07 +05:30
SidebarSlideOutPanel.tsx refactor(web): replace slideout panel window event with jotai atom (fixes #1358) 2026-05-24 16:41:47 +07:00
SidebarUserProfile.tsx chore: ran linting 2026-05-19 21:02:07 +05:30