Expense editor: one-screen layout and balanced category tiles #8

Merged
reudy merged 1 commit from feat/editor-layout into main 2026-11-06 22:12:06 +01:00
Member

The add-expense sheet was about 1,400px tall on a 390×844 phone, and the 12 category chips wrapped into uneven rows of different widths. This makes the sheet fit on one screen and gives the categories an even grid.

What changed

  • Amount: the currency is a CZK ⌄ pill to the left of a large right-aligned amount. The native select sits invisibly on top of the pill, so the full list with recent currencies still opens. The exchange-rate line sits under the amount, aligned right.
  • Categories: 12 equal, tinted icon tiles. They show as 6 × 2 on phones and one row of 12 at 600px and wider. The chosen category's name appears next to the "Category" label, and each tile has an aria-label and title.
  • Date and Paid by share a row. "Several people" is now the last option in Paid by instead of a separate checkbox, and choosing it shows the per-person amounts. The locale string is shortened to "Several people" / "Více lidí".
  • Split: All / None moved up to the label row. Member rows are shorter, and in Equally mode each person's share is shown on the right. Tapping a name toggles that person.
  • Photo, Note and Repeat are three even buttons. Note and Repeat open their fields when tapped, and Note focuses the text box. An existing note starts open.
  • Save is pinned to the bottom of the screen. Cancel is removed because the X already closes the sheet.
  • All sheets: the header is now solid (content showed through it while scrolling), and sheets get scroll-padding so a focused field isn't hidden under the header or the Save bar.
  • SPEC §7.2 describes the layout. The unused add_photo string is removed from both locales.

Measured (sheet scroll height, 3 members)

Viewport Before After
390×844 en / cs 1384 844 / 844 (fits)
375×667 1384 834 (scrolls; Save stays pinned)
320×640 1400 816 (scrolls; Save stays pinned)

Tested

  • npm test: core 27 and server 15 tests pass. npm run check: 0 errors, 0 warnings.
  • npm run build && npm run test:e2e: 2/2 pass. The e2e covers EUR with the ECB rate, the Amounts split, unchecking a member, and a photo.
  • Screenshots of the new, payment and edit sheets in Dark, Light and Czech at 320, 375, 390 and 1280px.
  • A scripted run switched to EUR, then to several payers, then to Percent, opened Note, then went back to a single payer with one member unchecked and saved. The expense detail showed the right split.
  • The full-app screenshot pass reported no console errors and no horizontal overflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x

The add-expense sheet was about 1,400px tall on a 390×844 phone, and the 12 category chips wrapped into uneven rows of different widths. This makes the sheet fit on one screen and gives the categories an even grid. ## What changed - **Amount:** the currency is a `CZK ⌄` pill to the left of a large right-aligned amount. The native select sits invisibly on top of the pill, so the full list with recent currencies still opens. The exchange-rate line sits under the amount, aligned right. - **Categories:** 12 equal, tinted icon tiles. They show as 6 × 2 on phones and one row of 12 at 600px and wider. The chosen category's name appears next to the "Category" label, and each tile has an `aria-label` and `title`. - **Date and Paid by** share a row. "Several people" is now the last option in Paid by instead of a separate checkbox, and choosing it shows the per-person amounts. The locale string is shortened to "Several people" / "Více lidí". - **Split:** All / None moved up to the label row. Member rows are shorter, and in Equally mode each person's share is shown on the right. Tapping a name toggles that person. - **Photo, Note and Repeat** are three even buttons. Note and Repeat open their fields when tapped, and Note focuses the text box. An existing note starts open. - **Save** is pinned to the bottom of the screen. Cancel is removed because the X already closes the sheet. - **All sheets:** the header is now solid (content showed through it while scrolling), and sheets get `scroll-padding` so a focused field isn't hidden under the header or the Save bar. - SPEC §7.2 describes the layout. The unused `add_photo` string is removed from both locales. ## Measured (sheet scroll height, 3 members) | Viewport | Before | After | |---|---|---| | 390×844 en / cs | 1384 | 844 / 844 (fits) | | 375×667 | 1384 | 834 (scrolls; Save stays pinned) | | 320×640 | 1400 | 816 (scrolls; Save stays pinned) | ## Tested - `npm test`: core 27 and server 15 tests pass. `npm run check`: 0 errors, 0 warnings. - `npm run build && npm run test:e2e`: 2/2 pass. The e2e covers EUR with the ECB rate, the Amounts split, unchecking a member, and a photo. - Screenshots of the new, payment and edit sheets in Dark, Light and Czech at 320, 375, 390 and 1280px. - A scripted run switched to EUR, then to several payers, then to Percent, opened Note, then went back to a single payer with one member unchecked and saved. The expense detail showed the right split. - The full-app screenshot pass reported no console errors and no horizontal overflow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
agent added 1 commit 2026-11-06 22:10:32 +01:00
The add sheet was ~1,400px tall on a 390×844 phone and the 12 category
chips wrapped into ragged rows. Now it fits one screen with three members:

- currency is a pill beside the amount (native select laid over it)
- categories are 12 equal tinted icon tiles, 6 × 2 (12 × 1 when wider),
  with the chosen name next to the label
- date and payer share a row; "Several people" is the last payer option
  instead of a separate checkbox
- photo, note and repeat are folded behind small buttons
- Save is pinned to the bottom; Cancel dropped (the X closes)
- sheet header is opaque and sheets get scroll-padding so focused
  fields aren't hidden under the header or the Save bar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
reudy merged commit a10ec3c3b3 into main 2026-11-06 22:12:06 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/oweme#8
No description provided.