Group page redesign, per-group default category, visual bug fixes #7

Merged
reudy merged 2 commits from feat/redesign into main 2026-11-06 21:42:54 +01:00
Member

Finishes the redesign from the approved mock and fixes the visual bugs found in a full screenshot pass.

Stacked on #6 (themes). This branch includes #6's commit, so merge #6 first and this PR's diff shrinks to its own two commits. Merging only this one also brings in #6.

Layout

  • Group header on Expenses and Balances (new GroupHeader.svelte):
    • Your balance is the headline number ("You're owed" / "You owe" / "You're settled up"). If "who am I" isn't set, the group total is shown instead.
    • A pill below shows the group's total spent.
    • Round quick actions: Add · Payment · Settle up · Share. "Payment" opens the editor already set to a payment between people.
    • The floating + now appears only after those buttons scroll off screen.
  • Amounts (new Money.svelte): the whole number is emphasised and the currency and decimals are smaller. Screen readers get the normal full text.
  • Expense rows are two lines: title | amount, then who paid | your part. Icons are round and tinted per category. Your part is never cut off; "Paid by…" shortens first.
  • Balances: larger avatars, overlapping avatar pairs on settle-up rows, and a tinted "Record payment" button.
  • Section headings are sentence case instead of small caps. The group's emoji sits in a round chip in the top bar.

Bugs fixed

Found by screenshotting 10 screens (home, expenses, balances, stats, activity, editor, detail, group settings, app settings, new group) at 320px and 390px phone width and 1280px desktop, in Dark, Black and Light, in English and Czech. The script also checks for console errors and horizontal overflow.

Bug Fix
A long expense title or member name made the group page wider than the screen, and phones zoomed out Grid columns use minmax(0, 1fr) (group page and Stats)
Long titles were cut mid-word with no "…" Title text in its own truncating span
🍽️ nearly invisible on its grey circle in Light Category-tinted circles
Stats period switch wrapped (en) or ran off screen (cs) Shorter labels ("All / This year / This month / 30 days", "Vše / Letos / Tento měsíc / 30 dní"); the control scrolls rather than wraps as a last resort
🔒 next to wrapping text squashed to a dot (Home, App settings) svg { flex-shrink: 0 }
Dialogs opened with a focus ring on the close button after a tap The sheet focuses itself unless a field has autofocus; Tab still reaches every control
New expenses always started as "Food & drink"; SPEC's per-group default category was never implemented defaultCategory in core (types, replay, test) and group settings; the editor uses it, otherwise "Other"

After the fixes, the screenshot pass reports no console errors and no horizontal overflow at any size, theme or language.

Not changed (flagged)

  • group.updated replay applies name/icon before it rejects a locked baseCurrency, so such an event is marked ignored but partly applied. Every client does the same, so balances stay consistent. Changing the order could change how existing groups replay, so I left it alone.
  • In Light, the emoji in the Stats category list have no tinted background.
  • Group settings shows member balances with a hyphen ("-CZK"), while Balances uses a real minus ("−CZK").

Tests

  • npm test: core 27/27 (new: default category), server 15/15.
  • npm run check: 0 errors, 0 warnings.
  • npm run build && npm run test:e2e: 2/2 pass, on two runs. One test edit: the Balances check now targets the "Settle up" heading, because the new quick action has the same text.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x

Finishes the redesign from the approved mock and fixes the visual bugs found in a full screenshot pass. > **Stacked on #6** (themes). This branch includes #6's commit, so merge #6 first and this PR's diff shrinks to its own two commits. Merging only this one also brings in #6. ## Layout - **Group header** on Expenses and Balances (new `GroupHeader.svelte`): - Your balance is the headline number ("You're owed" / "You owe" / "You're settled up"). If "who am I" isn't set, the group total is shown instead. - A pill below shows the group's total spent. - Round quick actions: **Add · Payment · Settle up · Share**. "Payment" opens the editor already set to a payment between people. - The floating + now appears only after those buttons scroll off screen. - **Amounts** (new `Money.svelte`): the whole number is emphasised and the currency and decimals are smaller. Screen readers get the normal full text. - **Expense rows** are two lines: title | amount, then who paid | your part. Icons are round and tinted per category. Your part is never cut off; "Paid by…" shortens first. - **Balances:** larger avatars, overlapping avatar pairs on settle-up rows, and a tinted "Record payment" button. - Section headings are sentence case instead of small caps. The group's emoji sits in a round chip in the top bar. ## Bugs fixed Found by screenshotting 10 screens (home, expenses, balances, stats, activity, editor, detail, group settings, app settings, new group) at 320px and 390px phone width and 1280px desktop, in Dark, Black and Light, in English and Czech. The script also checks for console errors and horizontal overflow. | Bug | Fix | |---|---| | A long expense title or member name made the group page wider than the screen, and phones zoomed out | Grid columns use `minmax(0, 1fr)` (group page and Stats) | | Long titles were cut mid-word with no "…" | Title text in its own truncating span | | 🍽️ nearly invisible on its grey circle in Light | Category-tinted circles | | Stats period switch wrapped (en) or ran off screen (cs) | Shorter labels ("All / This year / This month / 30 days", "Vše / Letos / Tento měsíc / 30 dní"); the control scrolls rather than wraps as a last resort | | 🔒 next to wrapping text squashed to a dot (Home, App settings) | `svg { flex-shrink: 0 }` | | Dialogs opened with a focus ring on the close button after a tap | The sheet focuses itself unless a field has `autofocus`; Tab still reaches every control | | New expenses always started as "Food & drink"; SPEC's per-group default category was never implemented | `defaultCategory` in core (types, replay, test) and group settings; the editor uses it, otherwise "Other" | After the fixes, the screenshot pass reports no console errors and no horizontal overflow at any size, theme or language. ## Not changed (flagged) - `group.updated` replay applies `name`/`icon` before it rejects a locked `baseCurrency`, so such an event is marked ignored but partly applied. Every client does the same, so balances stay consistent. Changing the order could change how existing groups replay, so I left it alone. - In Light, the emoji in the Stats category list have no tinted background. - Group settings shows member balances with a hyphen ("-CZK"), while Balances uses a real minus ("−CZK"). ## Tests - `npm test`: core 27/27 (new: default category), server 15/15. - `npm run check`: 0 errors, 0 warnings. - `npm run build && npm run test:e2e`: 2/2 pass, on two runs. One test edit: the Balances check now targets the "Settle up" *heading*, because the new quick action has the same text. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
agent added 3 commits 2026-11-06 21:36:53 +01:00
Replace the green-tinted palette with neutral near-black (Dark), true black
(Black, new, opt-in) and light grey (Light); green is the accent only. System
(default) follows the OS between Dark and Light. All text colours keep
>= 4.5:1 contrast on every surface.

Stylesheet-only restyle to match the approved mock: hairline card borders
(--line, separate from control --border), 20px corners, pill buttons and
segmented controls, round icon buttons and FAB, floating pill tab bar.
Browser theme-color follows the effective theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
SPEC listed defaultCategory on group.updated but nothing implemented it.
Replay accepts one of CATEGORIES and ignores the whole event otherwise,
validating before any field is applied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
Layout, from the approved mock:
- Group header on Expenses/Balances: my balance as the headline number
  (Money component de-emphasises currency and decimals), total spent, and
  round quick actions Add / Payment / Settle up / Share. The floating +
  shows only once those scroll off screen.
- Expense rows on two lines (title | amount, payer | my part) with round
  icons tinted per category; sentence-case section headings.
- Balances: larger avatars, paired avatars on settle-up rows, tinted button.

Bugs found in a screenshot pass (phone 320/390, desktop 1280; dark, black,
light; English and Czech):
- A long title or member name widened the group page past the screen and
  phones zoomed out (grid tracks without minmax(0, ...)); same in Stats.
- Long titles were clipped mid-word with no ellipsis.
- Category emoji nearly invisible on its grey circle in the light theme.
- Stats period labels wrapped (en) or ran off screen (cs); shortened.
- Icons next to wrapping text were squashed (lock on Home/App settings).
- Dialogs opened with a focus ring on the close button after a tap.
- New expenses always defaulted to Food & drink; now the group's default
  category (settable in group settings), else Other.

e2e: the Balances check now targets the Settle up heading, which the new
quick action shares its text with.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
reudy merged commit 271d3e8a66 into main 2026-11-06 21:42:54 +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#7
No description provided.