Skip to content

Conversation

@vvm1004
Copy link

@vvm1004 vvm1004 commented Sep 4, 2025

This pull request introduces two new UI components for transaction feedback: a toast notification for transaction status and a smart retry button. It also adds documentation and preview pages for both components, and makes them available for import in the Murphy UI library. These additions improve user experience by providing real-time transaction status updates and robust retry mechanisms.

New Transaction Feedback Components:

  • Added TxnFeedbackToast component to display real-time toast notifications for transaction states such as preparing, signing, sending, confirming, success, and error, with context-aware actions (e.g., retry, copy signature, close). (components/ui/murphy/Txn-Feedback/txn-feedback-toast.tsx)
  • Added TxnRetryButton component that supports configurable retry logic (max retries, delay, loading state, disabled state, retry counter, and custom labels/styles). (components/ui/murphy/Txn-Feedback/txn-retry-button.tsx)

Documentation and Previews:

  • Added preview and usage documentation for TxnFeedbackToast and TxnRetryButton, including installation instructions, prop tables, and example strategies for different error types. (content/docs/onchainkit/Txn-Feedback/txn-feedback-toast.mdx, content/docs/onchainkit/Txn-Feedback/txn-retry-button.mdx) [1] [2]
  • Created preview components for both features to demonstrate their usage and states interactively. (components/txn-feedback-toast-preview.tsx, components/txn-retry-button-preview.tsx) [1] [2]

Murphy UI Library Integration:

  • Exported TxnFeedbackToast and TxnRetryButton from the Murphy UI library for easy use across the app. (components/ui/murphy/index.tsx) [1] [2]

Meta and Navigation Updates:

  • Updated documentation meta to include "Txn-Feedback" in the section list for discoverability. (content/docs/onchainkit/meta.json)

These changes collectively enhance the developer and user experience for transaction flows, making error handling and feedback more transparent and actionable.

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