mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
Give the mobile cycle smoke test a verdict to render
The spec hand-builds a calendar response, and the wheel now reads the resolved verdict from it. Without the field the ring paints empty, so the fixture derives the verdict from the same phase plan it derives the day grid from and the two cannot drift apart.
This commit is contained in:
1 parent
c65f122017
commit
043d2ba143
2 files changed
+50
-24
No files matched your search
@@ -109,19 +109,6 @@ const LUTEAL_VERDICT: CycleVerdict = {
|
||||
fertileWindow: { start: null, end: null, active: false },
|
||||
};
|
||||
|
||||
/** The verdict for an account with nothing to say about today. */
|
||||
const NO_CYCLE_VERDICT: CycleVerdict = {
|
||||
state: "INSUFFICIENT_DATA",
|
||||
dayOfCycle: null,
|
||||
cycleLength: null,
|
||||
phase: null,
|
||||
spans: [],
|
||||
cycleStartDate: null,
|
||||
overdueDays: null,
|
||||
daysUntilNext: null,
|
||||
fertileWindow: { start: null, end: null, active: false },
|
||||
};
|
||||
|
||||
/** A calendar read whose SERVER-RESOLVED verdict puts today on LUTEAL, day 3.
|
||||
* The card renders the verdict; it no longer derives anything from `days`. */
|
||||
function lutealCalendar(today: string): CalendarResponse {
|
||||
|
||||
Reference in new issue
Block a user