Fuel Your Offers member guide at /refuel (Marty, 2026-10-24): LinkSpin-first wording (Credits, Ads, Banner Spin), same rules as InstantAdPay's refuel.js, flow drawn in HTML/CSS (works at 390 px), pub.css look, hero og:image banners/fuel-your-offers-1200x675.jpg, refuel-guide.js opens join/member/off-site links in a new tab (with ?ref) when framed. Route + TRAFFIC_PAGES + sitemap; Training entry (catalog/training.json "refuel-guide"); "How the Refuel streak works" link on the Monthly Refuel panel and in the Engine Room.

Fixes: Engine Room streak line no longer asks for the other site once both are refueled (engine.js + engine-room.js copied from InstantAdPay, byte-identical). Ads-screen Monthly Refuel rows had no spacing ("InstantAdPay+30%"): own flex row style. Load into my Banner Spin: size checkboxes, pre-ticked to what fits the tier (728x90 + 300x250 on an empty Starter), and kitspin.js returns one plain message: what loaded, what did not and why (tier holds N Banner Spins), and what to do; /api/my/kits adds spinRoom. Test added (refuel-kit 6/6).
Chatbot CANNED + refuelFact point to /refuel. fuel.js + engine-room.js ?v=20261024rg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-24 08:07:32 -05:00
parent fee138bbc1
commit e5fb985c6b
14 changed files with 379 additions and 22 deletions
+12
View File
@@ -52,6 +52,18 @@ function world(opts) {
assert.strictEqual(b.label, 'Refuel Kit 2026-11'); assert.strictEqual(b.target, 'https://linkspin.app/join/sam'); assert.ok(/^\/uploads\/[a-f0-9]{24}\.png$/.test(b.image));
assert.ok(fs.existsSync(path.join(W.up, b.image.slice(9)))); assert.strictEqual(b.w, 728); assert.ok(b.bytes <= W.BS.MAX_BYTES);
});
await t('Starter tier: the result says up front what loaded, what did not and why, and what to do; the panel pre-picks 728x90 + 300x250', async () => {
const W = world(); const KS = require(path.join(ROOT, 'kitspin.js'));
const room = await KS.room('s@x.test', W.BS);
assert.deepStrictEqual([room.tier, room.spins, room.used, room.all], ['Starter', 2, 0, false]);
assert.deepStrictEqual(room.suggested, ['728x90', '300x250']);
const r = await W.load();
assert.ok(/^Loaded: 728x90 \(new Banner Spin "Refuel Kit 728x90"\) and 300x250/.test(r.message), r.message);
assert.ok(/Not loaded: 468x60 and 160x600\. Your Starter tier holds 2 Banner Spins/.test(r.message), r.message);
assert.ok(/pick the sizes you want most/.test(r.message) && /Builder .* holds 5/.test(r.message), r.message);
const r2 = await W.load({ sizes: ['728x90', '300x250'] }); assert.ok(/^Loaded: 728x90 \(already in/.test(r2.message) && !/Not loaded/.test(r2.message), r2.message);
const after = await KS.room('s@x.test', W.BS); assert.deepStrictEqual(after.suggested, ['728x90', '300x250'], 'Banner Spins with room stay ticked');
});
await t('loading the same kit twice adds nothing twice', async () => {
const W = world(); await W.BS.create('s@x.test', { name: 'L', size: '728x90' }); await W.BS.create('s@x.test', { name: 'M', size: '300x250' });
await W.load({ sizes: ['728x90', '300x250'] }); const r2 = await W.load({ sizes: ['728x90', '300x250'] });