Group page redesign and visual bug fixes
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
This commit is contained in:
parent
c12fd64f09
commit
b3b57c156e
17 changed files with 275 additions and 65 deletions
18
SPEC.md
18
SPEC.md
|
|
@ -262,8 +262,8 @@ the minimum in practice, and is easy to reason about.
|
|||
- Create group: name, base currency (default by locale: CZK for Czech, EUR
|
||||
otherwise), icon/emoji, initial members.
|
||||
- Share: copy link, native share sheet, QR code.
|
||||
- Settings: rename, members, "who am I", remove from device, export, delete
|
||||
group (see 8.3).
|
||||
- Settings: rename, members, "who am I", default category, remove from
|
||||
device, export, delete group (see 8.3).
|
||||
- **Base currency is locked once the group has any expense or transfer.** It
|
||||
can be changed freely while the group is empty; afterwards the setting is
|
||||
read-only with a short explanation. Clients enforce this during replay too:
|
||||
|
|
@ -288,6 +288,12 @@ Fixed v1 set with icons: food & drink, groceries, transport, accommodation,
|
|||
entertainment, shopping, utilities, rent, travel, gifts, health, other.
|
||||
Transfers have their own implicit category.
|
||||
|
||||
Each group has a **default category** (`group.updated` → `defaultCategory`,
|
||||
one of the set above; absent means "other") that new expenses start with.
|
||||
Replay ignores a `group.updated` whose `defaultCategory` isn't in the set,
|
||||
without applying any other field of that event. Each category has an icon
|
||||
colour (`CATEGORY_COLORS` in `apps/web/src/lib/format.ts`).
|
||||
|
||||
### 7.4 Recurring expenses
|
||||
|
||||
- A template (expense object + rule: weekly / monthly / yearly, interval,
|
||||
|
|
@ -435,8 +441,12 @@ which group ids exist.
|
|||
|
||||
1. **Home**: groups saved on this device, each showing my balance. "New
|
||||
group", "Open link/scan QR".
|
||||
2. **Group**: tabs: Expenses · Balances (settle up) · Stats · Activity.
|
||||
Floating "+" button for a new expense.
|
||||
2. **Group**: on Expenses and Balances, a header with my balance as the
|
||||
headline number ("You're owed / You owe / settled up"; the group total if
|
||||
"who am I" isn't set), the group's total spent, and round quick actions:
|
||||
Add · Payment · Settle up · Share. Tabs: Expenses · Balances (settle up) ·
|
||||
Stats · Activity. A floating "+" appears only once the quick actions have
|
||||
scrolled off screen.
|
||||
3. **Expense editor** (sheet on mobile, dialog on desktop).
|
||||
4. **Expense detail**: photo, split breakdown, comments, history.
|
||||
5. **Group settings**.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue