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).
- CCLI import: group lyrics into 2-line slides (no blank line per line)
- Add-section: searchable label combobox with create-new option
- Service edit: show current global key-visual/background default live
- Assign dialog: prefill+open search, SongSelect link by CCLI nr/name
- "Auf SongSelect suchen" now also opens the CCLI import dialog
- SongDB: mark empty songs "Ohne Inhalt", default-on content filter
- Translation paste: strip section-mark lines so line mapping holds
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>
- MacroImportController + LabelImportController: POST endpoints accepting uploaded .bin files,
delegating to MacrosImportService / LabelsImportService and returning import stats / warnings as JSON.
Generic German 422 error if parser rejects the file.
- MacroAssignmentController: index renders Settings Inertia page with assignments / macros / labels /
collections / last-import metadata. store/update/destroy/reorder for global MacroAssignment rows.
- ServiceMacroOverrideController: store snapshots all matching global MacroAssignments into
service-specific rows when a service opts to override; destroy removes both override and
service-specific assignments. storeAssignment / updateAssignment / destroyAssignment manage the
per-service rows directly.
- routes/web.php: 12 new named routes inside the auth middleware group; reorder route placed before
{macroAssignment} parameter route to avoid capture conflict.
- Tests: 19 new Pest tests across 4 feature files (54 assertions). Full suite 376 passed.
Replace all SongGroup/SongArrangementGroup model usages with Label/SongArrangementLabel
after the schema migration to global labels. Updates 12 app files and 11 test files:
- SongService: createDefaultGroups now finds-or-creates global Labels by name
- ArrangementController: validates label_id (labels are global, no song-ownership)
- ProImportService: imports groups as Labels (firstOrCreate by name); does not
overwrite existing label colors per spec
- ProExportService/SongPdfController/TranslationService/etc: traverse via
arrangements -> arrangementLabels -> label -> songSlides chain
- All test factories and assertions adapted to label-based schema
- Update propresenter ref path from ../propresenter-work/ to ../propresenter/
- Fix ProFileImportTest assertion for CCLI-based upsert behavior
- Replace Mockery alias mocks with testable subclass pattern in
PlaylistExportTest, eliminating @runInSeparateProcess requirement
- Use DI (app()) for PlaylistExportService in controller for testability
- All 302 tests pass (was 285 pass + 17 fail)
- Fix probundle exports missing images (double slides/ prefix in storage path)
- Replace manual ZipArchive with PresentationBundle + ProBundleWriter from parser plugin
- Add per-agenda-item download route and buttons for songs and slide items
- Remove text layer from image-only slides in .pro generation
- Fix image conversion: upscale small images, black bars on 2 sides max (contain)
- Add upload warnings for non-16:9 and sub-1920x1080 images (German, non-blocking)
- Update SlideFactory and all tests to use slides/ prefix in stored_filename
- Add 11 new tests (agenda download, image conversion, upload warnings)
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.