diff --git a/web/src/screens/Settings.tsx b/web/src/screens/Settings.tsx index ea4268f..814599f 100644 --- a/web/src/screens/Settings.tsx +++ b/web/src/screens/Settings.tsx @@ -101,6 +101,7 @@ export default function Settings() { {saved}
+

You

Name updProfile({ ...profile, name: e.target.value }, 900)} onBlur={() => void flush()} />
How I sleep @@ -109,20 +110,30 @@ export default function Settings() {
}
+ +
+
+ As you lie in bed. Tap the other half to change it.} + onChange={async z => { + if (z === "both" || z === me.zone) return; + if (partner) { setConfirmSwap(true); return; } + try { await api.put(`/api/people/${me.id}/profile`, { zone: z }); setSaved(`Now on the ${sideLower(z)}`); window.setTimeout(() => setSaved(null), 2500); } + catch (e) { setSaved(`Couldn't change it: ${(e as Error).message}`); } + }} /> +
+ {partner && }
+ {auth.isOwner && { setSaved(m); window.setTimeout(() => setSaved(null), 2500); }} />}
+
+
+ + upd({ work_days: v })} /> + +

Your nights

upd({ hot_flash: f })} /> upd({ cold_flash: f })} /> - {isApp() ? : } - -
- - -

{isApp() ? "They can also go to the ntfy or Home Assistant app, as a backup. Set that up" : "Choose where they're sent"} in Studio → Notifications.

-
-
-
{(["off", "suggest", "act"] as const).map(m => )}
@@ -172,6 +183,8 @@ export default function Settings() {
+ +
Open on @@ -186,59 +199,38 @@ export default function Settings() {
- -
- -
-
- - -
-
- As you lie in bed. Tap the other half to change it.} - onChange={async z => { - if (z === "both" || z === me.zone) return; - if (partner) { setConfirmSwap(true); return; } - try { await api.put(`/api/people/${me.id}/profile`, { zone: z }); setSaved(`Now on the ${sideLower(z)}`); window.setTimeout(() => setSaved(null), 2500); } - catch (e) { setSaved(`Couldn't change it: ${(e as Error).message}`); } - }} /> -
- {partner && }
- {auth.isOwner && { setSaved(m); window.setTimeout(() => setSaved(null), 2500); }} />}
-
-
- - upd({ work_days: v })} /> - - +

Notifications

+ {isApp() ? : } +
- -
- Your colour
For your name, chart and side everywhere, including the bedside dials
- upd({ color: c })} /> -
-
Light or dark
+ + +

{isApp() ? "They can also go to the ntfy or Home Assistant app, as a backup. Set that up" : "Choose where they're sent"} in Studio → Notifications.

+

Watch, ring and pets

{isApp() && } {isApp() && } upd({ wearable: v })} /> - - -
-
Simple app
Just temperature, flashes and an easy schedule. Everything else stays in Studio.
- upd({ app_mode: e.target.checked ? "simple" : "full" })} aria-label="Simple app" />
- {(!auth.state.enabled || auth.isOwner) && } -
+ {petCount == null ? "Set up ›" : petCount === 0 ? "None ›" : `${petCount} pet${petCount === 1 ? "" : "s"} ›`} +
} {petsOpen && setPetsOpen(false)} role="dialog" aria-label="Pets on the bed">
Pets on the bed

Their readings are recognised and set aside, so a pet won't start your night or sway Autopilot.

} +

Your home

+ +
+ +
+
+ {auth.isOwner &&
{Object.entries(snap.guest ?? {}).map(([z, g]) => g && ( @@ -254,6 +246,22 @@ export default function Settings() { } +

App

+ +
+ +
+ Your colour
For your name, chart and side everywhere, including the bedside dials
+ upd({ color: c })} /> +
+
Light or dark
+
+
+ +
+
Simple app
Just temperature, flashes and an easy schedule. Everything else stays in Studio.
+ upd({ app_mode: e.target.checked ? "simple" : "full" })} aria-label="Simple app" />
+
{isApp() && } diff --git a/web/src/theme.css b/web/src/theme.css index 260421c..9b392c5 100644 --- a/web/src/theme.css +++ b/web/src/theme.css @@ -395,6 +395,9 @@ body:has(.app.tab){background:var(--bg)} /* Settings: sections flow into two columns (phones: the wrapper is invisible) */ .settings-flow{display:contents} +.settings-group{font-size:17px;font-weight:500;color:var(--text);margin:22px 2px -2px;letter-spacing:0} +.settings-flow > .settings-group:first-child{margin-top:6px} +.app.tab .settings-flow > .settings-group{break-after:avoid;margin:18px 2px 8px} .app.tab .settings-flow{display:block;column-count:2;column-gap:32px} .app.tab .settings-flow > *{margin-bottom:14px} .app.tab .settings-flow > .k{break-after:avoid;margin-bottom:8px}