mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
refine(cycle): consolidate disclaimer, align columns, unify tiles
Move the non-medical disclaimer to the cycle-tracking on-ramp and drop it from the repeating in-feature surfaces (calendar tab, predictions panel); delete the now-unused disclaimer component. Align the left ring column with the tab content rather than the tab strip. Raise the settings subheading sizes to the standard card-description scale. Reflow the reminder rows so a wrapping label no longer collides with its button at narrow widths. Unify the wheel and phase-education tile padding. Cite the symptothermal double-check primary source under the second fertility sign.
This commit is contained in:
1 parent
b8fc648bfc
commit
75129c798d
12 files changed
+100
-125
No files matched your search
@@ -37,33 +37,19 @@ const emptyHistory: CycleHistoryResponse = {
|
||||
};
|
||||
|
||||
describe("<PredictionsPanel>", () => {
|
||||
it("renders the next-period range and shows the disclaimer under the AVOID_PREGNANCY goal", () => {
|
||||
it("renders the next-period range without repeating the non-medical disclaimer", () => {
|
||||
// The disclaimer now lives once at the cycle-tracking on-ramp, never beneath
|
||||
// the prediction surfaces, so the panel must not render it for any goal.
|
||||
const html = render(
|
||||
<PredictionsPanel
|
||||
prediction={basePrediction}
|
||||
rawChartMode={false}
|
||||
history={emptyHistory}
|
||||
goal="AVOID_PREGNANCY"
|
||||
/>,
|
||||
);
|
||||
expect(html).toContain('data-slot="cycle-disclaimer"');
|
||||
expect(html).toContain("Estimates only, not medical advice.");
|
||||
// The range (not a single date) renders.
|
||||
expect(html).toContain("–");
|
||||
});
|
||||
|
||||
it("suppresses the generic estimate disclaimer for non-AVOID_PREGNANCY goals", () => {
|
||||
const html = render(
|
||||
<PredictionsPanel
|
||||
prediction={basePrediction}
|
||||
rawChartMode={false}
|
||||
history={emptyHistory}
|
||||
goal="GENERAL_HEALTH"
|
||||
/>,
|
||||
);
|
||||
expect(html).not.toContain('data-slot="cycle-disclaimer"');
|
||||
expect(html).not.toContain("Estimates only, not medical advice.");
|
||||
// The range still renders.
|
||||
// The range (not a single date) renders.
|
||||
expect(html).toContain("–");
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user