6 Commits

Author SHA1 Message Date
martbost 47389a4169 Traffic-exchange frames: framed pages open sign-in, Get a Position, My Team, wallet and off-site links in a new tab carrying ?ref=<sponsor>
Traffic exchanges, rotators and Massifly Adpoints show 5xyourteam.com inside another site's frame, where the browser drops the
SameSite=Lax fx.ref and fx.sid cookies, so signing in, buying or joining from the frame lost the sponsor (Marty 2026-11-19).
- common.js: framed (window.top !== window.self) -> /team, /join, /admin, /sso/ and off-site links get target=_blank
  rel=noopener (on load and again at click time); /team, /join and /sso/ links add ?ref= from the page's ?ref= (or ?r=), the
  coach page it is, or the cookie. The wallet buttons ([data-wallet-signin], Pay = [data-full-window]) open this page in a new
  tab with ?ref= instead of signing inside the frame. Public pages stay in the frame.
- server: /sso/start?...&ref=<name> sets fx.ref first-party and 302s to the plain start; /sso/* sends X-Frame-Options DENY
  (/team and /admin already did). Sponsor rules unchanged.
- coach.js marks the coach; join.js keeps Pay clickable when framed; asset tags bumped.
Checked with the fake traffic-exchange harness (cross-site frame, JS a.click()): 11/11 flows open a new tab with the sponsor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 07:21:13 -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 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 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 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 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