feat(inbox): 侧边栏状态筛选与日期分组 — Segmented 图标筛选 + Skeleton 加载态 + 五级日期分组可折叠 + 卡片显示关联日期

This commit is contained in:
2026-06-03 17:22:14 +08:00
parent abe30ead6a
commit 1a7fd58553
5 changed files with 223 additions and 31 deletions

View File

@@ -12,7 +12,7 @@ interface MaterialSidebarProps {
}
export function MaterialSidebar({ onAddClick, onDelete, onSelect, projectId, selectedId }: MaterialSidebarProps) {
const { data, error, isLoading, refetch } = useMaterialList(projectId);
const { data, error, isLoading, refetch } = useMaterialList(projectId, { pageSize: 200 });
const deleteMutation = useDeleteMaterial(projectId);
const handleDelete = (id: string) => {