Dashboard Studio 2.0.0: Admin, Builder and Dashboard screens, roles, Haven
- Home Assistant administrators are admins: Dashboard, Builder and Admin screens - Everyone else only sees the dashboards an admin chose, always in kiosk mode; the server enforces it (saving, people, devices, history are admin-only, and the websocket only allows reading states and controlling devices) - Admin screen: dashboards, people and what each sees (with preview), devices, messages to the screens, the Haven app, activity, about - Haven: new Android app (haven/) that only shows dashboards; replaces the Dashboard Studio Android app and signs in through Home Assistant's page - Screens pick up dashboard and access changes within a minute - Version history records who made each change; panel visible to all users Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,9 @@ self.addEventListener("fetch", (e) => {
|
||||
return res;
|
||||
}
|
||||
if (!page) return res;
|
||||
throw new Error(String(res.status));
|
||||
// Signed out of Home Assistant: the last good copy renews the session itself. Without one, pass
|
||||
// the refusal on, so Haven knows to sign in again.
|
||||
return (await cache.match(new URL("./", self.registration.scope).href)) || res;
|
||||
} catch (err) {
|
||||
const hit = page ? await cache.match(new URL("./", self.registration.scope).href) : await cache.match(req);
|
||||
if (hit) return hit;
|
||||
|
||||
Reference in New Issue
Block a user