Resolves a batch of bugs and feature requests across songs, services,
settings and export:
Songs & sections
- Every song now carries permanent, empty, locked PREFIX (COPYRIGHT) and
POSTFIX (BLANK) sections, deduplicated on import; locked sections cannot
be edited or deleted via UI or API.
- Song edit modal: explicit Speichern/Schließen with dirty-tracking,
editable section headline (combobox + custom values), and a fix for the
419 CSRF errors after CCLI "Importieren & Bearbeiten" (token read fresh
per request).
- CCLI bookmarklet "Importieren & Bearbeiten" now opens the edit dialog.
Service schedule & arrangements
- Fixed assigned songs showing no sections (slides loaded for all
arrangements, not just the default).
- Added "Song entfernen / neu zuordnen" to reassign an assigned song.
- Worship-leader arrangement is created/selected lazily when the
arrangement dialog opens (only when not user-overridden); the leader is
resolved from the "Lobpreis" agenda item, and manual create/clone names
are prefixed with the leader name.
Navigation
- "/" redirects to the next upcoming service's edit page (or the list).
- Service titles link to the edit page.
Settings
- Renamed "Makro-Import"/"Label-Import" menu items; fixed drag-and-drop
imports (were downloading the dropped file); added label-import hint;
made the panel scrollable.
- Nametag now uses a single MacroPicker; added song prefix/postfix label
defaults (COPYRIGHT #24B34C / BLANK #000000); new "Export-Dateien" menu
to upload prefix/postfix .pro files added to every export.
Export
- Filenames/playlist names are date-first ("YYYY-MM-DD <Title>").
- Keyvisual slide only for the first content-less item after real content;
all other content-less items render as headlines.
- New "Vorschau herunterladen" for non-finalized services (filename and
import name prefixed "Vorschau" with export timestamp).
- Uploaded prefix/postfix .pro files wrap every export.
Tests updated to the new behavior; full suite green (569 passed).
Enable storage-backed key visuals and background images plus service-specific moderator and preacher name overrides.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Events without an agenda in ChurchTools now gracefully set has_agenda=false
instead of throwing errors during sync. The edit/finalize buttons are
disabled in the frontend for services without an agenda.
Also fixes missing cts_song_id column on service_songs table.
Add sort_order to slides table with migration and model fillable.
Add destroyBulk() for batch soft-delete by type/service_id and
reorder() for drag-and-drop slide ordering. Auto-assign sort_order
on image and zip uploads.
- Migration: settings table with key (unique), value (text), timestamps
- Model: Setting with static get/set helpers using DB upsert
- Controller: SettingsController with index (Inertia) and update (JSON)
- Vue: Settings page with 4 macro fields, auto-save on blur
- Navigation: Einstellungen link in desktop + mobile nav after API-Log
- Shared props: macroSettings added to HandleInertiaRequests
- Integration: ProExportService injects macro into COPYRIGHT group slides
- Gracefully skips macro injection when settings empty/null
- Add cts_song_id column to songs and service_songs for CCLI-free matching fallback
- Filter information slides by uploaded_at <= service date (not shown before upload)
- New arrangements use song's default group ordering instead of cloning
- Auto-set use_translation=true when matched song has translation
- Update syncSongs/syncServiceAgendaSongs to store and use cts_song_id
- Add tests for CTS song ID fallback, upload date filtering, and translation defaults
- Add response_body longText column to api_request_logs table
- Store serialized response (max 500KB) in ChurchToolsService::logApiCall
- Add GET /api-logs/{log}/response-body endpoint for lazy loading
- Replace static 'Array mit X Einträgen' with collapsible JSON viewer
- Response body fetched on-demand when user clicks to expand