Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat: enhance smart money, activity, radar, and pump visualizer surfaces
nirholas6e52a744cefe
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f1c7c4f8d..2c78e0c1e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **A stale Arena link no longer dead-ends on a 'not found' screen** — Opening a shared tournament link after the competition has ended or rolled off used to leave you stranded on a bare 'Tournament not found' page whose only button was a Retry that could never work. Now that case turns into a way forward: a clear explanation plus a live grid of the tournaments running and starting right now, so there's always something to jump into. Genuine connection hiccups (as opposed to a missing tournament) keep a Retry alongside a 'Back to all tournaments' escape hatch. Every tournament page also gets a Share button that copies its link, sets a proper browser-tab title, and scrolls cleanly to the top as you move between views. (`/arena`) `[fix, improvement]`- **Animation Studio gains undo, mirror, and copy/paste posing** — Posing an avatar in the Animation Studio is now far quicker. Undo and redo cover every edit — gizmo rotations, slider tweaks, IK drags, presets, and resets — so you can experiment freely (Ctrl/Cmd+Z to step back, Shift+Z or Ctrl+Y forward). A new Mirror button flips the whole pose left ↔ right in one click, so you only have to pose one side of a symmetric stance, wave, or fighting guard. And you can now Copy a pose and Paste it onto another keyframe or a freshly loaded avatar without exporting a file. Mirroring works on any rigged avatar — not just the mannequin — because it reflects each joint in world space and reprojects it onto that rig's own skeleton. Keyboard shortcuts: M to mirror, C to copy, V to paste. (`/pose`) `[feature, improvement]`- **API endpoints answer HEAD checks instantly and shrug off cache hiccups** — Two reliability fixes for anything that talks to the three.ws API. Lightweight HEAD requests — the kind uptime monitors, link previews, and agent crawlers send to check an endpoint — used to hang on agent routes until the request timed out; they now return immediately, the same as a GET but without the body. And when our cache store has a rough moment, the platform now trips a fast circuit-breaker and serves from local memory instantly instead of making every request wait on a slow cache write. Live feeds and agent pages stay snappy through a cache blip. `[fix, infra]`+- **Arm your agent now shows live qualifying coins, proof-of-edge and wallet runway** — The /oracle/arm setup page used to make you configure rules blind. Now it's a live cockpit. A new 'Clearing your bar' panel reads the real conviction stream and shows exactly which coins meet every rule you've set right this second — score, tier, narrative, smart-money count, age and the SOL your agent would commit to each (including conviction-scaled sizing). Tighten or loosen any rule and the list updates instantly, so the abstract config becomes concrete before you ever arm. Under the conviction floor there's now a 30-day proof-of-edge readout — win rate, average peak multiple, 3×+ count and resolved sample size for the exact bar you've chosen, recomputed as you change it. The control bar shows the agent's custodial wallet balance with trades-of-runway left, and the page warns you to fund it before going live if it can't cover your per-trade size. Skeleton loaders replace the old dead dashes while data streams in. (`/oracle/arm`) `[feature, improvement]`- **Avatar Studio avatars come alive — pick from 16 motions** — Your avatar no longer stands frozen in a stiff T-pose while you dress it. Avatar Studio now plays a natural looping idle the moment it loads — proof the avatar is fully rigged — and a new Animate tab lets you drive the rig live: 16 curated motions including Idle, Wave, Cheer, Celebrate, Flex, Dance, Shuffle, Rumba, Thriller, Capoeira and more. Looping motions become your avatar's resting idle, so when you Save, your avatar is captured in the relaxed stance you chose rather than a rigid pose. One-shot moves like Wave and Celebrate play once and settle back to idle automatically. (`/avatar-studio`) `[feature, improvement]`- **Claim Wallet is now a full Wallet Intelligence dashboard** — Paste any Solana address and /claim-wallet now reads its complete pump.fun record like a pro terminal: realized P&L in SOL and live USD, win rate, smart-money score with a gauge, total volume, and a real micro equity-curve sparkline. Below that, a trade-analysis panel (net flow, average buy/sold, hold time, transaction count), a reputation panel (early-entry win rate, dump rate, dumps, coins created), an ROI distribution bar that buckets every closed position from >5× down to rugs, and a category mix of what the wallet actually trades. The centerpiece is a full sortable trade ledger — realized P&L, ROI with an inline bar, bought/sold, buy/sell transaction counts, hold duration and last activity per coin — and every row opens that coin's complete launch page with its live chart, holders and bubblemap. 7D / 30D / All-time toggles, instant filters (hide dust, open positions only, created coins), copy address, share, and a one-click signature-verified claim are all wired. Every number traces to a real on-chain trade — no placeholders. (`/claim-wallet`) `[feature, improvement]`- **Default avatars render again everywhere** — Avatars stopped appearing across the site — the homepage hero, guest avatars, and any embed that falls back to the default character all showed an empty frame. The default avatar was being loaded from an asset host that had gone offline. It now loads from three.ws itself, so default avatars render again on every page and in every embed. `[fix]`@@ -18,8 +19,10 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Living Worlds video generator is back online** — The Cosmos text-to-world lane — describe a scene and get a short cinematic video that plays as a living backdrop behind your avatar — had stopped generating: NVIDIA moved the hosted Cosmos model to a new address, so every request came back as an error. We've pointed the lane at the new endpoint and it generates worlds again. (`/cosmos`) `[fix]`- **Mission Control now has a real candlestick chart with live price updates** — The trading terminal's price panel is now a full candlestick chart instead of a flat line. You get real OHLC candles with a volume histogram, a crosshair that reads out open/high/low/close as you move across it, and a timeframe switcher from 1-minute up to daily. Best of all it's live: every on-chain buy and sell streams straight into the candle you're watching form, so the price moves in real time as the market trades — and a 'LIVE' indicator tells you the stream is connected. Sub-cent prices render cleanly, and the chart still tells you honestly when a brand-new coin has no trading history yet rather than inventing one. (`/terminal`) `[feature, improvement]`- **Mission Control's live launch feed never goes dark** — The terminal's Live feed streams brand-new pump.fun launches over a real-time socket — but when that upstream socket goes quiet, the firehose pane could sit empty with nothing to trade. The feed now has a live safety net: it also reads pump.fun's newest launches directly and fills the pane the instant you open the terminal, then keeps backfilling behind the socket so a momentary upstream hiccup never blanks the board. Real launches throughout, de-duplicated so a coin never shows twice — whichever source sees it first wins. (`/terminal`) `[fix, improvement]`+- **Oracle hero now reads like a live conviction terminal — six clickable stats, watchlist filter and keyboard control** — The Oracle landing page used to show four cryptic numbers and a lot of dashes. The hero is now a row of six live KPI tiles that surface data the engine already tracked but never showed: coins scored in the last 24h (with the all-time total), Prime and Strong counts right now, realized win rate with the resolved sample behind it, the best ATH multiple ever called, and how many agents are armed with open positions. Every tile is clickable — Prime and Strong filter the feed instantly, Win rate jumps to the edge proof, Best ATH opens the win gallery, Agents opens the leaderboard. The conviction feed gained a star Watching filter that folds your existing watchlist straight into the live stream, and each coin card now shows launch age alongside when it was scored. The whole tab bar is finally keyboard-operable (arrow keys, Home/End), every view deep-links and bookmarks via the URL so you can share /oracle#proof, the browser back button steps through tabs, and power users get shortcuts — press / to search, 1 to 9 to jump between tabs. (`/oracle`) `[feature, improvement]`- **Steadier live feeds under load** — The real-time money feeds that power the Galaxy money-cam and Money Pulse are now more resilient when our cache layer is under pressure. The platform cache can run on its own dedicated store, separate from the rate limiter, so a busy moment no longer slows feed responses or spends the limiter's budget — and even when the cache is degraded, feeds fall back instantly instead of waiting. You'll see the live maps stay smooth during traffic spikes. `[infra, improvement]`- **The Agent Launches feed is back online — with live combined market-cap and graduation tallies** — The /launches feed had stopped loading and showed a 'Could not load the feed' error because its data endpoint wasn't being routed. It's fixed: every coin launched by a three.ws agent streams in again, live. While we were in there we added two real-time data points to the header — the combined market cap of every loaded launch and how many have graduated off the bonding curve — both computed from the same live on-chain numbers the cards already show, updating as new launches arrive. (`/launches`) `[fix, feature]`+- **The Agents Index now matches the rest of the site's monochrome look** — The /agents directory was the last page still carrying the old cyan-and-violet accent gradients — bright eyebrow pill, two-tone heading, gradient avatar tiles and a green on-chain badge. It's been re-skinned to the platform's monochrome palette so it reads as one product with every other surface: a clean white-on-near-black heading, neutral controls and cards, white primary button, and subtle grayscale avatar fallbacks and badges. Same real agent data, same search, sort and on-chain filter — just on-brand now. (`/agents`) `[improvement]`- **The gallery now seeds itself with studio-quality, fully-rigged Avaturn avatars** — A new background generator quietly grows the public gallery with photorealistic, animation-ready Avaturn avatars — each one a fresh randomized character (body, outfit, hair, and colors) built from Avaturn's own catalog and exported with a complete rig, so it walks and emotes out of the box. They land under brand-new single-word creator accounts just like our other seeded creations. The cadence starts conservative and ramps up over time. `[feature, improvement]`- **The marketplace now has a living economy of autonomous agents transacting on-chain** — The platform's own pool of autonomous agents now does real marketplace commerce, not just peer tips and trades. They list skills and their 3D avatars for sale, buy each other's skills, take free trials, and purchase avatars — every transaction a genuine on-chain $THREE payment settled through the exact same flow a person uses, landing in the live sales feed and each agent's revenue. The pool also scales far beyond its original handful: it grows toward a configurable target of hundreds of distinct, wallet-backed agent accounts, so the marketplace reads as an active, liquid economy instead of an empty shelf. (`/marketplace`) `[feature, improvement]`- **The marketplace now shows a live feed of what's selling** — The agent marketplace has a new 'Live sales' ticker that scrolls the most recent skill unlocks and trials happening across the platform in real time — which agent, which skill, and how much it sold for. It's a quick read on what the market actually values, and every entry links straight to that agent's page. The strip pauses when you hover so you can catch one, and it stays out of the way: it only appears on the main browse view and quietly hides itself when you're searching or filtering. (`/marketplace`) `[feature]`diff --git a/data/changelog.json b/data/changelog.jsonindex 24c4d33ed..cc7ebeeee 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,34 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-26",+ "title": "Agent Activity is now a live trading floor — Conviction Board rail, richer trade detail and a real KPI bar that never shows an empty void",+ "summary": "The /activity page used to go blank whenever no agent had traded recently. It no longer does. A new Conviction Board rail sits alongside the feed with three always-on cards: Top Agents ranked by win rate and ROI, the biggest 24-hour conviction movers, and the best proven wins by ATH multiple — so there's live signal to act on even between trades. An insight strip surfaces the single standout in each. The KPI bar now reads from the Oracle stats engine, so Agents armed, Coins scored 24h, Open positions, Win rate and Best ATH show real numbers immediately. Each action row gained detail it always had but never displayed: the entry market cap, the agent's reason for the trade, how long the position was held, peak multiple, and a one-click Solscan link for live fills. Plus a type-to-filter box (press /), an Escape-to-clear, a press-r refresh, a '↑ N new' jump pill when trades land while you've scrolled, and a designed empty state that points you to arm the first agent.",+ "tags": ["feature", "improvement"],+ "link": "/activity"+ },+ {+ "date": "2026-06-26",+ "title": "Oracle hero now reads like a live conviction terminal — six clickable stats, watchlist filter and keyboard control",+ "summary": "The Oracle landing page used to show four cryptic numbers and a lot of dashes. The hero is now a row of six live KPI tiles that surface data the engine already tracked but never showed: coins scored in the last 24h (with the all-time total), Prime and Strong counts right now, realized win rate with the resolved sample behind it, the best ATH multiple ever called, and how many agents are armed with open positions. Every tile is clickable — Prime and Strong filter the feed instantly, Win rate jumps to the edge proof, Best ATH opens the win gallery, Agents opens the leaderboard. The conviction feed gained a star Watching filter that folds your existing watchlist straight into the live stream, and each coin card now shows launch age alongside when it was scored. The whole tab bar is finally keyboard-operable (arrow keys, Home/End), every view deep-links and bookmarks via the URL so you can share /oracle#proof, the browser back button steps through tabs, and power users get shortcuts — press / to search, 1 to 9 to jump between tabs.",+ "tags": ["feature", "improvement"],+ "link": "/oracle"+ },+ {+ "date": "2026-06-26",+ "title": "Arm your agent now shows live qualifying coins, proof-of-edge and wallet runway",+ "summary": "The /oracle/arm setup page used to make you configure rules blind. Now it's a live cockpit. A new 'Clearing your bar' panel reads the real conviction stream and shows exactly which coins meet every rule you've set right this second — score, tier, narrative, smart-money count, age and the SOL your agent would commit to each (including conviction-scaled sizing). Tighten or loosen any rule and the list updates instantly, so the abstract config becomes concrete before you ever arm. Under the conviction floor there's now a 30-day proof-of-edge readout — win rate, average peak multiple, 3×+ count and resolved sample size for the exact bar you've chosen, recomputed as you change it. The control bar shows the agent's custodial wallet balance with trades-of-runway left, and the page warns you to fund it before going live if it can't cover your per-trade size. Skeleton loaders replace the old dead dashes while data streams in.",+ "tags": ["feature", "improvement"],+ "link": "/oracle/arm"+ },+ {+ "date": "2026-06-26",+ "title": "The Agents Index now matches the rest of the site's monochrome look",+ "summary": "The /agents directory was the last page still carrying the old cyan-and-violet accent gradients — bright eyebrow pill, two-tone heading, gradient avatar tiles and a green on-chain badge. It's been re-skinned to the platform's monochrome palette so it reads as one product with every other surface: a clean white-on-near-black heading, neutral controls and cards, white primary button, and subtle grayscale avatar fallbacks and badges. Same real agent data, same search, sort and on-chain filter — just on-brand now.",+ "tags": ["improvement"],+ "link": "/agents"+ },{"date": "2026-06-26","title": "Claim Wallet is now a full Wallet Intelligence dashboard",diff --git a/pages/activity.html b/pages/activity.htmlindex 3a9911b55..8dea0dc0f 100644--- a/pages/activity.html+++ b/pages/activity.html@@ -5,7 +5,7 @@<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /><title>Agent Activity · Oracle · three.ws</title>- <meta name="description" content="Every move 3D agents make on pump.fun, in real time. Autonomous agents act on Oracle conviction — watch them trade, see the outcomes, and copy the winners." />+ <meta name="description" content="The live trading floor: every move 3D agents make on pump.fun, in real time. Autonomous agents act on Oracle conviction — watch them trade, track outcomes, and copy the winners. Live conviction movers, the agent leaderboard, and proven wins, all on one screen." /><link rel="canonical" href="https://three.ws/activity" /><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />@@ -16,12 +16,12 @@<link rel="stylesheet" href="/mobile.css" /><meta property="og:type" content="website" /><meta property="og:title" content="Agent Activity · Oracle · three.ws" />- <meta property="og:description" content="Every move 3D agents make on pump.fun, in real time. Autonomous agents act on Oracle conviction — watch them trade, see the outcomes, and copy the winners." />+ <meta property="og:description" content="The live trading floor: every Oracle conviction action from every autonomous 3D agent on pump.fun. Conviction movers, the agent leaderboard, and proven wins — live." /><meta property="og:url" content="https://three.ws/activity" /><meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Agent+Activity+%E2%80%94+Oracle+conviction+in+real+time&d=The+trading+floor%3A+every+Oracle+conviction+action+from+every+autonomous+3D+agent+on+pump.fun%2C+live.+Filter+by+tier+and+mode%2C+track+outcomes%2C+and+copy+the+winner&p=%2Factivity" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content="Agent Activity · Oracle · three.ws" />- <meta name="twitter:description" content="Every move 3D agents make on pump.fun, in real time." />+ <meta name="twitter:description" content="The live trading floor: every move 3D agents make on pump.fun, in real time." /><meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Agent+Activity+%E2%80%94+Oracle+conviction+in+real+time&d=The+trading+floor%3A+every+Oracle+conviction+action+from+every+autonomous+3D+agent+on+pump.fun%2C+live.+Filter+by+tier+and+mode%2C+track+outcomes%2C+and+copy+the+winner&p=%2Factivity" /><style>:root {@@ -50,7 +50,7 @@* { box-sizing: border-box; }.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,0.82); backdrop-filter: blur(10px); }- .ac-wrap { max-width: 980px; margin: 0 auto; padding: 0 18px 80px; }+ .ac-wrap { max-width: 1240px; margin: 0 auto; padding: 0 18px 90px; }/* ── hero ── */.ac-hero {@@ -69,6 +69,7 @@background: var(--ac-up); box-shadow: 0 0 0 0 rgba(52,211,153,0.6);animation: acPing 2.2s ease-out infinite;}+ .ac-pulse.is-stale { background: var(--ac-warn); animation: none; box-shadow: 0 0 0 3px rgba(251,191,36,.14); }@keyframes acPing { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.55);}70%{box-shadow:0 0 0 10px rgba(52,211,153,0);}100%{box-shadow:0 0 0 0 rgba(52,211,153,0);} }.ac-hero p { margin: 0; color: var(--ac-muted); font-size: 13.5px; max-width: 560px; line-height: 1.5; }@@ -76,13 +77,39 @@.ac-kpis { display: flex; gap: 8px; flex-wrap: wrap; }.ac-kpi {background: var(--ac-panel2); border: 1px solid var(--ac-border);- border-radius: 11px; padding: 9px 13px; min-width: 82px;+ border-radius: 11px; padding: 9px 13px; min-width: 84px;font-family: var(--font-mono, ui-monospace, monospace);}- .ac-kpi .v { font-size: 18px; font-weight: 700; color: var(--ac-text); font-variant-numeric: tabular-nums; }+ .ac-kpi .v { font-size: 18px; font-weight: 700; color: var(--ac-text); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 3px; }.ac-kpi .v.up { color: var(--ac-up); }.ac-kpi .v.dn { color: var(--ac-dn); }+ .ac-kpi .v.accent { color: var(--ac-accent); }.ac-kpi .l { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ac-faint); margin-top: 2px; }+ .ac-kpi.is-skel .v { color: transparent; border-radius: 5px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.11), rgba(255,255,255,.05)); background-size: 200% 100%; animation: acShimmer 1.4s infinite; width: 42px; height: 18px; }++ /* ── layout: feed + rail ── */+ .ac-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }+ .ac-main { min-width: 0; }+ .ac-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }++ /* ── insight strip ── */+ .ac-insight {+ display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px;+ }+ .ac-insight-card {+ flex: 1 1 160px; min-width: 0; display: flex; align-items: center; gap: 10px;+ background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(255,255,255,.02));+ border: 1px solid var(--ac-border); border-radius: 12px; padding: 10px 12px;+ text-decoration: none; color: inherit; transition: border-color .15s, transform .15s;+ animation: acIn .35s ease both;+ }+ .ac-insight-card:hover { border-color: rgba(139,92,246,.4); transform: translateY(-1px); }+ .ac-insight-card .ic { font-size: 18px; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.04); }+ .ac-insight-card .it { min-width: 0; }+ .ac-insight-card .ik { font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ac-faint); }+ .ac-insight-card .iv { font-size: 13px; font-weight: 700; color: var(--ac-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .ac-insight-card .iv .sub { font-weight: 600; font-size: 11.5px; color: var(--ac-muted); margin-left: 4px; }+ .ac-insight-card .iv.up { color: var(--ac-up); }/* ── toolbar ── */.ac-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 16px; }@@ -109,6 +136,21 @@.ac-mode-pill.live { color: var(--ac-up); border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.07); }.ac-mode-pill.live.is-active { background: rgba(52,211,153,.18); border-color: rgba(52,211,153,.5); }+ /* search */+ .ac-search { position: relative; flex: 1 1 180px; min-width: 150px; max-width: 280px; }+ .ac-search input {+ width: 100%; background: var(--ac-panel2); border: 1px solid var(--ac-border);+ border-radius: 999px; color: var(--ac-text); font: inherit; font-size: 12.5px;+ padding: 6px 28px 6px 30px; transition: border-color .14s, background .14s;+ }+ .ac-search input::placeholder { color: var(--ac-faint); }+ .ac-search input:focus { outline: none; border-color: rgba(139,92,246,.5); background: rgba(139,92,246,.06); }+ .ac-search .si { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ac-faint); font-size: 12px; pointer-events: none; }+ .ac-search .sx { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--ac-faint); cursor: pointer; font-size: 14px; padding: 2px 4px; line-height: 1; border-radius: 50%; }+ .ac-search .sx:hover { color: var(--ac-text); }++ .ac-refresh { font-size: 11px; color: var(--ac-faint); margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }+/* ── feed ── */.ac-feed { display: flex; flex-direction: column; gap: 8px; }@@ -122,6 +164,9 @@}@keyframes acIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }.ac-row:hover { border-color: var(--ac-border2); transform: translateX(2px); }+ .ac-row[hidden] { display: none; }+ .ac-row.is-new { animation: acFlash 1.1s ease both; }+ @keyframes acFlash { 0%{ background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.45);} 100%{ background: var(--ac-panel); border-color: var(--ac-border);} }.ac-row .outcome-edge { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; }.ac-row.oc-win .outcome-edge { background: var(--ac-up); }.ac-row.oc-loss .outcome-edge { background: var(--ac-dn); }@@ -153,6 +198,12 @@.ac-meta { font-size: 11.5px; color: var(--ac-faint); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }.ac-meta a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--ac-faint); }.ac-meta a:hover { color: var(--ac-muted); }+ .ac-meta .dotsep { opacity: .5; }+ /* conviction micro-bar */+ .ac-conv { display: inline-flex; align-items: center; gap: 5px; }+ .ac-conv .track { width: 34px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }+ .ac-conv .fill { height: 100%; border-radius: 3px; background: var(--cc, var(--ac-neutral)); }+ .ac-reason { font-size: 11.5px; color: var(--ac-muted); margin-top: 3px; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }/* right column */.ac-right { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }@@ -184,10 +235,15 @@@keyframes acShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }.ac-skel .sh-av { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }- .ac-empty { text-align: center; padding: 60px 24px; border: 1px dashed var(--ac-border2); border-radius: 14px; background: var(--ac-panel2); }+ .ac-empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--ac-border2); border-radius: 14px; background: var(--ac-panel2); }.ac-empty .icon { font-size: 28px; opacity: .6; }.ac-empty h3 { font-family: var(--font-display, sans-serif); font-size: 17px; margin: 12px 0 7px; }.ac-empty p { color: var(--ac-muted); font-size: 13px; max-width: 480px; margin: 0 auto; line-height: 1.55; }+ .ac-empty-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.4); color: #fff; border-radius: 10px; padding: 9px 16px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .14s, border-color .14s; }+ .ac-empty-cta:hover { background: rgba(139,92,246,.28); border-color: rgba(139,92,246,.6); }+ .ac-empty-sub { display: inline-flex; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--ac-faint); flex-wrap: wrap; justify-content: center; }+ .ac-empty-sub a { color: var(--ac-muted); text-decoration: none; border-bottom: 1px dotted var(--ac-faint); }+ .ac-empty-sub a:hover { color: var(--ac-text); }.ac-load-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; background: var(--ac-panel2); border: 1px solid var(--ac-border); border-radius: 10px; padding: 11px; font: inherit; font-size: 13px; color: var(--ac-muted); cursor: pointer; transition: color .14s, border-color .14s; }.ac-load-more:hover:not(:disabled) { color: var(--ac-text); border-color: var(--ac-border2); }@@ -208,7 +264,14 @@.ac-stale .ac-retry-btn { background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.4); padding: 5px 11px; font-size: 12px; color: var(--ac-warn); }.ac-stale .ac-retry-btn:hover:not(:disabled) { background: rgba(251,191,36,.24); border-color: rgba(251,191,36,.6); }- .ac-refresh { font-size: 11px; color: var(--ac-faint); margin-left: auto; }+ /* "new actions" jump pill */+ .ac-newpill { position: sticky; top: 70px; z-index: 6; align-self: center; margin: 0 auto 4px; display: none; }+ .ac-newpill button { display: inline-flex; align-items: center; gap: 6px; background: rgba(139,92,246,.92); border: 1px solid rgba(139,92,246,.6); color: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 22px rgba(139,92,246,.4); transition: transform .12s; }+ .ac-newpill button:hover { transform: translateY(-1px); }++ /* no-search-results */+ .ac-noresults { text-align: center; padding: 34px 18px; color: var(--ac-muted); font-size: 13px; border: 1px dashed var(--ac-border); border-radius: 12px; }+ .ac-noresults button { background: none; border: none; color: var(--ac-accent); cursor: pointer; font: inherit; text-decoration: underline; }/* outcome filter pills */.ac-outcome-pill {@@ -223,14 +286,55 @@.ac-outcome-pill.loss.is-active { color: var(--ac-dn); border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.09); }.ac-outcome-pill.open.is-active { color: var(--ac-warn); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }+ /* ── rail cards ── */+ .ac-card { background: var(--ac-panel); border: 1px solid var(--ac-border); border-radius: 14px; overflow: hidden; }+ .ac-card-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; }+ .ac-card-h .ttl { font-family: var(--font-display, sans-serif); font-size: 13px; font-weight: 700; letter-spacing: -.01em; flex: 1; display: flex; align-items: center; gap: 7px; }+ .ac-card-h .ttl .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }+ .ac-card-h .more { font-size: 11px; color: var(--ac-faint); text-decoration: none; white-space: nowrap; transition: color .13s; }+ .ac-card-h .more:hover { color: var(--ac-accent); }+ .ac-card-b { padding: 2px 8px 8px; }+ .ac-li { display: flex; align-items: center; gap: 9px; padding: 7px 6px; border-radius: 9px; text-decoration: none; color: inherit; transition: background .13s; }+ .ac-li:hover { background: rgba(255,255,255,.04); }+ .ac-li-rank { font-family: var(--font-mono, monospace); font-size: 11px; font-weight: 700; color: var(--ac-faint); width: 16px; text-align: center; flex-shrink: 0; }+ .ac-li-rank.top { color: var(--ac-warn); }+ .ac-li-av { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; border: 1px solid var(--ac-border); background: rgba(255,255,255,.05); flex-shrink: 0; }+ .ac-li-av.round { border-radius: 50%; }+ .ac-li-main { flex: 1; min-width: 0; }+ .ac-li-name { font-size: 12.5px; font-weight: 600; color: var(--ac-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .ac-li-sub { font-size: 10.5px; color: var(--ac-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .ac-li-r { text-align: right; flex-shrink: 0; font-family: var(--font-mono, monospace); }+ .ac-li-r .big { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }+ .ac-li-r .big.up { color: var(--ac-up); } .ac-li-r .big.dn { color: var(--ac-dn); }+ .ac-li-r .small { font-size: 10px; color: var(--ac-faint); }+ .ac-li-r .small.up { color: var(--ac-up); } .ac-li-r .small.dn { color: var(--ac-dn); }+ .ac-card-empty { padding: 16px 14px 18px; text-align: center; color: var(--ac-faint); font-size: 11.5px; line-height: 1.5; }+ .ac-card-empty a { color: var(--ac-muted); }+ .ac-card-skel { display: flex; flex-direction: column; gap: 4px; padding: 4px 6px 8px; }+ .ac-card-skel .row { display: flex; align-items: center; gap: 9px; padding: 7px 6px; }+ .ac-card-skel .sh { border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: acShimmer 1.4s infinite; }+ .ac-delta { font-size: 11px; font-weight: 700; font-family: var(--font-mono, monospace); }+ .ac-delta.up { color: var(--ac-up); } .ac-delta.dn { color: var(--ac-dn); }++ .ac-rail-cta { display: block; text-align: center; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(52,211,153,.06)); border: 1px solid rgba(139,92,246,.3); color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 600; transition: border-color .14s, transform .14s; }+ .ac-rail-cta:hover { border-color: rgba(139,92,246,.6); transform: translateY(-1px); }+ .ac-rail-cta .sub { display: block; font-weight: 500; font-size: 11px; color: var(--ac-muted); margin-top: 3px; }++ .ac-kbd { font-family: var(--font-mono, monospace); font-size: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--ac-border); border-radius: 4px; padding: 1px 5px; color: var(--ac-muted); }++ @media (max-width: 920px) {+ .ac-layout { grid-template-columns: 1fr; }+ .ac-rail { position: static; flex-direction: column; }+ }@media (max-width: 600px) {.ac-right { display: none; }.ac-row:hover { transform: none; }+ .ac-search { max-width: none; order: 10; flex-basis: 100%; }}</style><meta property="og:site_name" content="three.ws">- <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Agent Activity — Oracle conviction in real time","description":"The trading floor: every Oracle conviction action from every autonomous 3D agent on pump.fun, live. Filter by tier and mode, track outcomes, and copy the winners.","url":"https://three.ws/activity","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Agent Activity — Oracle conviction in real time","description":"The trading floor: every Oracle conviction action from every autonomous 3D agent on pump.fun, live. Filter by tier and mode, track outcomes, copy the winners. Live conviction movers, the agent leaderboard, and proven wins on one screen.","url":"https://three.ws/activity","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script><meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1"><meta property="og:locale" content="en_US">@@ -244,51 +348,101 @@<main class="ac-wrap"><div class="ac-hero"><div>- <h1><span class="ac-pulse" aria-hidden="true"></span>Agent Activity</h1>- <p>Every move 3D agents make on pump.fun, in real time. Autonomous agents act on Oracle conviction — watch them trade, see the outcomes, and copy the winners.</p>+ <h1><span class="ac-pulse" id="ac-pulse" aria-hidden="true"></span>Agent Activity</h1>+ <p>The live trading floor. Every move 3D agents make on pump.fun, in real time — autonomous agents acting on Oracle conviction. Watch them trade, track outcomes, and copy the winners.</p></div><div class="ac-kpis" id="ac-kpis" aria-live="polite"></div></div>- <div class="ac-toolbar">- <button class="ac-chip is-active" data-tier="">All tiers</button>- <button class="ac-chip tier-prime" data-tier="prime">🟣 Prime</button>- <button class="ac-chip tier-strong" data-tier="strong">🔵 Strong</button>- <button class="ac-chip tier-lean" data-tier="lean">🟡 Lean</button>- <button class="ac-chip" data-tier="watch">⚪ Watch</button>- <div class="ac-sep"></div>- <button class="ac-mode-pill is-active" data-mode="">All</button>- <button class="ac-mode-pill live" data-mode="live">Live only</button>- <button class="ac-mode-pill" data-mode="simulate">Simulate</button>- <div class="ac-sep"></div>- <button class="ac-outcome-pill is-active" data-outcome="">All outcomes</button>- <button class="ac-outcome-pill win" data-outcome="win">Wins ✓</button>- <button class="ac-outcome-pill loss" data-outcome="loss">Losses ✗</button>- <button class="ac-outcome-pill open" data-outcome="open">Open →</button>- <span class="ac-refresh" id="ac-refresh-note"></span>- </div>+ <div class="ac-layout">+ <div class="ac-main">+ <div class="ac-insight" id="ac-insight" hidden></div>- <div class="ac-stale" id="ac-stale" role="status" hidden>- <span class="dot" aria-hidden="true"></span>- <span class="ac-stale-text" id="ac-stale-text"></span>- <button class="ac-retry-btn" id="ac-stale-retry" type="button">↻ Refresh</button>- </div>+ <div class="ac-toolbar">+ <button class="ac-chip is-active" data-tier="">All tiers</button>+ <button class="ac-chip tier-prime" data-tier="prime">🟣 Prime</button>+ <button class="ac-chip tier-strong" data-tier="strong">🔵 Strong</button>+ <button class="ac-chip tier-lean" data-tier="lean">🟡 Lean</button>+ <button class="ac-chip" data-tier="watch">⚪ Watch</button>+ <div class="ac-sep"></div>+ <button class="ac-mode-pill is-active" data-mode="">All</button>+ <button class="ac-mode-pill live" data-mode="live">Live only</button>+ <button class="ac-mode-pill" data-mode="simulate">Simulate</button>+ <div class="ac-sep"></div>+ <button class="ac-outcome-pill is-active" data-outcome="">All outcomes</button>+ <button class="ac-outcome-pill win" data-outcome="win">Wins ✓</button>+ <button class="ac-outcome-pill loss" data-outcome="loss">Losses ✗</button>+ <button class="ac-outcome-pill open" data-outcome="open">Open →</button>+ <div class="ac-search">+ <span class="si" aria-hidden="true">⌕</span>+ <input id="ac-search-input" type="search" placeholder="Filter agent or coin… /" aria-label="Filter loaded actions by agent or coin" autocomplete="off" />+ <button class="sx" id="ac-search-clear" type="button" aria-label="Clear filter" hidden>×</button>+ </div>+ <span class="ac-refresh" id="ac-refresh-note"></span>+ </div>++ <div class="ac-stale" id="ac-stale" role="status" hidden>+ <span class="dot" aria-hidden="true"></span>+ <span class="ac-stale-text" id="ac-stale-text"></span>+ <button class="ac-retry-btn" id="ac-stale-retry" type="button">↻ Refresh</button>+ </div>++ <div class="ac-newpill" id="ac-newpill"><button type="button">↑ <span id="ac-newpill-n">0</span> new</button></div>++ <div class="ac-feed" id="ac-feed" role="feed" aria-busy="false"></div>+ <button class="ac-load-more" id="ac-load-more" hidden><span class="ac-load-more-label">Load more</span></button>+ </div>++ <aside class="ac-rail" aria-label="Conviction Board">+ <a class="ac-rail-cta" href="/oracle">Arm a 3D agent with Oracle conviction<span class="sub">Let it trade pump.fun autonomously →</span></a>++ <section class="ac-card" id="card-agents">+ <div class="ac-card-h">+ <span class="ttl"><span class="dot" style="background:var(--ac-accent)"></span>Top Agents</span>+ <a class="more" href="/oracle/leaderboard">Leaderboard →</a>+ </div>+ <div class="ac-card-b" id="card-agents-b"></div>+ </section>++ <section class="ac-card" id="card-movers">+ <div class="ac-card-h">+ <span class="ttl"><span class="dot" style="background:var(--ac-up)"></span>Conviction Movers</span>+ <a class="more" href="/oracle">24h →</a>+ </div>+ <div class="ac-card-b" id="card-movers-b"></div>+ </section>- <div class="ac-feed" id="ac-feed" role="feed" aria-busy="false"></div>- <button class="ac-load-more" id="ac-load-more" hidden><span class="ac-load-more-label">Load more</span></button>+ <section class="ac-card" id="card-wins">+ <div class="ac-card-h">+ <span class="ttl"><span class="dot" style="background:var(--ac-warn)"></span>Proven Wins</span>+ <a class="more" href="/oracle/wins">Gallery →</a>+ </div>+ <div class="ac-card-b" id="card-wins-b"></div>+ </section>+ </aside>+ </div></main><script src="/brand.js" defer></script><script type="module">const API = '/api/oracle/activity';- const STREAM_API = '/api/oracle/action-stream';+ const STATS_API = '/api/oracle/stats';const REFRESH_MS = 60_000;const TIER_EMOJI = { prime: '🟣', strong: '🔵', lean: '🟡', watch: '⚪', avoid: '🔴' };+ const TIER_COLOR = { prime: 'var(--tier-prime)', strong: 'var(--tier-strong)', lean: 'var(--tier-lean)', watch: 'var(--tier-watch)', avoid: 'var(--tier-avoid)' };const sol = (n) => n == null ? '—' : (Math.abs(Number(n)) >= 1 ? Number(n).toFixed(2) : Number(n).toFixed(3)) + ' ◎';const sign = (n) => n > 0 ? '+' : '';const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));const imgErr = `this.onerror=null;this.style.visibility='hidden'`;+ function usdc(n) {+ if (n == null || !isFinite(n)) return null;+ const a = Math.abs(n);+ if (a >= 1e9) return '$' + (n / 1e9).toFixed(1) + 'B';+ if (a >= 1e6) return '$' + (n / 1e6).toFixed(1) + 'M';+ if (a >= 1e3) return '$' + (n / 1e3).toFixed(1) + 'K';+ return '$' + Math.round(n);+ }function ago(iso) {if (!iso) return '';const d = Date.now() - new Date(iso).getTime();@@ -299,6 +453,16 @@if (h < 24) return Math.floor(h) + 'h ago';return Math.floor(h / 24) + 'd ago';}+ function durationBetween(a, b) {+ if (!a || !b) return null;+ const ms = new Date(b).getTime() - new Date(a).getTime();+ if (!isFinite(ms) || ms <= 0) return null;+ const m = ms / 60000;+ if (m < 60) return Math.max(1, Math.round(m)) + 'm';+ const h = m / 60;+ if (h < 24) return h.toFixed(h < 10 ? 1 : 0) + 'h';+ return Math.round(h / 24) + 'd';+ }function renderRow(item) {const tier = item.tier || 'watch';@@ -316,13 +480,34 @@const av = item.agent_image || item.agent_avatar || '/favicon.ico';const coinUrl = `https://pump.fun/coin/${encodeURIComponent(item.mint)}`;const verb = outcome === 'win' ? 'closed ↑' : outcome === 'loss' ? 'closed ↓' : outcome === 'flat' ? 'closed' : 'entered';- const convScore = item.conviction != null ? ` · ${item.conviction}` : '';const outcomeWord = { win: 'won', loss: 'lost', flat: 'closed flat', open: 'open position' }[outcome] || outcome;const symLabel = (item.symbol || item.mint.slice(0, 6)).toUpperCase();const pnlLabel = pnl != null ? `, P&L ${sign(pnl)}${sol(pnl)}` : '';const rowLabel = `${item.agent_name || 'Agent'} ${verb.replace(/[↑↓]/g, '').trim()} $${symLabel} — ${outcomeWord}${pnlLabel}`;+ // conviction micro-bar+ const conv = item.conviction != null ? Math.max(0, Math.min(100, Number(item.conviction))) : null;+ const convHtml = conv != null+ ? `<span class="ac-conv" title="Oracle conviction ${conv}/100"><span class="track"><span class="fill" style="width:${conv}%;--cc:${TIER_COLOR[tier] || 'var(--ac-neutral)'}"></span></span><span style="color:var(--ac-muted);font-family:var(--font-mono,monospace)">${conv}</span></span>`+ : '';++ // entry market cap + hold duration+ const mc = usdc(item.entry_mc_usd);+ const hold = outcome !== 'open' ? durationBetween(item.acted_at, item.settled_at) : null;+ const metaBits = [+ `<span>${ago(item.acted_at)}</span>`,+ `<span class="dotsep">·</span><span>${sol(item.size_sol)}</span>`,+ convHtml ? `<span class="dotsep">·</span>${convHtml}` : '',+ mc ? `<span class="dotsep">·</span><span title="Entry market cap">@ ${mc}</span>` : '',+ hold ? `<span class="dotsep">·</span><span title="Time in position">held ${hold}</span>` : '',+ item.tx_url ? `<span class="dotsep">·</span><a href="${esc(item.tx_url)}" target="_blank" rel="noopener" title="View transaction on Solscan">tx ↗</a>` : '',+ `<span class="dotsep">·</span><a href="/oracle?mint=${encodeURIComponent(item.mint)}" target="_blank" rel="noopener">Oracle ↗</a>`,+ ].filter(Boolean).join('');++ const reasonHtml = item.reason+ ? `<div class="ac-reason" title="${esc(item.reason)}">“${esc(item.reason)}”</div>` : '';+return `<div class="ac-row oc-${outcome}" data-id="${esc(item.id)}" data-agent="${esc(item.agent_id)}" role="article" aria-label="${esc(rowLabel)}"><span class="outcome-edge" aria-hidden="true"></span><img class="ac-av" src="${esc(av)}" alt="" onerror="${imgErr}" loading="lazy" />@@ -331,14 +516,10 @@<span class="ac-tier ${tier}">${TIER_EMOJI[tier] || ''} ${tier}</span><a class="ac-agent" href="/agents/${esc(item.agent_id)}">${esc(item.agent_name)}</a><span class="ac-verb">${verb}</span>- <a class="ac-coin" href="${esc(coinUrl)}" target="_blank" rel="noopener">$${esc((item.symbol || item.mint.slice(0,6)).toUpperCase())}</a>- </div>- <div class="ac-meta">- <span>${ago(item.acted_at)}</span>- <span>${sol(item.size_sol)} · conviction${convScore}</span>- ${item.pump_url ? `<a href="${esc(item.pump_url)}" target="_blank" rel="noopener">pump.fun ↗</a>` : ''}- <a href="/oracle?mint=${encodeURIComponent(item.mint)}" target="_blank" rel="noopener">Oracle ↗</a>+ <a class="ac-coin" href="${esc(coinUrl)}" target="_blank" rel="noopener">$${esc(symLabel)}</a></div>+ <div class="ac-meta">${metaBits}</div>+ ${reasonHtml}</div><div class="ac-right">${pnlStr}@@ -363,29 +544,72 @@</div>`).join('');}- const state = { tier: '', mode: '', outcome: '', cursor: null, loading: false, items: [], lastSuccess: null, stale: false };+ const state = { tier: '', mode: '', outcome: '', q: '', cursor: null, loading: false, items: [], lastSuccess: null, stale: false };const feed = document.getElementById('ac-feed');const loadMoreBtn = document.getElementById('ac-load-more');const loadMoreLabel = loadMoreBtn.querySelector('.ac-load-more-label');const staleBar = document.getElementById('ac-stale');const staleText = document.getElementById('ac-stale-text');const staleRetry = document.getElementById('ac-stale-retry');+ const pulse = document.getElementById('ac-pulse');+ const newpill = document.getElementById('ac-newpill');+ const newpillN = document.getElementById('ac-newpill-n');+ const insightEl = document.getElementById('ac-insight');+ let pendingNew = 0;function showStale(msg) {state.stale = true;staleText.textContent = msg;staleBar.hidden = false;+ pulse.classList.add('is-stale');}function clearStale() {state.stale = false;staleBar.hidden = true;+ pulse.classList.remove('is-stale');+ }++ // ── search (client-side filter over loaded actions) ──+ function matchesSearch(item) {+ if (!state.q) return true;+ const q = state.q;+ return (item.agent_name || '').toLowerCase().includes(q)+ || (item.symbol || '').toLowerCase().includes(q)+ || (item.mint || '').toLowerCase().includes(q)+ || (item.reason || '').toLowerCase().includes(q);+ }+ function applySearch() {+ let shown = 0;+ const byId = new Map(state.items.map((it) => [String(it.id), it]));+ feed.querySelectorAll('.ac-row').forEach((row) => {+ const it = byId.get(row.dataset.id);+ const hit = it ? matchesSearch(it) : true;+ row.hidden = !hit;+ if (hit) shown++;+ });+ const nr = document.getElementById('ac-noresults');+ if (state.q && shown === 0 && state.items.length) {+ if (!nr) {+ feed.insertAdjacentHTML('beforeend',+ `<div class="ac-noresults" id="ac-noresults">No loaded actions match “${esc(state.q)}”. <button id="ac-noresults-clear">Clear filter</button></div>`);+ document.getElementById('ac-noresults-clear').addEventListener('click', clearSearch);+ }+ } else if (nr) {+ nr.remove();+ }+ }+ function clearSearch() {+ searchInput.value = '';+ state.q = '';+ searchClear.hidden = true;+ applySearch();}async function load(reset = false) {if (state.loading) return;state.loading = true;feed.setAttribute('aria-busy', 'true');- if (reset) { state.items = []; state.cursor = null; feed.innerHTML = skeletons(); }+ if (reset) { state.items = []; state.cursor = null; pendingNew = 0; newpill.style.display = 'none'; feed.innerHTML = skeletons(); }else if (!loadMoreBtn.hidden) {loadMoreBtn.disabled = true;loadMoreBtn.setAttribute('aria-busy', 'true');@@ -413,31 +637,26 @@state.items = items;if (items.length) {feed.innerHTML = items.map(renderRow).join('');+ applySearch();} else {- feed.innerHTML = `<div class="ac-empty">- <div class="icon">🤖</div>- <h3>No agent actions yet</h3>- <p>Once an Oracle-armed 3D agent acts on a conviction signal, it appears here. <a href="/oracle" style="color:var(--ac-accent)">Arm your agent →</a></p>- </div>`;+ feed.innerHTML = emptyState();}} else {state.items.push(...items);feed.insertAdjacentHTML('beforeend', items.map(renderRow).join(''));+ applySearch();}state.cursor = data.next_before || null;loadMoreBtn.hidden = !state.cursor;- // KPIs- if (data.summary) renderKpis(data.summary);+ if (data.summary) mergeSummary(data.summary);- // Success — data is fresh again.state.lastSuccess = Date.now();clearStale();} catch (e) {if (reset && !state.items.length) {- // Hard failure with nothing to show — full error state + retry.loadMoreBtn.hidden = true;feed.innerHTML = `<div class="ac-empty"><div class="icon">⚠️</div>@@ -450,7 +669,6 @@const btn = document.getElementById('ac-error-retry');if (btn) btn.addEventListener('click', () => { btn.disabled = true; load(true); });} else {- // We still have data on screen — flag it as stale rather than blanking it.const since = state.lastSuccess? `last updated ${ago(new Date(state.lastSuccess).toISOString())}`: 'showing earlier data';@@ -467,17 +685,68 @@}}- function renderKpis(s) {+ function emptyState() {+ const filtered = state.tier || state.mode || state.outcome;+ if (filtered) {+ return `<div class="ac-empty">+ <div class="icon">🔭</div>+ <h3>No actions match these filters</h3>+ <p>No agent has acted under this tier / mode / outcome combination yet. Clear the filters to see the full floor, or check the Conviction Board for what's moving.</p>+ <button class="ac-empty-cta" id="ac-clear-filters" type="button">Clear filters</button>+ </div>`;+ }+ return `<div class="ac-empty">+ <div class="icon">🤖</div>+ <h3>The floor is quiet — for now</h3>+ <p>The Oracle is scanning pump.fun continuously and scoring conviction. The moment an Oracle-armed 3D agent acts on a signal, its trade streams in here live. Be the first to arm one.</p>+ <a class="ac-empty-cta" href="/oracle">⚡ Arm your agent →</a>+ <div class="ac-empty-sub">+ <a href="/oracle">How conviction works</a>+ <a href="/oracle/leaderboard">Agent leaderboard</a>+ <a href="/oracle/wins">Proven wins</a>+ </div>+ </div>`;+ }++ // ── KPIs: merge /api/oracle/stats (always-present platform numbers) with+ // the activity summary (7-day action rollup). Stats wins for fields it+ // owns; activity fills PnL which stats doesn't carry. ──+ const kpiData = { agents_armed: null, scored_24h: null, open_actions: null, win_rate: null, best_ath: null, total_pnl_sol: null, actions_7d: null };+ function mergeSummary(s) {+ kpiData.actions_7d = Number(s.total) || 0;+ kpiData.total_pnl_sol = Number(s.total_pnl_sol) || 0;+ // Derive win rate from the 7d action rollup as a fallback if stats absent.+ if (kpiData.win_rate == null && (s.wins + s.losses) > 0) {+ kpiData.win_rate = Math.round(s.wins / (s.wins + s.losses) * 100);+ }+ renderKpis();+ }+ function applyStats(st) {+ kpiData.agents_armed = Number(st.agents_armed) || 0;+ kpiData.scored_24h = Number(st.scored_24h) || 0;+ kpiData.open_actions = Number(st.open_actions) || 0;+ kpiData.win_rate = st.win_rate != null ? Number(st.win_rate) : kpiData.win_rate;+ kpiData.best_ath = st.best_ath != null ? Number(st.best_ath) : null;+ renderKpis();+ }+ function renderKpis() {const kpis = document.getElementById('ac-kpis');- const pnl = Number(s.total_pnl_sol) || 0;- const winRate = s.wins + s.losses > 0 ? Math.round(s.wins / (s.wins + s.losses) * 100) : null;- kpis.innerHTML = [- ['Agents', s.agent_count, ''],- ['Actions (7d)', s.total, ''],- ['Wins', s.wins, 'up'],- ['Win rate', winRate != null ? winRate + '%' : '—', winRate >= 50 ? 'up' : 'dn'],- ['PnL (7d)', (pnl >= 0 ? '+' : '') + sol(pnl), pnl >= 0 ? 'up' : 'dn'],- ].map(([l, v, cls]) => `<div class="ac-kpi"><div class="v ${cls}">${v}</div><div class="l">${l}</div></div>`).join('');+ const d = kpiData;+ const pnl = d.total_pnl_sol;+ const cells = [+ ['Agents armed', d.agents_armed != null ? d.agents_armed : '—', 'accent'],+ ['Scored 24h', d.scored_24h != null ? d.scored_24h : '—', ''],+ ['Open', d.open_actions != null ? d.open_actions : '—', ''],+ ['Win rate', d.win_rate != null ? d.win_rate + '%' : '—', d.win_rate != null ? (d.win_rate >= 50 ? 'up' : 'dn') : ''],+ ['Best ATH', d.best_ath != null ? d.best_ath.toFixed(1) + '×' : '—', d.best_ath != null ? 'up' : ''],+ ['PnL (7d)', pnl != null ? (pnl >= 0 ? '+' : '') + sol(pnl) : '—', pnl != null ? (pnl >= 0 ? 'up' : 'dn') : ''],+ ];+ kpis.innerHTML = cells.map(([l, v, cls]) =>+ `<div class="ac-kpi"><div class="v ${cls}">${v}</div><div class="l">${l}</div></div>`).join('');+ }+ function kpiSkeleton() {+ document.getElementById('ac-kpis').innerHTML = Array.from({length: 6}, () =>+ `<div class="ac-kpi is-skel"><div class="v"></div><div class="l"> </div></div>`).join('');}// ── toolbar wiring ──@@ -493,6 +762,7 @@if (modeBtn) {document.querySelectorAll('[data-mode]').forEach(b => b.classList.toggle('is-active', b === modeBtn));state.mode = modeBtn.dataset.mode;+ restartSse();load(true);}if (outcomeBtn) {@@ -502,31 +772,85 @@}});+ feed.addEventListener('click', (e) => {+ if (e.target.id === 'ac-clear-filters') {+ state.tier = ''; state.mode = ''; state.outcome = '';+ document.querySelectorAll('[data-tier]').forEach(b => b.classList.toggle('is-active', b.dataset.tier === ''));+ document.querySelectorAll('[data-mode]').forEach(b => b.classList.toggle('is-active', b.dataset.mode === ''));+ document.querySelectorAll('[data-outcome]').forEach(b => b.classList.toggle('is-active', b.dataset.outcome === ''));+ restartSse();+ load(true);+ }+ });++ // ── search wiring ──+ const searchInput = document.getElementById('ac-search-input');+ const searchClear = document.getElementById('ac-search-clear');+ let searchDebounce;+ searchInput.addEventListener('input', () => {+ clearTimeout(searchDebounce);+ searchDebounce = setTimeout(() => {+ state.q = searchInput.value.trim().toLowerCase();+ searchClear.hidden = !state.q;+ applySearch();+ }, 120);+ });+ searchClear.addEventListener('click', clearSearch);+loadMoreBtn.addEventListener('click', () => { loadMoreBtn.disabled = true; load(false); });staleRetry.addEventListener('click', () => {staleRetry.disabled = true;- load(true).finally(() => { staleRetry.disabled = false; });+ Promise.all([load(true), loadStats()]).finally(() => { staleRetry.disabled = false; });+ });++ newpill.querySelector('button').addEventListener('click', () => {+ pendingNew = 0;+ newpill.style.display = 'none';+ window.scrollTo({ top: 0, behavior: 'smooth' });+ });++ // ── keyboard shortcuts ──+ document.addEventListener('keydown', (e) => {+ if (e.target.matches('input, textarea, select') && e.key !== 'Escape') return;+ if (e.key === '/') { e.preventDefault(); searchInput.focus(); }+ else if (e.key === 'r' && !e.metaKey && !e.ctrlKey) { e.preventDefault(); load(true); loadStats(); loadRail(); }+ else if (e.key === 'Escape' && e.target === searchInput) { clearSearch(); searchInput.blur(); }});+ // ── stats endpoint (always-present platform numbers, even with 0 actions) ──+ async function loadStats() {+ try {+ const r = await fetch(`${STATS_API}?network=mainnet`, { headers: { accept: 'application/json' } });+ if (!r.ok) return;+ applyStats(await r.json());+ } catch { /* KPIs fall back to activity summary */ }+ }+// ── SSE — real-time updates ──────────────────────────────────────────const note = document.getElementById('ac-refresh-note');const seenIds = new Set();+ let es = null;let sseActive = false;let sseLastCursor = null;+ function restartSse() {+ if (es) { try { es.close(); } catch {} es = null; }+ sseActive = false;+ if (typeof EventSource !== 'undefined') startSse();+ }+function startSse() {const url = new URL('/api/oracle/action-stream', location.origin);url.searchParams.set('network', 'mainnet');if (state.mode) url.searchParams.set('mode', state.mode);if (sseLastCursor) url.searchParams.set('since', sseLastCursor);- const es = new EventSource(url.toString());+ es = new EventSource(url.toString());sseActive = false;es.addEventListener('hello', () => {sseActive = true;- note.textContent = '⚡ Live';- // Stream is healthy again — data on screen is current.+ note.innerHTML = '<span style="color:var(--ac-up)">⚡ Live</span>';state.lastSuccess = Date.now();if (state.stale && !state.cursor) clearStale();});@@ -534,7 +858,6 @@es.addEventListener('action', (e) => {const item = JSON.parse(e.data);if (seenIds.has(item.id)) return;- // Only show if passes current filtersif (state.tier && item.tier !== state.tier) return;if (state.mode && item.mode !== state.mode) return;if (state.outcome && (item.outcome || 'open') !== state.outcome) return;@@ -542,50 +865,199 @@seenIds.add(item.id);sseLastCursor = item.acted_at;state.items.unshift(item);++ // If the feed is showing an empty/error placeholder, replace it.+ if (feed.querySelector('.ac-empty')) feed.innerHTML = '';+const div = document.createElement('div');div.innerHTML = renderRow(item);const row = div.firstElementChild;- // Animate in from toprow.style.animationDelay = '0ms';+ row.classList.add('is-new');+ row.hidden = !matchesSearch(item);feed.prepend(row);++ // Nudge open-action KPIs upward live.+ if ((item.outcome || 'open') === 'open' && kpiData.open_actions != null) {+ kpiData.open_actions += 1; renderKpis();+ }+ if (document.querySelector('#ac-noresults') && matchesSearch(item)) applySearch();++ // "N new" jump pill if user has scrolled down.+ if (window.scrollY > 320 && !row.hidden) {+ pendingNew++;+ newpillN.textContent = pendingNew;+ newpill.style.display = 'block';+ }});es.addEventListener('settle', (e) => {const item = JSON.parse(e.data);const existing = feed.querySelector(`[data-id="${CSS.escape(item.id)}"]`);+ const idx = state.items.findIndex((it) => String(it.id) === String(item.id));+ if (idx >= 0) state.items[idx] = item;if (!existing) return;- // Replace the row in-place with updated outcomeconst div = document.createElement('div');div.innerHTML = renderRow(item);const updated = div.firstElementChild;+ updated.hidden = !matchesSearch(item);existing.replaceWith(updated);+ // Settled means one fewer open position.+ if (kpiData.open_actions != null && kpiData.open_actions > 0) {+ kpiData.open_actions -= 1; renderKpis();+ }});es.addEventListener('bye', (e) => {const d = JSON.parse(e.data || '{}');if (d.since) sseLastCursor = d.since;- es.close();+ es.close(); es = null;sseActive = false;- // Reconnect after 500ms- setTimeout(startSse, 500);+ setTimeout(() => { if (!sseActive) startSse(); }, 500);});es.addEventListener('error', () => {sseActive = false;note.textContent = 'Reconnecting…';- es.close();- // Fallback to polling if SSE fails+ try { es.close(); } catch {}+ es = null;setTimeout(() => { if (!sseActive) startSse(); }, 5000);});+ }- return es;+ // ── Conviction Board rail ──────────────────────────────────────────+ function railSkeleton(rows = 4) {+ return `<div class="ac-card-skel">${Array.from({length: rows}, () => `<div class="row">+ <div class="sh" style="width:26px;height:26px;border-radius:8px"></div>+ <div style="flex:1;display:flex;flex-direction:column;gap:6px"><div class="sh" style="width:60%;height:11px"></div><div class="sh" style="width:40%;height:9px"></div></div>+ <div class="sh" style="width:32px;height:12px"></div>+ </div>`).join('')}</div>`;+ }+ function railEmpty(msg, link, linkText) {+ return `<div class="ac-card-empty">${msg}${link ? `<br><a href="${link}">${linkText}</a>` : ''}</div>`;+ }++ async function loadAgents() {+ const b = document.getElementById('card-agents-b');+ b.innerHTML = railSkeleton();+ try {+ const r = await fetch('/api/oracle/leaderboard?network=mainnet&limit=5&min_actions=1', { headers: { accept: 'application/json' } });+ if (!r.ok) throw new Error('HTTP ' + r.status);+ const { agents } = await r.json();+ if (!agents || !agents.length) {+ b.innerHTML = railEmpty('No ranked agents yet.', '/oracle', 'Arm the first →');+ return null;+ }+ b.innerHTML = agents.map((a) => {+ const wr = a.win_rate != null ? a.win_rate + '%' : '—';+ const roi = a.roi_pct != null ? `${a.roi_pct >= 0 ? '+' : ''}${a.roi_pct}% ROI` : `${a.total} calls`;+ const roiCls = a.roi_pct != null ? (a.roi_pct >= 0 ? 'up' : 'dn') : '';+ const av = a.image_url || '/favicon.ico';+ return `<a class="ac-li" href="/trader/${encodeURIComponent(a.agent_id)}">+ <span class="ac-li-rank ${a.rank <= 3 ? 'top' : ''}">${a.rank}</span>+ <img class="ac-li-av round" src="${esc(av)}" alt="" onerror="${imgErr}" loading="lazy" />+ <span class="ac-li-main"><span class="ac-li-name">${esc(a.name || 'Agent')}</span><span class="ac-li-sub">${a.wins}W · ${a.losses}L · ${a.total} calls</span></span>+ <span class="ac-li-r"><span class="big up">${wr}</span><span class="small ${roiCls}">${roi}</span></span>+ </a>`;+ }).join('');+ return agents[0];+ } catch (e) {+ b.innerHTML = railEmpty(`Couldn't load — ${esc(e.message)}.`);+ return null;+ }+ }++ async function loadMovers() {+ const b = document.getElementById('card-movers-b');+ b.innerHTML = railSkeleton();+ try {+ const r = await fetch('/api/oracle/movers?network=mainnet&direction=rising&hours=24&limit=5&min_delta=3', { headers: { accept: 'application/json' } });+ if (!r.ok) throw new Error('HTTP ' + r.status);+ const { items } = await r.json();+ if (!items || !items.length) {+ b.innerHTML = railEmpty('No conviction moves in the last 24h.', '/oracle', 'Browse the Oracle →');+ return null;+ }+ b.innerHTML = items.map((m) => {+ const sym = (m.symbol || m.mint.slice(0, 6)).toUpperCase();+ const av = m.image_uri || '/favicon.ico';+ const up = (m.delta || 0) >= 0;+ return `<a class="ac-li" href="/oracle?mint=${encodeURIComponent(m.mint)}">+ <img class="ac-li-av" src="${esc(av)}" alt="" onerror="${imgErr}" loading="lazy" />+ <span class="ac-li-main"><span class="ac-li-name">$${esc(sym)}${m.tier_changed ? ' <span style="color:var(--ac-up);font-size:9px">▲ tier</span>' : ''}</span><span class="ac-li-sub">${esc(m.tier || '')} · score ${m.score ?? '—'}</span></span>+ <span class="ac-li-r"><span class="ac-delta ${up ? 'up' : 'dn'}">${up ? '+' : ''}${m.delta}</span><span class="small">${m.first_score}→${m.score}</span></span>+ </a>`;+ }).join('');+ return items[0];+ } catch (e) {+ b.innerHTML = railEmpty(`Couldn't load — ${esc(e.message)}.`);+ return null;+ }+ }++ async function loadWins() {+ const b = document.getElementById('card-wins-b');+ b.innerHTML = railSkeleton(3);+ try {+ const r = await fetch('/api/oracle/wins?network=mainnet&period=30d&min_ath=2&limit=5', { headers: { accept: 'application/json' } });+ if (!r.ok) throw new Error('HTTP ' + r.status);+ const { items } = await r.json();+ if (!items || !items.length) {+ b.innerHTML = railEmpty('No proven wins in this window yet.', '/oracle/wins', 'See the gallery →');+ return null;+ }+ b.innerHTML = items.map((w) => {+ const sym = (w.symbol || w.mint.slice(0, 6)).toUpperCase();+ const av = w.image_uri || '/favicon.ico';+ const ath = w.ath_multiple != null ? w.ath_multiple.toFixed(1) + '×' : '—';+ return `<a class="ac-li" href="${esc(w.pump_url)}" target="_blank" rel="noopener">+ <img class="ac-li-av" src="${esc(av)}" alt="" onerror="${imgErr}" loading="lazy" />+ <span class="ac-li-main"><span class="ac-li-name">$${esc(sym)}${w.graduated ? ' 🎓' : ''}</span><span class="ac-li-sub">${esc(w.tier || '')}${w.last_mc_usd ? ' · ' + usdc(w.last_mc_usd) : ''}</span></span>+ <span class="ac-li-r"><span class="big up">${ath}</span><span class="small">ATH</span></span>+ </a>`;+ }).join('');+ return items[0];+ } catch (e) {+ b.innerHTML = railEmpty(`Couldn't load — ${esc(e.message)}.`);+ return null;+ }+ }++ // Insight strip — cross-pollinate the rail's standouts into one glanceable row.+ function renderInsight({ topAgent, topMover, topWin }) {+ const cards = [];+ if (topAgent) {+ cards.push(`<a class="ac-insight-card" href="/trader/${encodeURIComponent(topAgent.agent_id)}">+ <span class="ic">🏆</span><span class="it"><span class="ik">Top agent</span>+ <span class="iv">${esc(topAgent.name || 'Agent')}<span class="sub">${topAgent.win_rate != null ? topAgent.win_rate + '% win' : topAgent.total + ' calls'}</span></span></span></a>`);+ }+ if (topMover) {+ const sym = (topMover.symbol || topMover.mint.slice(0, 6)).toUpperCase();+ cards.push(`<a class="ac-insight-card" href="/oracle?mint=${encodeURIComponent(topMover.mint)}">+ <span class="ic">📈</span><span class="it"><span class="ik">Biggest 24h move</span>+ <span class="iv up">$${esc(sym)}<span class="sub">+${topMover.delta} conviction</span></span></span></a>`);+ }+ if (topWin) {+ const sym = (topWin.symbol || topWin.mint.slice(0, 6)).toUpperCase();+ cards.push(`<a class="ac-insight-card" href="${esc(topWin.pump_url)}" target="_blank" rel="noopener">+ <span class="ic">🚀</span><span class="it"><span class="ik">Best proven win</span>+ <span class="iv up">${topWin.ath_multiple != null ? topWin.ath_multiple.toFixed(1) + '×' : '—'}<span class="sub">$${esc(sym)}</span></span></span></a>`);+ }+ if (cards.length) { insightEl.innerHTML = cards.join(''); insightEl.hidden = false; }+ else { insightEl.hidden = true; }+ }++ async function loadRail() {+ const [topAgent, topMover, topWin] = await Promise.all([loadAgents(), loadMovers(), loadWins()]);+ renderInsight({ topAgent, topMover, topWin });}// ── boot ──+ kpiSkeleton();+ loadStats();+ loadRail();load(true).then(() => {- // Seed seen IDs from initial loadstate.items.forEach((it) => seenIds.add(it.id));- // Start SSEif (typeof EventSource !== 'undefined') startSse();});@@ -595,8 +1067,11 @@if (!sseActive) note.textContent = 'Reconnecting…';}, REFRESH_MS);+ // Keep the rail + stats fresh on a slower cadence.+ setInterval(() => { if (!document.hidden) { loadStats(); loadRail(); } }, 90_000);+document.addEventListener('visibilitychange', () => {- if (!document.hidden && !sseActive && !state.cursor && !state.loading) load(true);+ if (!document.hidden && !sseActive && !state.cursor && !state.loading) { load(true); loadStats(); }});</script></body>diff --git a/pages/claim-wallet.html b/pages/claim-wallet.htmlindex 77008cd35..845b7a25d 100644--- a/pages/claim-wallet.html+++ b/pages/claim-wallet.html@@ -28,7 +28,6 @@<link rel="apple-touch-icon" href="/apple-touch-icon.png" /><link rel="manifest" href="/site.webmanifest" /><link rel="stylesheet" href="/fonts/fonts.css" />- <link rel="stylesheet" href="/style.css" /><link rel="stylesheet" href="/nav.css" /><link rel="stylesheet" href="/footer.css" /><link rel="stylesheet" href="/claim-wallet.css" />diff --git a/pages/pump-visualizer.html b/pages/pump-visualizer.htmlindex 690e36d32..836c02da8 100644--- a/pages/pump-visualizer.html+++ b/pages/pump-visualizer.html@@ -253,6 +253,41 @@color: var(--vz-text);}+ /* ── Render-style toggle (Coins ⟷ Orbs) — visible in every mode ── */+ .vz-style {+ display: flex;+ gap: 0;+ padding: 2px;+ border-radius: 8px;+ background: rgba(0, 0, 0, 0.35);+ border: 1px solid rgba(255, 255, 255, 0.06);+ margin-left: 2px;+ }+ .vz-style button {+ background: transparent;+ border: 1px solid transparent;+ color: var(--vz-muted);+ border-radius: 6px;+ padding: 5px 10px;+ font: inherit;+ cursor: pointer;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ font-size: 10px;+ font-weight: 600;+ display: inline-flex;+ align-items: center;+ gap: 5px;+ }+ .vz-style button .ico { width: 11px; height: 11px; flex-shrink: 0; opacity: 0.85; }+ .vz-style button:hover { color: var(--vz-text); }+ .vz-style button.is-active {+ background: rgba(255, 255, 255, 0.22);+ border-color: var(--vz-border);+ color: var(--vz-text);+ }+ .vz-style button:focus-visible { outline: 2px solid var(--vz-accent); outline-offset: 1px; }+/* ── Cross-links to sibling launchpad surfaces ──── */.vz-links {display: flex;@@ -391,6 +426,26 @@border: 1px solid rgba(255,255,255,0.05);}.vz-detail .description:empty { display: none; }+ /* ── Extra real-data rows (creator track record, from-ATH, liquidity) ── */+ .vz-detail .vz-extra { display: flex; flex-direction: column; gap: 8px; }+ .vz-detail .vz-extra:empty { display: none; }+ .vz-detail .meta-row {+ display: flex; align-items: center; gap: 10px;+ padding: 9px 11px; border-radius: 8px;+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid rgba(255, 255, 255, 0.06);+ font-family: var(--font-mono); font-size: 12px;+ }+ .vz-detail .meta-row .k {+ color: var(--vz-muted); text-transform: uppercase;+ letter-spacing: 0.06em; font-size: 10px;+ }+ .vz-detail .meta-row .v { color: var(--vz-text); margin-left: auto; text-align: right; }+ .vz-detail .meta-row a.v { color: var(--vz-accent); text-decoration: none; }+ .vz-detail .meta-row a.v:hover { text-decoration: underline; }+ .vz-detail .meta-row .v .good { color: var(--vz-green); }+ .vz-detail .meta-row .v .bad { color: var(--vz-red); }+ .vz-detail .meta-row .v .dim { color: var(--vz-muted); }.vz-detail .mint {font-family: var(--font-mono);font-size: 11px; color: var(--vz-muted);@@ -791,6 +846,14 @@<button type="button" data-sort="replies">Replies</button><button type="button" data-sort="recent">New</button></div>+ <div class="vz-style" role="tablist" aria-label="Render style" title="Switch how tokens are drawn (C)">+ <button type="button" data-style="coin" aria-label="Show tokens as coin logos">+ <svg class="ico" viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2"/><circle cx="12" cy="12" r="3.4" fill="currentColor"/></svg>Coins+ </button>+ <button type="button" data-style="orb" aria-label="Show tokens as 3D orbs">+ <svg class="ico" viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2"/><ellipse cx="12" cy="12" rx="9" ry="3.6" stroke="currentColor" stroke-width="1.4" opacity="0.7"/></svg>Orbs+ </button>+ </div><nav class="vz-links" aria-label="Explore the launchpad"><a href="/pump-live">Feed →</a><a href="/launches">All launches →</a>@@ -846,6 +909,7 @@<div class="stat"><div class="label">Replies</div><div class="value" id="vz-detail-replies"></div></div><div class="stat"><div class="label">Age</div><div class="value" id="vz-detail-age"></div></div></div>+ <div class="vz-extra" id="vz-detail-extra"></div><div class="description" id="vz-detail-description"></div><div id="vz-oracle-slot"></div><div class="mint" id="vz-detail-mint" title="Token mint address"></div>@@ -1250,6 +1314,7 @@}function buildTokenMesh(token, position, radius) {+ if (state.renderStyle === 'coin') return buildCoinMesh(token, position, radius);const fallback = fallbackTexture(token.symbol, token.mint);const isLive = !!token.is_currently_live;const glow = liveGlowHex(token);@@ -1297,7 +1362,69 @@});}- return { mesh, ring, isLive, tier, cage };+ return { mesh, ring, isLive, tier, cage, rim: null };+ }++ // Coin-logo render style: each token is a flat, camera-facing medallion so+ // the artwork reads crisply instead of wrapping (and distorting) around a+ // sphere. The logo doubles as the emissive map so the art itself catches the+ // bloom, and a bright tier-/live-colored torus forms the coin's edge. The+ // disc + ring are billboarded toward the camera every frame in animate().+ function buildCoinMesh(token, position, radius) {+ const fallback = fallbackTexture(token.symbol, token.mint);+ const isLive = !!token.is_currently_live;+ const glow = liveGlowHex(token);+ const tier = tierForMcap(token.usd_market_cap);+ const rimColor = isLive ? glow : tier.color;+ const material = new THREE.MeshStandardMaterial({+ map: fallback,+ emissiveMap: fallback,+ emissive: new THREE.Color(0xffffff), // white → logo glows in true colour+ emissiveIntensity: 0.5,+ roughness: 0.5,+ metalness: 0.0,+ side: THREE.DoubleSide,+ });+ const geometry = new THREE.CircleGeometry(radius, 56);+ const mesh = new THREE.Mesh(geometry, material);+ mesh.position.copy(position);+ mesh.quaternion.copy(camera.quaternion); // billboard from the first frame+ mesh.scale.setScalar(0.001);++ // Coin edge — bright unlit torus in the disc's own plane → blooms, and+ // inherits the disc's billboard rotation as a child.+ const rimGeo = new THREE.TorusGeometry(radius * 1.02, Math.max(0.045, radius * 0.07), 14, 56);+ const rimMat = new THREE.MeshBasicMaterial({ color: rimColor, transparent: true, opacity: 0.92 });+ const rim = new THREE.Mesh(rimGeo, rimMat);+ mesh.add(rim);++ // Selection / hover ring — concentric with the coin, billboarded alongside it.+ const ringGeo = new THREE.RingGeometry(radius * 1.2, radius * 1.36, 56);+ const ringMat = new THREE.MeshBasicMaterial({+ color: isLive ? glow : 0x8b5cf6,+ transparent: true,+ opacity: isLive ? 0.45 : 0,+ side: THREE.DoubleSide,+ depthWrite: false,+ });+ const ring = new THREE.Mesh(ringGeo, ringMat);+ ring.position.copy(position);+ ring.quaternion.copy(camera.quaternion);+ ring.scale.setScalar(0.001);++ mesh.userData = { token, ring };++ if (token.image_uri) {+ loadTokenTexture(proxiedImg(token.image_uri, token.mint || token.symbol), null).then((tex) => {+ if (tex) {+ material.map = tex;+ material.emissiveMap = tex;+ material.needsUpdate = true;+ }+ });+ }++ return { mesh, ring, isLive, tier, cage: null, rim };}function placeTokens(tokens) {@@ -1341,7 +1468,7 @@const p = points[i];const position = new THREE.Vector3(p.x * shellR, p.y * shellR, p.z * shellR);- const { mesh, ring, isLive, tier, cage } = buildTokenMesh(token, position, radius);+ const { mesh, ring, isLive, tier, cage, rim } = buildTokenMesh(token, position, radius);tokensGroup.add(mesh);tokensGroup.add(ring);const prevMcap = previousMcaps.get(token.mint);@@ -1355,7 +1482,8 @@baseScale: 1,radius,isLive,- tier, cage,+ tier, cage, rim,+ style: state.renderStyle,spawnAt: spawnStart + i * 22, // ms — stagger revealsspawned: false,hoverScale: 1,@@ -1366,7 +1494,10 @@sonarRings: [], // expanding "broadcasting" rings for live tokensnextSonarAt: 0,deltaPct, // refresh-to-refresh change- flashAt: deltaPct !== 0 ? performance.now() + 50 + i * 30 : 0,+ // The diff-flash recolours the mesh emissive — only meaningful for+ // orbs. Coins convey movement via the persistent up/down colour wash+ // and surge, keeping the logo glowing in true colour.+ flashAt: (state.renderStyle === 'orb' && deltaPct !== 0) ? performance.now() + 50 + i * 30 : 0,};tokenMeshes.push(entry);if (isLive) seedSonarRing(entry);@@ -1951,6 +2082,13 @@// Per-token: spawn animation, hover scale lerp, live pulse, flash, sonar.const evictedThisFrame = [];tokenMeshes.forEach((entry) => {+ // Coin style: billboard the disc (and its selection ring) toward the+ // camera every frame so the logo always faces the viewer head-on. Done+ // before the fade/spawn early-returns so spawning coins never flash edge-on.+ if (entry.style === 'coin') {+ entry.mesh.quaternion.copy(camera.quaternion);+ entry.ring.quaternion.copy(camera.quaternion);+ }// Fade-out (feed eviction): shrink + drop opacity then remove.if (entry.fadeOutAt) {const t = Math.min(1, (time - entry.fadeOutAt) / FEED_FADE_OUT_MS);@@ -1984,7 +2122,8 @@// Market-cap tier motion — self-rotation plus an independently// spinning cage, energy scaling with the tier. Bigger cap = livelier.- if (entry.tier) {+ // Coins stay billboarded (handled above), so spin only applies to orbs.+ if (entry.tier && entry.style !== 'coin') {entry.mesh.rotation.y += entry.tier.spin * 0.01;if (entry.cage) {entry.cage.rotation.y -= entry.tier.spin * 0.014;@@ -2150,8 +2289,18 @@if (webglOK) animate();// ── state, filtering, sorting ────────────────────────────────+ // Render style persists across sessions — a viewer who prefers crisp coin+ // logos over wrapped orbs shouldn't have to re-pick it every visit.+ const RENDER_STYLE_KEY = 'vz-render-style';+ function loadRenderStyle() {+ try {+ const v = localStorage.getItem(RENDER_STYLE_KEY);+ return v === 'orb' || v === 'coin' ? v : 'coin';+ } catch { return 'coin'; }+ }const state = {mode: 'feed', // 'feed' (live mints) | 'migrations' (live graduations) | 'trending' (top-50 snapshot)+ renderStyle: loadRenderStyle(), // 'coin' (camera-facing logo medallion) | 'orb' (textured sphere)all: [], // raw tokens; in stream modes = recent events, newest firstsortMode: 'mcap', // 'mcap' | 'live' | 'replies' | 'recent' — trending onlyquery: '',@@ -2376,14 +2525,15 @@const shellR = SPHERE_RADIUS * (0.80 + Math.random() * 0.22);const position = new THREE.Vector3(p.x * shellR, p.y * shellR, p.z * shellR);const radius = feedRadius(token.usd_market_cap);- const { mesh, ring, tier, cage } = buildTokenMesh(token, position, radius);+ const { mesh, ring, tier, cage, rim } = buildTokenMesh(token, position, radius);tokensGroup.add(mesh);tokensGroup.add(ring);const entry = {mesh, ring, data: token,baseScale: 1, radius,isLive: true,- tier, cage,+ tier, cage, rim,+ style: state.renderStyle,spawnAt: performance.now(),spawned: false,hoverScale: 1,diff --git a/pages/smart-money.html b/pages/smart-money.htmlindex f9e2ec352..4c56081d3 100644--- a/pages/smart-money.html+++ b/pages/smart-money.html@@ -50,9 +50,10 @@.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.05; letter-spacing: -0.025em; margin: 18px 0 12px; font-weight: 800; }.hero h1 span { background: linear-gradient(100deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }.hero p { max-width: 680px; font-size: 16px; color: var(--muted); margin: 0; }- .statline { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; }+ .statline { display: flex; flex-wrap: wrap; gap: 24px 30px; margin-top: 22px; }.statline div span { display: block; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }- .statline div b { font: 800 22px/1 var(--mono); }+ .statline div b { font: 800 22px/1 var(--mono); font-variant-numeric: tabular-nums; }+ .statline div small { font: 600 11px/1 var(--mono); color: var(--muted); margin-left: 4px; }/* tabs */.tabs { display: flex; gap: 8px; margin: 28px 0 18px; border-bottom: 1px solid var(--line); }@@ -66,6 +67,32 @@.view.on { display: block; animation: fade .3s; }@keyframes fade { from { opacity: 0; transform: translateY(4px); } }+ /* controls toolbar */+ .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }+ .controls .spacer { flex: 1 1 auto; }+ .seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); }+ .seg button { padding: 6px 13px; border: none; border-radius: 999px; background: none; color: var(--muted);+ font: 600 12.5px/1 var(--mono); transition: color .15s, background .15s; white-space: nowrap; }+ .seg button:hover { color: var(--ink); }+ .seg button.on { color: var(--ink); background: color-mix(in srgb, var(--cyan) 16%, transparent); }+ .seg button .sc { color: var(--faint); margin-left: 5px; font-size: 11px; }+ .seg button.on .sc { color: color-mix(in srgb, var(--cyan) 80%, var(--ink)); }+ .field { display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; height: 36px; border: 1px solid var(--line);+ border-radius: 999px; background: rgba(255,255,255,0.03); transition: border-color .18s; }+ .field:focus-within { border-color: color-mix(in srgb, var(--cyan) 50%, var(--line)); }+ .field svg { color: var(--faint); flex-shrink: 0; }+ .field input { border: none; background: none; color: var(--ink); font: 500 13px/1 var(--mono); width: 168px; outline: none; }+ .field input::placeholder { color: var(--faint); }+ .field .clr { border: none; background: none; color: var(--faint); padding: 2px; font-size: 15px; line-height: 1; display: none; }+ .field.has-val .clr { display: inline; }+ .field .clr:hover { color: var(--ink); }+ .select { position: relative; }+ .select select { appearance: none; -webkit-appearance: none; height: 36px; padding: 0 32px 0 13px; border: 1px solid var(--line);+ border-radius: 999px; background: rgba(255,255,255,0.03); color: var(--ink); font: 600 12.5px/1 var(--mono); cursor: pointer; transition: border-color .18s; }+ .select select:hover { border-color: color-mix(in srgb, var(--cyan) 40%, var(--line)); }+ .select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--faint);+ border-bottom: 1.6px solid var(--faint); transform: translateY(-65%) rotate(45deg); pointer-events: none; }+/* coin grid */.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }.sm-coin-wrap { position: relative; }@@ -95,6 +122,17 @@.chip { font: 600 11px/1 var(--mono); padding: 5px 9px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); }.chip b { color: var(--ink); }.chip.cat { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 30%, var(--line)); }+ .chip.grad { color: var(--up); border-color: color-mix(in srgb, var(--up) 35%, var(--line)); }+ .chip.age { color: var(--faint); }++ /* smart-money share bar (coin card + drawer) */+ .share { display: flex; flex-direction: column; gap: 5px; }+ .share-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }+ .share-head .sh-l { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }+ .share-head .sh-v { font: 700 12px/1 var(--mono); color: var(--up); font-variant-numeric: tabular-nums; }+ .share-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }+ .share-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--up), var(--cyan)); transition: width .5s var(--ease, cubic-bezier(.22,1,.36,1)); }+.notable-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }.nlabel { font: 600 10px/1 var(--mono); padding: 4px 7px; border-radius: 6px; white-space: nowrap; }.lb-smart_money { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }@@ -103,27 +141,49 @@.lb-neutral, .lb-fresh, .lb-unproven { background: rgba(255,255,255,0.06); color: var(--faint); }/* wallet leaderboard */+ .dist { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; padding: 13px 15px; background: var(--panel);+ border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }+ .dist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }+ .dist-head b { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }+ .dist-head span { font: 600 11px/1 var(--mono); color: var(--muted); }+ .dist-bar { display: flex; height: 9px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,0.05); }+ .dist-seg { height: 100%; transition: width .5s var(--ease, cubic-bezier(.22,1,.36,1)); min-width: 0; }+ .dist-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }+ .dist-key { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); color: var(--muted); background: none; border: none; padding: 2px 0; cursor: pointer; }+ .dist-key:hover { color: var(--ink); }+ .dist-key.muted { opacity: .4; }+ .dist-key i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }+ .dist-key b { color: var(--ink); }+.lwrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }.ltable { width: 100%; border-collapse: collapse; }.ltable thead th { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint);- border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; background: none; }- .ltable th.colhide, .ltable td.lstat { text-align: right; }- .ltable th.lscore-h, .ltable td.lscore { text-align: right; }+ border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; background: none; white-space: nowrap; }+ .ltable th.num, .ltable td.num { text-align: right; }+ .ltable th.sortable { cursor: pointer; transition: color .15s; user-select: none; }+ .ltable th.sortable:hover { color: var(--ink); }+ .ltable th.sortable .arr { opacity: 0; margin-left: 4px; transition: opacity .15s; }+ .ltable th.sortable:hover .arr { opacity: .5; }+ .ltable th.sorted { color: var(--cyan); }+ .ltable th.sorted .arr { opacity: 1; color: var(--cyan); }.lrow { width: 100%; transition: background .16s; cursor: pointer; }- .lrow td { border-bottom: 1px solid var(--line); padding: 12px 16px; vertical-align: middle; }+ .lrow td { border-bottom: 1px solid var(--line); padding: 11px 16px; vertical-align: middle; }.lrow:last-child td { border-bottom: none; }.lrow:hover td { background: rgba(255,255,255,0.04); }.lrow:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }.lrank { font: 700 14px/1 var(--mono); color: var(--faint); width: 38px; }.lrank.top { color: var(--gold); }- .lw { min-width: 0; display: flex; align-items: center; gap: 9px; }+ .lw { min-width: 0; display: flex; flex-direction: column; gap: 6px; }+ .lw-top { display: flex; align-items: center; gap: 9px; }.lw-addr { font: 600 13px/1 var(--mono); overflow: hidden; text-overflow: ellipsis; }- .lscore { font: 800 16px/1 var(--mono); }- .lstat { font: 600 13px/1 var(--mono); color: var(--muted); }+ .recbar { display: flex; height: 4px; width: 110px; max-width: 100%; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--down) 30%, transparent); }+ .recbar i { height: 100%; background: var(--up); display: block; }+ .lscore { font: 800 16px/1 var(--mono); font-variant-numeric: tabular-nums; }+ .lstat { font: 600 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }.lstat b { color: var(--ink); }.lstat .lstat-k { display: none; }- /* stale / reconnecting badge — shown when a background refresh fails while data is on screen */+ /* stale / reconnecting badge */.stale-bar { display: none; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px;padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--gold);@@ -147,19 +207,31 @@.dr-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(480px, 100vw); background: var(--panel-solid);border-left: 1px solid var(--line); box-shadow: var(--shadow); overflow: auto; animation: slidein .3s cubic-bezier(.22,1,.36,1); }@keyframes slidein { from { transform: translateX(30px); opacity: .4; } }- .dr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel-solid); z-index: 1; }- .dr-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }- .dr-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); display: grid; place-items: center; }+ .dr-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel-solid); z-index: 1; }+ .dr-back-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); display: none; place-items: center; flex-shrink: 0; }+ .dr-back-btn.show { display: grid; }+ .dr-back-btn:hover { border-color: var(--cyan); }+ .dr-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }+ .dr-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); display: grid; place-items: center; flex-shrink: 0; }.dr-x:hover { border-color: var(--cyan); }.dr-body { padding: 18px 20px; }.dr-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }.dr-stat { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }.dr-stat span { display: block; font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-bottom: 6px; }- .dr-stat b { font: 800 19px/1 var(--mono); }+ .dr-stat b { font: 800 19px/1 var(--mono); font-variant-numeric: tabular-nums; }.dr-sec { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--faint); margin: 18px 0 10px; }- .nwallet { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }+ .copyrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }+ .copybtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);+ background: rgba(255,255,255,0.03); font: 600 12px/1 var(--mono); color: var(--muted); transition: border-color .18s, color .18s; }+ .copybtn:hover { border-color: var(--cyan); color: var(--ink); }+ .copybtn.done { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, var(--line)); }+ .nwallet { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }.nwallet:last-child { border: none; }+ .nwallet:hover { background: rgba(255,255,255,0.03); }+ .nwallet.static { cursor: default; }+ .nwallet.static:hover { background: none; }.solscan { font: 600 12px/1 var(--mono); color: var(--cyan); }+ .solscan:hover { text-decoration: underline; }/* states */.state { padding: 56px 22px; text-align: center; color: var(--muted); }@@ -177,27 +249,30 @@.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }.foot b { color: var(--muted); }+ @media (max-width: 860px) {+ .ltable th.c-narrow, .ltable td.c-narrow { display: none; }+ }@media (max-width: 620px) {- .ltable th.colhide, .ltable td.colhide { display: none; }.ltable thead th, .lrow td { padding: 12px 12px; }.lrank { width: 30px; }.dr-panel { width: 100vw; }+ .field input { width: 120px; }}- /* ≤400px: stack each wallet into a single readable column (no squeezed numeric cells) */- @media (max-width: 400px) {+ /* ≤460px: stack each wallet into a single readable column */+ @media (max-width: 460px) {.ltable, .ltable thead, .ltable tbody, .ltable tr, .ltable td { display: block; }.ltable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }- .lrow { border-bottom: 1px solid var(--line); padding: 14px 16px; }+ .ltable th.c-narrow, .ltable td.c-narrow { display: block; }+ .lrow { border-bottom: 1px solid var(--line); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; }.lrow:last-child { border-bottom: none; }- .lrow td { border-bottom: none; padding: 3px 0; text-align: left; }+ .lrow td { border-bottom: none; padding: 0; text-align: left; }.lrow:hover td { background: none; }.lrow:hover { background: rgba(255,255,255,0.04); }- .lrank { display: inline-block; width: auto; margin-right: 8px; }- .ltable td.colhide { display: block; }- .lstat { text-align: left; color: var(--muted); }- .lstat .lstat-k { display: inline; color: var(--faint); margin-right: 6px; }- .lscore { text-align: left; }- .ltable td.lscore::before { content: 'Score '; color: var(--faint); font: 600 11px/1 var(--mono); }+ .lrank { grid-row: 1 / span 2; align-self: start; }+ .lrow td.lw-cell { grid-column: 2; }+ .lrow td.lscore { grid-column: 3; grid-row: 1 / span 2; text-align: right; }+ .lstat { grid-column: 2; color: var(--muted); display: inline; margin-right: 14px; }+ .lstat .lstat-k { display: inline; color: var(--faint); margin-right: 5px; }}@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; } }@@ -233,7 +308,8 @@<p>Every pump.fun launch, every wallet, every trade — crossed against which coins actually graduated to Raydium. The result is a real track record for each wallet, and a live read on which fresh coins the <em>proven</em> money is quietly accumulating. The only edge that compounds: follow the wallets that keep being right.</p><div class="statline" id="statline"><div><span>Proven wallets</span><b id="stProven">—</b></div>- <div><span>Wallets ranked</span><b id="stRanked">—</b></div>+ <div><span>Proven win rate</span><b id="stWinRate">—</b></div>+ <div><span>Tracked capital</span><b id="stCapital">—</b></div><div><span>Coins on radar</span><b id="stCoins">—</b></div><div><span>Updated</span><b id="stUpdated">—</b></div></div>@@ -242,6 +318,7 @@<nav class="tabs"><button class="tab on" data-view="feed">Smart money is buying <span class="ct" id="ctFeed"></span></button><button class="tab" data-view="wallets">Top wallets <span class="ct" id="ctWallets"></span></button>+ <button class="tab" data-view="watchlist">Watchlist <span class="ct" id="ctWatch"></span></button></nav><div class="stale-bar" id="staleBar" role="status" aria-live="polite" hidden>@@ -251,26 +328,59 @@</div><section class="view on" id="view-feed">+ <div class="controls">+ <div class="seg" id="feedFilter" role="tablist" aria-label="Filter coins">+ <button data-f="fresh" class="on" role="tab" aria-selected="true">On radar <span class="sc" id="fcFresh"></span></button>+ <button data-f="graduated" role="tab" aria-selected="false">Graduated <span class="sc" id="fcGrad"></span></button>+ <button data-f="all" role="tab" aria-selected="false">All</button>+ </div>+ <div class="spacer"></div>+ <div class="select">+ <select id="feedSort" aria-label="Sort coins">+ <option value="score">Sort: Pedigree</option>+ <option value="share">Sort: Smart-money share</option>+ <option value="volume">Sort: Smart buy volume</option>+ <option value="wallets">Sort: Proven wallets in</option>+ <option value="new">Sort: Freshest</option>+ </select>+ </div>+ </div><div class="grid" id="feedGrid"></div></section><section class="view" id="view-wallets">+ <div class="dist" id="dist" hidden>+ <div class="dist-head"><b>Reputation mix</b><span id="distCount"></span></div>+ <div class="dist-bar" id="distBar"></div>+ <div class="dist-legend" id="distLegend"></div>+ </div>+ <div class="controls">+ <div class="seg" id="walletLabel" role="group" aria-label="Filter wallets by reputation">+ <button data-l="all" class="on">All</button>+ <button data-l="smart_money">Smart money</button>+ <button data-l="sniper">Snipers</button>+ <button data-l="dumper">Dumpers</button>+ <button data-l="rugger">Ruggers</button>+ </div>+ <div class="spacer"></div>+ <div class="field" id="walletSearchField">+ <svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.6"><circle cx="7" cy="7" r="4.5"/><path d="M11 11l3 3" stroke-linecap="round"/></svg>+ <input id="walletSearch" type="search" placeholder="Search or paste address" autocomplete="off" spellcheck="false" aria-label="Search wallets or paste an address" />+ <button class="clr" id="walletSearchClr" type="button" aria-label="Clear search">×</button>+ </div>+ </div><div class="lwrap"><table class="ltable" aria-label="Top pump.fun wallets by reputation score">- <thead>- <tr>- <th scope="col" class="lrank-h">#</th>- <th scope="col">Wallet</th>- <th scope="col" class="colhide">Win rate</th>- <th scope="col" class="colhide">Record</th>- <th scope="col" class="lscore-h">Score</th>- </tr>- </thead>+ <thead><tr id="walletHead"></tr></thead><tbody id="walletList"></tbody></table></div></section>+ <section class="view" id="view-watchlist">+ <div class="grid" id="watchGrid"></div>+ </section>+<p class="foot">Scored from first-party trade observation and on-chain graduations. A wallet's reputation is its track record, not a guarantee — coins are volatile and this is not financial advice. Reputations rebuild as new outcomes land.</p></main>@@ -278,6 +388,9 @@<div class="dr-back" id="drBack"></div><div class="dr-panel" role="dialog" aria-modal="true"><div class="dr-head">+ <button class="dr-back-btn" id="drBackBtn" aria-label="Back">+ <svg viewBox="0 0 20 20" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5l-5 5 5 5"/></svg>+ </button><h3 id="drTitle">Details</h3><button class="dr-x" id="drClose" aria-label="Close"><svg viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"><path d="M5 5l10 10M15 5L5 15"/></svg>@@ -291,29 +404,58 @@const API = '/api/pump/smart-money';const $ = (id) => document.getElementById(id);const fmtSol = (n) => (n == null ? '0' : (n >= 100 ? Math.round(n) : n.toFixed(n >= 10 ? 1 : 2)));+ const fmtSolC = (n) => { n = Number(n) || 0; return n >= 1000 ? (n / 1000).toFixed(n >= 10000 ? 0 : 1) + 'k' : fmtSol(n); };const short = (w) => (w ? w.slice(0, 4) + '…' + w.slice(-4) : '—');const scoreClass = (s) => (s >= 70 ? 's-hi' : s >= 40 ? 's-mid' : 's-lo');const labelText = { smart_money: 'smart money', sniper: 'sniper', dumper: 'dumper', rugger: 'rugger', fresh: 'fresh', neutral: 'neutral', unproven: 'new' };const esc = (s) => String(s ?? '').replace(/[&<>"]/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c]));+ const isAddr = (s) => /^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(String(s || '').trim());+ const shareOf = (c) => (c.total_buy_sol > 0 ? Math.round((c.proven_buy_sol / c.total_buy_sol) * 100) : 0);+ function ago(ts) {+ if (!ts) return null;+ const s = (Date.now() - new Date(ts).getTime()) / 1000;+ if (!Number.isFinite(s) || s < 0) return null;+ if (s < 90) return Math.max(1, Math.round(s)) + 's';+ if (s < 3600) return Math.round(s / 60) + 'm';+ if (s < 86400) return Math.round(s / 3600) + 'h';+ return Math.round(s / 86400) + 'd';+ }const WATCH_KEY = 'ld_watchlist';- function isWatched(mint) {- try { return JSON.parse(localStorage.getItem(WATCH_KEY) || '[]').includes(mint); } catch { return false; }- }+ const readWatch = () => { try { return JSON.parse(localStorage.getItem(WATCH_KEY) || '[]'); } catch { return []; } };+ const isWatched = (mint) => readWatch().includes(mint);function toggleSmWatch(mint) {try {- const list = JSON.parse(localStorage.getItem(WATCH_KEY) || '[]');+ const list = readWatch();const idx = list.indexOf(mint);if (idx >= 0) list.splice(idx, 1); else list.unshift(mint);localStorage.setItem(WATCH_KEY, JSON.stringify(list.slice(0, 200)));+ updateWatchCount();return idx < 0;} catch { return false; }}+ function updateWatchCount() {+ const n = readWatch().length;+ $('ctWatch').textContent = n ? `(${n})` : '';+ }++ // ── view state ──────────────────────────────────────────────────────────+ const state = {+ coins: [], // every scored coin (fresh + graduated) from the feed+ wallets: [], // full leaderboard+ feedFilter: 'fresh', // fresh | graduated | all+ feedSort: 'score',+ walletLabel: 'all',+ walletSort: 'score',+ walletDir: 'desc',+ walletQuery: '',+ watchLoaded: false,+ };let timer = null;- let hasData = false; // true once we've rendered at least one good payload- let staleSince = 0; // timestamp of the first failure in the current stale streak- let staleFails = 0; // consecutive failed refreshes while data is on screen+ let hasData = false;+ let staleSince = 0;+ let staleFails = 0;function showStale() {const bar = $('staleBar');@@ -341,13 +483,16 @@return r.json();}- function coinCard(c) {+ // ── coin card ─────────────────────────────────────────────────────────────+ function coinCard(c, { watchOffer = true } = {}) {const sc = Math.round(c.smart_money_score);const img = c.image_uri? `<img class="coin-img" src="${esc(c.image_uri)}" alt="" loading="lazy" onerror="this.replaceWith(Object.assign(document.createElement('div'),{className:'coin-img',textContent:'${esc((c.symbol || '?').slice(0, 2))}'}))">`: `<div class="coin-img">${esc((c.symbol || '?').slice(0, 2))}</div>`;const notable = (c.notable || []).slice(0, 4).map((n) =>`<span class="nlabel lb-${n.label || 'neutral'}">${short(n.wallet)}</span>`).join('');+ const share = shareOf(c);+ const age = ago(c.first_seen_at);const btn = document.createElement('button');btn.className = 'coin';@@ -358,81 +503,290 @@<div class="coin-id"><div class="coin-sym">${esc(c.symbol || '—')}</div><div class="coin-name">${esc(c.name || c.mint.slice(0, 10))}</div></div><div class="score-badge"><b class="${scoreClass(sc)}">${sc}</b><span>pedigree</span></div></div>+ ${c.total_buy_sol > 0 ? `<div class="share">+ <div class="share-head"><span class="sh-l">Smart-money share of buys</span><span class="sh-v">${share}%</span></div>+ <div class="share-track"><div class="share-fill" style="width:${share}%"></div></div>+ </div>` : ''}<div class="coin-meta"><span class="chip"><b>${c.smart_wallet_count}</b> proven in</span><span class="chip"><b>${fmtSol(c.proven_buy_sol)}</b>◎ smart buy</span>${c.category ? `<span class="chip cat">${esc(c.category)}</span>` : ''}- ${c.graduated ? '<span class="chip" style="color:var(--up)">graduated</span>' : ''}+ ${c.graduated ? '<span class="chip grad">✓ graduated</span>' : (age ? `<span class="chip age">${age} old</span>` : '')}</div>${notable ? `<div class="notable-row">${notable}</div>` : ''}`;btn.addEventListener('click', () => openCoin(c.mint));- const watched = isWatched(c.mint);- const wb = document.createElement('button');- wb.className = `sm-watch${watched ? ' sm-watched' : ''}`;- wb.type = 'button';- wb.textContent = watched ? '★' : '☆';- wb.setAttribute('aria-label', watched ? 'Remove from watchlist' : 'Add to watchlist');- wb.setAttribute('aria-pressed', String(watched));- wb.title = watched ? 'Remove from watchlist' : 'Add to watchlist';- wb.addEventListener('click', (e) => {- e.stopPropagation();- const nowWatched = toggleSmWatch(c.mint);- wb.textContent = nowWatched ? '★' : '☆';- wb.classList.toggle('sm-watched', nowWatched);- wb.setAttribute('aria-pressed', String(nowWatched));- const lbl = nowWatched ? 'Remove from watchlist' : 'Add to watchlist';- wb.setAttribute('aria-label', lbl);- wb.title = lbl;- });-const wrap = document.createElement('div');wrap.className = 'sm-coin-wrap';- wrap.append(btn, wb);+ wrap.appendChild(btn);++ if (watchOffer) {+ const watched = isWatched(c.mint);+ const wb = document.createElement('button');+ wb.className = `sm-watch${watched ? ' sm-watched' : ''}`;+ wb.type = 'button';+ wb.textContent = watched ? '★' : '☆';+ const setLbl = (on) => {+ const l = on ? 'Remove from watchlist' : 'Add to watchlist';+ wb.setAttribute('aria-label', l); wb.title = l; wb.setAttribute('aria-pressed', String(on));+ };+ setLbl(watched);+ wb.addEventListener('click', (e) => {+ e.stopPropagation();+ const on = toggleSmWatch(c.mint);+ wb.textContent = on ? '★' : '☆';+ wb.classList.toggle('sm-watched', on);+ setLbl(on);+ });+ wrap.appendChild(wb);+ }return wrap;}- function renderFeed(coins) {+ // ── feed view ──────────────────────────────────────────────────────────────+ const FEED_SORT = {+ score: (c) => c.smart_money_score,+ share: (c) => shareOf(c),+ volume: (c) => c.proven_buy_sol,+ wallets: (c) => c.smart_wallet_count,+ new: (c) => new Date(c.first_seen_at || 0).getTime(),+ };++ function filteredCoins() {+ const f = state.feedFilter;+ let arr = state.coins.filter((c) => f === 'all' ? true : f === 'graduated' ? c.graduated : !c.graduated);+ const val = FEED_SORT[state.feedSort] || FEED_SORT.score;+ arr = arr.slice().sort((a, b) => (val(b) - val(a)) || (b.smart_money_score - a.smart_money_score));+ return arr;+ }++ function renderFeed() {const grid = $('feedGrid');- $('ctFeed').textContent = coins.length ? `(${coins.length})` : '';+ const fresh = state.coins.filter((c) => !c.graduated).length;+ const grad = state.coins.filter((c) => c.graduated).length;+ $('fcFresh').textContent = fresh ? fresh : '';+ $('fcGrad').textContent = grad ? grad : '';+ $('ctFeed').textContent = fresh ? `(${fresh})` : '';++ const coins = filteredCoins();if (!coins.length) {- grid.innerHTML = `<div class="state" style="grid-column:1/-1"><b>No proven money on a fresh coin yet.</b>- The radar only lights up when wallets with a real track record start buying a new launch. As coins are judged (≈6h after launch) and reputations build, this fills in. Check back shortly.</div>`;+ grid.innerHTML = feedEmpty(grad);+ const sw = $('feedSwitchGrad');+ if (sw) sw.addEventListener('click', () => setFeedFilter('graduated'));return;}grid.innerHTML = '';coins.forEach((c) => grid.appendChild(coinCard(c)));}+ function feedEmpty(gradCount) {+ if (state.feedFilter === 'graduated') {+ return `<div class="state" style="grid-column:1/-1"><b>No graduations in the radar window yet.</b>+ Coins appear here once one the radar scored reaches Raydium. The window covers the last few hours of activity.</div>`;+ }+ if (state.feedFilter === 'fresh') {+ const cta = gradCount+ ? `<button class="btn primary" id="feedSwitchGrad">See ${gradCount} proven graduation${gradCount > 1 ? 's' : ''} →</button>`+ : `<button class="btn primary" id="goWallets">Browse the proven wallets →</button>`;+ return `<div class="state" style="grid-column:1/-1"><b>No proven money on a fresh coin yet.</b>+ The radar lights up when wallets with a real track record start buying a new launch. As coins are judged (≈6h after launch) and reputations build, this fills in.+ <div style="margin-top:16px">${cta}</div></div>`;+ }+ return `<div class="state" style="grid-column:1/-1"><b>The radar is warming up.</b>+ No coins scored in the current window. New launches are judged ≈6h after they appear — check back shortly.</div>`;+ }++ function setFeedFilter(f) {+ state.feedFilter = f;+ $('feedFilter').querySelectorAll('button').forEach((b) => {+ const on = b.dataset.f === f;+ b.classList.toggle('on', on);+ b.setAttribute('aria-selected', String(on));+ });+ renderFeed();+ }++ // ── wallets view ─────────────────────────────────────────────────────────+ const WALLET_COLS = [+ { key: 'rank', label: '#', cls: 'lrank-h' },+ { key: 'wallet', label: 'Wallet', cls: 'lw-h' },+ { key: 'win', label: 'Win rate', sort: 'win', num: true },+ { key: 'early', label: 'Early win', sort: 'early', num: true, cls: 'c-narrow' },+ { key: 'dump', label: 'Dump', sort: 'dump', num: true, cls: 'c-narrow' },+ { key: 'record', label: 'Record', sort: 'record', num: true, cls: 'c-narrow' },+ { key: 'vol', label: 'Volume', sort: 'vol', num: true, cls: 'c-narrow' },+ { key: 'score', label: 'Score', sort: 'score', num: true },+ ];+ const SORT_VAL = {+ win: (w) => w.win_rate,+ early: (w) => w.early_win_rate,+ dump: (w) => w.dump_rate,+ record: (w) => w.wins,+ vol: (w) => w.buy_volume_sol,+ score: (w) => w.smart_money_score,+ };+ const SORT_DEF_DIR = { win: 'desc', early: 'desc', dump: 'asc', record: 'desc', vol: 'desc', score: 'desc' };+ const LABEL_ORDER = ['smart_money', 'sniper', 'neutral', 'fresh', 'dumper', 'rugger'];+ const LABEL_COLOR = { smart_money: 'var(--up)', sniper: 'var(--gold)', neutral: '#94a3b8', fresh: 'rgba(255,255,255,0.3)', dumper: 'var(--down)', rugger: '#b45c5c' };++ function renderWalletHead() {+ $('walletHead').innerHTML = WALLET_COLS.map((c) => {+ if (!c.sort) return `<th scope="col" class="${c.cls || ''}">${c.label}</th>`;+ const sorted = state.walletSort === c.sort;+ const arr = sorted ? (state.walletDir === 'asc' ? '↑' : '↓') : '↕';+ return `<th scope="col" class="sortable num ${c.cls || ''} ${sorted ? 'sorted' : ''}" data-sort="${c.sort}"+ role="button" tabindex="0" aria-sort="${sorted ? (state.walletDir === 'asc' ? 'ascending' : 'descending') : 'none'}"+ title="Sort by ${c.label.toLowerCase()}">${c.label}<span class="arr">${arr}</span></th>`;+ }).join('');+ $('walletHead').querySelectorAll('th.sortable').forEach((th) => {+ const apply = () => setWalletSort(th.dataset.sort);+ th.addEventListener('click', apply);+ th.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); apply(); } });+ });+ }++ function setWalletSort(key) {+ if (state.walletSort === key) state.walletDir = state.walletDir === 'asc' ? 'desc' : 'asc';+ else { state.walletSort = key; state.walletDir = SORT_DEF_DIR[key] || 'desc'; }+ renderWalletHead();+ renderWalletRows();+ }++ function filteredWallets() {+ let arr = state.wallets;+ if (state.walletLabel !== 'all') arr = arr.filter((w) => w.label === state.walletLabel);+ const q = state.walletQuery.trim().toLowerCase();+ if (q) arr = arr.filter((w) => w.wallet.toLowerCase().includes(q));+ const val = SORT_VAL[state.walletSort] || SORT_VAL.score;+ const dir = state.walletDir === 'asc' ? 1 : -1;+ arr = arr.slice().sort((a, b) => (dir * (val(a) - val(b))) || (b.smart_money_score - a.smart_money_score));+ return arr;+ }+function walletRow(w, i) {- return `<tr class="lrow" data-wallet="${esc(w.wallet)}" tabindex="0" role="button" aria-label="Wallet ${short(w.wallet)}, rank ${i + 1}, score ${Math.round(w.smart_money_score)}. Open details.">+ const judged = w.coins_judged || 0;+ const winPct = judged ? Math.round((w.wins / judged) * 100) : 0;+ return `<tr class="lrow" data-wallet="${esc(w.wallet)}" tabindex="0" role="button" aria-label="Wallet ${short(w.wallet)}, score ${Math.round(w.smart_money_score)}, ${Math.round(w.win_rate)}% win rate. Open details."><td class="lrank ${i < 3 ? 'top' : ''}">${i + 1}</td>- <td><div class="lw"><span class="nlabel lb-${w.label}">${labelText[w.label] || w.label}</span><span class="lw-addr">${short(w.wallet)}</span></div></td>- <td class="lstat colhide"><span class="lstat-k">Win rate</span>${Math.round(w.win_rate)}%</td>- <td class="lstat colhide"><span class="lstat-k">Record</span><b>${w.wins}</b>/${w.coins_judged}</td>- <td class="lscore ${scoreClass(w.smart_money_score)}">${Math.round(w.smart_money_score)}</td>+ <td class="lw-cell"><div class="lw">+ <div class="lw-top"><span class="nlabel lb-${w.label}">${labelText[w.label] || w.label}</span><span class="lw-addr">${short(w.wallet)}</span></div>+ ${judged ? `<div class="recbar" title="${w.wins} wins / ${judged} judged"><i style="width:${winPct}%"></i></div>` : ''}+ </div></td>+ <td class="lstat num"><span class="lstat-k">Win</span>${Math.round(w.win_rate)}%</td>+ <td class="lstat num c-narrow"><span class="lstat-k">Early win</span>${w.early_entries ? Math.round(w.early_win_rate) + '%' : '—'}</td>+ <td class="lstat num c-narrow"><span class="lstat-k">Dump</span>${Math.round(w.dump_rate)}%</td>+ <td class="lstat num c-narrow"><span class="lstat-k">Record</span><b>${w.wins}</b>/${judged}</td>+ <td class="lstat num c-narrow"><span class="lstat-k">Volume</span>${fmtSolC(w.buy_volume_sol)}◎</td>+ <td class="lscore num ${scoreClass(w.smart_money_score)}"><span class="lstat-k">Score</span>${Math.round(w.smart_money_score)}</td></tr>`;}- function renderWallets(wallets) {+ function renderWalletRows() {const list = $('walletList');- $('ctWallets').textContent = wallets.length ? `(${wallets.length})` : '';+ const wallets = filteredWallets();if (!wallets.length) {- list.innerHTML = `<tr><td colspan="5"><div class="state"><b>No wallets ranked yet.</b>The graph is still accumulating verdicts. Wallets appear here once they have a few judged coins on record.</div></td></tr>`;+ const msg = state.walletQuery || state.walletLabel !== 'all'+ ? `<b>No wallets match.</b>Try a different filter or clear the search.`+ : `<b>No wallets ranked yet.</b>The graph is still accumulating verdicts. Wallets appear here once they have a few judged coins on record.`;+ list.innerHTML = `<tr><td colspan="${WALLET_COLS.length}"><div class="state">${msg}</div></td></tr>`;return;}list.innerHTML = wallets.map(walletRow).join('');list.querySelectorAll('.lrow').forEach((el) => {const open = () => openWallet(el.dataset.wallet);el.addEventListener('click', open);- el.addEventListener('keydown', (e) => {- if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); open(); }- });+ el.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); open(); } });});}+ function renderDist() {+ const dist = $('dist');+ if (!state.wallets.length) { dist.hidden = true; return; }+ dist.hidden = false;+ const counts = {};+ for (const w of state.wallets) counts[w.label] = (counts[w.label] || 0) + 1;+ const total = state.wallets.length;+ const present = LABEL_ORDER.filter((l) => counts[l]);+ $('distCount').textContent = `${total} ranked`;+ $('distBar').innerHTML = present.map((l) =>+ `<div class="dist-seg" style="width:${(counts[l] / total) * 100}%;background:${LABEL_COLOR[l]}" title="${labelText[l]}: ${counts[l]}"></div>`).join('');+ $('distLegend').innerHTML = present.map((l) => {+ const active = state.walletLabel === 'all' || state.walletLabel === l;+ const filt = ['smart_money', 'sniper', 'dumper', 'rugger'].includes(l);+ return `<button class="dist-key ${active ? '' : 'muted'}" ${filt ? `data-l="${l}"` : 'disabled'} type="button">+ <i style="background:${LABEL_COLOR[l]}"></i>${labelText[l]} <b>${counts[l]}</b></button>`;+ }).join('');+ $('distLegend').querySelectorAll('.dist-key[data-l]').forEach((el) =>+ el.addEventListener('click', () => setWalletLabel(state.walletLabel === el.dataset.l ? 'all' : el.dataset.l)));+ }++ function setWalletLabel(l) {+ state.walletLabel = l;+ $('walletLabel').querySelectorAll('button').forEach((b) => b.classList.toggle('on', b.dataset.l === l));+ renderDist();+ renderWalletRows();+ }++ function renderWallets() {+ $('ctWallets').textContent = state.wallets.length ? `(${state.wallets.length})` : '';+ renderDist();+ renderWalletRows();+ }++ // ── watchlist view ─────────────────────────────────────────────────────────+ async function renderWatchlist() {+ const grid = $('watchGrid');+ const mints = readWatch();+ if (!mints.length) {+ grid.innerHTML = `<div class="state" style="grid-column:1/-1"><b>Your watchlist is empty.</b>+ Tap the ☆ on any coin to track it here. The radar keeps scoring it so you can watch the proven money move in and out.</div>`;+ return;+ }+ grid.innerHTML = Array.from({ length: Math.min(mints.length, 6) }, () => '<div class="skel"></div>').join('');+ const results = await Promise.allSettled(mints.map((m) => getJSON(`${API}?mint=${encodeURIComponent(m)}`)));+ grid.innerHTML = '';+ let any = false;+ results.forEach((r, i) => {+ if (r.status === 'fulfilled' && r.value && r.value.coin) {+ grid.appendChild(coinCard(r.value.coin, { watchOffer: true }));+ any = true;+ } else {+ grid.appendChild(watchUnscored(mints[i]));+ }+ });+ if (!any && !results.some((r) => r.status === 'fulfilled')) {+ // all lookups failed — likely a transient error, not "unscored"+ }+ }++ function watchUnscored(mint) {+ const wrap = document.createElement('div');+ wrap.className = 'sm-coin-wrap';+ const card = document.createElement('div');+ card.className = 'coin';+ card.style.opacity = '.78';+ card.innerHTML = `+ <div class="coin-top">+ <div class="coin-img">?</div>+ <div class="coin-id"><div class="coin-sym">${esc(mint.slice(0, 6))}…</div><div class="coin-name">Not on the radar yet</div></div>+ </div>+ <p style="margin:0;color:var(--muted);font-size:12.5px">The radar only scores coins from their first hours of trading. This one isn't in the current window.</p>+ <a class="btn" href="https://pump.fun/${esc(mint)}" target="_blank" rel="noopener">Open on pump.fun →</a>`;+ const wb = document.createElement('button');+ wb.className = 'sm-watch sm-watched';+ wb.type = 'button';+ wb.textContent = '★';+ wb.title = 'Remove from watchlist';+ wb.setAttribute('aria-label', 'Remove from watchlist');+ wb.addEventListener('click', (e) => { e.stopPropagation(); toggleSmWatch(mint); renderWatchlist(); });+ wrap.append(card, wb);+ return wrap;+ }++ // ── drawer (with coin↔wallet cross-navigation) ──────────────────────────────const TIER_COLOR = { prime: '#c084fc', strong: '#34d399', lean: '#fbbf24', watch: '#94a3b8', avoid: '#f87171' };const PILLAR_COLOR = { pedigree: '#5fe3ff', structure: '#34d399', narrative: '#a07bff', momentum: '#fbbf24' };+ let drawerStack = [];function oraclePillarBar(label, value, color) {const pct = value != null ? Math.max(0, Math.min(100, Math.round(Number(value)))) : 0;@@ -443,15 +797,38 @@</div>`;}- async function openCoin(mint) {+ function copyRow(addr) {+ return `<div class="copyrow">+ <button class="copybtn" data-copy="${esc(addr)}" type="button">+ <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 009.5 2H3.5A1.5 1.5 0 002 3.5v6A1.5 1.5 0 003.5 11H5"/></svg>+ <span>Copy address</span></button>+ <a class="solscan" href="https://solscan.io/account/${esc(addr)}" target="_blank" rel="noopener">Solscan →</a>+ </div>`;+ }++ function wireCopy(root) {+ root.querySelectorAll('.copybtn[data-copy]').forEach((b) => b.addEventListener('click', async () => {+ try {+ await navigator.clipboard.writeText(b.dataset.copy);+ b.classList.add('done');+ const span = b.querySelector('span'); const prev = span.textContent;+ span.textContent = 'Copied';+ setTimeout(() => { b.classList.remove('done'); span.textContent = prev; }, 1400);+ } catch { /* clipboard blocked — Solscan link is the fallback */ }+ }));+ }++ async function openCoin(mint, { push = true } = {}) {+ if (push) drawerStack.push(() => openCoin(mint, { push: false }));openDrawer('Loading…', '<div class="skel" style="height:120px"></div>');try {const { coin, notable } = await getJSON(`${API}?mint=${encodeURIComponent(mint)}`);$('drTitle').textContent = coin.symbol || 'Coin';- const rows = (notable || []).map((n) => `<div class="nwallet">- <div class="lw"><span class="nlabel lb-${n.label}">${labelText[n.label] || n.label}</span><span class="lw-addr">${short(n.wallet)}</span></div>+ const share = shareOf(coin);+ const rows = (notable || []).map((n) => `<div class="nwallet" data-wallet="${esc(n.wallet)}" role="button" tabindex="0">+ <div class="lw-top"><span class="nlabel lb-${n.label}">${labelText[n.label] || n.label}</span><span class="lw-addr">${short(n.wallet)}</span></div><div class="lstat">${fmtSol(n.buy_sol)}◎</div>- <a class="solscan" href="https://solscan.io/account/${esc(n.wallet)}" target="_blank" rel="noopener">${Math.round(n.score)}</a>+ <div class="lscore ${scoreClass(n.score)}" style="font-size:14px">${Math.round(n.score)}</div></div>`).join('') || '<p style="color:var(--muted)">No reputable wallets identified in this coin yet.</p>';$('drBody').innerHTML = `<div class="dr-stats">@@ -460,17 +837,23 @@<div class="dr-stat"><span>Smart buy volume</span><b>${fmtSol(coin.proven_buy_sol)}◎</b></div><div class="dr-stat"><span>Total buy volume</span><b>${fmtSol(coin.total_buy_sol)}◎</b></div></div>+ ${coin.total_buy_sol > 0 ? `<div class="share" style="margin-bottom:4px">+ <div class="share-head"><span class="sh-l">Smart-money share of buys</span><span class="sh-v">${share}%</span></div>+ <div class="share-track"><div class="share-fill" style="width:${share}%"></div></div>+ </div>` : ''}<div class="dr-sec">Notable wallets buying</div>${rows}- <div id="sm-oracle-slot" class="sm-oracle-slot">- <div class="skel" style="height:80px;margin-top:16px"></div>- </div>+ <div id="sm-oracle-slot" class="sm-oracle-slot"><div class="skel" style="height:80px;margin-top:16px"></div></div><a class="btn primary" style="margin-top:18px" href="https://pump.fun/${esc(coin.mint)}" target="_blank" rel="noopener">Open on pump.fun →</a>`;- // Async-enrich with full Oracle conviction+ $('drBody').querySelectorAll('.nwallet[data-wallet]').forEach((el) => {+ const go = () => openWallet(el.dataset.wallet);+ el.addEventListener('click', go);+ el.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); go(); } });+ });+fetch(`/api/oracle/coin?mint=${encodeURIComponent(mint)}&network=mainnet`)- .then((r) => r.ok ? r.json() : null)- .catch(() => null)+ .then((r) => r.ok ? r.json() : null).catch(() => null).then((data) => {const slot = document.getElementById('sm-oracle-slot');if (!slot || !slot.isConnected) return;@@ -497,67 +880,137 @@} catch (e) {$('drBody').innerHTML = `<div class="state"><b>Not scored yet.</b>This coin hasn't been picked up by the radar.</div>`;}+ syncBackBtn();}- async function openWallet(wallet) {+ async function openWallet(wallet, { push = true } = {}) {+ if (push) drawerStack.push(() => openWallet(wallet, { push: false }));openDrawer('Loading…', '<div class="skel" style="height:120px"></div>');try {const { wallet: w, recent_coins } = await getJSON(`${API}?wallet=${encodeURIComponent(wallet)}`);$('drTitle').textContent = short(w.wallet);- const coins = (recent_coins || []).slice(0, 16).map((c) => `<div class="nwallet">- <div class="lw"><span class="lw-addr">${esc(c.symbol || c.mint.slice(0, 8))}</span>${c.graduated ? '<span class="nlabel lb-smart_money">graduated</span>' : ''}</div>+ const coins = (recent_coins || []).slice(0, 18).map((c) => `<div class="nwallet" data-mint="${esc(c.mint)}" role="button" tabindex="0">+ <div class="lw-top"><span class="lw-addr">${esc(c.symbol || c.mint.slice(0, 8))}</span>${c.graduated ? '<span class="nlabel lb-smart_money">graduated</span>' : ''}</div><div class="lstat">${fmtSol(c.buy_sol)}◎</div>- <a class="solscan" href="https://pump.fun/${esc(c.mint)}" target="_blank" rel="noopener">open</a>+ <a class="solscan" href="https://pump.fun/${esc(c.mint)}" target="_blank" rel="noopener" onclick="event.stopPropagation()">pump ↗</a></div>`).join('') || '<p style="color:var(--muted)">No recent coins on record.</p>';+ const last = ago(w.last_active_at);$('drBody').innerHTML = `- <div style="margin-bottom:14px"><span class="nlabel lb-${w.label}">${labelText[w.label] || w.label}</span></div>+ <div style="margin-bottom:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap">+ <span class="nlabel lb-${w.label}">${labelText[w.label] || w.label}</span>+ ${last ? `<span class="chip age">active ${last} ago</span>` : ''}+ </div><div class="dr-stats"><div class="dr-stat"><span>Reputation</span><b class="${scoreClass(w.smart_money_score)}">${Math.round(w.smart_money_score)}</b></div><div class="dr-stat"><span>Win rate</span><b>${Math.round(w.win_rate)}%</b></div>- <div class="dr-stat"><span>Wins / judged</span><b>${w.wins}/${w.coins_judged}</b></div>+ <div class="dr-stat"><span>Early win rate</span><b>${w.early_entries ? Math.round(w.early_win_rate) + '%' : '—'}</b></div><div class="dr-stat"><span>Dump rate</span><b>${Math.round(w.dump_rate)}%</b></div>+ <div class="dr-stat"><span>Wins / judged</span><b>${w.wins}/${w.coins_judged}</b></div>+ <div class="dr-stat"><span>Capital deployed</span><b>${fmtSolC(w.buy_volume_sol)}◎</b></div></div>- <a class="solscan" href="https://solscan.io/account/${esc(w.wallet)}" target="_blank" rel="noopener" style="display:inline-block;margin-bottom:6px">View ${short(w.wallet)} on Solscan →</a>+ ${w.creator_count ? `<div class="dr-stat" style="margin-bottom:18px"><span>As a coin creator</span><b>${w.creator_wins}/${w.creator_count}</b> graduated</div>` : ''}+ ${copyRow(w.wallet)}<div class="dr-sec">Recent coins bought</div>${coins}`;+ wireCopy($('drBody'));+ $('drBody').querySelectorAll('.nwallet[data-mint]').forEach((el) => {+ const go = () => openCoin(el.dataset.mint);+ el.addEventListener('click', go);+ el.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); go(); } });+ });} catch (e) {$('drBody').innerHTML = `<div class="state"><b>No track record yet.</b>We haven't recorded judged trades for this wallet.</div>`;}+ syncBackBtn();}+ function syncBackBtn() {+ $('drBackBtn').classList.toggle('show', drawerStack.length > 1);+ }function openDrawer(title, body) {$('drTitle').textContent = title; $('drBody').innerHTML = body;$('drawer').classList.add('open');+ syncBackBtn();+ }+ function closeDrawer() { $('drawer').classList.remove('open'); drawerStack = []; syncBackBtn(); }+ function drawerBack() {+ drawerStack.pop(); // drop current+ const prev = drawerStack[drawerStack.length - 1];+ if (prev) prev(); else closeDrawer();}- function closeDrawer() { $('drawer').classList.remove('open'); }$('drBack').addEventListener('click', closeDrawer);$('drClose').addEventListener('click', closeDrawer);- document.addEventListener('keydown', (e) => { if (e.key === 'Escape') closeDrawer(); });+ $('drBackBtn').addEventListener('click', drawerBack);+ document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && $('drawer').classList.contains('open')) closeDrawer(); });- document.querySelectorAll('.tab').forEach((t) => t.addEventListener('click', () => {- document.querySelectorAll('.tab').forEach((x) => x.classList.toggle('on', x === t));- document.querySelectorAll('.view').forEach((v) => v.classList.toggle('on', v.id === `view-${t.dataset.view}`));- }));+ // ── tabs ──────────────────────────────────────────────────────────────────+ function switchTab(view) {+ document.querySelectorAll('.tab').forEach((x) => x.classList.toggle('on', x.dataset.view === view));+ document.querySelectorAll('.view').forEach((v) => v.classList.toggle('on', v.id === `view-${view}`));+ if (view === 'watchlist') renderWatchlist();+ }+ document.querySelectorAll('.tab').forEach((t) => t.addEventListener('click', () => switchTab(t.dataset.view)));++ // feed controls+ $('feedFilter').querySelectorAll('button').forEach((b) => b.addEventListener('click', () => setFeedFilter(b.dataset.f)));+ $('feedSort').addEventListener('change', (e) => { state.feedSort = e.target.value; renderFeed(); });+ document.addEventListener('click', (e) => { if (e.target && e.target.id === 'goWallets') switchTab('wallets'); });++ // wallet controls+ $('walletLabel').querySelectorAll('button').forEach((b) => b.addEventListener('click', () => setWalletLabel(b.dataset.l)));+ const searchField = $('walletSearchField');+ const searchInput = $('walletSearch');+ let searchDebounce = null;+ searchInput.addEventListener('input', (e) => {+ const v = e.target.value;+ searchField.classList.toggle('has-val', !!v);+ clearTimeout(searchDebounce);+ searchDebounce = setTimeout(() => { state.walletQuery = v; renderWalletRows(); }, 120);+ });+ searchInput.addEventListener('keydown', (e) => {+ if (e.key === 'Enter') {+ const v = searchInput.value.trim();+ if (isAddr(v)) { openWallet(v); } // paste any address → look it up+ } else if (e.key === 'Escape') { clearSearch(); }+ });+ function clearSearch() {+ searchInput.value = ''; state.walletQuery = '';+ searchField.classList.remove('has-val'); renderWalletRows(); searchInput.focus();+ }+ $('walletSearchClr').addEventListener('click', clearSearch);+ document.addEventListener('keydown', (e) => {+ if (e.key === '/' && !/^(INPUT|TEXTAREA|SELECT)$/.test(document.activeElement?.tagName)) {+ e.preventDefault(); switchTab('wallets'); searchInput.focus();+ }+ });++ // ── data ────────────────────────────────────────────────────────────────+ function computeStats() {+ const proven = state.wallets.filter((w) => w.label === 'smart_money');+ $('stProven').textContent = proven.length;+ const avgWin = proven.length ? Math.round(proven.reduce((s, w) => s + w.win_rate, 0) / proven.length) : 0;+ $('stWinRate').innerHTML = proven.length ? `${avgWin}<small>%</small>` : '—';+ const cap = proven.reduce((s, w) => s + (w.buy_volume_sol || 0), 0);+ $('stCapital').innerHTML = proven.length ? `${fmtSolC(cap)}<small>◎</small>` : '—';+ $('stCoins').textContent = state.coins.filter((c) => !c.graduated).length;+ $('stUpdated').textContent = new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });+ }async function refresh() {try {const [feed, board] = await Promise.all([- getJSON(`${API}?limit=60`),- getJSON(`${API}?leaderboard=1&limit=60`),+ getJSON(`${API}?limit=100&graduated=1`),+ getJSON(`${API}?leaderboard=1&limit=100&min_coins=4`),]);- renderFeed(feed.coins || []);- renderWallets(board.wallets || []);- const proven = (board.wallets || []).filter((w) => w.label === 'smart_money').length;- $('stProven').textContent = proven;- $('stRanked').textContent = (board.wallets || []).length;- $('stCoins').textContent = (feed.coins || []).length;- $('stUpdated').textContent = new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });+ state.coins = feed.coins || [];+ state.wallets = board.wallets || [];+ renderFeed();+ renderWallets();+ computeStats();+ if (document.getElementById('view-watchlist').classList.contains('on')) renderWatchlist();hasData = true;clearStale();} catch (e) {- // If we've never had data, this is a hard cold-start error: blank to the- // recoverable error state. If data is already on screen, keep it and surface- // a visible "reconnecting / may be stale" badge instead of silently going stale.if (!hasData) {$('feedGrid').innerHTML = `<div class="state" style="grid-column:1/-1"><b>Couldn't reach the radar.</b>${esc(e.message)}<button class="btn primary" id="retry">Retry</button></div>`;const r = $('retry'); if (r) r.addEventListener('click', refresh);@@ -574,14 +1027,13 @@const prev = btn.textContent;btn.textContent = 'Reconnecting…';try { await refresh(); }- finally {- btn.removeAttribute('aria-busy');- btn.textContent = prev;- }+ finally { btn.removeAttribute('aria-busy'); btn.textContent = prev; }}$('staleRetry').addEventListener('click', manualRetry);- // initial skeletons+ // boot+ renderWalletHead();+ updateWatchCount();$('feedGrid').innerHTML = Array.from({ length: 6 }, () => '<div class="skel"></div>').join('');refresh();timer = setInterval(refresh, 20000);diff --git a/pages/watchlist.html b/pages/watchlist.htmlindex 60aad659b..a20aa930b 100644--- a/pages/watchlist.html+++ b/pages/watchlist.html@@ -68,12 +68,75 @@<span id="wl-count" class="wl-count" aria-live="polite"></span><div class="wl-hero-ctas"><a class="wl-btn" href="/launches">Browse launches</a>+ <button id="wl-share" class="wl-btn wl-btn-ghost" type="button" hidden title="Copy a shareable link that recreates this watchlist on any device">Share list</button><button id="wl-alerts" class="wl-btn wl-btn-ghost" type="button" aria-pressed="false" title="Notify me when a watched coin reaches a higher Oracle tier">🔔 Alerts</button><button id="wl-clear" class="wl-btn wl-btn-ghost" type="button" hidden>Clear all</button></div></div></section>+ <!-- Portfolio summary — aggregate readout of everything watched -->+ <section id="wl-summary" class="wl-summary" aria-label="Watchlist summary" hidden>+ <div class="wl-sum-stat">+ <span class="wl-sum-label">Combined market cap</span>+ <span id="wl-sum-mcap" class="wl-sum-value">—</span>+ </div>+ <div class="wl-sum-stat">+ <span class="wl-sum-label">24h volume</span>+ <span id="wl-sum-vol" class="wl-sum-value">—</span>+ </div>+ <div class="wl-sum-stat">+ <span class="wl-sum-label">Graduated</span>+ <span id="wl-sum-grad" class="wl-sum-value">—</span>+ </div>+ <div class="wl-sum-stat">+ <span class="wl-sum-label">Avg conviction</span>+ <span id="wl-sum-conv" class="wl-sum-value">—</span>+ </div>+ <div class="wl-sum-stat wl-sum-stat--wide">+ <span class="wl-sum-label">Oracle tiers</span>+ <div id="wl-sum-tiers" class="wl-tierbar" role="img" aria-label="Conviction tier distribution"></div>+ </div>+ </section>++ <!-- Toolbar — search, sort, tier filter, density -->+ <div id="wl-toolbar" class="wl-toolbar" role="region" aria-label="Watchlist controls" hidden>+ <div class="wl-tb-search">+ <svg viewBox="0 0 24 24" aria-hidden="true" class="wl-tb-search-ic"><circle cx="11" cy="11" r="7" fill="none" stroke="currentColor" stroke-width="2"/><line x1="16.5" y1="16.5" x2="21" y2="21" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>+ <input id="wl-search" class="wl-tb-search-in" type="search" placeholder="Filter by symbol, name, or mint…" aria-label="Filter watched coins" spellcheck="false" autocomplete="off" />+ </div>+ <div class="wl-tb-filters" id="wl-filters" role="group" aria-label="Filter by Oracle tier">+ <button class="wl-chip is-active" type="button" data-tier="all" aria-pressed="true">All</button>+ <button class="wl-chip" type="button" data-tier="prime" aria-pressed="false">Prime</button>+ <button class="wl-chip" type="button" data-tier="strong" aria-pressed="false">Strong</button>+ <button class="wl-chip" type="button" data-tier="lean" aria-pressed="false">Lean</button>+ <button class="wl-chip" type="button" data-tier="watch" aria-pressed="false">Watch</button>+ <button class="wl-chip" type="button" data-tier="avoid" aria-pressed="false">Avoid</button>+ </div>+ <div class="wl-tb-end">+ <label class="wl-tb-sort">+ <span class="wl-tb-sort-label">Sort</span>+ <select id="wl-sort" class="wl-tb-select" aria-label="Sort watched coins">+ <option value="added">Recently added</option>+ <option value="conviction">Oracle conviction</option>+ <option value="mcap">Market cap</option>+ <option value="volume">24h volume</option>+ <option value="graduation">Graduation %</option>+ <option value="movers">Conviction movers</option>+ <option value="name">Name (A–Z)</option>+ </select>+ </label>+ <div class="wl-view" role="group" aria-label="Layout density">+ <button id="wl-view-grid" class="wl-view-btn is-active" type="button" aria-pressed="true" title="Grid view" aria-label="Grid view">+ <svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="7" height="7" rx="1.5"/><rect x="14" y="3" width="7" height="7" rx="1.5"/><rect x="3" y="14" width="7" height="7" rx="1.5"/><rect x="14" y="14" width="7" height="7" rx="1.5"/></svg>+ </button>+ <button id="wl-view-list" class="wl-view-btn" type="button" aria-pressed="false" title="List view" aria-label="List view">+ <svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="4" width="18" height="4" rx="1.5"/><rect x="3" y="10" width="18" height="4" rx="1.5"/><rect x="3" y="16" width="18" height="4" rx="1.5"/></svg>+ </button>+ </div>+ </div>+ </div>+<section id="wl-feed" class="wl-grid" aria-label="Watched coins" aria-busy="true"></section><div id="wl-state" class="wl-state"></div></main>diff --git a/public/changelog.json b/public/changelog.jsonindex d40df0c52..0b76dd014 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-26T07:19:38.641Z",+ "generated_at": "2026-06-26T07:22:36.416Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -39,6 +39,17 @@"infra"]},+ {+ "date": "2026-06-26",+ "type": "update",+ "title": "Arm your agent now shows live qualifying coins, proof-of-edge and wallet runway",+ "summary": "The /oracle/arm setup page used to make you configure rules blind. Now it's a live cockpit. A new 'Clearing your bar' panel reads the real conviction stream and shows exactly which coins meet every rule you've set right this second — score, tier, narrative, smart-money count, age and the SOL your agent would commit to each (including conviction-scaled sizing). Tighten or loosen any rule and the list updates instantly, so the abstract config becomes concrete before you ever arm. Under the conviction floor there's now a 30-day proof-of-edge readout — win rate, average peak multiple, 3×+ count and resolved sample size for the exact bar you've chosen, recomputed as you change it. The control bar shows the agent's custodial wallet balance with trades-of-runway left, and the page warns you to fund it before going live if it can't cover your per-trade size. Skeleton loaders replace the old dead dashes while data streams in.",+ "link": "/oracle/arm",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-26","type": "update",@@ -135,6 +146,17 @@"improvement"]},+ {+ "date": "2026-06-26",+ "type": "update",+ "title": "Oracle hero now reads like a live conviction terminal — six clickable stats, watchlist filter and keyboard control",+ "summary": "The Oracle landing page used to show four cryptic numbers and a lot of dashes. The hero is now a row of six live KPI tiles that surface data the engine already tracked but never showed: coins scored in the last 24h (with the all-time total), Prime and Strong counts right now, realized win rate with the resolved sample behind it, the best ATH multiple ever called, and how many agents are armed with open positions. Every tile is clickable — Prime and Strong filter the feed instantly, Win rate jumps to the edge proof, Best ATH opens the win gallery, Agents opens the leaderboard. The conviction feed gained a star Watching filter that folds your existing watchlist straight into the live stream, and each coin card now shows launch age alongside when it was scored. The whole tab bar is finally keyboard-operable (arrow keys, Home/End), every view deep-links and bookmarks via the URL so you can share /oracle#proof, the browser back button steps through tabs, and power users get shortcuts — press / to search, 1 to 9 to jump between tabs.",+ "link": "/oracle",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-26","type": "update",@@ -157,6 +179,16 @@"feature"]},+ {+ "date": "2026-06-26",+ "type": "update",+ "title": "The Agents Index now matches the rest of the site's monochrome look",+ "summary": "The /agents directory was the last page still carrying the old cyan-and-violet accent gradients — bright eyebrow pill, two-tone heading, gradient avatar tiles and a green on-chain badge. It's been re-skinned to the platform's monochrome palette so it reads as one product with every other surface: a clean white-on-near-black heading, neutral controls and cards, white primary button, and subtle grayscale avatar fallbacks and badges. Same real agent data, same search, sort and on-chain filter — just on-brand now.",+ "link": "/agents",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-26","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex a5447c1dd..8e639ce82 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -30,6 +30,14 @@<category>fix</category><description>Two reliability fixes for anything that talks to the three.ws API. Lightweight HEAD requests — the kind uptime monitors, link previews, and agent crawlers send to check an endpoint — used to hang on agent routes until the request timed out; they now return immediately, the same as a GET but without the body. And when our cache store has a rough moment, the platform now trips a fast circuit-breaker and serves from local memory instantly instead of making every request wait on a slow cache write. Live feeds and agent pages stay snappy through a cache blip.</description></item>+ <item>+ <title>Arm your agent now shows live qualifying coins, proof-of-edge and wallet runway</title>+ <link>https://three.ws/oracle/arm</link>+ <guid isPermaLink="false">2026-06-26:Arm your agent now shows live qualifying coins, proof-of-edge and wallet runway</guid>+ <pubDate>Fri, 26 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The /oracle/arm setup page used to make you configure rules blind. Now it's a live cockpit. A new 'Clearing your bar' panel reads the real conviction stream and shows exactly which coins meet every rule you've set right this second — score, tier, narrative, smart-money count, age and the SOL your agent would commit to each (including conviction-scaled sizing). Tighten or loosen any rule and the list updates instantly, so the abstract config becomes concrete before you ever arm. Under the conviction floor there's now a 30-day proof-of-edge readout — win rate, average peak multiple, 3×+ count and resolved sample size for the exact bar you've chosen, recomputed as you change it. The control bar shows the agent's custodial wallet balance with trades-of-runway left, and the page warns you to fund it before going live if it can't cover your per-trade size. Skeleton loaders replace the old dead dashes while data streams in.</description>+ </item><item><title>Avatar Studio avatars come alive — pick from 16 motions</title><link>https://three.ws/avatar-studio</link>@@ -102,6 +110,14 @@<category>fix</category><description>The terminal's Live feed streams brand-new pump.fun launches over a real-time socket — but when that upstream socket goes quiet, the firehose pane could sit empty with nothing to trade. The feed now has a live safety net: it also reads pump.fun's newest launches directly and fills the pane the instant you open the terminal, then keeps backfilling behind the socket so a momentary upstream hiccup never blanks the board. Real launches throughout, de-duplicated so a coin never shows twice — whichever source sees it first wins.</description></item>+ <item>+ <title>Oracle hero now reads like a live conviction terminal — six clickable stats, watchlist filter and keyboard control</title>+ <link>https://three.ws/oracle</link>+ <guid isPermaLink="false">2026-06-26:Oracle hero now reads like a live conviction terminal — six clickable stats, watchlist filter and keyboard control</guid>+ <pubDate>Fri, 26 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The Oracle landing page used to show four cryptic numbers and a lot of dashes. The hero is now a row of six live KPI tiles that surface data the engine already tracked but never showed: coins scored in the last 24h (with the all-time total), Prime and Strong counts right now, realized win rate with the resolved sample behind it, the best ATH multiple ever called, and how many agents are armed with open positions. Every tile is clickable — Prime and Strong filter the feed instantly, Win rate jumps to the edge proof, Best ATH opens the win gallery, Agents opens the leaderboard. The conviction feed gained a star Watching filter that folds your existing watchlist straight into the live stream, and each coin card now shows launch age alongside when it was scored. The whole tab bar is finally keyboard-operable (arrow keys, Home/End), every view deep-links and bookmarks via the URL so you can share /oracle#proof, the browser back button steps through tabs, and power users get shortcuts — press / to search, 1 to 9 to jump between tabs.</description>+ </item><item><title>Steadier live feeds under load</title><link>https://three.ws/changelog</link>@@ -118,6 +134,14 @@<category>fix</category><description>The /launches feed had stopped loading and showed a 'Could not load the feed' error because its data endpoint wasn't being routed. It's fixed: every coin launched by a three.ws agent streams in again, live. While we were in there we added two real-time data points to the header — the combined market cap of every loaded launch and how many have graduated off the bonding curve — both computed from the same live on-chain numbers the cards already show, updating as new launches arrive.</description></item>+ <item>+ <title>The Agents Index now matches the rest of the site's monochrome look</title>+ <link>https://three.ws/agents</link>+ <guid isPermaLink="false">2026-06-26:The Agents Index now matches the rest of the site's monochrome look</guid>+ <pubDate>Fri, 26 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The /agents directory was the last page still carrying the old cyan-and-violet accent gradients — bright eyebrow pill, two-tone heading, gradient avatar tiles and a green on-chain badge. It's been re-skinned to the platform's monochrome palette so it reads as one product with every other surface: a clean white-on-near-black heading, neutral controls and cards, white primary button, and subtle grayscale avatar fallbacks and badges. Same real agent data, same search, sort and on-chain filter — just on-brand now.</description>+ </item><item><title>The gallery now seeds itself with studio-quality, fully-rigged Avaturn avatars</title><link>https://three.ws/changelog</link>diff --git a/public/claim-wallet.css b/public/claim-wallet.cssindex 5d5396c7c..98b6a0312 100644--- a/public/claim-wallet.css+++ b/public/claim-wallet.css@@ -8,6 +8,16 @@* --wallet-accent surface palette. No hardcoded colours.******************************************************************************/+body {+ margin: 0;+ background: var(--bg-0);+ color: var(--ink);+ font-family: var(--font-body);+ -webkit-font-smoothing: antialiased;+ text-rendering: optimizeLegibility;+ min-height: 100vh;+}+.cw {--cw-accent: var(--wallet-accent, #c4b5fd);--cw-accent-strong: var(--wallet-accent-strong, #a78bfa);diff --git a/public/features.json b/public/features.jsonindex 038f8126d..50342384b 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-26T07:19:38.620Z",+ "generated_at": "2026-06-26T07:22:36.374Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/arm.js b/src/arm.jsindex 7e80cb005..ea30840be 100644--- a/src/arm.js+++ b/src/arm.js@@ -175,13 +175,187 @@ function renderScaleSub() {}function renderRisk() {+ const el = $('#riskSummary');const size = Number($('#fSize').value) || 0;const daily = Number($('#fDaily').value) || 0;const open = Number($('#fOpen').value) || 0;- const trades = size > 0 ? Math.floor(daily / size) : 0;- $('#riskSummary').textContent = size > 0 && daily > 0- ? `≈ ${trades} ${trades === 1 ? 'buy' : 'buys'}/day max · up to ${fmtSol(daily)} deployed · ${open} position${open === 1 ? '' : 's'} open at once`- : 'Set a per-trade size and daily cap to see your exposure.';+ if (!(size > 0 && daily > 0)) {+ el.textContent = 'Set a per-trade size and daily cap to see your exposure.';+ return;+ }+ const trades = Math.floor(daily / size);+ let txt = `≈ ${trades} ${trades === 1 ? 'buy' : 'buys'}/day max · up to ${fmtSol(daily)} deployed · ${open} position${open === 1 ? '' : 's'} open at once`;+ const w = state.wallet;+ if (w && w.sol != null) {+ if (w.sol < size) {+ txt += ` · <b style="color:var(--amber)">wallet holds ${fmtSol(w.sol)} — fund it before going live</b>`;+ } else if (w.sol < daily) {+ txt += ` · wallet covers ≈ ${Math.floor(w.sol / size)} ${Math.floor(w.sol / size) === 1 ? 'trade' : 'trades'} before it's dry`;+ }+ }+ el.innerHTML = txt;+}++// ── agent wallet balance + runway ───────────────────────────────────────────────+async function loadWallet(agentId) {+ const pill = $('#walletPill');+ const bal = $('#walletBal');+ pill.hidden = false;+ pill.classList.remove('low');+ $('#walletFund').href = `/agent/${encodeURIComponent(agentId)}/wallet#deposit`;+ $('#walletRun').textContent = '';+ bal.classList.add('sk'); bal.textContent = '0.00◎';+ state.wallet = null;++ const { ok, data } = await api(`/api/agents/${encodeURIComponent(agentId)}/wallet`);+ bal.classList.remove('sk');+ if (ok && data) {+ const sol = data.solana_balance == null ? null : Number(data.solana_balance);+ state.wallet = { sol, address: data.solana_address || null };+ bal.textContent = sol == null ? '—' : fmtSol(sol);+ } else {+ bal.textContent = '—';+ }+ renderWalletRunway();+ renderRisk();+}++function renderWalletRunway() {+ const run = $('#walletRun');+ const pill = $('#walletPill');+ pill.classList.remove('low');+ const w = state.wallet;+ if (!w || w.sol == null) { run.textContent = ''; return; }+ const size = Number($('#fSize').value) || 0.05;+ const trades = size > 0 ? Math.floor(w.sol / size) : 0;+ run.textContent = `· ${trades} ${trades === 1 ? 'trade' : 'trades'} left`;+ if (w.sol < size) pill.classList.add('low');+}++// ── proof of edge: 30-day backtest for the chosen bar ───────────────────────────+async function loadEdge() {+ const { ok, data } = await api(`/api/oracle/backtest?period=30d&network=${NETWORK}`);+ state.edge = ok && data && Array.isArray(data.by_tier) ? data : null;+ renderEdge();+}++function includedTiers(minScore) {+ if (minScore >= 86) return ['prime'];+ if (minScore >= 72) return ['prime', 'strong'];+ return ['prime', 'strong', 'lean'];+}++function renderEdge() {+ const el = $('#edgeReadout');+ const e = state.edge;+ if (!e) {+ el.innerHTML = '<div class="e-note">Edge stats are warming up — historical win rates for this bar will show here.</div>';+ return;+ }+ const inc = new Set(includedTiers(state.minScore));+ const agg = { wins: 0, losses: 0, threeX: 0, athSum: 0, athN: 0 };+ for (const t of e.by_tier) {+ if (!inc.has(t.tier)) continue;+ agg.wins += t.wins || 0;+ agg.losses += t.losses || 0;+ agg.threeX += t.three_x || 0;+ if (t.avg_ath) { agg.athSum += t.avg_ath * (t.total || 0); agg.athN += t.total || 0; }+ }+ const resolved = agg.wins + agg.losses;+ const label = state.minScore >= 86 ? 'Prime' : state.minScore >= 72 ? 'Strong+' : 'Lean+';+ if (!resolved) {+ el.innerHTML = `<div class="e-note">Not enough resolved coins at the <b>${label}</b> bar in the last 30 days to show a win rate yet. Lower the floor for a larger sample.</div>`;+ return;+ }+ const wr = Math.round((agg.wins / resolved) * 100);+ const avgAth = agg.athN ? agg.athSum / agg.athN : null;+ el.innerHTML = `+ <div class="e-stat"><b>${wr}%</b><span>win rate</span></div>+ ${avgAth ? `<div class="e-stat"><b>${avgAth.toFixed(1)}×</b><span>avg peak</span></div>` : ''}+ <div class="e-stat"><b>${agg.threeX}</b><span>hit 3×+</span></div>+ <div class="e-stat"><b>${resolved}</b><span>resolved</span></div>+ <div class="e-note">Last 30 days at your <b>${label}</b> bar. A win = graduated or ≥2× from the score. Past results aren't a promise.</div>`;+}++// ── live "clearing your bar" preview ────────────────────────────────────────────+async function startFeedLoop() {+ await loadFeed();+ feedTimer = setInterval(loadFeed, 20000);+ document.addEventListener('visibilitychange', () => {+ if (document.hidden) { clearInterval(feedTimer); feedTimer = null; }+ else if (!feedTimer) { loadFeed(); feedTimer = setInterval(loadFeed, 20000); }+ });+}++async function loadFeed() {+ const { ok, data } = await api(`/api/oracle/feed?network=${NETWORK}&limit=80`);+ if (ok && data && Array.isArray(data.items)) {+ state.feed = data.items;+ state.feedAt = Date.now();+ }+ renderQualifying();+}++function currentRules() {+ return {+ minScore: state.minScore,+ cats: new Set($$('#catChips .cchip.on').map((b) => b.dataset.cat)),+ requireSmart: isOn('#smartToggle'),+ size: Number($('#fSize').value) || 0.05,+ scaling: isOn('#scaleToggle'),+ };+}++function scaledSize(base, score) {+ const floor = state.minScore;+ if (score <= floor) return base;+ const t = Math.min(1, (score - floor) / (100 - floor || 1));+ return base * (1 + 0.5 * t);+}++function renderQualifying() {+ const body = $('#qualBody');+ const countEl = $('#qualCount');+ const metaEl = $('#qualMeta');+ if (!Array.isArray(state.feed)) return;+ const r = currentRules();+ const matches = state.feed+ .filter((it) =>+ Number(it.score) >= r.minScore &&+ (r.cats.size === 0 || r.cats.has(it.category)) &&+ (!r.requireSmart || (it.smart_wallet_count || 0) >= 1))+ .sort((a, b) => b.score - a.score);++ countEl.textContent = matches.length+ ? `${matches.length} clearing your bar`+ : 'Nothing clears your bar right now';+ metaEl.textContent = state.feed.length ? `live · ${state.feed.length} scored / 12h` : '';++ if (!matches.length) {+ body.innerHTML = `<div class="qual-empty">No live coin meets every rule this moment — normal for a tight bar. Loosen the conviction floor or widen narratives to see more flow, or keep it strict and let your agent wait for the real ones.</div>`;+ return;+ }+ body.innerHTML = matches.slice(0, 8).map((it) => qualRow(it, r)).join('');+}++function qualRow(it, r) {+ const sym = esc(it.symbol || (it.mint || '').slice(0, 6));+ const img = it.image_uri+ ? `<img class="coinimg" src="${esc(it.image_uri)}" alt="" loading="lazy" onerror="this.remove()">`+ : '';+ const smart = (it.smart_wallet_count || 0) >= 1+ ? `<span class="q-smart">${it.smart_wallet_count} smart in</span>`+ : 'no smart money';+ const cat = it.category ? esc(it.category) : '—';+ const size = r.scaling ? scaledSize(r.size, Number(it.score)) : r.size;+ return `<div class="qrow">+ <div class="q-main">+ <div class="q-sym">${img}<a href="https://pump.fun/coin/${esc(it.mint)}" target="_blank" rel="noopener">${sym}</a><span class="tierpill ${tierPill(it.tier)}">${esc(it.tier || '—')}</span></div>+ <div class="q-sub"><span>${cat}</span><span>${smart}</span><span>${ago(it.scored_at)} ago</span></div>+ </div>+ <div class="q-score ${Number(it.score) >= 86 ? 'hi' : ''}">${esc(it.score)}</div>+ <div class="q-size"><span>would buy</span>${fmtSol(size)}</div>+ </div>`;}// ── load current config ───────────────────────────────────────────────────────diff --git a/src/play/arena.js b/src/play/arena.jsindex d6a68134a..216d3d7aa 100644--- a/src/play/arena.js+++ b/src/play/arena.js@@ -66,7 +66,7 @@ function normalizeRow(r, kind) {rank: r.rank,pnl_sol: r.realized_pnl_sol,pnl_usd: r.realized_pnl_usd,- win_pct: r.win_rate != null ? Number(r.win_rate) : null, // already 0–100+ win_pct: r.win_rate != null ? Number(r.win_rate) * 100 : null, // API sends a 0–1 fractiontrades: r.trades ?? null,open: 0,image: '',diff --git a/src/pump/coin-status-card.js b/src/pump/coin-status-card.jsindex 652e52285..a2be110da 100644--- a/src/pump/coin-status-card.js+++ b/src/pump/coin-status-card.js@@ -440,6 +440,11 @@ function injectStyles() {* @param {boolean} [opts.showBuy] — show "Buy" link (default: false)* @param {HTMLElement} [opts.placeholder] — node shown behind the avatar in the* 'card' variant until the real logo loads (e.g. an identicon)+ * @param {boolean} [opts.oracle] — fetch + render the per-card Oracle+ * conviction badge ('card' variant only, default true).+ * Hosts that already batch-fetch conviction (e.g. the+ * watchlist) pass false to skip the redundant per-coin+ * /api/oracle/coin round trip.* @returns {{ destroy: () => void }} — cleanup handle*/export function mountCoinStatus(container, mint, opts = {}) {@@ -447,6 +452,7 @@ export function mountCoinStatus(container, mint, opts = {}) {const refreshMs = opts.refreshMs == null ? DEFAULT_REFRESH_MS : Number(opts.refreshMs);const showBuy = !!opts.showBuy;const placeholder = opts.placeholder || null;+ const wantOracle = opts.oracle !== false;// Optional observer fired with the normalized coin after every successful// load (initial + each refresh). Lets a host surface aggregate the same live// market data it's already paying to fetch — e.g. the launches feed's@@ -477,7 +483,7 @@ export function mountCoinStatus(container, mint, opts = {}) {try {// Fire coin + oracle fetches in parallel; oracle is best-effort (card only).- const oraclePromise = variant === 'card'+ const oraclePromise = variant === 'card' && wantOracle? fetch(`${ORACLE_ENDPOINT}?mint=${encodeURIComponent(mint)}`, { signal: sig }).then((r) => (r.ok ? r.json() : null)).catch(() => null)diff --git a/src/radar.css b/src/radar.cssindex 54f2abd89..1c413df6c 100644--- a/src/radar.css+++ b/src/radar.css@@ -49,6 +49,50 @@line-height: var(--leading-normal); max-width: 64ch; margin: 0;}+/* ── market pulse ─────────────────────────────────────────────────────────── */+.radar-pulse {+ display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-sm);+ margin-bottom: var(--space-md);+}+.rp-cell {+ display: flex; flex-direction: column; gap: 2px;+ background: var(--surface-glass, var(--surface-1));+ border: 1px solid var(--stroke); border-radius: var(--radius-lg);+ padding: var(--space-sm) var(--space-md); min-width: 0;+ transition: border-color var(--duration-fast) var(--ease-standard);+}+.rp-cell--sk { gap: var(--space-xs); }+.rp-cell--sk .sk-bar { height: 10px; }+.rp-label { font-size: var(--text-2xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.rp-value { font-family: var(--font-mono); font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--ink-bright); font-variant-numeric: tabular-nums; line-height: 1.1; }+.rp-sub { font-size: var(--text-2xs); color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.rp-cell--danger { border-color: rgba(248,113,113,0.32); }+.rp-cell--danger .rp-value { color: var(--danger); }+.rp-cell--warn .rp-value { color: var(--warn); }+.rp-cell--ok .rp-value { color: var(--success); }+.rp-cell--smart { border-color: rgba(95,227,255,0.3); }+.rp-cell--smart .rp-value { color: #5fe3ff; }++.rp-cell--health { gap: var(--space-2xs); }+.rp-dist { display: flex; height: 8px; border-radius: var(--radius-pill); overflow: hidden; background: var(--surface-3); gap: 1px; }+.rp-dist-seg { min-width: 2px; transition: flex var(--duration-slow) var(--ease-emphasized); }+.rp-dist-seg--healthy { background: var(--success); }+.rp-dist-seg--mixed { background: var(--warn); }+.rp-dist-seg--risky { background: var(--danger); }+.rp-dist-seg--empty { flex: 1; background: var(--surface-3); }+.rp-dist-legend { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: 2px; }+.rp-leg { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-2xs); color: var(--ink-dim); font-variant-numeric: tabular-nums; }+.rp-leg-dot { width: 7px; height: 7px; border-radius: 2px; }+.rp-leg--healthy .rp-leg-dot { background: var(--success); }+.rp-leg--mixed .rp-leg-dot { background: var(--warn); }+.rp-leg--risky .rp-leg-dot { background: var(--danger); }+.rp-outcomes { display: flex; gap: var(--space-md); align-items: baseline; }+.rp-out { display: inline-flex; align-items: baseline; gap: 3px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }+.rp-out-glyph { font-size: var(--text-md); }+.rp-out-num { font-size: var(--text-xl); font-weight: var(--weight-bold); }+.rp-out--grad { color: var(--success); }+.rp-out--rug { color: var(--danger); }+/* ── toolbar ──────────────────────────────────────────────────────────────── */.radar-toolbar {position: sticky; top: var(--header-h); z-index: 5;@@ -79,6 +123,51 @@.radar-controls {display: flex; gap: var(--space-md); align-items: center; flex-wrap: wrap;}++/* search */+.radar-search {+ display: inline-flex; align-items: center; gap: var(--space-xs);+ background: var(--surface-1); border: 1px solid var(--stroke);+ border-radius: var(--radius-md); padding: var(--space-2xs) var(--space-sm);+ min-width: 220px; flex: 1 1 220px; max-width: 320px;+ transition: border-color var(--duration-fast) var(--ease-standard);+}+.radar-search:focus-within { border-color: var(--accent); }+.radar-search-icon { color: var(--ink-faint); display: flex; flex-shrink: 0; }+.radar-search-input {+ flex: 1; min-width: 0; background: none; border: none; outline: none;+ color: var(--ink); font-family: var(--font-body); font-size: var(--text-sm);+}+.radar-search-input::placeholder { color: var(--ink-faint); }+.radar-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }++/* sort select */+.radar-select {+ font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink);+ background: var(--surface-1); border: 1px solid var(--stroke);+ border-radius: var(--radius-md); padding: var(--space-2xs) var(--space-sm);+ cursor: pointer; transition: border-color var(--duration-fast) var(--ease-standard);+}+.radar-select:hover { border-color: var(--stroke-strong); }+.radar-select:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }++/* quick-filter pills (smart money / news) */+.radar-filter-pill {+ font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-medium);+ color: var(--ink-dim); background: var(--surface-1);+ border: 1px solid var(--stroke); border-radius: var(--radius-pill);+ padding: var(--space-2xs) var(--space-sm); cursor: pointer; white-space: nowrap;+ transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);+}+.radar-filter-pill:hover { color: var(--ink); border-color: var(--stroke-strong); }+.radar-filter-pill.is-active { color: #5fe3ff; background: rgba(95,227,255,0.12); border-color: rgba(95,227,255,0.4); }+.radar-filter-pill:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }++/* grid/list view toggle */+.radar-view { background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: 2px; gap: 2px; }+.radar-view-btn { display: inline-flex; align-items: center; padding: var(--space-2xs) var(--space-xs); color: var(--ink-faint); }+.radar-view-btn.is-active { color: var(--ink-bright); background: var(--surface-3); }+.radar-view-btn:hover { color: var(--ink); }.radar-control { display: flex; align-items: center; gap: var(--space-sm); }.radar-control-label {display: flex; align-items: baseline; gap: var(--space-2xs);@@ -244,12 +333,29 @@.rc-flag--clean { color: var(--success); background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.24); }.rc-stats {- display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xs);+ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xs) var(--space-sm);padding-top: var(--space-xs); border-top: 1px solid var(--stroke);}-.rc-stat { display: flex; flex-direction: column; gap: 1px; }-.rc-stat-label { font-size: var(--text-2xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.03em; }-.rc-stat-value { font-family: var(--font-mono); font-size: var(--text-md); color: var(--ink); font-variant-numeric: tabular-nums; }+.rc-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }+.rc-stat-label { font-size: var(--text-2xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }+.rc-stat-value { font-family: var(--font-mono); font-size: var(--text-md); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.rc-pos { color: var(--success); }+.rc-neg { color: var(--danger); }++/* card signal badges */+.rc-badges { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }+.rc-badge {+ display: inline-flex; align-items: center; gap: 4px;+ font-size: var(--text-2xs); font-weight: var(--weight-semibold);+ padding: 2px var(--space-xs); border-radius: var(--radius-sm);+ border: 1px solid transparent; white-space: nowrap;+}+.rc-badge-glyph { font-size: 0.9em; line-height: 1; }+.rc-badge--smart { color: #5fe3ff; background: rgba(95,227,255,0.12); border-color: rgba(95,227,255,0.32); }+.rc-badge--news { color: #fbbf24; background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.3); }+.rc-badge--cluster { color: var(--ink-dim); background: var(--surface-2); border-color: var(--stroke-strong); }+.rc-badge--grad { color: var(--success); background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.3); }+.rc-badge--rug { color: var(--danger); background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); }.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }.rc-link {@@ -429,7 +535,74 @@.rd-oracle-pillar-val { font: 600 11px/1 var(--font-mono); text-align: right; color: var(--ink-dim); }.rd-oracle-link { display: inline-block; align-self: flex-start; }+/* ── list view ────────────────────────────────────────────────────────────── */+.radar-list { display: flex; flex-direction: column; }+.rl-header, .radar-list-row {+ display: grid;+ grid-template-columns: minmax(0, 2.4fr) 64px minmax(120px, 1.4fr) 64px minmax(80px, 1fr) minmax(0, 1.4fr) 40px;+ gap: var(--space-sm); align-items: center;+}+.rl-header {+ padding: var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--stroke);+}+.rl-h { font-size: var(--text-2xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }+.rl-h.rd-num, .rl-header .rl-h:nth-child(2), .rl-header .rl-h:nth-child(4), .rl-header .rl-h:nth-child(5) { text-align: right; }+.radar-list-row {+ padding: var(--space-sm); border-bottom: 1px solid var(--stroke);+ cursor: pointer; outline: none;+ transition: background var(--duration-fast) var(--ease-standard);+}+.radar-list-row:hover { background: var(--surface-1); }+.radar-list-row:focus-visible { background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--accent); }+.radar-list-row.is-enter { opacity: 0; transform: translateY(8px); transition: none; }+.rl-coin { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }+.rl-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--stroke); }+.rl-id { min-width: 0; }+.rl-name { font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--ink-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.rl-sub { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-2xs); color: var(--ink-faint); }+.rl-ticker { font-family: var(--font-mono); color: var(--ink-dim); }+.rl-quality { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2xs); }+.rl-q-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }+.rl-q-num { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: var(--text-md); font-variant-numeric: tabular-nums; }+.rl-ob { display: flex; flex-direction: column; gap: 3px; min-width: 0; }+.rl-ob .rc-ob-bar { height: 5px; }+.rl-ob-txt { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--ink-faint); font-variant-numeric: tabular-nums; }+.rl-ob-txt .rc-ob-tag--organic { color: var(--success); }+.rl-ob-txt .rc-ob-tag--bundle { color: var(--danger); }+.rl-buyers, .rl-net { font-size: var(--text-md); color: var(--ink); }+.rl-signals { display: flex; flex-wrap: wrap; gap: var(--space-2xs); justify-content: flex-start; }+.rl-act { display: flex; justify-content: flex-end; }+.rl-act .rc-watch { font-size: var(--text-sm); padding: 2px var(--space-2xs); }++/* ── drawer: smart money + news ───────────────────────────────────────────── */+.rd-sm-summary { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-xs); }+.rd-sm-chip {+ font-size: var(--text-2xs); font-weight: var(--weight-semibold); color: #5fe3ff;+ background: rgba(95,227,255,0.12); border: 1px solid rgba(95,227,255,0.32);+ border-radius: var(--radius-pill); padding: 2px var(--space-sm);+}+.rd-sm-list { display: flex; flex-direction: column; gap: var(--space-2xs); margin-top: var(--space-sm); }+.rd-sm-item {+ display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);+ padding: var(--space-xs) var(--space-sm); background: var(--surface-1);+ border: 1px solid var(--stroke); border-radius: var(--radius-md);+}+.rd-sm-left { display: flex; align-items: baseline; gap: var(--space-xs); min-width: 0; flex-wrap: wrap; }+.rd-sm-stat { font-size: var(--text-2xs); color: var(--ink-dim); font-variant-numeric: tabular-nums; }+.rd-sm-score { font-family: var(--font-mono); font-weight: var(--weight-bold); font-size: var(--text-md); color: #5fe3ff; font-variant-numeric: tabular-nums; flex-shrink: 0; }++.rd-news-row { display: flex; gap: var(--space-sm); align-items: flex-start; }+.rd-news-glyph { color: var(--warn); font-size: var(--text-lg); line-height: 1.2; flex-shrink: 0; }+.rd-news-headline { font-size: var(--text-base); color: var(--ink); line-height: var(--leading-normal); margin: 0 0 var(--space-2xs); }+.rd-news-link { font-size: var(--text-sm); color: var(--warn); text-decoration: none; }+.rd-news-link:hover { text-decoration: underline; }+.rd-news-link:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; border-radius: var(--radius-sm); }+/* ── responsive ───────────────────────────────────────────────────────────── */+@media (max-width: 1024px) {+ .radar-pulse { grid-template-columns: repeat(3, 1fr); }+ .rp-cell--health { grid-column: span 2; }+}@media (max-width: 720px) {.radar-main { padding: var(--space-md) var(--space-sm) var(--space-2xl); }.radar-controls { gap: var(--space-sm); }diff --git a/src/radar.js b/src/radar.jsindex 93d498056..781cb56fd 100644--- a/src/radar.js+++ b/src/radar.js@@ -584,6 +584,7 @@ function chip(label, active, onClick) {function onFilterChange() {writeUrl();fetchFeed();+ fetchPulse();}function updateUpdatedLabel() {@@ -612,6 +613,125 @@ function renderGrid(coins) {return grid;}+// Compact list view — a dense row per coin for fast scanning, same data spine+// as the cards. Click / Enter opens the same detail drawer.+function renderList(coins) {+ const list = el('div', 'radar-list');+ list.setAttribute('role', 'list');++ const header = el('div', 'rl-header');+ header.setAttribute('aria-hidden', 'true');+ ['Coin', 'Quality', 'Organic / Bundle', 'Buyers', 'Net flow', 'Signals', ''].forEach((h, i) => {+ header.append(el('span', 'rl-h' + (i === 0 ? ' rl-h-coin' : ''), h));+ });+ list.append(header);++ for (const coin of coins) list.append(renderListRow(coin));+ return list;+}++function renderListRow(coin) {+ const isNew = !state.seen.has(coin.mint);+ state.seen.add(coin.mint);++ const row = el('div', 'radar-list-row' + (isNew ? ' is-enter' : ''));+ row.setAttribute('role', 'listitem');+ row.tabIndex = 0;+ row.setAttribute('aria-label', `${coin.name || coin.symbol || 'coin'} — quality ${coin.quality_score ?? 'unscored'}. Open details.`);+ const open = () => openDrawer(coin.mint);+ row.addEventListener('click', (e) => { if (e.target.closest('a,button')) return; open(); });+ row.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); open(); } });++ // coin identity+ const idc = el('div', 'rl-coin');+ const img = el('img', 'rl-img');+ img.loading = 'lazy'; img.decoding = 'async'; img.width = 30; img.height = 30; img.alt = '';+ const seed = coin.symbol || coin.name || coin.mint || 'coin';+ img.src = coin.image_uri && /^https?:\/\//i.test(coin.image_uri)+ ? `/api/img?url=${encodeURIComponent(coin.image_uri)}&seed=${encodeURIComponent(seed)}`+ : `/api/img?seed=${encodeURIComponent(seed)}`;+ img.addEventListener('error', () => { img.src = `/api/img?seed=${encodeURIComponent(seed)}`; }, { once: true });+ const idt = el('div', 'rl-id');+ const nm = el('div', 'rl-name', coin.name || 'Unnamed');+ nm.title = coin.name || '';+ const sub = el('div', 'rl-sub');+ sub.append(el('span', 'rl-ticker', coin.symbol ? '$' + coin.symbol : '—'));+ sub.append(el('span', 'rl-cat', CATEGORY_LABEL[coin.category] || 'Unknown'));+ sub.append(el('span', 'rl-age', timeAgo(coin.first_seen_at)));+ idt.append(nm, sub);+ idc.append(img, idt);++ // quality pill+ const ql = el('div', 'rl-quality');+ const dot = el('span', 'rl-q-dot');+ dot.style.background = qualityColor(coin.quality_score);+ const qn = el('span', 'rl-q-num', coin.quality_score != null ? String(coin.quality_score) : '—');+ qn.style.color = qualityColor(coin.quality_score);+ ql.append(dot, qn);++ // organic/bundle mini-bar+ const ob = el('div', 'rl-ob');+ const bar = el('div', 'rc-ob-bar');+ const o = coin.organic_score, b = coin.bundle_score;+ const oFill = el('span', 'rc-ob-fill rc-ob-fill--organic');+ oFill.style.width = (o != null ? clamp01(o) * 100 : 0) + '%';+ const bFill = el('span', 'rc-ob-fill rc-ob-fill--bundle');+ bFill.style.width = (b != null ? clamp01(b) * 100 : 0) + '%';+ bar.append(oFill, bFill);+ const obTxt = el('span', 'rl-ob-txt');+ obTxt.append(el('span', 'rc-ob-tag--organic', o != null ? pct(o) + '%' : 'n/m'));+ obTxt.append(el('span', null, ' / '));+ obTxt.append(el('span', 'rc-ob-tag--bundle', b != null ? pct(b) + '%' : 'n/m'));+ ob.append(bar, obTxt);++ // buyers+ const buyers = el('div', 'rl-buyers rd-num', fmtInt(coin.unique_buyers));++ // net flow+ const net = el('div', 'rl-net rd-num');+ if (coin.net_volume_sol == null) net.textContent = '—';+ else {+ net.textContent = (coin.net_volume_sol > 0 ? '+' : '') + fmtSol(coin.net_volume_sol) + ' ◎';+ net.classList.add(coin.net_volume_sol > 0 ? 'rc-pos' : coin.net_volume_sol < 0 ? 'rc-neg' : '');+ }++ // signals (badges + flags, condensed)+ const sig = el('div', 'rl-signals');+ const badges = renderCardBadges(coin);+ if (badges) sig.append(badges);+ const dangers = (coin.risk_flags || []).filter((f) => (FLAG_META[f]?.tone ?? 'warn') === 'danger');+ if (dangers.length) {+ const f = el('span', 'rc-flag rc-flag--danger', `${dangers.length} flag${dangers.length === 1 ? '' : 's'}`);+ f.title = dangers.map((d) => FLAG_META[d]?.label || d).join(', ');+ sig.append(f);+ } else if (!badges) {+ sig.append(el('span', 'rc-flag rc-flag--clean', 'Clean'));+ }++ // actions+ const act = el('div', 'rl-act');+ const watched = isWatched(coin.mint);+ const watchBtn = el('button', `rc-watch${watched ? ' rc-watched' : ''}`, watched ? '★' : '☆');+ watchBtn.type = 'button';+ watchBtn.title = watched ? 'Remove from watchlist' : 'Add to watchlist';+ watchBtn.setAttribute('aria-label', watchBtn.title);+ watchBtn.setAttribute('aria-pressed', String(watched));+ watchBtn.addEventListener('click', (e) => {+ e.stopPropagation();+ const now = toggleRadarWatch(coin.mint);+ watchBtn.textContent = now ? '★' : '☆';+ watchBtn.classList.toggle('rc-watched', now);+ watchBtn.setAttribute('aria-pressed', String(now));+ watchBtn.title = now ? 'Remove from watchlist' : 'Add to watchlist';+ watchBtn.setAttribute('aria-label', watchBtn.title);+ });+ act.append(watchBtn);++ row.append(idc, ql, ob, buyers, net, sig, act);+ if (isNew) requestAnimationFrame(() => row.classList.remove('is-enter'));+ return row;+}+function renderSkeletonGrid() {const grid = el('div', 'radar-grid', null);grid.setAttribute('aria-hidden', 'true');@@ -753,13 +873,70 @@ function renderCard(coin) {return card;}-function stat(label, value) {+function stat(label, value, tip) {const s = el('div', 'rc-stat');- s.append(el('span', 'rc-stat-label', label));+ const l = el('span', 'rc-stat-label', label);+ if (tip) { s.title = tip; }+ s.append(l);s.append(el('span', 'rc-stat-value', value));return s;}+// Net flow stat — buy minus sell volume, coloured by sign.+function netStat(net) {+ const s = el('div', 'rc-stat');+ s.title = 'Net SOL flow (buy volume − sell volume) during observation';+ s.append(el('span', 'rc-stat-label', 'Net flow'));+ const v = el('span', 'rc-stat-value');+ if (net == null) { v.textContent = '—'; }+ else {+ v.textContent = (net > 0 ? '+' : '') + fmtSol(net) + ' ◎';+ v.classList.add(net > 0 ? 'rc-pos' : net < 0 ? 'rc-neg' : '');+ }+ s.append(v);+ return s;+}++// Smart-money / news / outcome badges shown high on each card. Returns null when+// a coin has none, so plain coins stay visually quiet.+function renderCardBadges(coin) {+ const items = [];+ if (coin.smart_money_count > 0) {+ const b = el('span', 'rc-badge rc-badge--smart');+ b.append(el('span', 'rc-badge-glyph', '◆'));+ b.append(el('span', null, `${coin.smart_money_count} smart`));+ b.title = `${coin.smart_money_count} reputation-scored wallet${coin.smart_money_count === 1 ? '' : 's'} bought in${coin.smart_money_score != null ? ` · pedigree ${Math.round(coin.smart_money_score)}/100` : ''}`;+ items.push(b);+ }+ if (coin.is_news_meme) {+ const b = el('span', 'rc-badge rc-badge--news');+ b.append(el('span', 'rc-badge-glyph', '⚡'));+ b.append(el('span', null, 'News'));+ b.title = coin.news_headline ? `Matches headline: ${coin.news_headline}` : 'Matches a live news headline';+ items.push(b);+ }+ if (coin.cluster_count > 1) {+ const b = el('span', 'rc-badge rc-badge--cluster');+ b.append(el('span', 'rc-badge-glyph', '⬡'));+ b.append(el('span', null, `${coin.cluster_count} clusters`));+ b.title = `${coin.cluster_count} distinct funding clusters detected among buyers`;+ items.push(b);+ }+ if (coin.outcome && (coin.outcome.graduated || coin.outcome.rugged)) {+ const grad = coin.outcome.graduated;+ const b = el('span', `rc-badge rc-badge--${grad ? 'grad' : 'rug'}`);+ b.append(el('span', 'rc-badge-glyph', grad ? '↑' : '↓'));+ const ath = coin.outcome.ath_multiple;+ b.append(el('span', null, grad ? (ath ? `Graduated ${ath.toFixed(1)}×` : 'Graduated') : 'Rugged'));+ b.title = grad ? 'This coin later graduated to a DEX' : 'This coin later rugged';+ items.push(b);+ }+ if (!items.length) return null;+ const row = el('div', 'rc-badges');+ for (const b of items) row.append(b);+ return row;+}+// SVG quality ring, 0–100, color-graded.function renderRing(score) {const NS = 'http://www.w3.org/2000/svg';@@ -1081,6 +1258,59 @@ function renderDrawerContent(panel, coin) {panel.append(sec);}+ // news-meme provenance+ if (coin.is_news_meme && coin.news_headline) {+ const newsSec = el('div', 'rd-section rd-news');+ newsSec.append(el('h3', 'rd-h3', 'News-driven'));+ const row = el('div', 'rd-news-row');+ row.append(el('span', 'rd-news-glyph', '⚡'));+ const body = el('div');+ body.append(el('p', 'rd-news-headline', coin.news_headline));+ if (coin.news_url && /^https?:\/\//i.test(coin.news_url)) {+ const a = el('a', 'rd-news-link', 'Read source →');+ a.href = coin.news_url; a.target = '_blank'; a.rel = 'noopener noreferrer';+ body.append(a);+ }+ row.append(body);+ newsSec.append(row);+ panel.append(newsSec);+ }++ // smart money+ const notable = Array.isArray(coin.smart_money_notable) ? coin.smart_money_notable : [];+ if (coin.smart_money_count > 0 || notable.length) {+ const smSec = el('div', 'rd-section');+ smSec.append(el('h3', 'rd-h3', 'Smart money'));+ const summary = el('div', 'rd-sm-summary');+ summary.append(smChip(`${coin.smart_money_count} wallet${coin.smart_money_count === 1 ? '' : 's'}`));+ if (coin.smart_money_score != null) summary.append(smChip(`Pedigree ${Math.round(coin.smart_money_score)}/100`));+ smSec.append(summary);+ smSec.append(el('p', 'rd-meta', 'Buyers whose prior launches give them a reputation score — the highest-signal early tell the engine measures.'));+ if (notable.length) {+ const list = el('div', 'rd-sm-list');+ for (const w of notable.slice(0, 5)) {+ const item = el('div', 'rd-sm-item');+ const left = el('div', 'rd-sm-left');+ const a = el('a', 'rd-waddr', w.label || short(w.wallet, 4, 4));+ a.href = solscanAccount(w.wallet, coin.network); a.target = '_blank'; a.rel = 'noopener noreferrer';+ a.title = w.wallet;+ left.append(a);+ if (w.win_rate != null) {+ const wins = w.wins != null && w.duds != null ? ` · ${w.wins}W/${w.duds}L` : '';+ left.append(el('span', 'rd-sm-stat', `${Math.round(w.win_rate * 100)}% win${wins}`));+ }+ item.append(left);+ if (w.smart_money_score != null) {+ const sc = el('span', 'rd-sm-score', String(Math.round(w.smart_money_score)));+ item.append(sc);+ }+ list.append(item);+ }+ smSec.append(list);+ }+ panel.append(smSec);+ }+// risk flagsconst flagsSec = el('div', 'rd-section');flagsSec.append(el('h3', 'rd-h3', 'Risk flags'));@@ -1114,14 +1344,20 @@ function renderDrawerContent(panel, coin) {const ratio = (v) => (v == null ? 'not measured' : pct(v) + '%');grid.append(sigRow('Organic score', ratio(coin.organic_score)));grid.append(sigRow('Bundle score', ratio(coin.bundle_score)));+ grid.append(sigRow('Coordination', ratio(coin.coordination_score), 'Blended bundle + funding-graph coordination signal'));grid.append(sigRow('Snipe ratio', ratio(coin.snipe_ratio), 'Share of early supply taken by snipers'));grid.append(sigRow('Top-10 concentration', ratio(coin.concentration_top10), 'Share of supply held by the top 10 wallets'));+ grid.append(sigRow('Top-5 concentration', ratio(coin.concentration_top5), 'Share of supply held by the top 5 wallets'));grid.append(sigRow('Fresh-wallet ratio', ratio(coin.fresh_wallet_ratio), 'Share of buyers using brand-new wallets'));grid.append(sigRow('Bubblemap connectivity', ratio(coin.bubblemap_connectivity), 'How interlinked the buyer wallets are by funding'));+ grid.append(sigRow('Funding clusters', coin.cluster_count != null ? fmtInt(coin.cluster_count) : '—', 'Distinct funding clusters among buyers'));+ grid.append(sigRow('Market cap (first seen)', coin.market_cap_sol != null ? fmtSol(coin.market_cap_sol) + ' ◎' : 'not measured', 'Market cap in SOL when the engine began observing'));grid.append(sigRow('Unique buyers', fmtInt(coin.unique_buyers)));grid.append(sigRow('Unique sellers', fmtInt(coin.unique_sellers)));grid.append(sigRow('Buys / sells', `${fmtInt(coin.buy_count)} / ${fmtInt(coin.sell_count)}`));+ grid.append(sigRow('Buy/sell ratio', coin.buy_sell_ratio != null ? coin.buy_sell_ratio.toFixed(2) + '×' : '—', 'Buy volume divided by sell volume'));grid.append(sigRow('Buy / sell volume', `${coin.buy_volume_sol != null ? fmtSol(coin.buy_volume_sol) : '—'} / ${coin.sell_volume_sol != null ? fmtSol(coin.sell_volume_sol) : '—'} ◎`));+ grid.append(sigRow('Net flow', coin.net_volume_sol != null ? (coin.net_volume_sol > 0 ? '+' : '') + fmtSol(coin.net_volume_sol) + ' ◎' : '—', 'Buy volume minus sell volume'));grid.append(sigRow('Dev buy', coin.dev_buy_sol != null ? fmtSol(coin.dev_buy_sol) + ' ◎' : '—'));grid.append(sigRow('Dev sold', coin.dev_sold ? 'Yes' : 'No'));grid.append(sigRow('Largest buy', coin.largest_buy_sol != null ? fmtSol(coin.largest_buy_sol) + ' ◎' : '—'));@@ -1239,6 +1475,10 @@ function renderDrawerContent(panel, coin) {if (close) close.focus();}+function smChip(text) {+ return el('span', 'rd-sm-chip', text);+}+function socialLink(label, href) {const a = el('a', 'radar-btn radar-btn--ghost', label);const safe = /^https?:\/\//i.test(href) ? href : ('https://' + href);@@ -1314,12 +1554,37 @@ export function mountRadar(mountEl) {readUrl();render();fetchFeed();+ fetchPulse();startPolling();// keep "updated Xs ago" ticking without re-rendering the gridsetInterval(updateUpdatedLabel, 1000);document.addEventListener('visibilitychange', () => {- if (!document.hidden) fetchFeed({ silent: true });+ if (!document.hidden) { fetchFeed({ silent: true }); fetchPulse(); }+ });++ bindShortcuts();+}++// Keyboard shortcuts — power-user affordances that don't get in the way:+// / focus search · g/l grid/list · r refresh now+function bindShortcuts() {+ document.addEventListener('keydown', (e) => {+ if (e.metaKey || e.ctrlKey || e.altKey) return;+ const drawerOpen = drawer && !drawer.scrim.hidden;+ if (drawerOpen) return;+ const t = e.target;+ const typing = t && (t.tagName === 'INPUT' || t.tagName === 'TEXTAREA' || t.tagName === 'SELECT' || t.isContentEditable);+ if (e.key === '/' && !typing) {+ e.preventDefault();+ const input = root && root.querySelector('#radar-search');+ if (input) input.focus();+ return;+ }+ if (typing) return;+ if (e.key === 'g' && state.view !== 'grid') { state.view = 'grid'; writeUrl(); render(); }+ else if (e.key === 'l' && state.view !== 'list') { state.view = 'list'; writeUrl(); render(); }+ else if (e.key === 'r') { e.preventDefault(); fetchFeed(); fetchPulse(); }});}