Commit Graph

10 Commits

Author SHA1 Message Date
martbost 131cf542ad Site assistant: the knowledge index rebuilds as soon as the network set from the hub changes (was up to 30 s after boot, so the first cross-site questions missed the other sites)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:55:14 -06:00
martbost 2b91ff5b8c Site assistant (Marty 2026-11-15): chat widget in the 5xYourTeam draft-night look on every page, CANNED + FACTS from this repo's code (position $10 one time, 5 picks, sponsor 25% + L2-5 5% + pot 10% + company 45%, pass-up 20 places, Monday 7 PM Central draft, earned order, 3-day return, 48 h hold, 10 open picks, no contact data), retrieval over the shared network knowledge base on the hub (netkb.js, home entries boosted, another site named = its answer), reasoning off, account problems hand off to network support. chatbot.test 187, unit 62/62, smoke 160/160, iap-tank 35/35
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:53:16 -06:00
martbost c25ae40f8b Network footer links: CODES adds viraladblitz nwvab, fivex nw5x and downlinehydra nwdh (Marty 2026-11-15: every site is its own LinkSpin traffic source), so links to the three new sites are tracked instead of plain; same list as LinkSpin and Stack POL.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:10:24 -06:00
martbost cb18fde98b PolHunter mission prep (every rebuilt network site gets one): the front page's 3 How The Draft steps carry the PolHunter embed (data-selector '.how .s'); CSP admits https://polhunter.com in script-src and connect-src. 5x has no paid-visit economy, so hunters need no special handling. smoke 156/156
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:52:34 -06:00
martbost 3815965fc1 Staging test mode (Marty's rule: test apps never touch real people): TANK_MODE=iap with DRAFT_LIVE not 1 reads the pool + statuses from InstantAdPay but every pick (5 instant picks on a purchase, the Monday draft) and release is a preview kept here: no tank.adopt(), no sponsor change, no email. Yellow 'TEST MODE, nobody is adopted' strip on every page (/api/config testMode). Admin view: testMode, previewPicks, adoptionMailsSkipped. iap-tank 35/35 (new section 6 against the real draftpartner.js), unit 62/62, smoke 156/156. common.js/fx.css ?v=3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:42:22 -06:00
martbost 1112a8c589 Contract page: verification state from env CONTRACT_VERIFIED (sourcify,polygonscan), shown per verifier; contract.js?v=3. unit 62/62, smoke 156/156
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:02:59 -06:00
martbost 20e980a3c4 docker-compose.yml for Coolify (staging fivex.saasy.top): every env the app reads, data in MySQL, port 3000 exposed only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 07:57:51 -06:00
martbost f6dbbfdcd3 5xYourTeam card + Draft Day art (2026-11-15, LOCAL ONLY): kie.ai tier frames, Envato rings/medals/holo/back, Draft Day confetti/spotlights/scoreboard, Champiun
- Trading cards: five kie.ai nano-banana-pro tier frames (Rookie steel, Starter silver, Pro gold trim, All-Star gold + holo,
  Hall of Fame ornate gold + laurels), F4 avatar ring + B1 rank medal per tier, F5 holo foil on Pro/All-Star/HoF, sized in cqw
- Card back from F1 (text layers hidden, green re-tinted gold): tap/Enter flips a card to the stats layout (team, how drafted,
  milestone, games played, the tier ladder); landscape, takes two grid slots. Milestones only, never earnings.
- Draft Day 1080 card: D2 spotlights, D1 gold confetti, D5 scoreboard plate (blank) for the totals
- Champiun (T3, Basic Latin WOFF subset) only for the ON THE CLOCK headline and pick numbers
- tools/derive-art.py builds the web derivatives from ../assets-src (raw packs stay out of public/); public/art/MANIFEST.md maps
  each file to its source item, author and license code; tools/art.mjs renders kit/OG/proof/tier art with the same cards
- ?v= tags bumped to 2; unit 62/62, smoke 156/156 (UI_FONTS=1), iap-tank 23/23

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 07:45:43 -06:00
martbost 8645b471ae The Draft on the real holding tank (2026-11-15, LOCAL ONLY): tankpool.js 'iap' mode = signed client for InstantAdPay's draft partner routes
TANK_MODE=iap (or hub) + IAP_URL + DRAFT_PARTNER_SECRET: pool / adopt / release / status as HMAC-signed POSTs ('draft.v1.' + ts +
newline + body, X-Draft-Ts / X-Draft-Sig). The stub stays the default and keeps every existing test. adopt carries the coach claim
(wallet, hubId, username, positions = store.positionsOf) and a request id; one retry with the same rid on a network failure, so a
retry never makes two adoptions. release sends why 'coach' | 'return' + the pick's iap ref and takes InstantAdPay's outcome
(returned / kept / done). league.sweep follows a pick InstantAdPay closed first (its own 3-day sweep, a release there, a LinkSpin
follow). Surfing arrives as ad credits (surfCredits, shown "N ad credits" to coaches, +10 scouting like surf POL); games stay
"not tracked yet" (InstantAdPay has no per-member game record).

Fix found by the cross test: a tank refusal about the COACH (no InstantAdPay account, full, not vested, hub off) used to mark the
person unavailable and let the same coach choose again, which would burn the whole pool; now the slot passes (skip 'tank: <code>')
and a silent tank pauses the draft (nothing recorded, the next tick retries the same slot). Manual picks record nothing on either.

Tests: unit 62/62 (2 new: skip + wait), smoke 156/156 (ports 3561-3564), qa/iap-tank.test.cjs 23/23 (this client + league against
InstantAdPay's REAL draftpartner.js + tank.js from the sibling checkout behind a signed server on 3565, then a dead port 3566).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 07:18:00 -06:00
martbost f26ac15712 5xYourTeam The Draft v1 (phase 1, local only): weekly earned-order draft of holding-tank people, picks as adoptions (stub tank), coaching tools, cards, boards, trust pack
$10 one-time DraftPosition purchases (sponsor 25%, L2-5 5%, 10% Best Coach pot, 45% company) with keeper-signed hub-line
vouchers; pure draft engine with a mocked clock; no contact data anywhere; Telegram to an outbox unless TG_LIVE=1.
Unit 60/60, smoke 156/156 (Playwright 1280/390). Not deployed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 06:16:10 -06:00