feat(ui): New sidebar & search UI (#831)

This commit is contained in:
Alex
2026-05-04 09:46:48 +01:00
committed by GitHub
parent c9b2a5734e
commit f3138a88c5
182 changed files with 8318 additions and 4660 deletions
@@ -0,0 +1,34 @@
import type { MenuItem } from 'primeng/api';
export type NavIconType = 'PRIME_NG' | 'CUSTOM_SVG';
export type NavItemType =
| 'library' | 'shelf' | 'magicShelf'
| 'allBooks' | 'series' | 'authors';
export interface NavItem {
id: string;
label: string;
icon?: string;
iconType?: NavIconType;
routerLink?: string[];
type?: NavItemType;
action?: () => void;
}
/** A clickable row inside a sidebar section. */
export interface SidebarLeaf extends NavItem {
bookCount?: number;
unhealthy?: boolean;
contextMenuItems?: MenuItem[];
}
/** A heading that groups leaves in the sidebar. */
export interface SidebarSection {
id: string;
label: string;
menuKey: string;
type?: NavItemType;
expandable?: boolean;
items: SidebarLeaf[];
}