Improved library selection flow

This commit is contained in:
patben8 committed 2026-09-23 10:44:25 +02:00
1 parent a081a7a44d
commit 8d11acd783
17 files changed
+609 -71

No files matched your search

+11 -1
View File
@@ -177,13 +177,23 @@ class LibraryInfo(BaseModel):
class PlatformOption(BaseModel):
"""A platform the picker can offer before any library is open."""
"""A platform the picker can offer before any library is open.
Facts only, never finished sentences: `lib/platformCopy.ts` composes the
wording. The distinction that matters is `removable` — a platform with no
library found is "not installed" for Traktor and "nothing plugged in" for
OneLibrary, and only the driver knows which of those is true.
"""
platform: str
name: str
library_label: str
selects: Literal["file", "directory"] = "file"
installed: bool = False
#: How many libraries this platform has right now; `installed` is `found > 0`.
found: int = 0
#: The library lives on a plugged-in drive, so `found` changes between calls.
removable: bool = False
class RemapSample(BaseModel):