FEAT (backups): Add multiple backup schedules UI #106

Closed
opened 2026-04-05 16:15:46 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @commKnightWeb on 2/22/2026

Summary

  • Fix saveBackupConfig to use POST /backup-configs (create) and PUT /backup-configs/:id (update) instead of the removed /save endpoint — this was causing a SyntaxError: Unexpected token '<' when creating a database
  • Fix .dockerignore to exclude backend/ui/build, preventing a stale pre-built frontend from overwriting the Docker-built frontend assets
  • Add id and name fields to the BackupConfig model (backend requires name for validation)
  • Add BackupSchedulesComponent — shows all backup schedules for a database as a list with add, edit, and delete functionality
  • Add initialConfig prop to EditBackupConfigComponent so callers can pass a specific config to edit (instead of always fetching the first one from the API)
  • Add Schedule name input field to the backup config edit form
  • Add getBackupConfigsByDbID (returns full array) and deleteBackupConfig to backupConfigApi
  • Fix null safety on currentStorageId loading in DatabaseConfigComponent

Test plan

  • Create a new database — no SyntaxError on save
  • Open an existing database's settings — "Backup schedules" section shows the list of schedules
  • Add a new schedule via "+ Add schedule" button — fill in name, interval, storage, save
  • Edit an existing schedule — changes persist after save
  • Delete a schedule — confirmation dialog appears, schedule is removed
  • Docker build (docker build --no-cache) produces a working image with the new UI

🤖 Generated with Claude Code

*Originally created by @commKnightWeb on 2/22/2026* ## Summary - Fix `saveBackupConfig` to use `POST /backup-configs` (create) and `PUT /backup-configs/:id` (update) instead of the removed `/save` endpoint — this was causing a `SyntaxError: Unexpected token '<'` when creating a database - Fix `.dockerignore` to exclude `backend/ui/build`, preventing a stale pre-built frontend from overwriting the Docker-built frontend assets - Add `id` and `name` fields to the `BackupConfig` model (backend requires `name` for validation) - Add **`BackupSchedulesComponent`** — shows all backup schedules for a database as a list with add, edit, and delete functionality - Add `initialConfig` prop to `EditBackupConfigComponent` so callers can pass a specific config to edit (instead of always fetching the first one from the API) - Add **Schedule name** input field to the backup config edit form - Add `getBackupConfigsByDbID` (returns full array) and `deleteBackupConfig` to `backupConfigApi` - Fix null safety on `currentStorageId` loading in `DatabaseConfigComponent` ## Test plan - [ ] Create a new database — no `SyntaxError` on save - [ ] Open an existing database's settings — "Backup schedules" section shows the list of schedules - [ ] Add a new schedule via "+ Add schedule" button — fill in name, interval, storage, save - [ ] Edit an existing schedule — changes persist after save - [ ] Delete a schedule — confirmation dialog appears, schedule is removed - [ ] Docker build (`docker build --no-cache`) produces a working image with the new UI 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#106