Files
noteflow/client/src/api/cached/apps.ts
Travis Vasceannie f850e52fc4 docs: replace lib-focused code review with comprehensive frontend architecture review covering React components, pages, and e2e tests
- 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
2026-01-16 17:01:10 +00:00

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();
},
};