Files
rm-circle-team-router/check_loginads.mjs
T
martbost 34480d444e Dashboard: let members see what a nudge actually says before and after sending
A member sent a nudge to #102, then went looking for what had gone out. The
only feedback was a small "Delivered to their dashboard" note, so she checked
her clipboard - which still held the unrelated "Copy plain-English summary"
text describing her OWN position. She reasonably concluded the nudge had sent
her position instead of the recipient's.

It had not: the message log shows #34 -> #102 carrying #102's own numbers.
The feature was right and the feedback was wrong, which is its own kind of
bug - a member who cannot verify what they sent will assume the worst.

Every nudge now has a Preview button that names the recipient and shows the
exact text before sending, and on success the panel shows what was sent and
to whom rather than a bare "Delivered".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-31 09:42:59 -05:00

19 lines
1.1 KiB
JavaScript

import pkg from 'file:///D:/Projects/MarketingAgent/qa-tester/node_modules/playwright/index.js';
const { chromium } = pkg;
const b = await chromium.connectOverCDP('http://127.0.0.1:9222');
const page = await b.contexts()[0].newPage();
await page.setViewportSize({ width: 1500, height: 1000 });
await page.goto('https://www.adrevsplit.com/aradmin/admin.php?b=4411', { waitUntil:'domcontentloaded', timeout:45000 });
await page.waitForTimeout(2500);
const r = await page.evaluate(() => {
const rows = [...document.querySelectorAll('table tr')].map(tr =>
[...tr.querySelectorAll('td,th')].map(td => td.innerText.replace(/\s+/g,' ').trim()));
const links = [...document.querySelectorAll('a[href*="rmcircle"], a[href*="join"]')].map(a=>a.getAttribute('href'));
return { rows: rows.filter(r2=>r2.length>3).slice(0,14), links: [...new Set(links)] };
});
console.log('=== approved login ads ===');
r.rows.forEach(x => console.log(' ' + x.join(' | ').slice(0,150)));
console.log('\n=== destination links found ===');
r.links.forEach(l => console.log(' ' + l));
await page.close(); await b.close();