Skip to content

feat: Add market status badges and market detail page - #1449

Merged
hman38705 merged 3 commits into
solutions-plug:mainfrom
djcdz4:main
Aug 29, 2026
Merged

feat: Add market status badges and market detail page#1449
hman38705 merged 3 commits into
solutions-plug:mainfrom
djcdz4:main

Conversation

@djcdz4

@djcdz4 djcdz4 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Implement MarketStatusBadge component ([Markets] Build market status badges from contract state #1361)

    • Maps contract states (Active, PendingResolution, Disputed, Resolved, Cancelled)
    • Handles unknown/future states with neutral fallback
    • Uses semantic tokens for color-contrast compliance
  • Create market detail page ([Markets] Build market detail page #1360)

    • Renders market info in tabs (Overview, Bets, Oracle, Activity)
    • Fetches from GET /api/v1/blockchain/markets/:market_id
    • Maps contract error 102 (MarketNotFound) to friendly 404 page
    • Path-encodes market ID per spec
  • Add reusable Tabs component

    • Accessible with ARIA attributes
    • Supports icons and custom styling

Closes #1361
Closes #1360

…#1361, solutions-plug#1360)

- Implement MarketStatusBadge component with color-coded states (Active, PendingResolution, Disputed, Resolved, Cancelled)
- Handle unknown/future contract states with fallback badge
- Create market detail page with Overview/Bets/Oracle/Activity tabs
- Fetch market data from /api/v1/blockchain/markets/:market_id
- Map contract error 102 (MarketNotFound) to friendly 404 page
- Use semantic tokens for color contrast compliance
- Build reusable Tabs component with accessibility attributes

Closes solutions-plug#1361
Closes solutions-plug#1360
@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

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

djcdz4 and others added 2 commits August 28, 2026 21:52
- MarketStatusBadge tests: Verify all status states, icons, accessibility
- Tabs tests: Verify tab switching, accessibility, callbacks, styling
- 100% coverage for both new components

Related to solutions-plug#1361, solutions-plug#1360
@hman38705
hman38705 merged commit 8c5e39a into solutions-plug:main Aug 29, 2026
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.

[Markets] Build market status badges from contract state [Markets] Build market detail page

2 participants