Skip to content

feat: Add compact network badge component for Stellar environment - #19

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
xqcxx:feat/network-badge-component
Mar 26, 2026
Merged

feat: Add compact network badge component for Stellar environment#19
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
xqcxx:feat/network-badge-component

Conversation

@xqcxx

@xqcxx xqcxx commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Created a reusable NetworkBadge component for displaying Stellar testnet/mainnet environment
  • Implemented compact design suitable for headers and transaction surfaces
  • Added dark mode support with appropriate color schemes (yellow for testnet, green for mainnet)
  • Included optional status indicator dot for enhanced visual clarity
  • Provided comprehensive documentation with usage examples
  • Ensured full accessibility with ARIA labels and semantic HTML

Changes

  • src/components/common/NetworkBadge.tsx: New component implementation using CVA for variants
  • docs/NetworkBadge.md: Complete documentation with props, examples, and accessibility notes

Testing

The component can be tested by importing and rendering in any page:
```tsx
import { NetworkBadge } from '@/components/common/NetworkBadge';

\`\`\`

Closes #14

- Create reusable NetworkBadge component with testnet/mainnet support
- Implement compact design suitable for headers and transaction surfaces
- Add dark mode support with appropriate color schemes
- Include optional status indicator dot for visual clarity
- Provide comprehensive documentation with usage examples
- Ensure accessibility with ARIA labels and semantic HTML

Closes accesslayerorg#14
@drips-wave

drips-wave Bot commented Mar 25, 2026

Copy link
Copy Markdown

@xqcxx Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit a6e67bd into accesslayerorg:main Mar 26, 2026
1 check failed
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.

Add compact network badge for Stellar environment

2 participants