Commit Graph

27 Commits

Author SHA1 Message Date
martbost 5822bfeec3 Network link nwypb: YourProgramBuilder as its own tracked network link (netsites CODES), the nwvas pattern (YourProgramBuilder go-live, Marty GO 2026-11-17)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:31:33 -06:00
martbost 234edc9d54 Network ad zones (punch list, Marty 2026-11-17): LinkSpin zones on Marty's account made through LinkSpin's admin zone route (footer wide 728x90, footer phone 320x50, ledger 468x60, not-found 300x250), the ViralAdBlitz pattern; common.js ?v=20261117z
Zones: ls-e5d152 / ls-1a1b1f / ls-20fdd0 / 404 ls-a8a737. Also GET /api/admin/member-lookup (read-only) for the network hub's admin lookup, like ViralAdBlitz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:29:11 -06:00
martbost 9fc285d1eb Guides (Marty 2026-11-17): /guides index + How The Draft works, Is 5xYourTeam legit?, Coaching your picks, FAQ
Static pages in the site's look (legal card layout, FX nav/footer via misc.js data-page=guides), canonical + meta + OG,
linked from the nav and footer, in the sitemap, 'guides' reserved from coach URLs. Every number checked against config.js
defaults (no DRAFT_/PICK_/POT_ env overrides on the live app) and DraftPosition on chain (priceCents 1000, 2500/500/1000 bps,
MAX_DEPTH 20, MAX_QTY 10, company + prize wallets). Chatbot: f-guides FAQ entry + GUIDES fact. qa/guides.test.cjs (59 checks)
keeps the pages in step with config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:25:40 -06:00
martbost e9abee37ea netweekend.js: shared copy synced (Network Weekend 2026-11-17)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:32:01 -06:00
martbost f0c1d41e31 netdeals.js: the first ask after a boot waits for the hub once (shared copy, Network Weekend 2026-11-17)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:31:24 -06:00
martbost f56fc551fe Network Weekend (Marty 2026-11-17): 8 instant picks per position Fri 11-27 00:00 CT to Tue 12-01 00:00 CT, ribbon, chatbot facts
weekend.js: date gate by the purchase's chain time (WEEKEND_PICKS=0 switches it off, WEEKEND_NOW test clock); /api/config, quote,
order and the attach hook use it. Tank check 11-17: draft pool 1,339, 2 positions sold. netdeals.js + /assets/netweekend.js ribbon
(/api/network-deals from the hub), loaded by common.js (not draftday/admin), common.js?v=4. chatbot FACTS weekend line and a
chatcore finish hook so stored instant answers say 8 while live. qa/weekend.test.cjs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:22:44 -06:00
martbost 394aec44c3 Network sign-in: the way back after signing in on InstantAdPay (Marty 2026-11-17)
networksso.js (the shared file, same in every network site): providers now also know every
site in the hub's GET /v1/sso-sites, ?return=<site>&to=/path links on IAP/LinkSpin remember
the way back, a missing wallet sends the member to the provider's wallet step first and then
back, and the deliberate-tap state lives 1 hour (was 20 minutes) so a sign-up has time.
Join links to InstantAdPay carry ?return=<this site>&to=/my.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:09:36 -06:00
martbost c06dba5f34 netsites: ViralAdSource tracked link code nwvas (LinkSpin /r/nwvas, Marty 2026-11-17 go-live)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 05:59:15 -06:00
martbost d105fd2d6a Remove street mailing address from public pages (Marty 2026-11-16)
Pages, footers and the site assistant now name only TrustClickz; the footer
reads "(c) 2026 TrustClickz". Contact stays the network support link.
QA checks updated to assert no street address is shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:46:06 -06:00
martbost e1915da9ba Smarter chatbot matching by meaning (Marty 2026-11-16): the hub's semantic match (free core2 embeddings)
chatcore.js + netkb.js (route): a hand-off pattern still answers first; then the hub's POST /v1/kb/match answers with this
site's entry when it is sure, keeps or overrules the CANNED regex hit, and picks the AI prompt context, this site's own entries
first. 1.5 s timeout, then the hub is skipped for 30 s and the old pattern + BM25 path answers (NETKB_MATCH=0 = off).
netkb.js also has suggest() for the support desk (used by InstantAdPay and LinkSpin). Same chatcore.js in the six rebuilt
sites, same netkb.js in all eight. Test: node qa/netkb-semantic.test.mjs (decisions, fail soft, shared-file parity).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 05:48:54 -06:00
martbost b2d5eb4625 Network hub hook (Marty 2026-11-16): sign out everywhere, hub blocks and erases end sessions here; "Sign out everywhere" button
hubevents.js (new, byte-identical in VBB, DLB, ViralAdBlitz, DownlineHydra, 5xYourTeam): POST /api/hub/events, signed by the hub
with HUB_SECRET (same hook InstantAdPay and LinkSpin take). member.signedout and member.blocked: the person is looked up by hub id
(/v1/resolve, signed as fivex) and their sessions here end (by the main wallet or any contract wallet). member.erased: matched by the wallet SHA-256s
(and email SHA-256) the hub now sends with the event. Only sessions made before the event end (a replay never signs anyone out
twice); a failed hub lookup answers 503 so the hub resends. Off with HUB_HOOK=0. Admin status: hubEvents (counts only).
/team: "Sign out everywhere" next to Sign out (POST /api/auth/logout-everywhere -> networksso.signOutEverywhere, then every
session of this member here ends).
Smoke: section 14b (same cases as the other wallet sites): 172 pass, 2 fail with UI; the same 2 (pool size, this week's pot: test-clock dated) fail on a clean HEAD. team.js?v=4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 05:05:40 -06:00
martbost 3cbe33db77 Promo kit: add 336x280 (Large box) for every angle (Marty 2026-11-16, Network Ad Space gaps)
New kit shapes rendered from HTML in the site's own look by tools/art.mjs (a shape list now renders only those shapes and leaves the other art alone). Listed in promokit.js SHAPES, so /promote, /api/promo-kit and InstantAdPay's Network sites tab show them. Smoke test counts updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 04:56:35 -06:00
martbost 3a1931fb9c Network hub sign-in, step 3 (Marty 2026-11-15): networksso.js hub mode + every GET passes networksso.page()
networksso.js (the same file on every network site): with HUB_SSO=on (and HUB_URL, HUB_SECRET, HUB_SITE) /sso/start asks the network hub instead of one other site, /sso/in takes the hub's h1. token (this site's HUB_SECRET, iss hub, aud this site, 60 s, single use, state cookie) and falls back once to the old pairwise provider when the hub has nobody. page(): a signed-in member's real page load tells the hub once (nsso.hp, through hub /sso/set and straight back) and pings POST /v1/activity once a day (fire and forget; HUB_ACTIVITY=0 turns it off), only when the hub answered /health lately, so a hub that is down never takes a page with it. HUB_SSO stays off until switched on per site.
qa smoke passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:19:59 -06:00
martbost e98154ef9c networksso.js: the network-wide copy (Marty 2026-11-15). Loop guard TRIED_AGE 30 min -> 120 s (the 30-minute guard blocked Marty's silent sign-in on LinkSpin); NAMES gains fivex (5xYourTeam); a provider refuses an unknown r= instead of answering it as its peer (IAP answered 5xYourTeam as LinkSpin, the loop Marty hit). Byte-identical in IAP, LinkSpin, VBB, DLB, ViralAdBlitz, DownlineHydra, 5xYourTeam (DLB also catches up with the 2026-11-14 deliberate-tap pieces it was missing). qa smoke: 5x 160/160, VBB 249/249, VAB 198/198, DLB 131/131, DH 210/211 (the 1 front-page check also fails on a clean HEAD).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:51:47 -06:00
martbost 7765c8ff37 Chat widget: #scPanel[hidden]{display:none} so closing always wins over the panel's display:flex (Stack POL's widget could not close without it; this site was fine because its own stylesheet hides [hidden], the rule keeps it so).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:57:04 -06:00
martbost 5d7f556853 chat Q&A: two checks matched the wording too literally (the answers were right)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:32:12 -06:00
martbost f0c47bbf35 Site assistant widget: plain divs instead of header/section (a site stylesheet that styles every header pushed the panel title down on Downline Banners), chat.js cache tag bumped; the shared chatbot test runs without a config.js or data volume (Stack POL)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:26:44 -06:00
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