Skip to content

Keep "Use this calculation" on screen when it has nothing to offer, a… - #42

Merged
khaitanvaibhav merged 1 commit into
mainfrom
claude/plan-enhancements-UABF2
Aug 1, 2026
Merged

khaitanvaibhav merged 1 commit into
mainfrom
claude/plan-enhancements-UABF2

Conversation

@khaitanvaibhav

Copy link
Copy Markdown
Contributor

…nd show the Tools in the README

The button was hidden whenever LAST_CP or LAST_SP was null — a fresh page, or MRP entered with no discounts yet. From the outside that reads as a broken feature rather than an unavailable one: the README describes a button that is simply not there, and there is nothing to say why.

It now stays put, disabled, and gives the reason twice — in its title and in the dialog's own status line, which is a live region so a screen reader gets it too. Pressing it with a calculation on screen is unchanged; that path was working, and is now covered through the delegated handler rather than by calling the function directly.

Two new README screenshots, both generated by npm run screenshots alongside the existing pair: the Tools menu open, and the currency converter. Neither of the new features was visible in the README before. They are taken separately rather than composed — the converter is a modal with a blurred backdrop, so a menu shown behind it photographs as a smear.

1549 assertions, 0 failures.

Claude-Session: https://claude.ai/code/session_014vjNhTSno87yfot5BbyX4w

…nd show the Tools in the README

The button was hidden whenever LAST_CP or LAST_SP was null — a fresh
page, or MRP entered with no discounts yet. From the outside that reads
as a broken feature rather than an unavailable one: the README
describes a button that is simply not there, and there is nothing to
say why.

It now stays put, disabled, and gives the reason twice — in its title
and in the dialog's own status line, which is a live region so a screen
reader gets it too. Pressing it with a calculation on screen is
unchanged; that path was working, and is now covered through the
delegated handler rather than by calling the function directly.

Two new README screenshots, both generated by `npm run screenshots`
alongside the existing pair: the Tools menu open, and the currency
converter. Neither of the new features was visible in the README
before. They are taken separately rather than composed — the converter
is a modal with a blurred backdrop, so a menu shown behind it
photographs as a smear.

1549 assertions, 0 failures.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014vjNhTSno87yfot5BbyX4w
@netlify

netlify Bot commented Aug 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sterlingcalc ready!

Name Link
🔨 Latest commit 999832b
🔍 Latest deploy log https://app.netlify.com/projects/sterlingcalc/deploys/6a6da288c526720009e77e0c
😎 Deploy Preview https://deploy-preview-42--sterlingcalc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@khaitanvaibhav
khaitanvaibhav merged commit 29eea3f into main Aug 1, 2026
9 of 10 checks 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