Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6749207c56 | |||
| 43c6ec84b6 | |||
| 5eea44b738 | |||
| 0b964c9697 | |||
| 5526f1533e | |||
| 92aa5ac585 |
40
STATUS.md
Normal file
40
STATUS.md
Normal file
@ -0,0 +1,40 @@
|
||||
# STATUS — Stand 9. Nov (Ende der Session)
|
||||
|
||||
## Projekt-Zustand: App funktional vollständig, eine Testrunde ausstehend
|
||||
|
||||
- **ROADMAP:** alle IDs (T-001 … T-032) *fertig* — M0 Spike ✓, M1/App-Kern ✓, M2 Player ✓, M3 Sync/Tray ✓
|
||||
- **Releases:** Pipeline auf srv01 (Gitea 1.24 + Runner) läuft: `make release-version VERSION=x` → CI baut AppImage/deb/pacman. Aktuellstes Release: **v0.1.12** (alle 3 Formate ✓) — **ABER ohne 43c6ec8** (Autostart-Handler-Registrierung kam 20 Min nach dem Tag). → **Morgen erste Aktion: `make release-version VERSION=0.1.13`**, dann installieren.
|
||||
|
||||
## Heute behoben (alle gepusht, HEAD = 43c6ec8)
|
||||
|
||||
| Befund | Fix | Commit |
|
||||
|---|---|---|
|
||||
| Statusleiste/Playerbar/Design unformatiert („unten hingeklatscht") | fehlende `}` bei `.card` → CSS-Nesting hatte alle Nachfolger zu `.card .…` deklariert | 92aa5ac |
|
||||
| „mpv endete sofort (Argumente/Umgebung?)" | `--idle=yes` + `--no-terminal` hatten beim `apply_child_env`-Einspichern gefehlt | (Args wieder in player.rs, im Bump 452e655+e9af0dd-Zustand) |
|
||||
| „Audible nicht erreichbar" im AppImage → nur lokale Titel | AppImage vererbt PYTHONHOME/LD_LIBRARY_PATH in Kinder → pipx-CLI crasht beim ssl-Import. Fix: `apply_child_env` (Zulassungsliste) an allen Spawns | f192079 + download.rs |
|
||||
| Kein Klappentext im Detailmodal | `book_details` + `stream_only` fehlten in `generate_handler` | 5eea44b |
|
||||
| ⚙-Autostart-Umschalter tot | `autostart_enabled/set` fehlten ebenfalls | 43c6ec8 |
|
||||
| mpv-Orphans (16 Leichen) bei App-Exit | Exit-Cleanup: `RunEvent::Exit` → Player-Kind killen + Socket löschen | 4e33715-Rework |
|
||||
| Vite: „virtual css module Icon.svelte" Fehler | Icon-Styles globalisiert (aus der Komponente raus) | (mit 4e33715) |
|
||||
| Version doppelt („0.1.9v0.1.9") | make-sed hat dynamische Anzeige zerlegt → `Hörwerk v{appVer}` + sed aus Makefile entfernt | (im Bump-Flow) |
|
||||
|
||||
## Läuft nachweisend (Beweise aus dieser Session)
|
||||
|
||||
- Auto-Resume lädt letztes Buch **pausiert an gespeicherter Stelle** (Elfe 2 @ 169,7 s) — via IPC geprüft
|
||||
- Wiedergabe + 5-s-Positionsspeicher (positions.json-mtime bewegt sich)
|
||||
- Bibliothek 319/319 im Export (auch im AppImage-Exit-Umfeld dank `apply_child_env`)
|
||||
- Serien-Bulk (Gruppierung → nach Serie), Details/Klappentext (jetzt mit Command-Registrierung), Statusleiste/Playerbar sichtbar im Screenshot
|
||||
|
||||
## Offen fürs Morgen
|
||||
|
||||
1. **User-Klicktests** KT-012 … KT-032 (Liste in KLICKTESTS.md) — auf der Instanz aus `make dev` ODER auf installiertem **v0.1.13**
|
||||
2. Danach **v0.1.13** bumppen (enthält 43c6ec8 = Autostart) — installieren
|
||||
3. Known-Gaps (ausgesprochen, nicht kritisch): Konflikt-Hinweis bei Positions-Sync; Serien-Daten sind per Bulk vorhanden (Genre-Auswahl); Lesezeichen-Zugriff nur via Leiste; Klappentext-Cache nur für lokale Bücher; ggf. eigene Titelzeile (nur falls die KWin-Deko stört)
|
||||
4. Umfeld-Zettel: Parallel-Agenten im Repo/Kader räumen gelegentlich mpv-Prozesse weg (`ensure_mpv` heilt beim nächsten ▶ selbst); srv01-Runner-Labels: ubuntu-latest/24.04/+22.04/**arch-base-devel**; CI-Secret `HW_RELEASE_TOKEN` (stephan-eigenes Token `hoerwerk-release-ci`)
|
||||
|
||||
## Infra-Kurzreferenz
|
||||
|
||||
- Dev: `make dev` · Tests: `make test` (+ `make cargo-test-net` für E2E mit Netz)
|
||||
- Release: `make release-version VERSION=x.y.z` (bumpt überall synchron inkl. PKGBUILD + Statusleiste-Text? — nein, Statusleiste liest die Version dynamisch)
|
||||
- CI-Status: `make ci-status`
|
||||
- Artefakte: `src-tauri/target/release/bundle/**` lokal bzw. Gitea-Releases-Seite
|
||||
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@ -1456,7 +1456,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
||||
|
||||
[[package]]
|
||||
name = "hoerwerk"
|
||||
version = "0.1.11"
|
||||
version = "0.1.12"
|
||||
dependencies = [
|
||||
"mpris-server",
|
||||
"serde",
|
||||
|
||||
@ -357,6 +357,8 @@ pub fn run() {
|
||||
get_library,
|
||||
get_local_books,
|
||||
book_series_bulk,
|
||||
book_details,
|
||||
stream_only,
|
||||
get_prefs,
|
||||
set_prefs,
|
||||
app_version,
|
||||
@ -377,6 +379,8 @@ pub fn run() {
|
||||
bookmark_set_note,
|
||||
get_alter_notes,
|
||||
set_alter_note,
|
||||
autostart_enabled,
|
||||
autostart_set,
|
||||
download_list,
|
||||
download_enqueue,
|
||||
download_cancel,
|
||||
|
||||
@ -203,6 +203,8 @@ impl MpvPlayer {
|
||||
crate::audible::apply_child_env(&mut spawned);
|
||||
let spawned = spawned
|
||||
.args([
|
||||
"--no-terminal",
|
||||
"--idle=yes",
|
||||
&format!("--input-ipc-server={}", self.socket.to_string_lossy()),
|
||||
"--vo=null",
|
||||
"--audio-display=no",
|
||||
|
||||
@ -327,6 +327,36 @@
|
||||
.sort((a, b) => a.key.localeCompare(b.key, 'de'))
|
||||
})
|
||||
|
||||
let menuOpen = $state<'sort' | 'group' | null>(null)
|
||||
|
||||
const SORTS: { key: SortKey; label: string; icon: string }[] = [
|
||||
{ key: 'added', label: 'Zuletzt hinzugefügt', icon: 'clock' },
|
||||
{ key: 'title', label: 'Titel A–Z', icon: 'alpha' },
|
||||
{ key: 'author', label: 'Autor', icon: 'user' },
|
||||
{ key: 'runtime', label: 'Laufzeit', icon: 'hourglass' },
|
||||
{ key: 'percent', label: 'Fortschritt', icon: 'chart' },
|
||||
]
|
||||
const GROUPS: { key: typeof groupBy; label: string; icon: string }[] = [
|
||||
{ key: 'aus', label: 'Gruppieren: aus', icon: 'x' },
|
||||
{ key: 'autor', label: 'nach Autor', icon: 'user' },
|
||||
{ key: 'serie', label: 'nach Serie', icon: 'stack' },
|
||||
{ key: 'genre', label: 'nach Genre', icon: 'tag' },
|
||||
]
|
||||
|
||||
const sortIcon = $derived(SORTS.find((o) => o.key === sortBy)?.icon ?? 'clock')
|
||||
const sortLabel = $derived('Sortierung: ' + (SORTS.find((o) => o.key === sortBy)?.label ?? ''))
|
||||
const groupLabel = $derived(
|
||||
groupBy === 'aus'
|
||||
? 'Gruppieren: aus'
|
||||
: 'Gruppierung: ' + (GROUPS.find((o) => o.key === groupBy)?.label ?? '')
|
||||
)
|
||||
|
||||
// Schließen bei Klick außerhalb
|
||||
function onDocClick(ev: MouseEvent): void {
|
||||
const t = ev.target as HTMLElement | null
|
||||
if (!t?.closest('.hwdropdown') && menuOpen) menuOpen = null
|
||||
}
|
||||
|
||||
async function loadSeries(): Promise<void> {
|
||||
if (seriesLoaded || seriesLoading || groupBy !== 'serie') return
|
||||
seriesLoading = true
|
||||
@ -609,6 +639,7 @@
|
||||
}
|
||||
}
|
||||
window.addEventListener('keydown', onKey)
|
||||
document.addEventListener('click', onDocClick)
|
||||
checkAuth()
|
||||
const unlistenLogin = onLoginUrl((u) => { loginUrl = u })
|
||||
const unlisten = onDownloadUpdate((it) => {
|
||||
@ -636,6 +667,7 @@
|
||||
clearPoll()
|
||||
clearInterval(syncId)
|
||||
window.removeEventListener('keydown', onKey)
|
||||
document.removeEventListener('click', onDocClick)
|
||||
unlisten.then((f) => f())
|
||||
unlistenPlayer.then((f) => f())
|
||||
unlistenLogin.then((f: () => void) => f())
|
||||
@ -723,28 +755,45 @@
|
||||
placeholder="Suche Titel, Autor, Sprecher…"
|
||||
bind:value={query}
|
||||
/>
|
||||
<select bind:value={sortBy}>
|
||||
<option value="added">Zuletzt hinzugefügt</option>
|
||||
<option value="title">Titel A–Z</option>
|
||||
<option value="author">Autor</option>
|
||||
<option value="runtime">Laufzeit</option>
|
||||
<option value="percent">Fortschritt</option>
|
||||
</select>
|
||||
<select
|
||||
class="speedsel"
|
||||
title="Gruppieren"
|
||||
value={groupBy}
|
||||
onchange={(e) => {
|
||||
const v = e.currentTarget.value as typeof groupBy
|
||||
groupBy = v
|
||||
if (groupBy === 'serie') loadSeries()
|
||||
}}
|
||||
>
|
||||
<option value="aus">Gruppieren: aus</option>
|
||||
<option value="autor">nach Autor</option>
|
||||
<option value="serie">{seriesLoading ? 'nach Serie (lade…)' : 'nach Serie'}</option>
|
||||
<option value="genre">nach Genre</option>
|
||||
</select>
|
||||
<div class="hwdropdown">
|
||||
<button
|
||||
class="ghost barbtn"
|
||||
class:activebtn={menuOpen === 'sort'}
|
||||
title={sortLabel}
|
||||
aria-haspopup="listbox"
|
||||
onclick={() => (menuOpen = menuOpen === 'sort' ? null : 'sort')}
|
||||
>
|
||||
<Icon name={sortIcon} size={15} />
|
||||
</button>
|
||||
{#if menuOpen === 'sort'}
|
||||
<div class="menu" role="listbox">
|
||||
{#each SORTS as o (o.key)}
|
||||
<button type="button" class:sel={o.key === sortBy} onclick={() => { sortBy = o.key; menuOpen = null }}>
|
||||
<Icon name={o.icon} size={14} /> {o.label}
|
||||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="hwdropdown">
|
||||
<button
|
||||
class="ghost barbtn"
|
||||
class:activebtn={menuOpen === 'group' || groupBy !== 'aus'}
|
||||
title={groupLabel}
|
||||
onclick={() => (menuOpen = menuOpen === 'group' ? null : 'group')}
|
||||
>
|
||||
<Icon name="list" size={15} />
|
||||
</button>
|
||||
{#if menuOpen === 'group'}
|
||||
<div class="menu" role="listbox">
|
||||
{#each GROUPS as o (o.key)}
|
||||
<button type="button" class:sel={o.key === groupBy} onclick={() => { groupBy = o.key; menuOpen = null; if (groupBy === 'serie') loadSeries() }}>
|
||||
<Icon name={o.key === 'aus' ? 'x' : o.icon} size={14} /> {o.label}
|
||||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<button
|
||||
class="ghost barbtn"
|
||||
class:activebtn={onlyLocal}
|
||||
|
||||
81
src/app.css
81
src/app.css
@ -103,18 +103,29 @@ h1 {
|
||||
}
|
||||
|
||||
button {
|
||||
font: inherit;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
border-radius: 10px;
|
||||
padding: 0.45rem 0.9rem;
|
||||
background: var(--bg-card);
|
||||
background: var(--bg-card-2);
|
||||
color: var(--fg);
|
||||
cursor: pointer;
|
||||
font-size: 0.92rem;
|
||||
white-space: nowrap;
|
||||
transition: border-color 0.12s, transform 0.12s, background 0.12s;
|
||||
}
|
||||
|
||||
button:hover:enabled {
|
||||
filter: brightness(1.15);
|
||||
button:hover:not(:disabled) {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
button.danger {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
@ -123,12 +134,24 @@ button:disabled {
|
||||
}
|
||||
|
||||
button.primary {
|
||||
background: var(--accent);
|
||||
background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent));
|
||||
border-color: var(--accent);
|
||||
color: #fff;
|
||||
color: var(--accent-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
button.accent {
|
||||
color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
button.accent:hover:not(:disabled) {
|
||||
border-color: var(--accent);
|
||||
filter: none;
|
||||
}
|
||||
|
||||
button.primary,
|
||||
.actions button {
|
||||
padding: 0.32rem 0.65rem;
|
||||
@ -230,6 +253,7 @@ button.activechip {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.cover {
|
||||
aspect-ratio: 1 / 1;
|
||||
@ -694,3 +718,48 @@ code {
|
||||
.hw-icon svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Themendropdowns (Iconknopf + Popover) */
|
||||
|
||||
.hwdropdown {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.hwdropdown .menu {
|
||||
position: absolute;
|
||||
top: calc(100% + 6px);
|
||||
right: 0;
|
||||
min-width: 13rem;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 0.35rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 8;
|
||||
}
|
||||
|
||||
.hwdropdown .menu button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
padding: 0.35rem 0.55rem;
|
||||
font-size: 0.92rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.hwdropdown .menu button:hover {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.hwdropdown .menu button.sel {
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
|
||||
@ -4,6 +4,22 @@
|
||||
home: '<path d="M3 10.5 12 3l9 7.5"/><path d="M5 9.5V21h5v-6h4v6h5V9.5"/>',
|
||||
refresh:
|
||||
'<path d="M21 12a9 9 0 1 1-3-6.7"/><path d="M21 3v6h-6"/>',
|
||||
clock:
|
||||
'<circle cx="12" cy="12" r="8"/><path d="M12 8v4l2.5 2.5"/>',
|
||||
user:
|
||||
'<circle cx="12" cy="8" r="4"/><path d="M4 20a8 8 0 0 1 16 0"/>',
|
||||
hourglass:
|
||||
'<path d="M7 3h10M7 21h10"/><path d="M8 3v3l4 4 4-4V3"/><path d="M8 21v-3l4-4 4 4v3"/>',
|
||||
chart:
|
||||
'<path d="M4 20h16"/><path d="M7 16v-5M12 16V8M17 16v-8"/>',
|
||||
stack:
|
||||
'<path d="M12 3 3 8l9 5 9-5-9-5z"/><path d="m3 13 9 5 9-5"/>',
|
||||
tag:
|
||||
'<path d="M3 12V4h8l10 10-8 8L3 12z"/><circle cx="7.5" cy="7.5" r="1.5"/>',
|
||||
list:
|
||||
'<path d="M4 6h16M4 12h16M4 18h16"/><circle cx="4" cy="6" r="0.5"/>',
|
||||
alpha:
|
||||
'<path d="M6 4h9a3.5 3.5 0 0 1 0 7H6z"/><path d="M6 11h10a3.5 3.5 0 0 1 0 7H6z"/>',
|
||||
cloud:
|
||||
'<path d="M6.5 19a4.5 4.5 0 1 1 .42-8.98 6 6 0 0 1 11.6 1.4A4 4 0 0 1 18 19H6.5z"/>',
|
||||
download: '<path d="M12 3v12"/><path d="m7 10 5 5 5-5"/><path d="M5 21h14"/>',
|
||||
|
||||
Reference in New Issue
Block a user