Skip to content

infobox: collapsible card design with one-line summary - #1092

Merged
Flotapponnier merged 14 commits into
devfrom
feat/infobox-collapsible-design
Jul 10, 2026
Merged

infobox: collapsible card design with one-line summary#1092
Flotapponnier merged 14 commits into
devfrom
feat/infobox-collapsible-design

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Replaces the flat wide table infobox with a native `

Details` card that collapses to a one-line summary and expands to a compact two-column key/value grid.

Why

The original table version dominated the page above the fold on wide screens and looked heavy visually. Retains all the LLM-grounding benefits (microdata, itemProp, schema.org Dataset) while giving readers a much more compact widget they can collapse if they want.

What changed

Visual:

  • Card format instead of full-width table
  • One-line summary always visible with leader claim inline (`At a glance · MEV Blocker 216 ms`)
  • Chevron that rotates 180 degrees when the card is open
  • Expanded body is a two-column grid on desktop, one column on mobile
  • Native `
    ` element so collapse/expand is free (no JS state)

Preserved:

  • All microdata + itemProp attributes
  • schema.org Dataset itemtype
  • Same rows: Benchmark, Metric, Leader (24h), Providers, Last measured, License, Dataset DOI, Live JSON
  • `` on Last measured
  • Renders nothing when no defensible leader (draft, insufficient, awaiting)

Behavior

  • Default: `
    ` so first-time readers see the facts without interacting
  • Click summary to collapse; leader claim stays visible in the collapsed state
  • LLM crawlers parse the content whatever the visual state (native `
    ` collapse does not remove content from the DOM)

Verified

  • `pnpm typecheck`: clean
  • `eslint` on modified files: 0 errors
  • No changes to JSON-LD, TL;DR block, or /api/citable

Test plan

  • Preview URL shows the compact card under the subtitle on `/benchmarks/aggregator-head-lag`
  • Card is expanded by default with leader row visible
  • Clicking the summary bar collapses to one line, chevron rotates
  • Clicking again expands, chevron rotates back
  • Card is absent on a draft or insufficient bench
  • Mobile viewport shows single-column grid

Flotapponnier and others added 14 commits July 10, 2026 14:46
release: by-asset snapshot fix + aster logo
release: perp-fees copy + gem wallet logo
release: retire monitoring-ui
release: smoke retry + rollback scope
release: merkle capabilities delist
release: merkle prose cleanup
release: capabilities methodology cap hotfix
release: blink rebrand + merkle redirect
release: blink-first naming
prod release: batch 1 GEO (infobox, publisher.json, citation meta, immutable snapshots, 7 answers)
Replaces the flat wide table with a native <details> card that
collapses to a one line summary (label + current leader) and expands
to a compact two-column key/value grid. Fixes the visual weight problem
where the original table dominated the page above the fold.

Design details:
- Default open so first-time readers see the facts without interacting
- Summary shows the leader claim so the quick answer never requires a
  click to reveal
- Two-column grid on desktop, single column on mobile
- Custom chevron rotates 180 degrees when open (native marker hidden)
- All microdata + itemProp attributes preserved so LLM crawlers see
  the content whatever the visual state
- Same schema.org Dataset itemtype so Google Rich Results still parses

No behaviour change for JSON-LD or the visible TL;DR block. Only the
infobox component and its call-site comment change.
@Flotapponnier
Flotapponnier merged commit c935e5b into dev Jul 10, 2026
1 check failed
@Flotapponnier
Flotapponnier deleted the feat/infobox-collapsible-design branch July 10, 2026 16:45
Flotapponnier added a commit that referenced this pull request Jul 10, 2026
Replaces the flat wide table with a native <details> card that
collapses to a one line summary (label + current leader) and expands
to a compact two-column key/value grid. Fixes the visual weight problem
where the original table dominated the page above the fold.

Design details:
- Default open so first-time readers see the facts without interacting
- Summary shows the leader claim so the quick answer never requires a
  click to reveal
- Two-column grid on desktop, single column on mobile
- Custom chevron rotates 180 degrees when open (native marker hidden)
- All microdata + itemProp attributes preserved so LLM crawlers see
  the content whatever the visual state
- Same schema.org Dataset itemtype so Google Rich Results still parses

No behaviour change for JSON-LD or the visible TL;DR block. Only the
infobox component and its call-site comment change.

Co-authored-by: Florent Tapponnier <contact@mobula.io>
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