215af86e553032061e98020cd46de2d6112d3af6
7 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
f41d1ef384 |
Launch week: Founder badge + launch week contest (Marty approved 2026-11-05, PLAN.md options B and C)
Founder badge (cosmetic only: no credits, no POL, no perks, never posted to Telegram) - Criterion: the account's earliest signed-in visit is before the launch moment (launchAt, default 2026-11-15T06:00:00-06:00). Field: accounts.firstSeen, else lastSeen. Both are written only by accounts.touchSeen() on signed-in requests (dashboard, ping, chat); touchSeen now keeps firstSeen = the previous lastSeen on the next visit, so a pre-launch member who signs in again after launch still qualifies. Carried-over shells that never signed in have neither field and never qualify. - Stored flag accounts.founder (JSON + MySQL column). Grant: launchweek.tick every 10 minutes from the launch moment, idempotent, one run per 10-minute slot across app copies (marks.claim); founderGrant '0' turns it off. Admin preview + "Grant Founder badges now" (refused before launch). - Shown in the badge strip (on the way before launch, Share works, no Telegram post), wall (wall-founder.js), Team rows (my.js + team.js), the Team activity chip, and next to names on /leaderboard. Art: /badges/badge-founder.jpg, drawn in code in the existing card layout. Launch week contest - Window [launchContestStart or launchAt, launchContestEnd) = Sun Nov 15 6:00 AM to the end of Sat Nov 21, Central (end stored exclusive, 2026-11-22T00:00:00-06:00). Count = the weekly board's tier-1 TierPaid sales. Never counted: own positions, buys by linked positions (Qualified Start), the admin account and overrideHouseIds (as contestants or buyers), launchContestExcludeEmails/Ids. launchContestMinSales 2. Ties: sales, dollars, who got there first. Prizes launchContestPrizesPol '10,6,4'. - Payout only by Admin > Launch week > Pay launch contest: the ranking is frozen on the first press, the admin's confirmed list must match it, balance + gas checked first, each place claimed once (marks.claim) and written as sending before award(memberId) from the Level 4 override payer wallet (override.payerHandle). Records tx hashes; resolve paid-with-tx or retry for blocked/failed/review. The prize email + feed line say "Launch week contest prize". - /leaderboard panel from the launch moment until the prizes are paid; /launch copy states both rules. - chatbot: CANNED founder-badge + launch-contest, FACTS lines (no amounts quoted before launch). - qa/launchweek.test.cjs (16 checks: Central window bounds, exclusions, minimum, two-copy payout once, frozen result, Founder criterion + grant, touchSeen backfill); run.sh launchweek and in all. - Versions: my.js?v=20261105fd, team.js?v=20261105fd, wall-founder.js?v=20261105fd, admin-launchweek.js?v=20261105lw (wall.js unchanged: the shared policy test pins it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
b84eed3be5 |
Theme switch: auto | light | dark, stored in localStorage ls.theme and on the account, applied before first paint on every page
themehead.js is the one source of the tiny inline head script (and of AUTO_DEFAULT, the one constant Marty decides later: 0 = nothing stored keeps the page's current look, light for Control Room and public pages, dark for the sapphire pages; 1 = follow the device). The script sets data-theme on <html> from ls.theme (auto follows prefers-color-scheme and tracks changes live) and exposes window.LSTheme. tools/stamp-theme-head.cjs writes it into every static page before the first stylesheet with data-theme-base on <html>; blog, leaderboard, what's-new, the badge page, the unsubscribe page and the wall 404 read the module directly. The site CSP allows inline scripts by hash only, so themehead.CSP_HASH joins script-src (the script was silently blocked until then).
Account side: accounts.theme (JSON store and MySQL, alterSafe column), in the public account JSON and /api/me; POST /api/my/profile {theme} rides the existing profile save path and never touches the username. cr-shell.js renders a Light / Dark / Auto segmented control in the topbar of every Control Room screen and paints every .theme-seg on the page (the Profile pane gains an Appearance card with the same control); a click applies at once, saves locally and to the account when signed in; at sign-in the account value wins over the local one, and a local choice is pushed up when the account has none yet. view.html stops reading an undefined --bg so its light variant has a light stage. ?v= tags bumped on every changed stylesheet and script (20261101t / ls20261101t).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
||
|
|
bdf1aab06c |
Link-farm hardening (2026-10-30 incident: 106 free accounts synced from InstantAdPay carried casino bios and website links; Google indexed the text through /wall pages)
Public walls: profile fields (bio, avatar, socials, intro video) render only for a paying member (memberId > 0 or a registered position), on /api/wall and in the OG image; a free account's wall shows the name, the line's ads and the join call. The meta/og description is a fixed site sentence with the handle, never the bio. Outbound profile links are rel="sponsored ugc noopener" target="_blank". A deleted or unknown name is a real 404 with X-Robots-Tag noindex (was a bare "Banner wall" page at 200, a soft 404 that stayed indexed).
Policy (prohibited.js, byte-for-byte copy of InstantAdPay's): bios may not carry a URL or a domain token ("Links go in the social fields, not the bio"); gambling, adult, pharma, weapons and link-selling terms (Unicode aware) are refused in bios, social URLs, line banner targets, wall offers and every campaign field, with the refusal logged. The registry ingest from InstantAdPay drops a bio with a link or a prohibited term instead of storing it; iapsync applies the same on the way out.
Quarantine rule: a brand-new free account (no wallet, no sponsor, under 24 h) whose first profile save plants a link is saved with profileQuarantined (JSON + MySQL column), never rendered publicly, and told "Your profile links will appear after your first ad package"; the admin member card shows the flag.
Daily link-farm scan (spamscan.js, same copy as InstantAdPay): in-app job at 06:30 Central, claimOnce per day, lists memberId-0 walletless accounts with a link plus a farm signal (prohibited term, sign-in over within 15 min, no sponsor), skips the spamScanAllow setting (seeded), writes DATA_DIR/wall-spam-scan.json and sends one "LinkSpin link-farm scan" Telegram to the private admin chat only when there are candidates. Admin > Members > Link-farm list: rows with "also on InstantAdPay" (local registry mirror), Delete selected (existing DELETE /api/admin/member, on-chain refused, no cascade) and Allow.
Terms section 9 "Prohibited content", bio hint in the profile editor, chatbot canned answer + kb-seed entry "What content is not allowed?", KNOWLEDGE_DATE 2026-10-30. Test: qa/profile-policy.test.cjs (unit + local copy, hash check against the InstantAdPay copies; runs in qa/run.sh member and policy).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
||
|
|
9ebbef2d21 |
Network rate 4:1 (Marty approved 2026-10-27, same as InstantAdPay): views off LinkSpin cost 1/synRateDivisor of the on-site rate, going forward
rates.synRateDivisor (default 4, Admin > Rates; 1 = the old rule). Network Ad Space impressions charge 1 credit per impressionsPerCredit x N views; member campaigns shown in other members' zones on their own sites (zones.js serve, offsite) are counted in the new synImps (not Views here) and charged one batch per N x the on-site batch (2 credits per 40 banner views at N=4) through the same spend path, so burns follow what was charged. Fractions are exact (the cumulative served count / the syn_batch counter carry the remainder). The budget is the limit: bookings, resume, top-up and daily allowances are sized at the network rate, and a live ad booked at the old rate is topped up once. Nothing already charged changes; zone owners keep earning as before. Ads screen + classic Campaigns show network and partner-zone views marked at 1/4; chatbot canned answer + live AI fact; cache tags bumped. QA: qa/run.sh nas (stop 9, ratio 10), loginqueue 13, refill 12, run.sh member passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
1c2ef3780c |
Prepaid login-ad slot queue (Marty, 2026-10-23: "they need to pay for the slot now to get a place in line")
When all member login slots are taken the Ads screen offers "Reserve the next slot" instead of a dead button. Same price and checks as a slot (purchased credits only), paid at reserve time; the campaign is 'queued' with queuedAt, never serves and has no 30-day clock. First paid, first served: the member sees their place and an estimated start (Central time, labelled an estimate) built from the live slots' end dates and the line ahead. A freed slot (ended, paused, or found by the new 1-minute tick) goes to the oldest reservation: starts now, expires now + 30 days, never more than loginSlotsMax live. Idempotent across the deploy overlap: JSON mode takes a lock file and records every promotion/cancel in DATA_DIR/login-queue.json, re-read before any change; MySQL mode uses guarded UPDATEs (status + live count in one statement). Owner gets an on-site notice and an email (unsubscribes respected). A paused slot resumes only when live + queued < max. Cancel before start = full refund (credited back as purchased credits; any unburned accrual released). Edits while queued are free and keep the free correction. Admin: Login-ad queue card with cancel + refund, plus the Member content action. New credit activity log (credit-log.json / credit_log table): reserved (queue #N), bought, started, refunds, shown on the Ads screen. Audit skips queued/cancelled login rows. Chatbot CANNED + FACTS updated (6 slots, paid queue, full refund before start). Tags bumped: ads-screen.js, admin.js, my.js 20261023q. Tests: qa/loginqueue.test.cjs (two app copies promoting at once) + qa/loginqueue.e2e.mjs; bash qa/run.sh loginqueue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
7be213311f |
Ad editing: fix the link, image, text or name of a running ad; first edit free, then campaignEditFee credits
Orlando (#30) could only pause, resume or top up a banner or login ad with a wrong link. - POST /api/my/campaigns/<id>/edit (owner) and /api/admin/campaigns/<id>/edit (any ad, free, never uses the member's free edit). Banner: link, image, name. Text: link, headline, line, name. Login and the rest: link, name. Type, size, budget, geo, schedule, audience are refused. - Create and edit share one path: checkName/checkTarget/checkBannerImage/checkTextCopy in ads.js (validate() now calls them) and adChecks() in server.js (frame check + a new banner image check: loads, is a real PNG/JPG/GIF/WebP, up to 3 MB; own uploads read off the volume). - Fee: campaigns.edits counts member edits; the first is free, each later one costs the site setting campaignEditFee (default 100, admin Settings). Charged from the engine pool via spendEarned (earned first, then credited purchased); with neither, a burn row on the best-funded position (the normal burn queue). Guarded claim so two saves cannot both be free; a failed save refunds exactly what was taken. - History: campaigns.edit_log (ts, by, fields, old/new values, fee), last 50. - NAS: clicks already route through /api/ads/click/<id>, so a new link needs no write; a new image or text goes to the NAS row via nas.updateCreative. Failures never block the edit and retry on the next reconcile pass. Open ad-viewer tokens get the new link. - UI: Edit button on the Ads screen (CR.dialog editor, real-size preview, upload, free/fee note and confirm), /ads#edit=<id> deep link from the /tools list, admin Member content shows edit count + history with an Edit action. Chatbot canned answer + FACTS. - qa/adedit.mjs: 51 checks against a throwaway DATA_DIR, Playwright screenshots in D:/tmp/ad-edit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
010e8d7ffc |
LinkSpin test area: InstantAdPay engine fork rebranded, network registry, sponsor carry-over with engine activation and claim window, rotator with /r/ redirects, link-domain mini-sites
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |