d72323b1c6
Big-picture changes since 01be8e7:
New routes — /trump /btc /kol /trades /analytics /archive plus four
SEO landing pages (/methodology /glossary /case-studies /contact),
all served under /[locale]. Each has dedicated metadata + JSON-LD.
KOL page (new) — DigestWidget + OnchainWidget + TalkVsTradesWidget,
filter by handle/ticker, click-through to per-post detail with the
original AI-extracted ticker/conviction/quote.
BTC page (new) — tabbed: macro-bottom (AHR999 + 200WMA + Pi Cycle)
and funding-rate reversal, with live sparkline + threshold bands.
Telegram card on Settings — wallet-link code generation, status,
disconnect. Preferences moved into the bot itself (/trump /btc etc.)
so the card stays minimal.
SignalMonitor (new) — ETH/LINK Bollinger breakout monitor in its own
component, shares the singleton WsProvider so no second WS opens.
WS singleton refactor (lib/wsContext) — shared WsProvider + useWsSubscribe
hook. Cleanup now actively closes the socket on unmount; previously the
local `ws` couldn't be reached from cleanup and leaked one connection
per StrictMode remount.
OpenPositions polling no longer pops MetaMask in the background —
splits into load('first') for user-initiated and load('poll') that
uses getCachedViewEnvelope without signing.
i18n shelved — proxy.ts (Next 16 middleware rename) wires next-intl
but only Navbar + layout footer have translations. Rest of UI used
isZh ternary scattered across 28 files. All `const isZh = locale === 'zh'`
flipped to `const isZh = false` so every site renders English; Chinese
branches kept as dead code so revival is one regex away.
LanguageSwitch hidden but file kept. zh-CN hreflang removed from
metadata + sitemap to avoid duplicate-content penalties.
Wallet error handling — lib/walletError.ts: isUserRejection walks EIP-1193
code 4001 + .cause chain; previous string-match for "reject"/"denied"
broke for users running MetaMask in non-English UIs. 12 call sites
migrated across 5 components.
PWA icons — app/icon.tsx + app/apple-icon.tsx render the brand "α" via
Next's ImageResponse so no static PNG asset is required. manifest.ts
references /icon and /apple-icon dynamic routes.
OG image + sitemap + robots — dynamic 1200×630 OG card; robots blocks
both /en/settings and /zh/settings; sitemap only emits /en routes;
JSON-LD covers SoftwareApplication + Organization + 10-Q FAQPage.
Landing page polish — Launch Dashboard button stripped of magnetic
hover + shimmer + lift + glow expansion (multiple users found it busy);
hero scramble alphabet swapped to alphanumeric (was block characters);
"15 KOL feeds" copy updated to 19 in 5 places.
PostCards source icons — new entries for btc_bottom_reversal,
funding_reversal, kol_divergence so they no longer fall through to
the generic "first letter" fallback.
Archive page filter — excludes funding_reversal + kol_divergence
(previously only excluded truth + btc_bottom_reversal so new live
signals leaked into the legacy archive).
Cache + skeleton loading — lib/cache.ts SWR module with per-key TTL,
applied across the major pages so navigation feels instant.
SignConfirmSheet — 4 hardcoded Chinese strings translated to English
(English users were seeing zh-only "需要钱包签名" etc).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
79 lines
2.9 KiB
TypeScript
79 lines
2.9 KiB
TypeScript
import { getKolChanges, getKolDigest, getKolDivergence, getKolPosts } from '@/lib/api'
|
|
import type { Metadata } from 'next'
|
|
import KolPageClient from './KolPageClient'
|
|
|
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
|
export const revalidate = 30
|
|
|
|
interface KolPageProps {
|
|
params: Promise<{ locale: string }>
|
|
}
|
|
|
|
export async function generateMetadata({
|
|
params,
|
|
}: KolPageProps): Promise<Metadata> {
|
|
const { locale } = await params
|
|
const isZh = false // i18n shelved — Chinese branches kept as dead code for future revival; see messages/zh.json
|
|
|
|
return {
|
|
title: isZh ? 'KOL 信号与言行偏离追踪' : 'KOL Signals & Talks-vs-Trades Divergence',
|
|
description: isZh
|
|
? '从 15 个加密 KOL 信息源中提取可执行观点,覆盖 Arthur Hayes、Delphi Digital、Bankless、Empire、Unchained 等,并追踪“说法”和链上仓位是否一致。'
|
|
: 'AI-extracted crypto signals from 19 KOL feeds: Arthur Hayes, Delphi Digital, Bankless, Empire, Unchained and more. Includes talks-vs-trades divergence — when KOL wallets contradict their public posts.',
|
|
keywords: isZh
|
|
? [
|
|
'KOL 加密信号',
|
|
'Arthur Hayes 信号',
|
|
'Delphi Digital 分析',
|
|
'KOL 钱包追踪',
|
|
'言行不一致',
|
|
'链上 KOL 跟踪',
|
|
'Substack 加密信号',
|
|
'播客加密信号',
|
|
]
|
|
: [
|
|
'KOL crypto signals',
|
|
'Arthur Hayes signals',
|
|
'Delphi Digital analysis',
|
|
'crypto KOL tracker',
|
|
'talks vs trades',
|
|
'smart money divergence',
|
|
'on-chain KOL tracking',
|
|
'Substack crypto signals',
|
|
'crypto podcast signals',
|
|
'KOL wallet tracking',
|
|
],
|
|
openGraph: {
|
|
title: isZh ? 'KOL 信号与言行偏离 | Trump Alpha' : 'KOL Signals & Talks-vs-Trades | Trump Alpha',
|
|
description: isZh
|
|
? '每天分析 KOL 长文、播客和公开观点,再与链上仓位交叉验证,找出真正有信息增量的观点与偏离。'
|
|
: '19 KOL feeds (Hayes, Bankless, Empire…) AI-scored daily. Plus talks-vs-trades: when their wallets contradict their words.',
|
|
},
|
|
alternates: {
|
|
canonical: `${siteUrl}/${locale}/kol`,
|
|
languages: {
|
|
en: `${siteUrl}/en/kol`,
|
|
'x-default': `${siteUrl}/en/kol`,
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
export default async function KolPage() {
|
|
const [posts, digest, changes, divergence] = await Promise.all([
|
|
getKolPosts({ limit: 100 }).catch(() => null),
|
|
getKolDigest(7).catch(() => null),
|
|
getKolChanges({ days: 7 }).catch(() => null),
|
|
getKolDivergence({ days: 30 }).catch(() => null),
|
|
])
|
|
|
|
return (
|
|
<KolPageClient
|
|
initialPosts={posts?.items ?? null}
|
|
initialDigest={digest}
|
|
initialChanges={changes?.changes ?? null}
|
|
initialDivergence={divergence?.items ?? null}
|
|
/>
|
|
)
|
|
}
|