Make database backups visible in job logs and job card badges
Problem and user impact
Managed database exports are not clearly visible in the job's text log while they run. The collapsed job card also has no database feature badge, unlike Docker, VMs, and assigned pre/post scripts. Users can therefore miss that a job includes database backups or mistake the managed export for a pre-script.
The current database-profile hint only explains selection, mandatory export success, and database-only jobs:
Optional: select saved database profiles. All selected databases must export successfully. A database-only job can have no file sources.
Verified current behavior
api/wizard_runner.pyruns selected database profiles as the dedicateddatabase_backupworkflow step before stopping Docker/VMs and before Borg archive creation.api/database_backup.py:export_profilesrecords structured results and supports progress callbacks, but the managed export path lacks explicit user-facing start/completion text-log messages.ui/js/pages/jobs.js:renderJobCardrenders Docker/VM badges and pre/post-script badges from actual hook assignments, but no database badge.- Database profiles are a built-in workflow step, not an assigned pre-script. The implementation must preserve that distinction.
Requested changes
- Add clear job-log entries when the database-export phase begins and when each profile/database export starts and finishes. Include useful safe context such as profile/database name, outcome, duration, and exported size when available.
- Log failures and cancellation with sanitized, actionable context. Distinguish a completed local export from successful inclusion in the Borg archive. Never log credentials, connection secrets, or dump contents.
- Make ongoing long exports understandable without excessive log volume; reuse existing progress information where appropriate and throttle any periodic messages.
- Add a compact localized database feature badge to the job card (German: Datenbank; English: Database), consistent with the existing Docker/VM/script markers. Base it on current configured database-profile assignments, not historical run results or whether Docker stop control is enabled. A tooltip can explain that the job exports database profiles before the backup.
- Keep the pre-script badge tied to an actual assigned pre-script. A job with both a pre-script and database profiles shows both badges; database profiles alone must not imply a pre-script.
- Extend the database-profile hint in German and English to explain that exports run automatically as a separate step before Docker/VM shutdown and Borg backup, with no additional pre-script required. Retain the existing mandatory-success and database-only-job guidance.
Suggested English hint content:
Optional: select saved database profiles. The selected databases are exported automatically before Docker/VM shutdown and the Borg backup; no additional pre-script is required. All selected databases must export successfully. A database-only job can have no file sources.
Acceptance criteria
- A running database export is recognizable in the job log before it completes, including when one export takes a long time.
- Successful, failed, and cancelled exports produce accurate, sanitized log outcomes without duplicate or excessive messages.
- The database badge appears for configured database jobs, including database-only jobs and jobs without Docker stop control, and disappears when the last database-profile assignment is removed.
- Database-only, pre-script-only, combined, and neither-configured jobs show the correct independent feature badges. Existing Docker/VM/post-script badges and compact card layout remain intact.
- German and English hints/tooltips describe the actual execution order and preserve the existing requirements.
- Focused runtime/logging and bilingual UI tests cover the changed behavior; backup execution order and failure handling remain unchanged.
- Update relevant user documentation and add a user-facing release-note fragment under this issue number during implementation.
Scope
User-visible logging and UI clarification within the existing architecture. No change to database export semantics, hook semantics, or backup ordering. This issue requests follow-up implementation; no code changes are included in issue creation.