1
0
Fork 0

docs: record frontend page padding convention in LESSONS.md

This commit is contained in:
Jason Fraley 2026-10-13 16:43:16 -04:00
parent 61ac2122d6
commit cecf35fcc1

8
LESSONS.md Normal file
View file

@ -0,0 +1,8 @@
# 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 includes `p-5` (convention: `<div className="p-5 flex flex-col gap-6">`, add `max-w-*` when the page wants a width cap). The `(frontend)` layout provides the sidebar/header shell but NO content padding, so a page root without `p-5` renders 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-6` and no padding; user had to annotate it in the browser ("contents touching the header and sidebar"). ~55 existing pages already follow the `p-5` convention, so the omission is obvious the moment you compare siblings.