← Về thư mục
frontend/src/features/sessions/load.ts
- ProjectLike · type · L46-L54 — type ProjectLike = { project_id?: string; id?: string; name?: string; conversation_count?: number; last_active_at?: string; updated_at?: string; running_count?: number; };
- ProjectDashView · type · L56-L60 — type ProjectDashView = | { kind: "error" } | { kind: "empty" } | { kind: "no-match" } | { kind: "list"; showMore: boolean; loadingMore: boolean };
- normalizeProjectQuery · function · L62-L66 — function normalizeProjectQuery(raw: string): string
- projectListQuery · function · L68-L79 — function projectListQuery(opts: { q?: string; cursor?: string | null; limit?: number; }): string
- mergeProjectPage · function · L81-L96 — function mergeProjectPage( existing: ProjectLike[], incoming: ProjectLike[], mode: "replace" | "append", ): ProjectLike[]
- canLoadMoreProjects · function · L98-L104 — function canLoadMoreProjects(opts: { loadingMore: boolean; hasMore: boolean; cursor: string | null; }): boolean
- projectDashView · function · L106-L123 — function projectDashView(opts: { error: boolean; count: number; query: string; hasMore: boolean; loadingMore: boolean; }): ProjectDashView
- projectsReplaceInFlight · function · L136-L138 — function projectsReplaceInFlight(): boolean
- projectsLoadedQuery · function · L141-L143 — function projectsLoadedQuery(): string
- loadProjects · function · L155-L212 — async function loadProjects(opts?: { append?: boolean; q?: string }): Promise
- invalidateFolders · function · L214-L216 — function invalidateFolders(): void
- loadFolders · function · L218-L233 — async function loadFolders(): Promise
- loadSessions · function · L235-L271 — async function loadSessions(): Promise
- loadMoreSessions · function · L273-L292 — async function loadMoreSessions(): Promise
- syncCurrentTitle · function · L294-L306 — function syncCurrentTitle(): void
- sessionRow · function · L308-L347 — function sessionRow(f: SessionLike): HTMLElement
- open · function · L336-L338 — open = ()
- renderSessions · function · L349-L425 — function renderSessions(): void
- newFolder · function · L427-L441 — async function newFolder(): Promise
- folderMenu · function · L443-L481 — function folderMenu(anchor: HTMLElement, fold: { folder_id: string; name: string }): void
- assignFolder · function · L483-L491 — async function assignFolder(fid: string, folder_id: string | null): Promise