Disable Trading Actions When a Key Is Paused - #828
Open
Damilorlar wants to merge 10 commits into
Open
Conversation
- Add tradingPaused column to CreatorProfile (Prisma model + migration) - Surface tradingPaused in GET /api/v1/creators/:creatorId/profile - Allow admins to pause/resume trading via PATCH /creators/:id/metadata, emitting pause_creator_trading / resume_creator_trading audit events - Add unit tests for the read path and admin pause/resume behavior
Damilorlar
force-pushed
the
fix/trading-paused-banner
branch
from
August 26, 2026 13:14
518f09b to
3a9337a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
##closed #777
Update the trading interface to respond to the tradingPaused status from the key detail API.
When trading is paused for a key, display a yellow warning banner explaining that trading is temporarily unavailable, disable the Buy and Sell buttons, and provide a tooltip explaining why the actions are disabled. When trading is resumed, the warning banner should be hidden and the buttons should become active again.
This will prevent users from attempting unavailable trades and receiving a confusing 503 error.