773e228e21
rename RecyclePolicy→RotationPolicy, collapse AccessMode, clean OIDC refs
2026-07-12 06:50:25 +02:00
33b440d297
fix(presentation): extract 12 handler violations to use cases
...
- TokenService port + JwtTokenService adapter; login/refresh return LoginResult
- delete get_token (dup of login); create_tokens helper removed
- type UpdateChannelRequest schedule_config/recycle_policy (no serde_json::Value)
- update_settings returns updated Vec; handler calls one use case
- config use case in application::config; handler maps DTO only
- SyncStatusEntry moved to api-types w/ From<LibrarySyncLogEntry>
- trigger_sync: Conflict error, drop sync_trigger.send from handler
- UpsertProviderCommand.config accepts Value; serialization in use case
- get_current_broadcast returns BroadcastWithChannel; one call
- get_stream_url resolves broadcast internally; handler single call
2026-07-12 05:28:49 +02:00
9b18d3ff6d
remove OIDC/Postgres, replace ApiError w/ AppError, move params to api-types
2026-07-12 05:14:17 +02:00
c0e685a4ee
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
2026-07-12 05:00:49 +02:00
25b33b6a0e
cleanup: strip comments, extract constants, DRY shared helpers across adapters + infra-wiring
...
- strip all comments except WHY workaround notes (3 remain)
- remove all #[allow(dead_code)]; fix via _prefix rename
- extract named constants: JWT time units, token types, default config values, jellyfin fallback bitrate
- DRY: move serialize_enum_as_string, content_type_str, parse_content_type, parse_genres_blob to adapter-common
- sqlite+postgres library.rs use shared helpers instead of local copies
- sqlite+postgres channel.rs use shared serialize_enum_as_string
- remove dead `let _ = ext` in scanner.rs
2026-07-12 04:21:21 +02:00
afed5c01b4
adapter-event-publisher: broadcast channel event bus
2026-07-12 02:54:43 +02:00
b93b14efe4
adapter-local-files: media provider, index, transcoder
2026-07-12 02:53:27 +02:00
e389e9e002
adapter-jellyfin: media provider
2026-07-12 02:47:13 +02:00
72ef9b9e1b
adapter-auth: JWT, OIDC, password hashing
2026-07-12 02:44:16 +02:00
0fe80b545e
adapter-postgres: all repository implementations
2026-07-12 02:39:56 +02:00
e8179d1f53
adapter-sqlite: all repo implementations + wire fn + migrations copy
2026-07-12 02:34:12 +02:00
1428f264bb
adapter-common: shared DB mapping helpers
2026-07-12 02:26:42 +02:00