Skip to content

feat(planner): climate schedules and maintenance on one page, with Coming up - #838

Merged
joszz merged 3 commits into
mainfrom
fix/list-pages-grid
Dec 1, 2026
Merged

joszz merged 3 commits into
mainfrom
fix/list-pages-grid

Conversation

@joszz

@joszz joszz commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Maintenance and Climate schedules were two half-empty pages: on a wide screen a lone card stretched across the page. This combines them into one Planner, and lays out the cards in a grid.

The Planner

  • Two sections, Climate schedules and Maintenance, each with its own heading, and the same cards, forms and dialogs as before (ClimateScheduleSection, MaintenanceSection, sharing PlannerSection).
  • Add buttons in the header, where every page keeps its buttons: Add schedule and Add item on a desktop; on a phone they are icons in the top bar, a calendar and a wrench each with a plus (AddIcon), so the two are told apart without a step to pick what to add.
  • Coming up (PlannerAgenda): what is next, soonest first. Each enabled schedule's next run, maintenance with a due date, and the APK (with a Dutch plate looked up). Anything overdue comes first, and a service due by distance alone comes last, "At 25,500 km". Choosing a schedule or an item opens it; the APK is a plain line. It is built in the browser from what the sections already load (utils/agenda.ts), so there is no new endpoint and it follows every edit at once. The calendar feed lists the same dates.
  • Layout: from 1100 px the agenda is a column on the right that stays in view; below that it comes first, above the sections.
  • Menu: one entry, Planner, replaces the two.
  • Old addresses: /climate-schedules and /maintenance, and the route names the dashboard's cards and the climate dialog link to, redirect to /planner#climate and /planner#maintenance, and the page scrolls to that section.
  • Info: the page's info dialog explains Coming up, then keeps the two old pages' explanations under their own headings (a new about slot on ViewHeader).

Cards as a grid

.status-card-list is a grid: as many columns as fit at 18rem or wider (repeat(auto-fill, minmax(min(100%, 18rem), 1fr))), with the dashboard's gap, and one column on a phone. A short list keeps card-sized tiles instead of stretching. Beside the sidebar every row is as tall as the list's tallest card (grid-auto-rows: 1fr), so a card with a line less does not stand out shorter; a phone keeps each card its own height.

Docs and screenshots

  • One planner shot (desktop and phone) replaces the maintenance and climate-schedules shots in the gallery, on the website's screenshots page and on its features page; the features page's climate block now shows the climate-run shot.
  • README: a Planner section ahead of the Climate schedules and Maintenance sections (their headings, and so their links, are unchanged), and the page names updated. WIDGET.md likewise.
  • New strings in all five languages, using each language's existing terms; the two old menu labels are gone.

Testing

  • pnpm check passes (2371 tests). New specs for the agenda (order, what is left out, dates on their calendar day, APK expired), PlannerAgenda (labels, what opens, offline), PlannerView (agenda opens the right section's item) and the redirects. The old views' specs moved to the section components.
  • Demo, light and dark at 1880, 1280, 1024, 390 and 320 px: no sideways overflow; agenda beside the sections from 1100 px, above them below that; six entries in the right order on the demo car; /maintenance lands on the maintenance section; an agenda line opens its item.

🤖 Generated with Claude Code

@joszz joszz changed the title fix(ui): maintenance and climate schedules as a grid on wide screens feat(planner): climate schedules and maintenance on one page, with Coming up Dec 1, 2026
joszz and others added 3 commits December 1, 2026 09:43
The two list pages stacked every card in one full-width column, so on a
wide screen a card stretched across the page with its arrow at the far
edge. They now lay out as many columns as fit at 18rem or wider, with
the dashboard's gap, and one column on a phone; a short list keeps
card-sized tiles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ming up

Climate schedules and Maintenance were two half-empty pages. The Planner
holds both, each in a section with its own add button, and beside them
Coming up: each schedule's next run, the maintenance coming due and the
APK, soonest first, the overdue at the top and what is due by distance
alone at the end. Choosing a line opens the schedule or the item. It is
built from what the page already holds (utils/agenda), so it follows
every change made there; the calendar feed lists the same dates.

One menu entry replaces the two. /climate-schedules and /maintenance,
and the route names the dashboard's cards link to, redirect to their
section of the planner. The page's info explains all three parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add schedule and Add item move from the sections into the page's
header, where every page keeps its buttons; on a phone they are icons
in the top bar, a calendar and a wrench each with a plus (AddIcon), so
the two are told apart without a step to pick what to add.

Beside the sidebar every row of a card list is as tall as its tallest
card, so a card with a line less no longer stands out shorter than the
row above it; a phone's single column keeps each card its own height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joszz
joszz force-pushed the fix/list-pages-grid branch from 1c39670 to c5ceee2 Compare December 1, 2026 08:43
@joszz
joszz enabled auto-merge December 1, 2026 08:43
@joszz
joszz merged commit b1d2fa7 into main Dec 1, 2026
31 checks passed
@joszz
joszz deleted the fix/list-pages-grid branch December 1, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant