Skip to content

fix(trade): lock the order ticket until a funded account exists - #2421

Merged
dcccrypto merged 1 commit into
playgroundfrom
fix/ticket-lock-no-account
Jul 15, 2026
Merged

fix(trade): lock the order ticket until a funded account exists#2421
dcccrypto merged 1 commit into
playgroundfrom
fix/ticket-lock-no-account

Conversation

@dcccrypto

Copy link
Copy Markdown
Owner

Item 1 of the terminal UX fixes: with no wallet / no account / an unfunded account, the whole order ticket (direction, size, leverage, receipt) is now visibly locked — a disabled <fieldset> at 40% opacity — instead of accepting input that can only dead-end. The bottom CTA (Connect Wallet / Start Trading / Deposit to Trade) and the inline deposit card remain fully interactive, and mock mode (?mock=1) is unaffected since it supplies a mock account.

Verified: tsc --noEmit clean; component suite green except the 4 pre-existing Privy/ConnectButton env failures.

🤖 Generated with Claude Code

With no wallet, no account, or an unfunded account, the direction toggle,
size input, leverage slider, and receipt could all be interacted with even
though the only real action is the CTA at the bottom (Connect / Start
Trading / Deposit to Trade). Wrap the interactive stack in a disabled
fieldset (native input+button+keyboard disabling) dimmed to 40% opacity so
the ticket reads as locked until the account is ready.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
percolator-launch Ready Ready Preview, Comment Jul 15, 2026 10:30am
percolator-mainnet Ready Ready Preview, Comment Jul 15, 2026 10:30am
percolator-playground Error Error Jul 15, 2026 10:30am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1351f75b-19a5-4043-bfbd-023ccaa6de47

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ticket-lock-no-account

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dcccrypto
dcccrypto merged commit c1a64e3 into playground Jul 15, 2026
12 of 14 checks passed
@dcccrypto
dcccrypto deleted the fix/ticket-lock-no-account branch July 15, 2026 10:29
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.

1 participant