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

Improvement(notifications): Add copyable request IDs to server side errors #2839

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

McPizza0
Copy link
Contributor

@McPizza0 McPizza0 commented Dec 4, 2024

Description 📣

image

This PR adds copyable request IDs to serverside error notifications.

To handle this, 2 new createNotification props were created:
cta: reactNode : accepts child components to render on the bottom left of the notification (used for "Show More" modal above)
copyActions?: { icon?: IconDefinition; value: string; name: string; label?: string }[] : allows injecting multiple copyable values to the notification. icon default is faCopy, label will be displayed to the left of the copy button.

other changes:
New CopyButton component for ease of use and consistency across app
Tooltip component now has prop.size for when standard tooltip is too large

Type ✨

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation

Tests 🛠️

manually tested


@McPizza0 McPizza0 marked this pull request as ready for review December 4, 2024 16:33
@DanielHougaard DanielHougaard merged commit 4ace30a into main Dec 5, 2024
3 checks passed
@McPizza0 McPizza0 deleted the omar/eng-1966-click-to-copy-req-id-on-toast branch December 5, 2024 00:21
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