Skip to content

Tooltips: extend ⓘ + popover to remaining PnL tiles and Net Cost hero#27

Merged
heyitsStylez merged 2 commits into
mainfrom
pnl-tooltips-batch-ab
May 6, 2026
Merged

Tooltips: extend ⓘ + popover to remaining PnL tiles and Net Cost hero#27
heyitsStylez merged 2 commits into
mainfrom
pnl-tooltips-batch-ab

Conversation

@heyitsStylez
Copy link
Copy Markdown
Owner

@heyitsStylez heyitsStylez commented May 6, 2026

Summary

Builds on #26 to extend the new ⓘ + styled-popover affordance.

  • Batch B — tooltips on the four other Premium P&L Total-tab tiles (Total Premium Collected, Total Notional, Portfolio APR, Return Rate) so the row is internally consistent.
  • Batch A — tooltip on the Holdings card Net Cost hero, explaining the premium-reduced entry-price lens and how it differs from the new Unrealised P&L mark-to-market lens. Mandated by PRD PRD: Revamp PnL module — cash-flow lens with Realised / Unrealised / Total split #12 user story 13.
  • CSS generalised — popover moves from .ppnl-card.has-tip to a reusable .has-tip class so future opt-in elsewhere is one line.

Test plan

  • npm test — 52 tests pass (5 new integration tests)
  • python3 build.py --check — JS syntax OK
  • Manual: hover each Premium P&L tile and the Holdings card Net Cost hero — popover appears with correct copy

🤖 Generated with Claude Code

Batch B — adds tooltips to Total Premium Collected, Total Notional,
Portfolio APR, and Return Rate so the Premium P&L Total tab is
internally consistent (every tile gets the same affordance).

Batch A — Holdings card Net Cost hero gets a tooltip explaining the
premium-reduced entry-price lens and how it differs from the new
Unrealised P&L mark-to-market lens (PRD #12 user story 13).

CSS generalised: tooltip popover moves from .ppnl-card.has-tip to a
reusable .has-tip class so future opt-in elsewhere is one line.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 6, 2026

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

Project Deployment Actions Updated (UTC)
hyperwheel Ready Ready Preview, Comment May 6, 2026 0:11am

- .hcard had overflow:hidden, which clipped the Net Cost popover
  anchored to the .hcard-hero inside. Removed; added a regression test
  that reads the stylesheet and asserts .hcard never sets it again.
- Dropped the native title= attribute we were emitting alongside
  data-tip on each PnL tile. Browsers were rendering the slow native
  tooltip on top of the styled popover.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@heyitsStylez heyitsStylez merged commit d30e5b7 into main May 6, 2026
4 checks passed
@heyitsStylez heyitsStylez deleted the pnl-tooltips-batch-ab branch May 6, 2026 00:13
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