refactor: remove docked state management from InboxSidebar and LayoutDataProvider; enhance DropdownMenu in ComposerAction with separator for improved UI clarity

This commit is contained in:
Anish Sarkar 2026-03-10 15:20:51 +05:30
parent 9d37b66f2f
commit 469e28958b
4 changed files with 7 additions and 74 deletions

View file

@ -40,8 +40,6 @@ interface InboxProps {
totalUnreadCount: number;
comments: TabDataSource;
status: TabDataSource;
isDocked?: boolean;
onDockedChange?: (docked: boolean) => void;
}
interface LayoutShellProps {
@ -308,19 +306,6 @@ export function LayoutShell({
isResizing={isResizing}
/>
{/* Docked Inbox Sidebar - renders as flex sibling between sidebar and content */}
{inbox?.isDocked && (
<InboxSidebar
open={inbox.isOpen}
onOpenChange={inbox.onOpenChange}
comments={inbox.comments}
status={inbox.status}
totalUnreadCount={inbox.totalUnreadCount}
isDocked={inbox.isDocked}
onDockedChange={inbox.onDockedChange}
/>
)}
{/* Docked Documents Sidebar - renders as flex sibling between sidebar and content */}
{documentsPanel?.isDocked && (
<DocumentsSidebar
@ -339,16 +324,14 @@ export function LayoutShell({
</div>
</main>
{/* Floating Inbox Sidebar - positioned absolutely on top of content */}
{inbox && !inbox.isDocked && (
{/* Inbox Sidebar - slide-out panel */}
{inbox && (
<InboxSidebar
open={inbox.isOpen}
onOpenChange={inbox.onOpenChange}
comments={inbox.comments}
status={inbox.status}
totalUnreadCount={inbox.totalUnreadCount}
isDocked={false}
onDockedChange={inbox.onDockedChange}
/>
)}