Skip to content

feat: bring the guide in line with the app UI pass and rework the landing page - #20

Merged
musa-kal merged 2 commits into
mainfrom
ui-overhaul-2026-11-21
Nov 21, 2026
Merged

musa-kal merged 2 commits into
mainfrom
ui-overhaul-2026-11-21

Conversation

@musa-kal

@musa-kal musa-kal commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Intent

The owner asked for the Potluck user guide to be brought in line with a UI pass on the Potluck app (Fermulate/potluck, branch ui-overhaul-2026-11-21) and to get its own visual polish: fix UI quirks and defects, make it digestible, unique and fun while staying a calm reference, and make "what do I do next" obvious on the landing and getting started pages.

Deliberate decisions:

  • Content follows the app's code: the Home first steps card ("Set the table"), the Settle up button in the group header, Create a group on the no-groups screens, the not-found page, "Search" as the phone placeholder of the expense search, and RSVPs closing at the RSVP by date (the guide previously said answers could change any time, which the code contradicts).
  • Sections behind the app's eight new help links were improved to answer the question each link asks. No heading used by the app's help topics was renamed, and none may be.
  • Landing page: hero reduced to title, tagline and two buttons, then a "Set the table" card for new readers, an "Already at the table?" list for returning ones, then the full menu. New components FirstSteps, JumpList, Landing, ColorKey, and a 404 page.
  • Colour: an earlier draft used a blue action colour copied from an app draft. The owner rejected blue because it clashes with the warm paper background, so links and actions are tomato again as on main, tip asides are olive, notes saffron, caution and danger tomato. Step counters use a darker tomato (#cf3d24) in light mode because main's #e8492f with white fails AA. The current sidebar item is a tomato pill. The colour key lists red, green, yellow and grey, with no blue.
  • Fixes: four-column tables crushed on phones now scroll sideways, footer text no longer runs together, long links wrap.
  • Known and accepted: app screenshots in public/screenshots still show the app's older colours and will be retaken separately; the repo has no documented way to regenerate them, so do not treat stale screenshots as a blocker and do not fabricate images.

Constraints: no em dashes or en dashes anywhere. No AI attribution in files, commits or PR text. This PR should merge after the matching app PR in Fermulate/potluck.

What Changed

  • Landing and navigation: the hero is cut down to title, tagline and two buttons. Below it, a new Landing component pairs a "Set the table" first steps card (FirstSteps) with an "Already at the table?" jump list (JumpList) above the full menu. Getting started gains the same first steps card, "Your first steps", "What the colors mean" (new ColorKey: red, green, yellow, grey) and "Where to next" sections. A guide 404 page is added (404.mdx, reusing the hero without the phone screenshot).
  • Content matched to the app: documents the Home "Set the table" card, the Settle up button in the group header, Create a group on the no-groups screens of Groups, Add expense and Plan something, the app's not-found page, "Search" as the phone placeholder for expense search, and how Your balance is counted. RSVP text now says answers close at the RSVP by date (it previously said they could change any time). The Plans page sections and Start a poll intro are expanded.
  • Styling and fixes: tomato stays the link and action colour, with a new --pl-tomato-strong token (#d63f25 in light mode) for step counters and accent fills. Tip asides are olive, notes saffron, caution and danger tomato, and the plum tokens are removed. The current sidebar item is a tomato pill. Tables with four or more columns get a minimum column width so they scroll sideways on phones, long links wrap, and the footer licence line gets its missing space. README file map updated for the new components and 404 page.

Credits: Musa Kaleem (directed), Ferrin (Ferrin-Y), and Noor (noorelmosrati).

Risk Assessment

✅ Low: Docs and styling only; the round 1 fixes are verified: unused prop and tokens are gone with no remaining references, light tomato-strong #d63f25 matches the app token and gives about 4.6:1 with white, and the reworded first steps, Coming up and zero-amount text matches home-dashboard.tsx and balance-hero.tsx on the app branch.

Testing

Installed dependencies, ran the production build (exit 0, 27 pages, link validator reports all internal links and hashes valid), served it with astro preview and drove it with Playwright: landing click-throughs, getting started content and colour key, 404 page, computed colours and contrast in light and dark, phone table scrolling, footer spacing, long-link wrapping, and all 54 help-link targets taken from the app branch's topics.ts. Seventeen screenshots captured. Everything passed. Two observations, neither blocking: the light step counter renders #d63f25 (the app token, per the later review decision, 4.57:1 with white) instead of the intent's #cf3d24, and the landing hero still shows the phone screenshot that main had (the receipt list is gone). App screenshots inside the guide still show old colours, as accepted in the intent. Preview server and browser stopped; dist, .astro and temp files removed; worktree clean.

  • Live validation: ✅ go - 9 of 9 scenarios driven live against the product
Scenario Result Live Evidence
Reader opens the landing page and sees hero (title, tagline, two buttons), then Set the table, then Already at the table?, then the full menu; every entry point leads to the right page ✅ pass live 01-landing-desktop-light.png, 12-landing-phone-light.png, 08-landing-desktop-dark.png. Heading order: How Potluck works, Set the table, Already at the table?, Everything in the guide. Clicking Get sta…
Reader on Getting started sees what to do next: Set the table card at the top, Your first steps section matching the app card, and a Where to next list ✅ pass live 02-getting-started-desktop-light.png, 14-getting-started-phone-light.png. Rendered text includes 'Set the table', '1 of 3 done', 'Create a group', 'Add people', Members tab, 'Hide these steps', per-br…
Colour key lists red, green, yellow and grey with no blue, and no blue appears anywhere in the guide ✅ pass live 03-color-key-light.png. Dots computed as rgb(232,73,47), rgb(74,132,49), rgb(245,181,61), rgb(113,103,89). Blue scan across 26 pages hit only Starlight's visually hidden skip link (browser default col…
Links and actions are tomato, sidebar current item is a tomato pill, tip asides olive, notes saffron, caution and danger tomato, step counters pass AA in light mode ✅ pass live 04-step-counters-light.png, 05-sidebar-current-pill-light.png, 06-aside-note/tip/caution-light.png, 09-getting-started-desktop-dark.png. Light: link rgb(188,55,32) on paper 5.22:1; step counter white…
On a 375px phone, four-column tables scroll sideways with readable columns and no page overflows horizontally ✅ pass live 10-phone-wide-table-roles.png, 11-phone-wide-table-roles-scrolled.png. Five four-column tables (roles, recurring, balances, best-time, notifications): scrollWidth 544 in a 328px box, overflow-x auto,…
Footer text no longer runs together and a very long unbroken link wraps instead of widening the page (adversarial) ✅ pass live 13-footer-phone.png, 15-phone-long-link-wraps.png. Footer reads 'Guide text and screenshots under CC BY-SA 4.0.' A 240-character unbroken link injected into page content wrapped over 8 lines with 0px…
Reader who opens a missing URL gets the custom not-found page with working ways back ✅ pass live 07-404-desktop-light.png. /no-such-page-xyz/ and /groups/nope/deeper/ return HTTP 404 with 'That page wandered off.'; Go to the guide lands on /, Troubleshooting lands on /troubleshooting/; no phone i…
Every help link in the app branch resolves to a heading in the guide (no app help heading renamed) ✅ pass live 54 targets extracted from apps/web/src/features/help/topics.ts on Fermulate/potluck@ui-overhaul-2026-11-21; each had a matching element id on the rendered page, 0 missing. Build link validator: 'All i…
Guide content matches the app: RSVPs close at the RSVP by date, Settle up in the group header, Create a group on no-groups screens, Search phone placeholder, not-found text; no en/em dashes or AI attr… ✅ pass live Rendered text: lock-in says 'once it has passed the line reads RSVPs closed ... and the buttons stop working' and the old 'change your answer any time' line is gone; groups says 'Settle up appears in…

Landing, desktop light

Landing, desktop dark

Landing, phone

Getting started, desktop light

Getting started, desktop dark

Getting started, phone

Colour key (red, green, yellow, grey)

Step counters, light

Sidebar current item tomato pill

Note aside (saffron)

Tip aside (olive)

Caution aside (tomato)

404 page

Phone: four-column roles table

Phone: roles table scrolled sideways

Phone: footer

Phone: long link wraps

Evidence: Production build log

> [email protected] build
> astro build

03:20:57 [content] Syncing content
03:20:57 [content] Synced content
03:20:57 [types] Generated 1.02s
03:20:57 [build] output: "static"
03:20:57 [build] mode: "static"
03:20:57 [build] directory: {run-worktree}\dist\
03:20:57 [build] Collecting build info...
03:20:57 [build] ✓ Completed in 1.30s.
03:20:57 [build] Building static entrypoints...
03:20:58 [vite] ✓ built in 776ms
03:20:58 [vite] ✓ built in 115ms
03:20:58 [build] Rearranging server assets...

 generating static routes 
03:20:59 [WARN] [content] The collection "i18n" does not exist or is empty. Please check your content config file for errors.
03:20:59 [WARN] [build] Could not render `/404` from route `/[...slug]` as it conflicts with higher priority route `/404`.
03:20:59   ├─ /404.html (+45ms) 
03:20:59   ├─ /account/index.html (+38ms) 
03:20:59   ├─ /balances/index.html (+10ms) 
03:20:59   ├─ /balances/settle-up/index.html (+11ms) 
03:20:59   ├─ /expenses/index.html (+12ms) 
03:20:59   ├─ /expenses/currencies/index.html (+15ms) 
03:20:59   ├─ /expenses/editing/index.html (+10ms) 
03:20:59   ├─ /expenses/receipts/index.html (+8ms) 
03:20:59   ├─ /expenses/recurring/index.html (+10ms) 
03:20:59   ├─ /expenses/search-and-totals/index.html (+11ms) 
03:20:59   ├─ /expenses/splits/index.html (+10ms) 
03:20:59   ├─ /faq/index.html (+8ms) 
03:20:59   ├─ /friends/index.html (+8ms) 
03:20:59   ├─ /getting-started/index.html (+10ms) 
03:20:59   ├─ /groups/index.html (+12ms) 
03:20:59   ├─ /groups/invites/index.html (+10ms) 
03:20:59   ├─ /groups/roles/index.html (+10ms) 
03:20:59   ├─ /groups/settings/index.html (+8ms) 
03:20:59   ├─ /index.html (+7ms) 
03:20:59   ├─ /notifications/index.html (+8ms) 
03:20:59   ├─ /plans/index.html (+7ms) 
03:20:59   ├─ /plans/availability/index.html (+8ms) 
03:20:59   ├─ /plans/best-time/index.html (+6ms) 
03:20:59   ├─ /plans/lock-in/index.html (+8ms) 
03:20:59   ├─ /plans/timeline/index.html (+5ms) 
03:20:59   ├─ /privacy-and-security/index.html (+6ms) 
03:20:59   ├─ /troubleshooting/index.html (+6ms) 
03:20:59 ✓ Completed in 382ms.

03:20:59 [build] ✓ Completed in 1.58s.
03:20:59 [starlight:pagefind] Building search index with Pagefind...
03:21:00 [starlight:pagefind] Found 27 HTML files.
03:21:00 [starlight:pagefind] Finished building search index in 1.16s.

 validating links 

╭─                             ─╮
· All internal links are valid. ·
╰─                             ─╯

03:21:00 [@astrojs/sitemap] `sitemap-index.xml` created at `dist`
03:21:00 [build] 27 page(s) built in 4.07s
03:21:00 [build] Complete!
Evidence: Playwright driver script
async (page) => {
  const B = 'http://127.0.0.1:4399';
  const EV = '~/.no-mistakes/evidence/01M7YJSPM24BJPZJAJQJKDCZ8G/';
  const out = {};
  // Oracle: link targets in apps/web/src/features/help/topics.ts on Fermulate/potluck@ui-overhaul-2026-11-21
  const anchors = ['/expenses/splits/#equal','/expenses/splits/#exact','/expenses/splits/#percent','/expenses/splits/#shares','/expenses/splits/#by-item','/expenses/splits/#adjustment','/expenses/splits/#default-split','/expenses/#several-people-paid','/expenses/#refunds','/expenses/splits/#how-rounding-works','/expenses/currencies/#add-an-expense-in-another-currency','/expenses/currencies/#where-the-rates-come-from','/expenses/recurring/#make-an-expense-repeat','/expenses/recurring/#see-and-manage-repeating-expenses','/expenses/receipts/#who-can-see-a-receipt','/expenses/receipts/#scan-a-receipt','/balances/#simplified-debts','/balances/settle-up/#settle-up','/balances/settle-up/#pay-with-an-app','/balances/settle-up/#remind-someone','/balances/settle-up/#settle-everything-at-once','/balances/settle-up/#settle-up-with-a-friend-across-groups','/account/#payment-methods','/groups/roles/#who-can-do-what','/groups/invites/#change-what-a-link-allows','/groups/settings/#house-rules','/plans/availability/#mouse-touch-and-keyboard','/plans/availability/#the-live-heatmap','/plans/availability/#guest-links','/plans/best-time/#the-rules','/plans/lock-in/#lock-it-in','/account/#calendar-feed','/notifications/#turn-on-push-notifications','/account/#what-happens-to-shared-tabs','/account/#two-step-sign-in','/expenses/search-and-totals/#search-everything','/expenses/search-and-totals/#totals-and-charts','/expenses/editing/#undo-and-restore','/groups/#people-not-on-potluck-yet','/friends/#add-a-friend','/account/#export-your-data','/groups/settings/#import-expenses','/groups/settings/#group-type','/groups/settings/#restore-a-deleted-group','/groups/#group-notes','/expenses/#categories','/expenses/#reading-the-expense-list','/balances/#balances-across-groups','/groups/#create-a-group','/friends/#what-the-totals-mean','/plans/#the-plans-page','/plans/#start-a-poll','/plans/lock-in/#rsvp','/notifications/#the-inbox'];
  const lum = (rgb) => { const m = rgb.match(/[\d.]+/g).slice(0,3).map(Number).map(v=>{v/=255;return v<=0.03928?v/12.92:Math.pow((v+0.055)/1.055,2.4)}); return 0.2126*m[0]+0.7152*m[1]+0.0722*m[2]; };
  const cr = (a,b) => { const x=lum(a),y=lum(b); return +((Math.max(x,y)+0.05)/(Math.min(x,y)+0.05)).toFixed(2); };

  // ---------- Desktop light ----------
  await page.setViewportSize({ width: 1280, height: 900 });
  await page.emulateMedia({ colorScheme: 'light' });
  await page.goto(B + '/');
  await page.evaluate(() => { localStorage.setItem('starlight-theme','light'); });
  await page.reload();
  out.landing = await page.evaluate(() => {
    const hero = document.querySelector('.pl-hero');
    const main = document.querySelector('main');
    return {
      theme: document.documentElement.dataset.theme,
      heroText: hero.querySelector('.pl-hero__text').innerText,
      heroActions: [...hero.querySelectorAll('a')].map(a => [a.textContent.trim(), a.getAttribute('href')]),
      heroOther: [...hero.children].map(c => c.className),
      headingOrder: [...main.querySelectorAll('h1,h2')].map(h => h.textContent.trim()),
      firstSteps: document.querySelector('.pl-first').innerText,
      firstStepsLinks: [...document.querySelectorAll('.pl-first a')].map(a => [a.textContent.replace(/\s+/g,' ').trim(), a.getAttribute('href')]),
      jump: [...document.querySelectorAll('.pl-jump a')].map(a => [a.innerText.replace(/\s+/g,' ').trim(), a.getAttribute('href')]),
      hScroll: document.documentElement.scrollWidth > document.documentElement.clientWidth,
    };
  });
  await page.screenshot({ path: EV + '01-landing-desktop-light.png', fullPage: true });

  await page.locator('.pl-hero a', { hasText: 'Get started' }).click();
  await page.waitForURL('**/getting-started/');
  out.getStartedNav = { url: page.url(), h1: await page.locator('h1').first().innerText() };
  out.jumpNav = [];
  for (const [, href] of out.landing.jump) {
    await page.goto(B + '/');
    await page.locator(`.pl-jump a[href="${href}"]`).click();
    await page.waitForURL('**' + href);
    out.jumpNav.push([href, new URL(page.url()).pathname, await page.locator('h1').first().innerText()]);
  }
  out.firstStepsNav = [];
  for (const [t, href] of out.landing.firstStepsLinks) {
    await page.goto(B + '/');
    await page.locator(`.pl-first a[href="${href}"]`).first().click();
    await page.waitForURL('**' + href);
    const u = new URL(page.url());
    const ok = u.hash ? await page.evaluate((id) => !!document.getElementById(id), u.hash.slice(1)) : true;
    out.firstStepsNav.push([t, u.pathname + u.hash, ok]);
  }

  // ---------- Getting started ----------
  await page.goto(B + '/getting-started/');
  out.gs = await page.evaluate(() => {
    const cs = (el, p) => el ? getComputedStyle(el)[p] : null;
    const cur = document.querySelector('.sidebar-content a[aria-current="page"]');
    const link = document.querySelector('.sl-markdown-content > p a');
    const key = document.querySelector('.pl-key');
    const before = getComputedStyle(document.querySelector('.sl-steps > li'), '::before');
    const h = (id) => { const e = document.getElementById(id); return e ? e.textContent.trim() : null; };
    const all = document.querySelector('.sl-markdown-content').innerText;
    return {
      headings: [h('your-first-steps'), h('what-the-colors-mean'), h('where-to-next'), h('create-an-account')],
      firstStepsCard: document.querySelector('.sl-markdown-content .pl-first')?.innerText,
      colorKey: key?.innerText,
      colorDots: [...key.querySelectorAll('.pl-key__dot')].map(d => getComputedStyle(d).backgroundColor),
      linkColor: cs(link, 'color'),
      bodyBg: cs(document.body, 'backgroundColor'),
      stepBg: before.backgroundColor, stepFg: before.color,
      sidebarCur: cur && { text: cur.textContent.trim(), bg: cs(cur,'backgroundColor'), color: cs(cur,'color'), radius: cs(cur,'borderRadius') },
      whereNext: all.match(/Where to next[\s\S]*/)?.[0],
      firstStepsText: all.match(/When you are new[\s\S]*?still shows it\./)?.[0],
      notInGroup: all.match(/Not in a group yet\?[^\n]*/)?.[0],
    };
  });
  out.gs.stepContrast = cr(out.gs.stepBg, out.gs.stepFg);
  out.gs.linkContrast = cr(out.gs.linkColor, out.gs.bodyBg);
  out.gs.mainTomatoOnWhite = cr('rgb(232,73,47)', 'rgb(255,255,255)');
  await page.screenshot({ path: EV + '02-getting-started-desktop-light.png', fullPage: true });
  await page.locator('.pl-key').scrollIntoViewIfNeeded();
  await page.locator('.pl-key').screenshot({ path: EV + '03-color-key-light.png' });
  await page.locator('.sl-steps').first().screenshot({ path: EV + '04-step-counters-light.png' });
  await page.locator('.sidebar-content').first().screenshot({ path: EV + '05-sidebar-current-pill-light.png' });

  // ---------- Asides, blue scan, help anchors ----------
  const asideSeen = {};
  const pages = ['/getting-started/','/groups/','/groups/invites/','/groups/roles/','/groups/settings/','/friends/','/expenses/','/expenses/splits/','/expenses/currencies/','/expenses/recurring/','/expenses/receipts/','/expenses/editing/','/expenses/search-and-totals/','/balances/','/balances/settle-up/','/plans/','/plans/availability/','/plans/best-time/','/plans/lock-in/','/plans/timeline/','/notifications/','/account/','/privacy-and-security/','/faq/','/troubleshooting/'];
  out.anchorsMissing = [];
  const idsByPage = {};
  out.blueish = [];
  for (const p of ['/', ...pages]) {
    await page.goto(B + p);
    const r = await page.evaluate(() => {
      const res = { ids: [...document.querySelectorAll('.sl-markdown-content [id]')].map(e => e.id), asides: {}, blue: [] };
      for (const k of ['note','tip','caution','danger']) {
        const a = document.querySelector('.starlight-aside--' + k);
        if (a) { const s = getComputedStyle(a); res.asides[k] = { bg: s.backgroundColor, title: getComputedStyle(a.querySelector('.starlight-aside__title')).color }; }
      }
      const isBlue = (c) => { const m = c.match(/[\d.]+/g); if (!m || m.length < 3) return false; const [r,g,b,a=1] = m.map(Number); return a > 0.2 && b > 120 && b > r + 50 && b > g + 30; };
      for (const el of document.querySelectorAll('body *:not(img)')) {
        const s = getComputedStyle(el);
        if (isBlue(s.color) || isBlue(s.backgroundColor) || isBlue(s.borderTopColor)) { res.blue.push(el.tagName + '.' + el.className + ' ' + s.color + ' ' + s.backgroundColor); if (res.blue.length > 3) break; }
      }
      return res;
    });
    idsByPage[p] = r.ids;
    for (const k in r.asides) if (!asideSeen[k]) asideSeen[k] = { page: p, ...r.asides[k] };
    if (r.blue.length) out.blueish.push([p, r.blue]);
  }
  for (const a of anchors) { const [p, id] = a.split('#'); if (!(idsByPage[p] || []).includes(id)) out.anchorsMissing.push(a); }
  out.anchorsChecked = anchors.length;
  out.asides = asideSeen;
  for (const k of ['note','tip','caution']) if (asideSeen[k]) {
    await page.goto(B + asideSeen[k].page);
    const a = page.locator('.starlight-aside--' + k).first();
    await a.scrollIntoViewIfNeeded();
    await a.screenshot({ path: EV + `06-aside-${k}-light.png` });
  }

  // ---------- Content claims ----------
  const text = async (p) => { await page.goto(B + p); return await page.locator('main').innerText(); };
  const sent = (t, re) => (t.match(re) || []).slice(0, 4);
  const lock = await text('/plans/lock-in/');
  out.content = {
    rsvp: sent(lock, /[^\n]*RSVPs closed[^\n]*/g),
    rsvpOldClaimPresent: /You can change your answer any time/.test(lock),
  };
  const groups = await text('/groups/');
  out.content.groupsSettleUp = sent(groups, /[^\n]*Settle up[^\n]*/g);
  out.content.groupsCreate = sent(groups, /[^\n]*Create a group[^\n]*/g);
  const exp = await text('/expenses/');
  out.content.expensesSearch = sent(exp, /[^\n]*\bSearch\b[^\n]*/g);
  const st = await text('/expenses/search-and-totals/');
  out.content.searchTotals = sent(st, /[^\n]*placeholder[^\n]*|[^\n]*on a phone[^\n]*/gi);
  const tr = await text('/troubleshooting/');
  out.content.notFound = sent(tr, /[^\n]*wandered off[^\n]*\n*[^\n]*/g);
  const bal = await text('/balances/');
  out.content.balancesSettle = sent(bal, /[^\n]*Settle up[^\n]*/g);
  const plans = await text('/plans/');
  out.content.plansCreate = sent(plans, /[^\n]*Create a group[^\n]*/g);

  // ---------- 404 ----------
  const resp = await page.goto(B + '/no-such-page-xyz/');
  out.notFound = { status: resp.status(), heroText: await page.locator('.pl-hero').innerText(), actions: await page.locator('.pl-hero a').evaluateAll(as => as.map(a => [a.textContent.trim(), a.getAttribute('href')])), phoneImg: await page.locator('.pl-hero img').count() };
  await page.screenshot({ path: EV + '07-404-desktop-light.png', fullPage: true });
  await page.locator('.pl-hero a', { hasText: 'Go to the guide' }).click(); await page.waitForURL(B + '/');
  out.notFound.homeNav = [new URL(page.url()).pathname, await page.locator('h1').first().innerText()];
  await page.goto(B + '/no-such-page-xyz/');
  await page.locator('.pl-hero a', { hasText: 'Troubleshooting' }).click(); await page.waitForURL('**/troubleshooting/');
  out.notFound.troubleNav = new URL(page.url()).pathname;
  const deep = await page.goto(B + '/groups/nope/deeper/');
  out.notFound.deep = [deep.status(), await page.locator('h1').first().innerText()];

  // ---------- Dark ----------
  await page.evaluate(() => localStorage.setItem('starlight-theme','dark'));
  await page.emulateMedia({ colorScheme: 'dark' });
  await page.goto(B + '/');
  await page.screenshot({ path: EV + '08-landing-desktop-dark.png', fullPage: true });
  await page.goto(B + '/getting-started/');
  out.dark = await page.evaluate(() => {
    const cs = (el, p) => getComputedStyle(el)[p];
    const before = getComputedStyle(document.querySelector('.sl-steps > li'), '::before');
    const cur = document.querySelector('.sidebar-content a[aria-current="page"]');
    return { theme: document.documentElement.dataset.theme, link: cs(document.querySelector('.sl-markdown-content > p a'),'color'), bg: cs(document.body,'backgroundColor'), stepBg: before.backgroundColor, stepFg: before.color, cur: [cs(cur,'backgroundColor'), cs(cur,'color')] };
  });
  out.dark.linkContrast = cr(out.dark.link, out.dark.bg);
  out.dark.stepContrast = cr(out.dark.stepBg, out.dark.stepFg);
  await page.screenshot({ path: EV + '09-getting-started-desktop-dark.png', fullPage: true });

  // ---------- Phone ----------
  await page.evaluate(() => localStorage.setItem('starlight-theme','light'));
  await page.emulateMedia({ colorScheme: 'light' });
  await page.setViewportSize({ width: 375, height: 800 });
  out.phone = { overflowPages: [], tables: [] };
  for (const p of ['/', ...pages, '/no-such-page-xyz/']) {
    await page.goto(B + p);
    const r = await page.evaluate(() => {
      const de = document.documentElement;
      const tables = [...document.querySelectorAll('.sl-markdown-content table')].map(t => {
        const cols = t.querySelectorAll('thead th').length;
        const cellW = Math.min(...[...t.querySelectorAll('th')].map(c => c.getBoundingClientRect().width));
        return { cols, scrollW: t.scrollWidth, clientW: t.clientWidth, overflowX: getComputedStyle(t).overflowX, minCellW: Math.round(cellW) };
      });
      return { over: de.scrollWidth - de.clientWidth, tables };
    });
    if (r.over > 0) out.phone.overflowPages.push([p, r.over]);
    for (const t of r.tables) if (t.cols >= 4) out.phone.tables.push([p, JSON.stringify(t)]);
  }
  await page.goto(B + '/groups/roles/');
  const tbl = page.locator('.sl-markdown-content table').first();
  await tbl.scrollIntoViewIfNeeded();
  await page.screenshot({ path: EV + '10-phone-wide-table-roles.png' });
  out.phone.scrolled = await tbl.evaluate(t => { t.scrollLeft = 200; return t.scrollLeft; });
  await page.screenshot({ path: EV + '11-phone-wide-table-roles-scrolled.png' });
  await page.goto(B + '/');
  await page.screenshot({ path: EV + '12-landing-phone-light.png', fullPage: true });
  out.phone.footer = await page.locator('.pl-footer').innerText().catch(async () => await page.locator('footer').last().innerText());
  await page.locator('footer').last().scrollIntoViewIfNeeded();
  await page.locator('footer').last().screenshot({ path: EV + '13-footer-phone.png' });
  await page.goto(B + '/getting-started/');
  await page.screenshot({ path: EV + '14-getting-started-phone-light.png', fullPage: true });
  // adversarial: a very long unbroken link in guide content must wrap, not widen the page
  out.phone.longLink = await page.evaluate(() => {
    const p = document.querySelector('.sl-markdown-content > p');
    const a = document.createElement('a'); a.href = '#'; a.textContent = 'https://potluck.fermulate.com/' + 'averyveryverylongunbrokenpathsegment'.repeat(6);
    p.append(' ', a);
    const de = document.documentElement;
    return { over: de.scrollWidth - de.clientWidth, lineBoxes: a.getClientRects().length, wrap: getComputedStyle(a).overflowWrap };
  });
  await page.evaluate(() => window.scrollTo(0, 0));
  await page.screenshot({ path: EV + '15-phone-long-link-wraps.png' });
  return out;
}

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 4 issues found → auto-fixed ✅
  • ⚠️ src/components/FirstSteps.astro:9 - Simplification: the as?: &#39;h2&#39; | &#39;h3&#39; prop is a new option no caller uses. Both call sites (src/components/Landing.astro:9 and src/content/docs/getting-started.mdx:15) take the default h2, and no intent requirement needs a second heading level. Recommend removing the prop and hardcoding h2.
  • ⚠️ src/styles/theme.css:31 - Simplification: --pl-on-olive (dark at line 31, light at line 116) is introduced but referenced nowhere in src; no intent requirement needs it. Recommend removing it. Related leftovers from this change: --pl-hero-tomato (lines 40, 124) lost its only consumer when the hero receipt was removed, and the --pl-plum* tokens lost theirs when caution asides moved to tomato, so the header comment 'Plum stays a quiet accent' (line 5) now describes a colour the guide never uses.
  • ℹ️ src/content/docs/getting-started.mdx:124 - Checked against the app branch (apps/web/src/features/dashboard/home-dashboard.tsx:44-48,169). Two statements are slightly broader than the code. (1) Line 124 and src/content/docs/plans/timeline.mdx:39 say Home leaves out Coming up when you are not in a group; the app only does so while the first steps card is showing, so after tapping Hide these steps with zero groups, Coming up is back. (2) Line 136 says the card goes away once a group has more than one member; the app also drops it for anyone with a one-on-one friend tab or an archived group. Rare for readers; decide whether the wording should cover them. All other checked claims match the app: card strings, 1 of 3 done, Members tab target, per-browser hide, header Settle up/Invite rules, RSVPs closed, Home RSVP cutoff, Plans section order and chips, Search placeholder, no-groups screens, not-found text, balance card lines, and all help-topic anchors still resolve.
  • ℹ️ src/styles/theme.css:106 - Light --pl-tomato-strong is #cf3d24 while the app's tomatoStrong in packages/tokens/src/color.ts is #d63f25 (also AA with white, about 4.6:1). The intent names #cf3d24 explicitly, so this is accepted, but it makes three statements inexact: 'Values follow packages/tokens/src/color.ts' (theme.css:6), the same claim in README.md:32, and 'The swatches use the same values as the app' context in ColorKey. --pl-hero-action (line 125) does use the app's #d63f25.

🔧 Fix applied.
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 9 of 9 scenarios driven live against the product
Scenario Result Live Evidence
Reader opens the landing page and sees hero (title, tagline, two buttons), then Set the table, then Already at the table?, then the full menu; every entry point leads to the right page ✅ pass live 01-landing-desktop-light.png, 12-landing-phone-light.png, 08-landing-desktop-dark.png. Heading order: How Potluck works, Set the table, Already at the table?, Everything in the guide. Clicking Get sta…
Reader on Getting started sees what to do next: Set the table card at the top, Your first steps section matching the app card, and a Where to next list ✅ pass live 02-getting-started-desktop-light.png, 14-getting-started-phone-light.png. Rendered text includes 'Set the table', '1 of 3 done', 'Create a group', 'Add people', Members tab, 'Hide these steps', per-br…
Colour key lists red, green, yellow and grey with no blue, and no blue appears anywhere in the guide ✅ pass live 03-color-key-light.png. Dots computed as rgb(232,73,47), rgb(74,132,49), rgb(245,181,61), rgb(113,103,89). Blue scan across 26 pages hit only Starlight's visually hidden skip link (browser default col…
Links and actions are tomato, sidebar current item is a tomato pill, tip asides olive, notes saffron, caution and danger tomato, step counters pass AA in light mode ✅ pass live 04-step-counters-light.png, 05-sidebar-current-pill-light.png, 06-aside-note/tip/caution-light.png, 09-getting-started-desktop-dark.png. Light: link rgb(188,55,32) on paper 5.22:1; step counter white…
On a 375px phone, four-column tables scroll sideways with readable columns and no page overflows horizontally ✅ pass live 10-phone-wide-table-roles.png, 11-phone-wide-table-roles-scrolled.png. Five four-column tables (roles, recurring, balances, best-time, notifications): scrollWidth 544 in a 328px box, overflow-x auto,…
Footer text no longer runs together and a very long unbroken link wraps instead of widening the page (adversarial) ✅ pass live 13-footer-phone.png, 15-phone-long-link-wraps.png. Footer reads 'Guide text and screenshots under CC BY-SA 4.0.' A 240-character unbroken link injected into page content wrapped over 8 lines with 0px…
Reader who opens a missing URL gets the custom not-found page with working ways back ✅ pass live 07-404-desktop-light.png. /no-such-page-xyz/ and /groups/nope/deeper/ return HTTP 404 with 'That page wandered off.'; Go to the guide lands on /, Troubleshooting lands on /troubleshooting/; no phone i…
Every help link in the app branch resolves to a heading in the guide (no app help heading renamed) ✅ pass live 54 targets extracted from apps/web/src/features/help/topics.ts on Fermulate/potluck@ui-overhaul-2026-11-21; each had a matching element id on the rendered page, 0 missing. Build link validator: 'All i…
Guide content matches the app: RSVPs close at the RSVP by date, Settle up in the group header, Create a group on no-groups screens, Search phone placeholder, not-found text; no en/em dashes or AI attr… ✅ pass live Rendered text: lock-in says 'once it has passed the line reads RSVPs closed ... and the buttons stop working' and the old 'change your answer any time' line is gone; groups says 'Settle up appears in…
  • npm ci then npm run build (exit 0, starlight-links-validator with errorOnInvalidHashes: all internal links valid)
  • npx astro preview --port 4399 --host 127.0.0.1 serving dist, driven with Playwright via drive.js (evidence dir)
  • Landing at 1280px light and dark, 375px light: hero text and buttons, heading order, clicked Get started, all 5 Already at the table links, all 4 Set the table links
  • Getting started: Set the table card, Your first steps, What the colors mean, Where to next rendered; computed link, step counter, sidebar pill, aside colours and WCAG contrast
  • Scan of every page's computed colours for blue
  • gh api repos/Fermulate/potluck/contents/apps/web/src/features/help/topics.ts?ref=ui-overhaul-2026-11-21 to get 54 help link targets, each checked for a matching element id in the rendered page
  • GET /no-such-page-xyz/ and /groups/nope/deeper/ (HTTP 404, custom page), clicked both 404 buttons
  • 375px: horizontal overflow check on all 27 routes, four-column tables on 5 pages measured and scrolled, footer text, injected 240-character unbroken link
  • Rendered text checks on /plans/lock-in/, /groups/, /expenses/, /balances/, /plans/, /troubleshooting/ for the app-aligned content
  • Node scan of built dist (html/css/js) plus diff added lines and commit messages for en/em dashes and AI attribution: none
⚠️ **Document** - 1 info
  • ℹ️ src/styles/theme.css:101 - Light --pl-tomato-strong is #d63f25 (the app's tomatoStrong), while the intent text names #cf3d24 for step counters. The last commit ("match app tomato") moved it to the app value, which makes the 'Values follow packages/tokens/src/color.ts' statements in theme.css and README.md exact. No doc in the repo cites the hex, so nothing is stale here; note the PR description should say #d63f25, not #cf3d24.
✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

- Getting started covers the Home first steps card and what each colour
  means in the app.
- Landing page offers a path for new readers and one for returning ones.
- Pages updated for the header Settle up button, the no-groups buttons,
  the not-found page and how RSVPs close at the RSVP by date.
- Sections behind the app's new help links answer the question each link
  asks. No heading was renamed.
- Fixes: tables crushed on phones, footer text running together, long
  links not wrapping, a not-found page for the guide.
@musa-kal
musa-kal merged commit e32a28c into main Nov 21, 2026
2 checks passed
@musa-kal
musa-kal deleted the ui-overhaul-2026-11-21 branch November 21, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant