v0.310.0: „A gép kikapcsolása" — the household turns the whole machine off (R-998); honest restart text (R-999)
gates / gates (push) Successful in 48s
gates / gates (push) Successful in 48s
POST /api/server/poweroff (dashboard login, POST only, the typed word KIKAPCSOLÁS / TURN OFF) → agent POST /host/poweroff (MinAgent 0.155.0; hidden for an older agent). The controller refuses during its own backup/restore/app update; the agent's reasons are shown as household sentences. „Kiszolgáló újraindítása" becomes „A Felhom újraindítása" and says it restarts the Felhom part; /api/server/reboot is POST only (R-983). Tests red-proofed; parity fixtures regenerated on purpose.
This commit is contained in:
@@ -1,3 +1,26 @@
|
||||
## v0.310.0 — „A gép kikapcsolása": the household can turn the whole machine off (R-998); honest restart text (R-999) (2026-10-13)
|
||||
|
||||
**MinAgent: 0.155.0** — the new route calls the agent's `POST /host/poweroff`. An older agent: the button is hidden and
|
||||
one line says an update is needed (the `host_poweroff` feature row; a 404 gets the same answer). **Hub:** v0.149.0 holds
|
||||
the silence alarms for 14 days; without it the box still powers off, and the operator gets the usual outage alarms.
|
||||
Design: felhom.eu `documentation/architecture/14-host-power-off.md`.
|
||||
|
||||
- **R-998 — the button.** Beállítások → Rendszer, after the restart cards: „A gép kikapcsolása" / "Turn the machine
|
||||
off", „A gép teljesen kikapcsol. Az alkalmazásaid és a mentések leállnak. **Újra bekapcsolni csak otthon lehet: nyomd
|
||||
meg a gép bekapcsológombját.**" A dialog where the household types KIKAPCSOLÁS / TURN OFF (the button stays off until
|
||||
then; the server checks the word again, unaccented spelling accepted). `POST /api/server/poweroff`, dashboard login
|
||||
only, POST only. The controller refuses itself during a backup, restore or app update; the agent's refusal reasons
|
||||
are shown as household sentences (`poweroff.refused.*`, both languages).
|
||||
- **R-999 — „Kiszolgáló újraindítása" said „the whole server".** It restarts the guest. Now „A Felhom újraindítása" /
|
||||
"Restart Felhom": „Újraindítja a Felhom részt a gépen: a vezérlőpultot és az összes alkalmazást. A gép maga bekapcsolva
|
||||
marad. Kb. 30 másodpercig semmi nem érhető el, utána minden magától visszajön. …" — the confirmation too.
|
||||
- **R-983 (one of seven):** `/api/server/reboot` acted on a GET (CsrfProtect lets GET through) — now 405.
|
||||
- Tests (`internal/web/poweroff_handlers_test.go`): the word is required (5 wrong bodies, 5 right ones), POST only, the
|
||||
agent's and the controller's refusals shown and nothing asked of the agent, the card hidden for an old agent (and a 404
|
||||
answered as outdated), every refusal reason has a sentence in both languages, the restart route refuses a GET.
|
||||
Red-proofed: each guard removed in turn convicted its test. The four `settings_system` i18n parity fixtures were
|
||||
regenerated on purpose; the diff is exactly the new card, the dialog's type-to-confirm and the restart texts.
|
||||
|
||||
## v0.309.0 — the simpler notification page: three group switches (R-388 slice 1); the fill warning in the household's language (R-521 F7) (2026-10-12)
|
||||
|
||||
**MinAgent: 0.131.0** (unchanged — no agent call changed). **No wire change, no hub change:** the page still saves the
|
||||
|
||||
Reference in New Issue
Block a user