Commit Graph
9 Commits
Author SHA1 Message Date
fraujulianandClaude Fable 5.2 65743279b1 refactor(database): access the library through EF Core
SongRepository uses Entity Framework Core instead of hand-written SQL. The
table and column names stay the same, so existing libraries open unchanged.
The duration rule moves into the repository, and a duplicate Openverse id
now surfaces as DbUpdateException. Libraries from before the Openverse
import, which lack the OpenverseId column, are no longer upgraded.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 14:40:12 +01:00
fraujulianandClaude Fable 5.2 7cdc3b3a41 refactor: remove the unused placeholder lists
The generator sizes ad and moderator items itself and leaves their titles
empty, so PlaceholderContent and its two models had no caller left.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 14:40:11 +01:00
fraujulianandClaude Fable 5.2 ac9170249b docs: describe the new schedule options, settings and German labels
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 14:22:53 +01:00
fraujulianandClaude Opus 5.5 0a0d8e1d4c feat: combine upload and Openverse into one import page
Adding music took two navigation items that each did half the job.
The new Import page has both sources as tabs and one shared list of
what was added in this session, with the reason for every failure and
a link to the library.

From computer: drop several MP3 or WAV files or pick them with a
multi-select dialog. Files are imported one by one on a background
thread with a progress bar, and a failing file does not stop the rest.

Openverse: search and download show a progress ring with a status
text. Results that are already in the library or have no duration are
marked in their row and cannot be imported; a double-click imports.

To detect duplicates, songs now store the Openverse result id. The
repository adds the column to existing databases and a unique index
keeps one song per Openverse result.

Refs #13

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 11:34:35 +01:00
fraujulianandClaude Opus 5.5 497ac8fd6c fix: start each schedule item at its planned time
Start played the first item right away, although the plan begins at
the next full hour. The news was at :00 and :30 in the plan but not on
the real clock.

PlaybackEngine now takes a clock and waits before each item until its
planned start. An item that runs late is never cut; the next one then
starts right after it. When the broadcast starts after the plan has
begun, items that should already have started are skipped and playback
joins at the next one.

While the engine waits for the first item, the now-playing card shows
"On air at" with the planned time. Starting a plan that is already
over is refused with a message.

Refs #12

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 11:20:10 +01:00
fraujulianandClaude Opus 5.5 6f3ce85307 docs: document usage, architecture and assignment checklist
The README now explains how to use each page, how the schedule is
built, the MVC layers and main services, and the Openverse license
and attribution handling. A checklist maps every requirement of the
assignment to the code that covers it.

The review found one gap, now listed under known limitations: the
plan starts at the next full hour, but Start plays right away, so the
news only hits the real :00 and :30 when the broadcast starts at a
full hour.

The home page still said that features "will appear here"; it now
points to the pages that exist.

Refs #12

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 11:15:06 +01:00
fraujulianandClaude Opus 5.5 a02081fe66 feat: add SQLite song database and repository
Store the music library in SQLite through Microsoft.Data.Sqlite.
SongRepository creates the database file and the Songs table if they
are missing and offers GetAll, GetById, Add, Update and Delete with
parameterized queries. The app opens the database on startup at
%LOCALAPPDATA%\Radiosender\radiosender.db.

Add an xUnit test project that covers CRUD, persistence across
instances, SQL characters in values and the duration check.

Refs #2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 10:06:14 +01:00
fraujulianandClaude Opus 5.5 910709fe26 feat: initialize WPF project with WPF UI
Add the Radiosender solution on .NET 10 with the WPF-UI 4.3.0 package.
The main window is a FluentWindow with a title bar and a NavigationView
that opens a home page. Models, Controllers and Services folders hold
the MVC structure for the next issues. Replace the GitLab template
README with build instructions.

Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 09:57:35 +01:00
Julian Lechner 145fc13f31 Initial commit 2026-11-23 08:30:43 +00:00