From cecf35fcc1944473ec0e126b4e44445fc8e495c3 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Tue, 13 Oct 2026 16:43:16 -0400 Subject: [PATCH] docs: record frontend page padding convention in LESSONS.md --- LESSONS.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 LESSONS.md diff --git a/LESSONS.md b/LESSONS.md new file mode 100644 index 00000000..f49be176 --- /dev/null +++ b/LESSONS.md @@ -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: `
`, 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.