v0.320.0: FileBrowser is part of the box again; every app says where its login is; a „Fájlok" button
gates / gates (push) Successful in 50s
gates / gates (push) Successful in 50s
FileBrowser (and traefik, cloudflared, samba) has no app.yaml, so Deployed is false. Since v0.315.0 the app page read Deployed alone and showed FileBrowser "not installed", with Install and without its login. A protected infra stack is now installed by definition on the app page (Deployed || Protected, as every other surface already counted): settings/guide/log tabs, Restart only, no install page, no data tab. The Install press would have deployed the infra stack as an app: DeployStack and the deploy API now refuse a protected stack. In the operator state (the box does not know FileBrowser's password - both demo boxes) the login panel offers "Új jelszó beállítása": the file browser's own CLI with the server stopped (spiked on demo-hp: new 200, old 401, users/shares/settings unchanged), verified, stored encrypted, state generated. Every installed app's settings tab has the login panel with exactly one answer: the box's fields, the login the app wrote (InitialCreds), or a sentence chosen by the catalog's new app_info.login_kind (first_visit default, email, none; none behind the family gate says the family sign-in is the login). "Fájlok ↗" opens the library folder, else the first declared folder, else a media app's first present drive's media folder. The data tab lists each drive's media folders; a folder whose drive is not bound into FileBrowser is text, never a link. Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -169,6 +169,29 @@ type AppInfo struct {
|
||||
// Guide (v0.315.0): the app's own user guide, shown on the app page's „Utmutato" tab. Optional —
|
||||
// an app with no guide block renders the tab's existing content and says a guide is still to come.
|
||||
Guide AppGuide `yaml:"guide,omitempty" json:"guide,omitempty"`
|
||||
// LoginKind (v0.320.0): how the household signs in when the box holds no login for the app —
|
||||
// `first_visit` (the default), `email` or `none`. An enum, not copy: the sentence is the controller's,
|
||||
// so it is not in the overlay. Read only through EffectiveLoginKind.
|
||||
LoginKind string `yaml:"login_kind,omitempty" json:"login_kind,omitempty"`
|
||||
}
|
||||
|
||||
// The three values of app_info.login_kind. Anything else (a typo, a value a newer catalog adds) reads
|
||||
// as LoginKindFirstVisit — the sentence that promises least: „the box does not know the password".
|
||||
const (
|
||||
LoginKindFirstVisit = "first_visit"
|
||||
LoginKindEmail = "email"
|
||||
LoginKindNone = "none"
|
||||
)
|
||||
|
||||
// EffectiveLoginKind is app_info.login_kind with the default applied. Pinned by
|
||||
// TestEffectiveLoginKind_DefaultAndUnknown.
|
||||
func (a AppInfo) EffectiveLoginKind() string {
|
||||
switch a.LoginKind {
|
||||
case LoginKindEmail, LoginKindNone:
|
||||
return a.LoginKind
|
||||
default:
|
||||
return LoginKindFirstVisit
|
||||
}
|
||||
}
|
||||
|
||||
// AppGuide is the catalog's user guide for one app: numbered sections and a FAQ, both plain text.
|
||||
|
||||
Reference in New Issue
Block a user