8 lines
975 B
Markdown
8 lines
975 B
Markdown
# 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.
|