pp-planer/tests/Feature
Thorsten Bus e33418f716 feat: song pre/postfix, settings overhaul, export & schedule fixes
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).
2026-06-01 08:56:20 +02:00
..
Migrations feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
AgendaItemDownloadTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
AgendaMatcherServiceTest.php feat(service): add AgendaMatcherService with wildcard namesmatching 2026-03-29 11:37:06 +02:00
ApiLogControllerTest.php feat(logs): add expandable request/response details in API log 2026-03-02 12:14:34 +01:00
ArrangementControllerTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
BookmarkletControllerTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
CcliFixtureSanityTest.php test(ccli): add fixture corpus for CCLI paste parser 2026-05-10 18:24:29 +02:00
CcliImportServiceTest.php feat: song pre/postfix, settings overhaul, export & schedule fixes 2026-06-01 08:56:20 +02:00
CcliPasteControllerTest.php feat(ccli): add CcliPasteController endpoints 2026-05-11 09:23:11 +02:00
CcliPasteParserScaffoldTest.php feat(ccli): add CcliTranslationPairingService 2026-05-10 19:02:10 +02:00
CcliPasteParserTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
CcliTranslationPairingServiceTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
ChurchToolsSyncTest.php feat: probundle export with media, image upscaling, upload dimension warnings 2026-03-30 10:29:37 +02:00
CtsApiSpikeTest.php style: apply Laravel Pint formatting across codebase 2026-03-02 23:02:03 +01:00
DatabaseSchemaTest.php test: update DatabaseSchemaTest and WipeLegacySongDataTest for new schema 2026-05-03 22:21:49 +02:00
DiscoverAgendaTypesTest.php chore(debug): add CTS agenda type discovery command 2026-03-29 11:39:24 +02:00
ExampleTest.php chore: verify CTS API token auth and package compatibility 2026-03-01 18:56:03 +01:00
FileConversionServiceTest.php feat(images): cover-fit conversion mode 2026-05-30 23:56:05 +02:00
FileConversionTest.php feat: probundle export with media, image upscaling, upload dimension warnings 2026-03-30 10:29:37 +02:00
FinalizationTest.php refactor(model): update finalizationStatus for agenda model 2026-03-29 11:46:54 +02:00
FinalizeSnapshotTest.php feat(service): finalize snapshot + sync protection 2026-05-31 02:33:32 +02:00
FullPlaylistExportTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
HomeTest.php feat: song pre/postfix, settings overhaul, export & schedule fixes 2026-06-01 08:56:20 +02:00
InformationBlockTest.php test(php): update existing tests for agenda model 2026-03-29 12:26:05 +02:00
KeyVisualFallbackTest.php feat: song pre/postfix, settings overhaul, export & schedule fixes 2026-06-01 08:56:20 +02:00
LabelImportControllerTest.php feat(controllers): add macro/label import + global assignment + service override controllers and routes 2026-05-03 23:17:04 +02:00
LabelsImportServiceTest.php feat(services): add LabelsImportService, MacrosImportService, MacroResolutionService 2026-05-03 23:03:32 +02:00
MacroAssignmentControllerTest.php feat(controllers): add macro/label import + global assignment + service override controllers and routes 2026-05-03 23:17:04 +02:00
MacroImportControllerTest.php feat(controllers): add macro/label import + global assignment + service override controllers and routes 2026-05-03 23:17:04 +02:00
MacroResolutionServiceTest.php feat(services): add LabelsImportService, MacrosImportService, MacroResolutionService 2026-05-03 23:03:32 +02:00
MacrosImportServiceTest.php feat(services): add LabelsImportService, MacrosImportService, MacroResolutionService 2026-05-03 23:03:32 +02:00
MissingSongMailTest.php style: apply Laravel Pint formatting across codebase 2026-03-02 23:02:03 +01:00
ModerationBlockTest.php test(php): update existing tests for agenda model 2026-03-29 12:26:05 +02:00
NamenseinblenderSettingTest.php feat(settings): namenseinblender macro + default image settings 2026-05-31 00:04:49 +02:00
NameTagResolverTest.php feat: song pre/postfix, settings overhaul, export & schedule fixes 2026-06-01 08:56:20 +02:00
NameTagSlideBuilderTest.php feat(export): nametag slide builder 2026-05-31 00:48:46 +02:00
OAuthTest.php style: apply Laravel Pint formatting across codebase 2026-03-02 23:02:03 +01:00
PlaylistExportTest.php feat: song pre/postfix, settings overhaul, export & schedule fixes 2026-06-01 08:56:20 +02:00
PlaylistSequenceTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
ProBundleExportTest.php feat: probundle export with media, image upscaling, upload dimension warnings 2026-03-30 10:29:37 +02:00
ProFileExportTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
ProFileImportTest.php feat: song pre/postfix, settings overhaul, export & schedule fixes 2026-06-01 08:56:20 +02:00
SermonBlockTest.php test(php): update existing tests for agenda model 2026-03-29 12:26:05 +02:00
ServiceAgendaItemTest.php feat(db): add service_agenda_items table + slides FK migration 2026-03-29 11:34:55 +02:00
ServiceControllerTest.php feat: add has_agenda flag to services and guard agenda sync 2026-03-29 15:22:32 +02:00
ServiceImageColumnsTest.php feat(service): add image columns and overrides 2026-05-31 00:01:24 +02:00
ServiceImageControllerTest.php feat(service): keyvisual/background upload + scope choice 2026-05-31 00:15:08 +02:00
ServiceImageResolverTest.php feat(service): lazy image resolver 2026-05-31 00:08:50 +02:00
ServiceMacroOverrideControllerTest.php feat(controllers): add macro/label import + global assignment + service override controllers and routes 2026-05-03 23:17:04 +02:00
SettingsControllerAgendaKeysTest.php feat(controller): pass agenda items to edit page 2026-03-29 11:48:28 +02:00
SettingsDefaultLanguageTest.php feat(settings): add default translation language setting 2026-05-10 18:38:14 +02:00
SharedPropsTest.php style: apply Laravel Pint formatting across codebase 2026-03-02 23:02:03 +01:00
SlideControllerTest.php feat: probundle export with media, image upscaling, upload dimension warnings 2026-03-30 10:29:37 +02:00
SongCcliMetadataTest.php feat: song pre/postfix, settings overhaul, export & schedule fixes 2026-06-01 08:56:20 +02:00
SongControllerTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
SongEditModalTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
SongIndexTest.php fix(songs): resolve seven song/service editing bugs 2026-05-31 21:39:44 +02:00
SongMatchingTest.php style: apply Laravel Pint formatting across codebase 2026-03-02 23:02:03 +01:00
SongPdfTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
SongsBlockTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
SongSectionControllerTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
SyncControllerTest.php style: apply Laravel Pint formatting across codebase 2026-03-02 23:02:03 +01:00
TranslatePageTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00
TranslationServiceTest.php feat(songs): per-song sections + section editing; fix CCLI import bugs 2026-05-31 14:45:47 +02:00