Repository navigation
feat: image-managed core (no package updates) and first account made on the machine - #55
Conversation
- core `[server] ImageManaged` (CasaOS `feat/nixos-host`): `GET /v1/sys/version` answers `image_managed: true`, host-management routes are absent - most rows already hide against a core without the route (automatic updates, modules, OS badge) - System packages row: always shown → now hidden when `image_managed` - update row: "Updated with the system image" instead of "latest version" - en, fr, it, de, nl - tests: template rows, checkVersion keeps the flag, translations Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- core UserService `[app] FirstAdmin = local` (`feat/local-first-admin`): `GET /v1/users/status` → `first_admin: local`, no key; register → 403 - welcome page: says the first account is created on the machine, reload to sign in; no Go/form (it could only fail) - `first_admin` absent (older core) or `web`: unchanged - en, fr, it, de, nl - tests: router keeps `first_admin`; template and translations Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
inkly
left a comment
There was a problem hiding this comment.
Thanks, the fallbacks are right: a missing image_managed or first_admin gives today's behaviour, and the form cannot be reached once first_admin is local. Before merging, could you:
- add router tests with a status that has no
first_adminand withfirst_admin: 'web', and acheckVersiontest withoutimage_managed, so "older core = today's behaviour" is tested and not only matched in the template; - reword the two texts for non-technical users, e.g. "Updated with the system" and "created on the device running ReCasaOS", rather than "system image" or "the machine itself".
We'll merge it after CasaOS#53 and CasaOS-UserService#6. We'll squash-merge with a plain commit message, so nothing to change in the commit trailers.
…users - router: status without first_admin, and with first_admin web → the welcome page with its form and the key - checkVersion without image_managed → field absent, package and update rows as today - texts: "Updated with the system"; "The first account is created on the device running ReCasaOS. …" (en, fr, it, de, nl)
|
Done in c596c86:
|
inkly
left a comment
There was a problem hiding this comment.
Thanks, both points are addressed: the tests now cover an older core and first_admin: 'web' through the router, and the new wording is much clearer in all five languages. It merges cleanly with main and with #56, and the suite is green. Approving. We'll squash-merge with a plain commit message.
Dashboard side of ReCasaOS/CasaOS#44 (core: ReCasaOS/CasaOS#53) and #45 (user service: ReCasaOS/CasaOS-UserService#6). Both only read new fields; an older core changes nothing.
feat(settings): an image-managed core shows no package updatesGET /v1/sys/version→image_managedfeat(welcome): first account made on the machine, no formGET /v1/users/status→first_adminlocal: says the first account is created on the machine, reload to sign in; no Go / form (it could only fail with 403)false/webimage_managed; router keepsfirst_adminin the store; Welcome template + translationsvitest run: 111 files, 7180 tests green; eslint: no new findings🤖 Generated with Claude Code