Skip to content

feat: show trading paused banner and disable trading on key detail pa… - #1099

Merged
Chucks1093 merged 1 commit into
accesslayerorg:devfrom
oyeyinka1:feat/777-trading-paused-banner
Oct 17, 2026
Merged

Chucks1093 merged 1 commit into
accesslayerorg:devfrom
oyeyinka1:feat/777-trading-paused-banner

Conversation

@oyeyinka1

Copy link
Copy Markdown
Contributor

Closes #777

Summary

  • Added an optional tradingPaused field to the key data type
  • New yellow banner on the key detail page: "Trading is temporarily paused for this key" (hidden when not paused)
  • Buy button is disabled with the tooltip "Trading is currently paused" while paused
  • Trade dialog (Buy and Sell) is also disabled with the same tooltip while paused
  • Banner and buttons return to normal when tradingPaused becomes false

Testing

  • pnpm lint (0 errors; 1 existing warning in ActiveStakesList.tsx, not touched)
  • pnpm build
  • Added CreatorDetailPage.tradingPaused.integration.test.tsx and TradeDialog.tradingPaused.test.tsx
  • Some existing tests already fail on the base code (e.g. TradeDialog.holdingCap, TradeDialog.confirmationFees fail identically without my changes). I did not touch them.

Checklist

  • Linked issue or backlog item
  • Scope is limited to the stated change
  • Updated docs if behavior or setup changed
  • Added screenshots for UI changes when relevant

@drips-wave

drips-wave Bot commented Oct 16, 2026

Copy link
Copy Markdown

@oyeyinka1 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 35dc799 into accesslayerorg:dev Oct 17, 2026
1 check 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

Development

Successfully merging this pull request may close these issues.

Add a trading paused banner on the key detail page when the key's trading is suspended by an admin

2 participants