Skip to content

feat(design-system): Add UI primitives, tests, and gallery - #438

Merged
IbrahimIjai merged 1 commit into
SO4-Markets:mainfrom
collinsadi:fix-design-system-issues
Jul 26, 2026
Merged

feat(design-system): Add UI primitives, tests, and gallery#438
IbrahimIjai merged 1 commit into
SO4-Markets:mainfrom
collinsadi:fix-design-system-issues

Conversation

@collinsadi

Copy link
Copy Markdown
Contributor

What

Added comprehensive design system components and accessibility testing infrastructure for SO4's shared UI library.

Issues Resolved

Closes #430
Closes #431
Closes #432
Closes #433

Changes

#430 - Add TokenPair and TokenAvatar primitive

Created reusable token avatar component with support for images, fallback initials, and multiple sizes (xs, sm, md, lg, xl, 2xl). Includes TokenPair component for overlapping token visuals with proper accessibility labels distinguishing between decorative and meaningful usage.

#431 - Add TransactionStatus pattern

Implemented comprehensive transaction status component supporting five states: signing, submitting, confirming, success, and failed. Each state has semantic labels, proper ARIA live regions to avoid noisy updates, explorer links with action callbacks, and retry functionality with proper error messaging.

#432 - Add design-system development gallery route

Created a development-only route showing all UI components in various states (normal, disabled, loading, invalid, empty). Includes theme switching (light/dark), viewport simulation (mobile/tablet/desktop), linkable sections, and stress tests with long content examples.

#433 - Add accessibility tests for all UI primitives

Established comprehensive test harness using vitest-axe that checks every interactive primitive for WCAG violations. Tests cover keyboard behavior for menus, tabs, dialogs, sliders, and form fields. All tests verify proper ARIA attributes, focus management, and state transitions.

Test Coverage

  • Button component: variants, sizes, and disabled states
  • Dialog: opening/closing, keyboard escape, focus management
  • Tabs: keyboard navigation, tab switching, ARIA attributes
  • Inputs: typing, disabled state, invalid states, ARIA labels
  • Slider: keyboard navigation, ARIA value attributes
  • Sheet: opening/closing, keyboard escape, backdrop interaction

Documentation

Updated UI package README with component list, testing instructions, and usage examples.

Add TokenAvatar and TokenPair components with accessible labeling and support for image/fallback states. Implements all five transaction status states with proper ARIA live regions and accessible action buttons. Creates development-only design system gallery route showing all components in various states with theme and viewport controls. Adds comprehensive accessibility test harness using vitest-axe for all interactive primitives including keyboard behavior, ARIA attributes, and state management tests.

Resolves #430
Resolves #431
Resolves #432
Resolves #433
@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

@collinsadi is attempting to deploy a commit to the Ijai's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@collinsadi 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

@IbrahimIjai
IbrahimIjai merged commit 3822dc2 into SO4-Markets:main Jul 26, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants