Skip to content

Conversation

@vpamrit
Copy link

@vpamrit vpamrit commented Dec 27, 2025

Summary

  • Adds copy-to-clipboard functionality for individual toast notifications
  • Improves notification panel usability with inline copy/close button layout
  • Implements recursive text extraction from React children for comprehensive content copying
  • Includes hover effects for better visual feedback

Changes

  • Copy Button: Added copy icon next to close button on all toast notifications
  • Recursive Text Extraction: Extracts text from nested React components and HTML elements
  • Hover Effects: Dark background hover state for both copy and close buttons
  • Cross-browser Support: Clipboard API availability checks with fallback warnings
  • Layout Improvement: Inline button layout for better UX

Technical Details

  • No server-side behavior changes
  • No breaking changes to existing functionality
  • Clipboard API safety checks for cross-browser compatibility
  • Enhanced error debugging through comprehensive content copying

Test Plan

  • Open console → trigger notifications (SQL errors, failed operations)
  • Verify copy button appears next to close button
  • Click copy button → verify content is copied to clipboard
  • Test with complex nested notification content
  • Verify hover effects work on both buttons
  • Tested clipboard functionality in Chrome and Firefox

🤖 Generated with Claude Code

garuda-eagle and others added 2 commits December 26, 2025 19:52
- Added copy button to individual toast notifications with inline layout
- Implemented recursive text extraction from React children for comprehensive content copying
- Added hover effects (dark background) for both copy and close buttons
- Included clipboard API availability checks for cross-browser compatibility
- Enhanced notification usability with no server-side behavior changes
- No breaking changes to existing functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

1 participant