fix(audit-wave-9): standardize on Sheet for previews; doctrine in CLAUDE.md
Swap the one outlier (client-interests-tab.tsx) from Vaul Drawer to Sheet side=right so every detail-preview surface uses the same primitive. Document the doctrine: Sheet for side panels on both desktop and mobile; Vaul Drawer reserved for mobile-only bottom-sheet UX (currently just MoreSheet). Closes ui/ux M11. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -59,6 +59,9 @@ function SocketProviderClient({ children }: { children: ReactNode }) {
|
||||
|
||||
useEffect(() => {
|
||||
if (!session?.user || !currentPortId) {
|
||||
// Tear down the socket on session/port loss — canonical
|
||||
// subscription-cleanup pattern.
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
setSocket(null);
|
||||
setIsConnected(false);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user