Fuel Your Offers member guide at /refuel (Marty, 2026-10-24): the flow drawn in HTML/CSS (works at 390 px), the numbers, the member route, misses, what counts, leader coaching and FAQ, restyled to the site, hero banners/fuel-your-offers-1200x675.jpg as og:image. /refuel without ?t= serves the guide; the games' signed /refuel?t=<token> visit page is unchanged. Added to TRAFFIC_PAGES (game visits with ?t= not counted), the sitemap and the viral-link page list. "How the Refuel streak works" link on the Refuel card (fuel.js) and in the Engine Room (engine-room.js, same file as LinkSpin's).

Engine Room fix: the streak line said "Refuel the other site this cycle" after BOTH sites were refueled; engine.js streakNote() now says "Both engines fueled this cycle: +X% on each", names the other site when only one is done, and quotes next rates when the window is open (test added, 11/11).
Chatbot: CANNED refuel answer + refuelFact point to /refuel, say either site alone keeps the streak, and describe the Pit Stop exactly as refuel.js decides it (another package on a site already refueled this cycle before the window; the other site's first package is the second engine). my.js tags: 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:30 -05:00
parent 974d888314
commit 1b77825256
10 changed files with 293 additions and 16 deletions
+10
View File
@@ -80,6 +80,16 @@ const B = o => E.build(Object.assign({ now: NOW, refuel: rf(), iap: iap(), ls: l
assert.strictEqual(f.goalsMonth, 1, 'Oct 31 11:30 PM CT is October'); assert.strictEqual(f.conv30, 2);
assert.deepStrictEqual([f.parts.bannerSpin.state, f.parts.spinLink.state, f.parts.page.state, f.parts.testing.state], ['green', 'amber', 'amber', 'green']);
});
await t('streak note: both sites refueled says so, one site asks for the OTHER by name, window open quotes the next rates', async () => {
assert.strictEqual(B().streak.note, 'Both engines fueled this cycle: +20% on each.');
assert.ok(!/Refuel the other|Refuel (LinkSpin|InstantAdPay) this cycle/.test(B().streak.note));
const oneIap = rf({ cycle: { month: 2, both: false, iap: { refueled: true, credits: 2000, pct: 15, bonus: 300 }, linkspin: { refueled: false } } });
assert.strictEqual(B({ refuel: oneIap }).streak.note, 'Refuel LinkSpin this cycle for +20% on both.');
const oneLs = rf({ cycle: { month: 2, both: false, iap: { refueled: false }, linkspin: { refueled: true, credits: 2500, pct: 15, bonus: 375 } } });
assert.strictEqual(B({ refuel: oneLs }).streak.note, 'Refuel InstantAdPay this cycle for +20% on both.');
assert.strictEqual(B({ refuel: rf({ windowOpen: true, next: { month: 3, single: 20, both: 30 } }) }).streak.note, 'Window open: next refuel +20% (+30% on each with both).');
assert.strictEqual(B({ refuel: rf({ started: false, active: false, cycle: null, streak: 0 }) }).streak.note, '');
});
await t('the member goal lives with the streak (InstantAdPay); switch off refuses', async () => {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'iap-eng-')); const cfg = { refuelStreak: '1' };
const marks = require(path.join(ROOT, 'marks.js'));