Remove the blanket .agent/ gitignore so the phase roadmap, user stories, reports, and PLAN.md are versioned with the code. Only runtime artifacts (.agent/phase-sessions/, .agent/pipeline.log) remain ignored. Update AGENTS.md git protocol rule to match.
1.5 KiB
1.5 KiB
Phase 12 — One Header, Same Size Everywhere: complete
.doc-headerfixed tovar(--header-h)(64px desktop / 58px mobile), inner centered, meta rownowrap+ clips (no wrap growth);flex-wrap: nowrapon the mobile inner rule.- Fixed a pre-existing flex-shrink defect (affects all pages):
bodyis a definite-height flex column, so.app-header/.doc-headershrank to content-min (44px) on any page whose content overflows the viewport — this was a second cause of the owner's "header changes size" report (Sources at ≤640px). Addedflex-shrink: 0to both headers. .doc-pathgivenmin-width: 6remso it stays the visible ellipsis target on narrow screens (flex would otherwise shrink it to 0px and clip the badges instead).- E2E:
tests/e2e/test_header_consistency.py(3 tests: desktop 1280 / mobile 375 three-page box comparison + phase-10 content regression). - Results:
uv run pytest --cov=app --cov-report=term-missing→ 203 passed, 99% coverage;uv run ruff check .→ clean;uv run pyright→ 0 errors;uv run pytest tests/e2e/test_header_consistency.py -v --no-cov→ 3 passed (isolation);test_document_viewer.py→ 5 passed (isolation); remaining 10 E2E files → 40 passed. - Deviation: phase step 3 (PLAN §7.1 note) skipped — harness rules forbid editing
.agent/PLAN.md; no other lock decisions touched. - Committed
8ca564c(--no-gpg-sign), tree clean.
Next pending phase: .agent/phases/todo/13_document_back_navigation.md