From 20f171be960f0cedcbaa83a20d2f88ab51e96cfd Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Mon, 12 Oct 2026 12:17:35 +0300 Subject: [PATCH] fix(ui): say what the Swap screen is, now that QTC is on NEAR Intents The Settings toggle, the Swap screen and the setting's doc all said no post-quantum asset is on NEAR Intents yet. QTC has been since October (#71), and the wallet's own intents account swaps it from the accounts page. The Swap screen is the other route: a 1Click quote paid to a one-time deposit address, for assets this wallet does not hold (#7), and QTC is not among them until a solver quotes it. All three now say so. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01NUx7SPonBnB3ofU4mH41WT --- crates/wallet-entities/src/lib.rs | 7 ++++--- ui/src/api/generated/Settings.ts | 7 ++++--- ui/src/routes/Settings.tsx | 3 ++- ui/src/routes/Swap.tsx | 11 ++++++----- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/crates/wallet-entities/src/lib.rs b/crates/wallet-entities/src/lib.rs index e02ec32..b927eac 100644 --- a/crates/wallet-entities/src/lib.rs +++ b/crates/wallet-entities/src/lib.rs @@ -528,9 +528,10 @@ pub struct Settings { /// Labels people give their accounts, by address. Cosmetic: an /// address without one is shown as itself. pub account_names: BTreeMap, - /// Show the swap screen. Off by default while swaps are a preview: no - /// post-quantum asset is on NEAR Intents yet, so every swap is between - /// transit assets paid from an external wallet. + /// Show the Swap screen: 1Click quotes paid to a one-time deposit + /// address, for assets this wallet does not hold (#7). Off by default; + /// swaps from the NEAR Intents account are on the accounts page (#71) + /// whatever this says. pub preview_swaps: bool, /// Account numbers added to each wallet beyond account 0, by wallet /// name. Not secret: the keys are re-derived from the wallet's phrase on diff --git a/ui/src/api/generated/Settings.ts b/ui/src/api/generated/Settings.ts index f7fd91a..fa7b04b 100644 --- a/ui/src/api/generated/Settings.ts +++ b/ui/src/api/generated/Settings.ts @@ -24,9 +24,10 @@ show_testnets: boolean, */ account_names: { [key in string]?: string }, /** - * Show the swap screen. Off by default while swaps are a preview: no - * post-quantum asset is on NEAR Intents yet, so every swap is between - * transit assets paid from an external wallet. + * Show the Swap screen: 1Click quotes paid to a one-time deposit + * address, for assets this wallet does not hold (#7). Off by default; + * swaps from the NEAR Intents account are on the accounts page (#71) + * whatever this says. */ preview_swaps: boolean, /** diff --git a/ui/src/routes/Settings.tsx b/ui/src/routes/Settings.tsx index b95a522..793ad66 100644 --- a/ui/src/routes/Settings.tsx +++ b/ui/src/routes/Settings.tsx @@ -52,7 +52,8 @@ export function SettingsRoute() { checked={s.preview_swaps} onChange={(e) => set.mutate({ ...s, preview_swaps: e.target.checked })} />{' '} - Show the swap screen (preview: no post-quantum asset is on NEAR Intents yet) + Show the Swap screen: 1Click quotes paid to a one-time deposit address, for assets this + wallet does not hold. Swaps from your NEAR Intents account are on the Accounts page.
diff --git a/ui/src/routes/Swap.tsx b/ui/src/routes/Swap.tsx index 8dd2a79..18338d3 100644 --- a/ui/src/routes/Swap.tsx +++ b/ui/src/routes/Swap.tsx @@ -26,7 +26,8 @@ export function Swap() {

Swap

- Swaps are a preview. Turn them on in Settings to see the screen. + The Swap screen is off; turn it on in Settings. Swaps from your NEAR Intents account are + on the Accounts page.

) @@ -113,10 +114,10 @@ function SwapForm() { preview
-

- No post-quantum asset is on NEAR Intents yet. Every swap here is between assets this - wallet does not hold: you pay the deposit from an external wallet, and the result goes to - the recipient address you give. +

+ A 1Click quote with a one-time deposit address: pay it from any wallet, and the result + goes to the recipient you name. QTC is listed on 1Click but no solver quotes it yet, so + QTC swaps run through your NEAR Intents account on the Accounts page.

{assets.isError &&

{assets.error.message}

} {order ? (