feat: week-of-year numbers in Month view (#25) #64

Merged
makiolaj merged 3 commits from feat/month-week-numbers into release/v2.14.0 2026-07-06 20:26:14 +00:00
Owner

Implements Codeberg issue #25 — Week of the Year in Month view.

What

Adds an opt-in calendar-week (ISO) number to the Month grid, shown in a
slim left gutter, gated by a new Settings → Display → "Week numbers" switch
(off by default, so existing users see no change until they enable it).

  • Each week row gets a full-height tonal pill in the gutter — the same rounded
    geometry as the day cells, tinted with secondaryContainer and a centred bold
    number, so it reads as part of the grid.
  • The number is the ISO week-of-week-based-year computed on each row's first day
    — the same basis as the Week view's badge — so the two views always agree.
  • The weekday header reserves a matching gutter so the day columns stay aligned.

Notes

  • Scope: the toggle governs the Month view only; the Week view keeps its
    existing always-on header badge (unchanged).
  • New showWeekNumbers pref (default off), round-trip unit-tested.
  • Verified: compile + full unit tests + lint + translation check all green;
    reviewed on-device on a Pixel 10.

🤖 Generated with Claude Code

Implements Codeberg issue **#25 — Week of the Year in Month view**. ## What Adds an opt-in calendar-week (ISO) number to the **Month** grid, shown in a slim left gutter, gated by a new **Settings → Display → "Week numbers"** switch (**off by default**, so existing users see no change until they enable it). - Each week row gets a full-height tonal pill in the gutter — the same rounded geometry as the day cells, tinted with `secondaryContainer` and a centred bold number, so it reads as part of the grid. - The number is the ISO week-of-week-based-year computed on each row's first day — the **same basis** as the Week view's badge — so the two views always agree. - The weekday header reserves a matching gutter so the day columns stay aligned. ## Notes - **Scope:** the toggle governs the **Month view only**; the Week view keeps its existing always-on header badge (unchanged). - New `showWeekNumbers` pref (default off), round-trip unit-tested. - Verified: compile + full unit tests + lint + translation check all green; **reviewed on-device** on a Pixel 10. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
makiolaj added 3 commits 2026-07-06 20:25:03 +00:00
Add an opt-in left gutter to the Month grid showing the ISO calendar-week
number, gated by a new "Week numbers" display setting (default off). The
number is computed on each row's first day — the same basis as the Week
view's badge — so the two views agree, and rendered as a low-emphasis
onSurfaceVariant label so it recedes across all six rows rather than
competing with the event bars. The weekday header reserves a matching
gutter so the day columns stay aligned.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Extract the Week view's calendar-week badge into a shared ui/common
component and reuse it for the Month grid's week-number gutter, so the two
views show week numbers in the exact same format. The gutter now centres the
badge vertically in each row (was pinned to the day-number band) and is
widened to seat the badge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat: make Month week-number a full-height cell like the day cells
All checks were successful
Translations / check (pull_request) Successful in 4s
CI / ci (pull_request) Successful in 6m12s
1f050c2be9
Per on-device review, render the week number as a full-height tonal pill
mirroring the day cells' geometry (secondaryContainer tint, same rounded
shape and gap), with the number centred — so the gutter reads as part of the
grid rather than a floating chip. This diverges from the Week view's small
header chip, so revert the shared-badge extraction: restore WeekScreen's
private badge and drop ui/common/WeekNumberBadge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
makiolaj merged commit 2be1be19fe into release/v2.14.0 2026-07-06 20:26:14 +00:00
makiolaj deleted branch feat/month-week-numbers 2026-07-06 20:26:14 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: makiolaj/calendula#64