From ddea7fc5127b4a9abac80421da9717828af90ed4 Mon Sep 17 00:00:00 2001
From: Elijah
{reauth
@@ -213,7 +216,6 @@ function Dashboard({
edit,
remove,
openLibrary,
- logWeight,
}: {
records: JournalRecord[];
settings: SettingsData;
@@ -223,7 +225,6 @@ function Dashboard({
edit: (r: JournalRecord
- {latestWeight - ? `Latest weigh-in · ${displayDate(latestWeight.data.date, { month: "short", day: "numeric" })}` - : "Log your weight. See the bigger picture."} -
-A little less effort, every time you log.
- Progress looks
-
- different every day.
-
+ {tilt.status === "denied" + ? "Motion permission was not granted. Check your browser’s website permissions." + : tilt.status === "unavailable" + ? "Orientation sensors are unavailable on this device. Bubbles still fall normally." + : tilt.status === "permission" + ? "Enable tilt again to grant motion access for this session." + : "Uses this device’s orientation. iPhone may request permission again after reopening. Reduced motion pauses the animation."} +
Small moments. A little perspective.
+ {mode === "weight" && ( +Your weigh-ins and changes over time.
+- {loggedDays.length} of {period} days logged · Empty days are - excluded from the average. -
- -+ {loggedDays.length} of {period} days logged · Empty days are + excluded from the average. +
+
+ {delta === null ? (
+ "Log another day to see a change over time."
+ ) : (
+ <>
+ {delta < 0 ? (
+
- {delta === null ? (
- "Log another day to see a change over time."
- ) : (
- <>
- {delta < 0 ? (
-
No weigh-ins in this date range.
) : ( -No weigh-ins in this date range.
- ) : ( - [...weights].reverse().map((r) => ( -- Motion access was not granted. You can allow it in your browser’s - website settings. -
- )} - {physics.motion === "unavailable" && ( -- No tilt data yet. Falling bubbles still work on this device. -
- )} - > - )} + {!small &&