Renames project content from Lumina to Nemera

This commit is contained in:
BinaryAlley committed 2026-11-27 15:37:44 +02:00
1 parent 0f659a4877
commit c583c9327c
6127 files changed
+41884 -41884

No files matched your search

@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Permissions](#permissions)
- [Get Permissions](#get-permissions)
- [Get Permissions Request](#get-permissions-request)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Roles](#roles)
- [Get Roles](#get-roles)
- [Get Roles Request](#get-roles-request)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Favorites](#favorites)
- [Add Favorite](#add-favorite)
- [Add Favorite Request](#add-favorite-request)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [File System Management](#file-system-management)
- [Directories](#directories)
- [Get Directories](#get-directories)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [File System Management](#file-system-management)
- [Drives](#drives)
- [Get Drives](#get-drives)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [File System Management](#file-system-management)
- [File System](#file-system)
- [Get File System Type](#get-file-system-type)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [File System Management](#file-system-management)
- [Files](#files)
- [Get Files](#get-files)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [File System Management](#file-system-management)
- [Paths](#paths)
- [Check Path Exists](#check-path-exists)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [File System Management](#file-system-management)
- [Thumbnails](#thumbnails)
- [Get Thumbnail](#get-thumbnail)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Album](#album)
- [Add Album](#add-album)
- [Add Album Request](#add-album-request)
@@ -1472,14 +1472,14 @@ Updates the cover image of the album identified by `albumId` with the image uplo
```js
PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/{albumId}/cover
Content-Type: multipart/form-data; boundary=LuminaBoundary
Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary
--NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg
< ./cover.jpg
--LuminaBoundary--
--NemeraBoundary--
```
#### Update Album Cover Response
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Artist](#artist)
- [Add Artist](#add-artist)
- [Add Artist Request](#add-artist-request)
@@ -2104,14 +2104,14 @@ Updates the cover image of the artist identified by `artistId` with the image up
```js
PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{artistId}/cover
Content-Type: multipart/form-data; boundary=LuminaBoundary
Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary
--NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg
< ./cover.jpg
--LuminaBoundary--
--NemeraBoundary--
```
#### Update Artist Cover Response
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Track](#track)
- [Add Track](#add-track)
- [Add Track Request](#add-track-request)
@@ -426,7 +426,7 @@ Content-Type: audio/aac
Content-Length: 240128
```
The response is the raw bytes of one produced segment, served with the media type of the delivered container when the server can name it, or `application/octet-stream` otherwise. Every response carries `X-Content-Type-Options: nosniff`, `Cache-Control: private, no-store`, `Vary: Authorization`, `X-Lumina-Segment-Count`, the number of segments the production holds, and `X-Segment-Start-Seconds`, the exact start of the segment on the track timeline, in seconds. The count tells a player where the audio ends without probing for the end with a request that returns not found, and the start lets it offset the packets of a container that numbers its frames from the start of the track, instead of assuming that a segment starts at an exact multiple of its duration. Range requests are not used: the segment is the addressing unit, and the next segment is a separate request. The first request for a track can take longer than the following ones, because the whole normalized audio is produced and cached before its first segment is published. A segment index that the production does not hold is reported as not found with the `NormalizedTrackSegmentNotFound` detail, which is the only not-found answer that means the end of the audio. A track, library or audio file that disappeared, a delivery handle that is unknown, expired, or was issued to another user or track, and a cache entry that was evicted, are reported with their own not-found details instead, and a request that arrives while every normalization job slot is in use is reported as unavailable (`503`), because it is a transient condition that a player retries. A delivery handle whose captured shape is not time addressed segments is a conflict (`409`), because the segment route cannot index it.
The response is the raw bytes of one produced segment, served with the media type of the delivered container when the server can name it, or `application/octet-stream` otherwise. Every response carries `X-Content-Type-Options: nosniff`, `Cache-Control: private, no-store`, `Vary: Authorization`, `X-Nemera-Segment-Count`, the number of segments the production holds, and `X-Segment-Start-Seconds`, the exact start of the segment on the track timeline, in seconds. The count tells a player where the audio ends without probing for the end with a request that returns not found, and the start lets it offset the packets of a container that numbers its frames from the start of the track, instead of assuming that a segment starts at an exact multiple of its duration. Range requests are not used: the segment is the addressing unit, and the next segment is a separate request. The first request for a track can take longer than the following ones, because the whole normalized audio is produced and cached before its first segment is published. A segment index that the production does not hold is reported as not found with the `NormalizedTrackSegmentNotFound` detail, which is the only not-found answer that means the end of the audio. A track, library or audio file that disappeared, a delivery handle that is unknown, expired, or was issued to another user or track, and a cache entry that was evicted, are reported with their own not-found details instead, and a request that arrives while every normalization job slot is in use is reported as unavailable (`503`), because it is a transient condition that a player retries. A delivery handle whose captured shape is not time addressed segments is a conflict (`409`), because the segment route cannot index it.
### Get Playback Manifest
@@ -471,7 +471,7 @@ Returns the playback manifest of the track identified by the route: the format o
}
```
When the player can play the stored audio as it is, `isDirectPlay` is `true`, and `deliveryContainer`, `deliveryCodec`, `deliveryShape`, `segmentDurationSeconds`, `deliveryId` and `segmentStreamPathTemplate` are `null`, because the delivery is the stored file itself, addressed and seeked by byte range. When it cannot, `isDirectPlay` is `false`, and those fields name the container, the codec, the addressing the server produces instead, the length in seconds of each of its time addressed segments, the opaque handle of the delivery, and the root relative path template of the segment route, with `{deliveryId}` and `{segmentIndex}` placeholders. `durationInSeconds` is the probed duration; a normalized production can be slightly longer or shorter, and its exact produced duration is reported by the `X-Lumina-Track-Duration-Seconds` header of its segments. A normalized delivery is always addressed as `TimeAddressedSegments`, and `segmentDurationSeconds` is the nominal length of each of its segments, so that the server that produces the segments and the player that consumes them agree on the target without duplicating the value on both sides. The `deliveryId` binds the delivery to the user and the track, and it captures the quality cap and the source file version that were in effect when the manifest was read, so a segment request addresses exactly that delivery instead of recomputing it. A player that cannot play a track directly fetches each segment from that template in index order and seeks by segment index, never by byte range. `isSeekable` reports whether the delivered audio can be seeked by the player. `streamPath` is relative to the API, without a host or a scheme, so that a client reaches the stream through its own application rather than the API server directly.
When the player can play the stored audio as it is, `isDirectPlay` is `true`, and `deliveryContainer`, `deliveryCodec`, `deliveryShape`, `segmentDurationSeconds`, `deliveryId` and `segmentStreamPathTemplate` are `null`, because the delivery is the stored file itself, addressed and seeked by byte range. When it cannot, `isDirectPlay` is `false`, and those fields name the container, the codec, the addressing the server produces instead, the length in seconds of each of its time addressed segments, the opaque handle of the delivery, and the root relative path template of the segment route, with `{deliveryId}` and `{segmentIndex}` placeholders. `durationInSeconds` is the probed duration; a normalized production can be slightly longer or shorter, and its exact produced duration is reported by the `X-Nemera-Track-Duration-Seconds` header of its segments. A normalized delivery is always addressed as `TimeAddressedSegments`, and `segmentDurationSeconds` is the nominal length of each of its segments, so that the server that produces the segments and the player that consumes them agree on the target without duplicating the value on both sides. The `deliveryId` binds the delivery to the user and the track, and it captures the quality cap and the source file version that were in effect when the manifest was read, so a segment request addresses exactly that delivery instead of recomputing it. A player that cannot play a track directly fetches each segment from that template in index order and seeks by segment index, never by byte range. `isSeekable` reports whether the delivered audio can be seeked by the player. `streamPath` is relative to the API, without a host or a scheme, so that a client reaches the stream through its own application rather than the API server directly.
For example, a delivery of a track the player cannot decode is declared as follows:
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Library](#library)
- [Add Library](#add-library)
- [Add Library Request](#add-library-request)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Library Statistics](#library-statistics)
- [When a Session Counts](#when-a-session-counts)
- [Get Recently Consumed](#get-recently-consumed)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Book](#book)
- [Add Book](#add-book)
- [Add Book Request](#add-book-request)
@@ -736,14 +736,14 @@ Updates the cover image of the book identified by `bookId` with the image upload
```js
PUT api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/books/{bookId}/cover
Content-Type: multipart/form-data; boundary=LuminaBoundary
Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary
--NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg
< ./cover.jpg
--LuminaBoundary--
--NemeraBoundary--
```
#### Update Book Cover Response
+2 -2
View File
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Health](#health)
- [Check Health](#check-health)
- [Check Health Request](#check-health-request)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Initialization](#initialization)
- [Setup Application](#setup-application)
- [Setup Application Request](#setup-application-request)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Media Consumption](#media-consumption)
- [Start Consumption](#start-consumption)
- [Start Consumption Request](#start-consumption-request)
+3 -3
View File
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Plugins](#plugins)
- [Install Plugin](#install-plugin)
- [Install Plugin Request](#install-plugin-request)
@@ -71,7 +71,7 @@ GET api/v1/plugins
{
"id": "f4c1a7de-3b52-4e6a-9d21-8c7e5b04a1f3",
"name": "MusicBrainz Metadata",
"author": "Lumina",
"author": "Nemera",
"version": "1.0.0",
"description": "Retrieves artist, album and track metadata from MusicBrainz.",
"loadStatus": "Loaded",
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Scheduled Jobs](#scheduled-jobs)
- [Add Scheduled Job](#add-scheduled-job)
- [Add Scheduled Job Request](#add-scheduled-job-request)
+3 -3
View File
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Themes](#themes)
- [Get Themes](#get-themes)
- [Get Themes Request](#get-themes-request)
@@ -56,7 +56,7 @@ GET api/v1/themes
"themeId": "default-dark",
"name": "Default Dark",
"description": "A dark theme bundled with the application.",
"author": "Lumina",
"author": "Nemera",
"version": "1.0.0",
"previewPath": "preview.png",
"installSource": "Bundled",
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Authentication](#authentication)
- [Register](#register)
- [Register Request](#register-request)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Authorization](#authorization)
- [Get Authorization](#get-authorization)
- [Get Authorization Request](#get-authorization-request)
@@ -1,6 +1,6 @@
# Lumina API
# Nemera API
- [Lumina API](#lumina-api)
- [Nemera API](#nemera-api)
- [Settings](#settings)
- [Get User Settings](#get-user-settings)
- [Get User Settings Request](#get-user-settings-request)
@@ -1,23 +1,23 @@
@startuml Lumina System Context Diagram
@startuml Nemera System Context Diagram
!pragma layout elk
!include <C4/C4_Context>
LAYOUT_WITH_LEGEND()
title System Context diagram for Lumina Media Library Manager
title System Context diagram for Nemera Media Library Manager
Person(user, "Home User", "A person who wants to manage and stream their personal media collection")
Person(admin, "Administrator", "A person who manages the media library system")
System(lumina, "Lumina 1.1", "Allows users to organize, manage, stream and read their personal media content [detailed in '2 container-diagram.puml']")
System(nemera, "Nemera 1.1", "Allows users to organize, manage, stream and read their personal media content [detailed in '2 container-diagram.puml']")
System_Ext(metadataProvider, "Media Metadata and Artwork Services", "External services that provide media information and artwork (MusicBrainz, Open Library, Cover Art Archive)")
Rel(user, lumina, "Views, streams and reads media content")
Rel(admin, lumina, "Manages media library, plugins, themes and system settings")
Rel(lumina, metadataProvider, "Retrieves media metadata and artwork")
Rel(user, nemera, "Views, streams and reads media content")
Rel(admin, nemera, "Manages media library, plugins, themes and system settings")
Rel(nemera, metadataProvider, "Retrieves media metadata and artwork")
caption [System Context] Lumina
caption [System Context] Nemera
footer The system context diagram for the Lumina Media Library Manager - created with PlantUML
footer The system context diagram for the Nemera Media Library Manager - created with PlantUML
@enduml
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:629px;height:830px;background:#FFFFFF;" width="629px" height="830px" viewBox="0 0 629 830" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="112.665" y="24.533" fill="#000" font-size="14" textLength="396.758" font-weight="700">System Context diagram for Lumina Media Library Manager</text></g><!--entity user--><g class="entity" data-qualified-name="user" id="ent0001" data-source-line="178"><rect x="315.271" y="50.609" width="216.116" height="162.255" fill="#08427B" style="stroke:#073B6F;stroke-width:0.5;"/><image width="52" height="52" x="397.483" y="60.609" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAGWElEQVR4Xu2YC0xTVxjHdWabBXQ63eZ0W9S5GeYwM9PNmDgNIKIwJejAFzIVx5xOMep0AkWQN/ISHxVUUEEUQRGhVMrLElEBgSsw3iBwpRRKoRQuD6Fn57iwmHMp3EJDi/Gf/NLmy73n/L/ennO+746bqG8/7k2CFhjr0AKqYM4vnjs2OV0nfCLSiTBuDhGVShCRyfmE3w0BYetzm9Dd5nt8khF7On6fKqAFRsISm6DDHtdS0wT5VZVltU1AJJGBVhkFZFQXaOvoAo0t7aCqvhlkl9SRwXFPHhodvHhtuonzInyckUALDIcpxk5zf/OOcU3ILK6uF0tBb18fGEqStg6Q9U+d7BiHK5i/xccQH3O40ALKgpI5xkkMIirqGzq7X+K+h1QFKQZuV1MEetv9jfGxhwMtoCy7vaK9i2saRb19ctwrY6G/IftiUvo8S+81+PjKQgsow4+2Z/ZkFtYIu3qUfzK4CqsawG6vGI6OkeM0fB5loAUYMn7yavbMywnZQml7J+5t2IpOe5a1aGegxQDzMYYWYALLwOHd73YE2MNdTIqbGomeCyXgyNmEEHw+ZaAFmKCzypFlH8yjpO1duKcRKzwpL36aifMCfE6m0AJM+GC1Eystt4Lq7unF/YxY/OxysGzPuRh8TqbQAkyAWzWroVlG9cmHv7MpUk4JCSzZEaOb0NQ1J1hUVw+Fm1GFiAoh2OF+621C/dACTEB/OVirUUxKHGWVWfAc/Hw0bHQTgmcQ646giBpOqTOUkrLKwFLbs6ObENq2j57nUqo8VJHQrnkxPmv0t214sE6Yv9lnfeWLZnHfCGo4XCU1jWCvb+zoH6z9nI99RLbIVPeUbqYQWXrWfqNf+vSDitP03Eoh3PFwb0orv7we/Ooepbbi9H+sXG94QzOinpfDrxpQd/vXOW767I2e6m0fEKjB2+cXy35cWFPd0dmNex1SBVVCcPwCT6C79ZRmNHj9bHWJPHL7QWH184YW0M3gaYla2sGDvKpnsHWP/2KDh+a04K+z0Nr/sP0FXlrSk7Ji2LB11opaQFNrO2hpo4BESoF6cRsoq2sCj4pqivyjMgSwBbGAR8AUfJyRQAuogllmbutW2YXwDp2JJ05HPyQu3csigu8+IZwv84ktzpHEZ+buxlqGDlr4faqAFhjr0AJMQV2rtqEjC1UNk4z+Q9vQYSJL334Cfq0itAwc3u+/H31qQ2DsPTjGePxaptACTEDJfL3Zm21uf7XxYNA9yiU0mXK/mkpZsCNK4ALfhl+vCAO7YB4qodC9sPWmNjldpxbbBN35cO0JPfxaptACgzHTzE33GIdLPi6qJYXiNqlYSslbYaWA3orKIHDh9xbXNEqi0wrI48E80oIdTq7YxyldvOs0d4lNEN/QLoT8MyCWDOflknBzIJtaOrpQPYjuRZ/NcPMQSdo7CyqFooCoDHKp7Rk+7mEoaIGB+HS9q4G1WxSRXVJXil7vDtZ69/b2ARnV/WpbrhW1gqp6SV8FKaYgnfA7EDa3vfoBBqsBX8IxJDC5Z5UNnX43BA8+MnX5Afp4B/c1ELQAzjfbfE1OhqUUlpNiRq94VSk0H/wBeiL5eTlfbfb5A65RbdwfDi3wOvO3+Jg5h/KfovNEXZLL5eiJyu9mFJXNs/RaCTeNibhPRgnNWOeqfyAw7j56Mpog9HbWKzwt9XNz9zm4V0YJGR+65MDPKmvDB1an6hpbwQb7a5dhAzgX9ztoQh+buixzvZKSIJZ24GOqXVEpBPjWym8l7nnQhJbv5XgmZJao9DWvqoTqQpMjob/Dg3gq7lthQgcC4kLKYRGpqdofcFcAj5KluG+FCfnfzAhBZ4mm6uztRwAeJ+a47wETQttiKDcnDB9EkxSTXgBgicQsoWlrTywMv5/LxQfRJAmIagDX+ZuTUG4pCfT3B79NSGP1xiWUAdfQT0zXEKxodTixj68M1iKoWxH8PLBoZyCzhBBWJ2+GPC19gY+jEero6gG23jFhn6w7qYv7VpjQ7I0ey//mJCaW1mpWtdAMa8ugmIf1C6x8TbUMHVi4b4UJIXS3+q7Y6X7LA3aMgiuJT0Fkcr7auJ6cLz93J/OFXWCci952v12TjdgzcL9DJoRABeAsMzfThdYBXvBkVhvf2wR5fmnptV/b0FEH94hDC4x1aIGxzr9XBgujsWOPcQAAAABJRU5ErkJggg=="/><text x="381.091" y="128.911" fill="#FFF" font-size="16" textLength="44.453" font-weight="700">Home</text><text x="425.544" y="128.911" fill="#FFF" font-size="16" font-weight="700"> </text><text x="429.989" y="128.911" fill="#FFF" font-size="16" textLength="35.578" font-weight="700">User</text><text x="421.384" y="146.96" fill="#FFF" font-size="14"> </text><text x="325.271" y="164.569" fill="#FFF" font-size="14">A</text><text x="334.609" y="164.569" fill="#FFF" font-size="14"> </text><text x="338.499" y="164.569" fill="#FFF" font-size="14" textLength="42.807">person</text><text x="381.305" y="164.569" fill="#FFF" font-size="14"> </text><text x="385.195" y="164.569" fill="#FFF" font-size="14" textLength="25.683">who</text><text x="410.877" y="164.569" fill="#FFF" font-size="14"> </text><text x="414.767" y="164.569" fill="#FFF" font-size="14" textLength="36.572">wants</text><text x="451.339" y="164.569" fill="#FFF" font-size="14"> </text><text x="455.229" y="164.569" fill="#FFF" font-size="14" textLength="11.676">to</text><text x="466.905" y="164.569" fill="#FFF" font-size="14"> </text><text x="470.794" y="164.569" fill="#FFF" font-size="14" textLength="50.593">manage</text><text x="343.954" y="182.179" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="367.312" y="182.179" fill="#FFF" font-size="14"> </text><text x="371.202" y="182.179" fill="#FFF" font-size="14" textLength="42.786">stream</text><text x="413.988" y="182.179" fill="#FFF" font-size="14"> </text><text x="417.877" y="182.179" fill="#FFF" font-size="14" textLength="27.234">their</text><text x="445.112" y="182.179" fill="#FFF" font-size="14"> </text><text x="449.001" y="182.179" fill="#FFF" font-size="14" textLength="53.703">personal</text><text x="373.136" y="199.788" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="411.267"Line truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:629px;height:830px;background:#FFFFFF;" width="629px" height="830px" viewBox="0 0 629 830" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="112.665" y="24.533" fill="#000" font-size="14" textLength="396.758" font-weight="700">System Context diagram for Nemera Media Library Manager</text></g><!--entity user--><g class="entity" data-qualified-name="user" id="ent0001" data-source-line="178"><rect x="315.271" y="50.609" width="216.116" height="162.255" fill="#08427B" style="stroke:#073B6F;stroke-width:0.5;"/><image width="52" height="52" x="397.483" y="60.609" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAGWElEQVR4Xu2YC0xTVxjHdWabBXQ63eZ0W9S5GeYwM9PNmDgNIKIwJejAFzIVx5xOMep0AkWQN/ISHxVUUEEUQRGhVMrLElEBgSsw3iBwpRRKoRQuD6Fn57iwmHMp3EJDi/Gf/NLmy73n/L/ennO+746bqG8/7k2CFhjr0AKqYM4vnjs2OV0nfCLSiTBuDhGVShCRyfmE3w0BYetzm9Dd5nt8khF7On6fKqAFRsISm6DDHtdS0wT5VZVltU1AJJGBVhkFZFQXaOvoAo0t7aCqvhlkl9SRwXFPHhodvHhtuonzInyckUALDIcpxk5zf/OOcU3ILK6uF0tBb18fGEqStg6Q9U+d7BiHK5i/xccQH3O40ALKgpI5xkkMIirqGzq7X+K+h1QFKQZuV1MEetv9jfGxhwMtoCy7vaK9i2saRb19ctwrY6G/IftiUvo8S+81+PjKQgsow4+2Z/ZkFtYIu3qUfzK4CqsawG6vGI6OkeM0fB5loAUYMn7yavbMywnZQml7J+5t2IpOe5a1aGegxQDzMYYWYALLwOHd73YE2MNdTIqbGomeCyXgyNmEEHw+ZaAFmKCzypFlH8yjpO1duKcRKzwpL36aifMCfE6m0AJM+GC1Eystt4Lq7unF/YxY/OxysGzPuRh8TqbQAkyAWzWroVlG9cmHv7MpUk4JCSzZEaOb0NQ1J1hUVw+Fm1GFiAoh2OF+621C/dACTEB/OVirUUxKHGWVWfAc/Hw0bHQTgmcQ646giBpOqTOUkrLKwFLbs6ObENq2j57nUqo8VJHQrnkxPmv0t214sE6Yv9lnfeWLZnHfCGo4XCU1jWCvb+zoH6z9nI99RLbIVPeUbqYQWXrWfqNf+vSDitP03Eoh3PFwb0orv7we/Ooepbbi9H+sXG94QzOinpfDrxpQd/vXOW767I2e6m0fEKjB2+cXy35cWFPd0dmNex1SBVVCcPwCT6C79ZRmNHj9bHWJPHL7QWH184YW0M3gaYla2sGDvKpnsHWP/2KDh+a04K+z0Nr/sP0FXlrSk7Ji2LB11opaQFNrO2hpo4BESoF6cRsoq2sCj4pqivyjMgSwBbGAR8AUfJyRQAuogllmbutW2YXwDp2JJ05HPyQu3csigu8+IZwv84ktzpHEZ+buxlqGDlr4faqAFhjr0AJMQV2rtqEjC1UNk4z+Q9vQYSJL334Cfq0itAwc3u+/H31qQ2DsPTjGePxaptACTEDJfL3Zm21uf7XxYNA9yiU0mXK/mkpZsCNK4ALfhl+vCAO7YB4qodC9sPWmNjldpxbbBN35cO0JPfxaptACgzHTzE33GIdLPi6qJYXiNqlYSslbYaWA3orKIHDh9xbXNEqi0wrI48E80oIdTq7YxyldvOs0d4lNEN/QLoT8MyCWDOflknBzIJtaOrpQPYjuRZ/NcPMQSdo7CyqFooCoDHKp7Rk+7mEoaIGB+HS9q4G1WxSRXVJXil7vDtZ69/b2ARnV/WpbrhW1gqp6SV8FKaYgnfA7EDa3vfoBBqsBX8IxJDC5Z5UNnX43BA8+MnX5Afp4B/c1ELQAzjfbfE1OhqUUlpNiRq94VSk0H/wBeiL5eTlfbfb5A65RbdwfDi3wOvO3+Jg5h/KfovNEXZLL5eiJyu9mFJXNs/RaCTeNibhPRgnNWOeqfyAw7j56Mpog9HbWKzwt9XNz9zm4V0YJGR+65MDPKmvDB1an6hpbwQb7a5dhAzgX9ztoQh+buixzvZKSIJZ24GOqXVEpBPjWym8l7nnQhJbv5XgmZJao9DWvqoTqQpMjob/Dg3gq7lthQgcC4kLKYRGpqdofcFcAj5KluG+FCfnfzAhBZ4mm6uztRwAeJ+a47wETQttiKDcnDB9EkxSTXgBgicQsoWlrTywMv5/LxQfRJAmIagDX+ZuTUG4pCfT3B79NSGP1xiWUAdfQT0zXEKxodTixj68M1iKoWxH8PLBoZyCzhBBWJ2+GPC19gY+jEero6gG23jFhn6w7qYv7VpjQ7I0ey//mJCaW1mpWtdAMa8ugmIf1C6x8TbUMHVi4b4UJIXS3+q7Y6X7LA3aMgiuJT0Fkcr7auJ6cLz93J/OFXWCci952v12TjdgzcL9DJoRABeAsMzfThdYBXvBkVhvf2wR5fmnptV/b0FEH94hDC4x1aIGxzr9XBgujsWOPcQAAAABJRU5ErkJggg=="/><text x="381.091" y="128.911" fill="#FFF" font-size="16" textLength="44.453" font-weight="700">Home</text><text x="425.544" y="128.911" fill="#FFF" font-size="16" font-weight="700"> </text><text x="429.989" y="128.911" fill="#FFF" font-size="16" textLength="35.578" font-weight="700">User</text><text x="421.384" y="146.96" fill="#FFF" font-size="14"> </text><text x="325.271" y="164.569" fill="#FFF" font-size="14">A</text><text x="334.609" y="164.569" fill="#FFF" font-size="14"> </text><text x="338.499" y="164.569" fill="#FFF" font-size="14" textLength="42.807">person</text><text x="381.305" y="164.569" fill="#FFF" font-size="14"> </text><text x="385.195" y="164.569" fill="#FFF" font-size="14" textLength="25.683">who</text><text x="410.877" y="164.569" fill="#FFF" font-size="14"> </text><text x="414.767" y="164.569" fill="#FFF" font-size="14" textLength="36.572">wants</text><text x="451.339" y="164.569" fill="#FFF" font-size="14"> </text><text x="455.229" y="164.569" fill="#FFF" font-size="14" textLength="11.676">to</text><text x="466.905" y="164.569" fill="#FFF" font-size="14"> </text><text x="470.794" y="164.569" fill="#FFF" font-size="14" textLength="50.593">manage</text><text x="343.954" y="182.179" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="367.312" y="182.179" fill="#FFF" font-size="14"> </text><text x="371.202" y="182.179" fill="#FFF" font-size="14" textLength="42.786">stream</text><text x="413.988" y="182.179" fill="#FFF" font-size="14"> </text><text x="417.877" y="182.179" fill="#FFF" font-size="14" textLength="27.234">their</text><text x="445.112" y="182.179" fill="#FFF" font-size="14"> </text><text x="449.001" y="182.179" fill="#FFF" font-size="14" textLength="53.703">personal</text><text x="373.136" y="199.788" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="411.267"Line truncated

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

@@ -1,14 +1,14 @@
@startuml Lumina Container Diagram
@startuml Nemera Container Diagram
!pragma layout elk
!include <C4/C4_Container>
LAYOUT_WITH_LEGEND()
title Container diagram for Lumina 1.1
title Container diagram for Nemera 1.1
Person(user, "Home User", "A person who wants to manage and stream their personal media collection")
Person(admin, "Administrator", "A person who manages the media library system")
System_Boundary(c1, "Lumina 1.1") {
System_Boundary(c1, "Nemera 1.1") {
Container(webapp, "Web Application Client 2.1", "ASP.NET Core + Razor", "Delivers server-rendered views with dynamic client-side functionality for media management, playback, reading, favorites, playlists, statistics, plugins, themes, and the scheduled jobs dashboard [detailed in '3.1 component-web-client-diagram.puml']")
Container(api, "API Server 2.2", "ASP.NET Core", "Provides media library management, plugin metadata and artwork, music playback, book reading, themes, favorites, playlists, consumption statistics, and scheduled maintenance through a REST API [detailed in '3.2 component-api-server-diagram.puml']")
@@ -30,7 +30,7 @@ Rel(api, filestore, "Reads from and writes to")
Rel(api, apiStorage, "Reads from and writes to", "File system")
Rel(api, metadata, "Retrieves metadata and artwork from", "HTTPS")
caption [Container] Lumina 1.1
caption [Container] Nemera 1.1
footer The container diagram for the Lumina 1.1 - created with PlantUML
footer The container diagram for the Nemera 1.1 - created with PlantUML
@enduml
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:860px;height:1663px;background:#FFFFFF;" width="860px" height="1663px" viewBox="0 0 860 1663" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="315.007" y="24.533" fill="#000" font-size="14" textLength="223.262" font-weight="700">Container diagram for Lumina 1.1</text></g><rect x="12" y="307.145" width="744.176" height="903.609" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="342.299" y="325.755" fill="#444" font-size="16" textLength="83.578" font-weight="700">Lumina 1.1</text><text x="359.411" y="341.727" fill="#444" font-size="12" textLength="49.354" font-weight="700">[system]</text><!--entity webapp--><g class="entity" data-qualified-name="c1.webapp" id="ent0004" data-source-line="71"><rect x="125.526" y="357.145" width="252.996" height="251.438" fill="#438DD5" style="stroke:#3C7FC0;stroke-width:0.5;"/><text x="164.915" y="383.755" fill="#FFF" font-size="16" textLength="33.773" font-weight="700">Web</text><text x="198.688" y="383.755" fill="#FFF" font-size="16" font-weight="700"> </text><text x="203.134" y="383.755" fill="#FFF" font-size="16" textLength="87.109" font-weight="700">Application</text><text x="290.243" y="383.755" fill="#FFF" font-size="16" font-weight="700"> </text><text x="294.688" y="383.755" fill="#FFF" font-size="16" textLength="44.445" font-weight="700">Client</text><text x="240.903" y="403.88" fill="#FFF" font-size="16" textLength="22.242" font-weight="700">2.1</text><text x="185.503" y="419.852" fill="#FFF" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="240.183" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="243.517" y="419.852" fill="#FFF" font-size="12" textLength="26.01" font-style="italic">Core</text><text x="269.526" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="272.86" y="419.852" fill="#FFF" font-size="12" font-style="italic">+</text><text x="279.868" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="283.202" y="419.852" fill="#FFF" font-size="12" textLength="35.344" font-style="italic">Razor]</text><text x="250.079" y="437.022" fill="#FFF" font-size="14"> </text><text x="155.549" y="454.632" fill="#FFF" font-size="14" textLength="50.565">Delivers</text><text x="206.114" y="454.632" fill="#FFF" font-size="14"> </text><text x="210.004" y="454.632" fill="#FFF" font-size="14" textLength="99.6">server-rendered</text><text x="309.603" y="454.632" fill="#FFF" font-size="14"> </text><text x="313.493" y="454.632" fill="#FFF" font-size="14" textLength="35.007">views</text><text x="178.107" y="472.241" fill="#FFF" font-size="14" textLength="24.896">with</text><text x="203.004" y="472.241" fill="#FFF" font-size="14"> </text><text x="206.893" y="472.241" fill="#FFF" font-size="14" textLength="52.131">dynamic</text><text x="259.024" y="472.241" fill="#FFF" font-size="14"> </text><text x="262.914" y="472.241" fill="#FFF" font-size="14" textLength="63.027">client-side</text><text x="183.935" y="489.851" fill="#FFF" font-size="14" textLength="73.931">functionality</text><text x="257.866" y="489.851" fill="#FFF" font-size="14"> </text><text x="261.755" y="489.851" fill="#FFF" font-size="14" textLength="16.338">for</text><text x="278.093" y="489.851" fill="#FFF" font-size="14"> </text><text x="281.983" y="489.851" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="177.704" y="507.46" fill="#FFF" font-size="14" textLength="85.606">management,</text><text x="263.31" y="507.46" fill="#FFF" font-size="14"> </text><text x="267.2" y="507.46" fill="#FFF" font-size="14" textLength="59.145">playback,</text><text x="167.597" y="525.069" fill="#FFF" font-size="14" textLength="50.593">reading,</text><text x="218.19" y="525.069" fill="#FFF" font-size="14"> </text><text x="222.079" y="525.069" fill="#FFF" font-size="14" textLength="56.8">favorites,</text><text x="278.879" y="525.069" fill="#FFF" font-size="14"> </text><text x="282.769" y="525.069" fill="#FFF" font-size="14" textLength="53.683">playlists,</text><text x="156.701" y="542.679" fill="#FFF" font-size="14" textLength="57.565">statistics,</text><text x="214.266" y="542.679" fill="#FFF" font-size="14"> </text><text x="218.156" y="542.679" fill="#FFF" font-size="14" textLength="48.255">plugins,</text><text x="266.411" y="542.679" fill="#FFF" font-size="14"> </text><text x="270.3" y="542.679" fill="#FFF" font-size="14" textLength="49.8">themes,</text><text x="320.1" y="542.679" fill="#FFF" font-size="14"> </text><text x="323.99" y="542.679" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="158.621" y="560.288" fill="#FFF" font-size="14" textLength="19.462">the</text><tLine truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:860px;height:1663px;background:#FFFFFF;" width="860px" height="1663px" viewBox="0 0 860 1663" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="315.007" y="24.533" fill="#000" font-size="14" textLength="223.262" font-weight="700">Container diagram for Nemera 1.1</text></g><rect x="12" y="307.145" width="744.176" height="903.609" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="342.299" y="325.755" fill="#444" font-size="16" textLength="83.578" font-weight="700">Nemera 1.1</text><text x="359.411" y="341.727" fill="#444" font-size="12" textLength="49.354" font-weight="700">[system]</text><!--entity webapp--><g class="entity" data-qualified-name="c1.webapp" id="ent0004" data-source-line="71"><rect x="125.526" y="357.145" width="252.996" height="251.438" fill="#438DD5" style="stroke:#3C7FC0;stroke-width:0.5;"/><text x="164.915" y="383.755" fill="#FFF" font-size="16" textLength="33.773" font-weight="700">Web</text><text x="198.688" y="383.755" fill="#FFF" font-size="16" font-weight="700"> </text><text x="203.134" y="383.755" fill="#FFF" font-size="16" textLength="87.109" font-weight="700">Application</text><text x="290.243" y="383.755" fill="#FFF" font-size="16" font-weight="700"> </text><text x="294.688" y="383.755" fill="#FFF" font-size="16" textLength="44.445" font-weight="700">Client</text><text x="240.903" y="403.88" fill="#FFF" font-size="16" textLength="22.242" font-weight="700">2.1</text><text x="185.503" y="419.852" fill="#FFF" font-size="12" textLength="54.68" font-style="italic">[ASP.NET</text><text x="240.183" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="243.517" y="419.852" fill="#FFF" font-size="12" textLength="26.01" font-style="italic">Core</text><text x="269.526" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="272.86" y="419.852" fill="#FFF" font-size="12" font-style="italic">+</text><text x="279.868" y="419.852" fill="#FFF" font-size="12" font-style="italic"> </text><text x="283.202" y="419.852" fill="#FFF" font-size="12" textLength="35.344" font-style="italic">Razor]</text><text x="250.079" y="437.022" fill="#FFF" font-size="14"> </text><text x="155.549" y="454.632" fill="#FFF" font-size="14" textLength="50.565">Delivers</text><text x="206.114" y="454.632" fill="#FFF" font-size="14"> </text><text x="210.004" y="454.632" fill="#FFF" font-size="14" textLength="99.6">server-rendered</text><text x="309.603" y="454.632" fill="#FFF" font-size="14"> </text><text x="313.493" y="454.632" fill="#FFF" font-size="14" textLength="35.007">views</text><text x="178.107" y="472.241" fill="#FFF" font-size="14" textLength="24.896">with</text><text x="203.004" y="472.241" fill="#FFF" font-size="14"> </text><text x="206.893" y="472.241" fill="#FFF" font-size="14" textLength="52.131">dynamic</text><text x="259.024" y="472.241" fill="#FFF" font-size="14"> </text><text x="262.914" y="472.241" fill="#FFF" font-size="14" textLength="63.027">client-side</text><text x="183.935" y="489.851" fill="#FFF" font-size="14" textLength="73.931">functionality</text><text x="257.866" y="489.851" fill="#FFF" font-size="14"> </text><text x="261.755" y="489.851" fill="#FFF" font-size="14" textLength="16.338">for</text><text x="278.093" y="489.851" fill="#FFF" font-size="14"> </text><text x="281.983" y="489.851" fill="#FFF" font-size="14" textLength="38.131">media</text><text x="177.704" y="507.46" fill="#FFF" font-size="14" textLength="85.606">management,</text><text x="263.31" y="507.46" fill="#FFF" font-size="14"> </text><text x="267.2" y="507.46" fill="#FFF" font-size="14" textLength="59.145">playback,</text><text x="167.597" y="525.069" fill="#FFF" font-size="14" textLength="50.593">reading,</text><text x="218.19" y="525.069" fill="#FFF" font-size="14"> </text><text x="222.079" y="525.069" fill="#FFF" font-size="14" textLength="56.8">favorites,</text><text x="278.879" y="525.069" fill="#FFF" font-size="14"> </text><text x="282.769" y="525.069" fill="#FFF" font-size="14" textLength="53.683">playlists,</text><text x="156.701" y="542.679" fill="#FFF" font-size="14" textLength="57.565">statistics,</text><text x="214.266" y="542.679" fill="#FFF" font-size="14"> </text><text x="218.156" y="542.679" fill="#FFF" font-size="14" textLength="48.255">plugins,</text><text x="266.411" y="542.679" fill="#FFF" font-size="14"> </text><text x="270.3" y="542.679" fill="#FFF" font-size="14" textLength="49.8">themes,</text><text x="320.1" y="542.679" fill="#FFF" font-size="14"> </text><text x="323.99" y="542.679" fill="#FFF" font-size="14" textLength="23.358">and</text><text x="158.621" y="560.288" fill="#FFF" font-size="14" textLength="19.462">the</text><tLine truncated

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

@@ -1,11 +1,11 @@
@startuml Lumina Web Application Components
@startuml Nemera Web Application Components
!pragma layout elk
!include <C4/C4_Component>
LAYOUT_WITH_LEGEND()
title Component diagram for Lumina Web Application Client 2.1
title Component diagram for Nemera Web Application Client 2.1
Container_Ext(api, "API Server 2.2", "Lumina.Presentation.Api", "Provides media management functionality via JSON/HTTPS API [detailed in '3.2 component-api-server-diagram.puml']")
Container_Ext(api, "API Server 2.2", "Nemera.Presentation.Api", "Provides media management functionality via JSON/HTTPS API [detailed in '3.2 component-api-server-diagram.puml']")
Container_Boundary(wb, "Web Application 2.1") {
Component(fileSystem, "File System Management", "FastEndpoints + Razor views", "Handles file system operations including drives, directories, files browsing, path operations and thumbnails")
@@ -62,7 +62,7 @@ Rel(clientJs, admin, "Makes AJAX calls to")
Rel(clientJs, users, "Makes AJAX calls to")
Rel(clientJs, api, "Receives media library scan progress and scheduled job updates from the SignalR hubs", "SignalR")
caption [Component] Lumina - Web Application Client 2.1 (Lumina.Presentation.Web)
caption [Component] Nemera - Web Application Client 2.1 (Nemera.Presentation.Web)
footer The component diagram for the Lumina Web Application Client 2.1 - created with PlantUML
footer The component diagram for the Nemera Web Application Client 2.1 - created with PlantUML
@enduml
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:2738px;height:1452px;background:#FFFFFF;" width="2738px" height="1452px" viewBox="0 0 2738 1452" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="1169.838" y="24.533" fill="#000" font-size="14" textLength="392.021" font-weight="700">Component diagram for Lumina Web Application Client 2.1</text></g><rect x="180.346" y="50.609" width="2545.352" height="903.984" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="1377.014" y="69.219" fill="#444" font-size="16" textLength="152.016" font-weight="700">Web Application 2.1</text><text x="1422.02" y="85.191" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text><!--entity fileSystem--><g class="entity" data-qualified-name="wb.fileSystem" id="ent0003" data-source-line="78"><rect x="686.181" y="525.039" width="211.172" height="143.266" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="696.181" y="551.648" fill="#000" font-size="16" textLength="27.563" font-weight="700">File</text><text x="723.743" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="728.188" y="551.648" fill="#000" font-size="16" textLength="56.922" font-weight="700">System</text><text x="785.11" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="789.556" y="551.648" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="710.564" y="567.621" fill="#000" font-size="12" textLength="80.045" font-style="italic">[FastEndpoints</text><text x="790.609" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="793.943" y="567.621" fill="#000" font-size="12" font-style="italic">+</text><text x="800.951" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="804.285" y="567.621" fill="#000" font-size="12" textLength="32.01" font-style="italic">Razor</text><text x="836.295" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="839.629" y="567.621" fill="#000" font-size="12" textLength="33.34" font-style="italic">views]</text><text x="789.822" y="584.791" fill="#000" font-size="14"> </text><text x="696.443" y="602.4" fill="#000" font-size="14" textLength="51.365">Handles</text><text x="747.808" y="602.4" fill="#000" font-size="14"> </text><text x="751.698" y="602.4" fill="#000" font-size="14" textLength="17.896">file</text><text x="769.594" y="602.4" fill="#000" font-size="14"> </text><text x="773.484" y="602.4" fill="#000" font-size="14" textLength="44.338">system</text><text x="817.822" y="602.4" fill="#000" font-size="14"> </text><text x="821.711" y="602.4" fill="#000" font-size="14" textLength="65.379">operations</text><text x="705.395" y="620.01" fill="#000" font-size="14" textLength="55.262">including</text><text x="760.656" y="620.01" fill="#000" font-size="14"> </text><text x="764.546" y="620.01" fill="#000" font-size="14" textLength="41.234">drives,</text><text x="805.78" y="620.01" fill="#000" font-size="14"> </text><text x="809.67" y="620.01" fill="#000" font-size="14" textLength="68.469">directories,</text><text x="697.212" y="637.619" fill="#000" font-size="14" textLength="24.896">files</text><text x="722.108" y="637.619" fill="#000" font-size="14"> </text><text x="725.998" y="637.619" fill="#000" font-size="14" textLength="59.917">browsing,</text><text x="785.915" y="637.619" fill="#000" font-size="14"> </text><text x="789.805" y="637.619" fill="#000" font-size="14" textLength="27.248">path</text><text x="817.053" y="637.619" fill="#000" font-size="14"> </text><text x="820.942" y="637.619" fill="#000" font-size="14" textLength="65.379">operations</text><text x="744.291" y="655.229" fill="#000" font-size="14" textLength="23.358">and</text><text x="767.649" y="655.229" fill="#000" font-size="14"> </text><text x="771.539" y="655.229" fill="#000" font-size="14" textLength="67.703">thumbnails</text></g><!--entity library--><g class="entity" data-qualified-name="wb.library" id="ent0004" data-source-line="78"><rect x="917.353" y="525.039" width="199.765" height="143.266" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="938.993" y="551.648" fill="#000" font-size="16" textLength="54.242" font-weight="700">Library</text><text x="993.235" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="997.68" y="551.648" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="936.033" y="567.621" fill="#000" font-size="12" textLength="80.045" font-style="italic">[FastEndpoints</text><text x="1016.078" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="1019.412" y="567.621" fill="#000" font-size="12" font-stylLine truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:2738px;height:1452px;background:#FFFFFF;" width="2738px" height="1452px" viewBox="0 0 2738 1452" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="1169.838" y="24.533" fill="#000" font-size="14" textLength="392.021" font-weight="700">Component diagram for Nemera Web Application Client 2.1</text></g><rect x="180.346" y="50.609" width="2545.352" height="903.984" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="1377.014" y="69.219" fill="#444" font-size="16" textLength="152.016" font-weight="700">Web Application 2.1</text><text x="1422.02" y="85.191" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text><!--entity fileSystem--><g class="entity" data-qualified-name="wb.fileSystem" id="ent0003" data-source-line="78"><rect x="686.181" y="525.039" width="211.172" height="143.266" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="696.181" y="551.648" fill="#000" font-size="16" textLength="27.563" font-weight="700">File</text><text x="723.743" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="728.188" y="551.648" fill="#000" font-size="16" textLength="56.922" font-weight="700">System</text><text x="785.11" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="789.556" y="551.648" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="710.564" y="567.621" fill="#000" font-size="12" textLength="80.045" font-style="italic">[FastEndpoints</text><text x="790.609" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="793.943" y="567.621" fill="#000" font-size="12" font-style="italic">+</text><text x="800.951" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="804.285" y="567.621" fill="#000" font-size="12" textLength="32.01" font-style="italic">Razor</text><text x="836.295" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="839.629" y="567.621" fill="#000" font-size="12" textLength="33.34" font-style="italic">views]</text><text x="789.822" y="584.791" fill="#000" font-size="14"> </text><text x="696.443" y="602.4" fill="#000" font-size="14" textLength="51.365">Handles</text><text x="747.808" y="602.4" fill="#000" font-size="14"> </text><text x="751.698" y="602.4" fill="#000" font-size="14" textLength="17.896">file</text><text x="769.594" y="602.4" fill="#000" font-size="14"> </text><text x="773.484" y="602.4" fill="#000" font-size="14" textLength="44.338">system</text><text x="817.822" y="602.4" fill="#000" font-size="14"> </text><text x="821.711" y="602.4" fill="#000" font-size="14" textLength="65.379">operations</text><text x="705.395" y="620.01" fill="#000" font-size="14" textLength="55.262">including</text><text x="760.656" y="620.01" fill="#000" font-size="14"> </text><text x="764.546" y="620.01" fill="#000" font-size="14" textLength="41.234">drives,</text><text x="805.78" y="620.01" fill="#000" font-size="14"> </text><text x="809.67" y="620.01" fill="#000" font-size="14" textLength="68.469">directories,</text><text x="697.212" y="637.619" fill="#000" font-size="14" textLength="24.896">files</text><text x="722.108" y="637.619" fill="#000" font-size="14"> </text><text x="725.998" y="637.619" fill="#000" font-size="14" textLength="59.917">browsing,</text><text x="785.915" y="637.619" fill="#000" font-size="14"> </text><text x="789.805" y="637.619" fill="#000" font-size="14" textLength="27.248">path</text><text x="817.053" y="637.619" fill="#000" font-size="14"> </text><text x="820.942" y="637.619" fill="#000" font-size="14" textLength="65.379">operations</text><text x="744.291" y="655.229" fill="#000" font-size="14" textLength="23.358">and</text><text x="767.649" y="655.229" fill="#000" font-size="14"> </text><text x="771.539" y="655.229" fill="#000" font-size="14" textLength="67.703">thumbnails</text></g><!--entity library--><g class="entity" data-qualified-name="wb.library" id="ent0004" data-source-line="78"><rect x="917.353" y="525.039" width="199.765" height="143.266" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="938.993" y="551.648" fill="#000" font-size="16" textLength="54.242" font-weight="700">Library</text><text x="993.235" y="551.648" fill="#000" font-size="16" font-weight="700"> </text><text x="997.68" y="551.648" fill="#000" font-size="16" textLength="97.797" font-weight="700">Management</text><text x="936.033" y="567.621" fill="#000" font-size="12" textLength="80.045" font-style="italic">[FastEndpoints</text><text x="1016.078" y="567.621" fill="#000" font-size="12" font-style="italic"> </text><text x="1019.412" y="567.621" fill="#000" font-size="12" font-stylLine truncated

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

@@ -1,11 +1,11 @@
@startuml Lumina API Server Components
@startuml Nemera API Server Components
!pragma layout elk
!include <C4/C4_Component>
LAYOUT_WITH_LEGEND()
title Component diagram for Lumina API Server 2.2
title Component diagram for Nemera API Server 2.2
Container_Ext(webapp, "Web Application Client 2.1", "Lumina.Presentation.Web", "Provides the user interface [detailed in '3.1 component-web-client-diagram.puml']")
Container_Ext(webapp, "Web Application Client 2.1", "Nemera.Presentation.Web", "Provides the user interface [detailed in '3.1 component-web-client-diagram.puml']")
Container_Boundary(api, "API Server 2.2") {
Component(endpoints, "API Endpoints", "FastEndpoints", "Provides REST API endpoints for libraries, media items, playback, reading, favorites, playlists, statistics, plugins, themes, scheduling, users, administration and maintenance")
@@ -26,7 +26,7 @@ Container_Boundary(api, "API Server 2.2") {
Component(bookReading, "Book Reading 3.2.2", "Application + Infrastructure services", "Resolves the reader plugin of a book, checks its per-library enablement, extracts the book into the reading cache on first access, sanitizes every section, and serves the reading manifest, sections and resources [detailed in '4.2 code-book-reading-diagram.puml']")
Component(readerPlugins, "Book Reader Plugins", "Lumina.Plugins.Epub, Lumina.Plugins.Pdf", "Decode a book format into a normalized reading document (spine, table of contents, sections, resources), loaded into the host by the plugin loader [detailed in '4.2 code-book-reading-diagram.puml']")
Component(readerPlugins, "Book Reader Plugins", "Nemera.Plugins.Epub, Nemera.Plugins.Pdf", "Decode a book format into a normalized reading document (spine, table of contents, sections, resources), loaded into the host by the plugin loader [detailed in '4.2 code-book-reading-diagram.puml']")
Component(musicPlayback, "Music Playback", "Application + Infrastructure services", "Decides how a track is delivered, normalizes audio with ffmpeg, caches it as segments and serves the track stream and segment endpoints")
@@ -97,7 +97,7 @@ Rel(scheduledJobs, themes, "Repairs the installed themes of its RepairThemes tas
Rel(scheduledJobs, readCache, "Empties with its CleanTemporaryFiles task", "File system")
Rel(repositories, db, "Reads from and writes to", "SQL")
caption [Component] Lumina - API Server 2.2 (Lumina.Presentation.Api)
caption [Component] Nemera - API Server 2.2 (Nemera.Presentation.Api)
footer The component diagram for the Lumina API Server 2.2 - created with PlantUML
footer The component diagram for the Nemera API Server 2.2 - created with PlantUML
@enduml
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:3333px;height:2688px;background:#FFFFFF;" width="3333px" height="2688px" viewBox="0 0 3333 2688" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="1508.296" y="24.533" fill="#000" font-size="14" textLength="310.399" font-weight="700">Component diagram for Lumina API Server 2.2</text></g><rect x="12" y="275.578" width="3106.893" height="1774.25" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="1511.634" y="294.188" fill="#444" font-size="16" textLength="107.625" font-weight="700">API Server 2.2</text><text x="1534.445" y="310.16" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text><!--entity endpoints--><g class="entity" data-qualified-name="api.endpoints" id="ent0003" data-source-line="78"><rect x="2776.252" y="325.578" width="218.454" height="178.484" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="2830.815" y="352.188" fill="#000" font-size="16" textLength="26.672" font-weight="700">API</text><text x="2857.487" y="352.188" fill="#000" font-size="16" font-weight="700"> </text><text x="2861.933" y="352.188" fill="#000" font-size="16" textLength="78.211" font-weight="700">Endpoints</text><text x="2843.79" y="368.16" fill="#000" font-size="12" textLength="83.379" font-style="italic">[FastEndpoints]</text><text x="2883.535" y="385.33" fill="#000" font-size="14"> </text><text x="2792.101" y="402.939" fill="#000" font-size="14" textLength="54.469">Provides</text><text x="2846.569" y="402.939" fill="#000" font-size="14"> </text><text x="2850.459" y="402.939" fill="#000" font-size="14" textLength="37.338">REST</text><text x="2887.797" y="402.939" fill="#000" font-size="14"> </text><text x="2891.687" y="402.939" fill="#000" font-size="14" textLength="22.565">API</text><text x="2914.252" y="402.939" fill="#000" font-size="14"> </text><text x="2918.142" y="402.939" fill="#000" font-size="14" textLength="60.717">endpoints</text><text x="2807.29" y="420.549" fill="#000" font-size="14" textLength="16.338">for</text><text x="2823.628" y="420.549" fill="#000" font-size="14"> </text><text x="2827.518" y="420.549" fill="#000" font-size="14" textLength="52.903">libraries,</text><text x="2880.421" y="420.549" fill="#000" font-size="14"> </text><text x="2884.311" y="420.549" fill="#000" font-size="14" textLength="38.131">media</text><text x="2922.441" y="420.549" fill="#000" font-size="14"> </text><text x="2926.331" y="420.549" fill="#000" font-size="14" textLength="37.338">items,</text><text x="2798.321" y="438.158" fill="#000" font-size="14" textLength="59.145">playback,</text><text x="2857.466" y="438.158" fill="#000" font-size="14"> </text><text x="2861.355" y="438.158" fill="#000" font-size="14" textLength="50.593">reading,</text><text x="2911.948" y="438.158" fill="#000" font-size="14"> </text><text x="2915.838" y="438.158" fill="#000" font-size="14" textLength="56.8">favorites,</text><text x="2801.838" y="455.768" fill="#000" font-size="14" textLength="53.683">playlists,</text><text x="2855.521" y="455.768" fill="#000" font-size="14"> </text><text x="2859.411" y="455.768" fill="#000" font-size="14" textLength="57.565">statistics,</text><text x="2916.976" y="455.768" fill="#000" font-size="14"> </text><text x="2920.866" y="455.768" fill="#000" font-size="14" textLength="48.255">plugins,</text><text x="2802.214" y="473.377" fill="#000" font-size="14" textLength="49.8">themes,</text><text x="2852.014" y="473.377" fill="#000" font-size="14"> </text><text x="2855.904" y="473.377" fill="#000" font-size="14" textLength="70.827">scheduling,</text><text x="2926.731" y="473.377" fill="#000" font-size="14"> </text><text x="2930.621" y="473.377" fill="#000" font-size="14" textLength="38.124">users,</text><text x="2786.252" y="490.986" fill="#000" font-size="14" textLength="87.151">administration</text><text x="2873.404" y="490.986" fill="#000" font-size="14"> </text><text x="2877.293" y="490.986" fill="#000" font-size="14" textLength="23.358">and</text><text x="2900.652" y="490.986" fill="#000" font-size="14"> </text><text x="2904.542" y="490.986" fill="#000" font-size="14" textLength="80.165">maintenance</text></g><!--entity mediaManagement--><g class="entity" data-qualified-name="api.mediaManagement" id="ent0004" data-source-line="78"><rect x="1636.311" y="1116.703" width="218.468" height="163.391" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="1693.53" y="1143.313" fill="#000" font-size="16" textLength="45.344" font-weight="700">Media</text><text x="1738.873" y="1143.313" fill="#000" font-size="16" font-weight="700"> </text><text x="1743.319" y="1143.313" fill="#000" font-size="16" textLength="54.242" font-weight="700">LibraryLine truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="DESCRIPTION" style="width:3333px;height:2688px;background:#FFFFFF;" width="3333px" height="2688px" viewBox="0 0 3333 2688" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="1508.296" y="24.533" fill="#000" font-size="14" textLength="310.399" font-weight="700">Component diagram for Nemera API Server 2.2</text></g><rect x="12" y="275.578" width="3106.893" height="1774.25" fill="none" style="stroke:#181818;stroke-width:1;" rx="2.5" ry="2.5"/><text x="1511.634" y="294.188" fill="#444" font-size="16" textLength="107.625" font-weight="700">API Server 2.2</text><text x="1534.445" y="310.16" fill="#444" font-size="12" textLength="62.004" font-weight="700">[container]</text><!--entity endpoints--><g class="entity" data-qualified-name="api.endpoints" id="ent0003" data-source-line="78"><rect x="2776.252" y="325.578" width="218.454" height="178.484" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="2830.815" y="352.188" fill="#000" font-size="16" textLength="26.672" font-weight="700">API</text><text x="2857.487" y="352.188" fill="#000" font-size="16" font-weight="700"> </text><text x="2861.933" y="352.188" fill="#000" font-size="16" textLength="78.211" font-weight="700">Endpoints</text><text x="2843.79" y="368.16" fill="#000" font-size="12" textLength="83.379" font-style="italic">[FastEndpoints]</text><text x="2883.535" y="385.33" fill="#000" font-size="14"> </text><text x="2792.101" y="402.939" fill="#000" font-size="14" textLength="54.469">Provides</text><text x="2846.569" y="402.939" fill="#000" font-size="14"> </text><text x="2850.459" y="402.939" fill="#000" font-size="14" textLength="37.338">REST</text><text x="2887.797" y="402.939" fill="#000" font-size="14"> </text><text x="2891.687" y="402.939" fill="#000" font-size="14" textLength="22.565">API</text><text x="2914.252" y="402.939" fill="#000" font-size="14"> </text><text x="2918.142" y="402.939" fill="#000" font-size="14" textLength="60.717">endpoints</text><text x="2807.29" y="420.549" fill="#000" font-size="14" textLength="16.338">for</text><text x="2823.628" y="420.549" fill="#000" font-size="14"> </text><text x="2827.518" y="420.549" fill="#000" font-size="14" textLength="52.903">libraries,</text><text x="2880.421" y="420.549" fill="#000" font-size="14"> </text><text x="2884.311" y="420.549" fill="#000" font-size="14" textLength="38.131">media</text><text x="2922.441" y="420.549" fill="#000" font-size="14"> </text><text x="2926.331" y="420.549" fill="#000" font-size="14" textLength="37.338">items,</text><text x="2798.321" y="438.158" fill="#000" font-size="14" textLength="59.145">playback,</text><text x="2857.466" y="438.158" fill="#000" font-size="14"> </text><text x="2861.355" y="438.158" fill="#000" font-size="14" textLength="50.593">reading,</text><text x="2911.948" y="438.158" fill="#000" font-size="14"> </text><text x="2915.838" y="438.158" fill="#000" font-size="14" textLength="56.8">favorites,</text><text x="2801.838" y="455.768" fill="#000" font-size="14" textLength="53.683">playlists,</text><text x="2855.521" y="455.768" fill="#000" font-size="14"> </text><text x="2859.411" y="455.768" fill="#000" font-size="14" textLength="57.565">statistics,</text><text x="2916.976" y="455.768" fill="#000" font-size="14"> </text><text x="2920.866" y="455.768" fill="#000" font-size="14" textLength="48.255">plugins,</text><text x="2802.214" y="473.377" fill="#000" font-size="14" textLength="49.8">themes,</text><text x="2852.014" y="473.377" fill="#000" font-size="14"> </text><text x="2855.904" y="473.377" fill="#000" font-size="14" textLength="70.827">scheduling,</text><text x="2926.731" y="473.377" fill="#000" font-size="14"> </text><text x="2930.621" y="473.377" fill="#000" font-size="14" textLength="38.124">users,</text><text x="2786.252" y="490.986" fill="#000" font-size="14" textLength="87.151">administration</text><text x="2873.404" y="490.986" fill="#000" font-size="14"> </text><text x="2877.293" y="490.986" fill="#000" font-size="14" textLength="23.358">and</text><text x="2900.652" y="490.986" fill="#000" font-size="14"> </text><text x="2904.542" y="490.986" fill="#000" font-size="14" textLength="80.165">maintenance</text></g><!--entity mediaManagement--><g class="entity" data-qualified-name="api.mediaManagement" id="ent0004" data-source-line="78"><rect x="1636.311" y="1116.703" width="218.468" height="163.391" fill="#85BBF0" style="stroke:#78A8D8;stroke-width:0.5;"/><text x="1693.53" y="1143.313" fill="#000" font-size="16" textLength="45.344" font-weight="700">Media</text><text x="1738.873" y="1143.313" fill="#000" font-size="16" font-weight="700"> </text><text x="1743.319" y="1143.313" fill="#000" font-size="16" textLength="54.242" font-weight="700">LibraryLine truncated

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 141 KiB

@@ -576,7 +576,7 @@ LibraryScanProgressChangedDomainEventHandler --> IMediaLibraryScanProgressNotifi
LibraryScanJobProgressChangedDomainEventHandler --> IMediaLibrariesScanProgressTracker : updates job progress
LibraryScanJobProgressChangedDomainEventHandler --> IMediaLibraryScanProgressNotifier : notifies update
caption [Code] Lumina - Media Library Scanning 3.2.1
caption [Code] Nemera - Media Library Scanning 3.2.1
footer The code diagram for the Media Library Scanning 3.2.1 - created with PlantUML
@enduml
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:4563px;height:6440px;background:#FFFFFF;" width="4563px" height="6440px" viewBox="0 0 4563 6440" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="2122.046" y="24.533" fill="#000" font-size="14" textLength="312.744" font-weight="700">Code diagram for Media Library Scanning 3.2.1</text></g><!--class IMediaLibraryScanJob--><g class="entity" data-qualified-name="IMediaLibraryScanJob" id="ent0001" data-source-line="14"><rect x="2721.682" y="3260" width="210.434" height="312.141" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="2754.294" cy="3276" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M2755.247,3272.641 L2755.247,3279.297 L2756.966,3279.297 Q2757.575,3279.297 2757.841,3279.531 Q2758.107,3279.766 2758.107,3280.156 Q2758.107,3280.531 2757.841,3280.766 Q2757.575,3281 2756.966,3281 L2751.825,3281 Q2751.216,3281 2750.95,3280.766 Q2750.685,3280.531 2750.685,3280.141 Q2750.685,3279.766 2750.95,3279.531 Q2751.216,3279.297 2751.825,3279.297 L2753.544,3279.297 L2753.544,3272.641 L2751.825,3272.641 Q2751.216,3272.641 2750.95,3272.406 Q2750.685,3272.172 2750.685,3271.781 Q2750.685,3271.406 2750.95,3271.172 Q2751.216,3270.938 2751.825,3270.938 L2756.966,3270.938 Q2757.575,3270.938 2757.841,3271.172 Q2758.107,3271.406 2758.107,3271.781 Q2758.107,3272.172 2757.841,3272.406 Q2757.575,3272.641 2756.966,3272.641 L2755.247,3272.641 Z " fill="#000"/><text x="2772.208" y="3281.729" fill="#000" font-size="14" textLength="139.296" font-style="italic">IMediaLibraryScanJob</text><line x1="2722.682" y1="3292" x2="2931.116" y2="3292" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3306.305" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3310.533" fill="#000" font-size="14" textLength="47.476">ScanId:</text><text x="2789.158" y="3310.533" fill="#000" font-size="14"> </text><text x="2793.047" y="3310.533" fill="#000" font-size="14" textLength="43.586">ScanId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3323.914" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3328.143" fill="#000" font-size="14" textLength="45.124">UserId:</text><text x="2786.806" y="3328.143" fill="#000" font-size="14"> </text><text x="2790.696" y="3328.143" fill="#000" font-size="14" textLength="41.234">UserId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3341.523" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3345.752" fill="#000" font-size="14" textLength="58.358">LibraryId:</text><text x="2800.04" y="3345.752" fill="#000" font-size="14"> </text><text x="2803.93" y="3345.752" fill="#000" font-size="14" textLength="54.469">LibraryId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3367.938" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3363.361" fill="#000" font-size="14" textLength="56.027">Children:</text><text x="2741.682" y="3380.971" fill="#000" font-size="14" textLength="177.434">List&lt;IMediaLibraryScanJob></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3403.156" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3398.58" fill="#000" font-size="14" textLength="52.138">Parents:</text><text x="2741.682" y="3416.189" fill="#000" font-size="14" textLength="177.434">List&lt;IMediaLibraryScanJob></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3429.57" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3433.799" fill="#000" font-size="14" textLength="43.579">Status:</text><text x="2785.261" y="3433.799" fill="#000" font-size="14"> </text><text x="2789.151" y="3433.799" fill="#000" font-size="14" textLength="136.965">LibraryScanJobStatus</text><line x1="2722.682" y1="3440.875" x2="2931.116" y2="3440.875" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="2732.682" cy="3463.984" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3459.408" fill="#000" font-size="14" textLength="84.048">AddChild(job:</text><text x="2741.682" y="3477.018" fill="#000" font-size="14" textLength="143.958">IMediaLibraryScanJob)</text><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="2732.682" cy="3499.203" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3494.627" fill="#000" font-size="14" textLength="93.393">AddParent(job:</text><teLine truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:4563px;height:6440px;background:#FFFFFF;" width="4563px" height="6440px" viewBox="0 0 4563 6440" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="2122.046" y="24.533" fill="#000" font-size="14" textLength="312.744" font-weight="700">Code diagram for Media Library Scanning 3.2.1</text></g><!--class IMediaLibraryScanJob--><g class="entity" data-qualified-name="IMediaLibraryScanJob" id="ent0001" data-source-line="14"><rect x="2721.682" y="3260" width="210.434" height="312.141" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="2754.294" cy="3276" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M2755.247,3272.641 L2755.247,3279.297 L2756.966,3279.297 Q2757.575,3279.297 2757.841,3279.531 Q2758.107,3279.766 2758.107,3280.156 Q2758.107,3280.531 2757.841,3280.766 Q2757.575,3281 2756.966,3281 L2751.825,3281 Q2751.216,3281 2750.95,3280.766 Q2750.685,3280.531 2750.685,3280.141 Q2750.685,3279.766 2750.95,3279.531 Q2751.216,3279.297 2751.825,3279.297 L2753.544,3279.297 L2753.544,3272.641 L2751.825,3272.641 Q2751.216,3272.641 2750.95,3272.406 Q2750.685,3272.172 2750.685,3271.781 Q2750.685,3271.406 2750.95,3271.172 Q2751.216,3270.938 2751.825,3270.938 L2756.966,3270.938 Q2757.575,3270.938 2757.841,3271.172 Q2758.107,3271.406 2758.107,3271.781 Q2758.107,3272.172 2757.841,3272.406 Q2757.575,3272.641 2756.966,3272.641 L2755.247,3272.641 Z " fill="#000"/><text x="2772.208" y="3281.729" fill="#000" font-size="14" textLength="139.296" font-style="italic">IMediaLibraryScanJob</text><line x1="2722.682" y1="3292" x2="2931.116" y2="3292" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3306.305" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3310.533" fill="#000" font-size="14" textLength="47.476">ScanId:</text><text x="2789.158" y="3310.533" fill="#000" font-size="14"> </text><text x="2793.047" y="3310.533" fill="#000" font-size="14" textLength="43.586">ScanId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3323.914" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3328.143" fill="#000" font-size="14" textLength="45.124">UserId:</text><text x="2786.806" y="3328.143" fill="#000" font-size="14"> </text><text x="2790.696" y="3328.143" fill="#000" font-size="14" textLength="41.234">UserId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3341.523" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3345.752" fill="#000" font-size="14" textLength="58.358">LibraryId:</text><text x="2800.04" y="3345.752" fill="#000" font-size="14"> </text><text x="2803.93" y="3345.752" fill="#000" font-size="14" textLength="54.469">LibraryId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3367.938" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3363.361" fill="#000" font-size="14" textLength="56.027">Children:</text><text x="2741.682" y="3380.971" fill="#000" font-size="14" textLength="177.434">List&lt;IMediaLibraryScanJob></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3403.156" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3398.58" fill="#000" font-size="14" textLength="52.138">Parents:</text><text x="2741.682" y="3416.189" fill="#000" font-size="14" textLength="177.434">List&lt;IMediaLibraryScanJob></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2732.682" cy="3429.57" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3433.799" fill="#000" font-size="14" textLength="43.579">Status:</text><text x="2785.261" y="3433.799" fill="#000" font-size="14"> </text><text x="2789.151" y="3433.799" fill="#000" font-size="14" textLength="136.965">LibraryScanJobStatus</text><line x1="2722.682" y1="3440.875" x2="2931.116" y2="3440.875" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="2732.682" cy="3463.984" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3459.408" fill="#000" font-size="14" textLength="84.048">AddChild(job:</text><text x="2741.682" y="3477.018" fill="#000" font-size="14" textLength="143.958">IMediaLibraryScanJob)</text><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="2732.682" cy="3499.203" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="2741.682" y="3494.627" fill="#000" font-size="14" textLength="93.393">AddParent(job:</text><teLine truncated

Before

Width:  |  Height:  |  Size: 333 KiB

After

Width:  |  Height:  |  Size: 333 KiB

@@ -93,7 +93,7 @@ note bottom of ReadingCachePaths
end note
class ReadingContentSanitizer {
+ RESOURCE_ATTRIBUTE: string = data-lumina-resource
+ RESOURCE_ATTRIBUTE: string = data-nemera-resource
+ {static} Sanitize(html: string, shouldPreserveStyles: bool): string
}
@@ -183,7 +183,7 @@ interface IBookReader {
}
note top of IBookReader
Contract of a reader plugin, implemented in Lumina.Plugins.Contracts.
Contract of a reader plugin, implemented in Nemera.Plugins.Contracts.
The plugins are host-trusted: they receive the absolute path of the
book and a working directory to extract into, while the host
sanitizes and contained-checks everything they produce before
@@ -227,7 +227,7 @@ end note
class EpubPlugin {
+ Id: Guid
+ Name: string = EPUB Reader
+ Author: string = Lumina
+ Author: string = Nemera
+ Version: Version
+ Description: string
+ GetSettingsSchema(): IReadOnlyList<PluginSettingDescriptorDto>
@@ -237,7 +237,7 @@ class EpubPlugin {
class PdfPlugin {
+ Id: Guid
+ Name: string = PDF Reader
+ Author: string = Lumina
+ Author: string = Nemera
+ Version: Version
+ Description: string
+ GetSettingsSchema(): IReadOnlyList<PluginSettingDescriptorDto>
@@ -284,7 +284,7 @@ PdfReader ..> PdfDocumentParser : parses and renders pages
EpubPlugin ..> EpubReader : registers as a keyed IBookReader
PdfPlugin ..> PdfReader : registers as a keyed IBookReader
caption [Code] Lumina - Book Reading 3.2.2 and Book Reader Plugins
caption [Code] Nemera - Book Reading 3.2.2 and Book Reader Plugins
footer The code diagram for the Book Reading 3.2.2 and the Book Reader Plugins - created with PlantUML
@enduml
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:2574px;height:3537px;background:#FFFFFF;" width="2574px" height="3537px" viewBox="0 0 2574 3537" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="1072.392" y="24.533" fill="#000" font-size="14" textLength="422.413" font-weight="700">Code diagram for Book Reading 3.2.2 and Book Reader Plugins</text></g><!--class IBookReadingService--><g class="entity" data-qualified-name="IBookReadingService" id="ent0001" data-source-line="14"><rect x="144.015" y="50.609" width="310.054" height="558.672" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="227.475" cy="66.609" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M228.428,63.25 L228.428,69.906 L230.147,69.906 Q230.756,69.906 231.022,70.141 Q231.287,70.375 231.287,70.766 Q231.287,71.141 231.022,71.375 Q230.756,71.609 230.147,71.609 L225.006,71.609 Q224.397,71.609 224.131,71.375 Q223.865,71.141 223.865,70.75 Q223.865,70.375 224.131,70.141 Q224.397,69.906 225.006,69.906 L226.725,69.906 L226.725,63.25 L225.006,63.25 Q224.397,63.25 224.131,63.016 Q223.865,62.781 223.865,62.391 Q223.865,62.016 224.131,61.781 Q224.397,61.547 225.006,61.547 L230.147,61.547 Q230.756,61.547 231.022,61.781 Q231.287,62.016 231.287,62.391 Q231.287,62.781 231.022,63.016 Q230.756,63.25 230.147,63.25 L228.428,63.25 Z " fill="#000"/><text x="247.975" y="72.338" fill="#000" font-size="14" textLength="134.634" font-style="italic">IBookReadingService</text><line x1="145.015" y1="82.609" x2="453.068" y2="82.609" style="stroke:#000;stroke-width:0.5;"/><line x1="145.015" y1="90.609" x2="453.068" y2="90.609" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="155.015" cy="157.742" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="164.015" y="109.143" fill="#000" font-size="14" textLength="164.186">GetManifestAsync(bookId:</text><text x="164.015" y="126.752" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="197.477" y="126.752" fill="#000" font-size="14"> </text><text x="201.366" y="126.752" fill="#000" font-size="14" textLength="53.683">libraryId:</text><text x="255.049" y="126.752" fill="#000" font-size="14"> </text><text x="258.939" y="126.752" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="292.401" y="126.752" fill="#000" font-size="14"> </text><text x="296.29" y="126.752" fill="#000" font-size="14" textLength="31.138">path:</text><text x="164.015" y="144.361" fill="#000" font-size="14" textLength="38.124">string,</text><text x="202.139" y="144.361" fill="#000" font-size="14"> </text><text x="206.028" y="144.361" fill="#000" font-size="14" textLength="73.131">libraryType:</text><text x="279.159" y="144.361" fill="#000" font-size="14"> </text><text x="283.049" y="144.361" fill="#000" font-size="14" textLength="77.807">LibraryType,</text><text x="164.015" y="161.971" fill="#000" font-size="14" textLength="174.323">shouldRenderPdfAsImages:</text><text x="164.015" y="179.58" fill="#000" font-size="14" textLength="30.358">bool,</text><text x="194.373" y="179.58" fill="#000" font-size="14"> </text><text x="198.263" y="179.58" fill="#000" font-size="14" textLength="38.138">token:</text><text x="164.015" y="197.189" fill="#000" font-size="14" textLength="124.51">CancellationToken):</text><text x="164.015" y="214.799" fill="#000" font-size="14" textLength="270.826">Task&lt;Result&lt;ReadingManifestResponse>></text><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="155.015" cy="298.617" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="164.015" y="232.408" fill="#000" font-size="14" textLength="157.972">GetSectionAsync(bookId:</text><text x="321.986" y="232.408" fill="#000" font-size="14"> </text><text x="325.876" y="232.408" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="164.015" y="250.018" fill="#000" font-size="14" textLength="53.683">libraryId:</text><text x="217.697" y="250.018" fill="#000" font-size="14"> </text><text x="221.587" y="250.018" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="255.049" y="250.018" fill="#000" font-size="14"> </text><text x="258.939" y="250.018" fill="#000" font-size="14" textLength="31.138">path:</text><text x="290.076" y="250.018" fill="#000" font-size="14"> </text><text x="293.966" y="250.018" fill="#000" font-size="14" textLength="38.124">string,</text><text x="164.015" y="267.627" fill="#000" font-size="14" textLength="73.131">libraryType:</text><text x="237.146" y="267.627" fill="#000" font-size="14"> </text><text x="241.035" y="267.627" fill="#000" font-size="14" textLength="77.807">LibraryType,</text><text x="164.015" y="28Line truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:2574px;height:3537px;background:#FFFFFF;" width="2574px" height="3537px" viewBox="0 0 2574 3537" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="1072.392" y="24.533" fill="#000" font-size="14" textLength="422.413" font-weight="700">Code diagram for Book Reading 3.2.2 and Book Reader Plugins</text></g><!--class IBookReadingService--><g class="entity" data-qualified-name="IBookReadingService" id="ent0001" data-source-line="14"><rect x="144.015" y="50.609" width="310.054" height="558.672" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="227.475" cy="66.609" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M228.428,63.25 L228.428,69.906 L230.147,69.906 Q230.756,69.906 231.022,70.141 Q231.287,70.375 231.287,70.766 Q231.287,71.141 231.022,71.375 Q230.756,71.609 230.147,71.609 L225.006,71.609 Q224.397,71.609 224.131,71.375 Q223.865,71.141 223.865,70.75 Q223.865,70.375 224.131,70.141 Q224.397,69.906 225.006,69.906 L226.725,69.906 L226.725,63.25 L225.006,63.25 Q224.397,63.25 224.131,63.016 Q223.865,62.781 223.865,62.391 Q223.865,62.016 224.131,61.781 Q224.397,61.547 225.006,61.547 L230.147,61.547 Q230.756,61.547 231.022,61.781 Q231.287,62.016 231.287,62.391 Q231.287,62.781 231.022,63.016 Q230.756,63.25 230.147,63.25 L228.428,63.25 Z " fill="#000"/><text x="247.975" y="72.338" fill="#000" font-size="14" textLength="134.634" font-style="italic">IBookReadingService</text><line x1="145.015" y1="82.609" x2="453.068" y2="82.609" style="stroke:#000;stroke-width:0.5;"/><line x1="145.015" y1="90.609" x2="453.068" y2="90.609" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="155.015" cy="157.742" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="164.015" y="109.143" fill="#000" font-size="14" textLength="164.186">GetManifestAsync(bookId:</text><text x="164.015" y="126.752" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="197.477" y="126.752" fill="#000" font-size="14"> </text><text x="201.366" y="126.752" fill="#000" font-size="14" textLength="53.683">libraryId:</text><text x="255.049" y="126.752" fill="#000" font-size="14"> </text><text x="258.939" y="126.752" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="292.401" y="126.752" fill="#000" font-size="14"> </text><text x="296.29" y="126.752" fill="#000" font-size="14" textLength="31.138">path:</text><text x="164.015" y="144.361" fill="#000" font-size="14" textLength="38.124">string,</text><text x="202.139" y="144.361" fill="#000" font-size="14"> </text><text x="206.028" y="144.361" fill="#000" font-size="14" textLength="73.131">libraryType:</text><text x="279.159" y="144.361" fill="#000" font-size="14"> </text><text x="283.049" y="144.361" fill="#000" font-size="14" textLength="77.807">LibraryType,</text><text x="164.015" y="161.971" fill="#000" font-size="14" textLength="174.323">shouldRenderPdfAsImages:</text><text x="164.015" y="179.58" fill="#000" font-size="14" textLength="30.358">bool,</text><text x="194.373" y="179.58" fill="#000" font-size="14"> </text><text x="198.263" y="179.58" fill="#000" font-size="14" textLength="38.138">token:</text><text x="164.015" y="197.189" fill="#000" font-size="14" textLength="124.51">CancellationToken):</text><text x="164.015" y="214.799" fill="#000" font-size="14" textLength="270.826">Task&lt;Result&lt;ReadingManifestResponse>></text><g data-visibility-modifier="PUBLIC_METHOD"><ellipse cx="155.015" cy="298.617" rx="3" ry="3" fill="#84BE84" style="stroke:#038048;stroke-width:1;"/></g><text x="164.015" y="232.408" fill="#000" font-size="14" textLength="157.972">GetSectionAsync(bookId:</text><text x="321.986" y="232.408" fill="#000" font-size="14"> </text><text x="325.876" y="232.408" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="164.015" y="250.018" fill="#000" font-size="14" textLength="53.683">libraryId:</text><text x="217.697" y="250.018" fill="#000" font-size="14"> </text><text x="221.587" y="250.018" fill="#000" font-size="14" textLength="33.462">Guid,</text><text x="255.049" y="250.018" fill="#000" font-size="14"> </text><text x="258.939" y="250.018" fill="#000" font-size="14" textLength="31.138">path:</text><text x="290.076" y="250.018" fill="#000" font-size="14"> </text><text x="293.966" y="250.018" fill="#000" font-size="14" textLength="38.124">string,</text><text x="164.015" y="267.627" fill="#000" font-size="14" textLength="73.131">libraryType:</text><text x="237.146" y="267.627" fill="#000" font-size="14"> </text><text x="241.035" y="267.627" fill="#000" font-size="14" textLength="77.807">LibraryType,</text><text x="164.015" y="28Line truncated

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 185 KiB

@@ -563,7 +563,7 @@ ScheduledJobRepository --> ScheduledJobEntity : persists
ScheduledJobExecutionRepository --> ScheduledJobExecutionEntity : persists
SchedulerDisplayPreferencesRepository --> SchedulerDisplayPreferencesEntity : persists
caption [Code] Lumina - Scheduled Jobs 3.2.3
caption [Code] Nemera - Scheduled Jobs 3.2.3
footer The code diagram for the Scheduled Jobs 3.2.3 - created with PlantUML
@enduml
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:10247px;height:4267px;background:#FFFFFF;" width="10247px" height="4267px" viewBox="0 0 10247 4267" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="4989.402" y="24.533" fill="#000" font-size="14" textLength="262.179" font-weight="700">Code diagram for Scheduled Jobs 3.2.3</text></g><!--class ScheduledJob--><g class="entity" data-qualified-name="ScheduledJob" id="ent0001" data-source-line="14"><rect x="2449.27" y="2302.266" width="265.647" height="646.719" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="2533.475" cy="2318.266" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M2536.24,2314.141 Q2536.397,2313.922 2536.584,2313.813 Q2536.772,2313.703 2536.99,2313.703 Q2537.365,2313.703 2537.6,2313.969 Q2537.834,2314.219 2537.834,2314.828 L2537.834,2316.281 Q2537.834,2316.891 2537.6,2317.156 Q2537.365,2317.422 2536.99,2317.422 Q2536.647,2317.422 2536.444,2317.219 Q2536.24,2317.031 2536.131,2316.516 Q2536.084,2316.156 2535.897,2315.969 Q2535.569,2315.594 2534.959,2315.375 Q2534.35,2315.156 2533.725,2315.156 Q2532.959,2315.156 2532.319,2315.484 Q2531.694,2315.813 2531.194,2316.563 Q2530.709,2317.313 2530.709,2318.344 L2530.709,2319.438 Q2530.709,2320.672 2531.6,2321.5 Q2532.49,2322.313 2534.084,2322.313 Q2535.022,2322.313 2535.678,2322.063 Q2536.069,2321.906 2536.49,2321.469 Q2536.756,2321.203 2536.897,2321.125 Q2537.053,2321.047 2537.256,2321.047 Q2537.584,2321.047 2537.834,2321.313 Q2538.1,2321.563 2538.1,2321.906 Q2538.1,2322.25 2537.756,2322.656 Q2537.256,2323.234 2536.459,2323.563 Q2535.381,2324.016 2534.084,2324.016 Q2532.569,2324.016 2531.365,2323.391 Q2530.381,2322.891 2529.694,2321.828 Q2529.006,2320.75 2529.006,2319.469 L2529.006,2318.313 Q2529.006,2316.984 2529.615,2315.844 Q2530.24,2314.688 2531.334,2314.078 Q2532.428,2313.453 2533.662,2313.453 Q2534.397,2313.453 2535.037,2313.625 Q2535.694,2313.781 2536.24,2314.141 Z " fill="#000"/><text x="2553.975" y="2323.994" fill="#000" font-size="14" textLength="88.737">ScheduledJob</text><line x1="2450.27" y1="2334.266" x2="2713.917" y2="2334.266" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PRIVATE_FIELD"><rect x="2457.27" y="2354.375" width="6" height="6" fill="none" style="stroke:#C82930;stroke-width:1;"/></g><text x="2469.27" y="2352.799" fill="#000" font-size="14" textLength="154.089">_currentExecutionRunId:</text><text x="2469.27" y="2370.408" fill="#000" font-size="14" textLength="98.068">Optional&lt;Guid></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2383.789" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2388.018" fill="#000" font-size="14" textLength="41.234">Name:</text><text x="2510.504" y="2388.018" fill="#000" font-size="14"> </text><text x="2514.394" y="2388.018" fill="#000" font-size="14" textLength="34.234">string</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2401.398" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2405.627" fill="#000" font-size="14" textLength="65.352">TaskType:</text><text x="2534.621" y="2405.627" fill="#000" font-size="14"> </text><text x="2538.511" y="2405.627" fill="#000" font-size="14" textLength="127.627">ScheduledTaskType</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2419.008" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2423.236" fill="#000" font-size="14" textLength="62.269">Schedule:</text><text x="2531.538" y="2423.236" fill="#000" font-size="14"> </text><text x="2535.428" y="2423.236" fill="#000" font-size="14" textLength="58.379">Schedule</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2436.617" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2440.846" fill="#000" font-size="14" textLength="43.579">Status:</text><text x="2512.849" y="2440.846" fill="#000" font-size="14"> </text><text x="2516.739" y="2440.846" fill="#000" font-size="14" textLength="128.427">ScheduledJobStatus</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2454.227" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2458.455" fill="#000" font-size="14" textLength="86.358">OwnerUserId:</text><text x="2555.628" y="2458.455" fill="#000" font-size="14"> </text><text x="2559.518" y="2458.455" fill="#000" font-size="14" textLength="41.234">UserId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2480.641" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2476Line truncated
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:10247px;height:4267px;background:#FFFFFF;" width="10247px" height="4267px" viewBox="0 0 10247 4267" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.7?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><g class="title" data-source-line="5"><text x="4989.402" y="24.533" fill="#000" font-size="14" textLength="262.179" font-weight="700">Code diagram for Scheduled Jobs 3.2.3</text></g><!--class ScheduledJob--><g class="entity" data-qualified-name="ScheduledJob" id="ent0001" data-source-line="14"><rect x="2449.27" y="2302.266" width="265.647" height="646.719" fill="#FFF" style="stroke:#000;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="2533.475" cy="2318.266" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M2536.24,2314.141 Q2536.397,2313.922 2536.584,2313.813 Q2536.772,2313.703 2536.99,2313.703 Q2537.365,2313.703 2537.6,2313.969 Q2537.834,2314.219 2537.834,2314.828 L2537.834,2316.281 Q2537.834,2316.891 2537.6,2317.156 Q2537.365,2317.422 2536.99,2317.422 Q2536.647,2317.422 2536.444,2317.219 Q2536.24,2317.031 2536.131,2316.516 Q2536.084,2316.156 2535.897,2315.969 Q2535.569,2315.594 2534.959,2315.375 Q2534.35,2315.156 2533.725,2315.156 Q2532.959,2315.156 2532.319,2315.484 Q2531.694,2315.813 2531.194,2316.563 Q2530.709,2317.313 2530.709,2318.344 L2530.709,2319.438 Q2530.709,2320.672 2531.6,2321.5 Q2532.49,2322.313 2534.084,2322.313 Q2535.022,2322.313 2535.678,2322.063 Q2536.069,2321.906 2536.49,2321.469 Q2536.756,2321.203 2536.897,2321.125 Q2537.053,2321.047 2537.256,2321.047 Q2537.584,2321.047 2537.834,2321.313 Q2538.1,2321.563 2538.1,2321.906 Q2538.1,2322.25 2537.756,2322.656 Q2537.256,2323.234 2536.459,2323.563 Q2535.381,2324.016 2534.084,2324.016 Q2532.569,2324.016 2531.365,2323.391 Q2530.381,2322.891 2529.694,2321.828 Q2529.006,2320.75 2529.006,2319.469 L2529.006,2318.313 Q2529.006,2316.984 2529.615,2315.844 Q2530.24,2314.688 2531.334,2314.078 Q2532.428,2313.453 2533.662,2313.453 Q2534.397,2313.453 2535.037,2313.625 Q2535.694,2313.781 2536.24,2314.141 Z " fill="#000"/><text x="2553.975" y="2323.994" fill="#000" font-size="14" textLength="88.737">ScheduledJob</text><line x1="2450.27" y1="2334.266" x2="2713.917" y2="2334.266" style="stroke:#000;stroke-width:0.5;"/><g data-visibility-modifier="PRIVATE_FIELD"><rect x="2457.27" y="2354.375" width="6" height="6" fill="none" style="stroke:#C82930;stroke-width:1;"/></g><text x="2469.27" y="2352.799" fill="#000" font-size="14" textLength="154.089">_currentExecutionRunId:</text><text x="2469.27" y="2370.408" fill="#000" font-size="14" textLength="98.068">Optional&lt;Guid></text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2383.789" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2388.018" fill="#000" font-size="14" textLength="41.234">Name:</text><text x="2510.504" y="2388.018" fill="#000" font-size="14"> </text><text x="2514.394" y="2388.018" fill="#000" font-size="14" textLength="34.234">string</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2401.398" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2405.627" fill="#000" font-size="14" textLength="65.352">TaskType:</text><text x="2534.621" y="2405.627" fill="#000" font-size="14"> </text><text x="2538.511" y="2405.627" fill="#000" font-size="14" textLength="127.627">ScheduledTaskType</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2419.008" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2423.236" fill="#000" font-size="14" textLength="62.269">Schedule:</text><text x="2531.538" y="2423.236" fill="#000" font-size="14"> </text><text x="2535.428" y="2423.236" fill="#000" font-size="14" textLength="58.379">Schedule</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2436.617" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2440.846" fill="#000" font-size="14" textLength="43.579">Status:</text><text x="2512.849" y="2440.846" fill="#000" font-size="14"> </text><text x="2516.739" y="2440.846" fill="#000" font-size="14" textLength="128.427">ScheduledJobStatus</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2454.227" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2458.455" fill="#000" font-size="14" textLength="86.358">OwnerUserId:</text><text x="2555.628" y="2458.455" fill="#000" font-size="14"> </text><text x="2559.518" y="2458.455" fill="#000" font-size="14" textLength="41.234">UserId</text><g data-visibility-modifier="PUBLIC_FIELD"><ellipse cx="2460.27" cy="2480.641" rx="3" ry="3" fill="none" style="stroke:#038048;stroke-width:1;"/></g><text x="2469.27" y="2476Line truncated

Before

Width:  |  Height:  |  Size: 352 KiB

After

Width:  |  Height:  |  Size: 352 KiB

+1 -1
View File
@@ -1,6 +1,6 @@
# Architecture Diagrams
This folder contains the C4 architecture diagrams of Lumina. Every diagram is maintained as a PlantUML source file (`.puml`) and rendered to a committed SVG (`.svg`) with the same base name.
This folder contains the C4 architecture diagrams of Nemera. Every diagram is maintained as a PlantUML source file (`.puml`) and rendered to a committed SVG (`.svg`) with the same base name.
## Layout
@@ -95,9 +95,9 @@ public class JobHandler
### 3. Registration of `DbContextFactory` instead of `DbContext`
```csharp
services.AddDbContextFactory<LuminaDbContext>(options =>
services.AddDbContextFactory<NemeraDbContext>(options =>
{
options.UseSqlite($"Data Source={Path.Combine(basePath, "Lumina.db")}");
options.UseSqlite($"Data Source={Path.Combine(basePath, "Nemera.db")}");
}
```
@@ -10,7 +10,7 @@ The media library scan pipeline stages the file system items discovered during a
2. is read by the diff, hash and metadata enrichment jobs,
3. is written by the discovery job and read by later jobs, which run in separate dependency injection scopes (see [ADR-0001](architecture-decision-record-0001.md)), hence on separate database connections.
A real SQLite `TEMP` table was considered, but SQLite `TEMP` tables are scoped to a single database connection. Because each media library scan job creates its own `AsyncServiceScope`, and therefore its own `LuminaDbContext` and connection ([ADR-0001](architecture-decision-record-0001.md)), a `TEMP` table created by the discovery job would be invisible to the diff job, which runs on a different connection. Making a `TEMP` table work would require pinning a single dedicated connection for the whole staging phase of a scan, a larger architectural carve-out.
A real SQLite `TEMP` table was considered, but SQLite `TEMP` tables are scoped to a single database connection. Because each media library scan job creates its own `AsyncServiceScope`, and therefore its own `NemeraDbContext` and connection ([ADR-0001](architecture-decision-record-0001.md)), a `TEMP` table created by the discovery job would be invisible to the diff job, which runs on a different connection. Making a `TEMP` table work would require pinning a single dedicated connection for the whole staging phase of a scan, a larger architectural carve-out.
## Decision
Use a permanent table, `LibraryScanStagingResults`, keyed by `(LibraryScanId, Path)`. Its rows are deleted at the end of the scan (as part of the snapshot swap transaction of the save job) and on scan failure or cancellation. Leftover rows of a crashed scan are inert, because every scan has a unique id, and can be purged by the audit cleanup job.
@@ -14,7 +14,7 @@ The media library scan jobs perform bulk data operations that the Entity Framewo
Bulk inserts through the EF Core change tracker are slow for hundreds of thousands of rows, because every entity is individually tracked and saved. At the target scale (millions of files), the scan pipeline needs a data access path that is not only fast, but also bounded in memory.
## Decision
Add the Dapper library to the DataAccess layer, and perform the bulk data operations of the scan jobs with parameterized raw SQL on a dedicated `Microsoft.Data.Sqlite` connection, derived from the connection string of the injected `LuminaDbContext`.
Add the Dapper library to the DataAccess layer, and perform the bulk data operations of the scan jobs with parameterized raw SQL on a dedicated `Microsoft.Data.Sqlite` connection, derived from the connection string of the injected `NemeraDbContext`.
These operations never touch the Entity Framework change tracker. Reads that are not bulk (for example loading the media library entity) keep using EF Core, and bulk reads use unbuffered, key-set paginated queries to keep the peak memory bounded.
@@ -19,12 +19,12 @@ Key constraints that shaped this decision:
## Decision
Replace MediatR with minimal, hand-written CQRS abstractions placed in `Lumina.Application.Common.CQRS`. Handlers are resolved directly via the .NET dependency injection container - no mediator object, no runtime reflection dispatch.
Replace MediatR with minimal, hand-written CQRS abstractions placed in `Nemera.Application.Common.CQRS`. Handlers are resolved directly via the .NET dependency injection container - no mediator object, no runtime reflection dispatch.
### Core Abstractions
```csharp
// src/Lumina.Application/Common/CQRS/ICommand.cs
// src/Nemera.Application/Common/CQRS/ICommand.cs
/// <summary>
/// Marker interface for command types handled by <see cref="ICommandHandler{TCommand, TResult}"/>.
@@ -46,7 +46,7 @@ public interface ICommandHandler<in TCommand, TResult> where TCommand : ICommand
```
```csharp
// src/Lumina.Application/Common/CQRS/IQuery.cs
// src/Nemera.Application/Common/CQRS/IQuery.cs
/// <summary>
/// Marker interface for query types handled by <see cref="IQueryHandler{TQuery, TResult}"/>.
@@ -13,11 +13,11 @@ The solution uses FluentValidation to validate commands and queries at the appli
3. **External Dependency Surface**: FluentValidation is a well-maintained library, but the danger of it going commercial, like other open source popular libraries in recent times, and the lack of usage of its advanced features mandates an in-house replacement.
4. **Placement in SharedKernel**: Validation logic is cross-cutting and lives in `Lumina.Application.Common.Infrastructure.Validation`. Owning the abstraction entirely means the validation model stays aligned with the domain's `Error` type without any adapter.
4. **Placement in SharedKernel**: Validation logic is cross-cutting and lives in `Nemera.Application.Common.Infrastructure.Validation`. Owning the abstraction entirely means the validation model stays aligned with the domain's `Error` type without any adapter.
## Decision
Replace FluentValidation with a minimal, first-party validation framework placed in `Lumina.Application.Common.Infrastructure.Validation`. The API mirrors FluentValidation's familiar fluent surface (`RuleFor`, `Must`, `When`, `WithError`) to minimize migration friction.
Replace FluentValidation with a minimal, first-party validation framework placed in `Nemera.Application.Common.Infrastructure.Validation`. The API mirrors FluentValidation's familiar fluent surface (`RuleFor`, `Must`, `When`, `WithError`) to minimize migration friction.
### Core Abstractions
@@ -123,7 +123,7 @@ internal sealed class ValidationRule<TRequest, TProperty>
### Built-in Extension Methods
Common predicates are provided as extension methods on `IRuleBuilder<TRequest, TProperty>` via `ValidatorUtilities`, placed in `Lumina.Application.Common.Utilities`:
Common predicates are provided as extension methods on `IRuleBuilder<TRequest, TProperty>` via `ValidatorUtilities`, placed in `Nemera.Application.Common.Utilities`:
| Extension | Overloads | Behaviour |
|---|---|---|
@@ -19,7 +19,7 @@ The remaining publish half carries the same third-party dependency and source-ge
Replace Mediator's notification publishing with a first-party domain event publisher.
### New Abstractions (in `Lumina.Domain.Common.Events`)
### New Abstractions (in `Nemera.Domain.Common.Events`)
- `IDomainEvent` no longer inherits `INotification`.
- `IDomainEventPublisher` exposes `ValueTask PublishAsync(IDomainEvent domainEvent, CancellationToken cancellationToken = default)`.
@@ -13,11 +13,11 @@ Repositories in the DataAccess layer persist aggregate graphs: they load a track
3. **Scalar copy on edit**: `EditableValuesCopier` applies editable scalar values while leaving the audit columns to the auditing interceptor. Seven auditable repositories (`Role`, `LibraryScan`, `ScheduledJob`, `ScheduledJobExecution`, `Theme`, `User`, `UserSettings`) still copied scalars with `CurrentValues.SetValues`, which writes every scalar property, including the primary key and the audit columns. Writing the primary key is destructive whenever the tracked row was located by a key other than its primary key: `UserRepository` locates the row by username, so an incoming entity whose Id differs from, or is unset relative to, the stored one would retarget the tracked row's identity, leaving the guarantee "the stored identity is never overwritten by an edit" to caller convention instead of to the code.
`Lumina.DataAccess\Common\Persistence` already held `CollectionReconciler` and `EditableValuesCopier`, but there was no shared reference primitive and no explicit boundary defining what may live there, so the shared reference concern was expressed per type and per repository.
`Nemera.DataAccess\Common\Persistence` already held `CollectionReconciler` and `EditableValuesCopier`, but there was no shared reference primitive and no explicit boundary defining what may live there, so the shared reference concern was expressed per type and per repository.
## Decision
Treat `Lumina.DataAccess\Common\Persistence` as a closed set of generic, entity-agnostic primitives that express the whole of aggregate graph persistence. Per-entity logic stays in the repository, and cross-cutting logic is generalized rather than specialized.
Treat `Nemera.DataAccess\Common\Persistence` as a closed set of generic, entity-agnostic primitives that express the whole of aggregate graph persistence. Per-entity logic stays in the repository, and cross-cutting logic is generalized rather than specialized.
### The closed set
@@ -99,6 +99,6 @@ Details edits still go through `EditableValuesCopier`, but the copier now compar
The one-time application initialization is the only save whose audit identity is provided explicitly instead of being stamped by the auditing interceptor. The setup handler creates the original administrator account before any user exists, and the seed service creates the default permissions, roles, role-permission grants, user-role link and scheduled jobs in the same anonymous flow. Those rows therefore cannot derive an actor from `ICurrentUserService`.
The bootstrap code sets `CreatedBy` to the fixed SYSTEM audit identifier `11111111-1111-1111-1111-111111111111` and sets `CreatedOnUtc` from `IDateTimeProvider`, then saves through `SaveChangesAsInitializationAsync`. That method marks the save on the `LuminaDbContext` for its duration, and the interceptor skips its stamping only for that save. No other save path is affected.
The bootstrap code sets `CreatedBy` to the fixed SYSTEM audit identifier `11111111-1111-1111-1111-111111111111` and sets `CreatedOnUtc` from `IDateTimeProvider`, then saves through `SaveChangesAsInitializationAsync`. That method marks the save on the `NemeraDbContext` for its duration, and the interceptor skips its stamping only for that save. No other save path is affected.
The SYSTEM identity is never inferred from a missing authenticated user. Ordinary anonymous creation and modification remain unattributed with `Guid.Empty`, and the interceptor is still the sole writer for every ordinary save. The initialization exception exists because the app has no user account to attribute the bootstrap rows to, and it is confined to the setup and seed code paths.
@@ -5,7 +5,7 @@
## Context
Lumina's music player is implemented from scratch, on WebCodecs for decoding and the Web Audio API for output, with no `HTMLMediaElement` and no Media Source Extensions. That player can only demux a curated set of containers and decode a curated set of codecs, so the server has to tell it, before it fetches any audio, whether a track can be played as stored or whether the server has to change the container or the codec first.
Nemera's music player is implemented from scratch, on WebCodecs for decoding and the Web Audio API for output, with no `HTMLMediaElement` and no Media Source Extensions. That player can only demux a curated set of containers and decode a curated set of codecs, so the server has to tell it, before it fetches any audio, whether a track can be played as stored or whether the server has to change the container or the codec first.
The server already has each track's stored probe result (the container and the codec, plus the sample rate, the channels, the bit depth, the duration and the ReplayGain values) and a stream endpoint with HTTP range support that serves the original file. What is missing is the decision itself and a way for the player to state what it can play.
@@ -43,7 +43,7 @@ The decision includes these rules:
| `MediaConsumptionRecord` | The write aggregate of a session. It holds a `MediaConsumptionRecordId`, the owner, the library, the media kind, the media item identifier, the status, the start, last activity and end times, the consumed duration, the latest position and progress fraction, and the consecutive page count. No album, artist, series or catalogue hierarchy is stored on the record. |
| `MediaResumePoint` | The write aggregate of the latest position. It holds a `MediaResumePointId`, the owner, the library, the media kind, the media item identifier, the latest position, the latest progress fraction and the last consumption time. It is created only for a resumable kind whose library tracks progress. |
| `ConsumptionStatistics` | A read model, not an aggregate and not a table. It is built from `MediaConsumptionRecordEntity` collections in the application handlers and mapped to the summary, recent, most consumed, tag and genre responses. |
| `MediaKind` | The shared enumeration in `Lumina.Domain.SharedKernel`. `MusicTrack` and `Book` are supported by the current catalogues. `PodcastEpisode`, `Audiobook`, `Movie`, `TvEpisode`, `Photo` and `Video` have rules and are listed for clients, but are rejected by the lifecycle endpoints until their catalogues exist. `None` is invalid. |
| `MediaKind` | The shared enumeration in `Nemera.Domain.SharedKernel`. `MusicTrack` and `Book` are supported by the current catalogues. `PodcastEpisode`, `Audiobook`, `Movie`, `TvEpisode`, `Photo` and `Video` have rules and are listed for clients, but are rejected by the lifecycle endpoints until their catalogues exist. `None` is invalid. |
| `MediaConsumptionRule` | The shared value object hierarchy that owns resumability (`PositionKind`, `CanResume`), one-shot behavior and counting (`Counts`). It is reused by both aggregates and the statistics read model, so callers never switch on `MediaKind` for these rules. |
| Completion settings | `LibraryConsumptionSettings` on the `Library` aggregate. It stores `ShouldTrackConsumptionProgress` and an optional `CompletionThresholdPercentage`. The validator rejects a threshold when tracking is off, and a threshold outside 0 to 100 when it is supplied. |
| Storage | `MediaConsumptionRecords` and `MediaResumePoints`. The owner is a cascading foreign key to `Users`; the media item is a plain identifier with no foreign key to a media catalogue. Both tables carry an optimistic concurrency version and the audit columns. |
@@ -7,7 +7,7 @@
A media library scan performs two kinds of file system reads. Discovery reads directory entries and file metadata, and hashing samples file contents. Their throughput depends on the storage medium. A solid state drive serves concurrent reads with little penalty, while a mechanical hard drive pays a seek for every position change, so concurrent reads can reduce its throughput.
Lumina cannot determine the storage medium reliably. Drive type queries are platform specific, and they are unreliable for network, virtual, and removable volumes. The scan therefore needs an explicit input instead of an automatic guess.
Nemera cannot determine the storage medium reliably. Drive type queries are platform specific, and they are unreliable for network, virtual, and removable volumes. The scan therefore needs an explicit input instead of an automatic guess.
Not every scan stage performs bulk local reads. Audio metadata extraction parses tag blocks, and metadata and artwork enrichment call remote providers. Those stages have their own constraints, which are part of this decision.
@@ -25,7 +25,7 @@ Persisted entity and domain event identifiers are created with `Guid.CreateVersi
The decision applies to Domain, Application, DataAccess, and Infrastructure:
- Every identifier factory and every code path that mints an entity or domain event identifier in application code calls `Guid.CreateVersion7()` directly.
- Every Entity Framework Core property of type `Guid` with `ValueGenerated.OnAdd` is assigned the `GuidV7ValueGenerator` in `LuminaDbContext.OnModelCreating`. The loop covers real keys and owned collection shadow keys, so the data seed service can keep leaving seeded permission and role identifiers unset.
- Every Entity Framework Core property of type `Guid` with `ValueGenerated.OnAdd` is assigned the `GuidV7ValueGenerator` in `NemeraDbContext.OnModelCreating`. The loop covers real keys and owned collection shadow keys, so the data seed service can keep leaving seeded permission and role identifiers unset.
- Existing rows keep their version 4 identifiers. This is a forward-only change, and no primary key or foreign key is rewritten.
The following identifiers intentionally remain outside the version 7 strategy:
@@ -57,7 +57,7 @@ The following identifiers intentionally remain outside the version 7 strategy:
| Existing rows keep version 4 identifiers | Do not use identifier order as a chronology across the migration boundary; use `CreatedOnUtc` |
| The two SQL bulk insert paths keep version 4 identifiers | The exception is documented in this ADR and in both repositories, so it is not changed accidentally |
| Version 7 ordering depends on the system clock | Clock skew can break ordering, but not uniqueness; do not depend on strict ordering across machines |
| Entity Framework Core could seed a new key with version 4 again | `LuminaDbContext` applies the generator to every `Guid` property configured with `ValueGenerated.OnAdd`, including owned shadow keys |
| Entity Framework Core could seed a new key with version 4 again | `NemeraDbContext` applies the generator to every `Guid` property configured with `ValueGenerated.OnAdd`, including owned shadow keys |
## Alternatives Considered
@@ -87,4 +87,4 @@ Migrate every stored primary key and foreign key to a version 7 value.
## Amendment: Relocation of the SYSTEM Audit Identity (2026-11-25)
The fixed SYSTEM audit identifier is no longer declared inline in `UpdateAuditableEntitiesInterceptor`. It is declared as the static readonly field `AuditIdentities.s_systemUserId` in `Lumina.Application/Common/DataAccess/Entities/Common/AuditIdentities.cs`. The identifier value and its behavior are unchanged.
The fixed SYSTEM audit identifier is no longer declared inline in `UpdateAuditableEntitiesInterceptor`. It is declared as the static readonly field `AuditIdentities.s_systemUserId` in `Nemera.Application/Common/DataAccess/Entities/Common/AuditIdentities.cs`. The identifier value and its behavior are unchanged.
@@ -1,11 +1,11 @@
- [Lumina Domain](#lumina-domain)
- [Nemera Domain](#nemera-domain)
- [Music Library Aggregate](#music-library-aggregate)
- [Artist](#artist)
- [Album](#album)
- [Track](#track)
- [Audio Rating](#audio-rating)
# [Lumina Domain](#lumina-domain)
# [Nemera Domain](#nemera-domain)
## [Music Library Aggregate](#music-library-aggregate)
@@ -1,9 +1,9 @@
- [Lumina Domain](#lumina-domain)
- [Nemera Domain](#nemera-domain)
- [File Management Aggregate](#file-management-aggregate)
- [File Info](#file-info)
- [Stream Info](#stream-info)
# [Lumina Domain](#lumina-domain)
# [Nemera Domain](#nemera-domain)
## [File Management Aggregate](#file-management-aggregate)
@@ -1,8 +1,8 @@
- [Lumina Domain](#lumina-domain)
- [Nemera Domain](#nemera-domain)
- [Video Library Aggregate](#video-library-aggregate)
- [Movie](#movie)
# [Lumina Domain](#lumina-domain)
# [Nemera Domain](#nemera-domain)
## [Video Library Aggregate](#video-library-aggregate)
@@ -1,8 +1,8 @@
- [Lumina Domain](#lumina-domain)
- [Nemera Domain](#nemera-domain)
- [Written Content Library Aggregate](#written-content-library-aggregate)
- [Book](#book)
# [Lumina Domain](#lumina-domain)
# [Nemera Domain](#nemera-domain)
## [Written Content Library Aggregate](#written-content-library-aggregate)
+2 -2
View File
@@ -1,4 +1,4 @@
- [Lumina Domain](#lumina-domain)
- [Nemera Domain](#nemera-domain)
- [Common](#common)
- [Metadata](#metadata)
- [Genre](#genre)
@@ -8,7 +8,7 @@
- [Release Info](#release-info)
- [Language Info](#language-info)
# [Lumina Domain](#lumina-domain)
# [Nemera Domain](#nemera-domain)
## [Common](#common)
+1 -1
View File
@@ -4,6 +4,6 @@
"ACCESS_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyY2ZmMGMwZi0zYTY3LTRlMzAtYjk0Zi1mNGU5NDhhM2I2NGYiLCJ1bmlxdWVfbmFtZSI6ImEiLCJqdGkiOiIyY2ZmMGMwZi0zYTY3LTRlMzAtYjk0Zi1mNGU5NDhhM2I2NGYiLCJleHAiOjE3MzU4MTQyMjgsImlzcyI6Ikx1bWluYSIsImF1ZCI6Ikx1bWluYSJ9.6FBaXXQ9IJynrM89KqyV4U3Xi2fmPvnadcp5c9xkf7E"
},
"prod": {
"host": "https://api.lumina.com"
"host": "https://api.nemera.me"
}
}
@@ -1,10 +1,10 @@
PUT {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/{{$guid}}/cover
Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: multipart/form-data; boundary=LuminaBoundary
Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary
--NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg
< ./cover.jpg
--LuminaBoundary--
--NemeraBoundary--
@@ -1,10 +1,10 @@
PUT {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/{{$guid}}/cover
Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: multipart/form-data; boundary=LuminaBoundary
Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary
--NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg
< ./cover.jpg
--LuminaBoundary--
--NemeraBoundary--
@@ -1,10 +1,10 @@
PUT {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/books/{{$guid}}/cover
Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: multipart/form-data; boundary=LuminaBoundary
Content-Type: multipart/form-data; boundary=NemeraBoundary
--LuminaBoundary
--NemeraBoundary
Content-Disposition: form-data; name="cover"; filename="cover.jpg"
Content-Type: image/jpeg
< ./cover.jpg
--LuminaBoundary--
--NemeraBoundary--
@@ -1,10 +1,10 @@
POST {{host}}/api/v1/plugins
Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: multipart/form-data; boundary=----LuminaBoundary
Content-Type: multipart/form-data; boundary=----NemeraBoundary
------LuminaBoundary
------NemeraBoundary
Content-Disposition: form-data; name="archive"; filename="my-plugin.zip"
Content-Type: application/octet-stream
< ./my-plugin.zip
------LuminaBoundary--
------NemeraBoundary--
@@ -1,10 +1,10 @@
POST {{host}}/api/v1/themes
Authorization: Bearer {{ACCESS_TOKEN}}
Content-Type: multipart/form-data; boundary=----LuminaBoundary
Content-Type: multipart/form-data; boundary=----NemeraBoundary
------LuminaBoundary
------NemeraBoundary
Content-Disposition: form-data; name="file"; filename="theme.zip"
Content-Type: application/zip
< ./theme.zip
------LuminaBoundary--
------NemeraBoundary--
@@ -34,7 +34,7 @@ This project enforces many style rules via `.editorconfig` as build errors, so t
- **`<inheritdoc/>`**: avoid on classes implementing interface members. Developers usually work in the implementing class and should see documentation there directly, without having to open the interface.
- **Boolean naming**: boolean fields, properties, and methods returning booleans must start with a verb implying true/false: `is`, `are`, `should`, `has`, `was`, `can`, etc.
- **Error handling**: rule violations return `Result<T>`. Never throw exceptions unless explicitly justified (e.g. startup/configuration code). Flag any `throw` outside that context.
- **Identifier generation**: persisted entity and domain event identifiers are created with `Guid.CreateVersion7()`, never `Guid.NewGuid()`, so inserts stay time ordered. Entity Framework Core keys configured with `ValueGeneratedOnAdd` receive the same generator through `LuminaDbContext`. Version 4 remains correct only for opaque security handles, temporary file or cache names, fixed sentinel identifiers such as the SYSTEM audit user, stable derived identifiers such as the SHA-256 plugin identifier, and the SQL bulk insert paths recorded in [ADR-0020](../architecture/architecture-knowledge-management/architecture-decision-log/architecture-decision-record-0020.md).
- **Identifier generation**: persisted entity and domain event identifiers are created with `Guid.CreateVersion7()`, never `Guid.NewGuid()`, so inserts stay time ordered. Entity Framework Core keys configured with `ValueGeneratedOnAdd` receive the same generator through `NemeraDbContext`. Version 4 remains correct only for opaque security handles, temporary file or cache names, fixed sentinel identifiers such as the SYSTEM audit user, stable derived identifiers such as the SHA-256 plugin identifier, and the SQL bulk insert paths recorded in [ADR-0020](../architecture/architecture-knowledge-management/architecture-decision-log/architecture-decision-record-0020.md).
## Review priority
@@ -12,51 +12,51 @@ There are three parallel test trees, each with its own top-level directory and i
```
tests/
├── Common/
│ ├── Lumina.Domain.Fixtures/
│ ├── Lumina.Application.Fixtures/
│ ├── Lumina.DataAccess.Fixtures/
│ ├── Lumina.Contracts.Fixtures/
│ └── Lumina.Presentation.Api.Fixtures/
│ ├── Nemera.Domain.Fixtures/
│ ├── Nemera.Application.Fixtures/
│ ├── Nemera.DataAccess.Fixtures/
│ ├── Nemera.Contracts.Fixtures/
│ └── Nemera.Presentation.Api.Fixtures/
│ └── ... (created on demand, one per source project that has fixture-needing types)
├── UnitTests/
│ ├── Lumina.Domain.UnitTests/
│ ├── Lumina.Application.UnitTests/
│ ├── Lumina.Presentation.Api.UnitTests/
│ ├── Nemera.Domain.UnitTests/
│ ├── Nemera.Application.UnitTests/
│ ├── Nemera.Presentation.Api.UnitTests/
│ └── ... (one per source project that has unit tests)
├── IntegrationTests/
│ ├── Lumina.Presentation.Api.IntegrationTests/
│ ├── Nemera.Presentation.Api.IntegrationTests/
│ └── ... (one per source project that has integration tests)
└── SecurityTests/
├── Lumina.Presentation.Api.SecurityTests/
├── Nemera.Presentation.Api.SecurityTests/
└── ... (one per source project exposed at an HTTP boundary)
```
Rules:
- Each test project's internal directory structure **mirrors the corresponding source project's directory structure exactly**. A class at `Lumina.Application/Core/Authentication/Login/LoginUserQueryValidator.cs` gets its unit test at `tests/UnitTests/Lumina.Application.UnitTests/Core/Authentication/Login/LoginUserQueryValidatorTests.cs` - same relative path, different project root.
- Test project naming is always `<SourceProjectName>.<Category>Tests` (e.g. `Lumina.Domain.UnitTests`, `Lumina.Presentation.Api.IntegrationTests`, `Lumina.Presentation.Api.SecurityTests`). Fixture project naming is always `<SourceProjectName>.Fixtures` (no category suffix - a fixtures project is not owned by any one test category, it's referenced by all of them as needed).
- The test class name is always `<TestedClassName>Tests`, identical across all three trees when the same source class is tested from multiple angles - e.g. `LoginEndpointTests` legitimately exists in both `Lumina.Presentation.Api.UnitTests` (mocked handler) and `Lumina.Presentation.Api.IntegrationTests` (real pipeline) and `Lumina.Presentation.Api.SecurityTests` (security-focused HTTP tests), because they live in different projects/namespaces. This is not duplication, it is three different concerns about the same endpoint.
- Each test project's internal directory structure **mirrors the corresponding source project's directory structure exactly**. A class at `Nemera.Application/Core/Authentication/Login/LoginUserQueryValidator.cs` gets its unit test at `tests/UnitTests/Nemera.Application.UnitTests/Core/Authentication/Login/LoginUserQueryValidatorTests.cs` - same relative path, different project root.
- Test project naming is always `<SourceProjectName>.<Category>Tests` (e.g. `Nemera.Domain.UnitTests`, `Nemera.Presentation.Api.IntegrationTests`, `Nemera.Presentation.Api.SecurityTests`). Fixture project naming is always `<SourceProjectName>.Fixtures` (no category suffix - a fixtures project is not owned by any one test category, it's referenced by all of them as needed).
- The test class name is always `<TestedClassName>Tests`, identical across all three trees when the same source class is tested from multiple angles - e.g. `LoginEndpointTests` legitimately exists in both `Nemera.Presentation.Api.UnitTests` (mocked handler) and `Nemera.Presentation.Api.IntegrationTests` (real pipeline) and `Nemera.Presentation.Api.SecurityTests` (security-focused HTTP tests), because they live in different projects/namespaces. This is not duplication, it is three different concerns about the same endpoint.
- Only source projects with an HTTP-facing boundary (Presentation.Api today) need a `SecurityTests` project. Domain/Application/DataAccess projects generally only need `UnitTests`, since there's no external attack surface to test at that layer directly. Confirm with the developer before creating a `SecurityTests` project for a project type not already established.
# Fixture location: always centralized, no exceptions
There is exactly one rule, with no decision to make and no branching: **every fixture lives in `tests/Common/<SourceProjectName>.Fixtures/`, mirroring that type's own path inside its source project, with no extra `Fixtures` subdirectory inserted at each level** (the project itself is already dedicated to fixtures, so repeating that folder name would be redundant). This applies uniformly whether the type is:
- consumed by a single test project (e.g. a Domain aggregate only ever tested by `Lumina.Domain.UnitTests`),
- consumed by a single test project (e.g. a Domain aggregate only ever tested by `Nemera.Domain.UnitTests`),
- consumed by many test projects across trees (e.g. a Contract DTO used by `UnitTests`, `IntegrationTests`, and `SecurityTests`),
- or consumed by projects in a different source layer entirely (e.g. an EF entity defined in `Lumina.Application` but used by `Lumina.DataAccess.UnitTests` too).
- or consumed by projects in a different source layer entirely (e.g. an EF entity defined in `Nemera.Application` but used by `Nemera.DataAccess.UnitTests` too).
There is no "local vs shared" distinction anymore. Never create a `Fixtures` folder inside a `*Tests` project. If you ever see one from before this rule existed, treat it as tech debt: the fixtures inside it should be moved to the matching `tests/Common/<SourceProject>.Fixtures/` project, and the consuming test project should take a project reference to it instead - flag this in your report rather than doing a large migration unprompted, but do not add anything new to a local `Fixtures` folder going forward.
```
Source: Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/Book.cs
Fixture: tests/Common/Lumina.Domain.Fixtures/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookFixture.cs
Source: Nemera.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/Book.cs
Fixture: tests/Common/Nemera.Domain.Fixtures/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookFixture.cs
Source: Lumina.Application/Common/DataAccess/Entities/Authorization/PermissionEntity.cs
Fixture: tests/Common/Lumina.Application.Fixtures/Common/DataAccess/Entities/Authorization/PermissionEntityFixture.cs
Source: Nemera.Application/Common/DataAccess/Entities/Authorization/PermissionEntity.cs
Fixture: tests/Common/Nemera.Application.Fixtures/Common/DataAccess/Entities/Authorization/PermissionEntityFixture.cs
Source: Lumina.Contracts/Common/Models/Contracts/Requests/LoginRequest.cs
Fixture: tests/Common/Lumina.Contracts.Fixtures/Common/Models/Contracts/Requests/LoginRequestFixture.cs
Source: Nemera.Contracts/Common/Models/Contracts/Requests/LoginRequest.cs
Fixture: tests/Common/Nemera.Contracts.Fixtures/Common/Models/Contracts/Requests/LoginRequestFixture.cs
```
Any test project, in any tree (Unit/Integration/Security), takes a normal project reference to whichever `<SourceProject>.Fixtures` project(s) it needs - never a reference to another `*Tests` project. Before creating any new fixture, grep the whole `tests/Common/` tree for `<TypeName>Fixture` to check whether it already exists. If a fixtures project for a given source project doesn't exist yet, create it (matching naming/structure above) rather than defaulting to placing the fixture somewhere else - ask the developer only if it's genuinely unclear which source project a type belongs to.
@@ -66,8 +66,8 @@ Any test project, in any tree (Unit/Integration/Security), takes a normal projec
These are non-negotiable structural rules, checked before writing a single line of test code.
- **Test classes mirror tested classes exactly.** Same name with `Tests` appended, same namespace, same hierarchical directory path. Example:
- Source: `Lumina.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate.Book.cs`
- Test: `Lumina.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate.BookTests.cs`
- Source: `Nemera.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate.Book.cs`
- Test: `Nemera.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate.BookTests.cs`
- **Fixtures always mirror their source project's own path exactly**, inside `tests/Common/<SourceProject>.Fixtures/`, per the section above.
- One test class per tested class, one fixture per model/DTO/entity/query/command that needs one. Do not combine multiple types' tests or fixtures into one file.
@@ -90,8 +90,8 @@ If you encounter an existing fixture in the codebase that's called statically, t
- **EF Core repository tests**: mocked `DbContext` via `Create.MockedDbContextFor<TContext>()`, asserting through `ChangeTracker.Entries<T>()` or by re-querying the mocked context, not by mocking `DbSet` methods directly.
- **Validator tests**: use the `ValidatorTestExtensions` extension, combined with this project's custom `ShouldHaveValidationError` / `ShouldNotHaveValidationError` assertion extensions.
- **Endpoint tests**: FastEndpoints via this project's `Factory.Create<TEndpoint>(...)` helper, asserting on the returned `IResult` type (`Ok<T>`, `ProblemHttpResult`, etc.) via `Assert.IsType<T>`.
- **Integration tests**: real HTTP pipeline via a `WebApplicationFactory`-based fixture (`AuthenticatedLuminaApiFactory` for pre-authenticated scenarios), real `HttpClient`, real DB access through a `IServiceScope` for setup/teardown, asserting on actual `HttpResponseMessage` and deserialized `ProblemDetails`.
- **Security tests**: same HTTP pipeline via `LuminaApiFactory` (not pre-authenticated), asserting on security-specific properties: response headers, rate limiting, timing, token structure, injection resistance, and information leakage.
- **Integration tests**: real HTTP pipeline via a `WebApplicationFactory`-based fixture (`AuthenticatedNemeraApiFactory` for pre-authenticated scenarios), real `HttpClient`, real DB access through a `IServiceScope` for setup/teardown, asserting on actual `HttpResponseMessage` and deserialized `ProblemDetails`.
- **Security tests**: same HTTP pipeline via `NemeraApiFactory` (not pre-authenticated), asserting on security-specific properties: response headers, rate limiting, timing, token structure, injection resistance, and information leakage.
# Test method naming - depends on how the test invokes the code
@@ -324,7 +324,7 @@ Beyond that, each test sets up the specific mock return values needed for its sc
## DataAccess layer: repository tests
Reference exemplar - a `UserRepositoryTests` class. Constructor creates `_mockContext = Create.MockedDbContextFor<LuminaDbContext>()` and `_sut = new Repository(_mockContext)`, plus instantiated fixtures (`private readonly UserEntityFixture _userEntityFixture = new();`). Tests interact with the real (mocked) `DbContext` behavior: seed data directly via `_mockContext.Entities.Add(...)` + `SaveChangesAsync()` when a pre-existing-state scenario is needed, then call the repository method under test and assert both the `Result` outcome AND the actual `ChangeTracker` state (e.g. `EntityState.Added`, entry count) to confirm the repository did what it claims.
Reference exemplar - a `UserRepositoryTests` class. Constructor creates `_mockContext = Create.MockedDbContextFor<NemeraDbContext>()` and `_sut = new Repository(_mockContext)`, plus instantiated fixtures (`private readonly UserEntityFixture _userEntityFixture = new();`). Tests interact with the real (mocked) `DbContext` behavior: seed data directly via `_mockContext.Entities.Add(...)` + `SaveChangesAsync()` when a pre-existing-state scenario is needed, then call the repository method under test and assert both the `Result` outcome AND the actual `ChangeTracker` state (e.g. `EntityState.Added`, entry count) to confirm the repository did what it claims.
# Integration test template
@@ -332,10 +332,10 @@ Live under `tests/IntegrationTests/<SourceProject>.IntegrationTests/`. Test the
```csharp
[ExcludeFromCodeCoverage]
public class LoginEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>, IAsyncLifetime
public class LoginEndpointTests : IClassFixture<AuthenticatedNemeraApiFactory>, IAsyncLifetime
{
private HttpClient _client;
private readonly AuthenticatedLuminaApiFactory _apiFactory;
private readonly AuthenticatedNemeraApiFactory _apiFactory;
private readonly JsonSerializerOptions _jsonOptions = new()
{
PropertyNameCaseInsensitive = true,
@@ -343,7 +343,7 @@ public class LoginEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>,
};
private readonly string _testUsername;
public LoginEndpointTests(AuthenticatedLuminaApiFactory apiFactory)
public LoginEndpointTests(AuthenticatedNemeraApiFactory apiFactory)
{
_client = apiFactory.CreateClient();
_apiFactory = apiFactory;
@@ -370,14 +370,14 @@ public class LoginEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory>,
public async Task DisposeAsync()
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
UserEntity? user = dbContext.Users.FirstOrDefault(u => u.Username == _testUsername);
if (user is not null) { dbContext.Users.Remove(user); await dbContext.SaveChangesAsync(); }
}
}
```
Key characteristics: `IClassFixture<AuthenticatedLuminaApiFactory>` + `IAsyncLifetime` (not plain `IDisposable`), a fresh uniquely-named test user created and torn down per test, real HTTP calls, action-based naming (`Login_...`, never `ExecuteAsync_...`), and assertions on the deserialized `ProblemDetails` shape (`status`, `type`, `title`, `detail`, `instance`, `traceId`) for every non-success response, matching the exact RFC section URLs used by this project's error mapping. Cover: full happy path per distinct valid credential type (password, password+TOTP, temp password), and every distinct failure mode with its exact expected `ProblemDetails` shape (expired temp password, invalid credentials, invalid TOTP).
Key characteristics: `IClassFixture<AuthenticatedNemeraApiFactory>` + `IAsyncLifetime` (not plain `IDisposable`), a fresh uniquely-named test user created and torn down per test, real HTTP calls, action-based naming (`Login_...`, never `ExecuteAsync_...`), and assertions on the deserialized `ProblemDetails` shape (`status`, `type`, `title`, `detail`, `instance`, `traceId`) for every non-success response, matching the exact RFC section URLs used by this project's error mapping. Cover: full happy path per distinct valid credential type (password, password+TOTP, temp password), and every distinct failure mode with its exact expected `ProblemDetails` shape (expired temp password, invalid credentials, invalid TOTP).
# Security test template
@@ -385,13 +385,13 @@ Live under `tests/SecurityTests/<SourceProject>.SecurityTests/`. Test the securi
```csharp
[ExcludeFromCodeCoverage]
public class LoginEndpointTests : IClassFixture<LuminaApiFactory>, IDisposable
public class LoginEndpointTests : IClassFixture<NemeraApiFactory>, IDisposable
{
private readonly LuminaApiFactory _apiFactory;
private readonly NemeraApiFactory _apiFactory;
private readonly HttpClient _client;
private readonly string _testUsername;
public LoginEndpointTests(LuminaApiFactory apiFactory)
public LoginEndpointTests(NemeraApiFactory apiFactory)
{
_apiFactory = apiFactory;
_client = apiFactory.CreateClient();
@@ -420,14 +420,14 @@ public class LoginEndpointTests : IClassFixture<LuminaApiFactory>, IDisposable
public void Dispose()
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService<LuminaDbContext>();
NemeraDbContext dbContext = scope.ServiceProvider.GetRequiredService<NemeraDbContext>();
UserEntity? user = dbContext.Users.FirstOrDefault(u => u.Username == _testUsername);
if (user is not null) { dbContext.Users.Remove(user); dbContext.SaveChanges(); }
}
}
```
Key characteristics: `IClassFixture<LuminaApiFactory>` + plain `IDisposable` (sync, per-test cleanup since xUnit instantiates the class per `[Fact]`), a unique `X-Forwarded-For` IP per test to isolate rate-limiting/timing tests from each other, and action-based naming (`Login_WithX_ShouldY`), never `ExecuteAsync_WithX_ShouldY`.
Key characteristics: `IClassFixture<NemeraApiFactory>` + plain `IDisposable` (sync, per-test cleanup since xUnit instantiates the class per `[Fact]`), a unique `X-Forwarded-For` IP per test to isolate rate-limiting/timing tests from each other, and action-based naming (`Login_WithX_ShouldY`), never `ExecuteAsync_WithX_ShouldY`.
Categories to cover for any authenticated/sensitive endpoint, unless clearly not applicable:
+12 -12
View File
@@ -1,8 +1,8 @@
# Lumina Theming
# Nemera Theming
The web client of Lumina is a themed shell: every page is rendered inside the templates of an active theme. A theme is a self contained ZIP archive with a manifest, HTML templates and static assets. This document explains how themes are structured, how the template engine works, and how to create, install and manage a theme.
The web client of Nemera is a themed shell: every page is rendered inside the templates of an active theme. A theme is a self contained ZIP archive with a manifest, HTML templates and static assets. This document explains how themes are structured, how the template engine works, and how to create, install and manage a theme.
- [Lumina Theming](#lumina-theming)
- [Nemera Theming](#nemera-theming)
- [Overview](#overview)
- [Theme Pack Structure](#theme-pack-structure)
- [The Manifest (theme.json)](#the-manifest-themejson)
@@ -85,7 +85,7 @@ The manifest is a JSON object describing the theme. The example below is the man
"id": "editorial-paper",
"name": "Editorial Paper",
"description": "A clean, readable proof of concept theme.",
"author": "Lumina",
"author": "Nemera",
"version": "1.6.0",
"preview": "assets/preview.svg",
"templates": {
@@ -215,7 +215,7 @@ The layout template of the bundled theme shows the intended shape:
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{title}} - Lumina</title>
<title>{{title}} - Nemera</title>
{{&appHead}}
<link rel="stylesheet" href="{{assetBase}}/site.css">
</head>
@@ -703,9 +703,9 @@ The playlist rows are reordered by dragging the handle with the `playlist-entry-
#### The Shared Add to Playlist Action
The music library card on the home page, the artist cards, the album cards and the actions menu of an album track row share one add-to-playlist action. The action is a menu item with the `card-action-add-to-playlist` class in both cases. Their click handler calls `window.LuminaPlaylists.showAddScopeDialogAsync(scope)`, where `scope` carries `libraryId`, the optional `artistId`, `albumId` and `trackId`, the `title` shown in the dialog, the page-local `addToPlaylistLabel`, and the optional `returnFocus` element that gets the focus back when the dialog closes. The helper is provided by `wwwroot/js/playlists.js`, which every layout loads. The page passes its own localized label from its page resource as `addToPlaylistLabel`.
The music library card on the home page, the artist cards, the album cards and the actions menu of an album track row share one add-to-playlist action. The action is a menu item with the `card-action-add-to-playlist` class in both cases. Their click handler calls `window.NemeraPlaylists.showAddScopeDialogAsync(scope)`, where `scope` carries `libraryId`, the optional `artistId`, `albumId` and `trackId`, the `title` shown in the dialog, the page-local `addToPlaylistLabel`, and the optional `returnFocus` element that gets the focus back when the dialog closes. The helper is provided by `wwwroot/js/playlists.js`, which every layout loads. The page passes its own localized label from its page resource as `addToPlaylistLabel`.
The dialog is rendered by the application, not by the theme: it is a standard application dialog surface with a standard `enlightenment-combobox` of the playlists of the current user. When the scope carries a `trackId`, the dialog appends that single track through the single entry route. Otherwise, the server resolves the ordered track Ids of the scope and appends them to the selected playlist in one batch request. In both cases it shows the result notification and dispatches the `lumina:playlist-updated` event so an open playlist page refreshes. A theme that renders the dialog itself does not get this behavior; it must keep the action wired to the shared helper or reimplement the whole flow.
The dialog is rendered by the application, not by the theme: it is a standard application dialog surface with a standard `enlightenment-combobox` of the playlists of the current user. When the scope carries a `trackId`, the dialog appends that single track through the single entry route. Otherwise, the server resolves the ordered track Ids of the scope and appends them to the selected playlist in one batch request. In both cases it shows the result notification and dispatches the `nemera:playlist-updated` event so an open playlist page refreshes. A theme that renders the dialog itself does not get this behavior; it must keep the action wired to the shared helper or reimplement the whole flow.
A page or a theme template can also render a declarative action that needs no script of its own. The global playlist script binds one click listener on the document, so the action works anywhere in the swapped page content, inside the player bar, and on controls that a page renders later. The action is any focusable element, normally a `button`, that carries these attributes:
@@ -734,7 +734,7 @@ The player queue action does not use the declarative attributes. Its label comes
#### The Album Track Actions Menu
Every rendered track row of the album details page carries the same `card-actions-trigger` button with the vertical dots as the card menus, plus the `track-actions-trigger` class that places it inline in the row. The page script creates the same `card-actions-menu` markup on demand. The menu has three application actions: `card-action-add-to-playlist` opens the shared add-to-playlist dialog for that track, `card-action-add-to-queue` calls `window.LuminaAudioPlayer.instance.appendToQueueAsync(descriptor)`, and `card-action-play-all-from-here` calls `playAsync` with an explicit queue built from the clicked track and every track that follows it in the album order. The player starts the clicked track for the last action, and replaces the queue. A theme that renders the album page must keep the track row markup and the script behavior, or provide its own equivalent.
Every rendered track row of the album details page carries the same `card-actions-trigger` button with the vertical dots as the card menus, plus the `track-actions-trigger` class that places it inline in the row. The page script creates the same `card-actions-menu` markup on demand. The menu has three application actions: `card-action-add-to-playlist` opens the shared add-to-playlist dialog for that track, `card-action-add-to-queue` calls `window.NemeraAudioPlayer.instance.appendToQueueAsync(descriptor)`, and `card-action-play-all-from-here` calls `playAsync` with an explicit queue built from the clicked track and every track that follows it in the album order. The player starts the clicked track for the last action, and replaces the queue. A theme that renders the album page must keep the track row markup and the script behavior, or provide its own equivalent.
#### The Favorites Page
@@ -757,7 +757,7 @@ The pages of the media items read the library of the item from the `libraryId` q
The fallback view keeps these element hooks, which the application script drives: `favorites-container`, `no-favorites`, `favorite-count`, `favorites-kind-filter`, `load-more-favorites-button` and `retry-favorites-button`. The bundled themes ship no template for `favorites/index`, so the fallback view is what a healthy site shows, and a theme that wants its own page provides `templates/favorites/index.html` and must keep the hooks the page script needs.
The fallback view renders one card per favorite, from the most recently favorited, in pages of 50 that `load-more-favorites-button` extends. Each card carries a favorite heart (a `card-favorite-toggle` button, described below), already in the favorited state, and a favorite is removed from the page by unfavoriting its card: the page script does not call the remove route itself, the global favorites script does, and the page listens to the `lumina:favorite-changed` event described below, removes the card of an item that is no longer a favorite, and updates the counter and the empty state without another request. A failed first page or reload clears the rendered cards and shows the localized failure message with `retry-favorites-button`, so the user can load the current filter again instead of being left with a truncated list. A theme template that renders the page itself gets the same behavior by rendering hearts on its cards and handling that event.
The fallback view renders one card per favorite, from the most recently favorited, in pages of 50 that `load-more-favorites-button` extends. Each card carries a favorite heart (a `card-favorite-toggle` button, described below), already in the favorited state, and a favorite is removed from the page by unfavoriting its card: the page script does not call the remove route itself, the global favorites script does, and the page listens to the `nemera:favorite-changed` event described below, removes the card of an item that is no longer a favorite, and updates the counter and the empty state without another request. A failed first page or reload clears the rendered cards and shows the localized failure message with `retry-favorites-button`, so the user can load the current filter again instead of being left with a truncated list. A theme template that renders the page itself gets the same behavior by rendering hearts on its cards and handling that event.
#### The Statistics Page
@@ -819,7 +819,7 @@ A theme restyles a toggle from the `is-favorite` class or from the `aria-pressed
A click on a toggle adds the favorite when the item is not one, and removes it otherwise, through the add and remove routes of the configuration. A click is ignored while a request for the same item is in flight, whichever toggle of the item it comes from, and a click on a toggle whose state is unknown reads the state again instead of guessing. The script keeps every toggle of the same item on the page in sync. When a change fails, every toggle returns to the state it had, and the global API helper shows the failure as a notification. When a state read fails, the global API helper shows the failure as a notification. The click handler prevents the default action, so a toggle inside a link or a card does not also navigate.
After every successful change the script dispatches the `lumina:favorite-changed` event on `document`, with `detail` carrying `mediaKind` (the canonical kind name), `mediaItemId` (the lowercase Id) and `isFavorite` (the new state), so a page that lists favorites can react while it stays decoupled from the toggle that caused the change.
After every successful change the script dispatches the `nemera:favorite-changed` event on `document`, with `detail` carrying `mediaKind` (the canonical kind name), `mediaItemId` (the lowercase Id) and `isFavorite` (the new state), so a page that lists favorites can react while it stays decoupled from the toggle that caused the change.
The layout provides the shared configuration as `window.favoritesConfiguration`:
@@ -830,7 +830,7 @@ The layout provides the shared configuration as `window.favoritesConfiguration`:
| `removeFavoriteUrlTemplate` | The route template that removes a favorite. Its named `{mediaKind}` and `{mediaItemId}` placeholders are replaced by the media kind name and the Id of the media item. |
| `strings` | The localized labels: `add` and `remove`. |
The script also exposes `window.LuminaFavorites` for page scripts that need more than the markup contract:
The script also exposes `window.NemeraFavorites` for page scripts that need more than the markup contract:
| Member | Behavior |
| --- | --- |
@@ -876,7 +876,7 @@ The theme engine is configured through the `ThemeEngine` section of the API conf
| --- | --- | --- |
| `StoragePath` | `themes` | Directory where installed theme packs are stored, relative to the API base directory when not rooted. |
| `BundledThemesPath` | `themes/bundled` | Directory where the theme archives shipped with the application are located. |
| `DefaultThemeId` | `lumina-default` | Identifier of the theme selected when no valid current theme is persisted. |
| `DefaultThemeId` | `nemera-default` | Identifier of the theme selected when no valid current theme is persisted. |
| `MaxArchiveBytes` | `8388608` | Maximum size of an uploaded theme archive, in bytes (8 MB). |
| `MaxExpandedBytes` | `25165824` | Maximum total size of an extracted theme pack, in bytes (24 MB). |
| `MaxSingleFileBytes` | `6291456` | Maximum size of a single file within a theme pack, in bytes (6 MB). |