Skip to content

Wheeler: fix negative net premium display + hide % kept on rolled legs - #149

Merged
heyitsStylez merged 1 commit into
mainfrom
fix/rolled-leg-display
Oct 15, 2026
Merged

heyitsStylez merged 1 commit into
mainfrom
fix/rolled-leg-display

Conversation

@heyitsStylez

Copy link
Copy Markdown
Owner

Summary

  • CLOSED legs where the buy-back exceeds the premium (common on a roll) rendered as "+$-288"; now "−$288" in red (history table + mobile card, via _netPremHtml).
  • The % kept badge is hidden on legs tagged ↻ rolled; a roll's buy-back isn't a standalone loss, so "−180% kept" was misleading.

Test plan

  • python3 build.py --check
  • npm test: 204 pass (Wheeler roll integration test now asserts −$70, no +$-, no % kept)
  • Check the PURR rolled leg on the gowheeler preview

🤖 Generated with Claude Code

A CLOSED leg whose buy-back exceeds its premium (common on a roll)
rendered as "+$-288"; it now shows "−$288" in red. The % kept badge is
suppressed on legs tagged ↻ rolled, where it reads as a misleading loss.
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
gowheeler Ready Ready Preview Oct 15, 2026 2:46pm UTC
hyperwheel Ready Ready Preview Oct 15, 2026 2:46pm UTC

@heyitsStylez
heyitsStylez merged commit 9469604 into main Oct 15, 2026
5 checks passed
@heyitsStylez
heyitsStylez deleted the fix/rolled-leg-display branch October 15, 2026 14:46

This branch was successfully deployed

2 active deployments
Preview – gowheeler — 08b38c5d Deployed Oct 15, 2026 by vercel[bot]
Preview – hyperwheel — 08b38c5d Deployed Oct 15, 2026 by vercel[bot]
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.

1 participant