v0.151.0 — the Megosztás page stops reloading, and says how to connect

S-1: /sharing/status coerced idle->running on the PHASE channel, so the first
poll of every steady-state page load reported a terminal job that never ran and
the client's repaint-reload fired ~1.2s apart, forever. The coercion's real duty
(liveness must never be contradicted) belongs to the 'running' LEVEL field
beside it, and is now pinned by its own regression test.

S-4 core: a terminal 'running' is served exactly once, so a REAL bring-up cannot
re-arm the reload on the page it just caused. failed/needs_password/in-flight
are never consumed. Unified async-job feedback stays the ROADMAP item.

S-2/S-5: new connect card with the Windows form, the Mac form and the direct
smb://<IP>, read from the SAMBA container's netns (the controller is on a docker
bridge and would answer 172.x). Derived per render, cached nowhere - the address
is a DHCP lease. Underivable => the line is omitted.

sharing.html's <script> block is byte-identical to v0.150.0. Red-proofed three
ways. 23/23 packages green.
This commit is contained in:
2026-07-20 10:46:21 +02:00
parent 8db9232dea
commit badf17bebd
13 changed files with 663 additions and 14 deletions
@@ -62,6 +62,33 @@
</div>
</div>
{{if .SMBEnabled}}
<!-- v0.151.0 (S-2/S-5): the page names BOTH ways in. Until now it showed only the configured name,
so a customer whose network fails to resolve it had nothing to fall back on but a guess — and
the guess that started the diagnosis was the Proxmox HOST's address, which never ran smbd
(DIAG-sharing-2026-07-20.md). The direct address is derived per render from the samba
container's own netns and is absent whenever it cannot be read: no address beats a wrong one. -->
<div class="settings-card">
<h3>Csatlakozás a megosztáshoz</h3>
<div class="form-hint">
Windows: a Fájlkezelő címsorába: <span class="mono">\\{{.SMBServerName}}</span>
</div>
<div class="form-hint">
Mac: Finder &rarr; Ugrás &rarr; Csatlakozás a szerverhez:
<span class="mono">smb://{{.SMBServerName}}</span>
</div>
{{if .SMBDirectAddress}}
<div class="form-hint">
Ha a név nem működik, használd a közvetlen címet:
<span class="mono">smb://{{.SMBDirectAddress}}</span>
</div>
<div class="form-hint">
A közvetlen cím a hálózattól függően változhat — elsőként mindig a nevet próbáld.
</div>
{{end}}
</div>
{{end}}
<div class="settings-card">
<h3>Megosztási jelszó beállítása</h3>
<p class="settings-card-desc">