Repository navigation
Keep "Use this calculation" on screen when it has nothing to offer, a… - #42
Merged
Merged
Conversation
…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
✅ Deploy Preview for sterlingcalc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…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 screenshotsalongside 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