Commit Graph

261 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 35aa2f6514 Video Spins screen: Watch how this works lesson link
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 04:52:20 -06:00
martbost 255e399272 Training: Video Spins lesson (video + card), chatbot mentions it
Narrated walkthrough in Marty's voice from the network-videos pipeline (site linkspin-videospin), hosted in Spaces training/video-spins.mp4.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 14:20:53 -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 61c0ccc48a Pipeline board fits on one screen: long columns scroll inside themselves (headings pinned) and the board's sideways scrollbar is wide and visible (member request in LinkSpin Support 2026-11-20: "need a bottom slide rule"); site.css v=ls20261120pp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:28:10 -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 e62545994f Promo tools: 600x300 wide cards for both LinkSpin angles
Member request (600x300 and 250x250; the 250x250 square already existed).
ls-wide-a / ls-wide-b in a new 600x300 group in the Banners pill, rendered by
tools/promo-kit-wide.cjs from the kit's own art and fonts. my.js?v bumped,
chatbot promo-tools fact updated. QA member run: 0 bugs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:28:28 -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 bd5ed4e370 Owner account (ADMIN_EMAIL) has no link or source cap (Marty 2026-11-17: 'since I am the owner, I don't want a limit on my account'); members keep 100 links / 30 sources
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:17:52 -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 03d87fbb79 Network link nwvas: ViralAdSource as its own spin link + traffic source (netlinks.js, netsites CODES), the nwvab pattern (Marty 2026-11-17 go-live)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 05:59:57 -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 2ede19a13d networksso hub e2e: the wallet partner takes the hub hook (Marty 2026-11-16)
The stand-in wallet partner now runs the real wallet-site hubevents.js (from ../../5xyourteam/app, skipped when absent) behind
POST /api/hub/events, and the hub hooks it (HUB_HOOK_EVERY_MS 1 s). New cases: the partner session open in the browser ends after
Sign out everywhere on LinkSpin (member.signedout, matched by the member wallet), and a partner session opened before a hub
block ends after it (member.blocked). Same file in InstantAdPay and LinkSpin: ALL PASSED from both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 05:24:33 -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 1b0e324176 networksso e2e: tamper a middle character of the signature (the last base64url character carries only 4 bits, so A<->B could decode to the same bytes: a 6% flake seen in qa member 2026-11-15)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:46:04 -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 fbf7d87030 Shared network knowledge (Marty 2026-11-15): the chatbot publishes its KB to the network hub and reads the other network sites' entries (netkb.js, the same file in every network site), home entries boosted, a named site's entries first and labelled with its LinkSpin tracked link, a question naming another site skips the instant answers (a hand-off still wins). Wallet answers follow Marty's rule (SafePal or any other crypto wallet, never recommend MetaMask), since they are now shared network-wide. KNOWLEDGE_DATE 2026-11-15. qa kb: netkb-merge 67 pass, kb-chat pass, kb-retrieval 2 misses that also fail on a clean tree
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:31:37 -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 e2af298317 DownlineHydra as a network site (2026-11-15 go-live): fixed network link nwdh -> https://downlinehydra.com/{s2}?ref={s1} on the admin account (catalog network template downlinehydra + NET_SRC dh/downlinehydra already there), netsites CODES downlinehydra: nwdh; qa netsrc expects nine network links + nwdh redirect. LOCAL, not run here (qa on hold for the VAB lane's suite)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:57:58 -06:00
martbost ab6124ea9b 5xYourTeam as a network site (2026-11-15): fixed network link nw5x -> https://5xyourteam.com/{s2}?ref={s1} on the admin account, catalog network template 5xyourteam + NET_SRC fivex/5xyourteam, netsites CODES fivex: nw5x; qa netsrc expects eight network links + nw5x redirect
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:52:30 -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 90596b4d0f qa/networksso.e2e: same file as InstantAdPay again (the 'expired IAP session' check expects the 2026-11-14 deliberate-tap behaviour: IAP asks for its own sign-in first and remembers the trip in nsso.back)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:23:23 -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 82e25de691 docstore: skip rewriting a document whose body equals what MySQL already holds (whole-document rewrites on every save filled core with 115 GB of binlogs, 2026-11-15); qa/docstore-skip.test.cjs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 04:14:35 -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 018ff9c2f2 Network line on the public pages that do not load common.js (home, contract, legal, guides, ledger, join, earning, partners, support): netline.js adds the company line and the 'Part of the network' list from /api/network-sites (LinkSpin marked as current, built-in fallback); footer link reads Earnings Disclaimer. netline.js?v=20261114nf. qa member: 57 passed, 0 failed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 10:33:21 -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 fb84d1545d Quiet hub accounts (Marty 2026-11-14, join one = join all): accounts the hub makes here get joinedRef 'hub', and accounts.listAll leaves out hub-made accounts that never signed in unless { shells: true }, so no mailing or sweep (updates 'all', launch week, coach, leaderboard) reaches them. hubsync/launchweek/sponsorfollow/tank-cap tests pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:10:11 -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 5fbaf4f17d Hub rule 2 (Marty 2026-11-14): every paid Purchase on the LinkSpin contract goes to the hub's /v1/contract-spend from its own retried queue (spends, sent after the binds, tx hash so a resend counts once, POL-in only; activation alone is not a spend), so when two contracts lock different sponsors the one with money spent decides the network sponsor. Still one way, only with HUB_ENABLED; needs network-hub 296aa5d. qa/hubsync.test.cjs 11 checks ok
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 08:24:00 -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