Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(icon): improve icon load error message #11367

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Jan 23, 2025

Related Issue: N/A

Summary

This improves clarity by displaying the icon name and scale separately in the error message instead of an internal key used by icon utils:

"measure16" is not a valid calcite-ui-icon name

⬇️

measure (s) icon failed to load.

Also, this now uses the logger to display the calcite badge for additional context.

@github-actions github-actions bot added the chore Issues with changes that don't modify src or test files. label Jan 23, 2025
@jcfranco jcfranco added the skip visual snapshots Pull requests that do not need visual regression testing. label Jan 23, 2025
Copy link
Member

@benelan benelan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jcfranco jcfranco merged commit 62f2ef2 into dev Jan 23, 2025
18 checks passed
@jcfranco jcfranco deleted the jcfranco/improve-icon-load-error-message branch January 23, 2025 22:28
benelan added a commit that referenced this pull request Jan 24, 2025
* origin/dev: (34 commits)
  build: update browserslist db (#11339)
  build(deps): update dependency lint-staged to v15.4.1 (#11343)
  chore: release next
  feat(graph): add component tokens (#11355)
  chore: release next
  fix(popover, tooltip): drop relative-positioning to reduce risk of clipping (#11373)
  chore: release next
  fix(date-picker): no longer disable min/max value month in select menu (#11350)
  chore(icon): improve icon load error message (#11367)
  fix(date-picker): remove outline for header actions (#11369)
  chore: release next
  fix(carousel): Ensure correct `autoplay` display and animation (#11338)
  chore: release next
  fix(flow): process items on loaded (#11364)
  chore: release next
  fix(combobox, stepper, table): respect user hidden attribute (#10983)
  refactor(action-pad): restore rounded styling (#11358)
  test(combobox): avoid emitting change event for value property update (#11281)
  chore: release next
  refactor(action-pad): remove unnecessary overflow css styling. (#11349)
  ...
benelan pushed a commit that referenced this pull request Feb 8, 2025
**Related Issue:** N/A

## Summary

This improves clarity by displaying the icon name and scale separately
in the error message instead of an internal key used by icon utils:

```sh
"measure16" is not a valid calcite-ui-icon name
```

⬇️

```sh
measure (s) icon failed to load.
```

Also, this now uses the logger to display the `calcite` badge for
additional context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issues with changes that don't modify src or test files. skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants