Commit 5868401
authored
fix: replace share alert with toast notification (JhaSourav07#1930)
## Description
Fixes JhaSourav07#1917
Replaces the browser-native `alert()` shown after clicking the Share
button with a non-blocking Sonner toast notification.
### Changes Made
* Removed `alert('Link copied to clipboard!')`
* Added `toast.success('Link copied to clipboard!')`
* Preserved existing clipboard copy functionality
* Aligned the Share action with the project's existing notification
system
### Why
The Share action currently displays a blocking browser alert after
successfully copying the dashboard URL. This interrupts the user
experience and is inconsistent with the application's modern UI
patterns.
Using the existing Sonner toast system provides a smoother and more
consistent experience across desktop and mobile devices.
## Pillar
* [ ] 🎨 Pillar 1 — New Theme Design
* [ ] 📐 Pillar 2 — Geometric SVG Improvement
* [ ] 🕐 Pillar 3 — Timezone Logic Optimization
* [x] 🛠️ Other (Bug fix, refactoring, docs)
## Visual Preview
**Before**
* Clicking Share copied the URL and displayed a browser-native alert
dialog.
**After**
* Clicking Share copies the URL and displays a non-blocking success
toast notification.
## Checklist before requesting a review:
* [x] I have read the `CONTRIBUTING.md` file.
* [x] I have tested these changes locally (`localhost:3000`).
* [x] I have run `npm run lint` locally and resolved all errors.
* [x] My commits follow the Conventional Commits format.
* [ ] I have updated `README.md` if I added a new theme or URL
parameter.
* [x] I have started the repo.
* [x] I have made sure that i have only one commit to merge in this PR.
* [x] The SVG output matches the CommitPulse "premium quality" aesthetic
standard.
* [x] (Recommended) I joined the CommitPulse Discord community for
contributor discussions, mentorship, and faster PR support.1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| |||
0 commit comments