feat(webui): add compact batch archive actions
This commit is contained in:
1 parent
23c4acc216
commit
d1451e30e9
19 files changed
+442
-82
No files matched your search
@@ -20,6 +20,7 @@ import { useTranslation } from "react-i18next";
|
||||
|
||||
import {
|
||||
ChatList,
|
||||
type SidebarDeleteDecision,
|
||||
type SidebarDeleteItem,
|
||||
type SidebarPaneGroup,
|
||||
} from "@/components/ChatList";
|
||||
@@ -49,12 +50,13 @@ interface SidebarProps {
|
||||
onNewChat: () => void;
|
||||
onSelect: (key: string) => void;
|
||||
onCloseTemporaryChat?: (key: string) => void;
|
||||
onRequestDelete: (key: string, label: string) => void;
|
||||
onRequestDeleteMany?: (items: SidebarDeleteItem[]) => void;
|
||||
onRequestDelete: (key: string, label: string, onDecision?: SidebarDeleteDecision) => void;
|
||||
onRequestDeleteMany?: (items: SidebarDeleteItem[], onDecision?: SidebarDeleteDecision) => void;
|
||||
onTogglePin: (key: string) => void;
|
||||
onRequestRename: (key: string, title: string) => Promise<void>;
|
||||
onRequestRenameTab?: (key: string, label: string) => void;
|
||||
onToggleArchive: (key: string) => void;
|
||||
onArchiveMany?: (keys: string[], archive: boolean) => void;
|
||||
paneGroups?: Record<string, SidebarPaneGroup>;
|
||||
onSelectPane?: (tabKey: string, paneKey: string) => void;
|
||||
onCreateTab?: (paneKey: string) => void;
|
||||
@@ -289,6 +291,7 @@ export function Sidebar(props: SidebarProps) {
|
||||
onRequestRename={props.onRequestRename}
|
||||
onRequestRenameTab={props.onRequestRenameTab}
|
||||
onToggleArchive={props.onToggleArchive}
|
||||
onArchiveMany={props.onArchiveMany}
|
||||
paneGroups={props.paneGroups}
|
||||
onSelectPane={props.onSelectPane}
|
||||
onCreateTab={props.onCreateTab}
|
||||
|
||||
Reference in new issue
Block a user