QA found critical regression: after removing HTTP polling, a WS disconnect left the UI permanently stuck (uxState='running' forever). Fixes: - WS reconnect: up to 3 attempts with 10s backoff on close (non-1000/1005) - App timeout: 600s (10 min) max — transitions to failed if stuck - Stale log message: removed 'falling back to polling' (no longer exists) - Contract header: updated @BRIEF, restored @UX_STATE/@UX_FEEDBACK/@UX_RECOVERY - cleanup(): unified WS close + timer clear (used by stop, timeout, terminal) - onclose handler: triggers reconnect via _handleWsFailure() - onerror handler: defers to onclose (fires after error) - onopen handler: resets _reconnectCount on successful connect - Terminal states: call _cleanup() to stop reconnect timer + timeout Build ✅ 698 tests ✅
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.