Skip to content

Unify Areas and area-detail section headers - #32

Merged
adborbas merged 1 commit into
mainfrom
unify-section-headers
Jul 17, 2026
Merged

Unify Areas and area-detail section headers#32
adborbas merged 1 commit into
mainfrom
unify-section-headers

Conversation

@adborbas

Copy link
Copy Markdown
Owner

Changes

  • Add a shared Mortar SectionHeader component that owns its own vertical spacing (isFirst suppresses the leading gap for the first section).
  • Refactor the Areas grid (HomeView) to render through SectionGrid / TileGridEngine — areas become .medium tiles (2-up in compact width, 3-up in regular). This makes header spacing match the area-detail grid by construction and lays the groundwork for reordering (isEditing/onReorder wired but dormant).
  • Align AreaDetailView section spacing onto the shared component.
  • Document the /** */ multi-line comment convention in .claude/rules/swift-style.md.

Why

The Areas tab (floor grouping) and area-detail (entity categories) previously used two different, inconsistent section headers (.title3.bold() with ad-hoc padding vs .headline). They now share one component with identical font and spacing, verified within ≤3 pt across both screens.

Notes

  • Verified in demo mode on the iPhone 17 Pro simulator and physical device: layout, navigation (tap-through still pushes area detail), and spacing parity.
  • iPad (regular width) intentionally kept at 3-up.

Introduce a shared Mortar SectionHeader component and render the Areas
grid through SectionGrid so section-header styling and spacing match the
area-detail grid by construction.

- Add Mortar SectionHeader (owns its own vertical spacing; isFirst
  suppresses the leading gap)
- Refactor AreasView onto SectionGrid/TileGridEngine (areas as .medium
  tiles; 2-up compact / 3-up regular), enabling future reordering
- Align AreaDetailView section spacing onto the shared component
- Document the /** */ multi-line comment convention in swift-style.md

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@adborbas
adborbas force-pushed the unify-section-headers branch from 64bf4e6 to 4745ad8 Compare July 17, 2026 18:04
@adborbas
adborbas merged commit efb87d0 into main Jul 17, 2026
1 check passed
@adborbas
adborbas deleted the unify-section-headers branch July 18, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant