Converted 12 files: - api/assistant.ts [C:3] — chat, conversations, history, confirm/cancel - api/reports.ts [C:3] — list/detail fetch with query builder - api/datasetReview.ts [C:3] — optimistic-lock, conflict detection, DTO normalization - api/maintenance.ts [C:3] — start/end events, settings, banners - api/translate.ts [C:2] — barrel re-export - api/translate/jobs.ts [C:2] — CRUD + duplicate - api/translate/runs.ts [C:2] — trigger, status, history, retry, cancel, metrics - api/translate/dictionaries.ts [C:3] — dictionary + entry CRUD, import - api/translate/datasources.ts [C:2] — columns, preview, approve/edit/reject rows - api/translate/corrections.ts [C:2] — inline edit, bulk replace, CSV download - api/translate/schedules.ts [C:2] — cron CRUD, enable/disable, next executions - api/translate/target-schema.ts [C:2] — schema validation with graceful error fallback Each function: - Typed parameters + generic <T = unknown> return - @POST / @SIDE_EFFECT / @RELATION DEPENDS_ON chains - Normalized TranslateApiError pattern (message, code, retryable) - checkTargetTableSchema has @RATIONALE for graceful error handling Build: npm run build passes cleanly
Superset Tools Frontend (SvelteKit)
This is the frontend for the Superset Tools application, built with SvelteKit in SPA mode.
Development
-
Install dependencies:
npm install -
Run development server:
npm run devThe frontend will be available at
http://localhost:5173. It is configured to proxy API requests tohttp://localhost:8000.
Production Build
-
Build the static SPA:
npm run buildThis generates a static SPA in the
build/directory. -
Serve with Backend: The Python backend is configured to serve the files from
frontend/build/. Ensure the backend is running:cd ../backend python src/app.py
Architecture
- Routing: File-based routing in
src/routes/. - Layouts: Shared UI in
src/routes/+layout.svelte. - Data Loading:
loadfunctions in+page.tsfor efficient data fetching. - API Client: Centralized API logic in
src/lib/api.js. - Styling: Tailwind CSS.