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,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,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"/><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,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"/><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.