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,37 @@
import { IconSelection } from '../../shared/service/icon-picker.service';
export type PaletteItemKind =
| 'action'
| 'page'
| 'book'
| 'author'
| 'series'
| 'shelf'
| 'magicShelf'
| 'library';
export interface PaletteBookMeta {
thumbnailUrl: string | null;
authors: string[];
seriesName: string | null;
seriesNumber: number | null;
year: string | null;
}
export interface PaletteItem {
id: string;
kind: PaletteItemKind;
title: string;
subtitle?: string;
icon?: IconSelection;
searchText: string;
route?: unknown[];
queryParams?: Record<string, string>;
command?: () => void;
bookMeta?: PaletteBookMeta;
}
export interface PaletteGroup {
kind: PaletteItemKind;
items: PaletteItem[];
}