- Replaced codefixes.md with broader frontend review covering React/TypeScript patterns, Tauri integration, component architecture, and test coverage - Added pages.md documenting critical bugs (React key collision in Analytics pie chart, fire-and-forget error swallowing), API architecture patterns, and code duplication opportunities - Identified must-fix issues: Speaker
19 lines
614 B
TypeScript
19 lines
614 B
TypeScript
import type { NoteFlowAPI } from '../interface';
|
|
import type { ListInstalledAppsRequest, ListInstalledAppsResponse } from '../types';
|
|
import { rejectReadOnly } from './readonly';
|
|
|
|
export const cachedAppsAPI: Pick<NoteFlowAPI, 'listInstalledApps' | 'invalidateAppCache'> = {
|
|
async listInstalledApps(_options?: ListInstalledAppsRequest): Promise<ListInstalledAppsResponse> {
|
|
return {
|
|
apps: [],
|
|
total: 0,
|
|
page: _options?.page ?? 0,
|
|
page_size: _options?.pageSize ?? 50,
|
|
has_more: false,
|
|
};
|
|
},
|
|
async invalidateAppCache(): Promise<void> {
|
|
return rejectReadOnly();
|
|
},
|
|
};
|