fixed css

This commit is contained in:
2025-12-20 23:33:47 +03:00
parent 9b7b743319
commit d05344e604
60 changed files with 939 additions and 227 deletions

View File

@@ -66,6 +66,8 @@ As a user, I want a consistent look and feel across all pages with a shared navi
- **FR-005**: System MUST handle client-side navigation between routes without full page refreshes.
- **FR-006**: System MUST integrate with the existing backend API for data retrieval.
- **FR-007**: System MUST support data submission via existing API endpoints using standard asynchronous requests.
- **FR-008**: System MUST support WebSocket proxying for real-time task logs (required by `TaskRunner.svelte`).
- **FR-009**: System MUST support data submission for Settings updates and Plugin actions (e.g., triggering backups).
### Key Entities *(include if feature involves data)*

View File

@@ -23,9 +23,9 @@
**Purpose**: Project initialization and basic structure
- [ ] T001 Initialize SvelteKit in `frontend/` directory (replacing current setup)
- [ ] T002 Install `@sveltejs/adapter-static` in `frontend/package.json`
- [ ] T003 [P] Configure `frontend/svelte.config.js` for static adapter and SPA fallback
- [x] T001 Initialize SvelteKit in `frontend/` directory (replacing current setup)
- [x] T002 Install `@sveltejs/adapter-static` in `frontend/package.json`
- [x] T003 [P] Configure `frontend/svelte.config.js` for static adapter and SPA fallback
---
@@ -35,10 +35,11 @@
**⚠️ CRITICAL**: No user story work can begin until this phase is complete
- [ ] T004 Create `frontend/src/routes/+layout.ts` to disable SSR and prerendering (`ssr = false`, `prerender = false`)
- [ ] T005 Implement catch-all route in `backend/src/app.py` to serve `index.html` for SPA routing
- [ ] T006 [P] Update `backend/src/app.py` to mount `frontend/build` directory using `StaticFiles`
- [ ] T007 [P] Update `frontend/src/lib/api.js` to ensure compatibility with SvelteKit environment
- [x] T004 Create `frontend/src/routes/+layout.ts` to disable SSR and prerendering (`ssr = false`, `prerender = false`)
- [x] T005 Implement catch-all route in `backend/src/app.py` to serve `index.html` for SPA routing
- [x] T006 [P] Update `backend/src/app.py` to mount `frontend/build` directory using `StaticFiles`
- [x] T007 [P] Update `frontend/src/lib/api.js` to ensure compatibility with SvelteKit environment
- [x] T022 [FR-008] Configure WebSocket proxying in `backend/src/app.py` and `frontend/vite.config.js`
**Checkpoint**: Foundation ready - user story implementation can now begin in parallel
@@ -52,9 +53,11 @@
### Implementation for User Story 1
- [ ] T008 [P] [US1] Create Dashboard route in `frontend/src/routes/+page.svelte` (migrating from `App.svelte`/`Dashboard.svelte`)
- [ ] T009 [P] [US1] Create Settings route in `frontend/src/routes/settings/+page.svelte` (migrating from `Settings.svelte`)
- [ ] T010 [US1] Implement navigation links between Dashboard and Settings in `frontend/src/routes/+page.svelte` and `frontend/src/routes/settings/+page.svelte`
- [x] T008 [P] [US1] Create Dashboard route in `frontend/src/routes/+page.svelte` (migrating from `App.svelte`/`Dashboard.svelte`)
- [x] T009 [P] [US1] Create Settings route in `frontend/src/routes/settings/+page.svelte` (migrating from `Settings.svelte`)
- [x] T010 [US1] Implement navigation links between Dashboard and Settings in `frontend/src/routes/+page.svelte` and `frontend/src/routes/settings/+page.svelte`
- [x] T023 [US1] Implement "Save Settings" form submission in `frontend/src/routes/settings/+page.svelte`
- [x] T024 [US1] Implement plugin action triggers (e.g., "Run Backup") in `frontend/src/routes/+page.svelte`
**Checkpoint**: At this point, User Story 1 should be fully functional and testable independently.
@@ -68,10 +71,10 @@
### Implementation for User Story 2
- [ ] T011 [P] [US2] Implement `load` function for Dashboard in `frontend/src/routes/+page.ts` to fetch plugins from `/api/plugins/`
- [ ] T012 [P] [US2] Implement `load` function for Settings in `frontend/src/routes/settings/+page.ts` to fetch config and environments from `/api/settings/`
- [ ] T013 [US2] Update `frontend/src/routes/+page.svelte` to use data from `load` function via `export let data;`
- [ ] T014 [US2] Update `frontend/src/routes/settings/+page.svelte` to use data from `load` function via `export let data;`
- [x] T011 [P] [US2] Implement `load` function for Dashboard in `frontend/src/routes/+page.ts` to fetch plugins from `/api/plugins/`
- [x] T012 [P] [US2] Implement `load` function for Settings in `frontend/src/routes/settings/+page.ts` to fetch config and environments from `/api/settings/`
- [x] T013 [US2] Update `frontend/src/routes/+page.svelte` to use data from `load` function via `export let data;`
- [x] T014 [US2] Update `frontend/src/routes/settings/+page.svelte` to use data from `load` function via `export let data;`
**Checkpoint**: At this point, User Stories 1 AND 2 should both work independently.
@@ -85,9 +88,9 @@
### Implementation for User Story 3
- [ ] T015 [US3] Create shared layout in `frontend/src/routes/+layout.svelte` with `<slot />`
- [ ] T016 [P] [US3] Move navigation bar component to `frontend/src/components/Navbar.svelte` and include in `+layout.svelte`
- [ ] T017 [P] [US3] Create footer component in `frontend/src/components/Footer.svelte` and include in `+layout.svelte`
- [x] T015 [US3] Create shared layout in `frontend/src/routes/+layout.svelte` with `<slot />`
- [x] T016 [P] [US3] Move navigation bar component to `frontend/src/components/Navbar.svelte` and include in `+layout.svelte`
- [x] T017 [P] [US3] Create footer component in `frontend/src/components/Footer.svelte` and include in `+layout.svelte`
**Checkpoint**: All user stories should now be independently functional.
@@ -97,10 +100,12 @@
**Purpose**: Improvements that affect multiple user stories
- [ ] T018 [P] Implement custom 404 error page in `frontend/src/routes/+error.svelte`
- [ ] T019 Add graceful error handling for API failures in `load` functions (T011, T012)
- [ ] T020 [P] Update `frontend/README.md` with new SvelteKit-based development and build instructions
- [ ] T021 Run `specs/004-integrate-svelte-kit/quickstart.md` validation
- [x] T018 [P] Implement custom 404 error page in `frontend/src/routes/+error.svelte`
- [x] T019 Add graceful error handling for API failures in `load` functions (T011, T012)
- [x] T020 [P] Update `frontend/README.md` with new SvelteKit-based development and build instructions
- [x] T021 Run `specs/004-integrate-svelte-kit/quickstart.md` validation
- [x] T025 [FR-008] Update `TaskRunner.svelte` to use SvelteKit-compatible WebSocket connection logic
- [x] T026 [SC-001] Perform performance benchmarking to verify < 200ms transition time
---