Skip to content

fix: catch invalid Google Charts format patterns and show i18n error#1272

Open
HardeepAsrani wants to merge 1 commit intodevelopmentfrom
fix/issue-556
Open

fix: catch invalid Google Charts format patterns and show i18n error#1272
HardeepAsrani wants to merge 1 commit intodevelopmentfrom
fix/issue-556

Conversation

@HardeepAsrani
Copy link
Member

Summary

Wrap gv.NumberFormat/DateFormat construction in a try/catch to prevent uncaught 'Too many percent/permill' errors from invalid ICU patterns. Show a localised error message inline below the format input field and clear it automatically when the pattern becomes valid.

Will affect visual aspect of the product

YES/NO

Screenshots

Test instructions

  • Make sure the error doesn't appear anymore in Library.

Check before Pull Request is ready:

Closes https://github.com/Codeinwp/visualizer-pro/issues/556.

Wrap gv.NumberFormat/DateFormat construction in a try/catch to prevent
uncaught 'Too many percent/permill' errors from invalid ICU patterns.
Show a localised error message inline below the format input field and
clear it automatically when the pattern becomes valid.
@pirate-bot pirate-bot added the pr-checklist-incomplete The Pull Request checklist is incomplete. (automatic label) label Mar 11, 2026
@pirate-bot
Copy link
Contributor

Plugin build for bc7d2f3 is ready 🛎️!

@HardeepAsrani HardeepAsrani added pr-checklist-skip Allow this Pull Request to skip checklist. and removed pr-checklist-incomplete The Pull Request checklist is incomplete. (automatic label) labels Mar 11, 2026
@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants