Commit graph

88 commits

Author SHA1 Message Date
Thorsten Bus 45955b70a2 feat(ui): add slide upload on agenda items 2026-03-29 12:12:58 +02:00
Thorsten Bus f78d20fc59 feat(ui): restructure Edit.vue with agenda view 2026-03-29 12:11:58 +02:00
Thorsten Bus d2eef5abe2 feat(ui): add agenda settings to Settings page 2026-03-29 12:10:46 +02:00
Thorsten Bus e9901a6f9b feat(ui): add AgendaItemRow and SongAgendaItem components 2026-03-29 12:07:15 +02:00
Thorsten Bus 2d90621cca feat(ui): redesign ArrangementDialog with lyric preview 2026-03-29 12:07:02 +02:00
Thorsten Bus de431d29cc feat(export): agenda-ordered playlist export 2026-03-29 11:59:38 +02:00
Thorsten Bus 88661c6bef feat(sync): sync all CTS agenda items (not just songs) 2026-03-29 11:54:50 +02:00
Thorsten Bus 0b671956d6 feat(controller): pass agenda items to edit page 2026-03-29 11:48:28 +02:00
Thorsten Bus 2d70026a20 refactor(model): update finalizationStatus for agenda model 2026-03-29 11:46:54 +02:00
Thorsten Bus 7a71b8b2de chore(debug): add CTS agenda type discovery command 2026-03-29 11:39:24 +02:00
Thorsten Bus 1f367b6f37 feat(settings): add agenda configuration keys 2026-03-29 11:37:33 +02:00
Thorsten Bus 03224ffa06 feat(service): add AgendaMatcherService with wildcard namesmatching 2026-03-29 11:37:06 +02:00
Thorsten Bus 31d7634dbf feat(db): add service_agenda_items table + slides FK migration 2026-03-29 11:34:55 +02:00
Thorsten Bus 5cf0c43241 add start/stop dev scripts 2026-03-29 10:49:07 +02:00
Thorsten Bus 894e26f37d fix(test): use deterministic uploaded_at in ServiceControllerTest
Faker's dateTimeBetween ignores Carbon::setTestNow, producing dates
after the frozen test time. This caused the info_slides_count
assertion to fail non-deterministically when the system date diverged
from the test-frozen date.
2026-03-06 10:28:27 +01:00
Thorsten Bus 2a23f0d210 docs: sync AGENTS.md with orchestration repo updates 2026-03-06 10:25:35 +01:00
Thorsten Bus 044b94b080 refactor(export): use in-memory content for zip bundle and playlist entries
Replace file-path-based zip entries with in-memory content via
file_get_contents. Rename .pro entry to 'data' (raw protobuf),
add addStoredEntry() helper with CM_STORE compression, and remove
temp directory management.
2026-03-06 10:25:21 +01:00
Thorsten Bus fa3162b2b7 docs: add build commands and architecture overview to AGENTS.md
Add build/test/lint commands, architecture overview, PHP/Vue/test
code style conventions, and key project constraints. Include dompdf
config, vite HMR note, and sisyphus evidence files.
2026-03-02 23:03:14 +01:00
Thorsten Bus 149389a382 fix(test): add deterministic order values in SongPdfTest
Specify explicit order values for SongGroup factories to avoid unique
constraint violations on the composite (song_id, order) key when
faker generates duplicate random values.
2026-03-02 23:02:58 +01:00
Thorsten Bus af0c72ebcc feat(ui): improve arrangement configurator, song preview, and downloads
Simplify ArrangementConfigurator: replace color pickers with compact
pills, add click-to-add from pool, use watcher-based auto-select for
new/cloned arrangements, remove group_colors from save payload.

Enhance SongsBlock preview: color-coded group headers with tinted
backgrounds, PDF download button inside preview modal, .pro download
link per matched song, show DB ccli_id with fallback to CTS ccli_id.

Fix Modal z-index for nested dialogs. Fix SlideUploader duplicate
upload on watch by adding deep option and upload guard. Expand API
log detail sections by default and increase JSON tree depth. Convert
song download button from emit to direct .pro download link.
2026-03-02 23:02:51 +01:00
Thorsten Bus b40c371edc feat(export): embed slide blocks in playlist and add roundtrip test
Add information, moderation, and sermon slide presentations as .pro
files in the generated .proplaylist bundle. Each block queries slides
by type/service, converts stored images, and generates a ProPresenter
presentation via ProFileGenerator.

Add test_download_pro_roundtrip_preserves_content that imports a .pro
file, exports it, re-reads with the parser, and asserts song name,
groups, slides, translations, arrangements, and CCLI metadata survive
the round-trip.
2026-03-02 23:02:30 +01:00
Thorsten Bus bef910b126 feat(slides): add sort_order column, bulk delete, and reorder endpoints
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.
2026-03-02 23:02:19 +01:00
Thorsten Bus 04d271f96a style: apply Laravel Pint formatting across codebase
Auto-formatted by Laravel Pint (default Laravel preset): string
concatenation spacing, anonymous class brace placement, constructor
body shorthand, import ordering, and assertion indentation.
2026-03-02 23:02:03 +01:00
Thorsten Bus 5b35afb31d feat(export): add probundle export for service slide blocks
- Create ProBundleExportService with generateBundle() method
- Generate flat ZIP with .pro file + image files at root level
- Add downloadBundle() method to ServiceController
- Add services.download-bundle route
- Add .probundle download buttons to Information, Moderation, Sermon blocks
- Add 3 tests verifying ZIP structure and validation
- All tests pass (206/206, 1129 assertions)
2026-03-02 22:18:33 +01:00
Thorsten Bus fefa761748 feat(settings): add macro configuration infrastructure
- 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
2026-03-02 22:00:19 +01:00
Thorsten Bus 44d0daf246 feat(ui): add finalize/reopen buttons to service edit page 2026-03-02 21:28:32 +01:00
Thorsten Bus 6543133713 feat(songs): auto-select default arrangement on song match 2026-03-02 21:22:30 +01:00
Thorsten Bus 655991c471 fix(ui): add drag highlight to slide grid 2026-03-02 21:22:19 +01:00
Thorsten Bus 6e48779259 feat(songs): add preview, searchable combo select, import toast, auto-select arrangement
- Hide translate button for already-translated songs in SongDB
- Auto-select newly created/cloned arrangement via onSuccess + nextTick
- Add preview button to SongDB list (fetches default arrangement preview)
- Show success toast with count after .pro file import
- Replace search+select with single searchable combo/autocomplete field
- Wire preview modal and PDF download to real endpoints in service songs
- Disable preview/PDF buttons when no arrangement selected
2026-03-02 14:10:59 +01:00
Thorsten Bus 32e9577d4d feat(ui): redesign slide grid with larger previews and add collapsible JSON log viewer
- Slide grid now 1-2-3 columns (4x larger thumbnails)
- Delete button left, fullscreen right, always visible (no hover)
- Upload area appears inline as last grid item (no side-by-side layout)
- SlideUploader supports inline mode for grid integration
- Add recursive collapsible JsonTreeViewer component (no external deps)
- Replace raw JSON pre tags in API logs with tree viewer
2026-03-02 14:10:50 +01:00
Thorsten Bus a36841f920 feat(songs): add CTS song ID matching, info slide date filter, arrangement ordering, translation defaults
- 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
2026-03-02 14:10:40 +01:00
Thorsten Bus f561c0ada9 feat(services): add delete button to remove service from DB
- Add trash icon button with confirmation dialog on service list
- DELETE /services/{service} hard-deletes service, its songs, and non-info slides
- Service will be recreated on next CTS sync
2026-03-02 13:25:52 +01:00
Thorsten Bus bb25b3b98d feat(logs): store and lazy-load actual API response body in request log
- 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
2026-03-02 13:25:45 +01:00
Thorsten Bus 11f8681feb feat(songs): implement .pro file upload in SongDB page
- Replace placeholder exception with real uploadProFiles() function
- POST files to /api/songs/import-pro endpoint
- Show success/error toast and refresh song list after import
2026-03-02 13:25:36 +01:00
Thorsten Bus 6c59922e96 fix(auth): add Sanctum stateful middleware so SPA API routes work with session cookies
- Add EnsureFrontendRequestsAreStateful to api middleware stack
- Create config/sanctum.php with cts-work.test as stateful domain
- Fixes 'Unauthenticated' error on SongDB and other API-backed pages
2026-03-02 13:25:29 +01:00
Thorsten Bus 22f1829132 fix(slides): show information slides without expire_date in service edit
- Add whereNull('expire_date') as alternative condition so info slides
  without an expiration date appear in all services
- Fix test assertion ordering by setting explicit uploaded_at timestamps
2026-03-02 13:25:22 +01:00
Thorsten Bus 1c1e63de3d fix(slides): make delete icon always visible, fix confirm dialog z-index, and reset dropzone after upload
- Remove opacity-0/group-hover:opacity-100 so delete button is always visible
- Wrap ConfirmDialog in Teleport to body so it renders above all content
- Replace router.delete with axios.delete for proper slide deletion
- Add dropzoneKey ref to force Vue3Dropzone re-mount after upload completes
2026-03-02 13:25:09 +01:00
Thorsten Bus 8cbda3b8bc test(services): add PlaylistExportTest for .proplaylist download scenarios
- Finalized service with matched songs returns .proplaylist file
- Non-finalized service returns 403
- Finalized service with no songs returns 422
- Skipped songs count reported via X-Skipped-Songs header
- Auth required for download endpoint
2026-03-02 12:29:14 +01:00
Thorsten Bus 747d2c3c07 feat(services): implement .proplaylist export for finalized services
- Add PlaylistExportService that generates .proplaylist with embedded .pro files
- Update ServiceController::download() with real playlist export (replaces placeholder)
- Return 403 for non-finalized services, 422 when no exportable songs found
- Update frontend downloadService() to handle binary file blob response
- Replace obsolete placeholder test with proper 403 and 422 behavior tests
2026-03-02 12:27:55 +01:00
Thorsten Bus ca7160068e feat(songs): implement .pro file download/export from SongDB 2026-03-02 12:22:48 +01:00
Thorsten Bus 77d47f4b73 feat(songs): implement .pro file import with SongDB mapping 2026-03-02 12:21:01 +01:00
Thorsten Bus 70d8bcb4d2 fix(upload): auto-upload on drag-drop and fix FormData serialization 2026-03-02 12:16:44 +01:00
Thorsten Bus e2e1723b99 feat(logs): add expandable request/response details in API log 2026-03-02 12:14:34 +01:00
Thorsten Bus f775589f32 build(deps): integrate ProPresenter parser via composer path 2026-03-02 12:05:04 +01:00
Thorsten Bus a5a520c754 feat(sync): limit CTS fetch to next 10 services 2026-03-02 12:04:24 +01:00
Thorsten Bus 89ddbba737 feat(services): show CTS event ID tooltip on title hover 2026-03-02 12:04:00 +01:00
Thorsten Bus c3fa352adb feat(sync): add hourly CTS sync schedule 2026-03-02 12:03:52 +01:00
Thorsten Bus 951ed81e47 fix(services): correct archived toggle button highlighting 2026-03-02 12:03:27 +01:00
Thorsten Bus 8c2f8a5d0a chore: mark cts-bugfix-features plan as complete in boulder state
All 20 tasks completed:
- 6 implementation tasks
- 4 verification tasks
- 10 success criteria items

Status: complete
Active plan: null (no active work)
2026-03-02 11:22:29 +01:00
Thorsten Bus 20be6e372b docs: add completion report for cts-bugfix-features plan
All 20 tasks completed successfully:
- 6 implementation tasks
- 4 verification tasks
- 4 definition of done items
- 6 final checklist items

Status: READY FOR PRODUCTION DEPLOYMENT
2026-03-02 11:21:16 +01:00