Skip to content

feat(lint): page inset guard rails + block flush cards (4.2.2)#15

Open
pedrolivaresanchez wants to merge 1 commit into
mainfrom
fix/page-inset-4.2.2
Open

feat(lint): page inset guard rails + block flush cards (4.2.2)#15
pedrolivaresanchez wants to merge 1 commit into
mainfrom
fix/page-inset-4.2.2

Conversation

@pedrolivaresanchez

Copy link
Copy Markdown
Collaborator

Summary

  • page-missing-inset lint rule: blocks PageHeader without a page inset contract (PageBody, AppShell/RoutedAppShell, Page, or lateral px-* on the root) — fixes agent UIs where titles/tables run flush to the shell edge.
  • card-flush-content lint rule: blocks Card/CardContent with p-0/px-0 holding headings, forms, or tables.
  • Pairs with blueprint cbb63e1 which bakes PAGE_INSET into AppShell and adds the PageBody block.

Test plan

  • bun test — 426 pass
  • Blueprint src scan — 0 false positives on new rules

…e layouts (4.2.2)

Agents keep rendering PageHeader/stats/tables flush to the shell or card edge
because padding was optional and manual. Two lint rules now block the failure
mode: PageHeader without PageBody/AppShell/lateral px-* (page-missing-inset)
and Card/CardContent with p-0/px-0 holding substantive content
(card-flush-content). HOUSE_RULES entries page-inset-required and
card-flush-content.
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