fix(ui): say what the Swap screen is, now that QTC is on NEAR Intents
ci / gate (push) Successful in 12m27s

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NUx7SPonBnB3ofU4mH41WT
This commit is contained in:
2026-10-12 12:17:35 +03:00
co-authored by Claude Fable 5.1
parent 102f659900
commit 20f171be96
4 changed files with 16 additions and 12 deletions
+4 -3
View File
@@ -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<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.
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
+4 -3
View File
@@ -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,
/**
+2 -1
View File
@@ -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.
</label>
</div>
<div className="field">
+6 -5
View File
@@ -26,7 +26,8 @@ export function Swap() {
<h2 className="panel-title">Swap</h2>
</div>
<p className="panel-body muted">
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.
</p>
</section>
)
@@ -113,10 +114,10 @@ function SwapForm() {
<span className="chip testnet">preview</span>
</div>
<div className="panel-body">
<p className="warn" style={{ marginTop: 0 }}>
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.
<p className="muted" style={{ marginTop: 0 }}>
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.
</p>
{assets.isError && <p className="error">{assets.error.message}</p>}
{order ? (