mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
Remove the single-night "Last night" hypnogram from the sleep overview: its per-stage breakdown (time + %) duplicated the phase-distribution stacked bar directly below it. The /api/sleep/night route stays (the dashboard reads it); only the redundant surface is gone. Promote the chronotype to the prominent bottom block of the view. Split it out of the rhythm section (now the sleep-debt headline alone) into its own section: a large band label with the natural sleep-midpoint clock beneath it and an expandable disclosure for social jetlag + MSFsc. It reads the same ["sleep-rhythm"] cache, so it adds no round-trip, and keeps the calm "still learning your rhythm — N of M nights" state. Fix the sleep-quality assessment slot. It disabled the status fetch whenever the AI narrative was absent, so the card could not read hasProvider and fell back to its no-provider default — surfacing the "connect an AI provider" CTA even for accounts that have a provider connected, stacked under the grounded note. The card now stays enabled and reports the truthful state: no provider shows its clean AI-settings CTA alone; a connected provider with no text yet shows the grounded note; warm or preparing AI text wins. Exactly one block fills the slot.