Commit Graph

455 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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
martbost cf5a9674a2 Friday Bonus Hunts: InstantAdPay counts the banked days
Each day Saturday through Thursday (Central) that a member opens an inbox ad
and watches a video banks one extra PolHunter hunt for the following Friday.
If their inbox had no unread solo ad that day, the video alone counts, so
nobody is blocked by an empty inbox. These are the two slowest-delivering ad
types (about 6-7 views per campaign per day against 40-50 for banners), so
the game sends attention exactly where advertisers are short of it.

fridaybank.js counts from video_seen and solo_inbox.read_ts with DST-safe
Central midnights. /api/my/friday-bank feeds a card on the Earn tab (week
chips, today's two steps with links to the right sub-tab);
/api/hunt/friday-bank answers PolHunter, HMAC-signed with the existing
HUNT_SSO_SECRET, 5-minute window. QA member walk: 0 bugs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 15:20:51 -05:00
martbost 18aabb3cb2 /friday: status script as a file (CSP blocks inline), and the page in the real sitemap
The first deploy shipped the status strip stuck on Checking: the site CSP has no
unsafe-inline, so the inline script never ran. Moved to /assets/friday.js. The
sitemap list lives in blog.js, not the pages list I edited in server.js; /friday
is in it now.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 06:29:09 -05:00
martbost 5b694c8ab4 Five Dollar Friday bridge page, with the member's link on it
Marty's ask: use the Friday promo as a tool where the sponsor gets the
credit, and as a bridge-page entry point. The sponsor part already worked
(any public page + ?ref sets the sponsor cookie, 2026-09-21); what was
missing was a page that is ABOUT the offer, so a click on a "20% bonus
credits today" image did not land on the general pitch and leak.

/friday: the banner as the hero, the live state from /api/friday (live now
with today's pack count and bonus credits issued, or the next date with a
countdown to midnight Central found by scanning minutes so DST cannot put it
an hour out), three steps, the email-first join with a new `friday` angle so
it shows as its own row in Admin > Traffic, and the credit definition. No
attribution logic added: last touch, walk-up, as everywhere.

Promo tools: a {{FRIDAY}} token that turns the member's invite link into
/friday?ref=<username>; posts for X, Facebook and Telegram and a text that
carry it; the three new banners (loft 1200x630, dark 1200x630, square
1080x1080) as a group in the kit with a copy-my-Friday-link button on it.
Chatbot answer points at the page and drops the stale "first one is
September 25" line. /friday in the traffic list, the sitemap and the QA
public walk. Cache tags bumped on my.js, promo.js and site.css.

QA member walk: 0 bugs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 06:26:11 -05:00
martbost 3f9dc3cc94 A session pop-up that says what InstantAdPay actually is
The dashboard card was too easy to scroll past, so this is a real overlay: once
per browser session, on every page that loads common.js, dismissed with the X,
Escape or the backdrop.

It leads with the mechanic rather than the promotion, because the ask was to
remind people what the site is about: the ad spend in your line pays you, in the
same transaction. Five Dollar Friday rides underneath as the reason to act, and
the copy is driven by the live /api/friday, so it reads "tomorrow", "today" or
nothing at all without anyone editing text on a Friday morning.

Not shown on /join or /admin: an overlay in the middle of signing up costs
sign-ups, and staff do not need reminding what the product is.

QA: the overlay appears after an async fetch, so hiding it at load time missed
it and every click in the harness timed out. The harness now pre-sets the same
sessionStorage flag a real dismissal uses, before page scripts run. Green again,
0 bugs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-24 15:54:33 -05:00
martbost 3d4b07a8ab Real cover art, and a third milestone destination
The cover was a drawn arc and a hoop I built out of rectangles. It looked like
it. Replaced with a kie.ai generated photograph, a basketball sitting untouched
on a wet floodlit court at night with the hoop in shadow behind it, which is the
whole argument of the post in one frame. The type is still set here rather than
prompted, because image models cannot letter.

Milestones and the daily snapshot now post to three places instead of two: the
main Crypto Team Build group, the InstantAdPay support topic (634443) and the
shared payments topic. The RM Circle proof channel is deliberately excluded,
that channel is RM Circle only.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-24 08:07:09 -05:00
martbost 6ff21f76ee P&L: account for money the chain cannot explain
The P&L took revenue from AdminPaid events and holdings from eth_getBalance,
so anything else moving through a receiver was invisible. Receiver A has earned
10,871.89 POL and holds 4,561.19; nothing explained the difference, and the gap
would have widened every time Marty drew from it. "Why would I ever keep a
receiver wallet that I never take anything out of? That's stupid, so I need to
be able to account for it."

Three kinds, because three different things move through that wallet and only
one is profit. Revenue is outside income, a ClickBaitPays withdrawal paid in
POL, and counts toward profit. A draw is house profit spent on something, such
as funding RM Circle #139's Culmen to Apex upgrade; it leaves the wallet but is
not a cost of running InstantAdPay. A transfer is Marty's own capital parked in
the Tangem receiver for safekeeping, and moves the balance only: counting it as
revenue would report his savings as earnings.

The pane now states earned, plus revenue, less draws, against what is actually
held, and names any unexplained drift rather than hiding it in a balance.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 18:10:56 -05:00
martbost 5c08be1c30 Campaign actions: a centred, even stack with a squarer corner
The column is narrow so these buttons stack. Left-aligned pills of different
widths read as a ragged edge, and a label that wraps inside a 999px radius
becomes a tall oval, which is what "Buy more views" was doing.

They are now centred, the same width, and cornered at 10px, so each label sits
on one line. Scoped to this table: everything else keeps the pill. The phone
card shares a row rather than stacking, as it did before, so that layout is
left alone.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 09:10:50 -05:00
martbost 02d60d6ee1 Archive button: it had no text colour, and no room beside its neighbours
I gave it the class "ghost", which on PolHunter is a button and here is the
giant faded wordmark in the footer. That class sets color:transparent, so the
label was not dark, it was invisible. It now uses a new "quiet" variant, grey
on a muted outline, which reads clearly and sits below the mint actions rather
than competing with them.

The campaign actions also had no spacing on desktop. The mobile layout already
gapped them; the wide one leaned on a plain space between tags, so they sat
flush against each other.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 08:57:56 -05:00
martbost f0a6a93f8b Campaigns: archive a finished one, get the credits back, keep the numbers
A member asked for a delete button. Deleting would orphan the credit ledger,
the hourly view rows and the P&L, and throw away the figures they actually
want, so a campaign is archived instead: out of the working table, listed in
full underneath with its views, clicks and spend, and restorable.

The credits are the real point. Reserved budget is computed from campaigns
that are active or paused, so a paused campaign quietly holds credits the
member cannot spend anywhere else. Archiving releases them the moment the
status changes, with nothing to refund and nothing that can double-refund.

Only a paused or finished campaign can be archived, so pause stays the
deliberate first step, and restoring brings it back paused rather than live.
The syndication rails are stopped on the way in.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 08:40:17 -05:00
martbost 489d832546 Sign-in: stop telling a fast returning member off for being fast
The email-code endpoint refuses a request that arrives within two seconds of
the page loading, because a script fills a form instantly and a person does
not. A member whose email is already filled in by the browser has nothing to
type, taps straight away, and gets "Give the page a second, then tap again."

The page now waits out the remainder itself and sends when the window has
passed, so the person sees the normal sending state instead of an error.
The server check is untouched, so anything posting at the endpoint without a
page behind it still fails exactly as before.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 05:50:34 -05:00
martbost 286ac9207a Hand the sponsor to PolHunter, and put its payouts in the P&L
PolHunter now pays a bounty when a hunter brings someone who turns up and
hunts, and the person who gets it has to be the one that member actually
joined under here. The sign-in payload carries sponsorRef and the join date
across so PolHunter is never guessing from a cookie.

Its payouts are real POL from its own faucet and none of it passes through the
ad contract, so the P&L could not derive it. It now reads the figures across,
cached and fail-soft, and shows finds, bounties and matches as their own card.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 04:36:02 -05:00
martbost ce9f3e6904 Videos: reject a source that does not load, and stop stranding the viewer
Michael Camire reported the video tab locking up after the fifth watch each
day. Three separate faults behind it.

A campaign could go live with a video address that resolves nowhere, because
the form only checked the shape of the URL. One has been sitting there since
11 September pointing at the example host, serving every Tier 1 member a black
player it could never finish. The create route now fetches the address and
refuses a host that does not answer, a 404, or a page that is not a video.

The Watch tab holds the landscape videos and Shorts holds the upright ones,
but they share one daily count. A member who cleared the tab was told to come
back tomorrow while clips were still waiting one tap away. When the other
surface still has something, the done screen now says so and links to it.

When a browser refused to autoplay, the button offered "Tap to play" but was
wired to fetch a different video, so the loaded one was thrown away and the
next also would not start. On a phone the clip could never be played at all.
The button now starts what is already loaded.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 16:54:31 -05:00
martbost c47905d89a Overview announcements: let a member put one away for the session
The PolHunter launch card, the Five Dollar Friday card and the "you came from
PolHunter" card repeat on a timer, so anyone who has read one had no way to
clear it. Each now carries a small close control in its heading: the card
stays hidden for the rest of that browser session and comes back at the next
sign-in, so a message nobody acted on is never lost for good.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 06:29:49 -05:00