Commit Graph

157 Commits

Author SHA1 Message Date
martbost 0785d4b41a Bridge pages: inside the ad viewer the button opens a new tab, so an offer that refuses framing no longer shows 'refused to connect' (reported for prenet.world, 2026-11-23); pt.js?v=3
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 08:03:12 -06:00
martbost 994a2054d8 Video Spin zone (/vz/<code>): a rotating player for any web page; house Video Spin admin route
/vz/<code> sends a frame to Social Tube's small player for one of the spin's videos on each page view; no click is recorded for a view
(rotator.peek), plays and taps are counted by Video App Income under the spin's code. Embed code on the Video Spin screen.
vsCreate / vsAdd shared by the member routes and POST /api/admin/house-videospin (admin key, house account, admin action log).
Chatbot lines updated (Marty 2026-11-22).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 12:56:38 -06:00
martbost bca3666ee2 Video Spin: one short link that rotates through video pages on Social Tube; Social Tube as a network link + traffic source
Links > Video Spins (third view). A Video Spin is a spin link (rotator kind 'video'): its videos are picked from the member's own Video App
Income videos or added by any member's Social Tube address, each checked with Video App Income over signed calls (NETCONV_SECRET_VAI,
prefix vspin.v1.). Pasted addresses are refused on a Video Spin. Per video: clicks here plus opened / played / tapped from Video App Income.
Limits mirror Banner Spin (Starter 2x5, Builder 5x15, Leader 10x25), counted apart from spin links. Network link nwst + source socialtube;
socialtube.club gets the click id. Chatbot answer video-spin, KNOWLEDGE_DATE 2026-11-22 (Marty 2026-11-22).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 12:29:54 -06:00
martbost a6c36aeca1 Video App Income as a network site: fixed link nwvai + its traffic source (catalog, ?src=videoappincome), videoappincome.com and clickvidpro.com get the click id, and its own signed conversion route /api/partner/netconv/vai (NETCONV_SECRET_VAI, events keyed vai: only; reporting only). netconv rows carry the reporting site, so a purchase reads Video App Income in Reports (Marty 2026-11-21: loop Video App Income through LinkSpin tracking)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 07:17:06 -06:00
martbost 2217fd2c80 Admin credit grant: purchased:true grants at purchase grade, like InstantAdPay's (Marty 2026-11-20)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 05:37:48 -06:00
martbost 7edc1a25b0 Holding-tank readiness on the tank cards (Marty 2026-11-18, warm-up stage 1, no email)
Each waiting lead on the Holding tank card (/tools) and Admin > Members tank card shows how they got into the tank, a stage chip (New / Warming / Engaged / Activated / Ready, real actions only), the network heat 0-100 with its band, and their last real action, from the network hub (POST /v1/tank/readiness). tankready.js is the same module as InstantAdPay's (entry facts from this site's adoption records, follow records and join data; usernames only). Hottest first inside the usual grace / ready-to-activate groups, a "Warm or hot only" toggle. Hub down = the card as before. No mail, no Telegram, no sponsor moves; adoption rules and caps untouched. qa/tank-readiness.test.mjs in member + tankhold; tankready.js / my.js / admin.js ?v=20261118rd, site.css ?v=ls20261118rd. qa member ALL PASSED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:08:51 -06:00
martbost 4d22ae72c8 How LinkSpin works: whole-site walkthrough video (Marty 2026-11-18)
A 3:15 narrated tour in Marty's voice (one link that rotates your pages, email-code sign-in,
weights, fallback, health checks, hours, the Share kit, traffic sources, Reports, Pages, Zones,
what ad packages do), pointing on to the Monthly Refuel and Conversion tracking lessons.
Hosted on Spaces training/linkspin-tour.{mp4,jpg}?v=20261118a.

- catalog/training.json: lesson linkspin-tour, group "Start here", first:true
- server.js /api/training: built-in lessons with first:true lead the list (ahead of the volume list)
- home: light "Watch how LinkSpin works" link under the hero ticks (main CTA stays above the fold
  on phones) + a #watch section with the player after "What you get, free"; pub.css ?v=20261118w
- chatbot: WALKTHROUGH VIDEO fact, KNOWLEDGE_DATE 2026-11-18

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:35:17 -06:00
martbost b5df8a2820 YourProgramBuilder go-live (Marty GO 2026-11-17): partner ypb (saved IDs become tracked links, the dh wiring, sub-id ypb<packet>), catalog template yourprogrambuilder + NET_SRC ypb, network link nwypb, netsites CODES nwypb
qa/netsrc.test.mjs counts the eleven network links (it still said nine after nwvas): 19/19.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:30:41 -06:00
martbost ae39e05fc5 AI ad writer on LinkSpin (Marty 2026-11-17: "do it on the other sites too"): "Write my ad from my link" on the Ads screen text ads (60/140) and "Write my headline from my link" in the page builder (headline 90 + subhead 200), both asking the network hub (hubadwriter.js, POST /v1/adwriter) through GET/POST /api/my/adwriter; shown only when the hub says on; chatbot fact, KNOWLEDGE_DATE 2026-11-17; ads-screen.js/pages-screen.js ?v=20261117aiw. Plus the PolHunter embed on the home page (3 tiles) with polhunter.com in script-src and connect-src (punch list L2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:43:47 -06:00
martbost 5613d10224 Network Weekend (Marty 2026-11-17): ribbon, WEEKEND500 start gate, date-gated chatbot fact
- netdeals.js + /api/network-deals (hub /v1/network-deals) and /assets/netweekend.js loaded from common.js and netline.js:
  the ribbon shows only Fri 11-27 00:00 CT to Tue 12-01 00:00 CT by the page's own clock (common/netline ?v=20261117nw)
- promos: optional starts (MySQL promo_codes.starts) so a code can be created dormant and open by itself; setClock for tests
- weekendfact.js: chatbot FACTS for the event (live deal lines from the hub) Fri to Mon, the WEEKEND500 line to Tue 12-08 00:00 CT
- qa/networkweekend.test.cjs: 8 pass (test clocks only)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:22:52 -06:00
martbost e0ece93e9d Network sign-in: the way back to every network site (Marty 2026-11-17)
networksso.js now also answers every site in the hub's GET /v1/sso-sites (the hand-written list
missed sites, the ViralAdSource bug), ?return=<site>&to=/path links remember the way back and
/sso/resume finishes it after the sign-in, and the deliberate-tap state lives 1 hour. Every
/go/<site> and ?return= request goes to networksso (no per-site line in server.js any more).
qa/networksso-return.e2e.mjs: a hub-only site, silent check, tap, wallet step, return links,
no open redirect. All network sign-in suites pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:10:17 -06:00
martbost 77e18fd230 Partner links for ViralAdSource: PARTNER_LINKS vas (the vab wiring)
/api/partner/vas/links serves ViralAdSource the same way as vab: ensure / stats / spins, tagged vas:<ad id>, on the member's own
"ViralAdSource" network source (new catalog template viraladsource, NET_SRC vas + viraladsource). qa/partner-vaslinks.test.mjs
(16 checks, incl. account by network username and vab/vas/dh kept apart); vab, dh, spins, netsrc, netconv, housespins green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 05:27:27 -06:00
martbost 6c5851b4d5 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:38 -06:00
martbost 1db7699e25 Hub activity from every signed-in LinkSpin use (Marty 2026-11-16: "LinkSpin never reports activity", DownlineHydra Wake it)
The page-load ping (networksso.page) only fires on a full top-level navigation with Sec-Fetch-Dest: document and a
member session that carries an email. It never fired for a Control Room tab kept open (client-side moves and the
/api/my/ping heartbeat), browsers that send no Sec-Fetch headers, wallet-only sessions, or the owner working in the
admin portal. Live finding: Marty has had no LinkSpin member session since 2026-11-15 20:20 UTC, before the ping
shipped (b2669cf, 21:36 UTC); 16 other members already had linkspin rows.
- networksso.seen(s): the same once-a-day ping for any signed-in request; called from /api/me (email or wallet),
  the dashboard heartbeat /api/my/ping and the admin portal page (/admin, the owner's email; hub activity only,
  the admin session is never shared).
- qa/networksso-activity.test.mjs (13 checks, real hub, in run.sh sso + member): a signed-in page load records
  site linkspin, once a day, never API/assets/bots/fetches/signed-out, seen() for an open tab and a wallet session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 07:28:12 -06:00
martbost aa7595a9cd Smarter chatbot + support matching by meaning (Marty 2026-11-16): the hub's semantic match (free core2 embeddings)
Chatbot (chatbot.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).
Support desk: while a signed-in member types a new ticket, POST /api/my/support/suggest shows the closest help answers (KB
entries only, incl. ones written from past tickets, never another member's ticket; BM25 when the hub is down); Send is never
blocked. help-screen.js?v=20261116sg.
Tests: qa/netkb-semantic.test.mjs (route/suggest decisions, fail soft, shared-file parity; run.sh kb) and
qa/support-suggest.mjs (run.sh member). netkb.js is the same file in all eight network sites.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 05:53:38 -06:00
martbost daf24a8f81 Admin route: house Banner Spins on the admin's own account, logged (Marty 2026-11-16)
POST /api/admin/house-spins creates or updates Banner Spins on a house account (ADMIN_EMAIL or NETWORK_LINKS_OWNER) for house ads
such as the Network Ad Space rows, through the same bannerspin.js calls the member Links screen uses (create, update, addBanner,
updateBanner). Admin auth only (portal session or the admin key); no member session is read or minted. Every call, denied ones
too, goes to the new admin action log (adminaudit.js: MySQL table admin_audit, JSONL without a database) with who, what and when;
GET /api/admin/house-spins/log reads it. qa/housespins.test.mjs (in run.sh netsrc) covers auth, house-account only, member
checks, idempotent repeat, prune, serving + click attribution, the log and no session minted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 05:08:25 -06:00
martbost b2669cfed7 Network hub sign-in, step 3 (Marty 2026-11-15)
networksso.js (the same file on every network site): with HUB_SSO=on /sso/start asks the network hub, /sso/in takes the hub's h1. token (this site's HUB_SECRET, iss hub, aud linkspin, 60 s, single use, state cookie) and falls back once to the pairwise InstantAdPay check when the hub has nobody. networksso.page() on every GET of the main host: a signed-in member's page load tells the hub once (nsso.hp) and pings /v1/activity once a day, only while the hub answers /health.
Sessions: SESSION_TTL_HOURS (168 = 7 days in production), renewed on use at most hourly; cookie 30 days, the server's sliding expiry decides. auth.endSessions.
Sign out everywhere: POST /api/auth/logout-everywhere; the account menu's Sign out asks "Only LinkSpin or every network site"; cr-shell.js?v=20261115hub. hubsync: member.blocked and member.signedout end every session of that member here.
Chatbot: a sign-in lasts 7 days and renews; the silent check is every 2 minutes.
Tests: qa/networksso-hub.e2e.mjs (same file as InstantAdPay, in run.sh). qa sso: ALL PASSED; qa member: ALL PASSED (known warnings).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:36:06 -06:00
martbost 73bee6c826 Login ad on a clock, hop back to the asking site, 5xYourTeam in the wallets map, signed-out login slot refused (Marty 2026-11-15)
Login ad: every Control Room page asks (cr-shell.js loginAd, the per-tab sessionStorage guard is gone); the server answers with an ad only when the member's last finished view on LinkSpin is older than loginAdEveryHours (site setting, default 3). loginadclock.js (the same file as InstantAdPay), MySQL table login_ad_views through DOCSTORE_URL. POST /api/ads/login/seen at the end of the countdown restarts the clock only if the serve was dwell-2 s earlier. Member erase forgets the row. Admin site setting label.
Signed out: /api/ads/slot?type=login draws nothing and counts no view (bots, probes, previews cannot run up an advertiser's numbers).
Hop: a member who signed in here because another network site asked ("Sign in with LinkSpin", nsso.back) goes back there after the login ad (/sso/resume), from every Control Room screen, not only the retired /my.
networksso.js: the network-wide copy (loop guard 120 s, fivex, unknown r refused); fivex added to the wallets map (FIVEX_URL, default https://5xyourteam.com).
Tests: qa/networksso-partner.e2e.mjs (same file as InstantAdPay, in run.sh): partner via LinkSpin, LinkSpin clock, signed-out slot; networksso e2e retries a keep-alive ECONNRESET. qa sso: ALL PASSED; qa member: ALL PASSED (2 known warnings; networksso e2e flaked on ECONNRESET once, passes with the retry).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:03:14 -06:00
martbost 60dc4d537d ViralAdBlitz "Use one of my spin links" (Marty 2026-11-15): /api/partner/vab/links op 'spins' (same net.v1 signature) lists the account's own spin links { code, name, url (public /r/ link on the clean link host), destinations (active), paused }, never partner-made links (tracked text ads, program links), nothing else about the account; hosts = every host a /r/ link answers on (also sent with account false) so ViralAdBlitz can tell a LinkSpin spin link from any other link. Read only. qa/partner-vabspins.test.mjs (12 pass) in qa netsrc; netsrc, sso, member green
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:37:02 -06:00
martbost f4789156b8 Member erase (Marty 2026-11-15, ticket LS-1021): POST /api/admin/erase {email, dryRun (default true), force} + the hub's member.erased event
erase.js runs inside the app so the documents modules keep in memory and the MySQL docs rows stay consistent. Refused
unless force: a main wallet, an on-chain member number, positions, a team here, ads running or queued. Removes the
account, their spin links with every click row in rot_hits and conversions (rotator.eraseOwner, docstore.rowsWhere),
and scrubs every document that mentions them with scrub.js (same file as InstantAdPay) through the owning module's live
copy: accounts, audiences, coach, convtrack, earned (unspent credits go away), hubsync, iapsync, mail-intro, postbacks,
registry, rotator, sponsorfollow; others (updates-log, ...) through docstore. A 30-day email-hash tombstone (erase.json)
stops the InstantAdPay registry sync and hub events from bringing them back; the log keeps hashes and counts only.
hubsync handles member.erased {emailHash}. qa/erase.test.cjs 6 pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:29:33 -06:00
martbost b2b670df14 Network sign-in for DownlineHydra (2026-11-15, same change as InstantAdPay 1c06c58): networksso NAMES downlinehydra (same file as IAP), wallets.downlinehydra = DH_URL (default https://downlinehydra.com; staging https://dh.saasy.top until the domain switch), /go/downlinehydra and /go/viraladblitz hops
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:39:12 -06:00
martbost 86007f0784 Footer network links carry a referral username (Marty 2026-11-15): the signed-in member's own (/api/me), else the referral the visitor came in on (?ref= on the page, remembered for the visit, then the iap.sponsor join cookie; usernames only, never a member number or wallet). Tracked links get it as s1 (LinkSpin sends it on as ?ref=), plain links as ?ref=, none for Earners Corner. Same approach as VBB 6798503. common.js + netline.js ?v=20261115nr. NOT deployed (another lane owns the LinkSpin deploy).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 07:59:33 -06:00
martbost 6607e39e30 Partner tracked links generalized (2026-11-15): POST /api/partner/<site>/links for site dh (DownlineHydra programs) or vab (ViralAdBlitz text ads, the ad id as s1/placement). PARTNER_LINKS maps each site to its network template + link name; keys dh:<id> / vab:<id> keep the two apart; items take program or id. Catalog viraladblitz template gains clickid/placement/s1 params. qa/partner-vablinks.test.mjs 13/13 (signature, unknown site refused, source, edit keeps the code, dh vs vab apart, stats per site); run.sh netsrc runs netsrc 17/17 + partner-dhlinks 13/13 + partner-vablinks 13/13. LOCAL ONLY.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 06:20:23 -06:00
martbost e23d9ecbdb ViralAdBlitz as a network site (2026-11-15): network sign-in by wallet to ViralAdBlitz (networksso wallets.viraladblitz = VAB_URL, default https://viraladblitz.com; NAMES viraladblitz), fixed network link nwvab -> https://viraladblitz.com/{s2}?ref={s1} on the admin account, catalog network template viraladblitz + NET_SRC vab/viraladblitz (merged by hand beside d6e8de3's dh entry), netsites CODES viraladblitz: nwvab. qa: netsrc 17/17 (seven network links), partner-dhlinks 13/13. LOCAL ONLY.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 06:06:31 -06:00
martbost d6e8de3e6a Partner endpoint for DownlineHydra tracked program links (Marty 2026-11-15): POST /api/partner/dh/links, net.v1-signed with NETWORK_SSO_SECRET. op ensure makes or updates one link per program on the member's own account (by email, else network username), tagged with a new 'DownlineHydra' network source and the program id as sub-id (?s1=&placement=), clean link host from domains.hosts(); op stats answers clicks per program. rotator.ensurePartner / partnerStats; catalog template downlinehydra; NET_SRC dh. qa/partner-dhlinks.test.mjs 13/13, partner-spins 13/13, netsrc 16/16. LOCAL ONLY, not pushed or deployed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 05:26:46 -06:00
martbost 836332b5ed Network sign-in: a deliberate 'Sign in with InstantAdPay/LinkSpin' tap while signed out on the provider now asks for the provider's sign-in, then finishes the trip (/sso/resume), instead of bouncing back silently (Marty 2026-11-14: VBB sign-in did nothing)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:31:51 -06:00
martbost fb083b7085 GET /api/admin/member-extra?email= (Marty 2026-11-14, network hub member lookup): read-only, admin Bearer; what the member card leaves out: optedOut (drip unsubscribe), tank {inTank, ready {readyAt, holdUntil}, adoptions summary}. qa/member-extra.mjs in the member run (401 without/with a wrong password, 404 unknown, fields present). qa member: 57 passed 0 failed, member-extra 7/7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:03:34 -06:00
martbost e545343fe0 Michael Camire fixes + hub shells in the tank (Marty 2026-11-14, LinkSpin Support)
1. Top-up across positions: an ad burns from ONE position, and topUpCampaign only looked at the ad's
   own position (or the main one when the list row had no memberId), so credits bought on a linked
   position could never top up the ad. Ported from InstantAdPay 2026-09-27 (Jim Watts): the ad's real
   member id is read from the campaign row; when it cannot cover, the refusal names where the free
   credits are and offers switchOptions; with the member's yes (switchTo, only a position on the
   account) moveFunding settles what the ad already ran up on the OLD position, moves the ad, then
   tops up. Ads screen asks in-page (own dialog) and retries. Create already had the largest-position guard.
2. Toasts: errors stay until closed (close button, role=alert), other notes 3.5 to 9 s by length.
3. Banner Spin per-banner clicks: his 3 clicks were all unmatched (no view on record for that browser),
   so they landed on the fallback row and every banner said 0. Click matching now also tries the same
   connection (daily-salted IP-only hash) when the browser key finds nothing (mail/exchange app view,
   click opened in the phone browser), view notes last 60 min instead of 15, and the stats split
   'Fallback shown' from 'Clicks not tied to a banner' so the rows add up to the total. History is not
   backfilled: views were never stored per visitor, so old clicks cannot be tied reliably.
4. Holding tank: hub-made waiting accounts with no sponsor are in the tank (waiting, rescue, readyTick
   read listAll with { shells: true }; 'hub-shell' no longer holds anyone back). Locked / sponsored /
   unknown, grace, 2-adoption cap unchanged; readyTick still never switches a shell on;
   accounts.listAll default unchanged (mailings skip shells).

Assets: cr.css, cr-shell.js, ads-screen.js ?v=20261114tu, banner-spin.js ?v=20261114bc.
QA: walk member 0 bugs (36 ok), netconv 57/57, networksso ALL PASSED, tank-hold all passed (new hub
shell part), profile policy 16/16, new topup-positions 8/8, new bannerspin-attrib 7/7, bannerspin e2e
75/75, hubsync 15 checks, tank-cap 15/15, sponsorfollow 30/30.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 11:59:38 -06:00
martbost a630979a3a Network sites as LinkSpin traffic sources (Marty 2026-11-14: "Make sure each of these sites is its own traffic source and link spun so we can track it"). Catalog: InstantAdPay, LinkSpin, Stack POL, Earners Corner network templates (next to Downline Banners and Viral Banner Blitz). A spin-link click with ?src=<site id> (iap, linkspin, dlb, vbb, stackpol, earnerscorner) counts under the link owner's source for that site, made from the template on first use (network templates only, no postback, so no network hears of a click it did not send; no referrer = the site's name as referrer). netlinks.js: at boot the admin account gets one fixed network link per site, made once when missing: nwiap, nwls, nwdlb, nwvbb, nwsp, nwec -> https://<site>/{s2}?ref={s1} (Earners Corner without ref), so every site links to the others as linkspin.app/r/<code>?src=<sender>&s1=<member>&s2=<page>. Health checks probe a destination with its {macros} empty, as a click with no params lands. netsites.js: /api/network-sites adds go (the tracked link with ?src=linkspin); common.js + netline.js footers use it (rel nofollow). common.js?v=20261114ns, netline.js?v=20261114ns. qa: netsrc 16/16 (new, bash qa/run.sh netsrc), member 57 passed 0 failed, partner-spins 13/13, netconv 57/57, lsid 31/31
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 11:39:34 -06:00
martbost 9025057128 Admin zone creation for a member (Marty 2026-11-14, approved named admin actions instead of signing in as a member): POST /api/admin/zones {owner, name, size, site, reason}, existing accounts only, same zones.create rules, logged. qa member 57/57
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 11:09:27 -06:00
martbost f1f757f895 Footer: 'Part of the network' line from the network hub (Marty 2026-11-14 trust pack), smallest change before the 11-15 launch. netsites.js serves GET /api/network-sites (hub GET /v1/network-sites, 10 min cache, never waits on a slow hub, built-in fallback); common.js paints the line (LinkSpin marked as current) in the site footer and the members-area footer; company line TrustClickz, 615 Green Valley Drive, Moody, AL 35004; Earnings Disclaimer label; members-area footer links Support, Terms, Earnings Disclaimer, Privacy. common.js?v=20261114nf. qa member: 57 passed, 0 failed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 10:22:33 -06:00
martbost 5d630ec479 Banner Spins for Viral Banner Blitz (Marty 2026-11-14: "make sure Viral Banner Blitz incorporates banner spins that could be pulled in just like downline banners"). /api/partner/bl/spins takes { site: 'vbb' }: 125x125 + 250x250 spins, a "Viral Banner Blitz" source (new catalog template viralbannerblitz), and { username } (the member's network username) when no account holds the wallet; vbb only. Answers now carry host and each spin's size. Downline Banners' calls are unchanged (468x60, wallet only). Same NETWORK_SSO_SECRET signature. qa/partner-spins.test.mjs 13/13 (local copy, JSON store); networksso ALL PASSED; hubsync 15 checks ok
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 10:07:27 -06:00
martbost 42cbe96979 Hub switch-on (Marty 2026-11-14). Rule 2: a hub arrival gets person.locks.linkspin's sponsor when the LinkSpin contract holds them, never the plain network sponsor; sponsor.changed stays ignored. Quiet: a wallet filled from a hub event never switches payouts on (isQuiet: no gas, no lock, no 'payouts are switched on' mail). Rule 3: the holding tank (waiting, release, expiry, rescue, readyTick, autoAssign) leaves out anyone the hub reports locked on any contract or sponsored, and hub waiting copies that never signed in here; /v1/locked detail cached 10 min, last answer kept 1 h, after that held (unknown). Alignment to the hub sponsor only with HUB_TANK_ALIGN=on. Needs network-hub b44dba6. hubsync 15 checks, sponsorfollow 30/30, tank-cap 15/15, networksso ALL PASSED, tank-hold, carry-hold ok
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 08:45:43 -06:00
martbost 9c4a6458f6 Network sign-in for Viral Banner Blitz (2026-11-14): vbb listed under networksso wallets (VBB_URL, default https://viralbannerblitz.com), so "Sign in with LinkSpin" works on VBB the way it does on Downline Banners; NAMES gains vbb (same networksso.js as IAP, DLB, VBB). networksso unit + e2e: ALL PASSED
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 08:16:26 -06:00
martbost ec09f2925e Holding-tank arrivals post shows the running total too (Marty 2026-11-14: post those totals so people know who is waiting to be adopted): '(N waiting in total)' after the new names
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 08:06:44 -06:00
martbost 1554c262a6 LinkSpin data in MySQL (Marty 2026-11-13: 'everything database-driven'). docstore.js: every .json/.jsonl data document under DATA_DIR lives in MySQL table docs (DOCSTORE_URL), served to the modules through their own fs calls from an in-memory copy, written through in order; one writer at a time (docs_writer), so an older copy during a deploy can never overwrite newer data; first boot imports each file and sets it aside (.imported-<date>). Spin-link clicks are rows in rot_hits (one insert per click instead of rewriting a 20 MB document; every click kept). Kept as files on purpose: chain-index cache, uploads, geo db, kits, marks, queues. Admin sessions load after the store. Rehearsed on a copy: 52/54 documents byte-identical (rotator.json minus hits, kb.json seeds refreshed), 97,579 clicks moved, links + clicks work after restart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 09:25:59 -06:00
martbost d1c9d62801 Data safety (2026-11-13 incident: a deploy read a half-written rotator.json, the store fell back to empty and its next save wiped 294 spin links): safefs.js makes every .json write inside DATA_DIR atomic (temp file + rename); LinkSpin's rotator refuses to start empty when rotator.json exists but will not parse
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 09:11:27 -06:00
martbost 656c9a940d Downline Banners partner call (Marty 2026-11-13): /api/partner/bl/spins, signed with NETWORK_SSO_SECRET, lists the 468x60 Banner Spins of the account holding a wallet; with spinId it makes sure a Downline Banners source exists, tags an untagged spin with it and answers the image + click URLs with the board's macros
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 08:55:41 -06:00
martbost 17c9764cc7 Downline Banners now lives at https://downlinebanners.com (Marty 2026-11-13): network sign-in hop default moved off new.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 08:36:00 -06:00
martbost a7f9b80c18 Hub gaps (Marty 2026-11-13): deliberate sponsor changes -> /v1/sponsor-change, BTC4Hits accounts reported (no other door does), MemberActivated -> /v1/contract-bind (contract linkspin) from a retried queue; still one way, only with HUB_ENABLED
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 08:21:59 -06:00
martbost 33285ad590 Merge branch 'hub-listener' 2026-11-13 07:51:48 -06:00
martbost 138c98ccec Network sign-in: same networksso.js as InstantAdPay (wallet sites); LinkSpin vouches for Downline Banners by wallet (2026-11-13)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 07:35:18 -06:00
martbost f3fc8dfe18 Team page: your directs' email, where they came from (referrer + ?src= tag) and how they joined, on each level-1 row (Marty 2026-11-13, same as InstantAdPay's 11-12 change); levels 2-3 never show emails. team.js?v=20261113org
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 06:10:17 -06:00
martbost c79b0aedf6 Network links (Marty 2026-11-13 'yes please proceed'): every click on a link to the other site goes through /go/<peer> (InstantAdPay -> /go/linkspin, LinkSpin -> /go/iap), so a signed-in member arrives signed in; signed out it is a plain redirect. Click-time rewrite in the shared scripts (IAP common.js; LinkSpin common.js + cr-shell.js), so copied share links stay clean; data-nogo opts a link out. Browser check: path+query+hash kept, other hosts and data-nogo untouched. iap-qa member ALL PASSED. common.js/cr-shell.js ?v=20261113nl
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 05:28:15 -06:00
martbost 3c8fc1802d Network sign-in: a wallet-only session counts as signed in when its wallet belongs to an account (session carries the address, not the email), so a member who signed in with their wallet is signed in on the other site too (Marty 2026-11-13: signed in on IAP, LinkSpin's check came back 'not signed in here'). networksso.test + e2e ALL PASSED.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 05:09:56 -06:00
martbost a20e5a772e Merge network sign-in (InstantAdPay <-> LinkSpin) into main for the Friday launch (Marty 2026-11-13: 'we need to get that done now'). Conflicts only in script version tags (kept today's newer assets, re-tagged ?v=20261113sso). networksso.test 'ALL PASSED' both repos, networksso.e2e ALL PASSED, iap-qa member ALL PASSED. NETWORK_SSO_SECRET set on both Coolify apps. Chatbot KNOWLEDGE_DATE 2026-11-13.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 04:53:12 -06:00
martbost 31bf6b9f41 Network hub link behind HUB_ENABLED (default off): hub member.joined from another door becomes the same waiting shell account the InstantAdPay registry sync makes (ensure 'carried'/'network', fill empty fields only, sponsor line placed first, wallet last under carry.hold); wallet.connected fills an empty wallet; LinkSpin's own joins and wallet links go to /v1/join and /v1/wallet through a persisted retry outbox (DATA_DIR/hubsync.json). Signed X-Hub-Ts/X-Hub-Sig, 5-minute window, each event seq applied once. sponsor.changed and the rest are ignored (TODO). iapsync and /api/partner/registry unchanged. Test: HUB_DIR=<network-hub with /v1/resolve {id}> bash qa/run.sh hubsync, 10 checks against a local hub in JSON mode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:07:28 -06:00
martbost 7c79bc7cc0 Join page records the ?src= tag in the first-touch source (Marty 2026-11-12: 'we need the source tag so we can know where these things come from'): joinedRef = <referrer host>/<src> or just <src> when the referrer was stripped; a tagged visit replaces an untagged 'direct' first touch; a real earlier source is kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 12:10:47 -06:00
martbost e79d5ae63e Network sign-in with InstantAdPay (Marty approved 2026-11-12): signed in on one site = signed in on the other, no email code
networksso.js (same file in both repos): /go/iap hop for signed-in members' cross-site links; /sso/start (state cookie +
30-minute loop guard) -> InstantAdPay /sso/check -> /sso/in?t=<v1 HMAC-SHA256 token, NETWORK_SSO_SECRET, 60 s, single-use nonce,
bound to the browser's state cookie, email, audience and a same-site relative path>. App host only (not link/pages hosts).
Member sessions only (admin portal never shared), ordinary 4-hour session. An email not here yet (sync not run) or not on
LS_TESTERS gets the normal email-code sign-in, email prefilled; nothing is created. Silent check on every Control Room screen
(cr-shell.js loads public/assets/netsso.js); never for bots/fetches; sign-out pauses it 12 hours. Engine Room, Fuel and the
arrival strip's Back to InstantAdPay go through /go/iap. Chatbot knows it (KNOWLEDGE_DATE 2026-11-12). Off until
NETWORK_SSO_SECRET (32+ chars) is set. ?v= bumped (cr-shell, fuel, engine-room: 20261112sso).

qa: networksso.test.cjs all passed, networksso.e2e.mjs (both servers, real browser) 31/31, run.sh member green (0 bugs)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 07:05:51 -06:00
martbost 3cc687aff5 Holding tank admin grant: POST /api/admin/tank/grant {adopter, count} assigns N real BTC4Hits imports on top of the cap as auto adoptions, skipping the bot patterns (yandex, dotted gmail); adopt/eligibility take skipCap (Marty 2026-11-11: the adopters who picked up the Yandex batch keep them and get the same number more). tank-cap 15/15, tank-hold all passed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:58:10 -06:00