Files
linkspin/public/team.html
T
martbost f41d1ef384 Launch week: Founder badge + launch week contest (Marty approved 2026-11-05, PLAN.md options B and C)
Founder badge (cosmetic only: no credits, no POL, no perks, never posted to Telegram)
- Criterion: the account's earliest signed-in visit is before the launch moment (launchAt, default
  2026-11-15T06:00:00-06:00). Field: accounts.firstSeen, else lastSeen. Both are written only by
  accounts.touchSeen() on signed-in requests (dashboard, ping, chat); touchSeen now keeps firstSeen =
  the previous lastSeen on the next visit, so a pre-launch member who signs in again after launch still
  qualifies. Carried-over shells that never signed in have neither field and never qualify.
- Stored flag accounts.founder (JSON + MySQL column). Grant: launchweek.tick every 10 minutes from the
  launch moment, idempotent, one run per 10-minute slot across app copies (marks.claim); founderGrant '0'
  turns it off. Admin preview + "Grant Founder badges now" (refused before launch).
- Shown in the badge strip (on the way before launch, Share works, no Telegram post), wall (wall-founder.js),
  Team rows (my.js + team.js), the Team activity chip, and next to names on /leaderboard. Art:
  /badges/badge-founder.jpg, drawn in code in the existing card layout.

Launch week contest
- Window [launchContestStart or launchAt, launchContestEnd) = Sun Nov 15 6:00 AM to the end of Sat Nov 21,
  Central (end stored exclusive, 2026-11-22T00:00:00-06:00). Count = the weekly board's tier-1 TierPaid
  sales. Never counted: own positions, buys by linked positions (Qualified Start), the admin account and
  overrideHouseIds (as contestants or buyers), launchContestExcludeEmails/Ids. launchContestMinSales 2.
  Ties: sales, dollars, who got there first. Prizes launchContestPrizesPol '10,6,4'.
- Payout only by Admin > Launch week > Pay launch contest: the ranking is frozen on the first press, the
  admin's confirmed list must match it, balance + gas checked first, each place claimed once (marks.claim)
  and written as sending before award(memberId) from the Level 4 override payer wallet
  (override.payerHandle). Records tx hashes; resolve paid-with-tx or retry for blocked/failed/review.
  The prize email + feed line say "Launch week contest prize".
- /leaderboard panel from the launch moment until the prizes are paid; /launch copy states both rules.
- chatbot: CANNED founder-badge + launch-contest, FACTS lines (no amounts quoted before launch).
- qa/launchweek.test.cjs (16 checks: Central window bounds, exclusions, minimum, two-copy payout once,
  frozen result, Founder criterion + grant, touchSeen backfill); run.sh launchweek and in all.
- Versions: my.js?v=20261105fd, team.js?v=20261105fd, wall-founder.js?v=20261105fd,
  admin-launchweek.js?v=20261105lw (wall.js unchanged: the shared policy test pins it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 08:14:28 -06:00

45 lines
4.2 KiB
HTML

<!doctype html>
<html lang="en" data-theme-base="light">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="robots" content="noindex, nofollow">
<title>Team · LinkSpin</title>
<!--theme-head--><script>(function(){var A=0,h=document.documentElement,b=h.getAttribute("data-theme-base")||"light",m=window.matchMedia?matchMedia("(prefers-color-scheme: dark)"):{matches:false},v;function g(){try{v=localStorage.getItem("ls.theme")}catch(e){v=null}return v==="light"||v==="dark"||v==="auto"?v:(A?"auto":b)}function ap(){var c=g();h.setAttribute("data-theme",c==="auto"?(m.matches?"dark":"light"):c);h.setAttribute("data-theme-choice",c)}ap();if(m.addEventListener)m.addEventListener("change",ap);else if(m.addListener)m.addListener(ap);window.LSTheme={base:b,get:g,apply:ap,set:function(c,quiet){try{if(c==="light"||c==="dark"||c==="auto")localStorage.setItem("ls.theme",c);else localStorage.removeItem("ls.theme")}catch(e){}ap();if(!quiet)try{dispatchEvent(new CustomEvent("ls-theme",{detail:g()}))}catch(e){}}}})()</script><!--/theme-head-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261101t">
<style>
.body{padding:16px 24px;display:grid;gap:16px}
.two{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px}
.line .hd,.line .rw{grid-template-columns:minmax(0,2fr) 100px 140px 100px 110px}
.lvl{display:flex;gap:4px;padding:10px 16px;border-bottom:1px solid var(--line);align-items:center;flex-wrap:wrap}
.lvl button{background:transparent;border:1px solid transparent;border-radius:var(--r);color:var(--muted);font-family:var(--display);font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;cursor:pointer}
.lvl button.on{background:var(--panel);border-color:var(--accent);color:var(--accent-hi);box-shadow:0 1px 2px rgba(15,27,46,.08)}
@media (max-width:900px){.two{grid-template-columns:1fr}.line .hd{display:none}.line .rw{grid-template-columns:1fr 1fr}.body{padding:12px 16px}}
</style>
</head>
<body>
<div id="page">
<div class="body">
<div class="tiles" id="tiles"></div>
<div class="two">
<div class="tbl line">
<div class="lvl"><button type="button" class="on" data-l="1">Directs</button><button type="button" data-l="2">Level 2</button><button type="button" data-l="3">Level 3</button><span class="grow"></span><span class="chips" id="chips"><button class="chip" type="button" data-f="today" data-st="bought">Active today</button><button class="chip" type="button" data-f="quiet" data-st="quiet">Quiet 3+ days</button><button class="chip" type="button" data-f="wallet">Wallet linked</button><button class="chip" type="button" data-f="nopay" data-st="wallet">Wallet, payouts off</button><button class="chip" type="button" data-f="nowallet" data-st="joined">No wallet</button></span></div>
<div class="hd"><span>Member</span><span>Last seen</span><span>Stage</span><span class="r">Paid you</span><span>Came from</span></div>
<div id="rows"></div>
<div class="ft" id="foot"></div>
</div>
<div style="display:grid;gap:16px;align-content:start">
<div class="panel"><h2>Your invite link</h2><span class="code" id="invite"></span><div style="display:flex;gap:8px"><button class="btn sm" type="button" id="copyInvite">Copy</button><a class="btn sm" href="/links">Put it in a spin</a></div><div class="muted">Everyone who joins through it becomes part of your line. Payouts lock to you once your payouts are on.</div></div>
<div class="panel"><h2>Your sponsor</h2><div id="sponsor" class="ink2">loading</div></div>
<div class="panel" id="claimPanel" hidden><h2 class="warn">Waiting on a wallet</h2><div id="claims" class="ink2"></div></div>
<div class="panel"><h2>Message your line</h2><div class="muted">One broadcast a day, on-site and email.</div><a class="btn sm" href="/tools#line" style="justify-self:start">Write one in the classic dashboard</a></div>
</div>
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261102a"></script>
<script src="/assets/team.js?v=20261105fd"></script>
</body>
</html>