Skip to content

feat(compare): PR3 — grid-of-lanes with labelled pills and mobile cards#28

Closed
BunsDev wants to merge 2 commits into
feat/section-overhaul-quickstartfrom
feat/section-overhaul-compare
Closed

feat(compare): PR3 — grid-of-lanes with labelled pills and mobile cards#28
BunsDev wants to merge 2 commits into
feat/section-overhaul-quickstartfrom
feat/section-overhaul-compare

Conversation

@BunsDev

@BunsDev BunsDev commented Jul 7, 2026

Copy link
Copy Markdown
Member

PR3 of the section overhaul — Compare

Stacked on #27 (QuickStart) → #26 (foundation). Merge those first.

Replaces the fragile <table> + single shared detail panel with a CSS-grid
pseudo-table of independently-expandable capability lanes.

What changed

  • Labelled verdict pills (Yes / Limited / No) replace the ambiguous circular marks — colourblind-safe via distinct text and border-style (solid green / solid violet / dashed muted), not hue alone.
  • Always-visible takeaways: every lane carries a one-line summary, so rows have identity before any click.
  • Per-lane accordion: each lane expands its own deep-dive (multi-open), via an animated grid-template-rows disclosure; arrow-key nav retained.
  • Continuous Coven rail: the "best fit" column is one unbroken highlighted band — an instant scannable streak of green "Yes".
  • Real mobile layout: at ≤720px the matrix reflows into stacked capability cards (option labels become visible, Coven row tinted) instead of a shrunk table.
  • Frame uses the shared .panel; focus unified via --oc-focus-ring.

Note

The disclosure keys off the external .js-on class; Astro would scope that to the component, so it's wrapped in :global(.js-on) to match <html> (verified via computed styles — closed lanes collapse to 0px).

Verification

  • npm run build ✓ · npm run check ✓ · no console errors (CDP).
  • Desktop + 390px mobile captures confirm pills, rail, takeaways, expand/collapse, chevron rotation, and the mobile card reflow.

🤖 Generated with Claude Code

BunsDev and others added 2 commits July 6, 2026 23:50
Browser font-size preferences now scale all type (verified identical at
16px root, scaling at 20px root). Structural dimensions stay px.
Compare.astro intentionally skipped — it has an in-flight redesign from
a parallel session; its font sizes get converted when that work lands.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace the fragile <table> + single shared detail with a CSS-grid
pseudo-table of independently-expandable capability lanes.

- Verdict pills (Yes / Limited / No) replace the ambiguous circular
  marks; colourblind-safe via distinct text + border-style, not hue.
- Every lane shows an always-visible one-line takeaway, so rows have
  identity before any click; each lane expands its own deep-dive
  (multi-open accordion via an animated grid-rows disclosure).
- The Coven column is one continuous highlighted "best fit" rail.
- At <=720px the matrix reflows into real stacked capability cards
  (option labels become visible, Coven row tinted) — not a shrunk table.
- Keeps the arrow-key nav; frame uses the shared .panel; focus ring
  unified via --oc-focus-ring.

Note: the disclosure rule keys off the external .js-on class, which
Astro would otherwise scope to the component — wrapped in :global(.js-on)
so it matches <html>.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 7, 2026 04:54
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
coven Ready Ready Preview Jul 7, 2026 4:54am
coven-landing Ready Ready Preview Jul 7, 2026 4:54am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is the “Compare” section overhaul, replacing the previous table + shared detail panel interaction with a CSS-grid “lane” matrix where each capability can expand independently, with clearer labelled verdict pills and a dedicated mobile card layout. It also standardizes many font-size declarations across the site from px to equivalent rem values.

Changes:

  • Rebuild Compare into a grid-of-lanes with per-lane accordion details, labelled verdict pills (Yes/Limited/No), and always-visible takeaways.
  • Add a ≤720px mobile reflow to stacked capability cards (option labels visible, Coven lane styling retained).
  • Convert many UI font sizes from px to equivalent rem values across global and section/page styles for better scaling.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/styles/global.css Converts many font sizes to rem to improve typographic scaling while keeping existing visual sizes.
src/pages/terms.astro Converts local page typography from px to rem.
src/pages/privacy.astro Converts local page typography from px to rem (including table text sizing).
src/components/Testimonial.astro Converts component typography from px to rem.
src/components/HowItWorks.astro Converts component typography from px to rem.
src/components/Compare.astro Major Compare rebuild: grid pseudo-table, labelled pills, per-lane details, mobile cards, and updated interaction JS.
src/components/Architecture.astro Converts component typography from px to rem.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +132 to 136
function setOpen(btn, open) {
const detail = document.getElementById(btn.getAttribute('aria-controls'));
btn.setAttribute('aria-expanded', open ? 'true' : 'false');
if (detail) detail.classList.toggle('is-open', open);
}
Comment on lines +251 to 254
:global(.js-on) .cmp-detail {
grid-template-rows: 0fr;
transition: grid-template-rows var(--dur-ui) ease;
}
@BunsDev

BunsDev commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Superseded by #34 — a concurrent session had interleaved two unrelated commits (px→rem conversion, multi-screen support) into this stack. Re-cut cleanly in an isolated worktree with only the six signed overhaul commits. Closing in favour of #34.

@BunsDev BunsDev closed this Jul 7, 2026
@BunsDev
BunsDev deleted the feat/section-overhaul-compare branch July 7, 2026 11:20
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.

2 participants