Commit Graph

343 Commits

Author SHA1 Message Date
martbost a5a991d024 Spooky Doors launch pack (IAP side): door packs + Golden Doors, Promo tools card, season from Oct 4
- Visit packs get a placement: 'all' (as before), 'doors' (Behind Spooky Doors, doorPackCost 4/door) or
  'golden' (Golden Spooky Door, goldenDoorCost 6/door). campaigns.placement column (alterSafe) + JSON store.
- Doors serve golden packs first, then door packs, then the existing chain; each pack at most once per
  player per Central day. Door-only packs never reach the Earn tab, refuels or the PassiveDrip listing
  until rates.sdSeasonEnd ('2026-11-01'); from then on they behave as 'all'.
- Door payloads: credits = per-door price actually charged (3/4/6); Golden Doors add golden: true and
  bonus: goldenBonusCandy (2) to /api/door/open, done, callback and receipt. Gold variant of /door.
- Campaign list: Spooky Doors / Golden Door chip, doors opened + unique players, Buy more doors at the
  door price. Composer: placement choice with live cost. Admin rates labels + house pack placement.
- Promo tools: Spooky Doors card (spookydoors.com/r/<username>, copy, share image, two posts) on the same
  season window as the Games card (seasonState helper).
- Season start moved up to 2026-10-04 (Games card + promo card + chatbot).
- qa/door.mjs covers all of the above.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 15:55:19 -05:00
martbost 9809953ae0 Spooky Doors house ads: an empty street serves one of Marty's programs instead of "Nobody's home"
When a door finds no visit pack and no video, /api/door/open serves a house ad from rates.doorHouseAds
(RM Circle, Drip Runner, Gem Kingdom, PolHunter by default; ref templates carry the player's IAP username
where the program takes a share link). Rotation: never the same program twice in a row, else the one least
recently shown to that member today. Same dwell + Halloween icon check. No advertiser charge and no campaign
imps, but it counts toward doorCapPerDay (visit_repeat row with campaign 0). Callback and receipt add
house: true and program, with credits 0, host null, campaignId 0. doorHouseAds = [] restores none=1.
Admin rates table keeps text columns as text so the list survives a save. qa/door.mjs covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 15:06:53 -05:00
martbost 27c9d51fde Spooky Doors (Halloween season game): hand-off, door visits, costume shop, seasonal Games card
- SD_SSO_SECRET / SD_URL (default https://spookydoors.com); sdMint/sdOpen same token shape as Drip Runner
- GET /api/my/spookydoors sign-in hand-off (?ref pass-through; iap.return spookydoors + sdshop whitelisted)
- /door page (Halloween copy of /refuel, door art backdrop) + /api/door/open|challenge|done as visit kind 'door';
  signed callback to SD_URL/api/door/callback (X-SD-Ts/X-SD-Sig) + 24 h door-receipt on ret&ok=1&r=;
  ret&none=1 when nothing to serve, ret&cap=1 at the daily cap; host = campaign owner's username
- /sd/shop (+ topup/resume/confirm) costume checkout via ads.gamePurchase('Spooky Doors: <label>'), sd-receipt
- Games tab: generic season window (Central days, admin preview before start, hidden after end) + pink
  limited-time ribbon; progress from SD_URL/api/partner/player (signed); my.js ?v bumped
- Chatbot canned answer + prompt facts; qa/door.mjs (bash qa/run.sh door) end-to-end on a throwaway local copy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 09:40:08 -05:00
martbost 6804a26c5d Games cards: optional artPos crop anchor; Drip Runner share image anchored left so its headline isn't cropped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 08:47:36 -05:00
martbost 4a38d9ce79 Member menu: drop the standalone PolHunter link (it lives in the Games tab now)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 08:17:22 -05:00
martbost be313e6202 Gem Kingdom: sign-in hand-off (/api/my/gemkingdom), Games card (admin preview until gamesLive), Crown shop checkout (/gk/shop: confirm, short -> top-up detour with dashboard banner back, confirm spends credits via ads.gamePurchase, signed receipt redirect + server callback); game purchases skip refill notices and the campaign list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 15:36:03 -05:00
martbost 513c713292 PassiveDrip moves from Games to an Earn-tab card (it is an earning site); members see it when site config passivedripLive=on, admin preview until then
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 10:11:19 -05:00
martbost 5a522f0ede Weekly member email as sectioned HTML (plain-text twin kept); PassiveDrip one-tap hand-off (inert until PD_SSO_SECRET)
- coach.js: weeklyDigest() builds one card per topic (credits, streak, contest, tank, team) with the key number up front and one button; mailer.send takes optional html
- server.js: /api/my/passivedrip mints a signed hand-off (memberId, email, username, verified wallet, sponsor email); Games card for PassiveDrip (admin preview until gamesLive includes passivedrip) with the member's own coins line via the bridge 'member' lookup; sign-in return path
- my.js: card button label, return redirect; v=20261001b

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 08:43:22 -05:00
martbost dd53d132d6 Games hub: one Games menu entry and pane with a card per game (registry in server.js, live list = site config gamesLive, default polhunter; admin sees unlaunched games as previews), Drip Runner card with the player's own progress via a signed read; chatbot knows Games + Drip Runner (KNOWLEDGE_DATE 2026-10-01); QA walk covers the pane
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:36:49 -05:00
martbost 5fe6058e76 Drip Runner video refuels: when a player has visited every running visit pack, the refuel plays a member video ad (advertiser charged one view as on the Watch tab, player gets fuel not credits, counts toward the refuel cap, one refuel per video per person); timer runs only while the video plays and the page is in front
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:52:52 -05:00
martbost 5d0e89be6f Drip Runner refuels get their own daily allowance (refuelCapPerDay 20): visit_seen.kind earn|refuel, each kind capped separately, once-per-page-per-person still spans both; clearer refuel cap / no-packs copy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:44:59 -05:00
martbost 2b2e131c3e Drip Runner referrals: /join/<ref>?from=driprunner returns newcomers to the game once they have a username, first-touch source driprunner.saasy.top, hand-off carries sponsorRef/joinedRef
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:14:05 -05:00
martbost f1b37e0c4a Drip Runner return path: signed-out hand-off sets iap.return=driprunner and the email sign-in answers next=/api/my/driprunner (straight back into the game); refuel page dead ends keep a Back to Drip Runner button
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-30 14:01:47 -05:00
martbost 587272673b Drip Runner trial (2026-09-30): /api/my/driprunner hand-off, /refuel verified-visit page for the game (advertiser charged, viewer gets fuel not credits, signed callback + receipt), completeVisit(opts)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-30 13:33:37 -05:00
martbost 3ae9ab55e9 Balances: show earned and bonus credits that live campaigns already hold (Jim's Wired Wednesday bonus read as +0 earned); PassiveDrip bridge PD_SYNC_APPLY=0 read-only mode while pointed at staging
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-30 08:08:50 -05:00
martbost a7a15615ec Sponsor survives a lost cookie: join page sends its own token with the code request, server remembers it per email for 30 days, framed visitors offered a full window
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 09:48:06 -05:00
martbost b5baaf27e8 Partner kit pages at /partners/<slug>; first one for Jamie (@cryptojaime)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 09:36:25 -05:00
martbost a60905a9fb Tank, roster and downline: sortable/filterable lists with last seen, surf earnings and wallet/payout state; admin Members table loads 5000 accounts
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 09:25:55 -05:00
martbost 58dc3864cd Friday Bonus Hunts card: say plainly when an unopened inbox ad is what blocks today
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 08:50:12 -05:00
martbost 37a78de339 Wired Wednesday: page, kit, chatbot and banners say $20 and up
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 08:10:48 -05:00
martbost 43463366ec Wired Wednesday floor is $20 (Activation pack and up): there is no $10 package
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 08:07:21 -05:00
martbost d43836a892 Shiny-objects article: widescreen art as the cover and in the kit
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 07:32:02 -05:00
martbost 9c90a95f4c Shiny-objects article art in the promo kit (cover, square, portrait) with a share-the-article link
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 07:27:09 -05:00
martbost a765b97421 Bridge pages: banner keeps its aspect ratio on phones (height:auto)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 05:46:58 -05:00
martbost 8a6029cd90 Wired Wednesday: bonus is wired into the balance (purchased-grade, any format), no forced visits campaign; all copy corrected
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 05:42:08 -05:00
martbost 04fd4db9ca Wired Wednesday: +25% on $10+ packs wired into a verified-visits campaign; /wednesday bridge page, banners, kit, cards, chatbot (notice + kickoff off until approved)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 04:49:34 -05:00
martbost 7ce7aeffa4 home: platform-overview embed points at the 48 kHz re-encode
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 16:17:43 -05:00
martbost 61be49c303 plan-lab: knob for levels bought up front by your position, net of what you paid
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 10:41:58 -05:00
martbost e6b5a9fb22 plan-lab: long runs paint every month with progress and can be interrupted; O(recruiters) placement and picks
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 10:01:47 -05:00
martbost b55388c83b plan-lab: activity pool (15% company + 5% pool), money-flow bar, three example members, the mix table
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 09:32:36 -05:00
martbost 39951cfac5 plan-lab: each leg funds licences at its own share, so join-and-pay members keep their path
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 08:58:35 -05:00
martbost 257b06d6d2 plan-lab: sponsor leg, entry split, Fast Start switches; builders vs join-and-pay mix; 0 ladder
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 08:55:41 -05:00
martbost 34e9d32a8a plan-lab: how-to-read section for reviewers; Start over zeroes every counter
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 08:26:56 -05:00
martbost fd7b5d7ed7 plan-lab: fresh script version tag on every build
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 08:16:03 -05:00
martbost 06a83a0b97 plan-lab: forward-only wording, no comparisons to other programs
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 08:12:19 -05:00
martbost c20a5ed56b plan-lab: spread placement is the decided default
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 07:17:05 -05:00
martbost ab2431be11 Email an update: release notes are optional when there is an intro
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 05:22:24 -05:00
martbost a9cffb87d4 Email an update: a refresh never re-ticks release notes; a saved draft decides which notes go
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 04:50:59 -05:00
martbost 927b13a7cf Admin > Email an update loads at once; audience counts fill in from the background
The panel waited on a Sendy pass over every member (minutes, and the cache
empties on each deploy), so it showed blank. Counts are now a snapshot with
a background refresh, and the form no longer depends on them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 04:43:42 -05:00
martbost 53f0970209 plan-lab: spillover placement and zero-recruit cash switches; tenure and team-funded metrics
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 20:00:17 -05:00
martbost d562d61cbc My line: how pay it forward actually works here, and a confirmation before every PIF
Wallet-to-wallet gift in good faith, unlike platforms that buy the position
out of an account balance. The site holds nothing, cannot reverse or recover
it, and nothing obliges the recipient to buy. Same wording in the chatbot.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 15:14:51 -05:00
martbost 30f84c6aa2 plan-lab: month-by-month run from the real InstantAdPay org; the full-matrix climb becomes the ceiling view
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 13:50:23 -05:00
martbost 273715dc17 plan-lab: admin fee is a running total from zero; entry fees stated once at the start
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 13:37:54 -05:00
martbost e1309d43b7 plan-lab: exactly one route, admin-fee label says whole-org
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 13:19:57 -05:00
martbost 6e3f631cc6 plan-lab: one route (the builder had appended it three times), clearer admin-fee label
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 13:09:04 -05:00
martbost 8e419f95e8 plan-lab: the climb story first, tree and rules folded away
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 13:04:57 -05:00
martbost a2d5706d8e Unlisted /plan-lab: Reach Ladder simulator for the planning group
The working simulator for the new matrix plan, served by link only
(noindex, no menu entry, no sitemap). Engine in /assets/plan-lab.js because
the CSP blocks inline scripts.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 12:38:43 -05:00
martbost 7ef8094a4d Top-ups: check the ad's own position, say where the free credits are, offer to pay from another
Bug: topUpCampaign read the position from the owner's campaign list, which
does not carry memberId, so every top-up was checked against the member's
MAIN position (Jim Watts: every ad said 19 free). It now reads the ad's row.

When the ad's position is short, the error names it and lists the member's
other positions with their free credits; the dashboard offers to pay from
the best one. Moving an ad settles any charges its old position already ran
up (a burn on the old member id) before switching, so the new position only
pays for views after the move.

Weekly email: unspent credits are broken down by position with the advice to
start a campaign from the largest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 06:05:19 -05:00
martbost 917e87cd32 Reserve company and staff usernames; Terms: usernames must not mislead
setUsername refuses names containing our brands (instantadpay, polhunter,
rmcircle, cryptoteambuild, linkspin, dripoffers, adrevlnks...) and staff or
authority words on their own (admin, support, official, staff, moderator,
owner, ceo, payouts...). Terms section 3 gains the matching rule.
Prompted by #170 'instantadpay' and #172 'admin' (same person), 2026-09-27.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 05:02:35 -05:00
martbost 7873d752d3 My line: section pills and 10-row pages on every list
A sticky pill row at the top of My line jumps to each section (built from
the cards marked data-jump; hidden cards get no pill; the one in view is
lit). Every list on the page pages at 10: your line, downline levels,
holding tank, coach directs, prospects, both link-stats tables; upline
messages at 5. qa/line-pager.mjs checks it in a real browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:56:20 -05:00