One swap per banner + admin takedown (Marty 2026-11-15: "allow the member to swap it only, and they can only do it one time. Admin takes down the option to credit back or none.")
Member swap: My Banners shows "Swap image or link" on a banner that is waiting or in the loop, usable once (then "Swap used"). POST /api/my/banners/<id>/swap changes the image and/or link (or a Banner Spin to another of the member's own 125x125/250x250 spins via lsspins), same checks as a new post (checkLink, probeLink, upload/https image checks); id, place, clicks and loop progress stay. Logged on the banner (swaps: old/new image + link, time). No withdraw, removal or refund for members.
Admin takedown: /admin finds banners (#id, wallet, username), POST /api/admin/banners/<id>/takedown {reason required, credit: back|none}. The banner is hidden at once (splash loop + waiting line show a house tile in its place, /go goes home, no look/teaser/swap); its place rides out on time so nobody moves, then it ends with no cycle, no network views, no prize count. My Banners shows "Taken down" with the reason. Restore reverses a given credit (when the owner still holds one) and, if its place rode out meanwhile, records the cycle then. Admin ledger: GET /api/admin/actions (who, when, reason, credit decision).
Chatbot: CANNED 'swap' + FACTS line (KNOWLEDGE_DATE already 2026-11-15), chat-qa entry. my.js?v=4, admin.js?v=3, vbb.css?v=8.
Tests: smoke section 15 (swap once, refused twice, keeps place, bad link/image refused, spin swap, takedown credit back vs none, others keep places, ride-out without a cycle, restore, admin ledger, phone UI): 308/308 with the committed networksso.js; chatbot.test 182/182; qa:chain 49/49.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+5
-2
@@ -22,7 +22,7 @@
|
||||
<meta name="theme-color" content="#ffd400">
|
||||
<link rel="icon" type="image/svg+xml" href="/art/mark.svg"><link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=7">
|
||||
<link rel="stylesheet" href="/assets/vbb.css?v=8">
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
@@ -31,13 +31,16 @@
|
||||
<div id="adm" hidden>
|
||||
<div class="card"><h2>Status</h2><div class="stats" id="aStats"></div><pre class="mono small scroll" id="aRaw" style="white-space:pre-wrap;max-height:320px"></pre></div>
|
||||
<div class="card" id="pzCard"><h2>Weekly prize payouts</h2><p class="muted small">Each Monday after midnight (Central) the app prepares last week's payout. Nothing is sent until you approve it here, and a week is paid once. Amounts in POL are quoted live and fixed when you approve.</p><div id="pzNow"></div><div id="pzWeeks"></div><div class="row"><button class="btn sec small" id="pzPrep">Prepare last week again</button></div></div>
|
||||
<div class="card" id="bnCard"><h2>Banners: take down or restore</h2><p class="muted small">Find a banner by #id, wallet or username. A takedown hides it everywhere at once; its loop place stays (a house tile shows there) until it would have ridden out, so nobody else moves. It never cycles, never earns network views and never counts for prizes. The reason is shown to the owner. Every takedown and restore goes in the admin ledger below.</p>
|
||||
<div class="share"><input id="bnQ" placeholder="#12, 0x... or username" autocomplete="off" aria-label="Find a banner"><button class="btn sec small" id="bnFind">Find</button></div><div id="bnList"></div></div>
|
||||
<div class="card"><h2>Admin ledger (takedowns and restores)</h2><div class="scroll" id="aActions"></div></div>
|
||||
<div class="card"><h2>Rewards by member</h2><div class="scroll" id="aMembers"></div></div>
|
||||
<div class="card"><h2>Ledger (newest first)</h2><div class="scroll" id="aLedger"></div></div>
|
||||
</div>
|
||||
<div id="status" class="note" hidden></div>
|
||||
</main>
|
||||
<script src="/assets/common.js?v=9"></script>
|
||||
<script src="/assets/admin.js?v=2"></script>
|
||||
<script src="/assets/admin.js?v=3"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user