Overview of the Button & Action-Area Redesign Spec (v2)
mainThe Button & Action-Area Redesign Spec (v2) defines the visual and behavioral requirements for controls in the refchecker web-ui article-level action area. The goal is to achieve visual consistency, click-state stability, and proper grouping/rhythm across all interactive elements.
Key Requirements
- R1 — Visual consistency: All pills (retraction status, headers, assistant triggers, AI pills) must share a single token system for height, padding, radius, fonts, and borders.
- R2 — Click-state stability: Controls must not mutate their geometry (width, height, border-radius, or border) when clicked. Only inner content (e.g., swapping an icon for a spinner) is permitted to change.
- R3 — Grouping & rhythm: Controls must align on a shared baseline, share vertical rhythm, and follow defined max-width and caption placement rules.
Scope of Affected Components
This spec applies to the controls located between the Stats/health row and the References/Corrections tabs in web-ui/src/components/MainPanel/MainPanel.jsx:
- Retraction status pill (
RetractionCheck.jsx) - Gap-finder collapsible header (
GapFinder.jsx) - Citation-numbering split-button (
CitationIntegrity.jsx) - Article assistant (
ArticleAssistant.jsx) - AI-likelihood expandable row (
AIDetectionPanel.jsx)