feat: add InlineTxnStatus component with status indicators and documentation #190
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a inline transaction status indicator component, along with supporting documentation, type definitions, and registry entries. The main focus is on providing a consistent way to display transaction states (such as loading, success, error) with customizable icons, text, and styles. The component is now available for import and usage throughout the codebase and is documented for easy adoption.
New Component: Inline Transaction Status
InlineTxnStatusReact component incomponents/ui/murphy/Txn-Feedback/inline-txn-status.tsx, supporting various transaction states ("idle", "preparing", "signing", "sending", "confirming", "success", "error"), sizes, and optional text display. It uses icons fromlucide-reactand supports custom styling through props.Documentation and Usage
content/docs/onchainkit/Txn-Feedback/inline-txn-status.mdxdetailing usage examples, props, status states, size variations, and customization options for the new component.content/docs/onchainkit/meta.json.Type Definitions
types/transaction/index.tsto formally define transaction status and related props, ensuring type safety and clarity for component consumers.Registry Integration
registry.json,public/r/inline-txn-status.json, andregistry/components/inline-txn-status.json, enabling discoverability and streamlined installation. [1] [2] [3]Exports and Imports
components/ui/murphy/index.tsxto export and importInlineTxnStatus, making it available for use in other parts of the application. [1] [2]