refactor(domain): Row structs for from_persistence, ID newtypes, kill clippy.toml

- delete clippy.toml (too-many-arguments-threshold=20 hack)
- ChannelRow/MediaItemRow/LibraryItemRow structs for from_persistence
- SnapshotId/ActivityEventId/PlaybackRecordId newtypes
- DomainError variants use ChannelId/UserId instead of Uuid
- ActivityEvent.channel_id: Option<ChannelId> not Option<Uuid>
- InMemory repos key on newtype IDs
- AlgorithmicParams struct for schedule engine
- update all adapters/application/presentation callers
This commit is contained in:
2026-07-12 05:00:49 +02:00
parent 031cba5cfb
commit c0e685a4ee
65 changed files with 684 additions and 695 deletions

View File

@@ -43,7 +43,7 @@ async fn m3u_includes_channels() {
repo.channels
.lock()
.unwrap()
.insert(ch.id().value(), ch.clone());
.insert(ch.id(), ch.clone());
let result = m3u::execute(
&deps,
@@ -68,7 +68,7 @@ async fn m3u_no_token() {
repo.channels
.lock()
.unwrap()
.insert(ch.id().value(), ch);
.insert(ch.id(), ch);
let result = m3u::execute(
&deps,