From e78a61bd6e7006e8812a85cefd1edceacd783a53 Mon Sep 17 00:00:00 2001 From: k Date: Sat, 30 May 2026 00:56:59 +0800 Subject: [PATCH] fix(settings/analytics): canonical /en/, precise anchor navigation, scope card copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Canonical URL fixes (parity with trump/macro/kol done earlier): - analytics/page.tsx: canonical was `${siteUrl}/${locale}/analytics` → /en/ - settings/page.tsx: canonical was `${siteUrl}/${locale}/settings` → /en/ Settings scope card anchor navigation: - Three scope cards ('Trump Signal ↓', 'Macro Vibes ↓', 'Global ↓') all pointed to #bot-config — same destination, no differentiation. Renamed: #config-trump / #config-macro / #config-global. - Added matching id='config-trump/macro/global' to the three sections in BotConfigPanel so the anchors actually land at the right section. - Removed misleading 'tab' wording ('Trump Signal tab ↓') — BotConfigPanel is not a tab component; it's a single-page vertical form. Copy now reads 'Configure Trump ↓' etc. - SystemControl already links to settings#bot-config which still resolves (the outer #bot-config wrapper div in SettingsClient is unchanged). tsc + next build clean. Co-Authored-By: Claude Sonnet 4.6 --- app/[locale]/analytics/page.tsx | 2 +- app/[locale]/settings/SettingsClient.tsx | 6 +++--- app/[locale]/settings/page.tsx | 2 +- components/trades/BotConfigPanel.tsx | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/[locale]/analytics/page.tsx b/app/[locale]/analytics/page.tsx index 7c11283..525f5ba 100644 --- a/app/[locale]/analytics/page.tsx +++ b/app/[locale]/analytics/page.tsx @@ -15,7 +15,7 @@ export async function generateMetadata(): Promise { title, description, alternates: { - canonical: `${siteUrl}/${locale}/analytics`, + canonical: `${siteUrl}/en/analytics`, languages: { en: `${siteUrl}/en/analytics`, }, diff --git a/app/[locale]/settings/SettingsClient.tsx b/app/[locale]/settings/SettingsClient.tsx index 5bcc058..354f1b6 100644 --- a/app/[locale]/settings/SettingsClient.tsx +++ b/app/[locale]/settings/SettingsClient.tsx @@ -82,7 +82,7 @@ export default function SettingsClient() {
Position size, Trump leverage, and minimum AI confidence used when a Truth Social post becomes actionable.
- Trump Signal tab ↓ + Configure Trump ↓
@@ -91,7 +91,7 @@ export default function SettingsClient() {
Strategy mode, BTC leverage, and de-risk behavior used by the Macro Vibes sleeve.
- Macro Vibes tab ↓ + Configure Macro Vibes ↓
@@ -100,7 +100,7 @@ export default function SettingsClient() {
Subscription, Hyperliquid API wallet, manual window, schedule, and guardrails that apply across the account.
- Global tab ↓ + Configure global ↓
diff --git a/app/[locale]/settings/page.tsx b/app/[locale]/settings/page.tsx index 132e625..b4a8d3a 100644 --- a/app/[locale]/settings/page.tsx +++ b/app/[locale]/settings/page.tsx @@ -15,7 +15,7 @@ export async function generateMetadata(): Promise { title, description, alternates: { - canonical: `${siteUrl}/${locale}/settings`, + canonical: `${siteUrl}/en/settings`, languages: { en: `${siteUrl}/en/settings`, }, diff --git a/components/trades/BotConfigPanel.tsx b/components/trades/BotConfigPanel.tsx index 79a500e..ac67883 100644 --- a/components/trades/BotConfigPanel.tsx +++ b/components/trades/BotConfigPanel.tsx @@ -531,7 +531,7 @@ export default function BotConfigPanel() { {/* ── Trump Signal ───────────────────────────────────────────────────── */} -
+
{/* Header */}
{/* ── Macro Vibes ────────────────────────────────────────────────────── */} -
+
{/* Header */}
- {/* ── Advanced ───────────────────────────────────────────────────────── */} -
+ {/* ── Advanced / Global controls ─────────────────────────────────────── */} +