Skip to content

Restore pump-pill and bolus-card border animations in the new Home#58

Merged
Sjoerd-Bo3 merged 1 commit into
Build-Experimentfrom
feat/restore-loop-bolus-animations
Jul 18, 2026
Merged

Restore pump-pill and bolus-card border animations in the new Home#58
Sjoerd-Bo3 merged 1 commit into
Build-Experimentfrom
feat/restore-loop-bolus-animations

Conversation

@Sjoerd-Bo3

Copy link
Copy Markdown
Owner

Summary

The Liquid-Glass Home kept the loop-pill spinning border but dropped two of the fork's animations. This restores them:

  • Pump pillHomeRootView+Header was calling PumpView(...) without isBolusing, so the reservoir-pill border never spun during a bolus (even though PumpView still supports it). Now passes isBolusing: state.bolusStatus != .noBolus, so it animates during both the initiating and delivering phases.
  • Bolus card — the new card showed a bottom BolusProgressBar instead of the fork's full-card border. Swapped it for progressRoundedBorder (the bright fill runs left→right along the top and bottom edges as the bolus completes), using the glass panel's corner radius (26) and a 3pt line to match the pump/loop pill treatment.

The loop pill already had its spinning border (LoopView.spinningCapsuleBorder(isActive: showLooping)), so it's untouched.

Notes

  • BolusProgressBar is still used by the Treatments view — only removed from the Home card.
  • Compile-verified on CI; the actual look needs your on-device eyes (if the loop pill specifically still isn't animating for you, tell me — that one's already wired, so it'd point to a state/isLooping issue rather than the border).

Verification

  • compile_check runs on this branch.

Generated by Claude Code

The Liquid-Glass Home kept the loop-pill spinning border but dropped two others:

- Pump pill: HomeRootView+Header called PumpView without isBolusing, so the
  reservoir pill border never animated during a bolus. Pass
  isBolusing: state.bolusStatus != .noBolus.
- Bolus card: the card used a bottom BolusProgressBar instead of the fork's
  full-card progress border. Replace it with progressRoundedBorder (fill runs
  left→right along the top and bottom edges as the bolus completes), matching
  the panel corner radius and the pump/loop pill treatment.
@Sjoerd-Bo3
Sjoerd-Bo3 merged commit b8311d3 into Build-Experiment Jul 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants