Skip to content

Surface automated mint via a Swap/Auto toggle on the issuance page#1018

Merged
jgalat merged 2 commits into
release/ai-dtffrom
feature/swap-auto-mint
Jun 22, 2026
Merged

Surface automated mint via a Swap/Auto toggle on the issuance page#1018
jgalat merged 2 commits into
release/ai-dtffrom
feature/swap-auto-mint

Conversation

@joshking

Copy link
Copy Markdown

What

Surfaces the automated mint flow from the swap panel via an in-page toggle, replacing the standalone Mint sidebar item — without modifying the zapper.

Changes

  • panelModeAtom + PanelModeSwitch: a subtle centered link below the panel ("Try Automated Mint" / "Use Swap") that toggles swap vs auto in place.
  • Issuance page renders the zapper (unchanged) or the wizard embedded in one shared beige surface; the wizard gains an embedded prop to skip its own container.
  • The switch hides once the wizard is running (quote/execution). The gnosis gate's "Use Swap" now targets the absolute swap route (a relative .. redirected to overview when embedded).
  • Removes the Mint sidebar item; /issuance/automated still works as a deep link.

Risk

Low — the zapper is one branch of a conditional (same component, same props, same modal behavior); nothing wraps or intercepts it.

Follow-ups (not included)

  • Cross-fade transition between modes.
  • Wiring /issuance/automated to open the toggle in auto.

Replaces the standalone "Mint" nav item with an in-page switch so the
auto-mint flow is reached from the swap panel — without touching the
zapper.

- panelModeAtom + PanelModeSwitch: a subtle centered link below the panel
  ("Try Automated Mint" / "Use Swap") that toggles swap vs auto in place
- Issuance page renders the zapper (unchanged) or the wizard embedded in
  one shared beige surface; the wizard gains an `embedded` prop to skip
  its own container
- Hide the switch once the wizard is running (quote/execution); the gnosis
  gate's "Use Swap" now targets the absolute swap route instead of a
  relative ".." that redirected to overview when embedded
- Remove the "Mint" sidebar item (route still works as a deep link)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 22, 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: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8bb65859-9c44-469d-be57-739e0403751e

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 feature/swap-auto-mint

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.

@joshking joshking requested a review from JuampiRombola June 22, 2026 17:26
# Conflicts:
#	src/views/index-dtf/issuance/async-mint/index.tsx
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying register-app with  Cloudflare Pages  Cloudflare Pages

Latest commit: 362aacd
Status:⚡️  Build in progress...

View logs

@jgalat jgalat merged commit 7fa40d1 into release/ai-dtf Jun 22, 2026
1 of 2 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

Development

Successfully merging this pull request may close these issues.

3 participants