975 B
975 B
LESSONS.md — Polaris Task Force
Distilled rules for future sessions. Format per lesson-capture skill: trigger, rule, rationale.
2026-10-13 — New (frontend) pages must own their page padding
- Type: correction
- Lesson: Every page under
src/app/(frontend)/renders its content inside a root wrapper that includesp-5(convention:<div className="p-5 flex flex-col gap-6">, addmax-w-*when the page wants a width cap). The(frontend)layout provides the sidebar/header shell but NO content padding, so a page root withoutp-5renders flush against the header and sidebar. Copy the wrapper from a sibling page (e.g.logistics/page.tsx) when creating a new route. - Why: The Garage page shipped with
flex flex-col gap-6and no padding; user had to annotate it in the browser ("contents touching the header and sidebar"). ~55 existing pages already follow thep-5convention, so the omission is obvious the moment you compare siblings.