feat: People First Spendbee experience #5

Merged
exler merged 3 commits from feat/people-first into main 2026-10-25 08:20:30 +01:00
Collaborator

People First

Task: SPENDBEE-PEOPLE-FIRST-001. Implements the user-selected People First direction from Leona's supplied handoff, not the superseded ledger concept.

Experience

  • Compact global header/account navigation and shared dark charcoal/yellow system; People First desktop context column on the left, active section on the right.
  • Phone/tablet: personal balance and member roster precede expense history. Full names, guests and currencies wrap rather than being truncated.
  • Expense register with server-backed group-scoped search, real dates, viewer shares, original currencies, conversion context and inline detail/attachments/Edit/confirmed Delete.
  • Focused amount-first create/edit/scan/payment forms retain custom amounts, percentages, guests, dates, notes, attachments and scanning.
  • Exact and Simplified remain available with the existing default. Record-payment actions prefill supported suggestions; Spendbee explicitly records payments and does not transfer money. No added confirmation checkbox.
  • Groups, members/settings, invitations, guest creation, archive/unarchive, Activity and Account remain reachable. DESIGN.md is the canonical People First system.

Correctness and privacy

Financial split/net/debt/rate algorithms are unchanged (independent AST comparison). Missing-rate results are explicitly partial rather than falsely settled.

Drafts preserve text/choices per account/group/flow in the same tab, including newer typing during successful or rejected submissions and reverted-to-original values. Explicit Discard suppresses autosave and clears pending file inputs. Files/temp receipt paths are never persisted; receipt review explains reselection. Signed request-specific acknowledgements prevent another tab consuming a save confirmation. Direct/cross-tab sign-out clears drafts; expiry intentionally clears drafts with an explanatory notice.

Verification

  • 250 tests passed, zero skipped, independently executed with SPENDBEE_REQUIRE_BROWSER=1 (Django + real Chromium flows).
  • Focused RED/GREEN regressions for missing-rate claims, invalid-response draft races, discard/files, revision reversions, cross-tab acknowledgements/logout, receipt-review handoff and subsequent saves.
  • Independent re-review: all identified publication blockers resolved; final scan-specific review passed with 10 targeted tests and branch probes.
  • Frozen uv/Bun installs, reproducible Tailwind CSS, Django checks/no schema drift and Polish catalog checks passed. No schema migration.
  • Ruff has 2 pre-existing findings; mypy 84 vs baseline 86; repo template lint 45 vs baseline 53, no new findings claimed.
  • Real route evidence at 360x800, 390x844, 768x1024 and 1280x900, EN/PL. External OCR is mocked deterministically; no paid scanning calls or production data.
  • New required CI test job installs Chromium, checks generated CSS and runs full pytest without browser skips. Image publishing remains limited to trusted pushes and depends on tests; remote run38 passed for c49a8df; image publishing was correctly skipped for the pull_request event.

Review boundaries / known limitations

  • Final design-owner acceptance from Leona remains pending. No merge/deployment.
  • Real devices, actual browser zoom and assistive technologies were not tested; no full accessibility certification.
  • Existing unrelated limitations are unchanged: archived guest/invite/share endpoints lack complete server-side archive protection; Simplified omits one-cent residuals; service-worker visited HTML may remain cached after logout. Hidden mutation controls do not fix these backend/cache issues.
  • The old sidebar's recent group activity is now accessed through Activity. The nonfunctional guest Remove control (no backend route) was not presented as a working capability. Existing no-members-selected expense default is retained. Other members' repayments remain recordable through Settlements.
  • SQLite search case-insensitivity remains ASCII-limited.

Visual evidence — current readable viewport captures

Corrected head 1f21bb7. Real Chromium with synthetic fixtures. Primary images are viewport-height (mobile390×844/360×800, tablet768×1024, desktop1280×900), not long pages scaled into narrow strips. Separate scrolled captures show content below the roster. Before: 4b7bbb5. No production data or live paid OCR calls.

Group expenses — before / after

Group expenses — before, 390x844 — viewport

Group expenses — before, 390x844 — viewport

Group expenses — after, 390x844 — viewport

Group expenses — after, 390x844 — viewport

Group expenses — before, 1280x900 — viewport

Group expenses — before, 1280x900 — viewport

Group expenses — after, 1280x900 — viewport

Group expenses — after, 1280x900 — viewport

Balances — before / after

Balances — before, 390x844 — viewport

Balances — before, 390x844 — viewport

Balances — after, 390x844 — viewport

Balances — after, 390x844 — viewport

Balances — before, 1280x900 — viewport

Balances — before, 1280x900 — viewport

Balances — after, 1280x900 — viewport

Balances — after, 1280x900 — viewport

Focused expense form — before / after

Focused expense form — before, 390x844 — viewport

Focused expense form — before, 390x844 — viewport

Focused expense form — after, 390x844 — viewport

Focused expense form — after, 390x844 — viewport

Focused expense form — before, 1280x900 — viewport

Focused expense form — before, 1280x900 — viewport

Focused expense form — after, 1280x900 — viewport

Focused expense form — after, 1280x900 — viewport

Groups overview — before / after

Groups — before, 1280x900 — viewport

Groups — before, 1280x900 — viewport

Groups — after, 1280x900 — viewport

Groups — after, 1280x900 — viewport

Supporting languages, sizes and states

Group expenses — Polish, 390px — viewport

Group expenses — Polish, 390px — viewport

Expense form — Polish, 390px — viewport

Expense form — Polish, 390px — viewport

Group expenses — 360px — viewport

Group expenses — 360px — viewport

Group expenses — tablet, 768px — viewport

Group expenses — tablet, 768px — viewport

Partial balances — missing rate, 390px — viewport

Partial balances — missing rate, 390px — viewport

Restored receipt review — file reselection notice, 390px — viewport

Restored receipt review — file reselection notice, 390px — viewport

Readability regression states

Balances debt section —390px, scrolled viewport

Balances debt section —390px, scrolled viewport

Polish narrow phone partial balance —360px

Polish narrow phone partial balance —360px

Large amount wrapping —390px

Large amount wrapping —390px

Settled viewer —390px

Settled viewer —390px

Supplementary full-page downloads

These are additional inspection files, not the primary readability evidence.

Mobile balance readability correction —1f21bb7

The amount previously took intrinsic width from a whole sentence, squeezing the explanation to ~45px. The heading now carries direction/partial status, the amount contains only number+currency, and the text/amount row wraps to stacked layout when both cannot fit. Typography is not shrunk. The original broken image and other superseded after captures have been removed.

Regression coverage: six balance states ×three shared pages ×four viewports ×EN/PL, measured paragraph width/line count, amount containment and normal card height. The new regression failed on the original layout; full suite now 250 tests passed, zero skipped. Financial amounts/rules unchanged. Remote CI for this follow-up is checked separately; visual direction accepted by Leona; implementation re-review remains pending. No merge/deployment.

Remote CI for 1f21bb7: Test and push Docker image / test (pull_request) = success, Test and push Docker image / push (pull_request) = skipped.

Leona P2 session-recovery fix — ee77438

Design owner independent review of 1f21bb7: visual direction accepted; implementation changes requested for reproduced session expiry during HTMX search. This follow-up fixes that defect; final acceptance requires re-review of this new head.

Root cause: a normal login 302 followed inside the partial request left the old authenticated shell and no results. Centralized middleware now converts only anonymous HTMX login redirects into full-page HX-Redirect, preserving Django's login/next URL. Ordinary redirects, authenticated membership denials and non-login redirects are unchanged. A hidden login next field retains the return destination; Django rejects off-site return URLs. No layout or financial changes.

Tests: real-browser draft creation → exact isolated server session removal → search or tab → full signed-out login document, draft cleared and notice visible → sign in → exact original destination, including search query. Observed RED on original code, GREEN on fix. Request coverage includes all seven protected partial GET routes, attachment deletion, encoded queries, ordinary requests, member/non-member behavior and safe/off-site return URLs. Independent Camila run: 286 passed, zero skipped, browser required. Existing local staticfiles warnings remain. CSS unchanged/rebuild byte-identical.

Recovery evidence below uses synthetic isolated fixtures, not production.

after-expired-search-login-390x844.png

after-expired-search-login-1280x900.png

Remote CI for ee77438: Test and push Docker image / test (pull_request) = success, Test and push Docker image / push (pull_request) = skipped.

## People First Task: **SPENDBEE-PEOPLE-FIRST-001**. Implements the user-selected People First direction from Leona's supplied handoff, not the superseded ledger concept. ### Experience - Compact global header/account navigation and shared dark charcoal/yellow system; People First desktop context column on the left, active section on the right. - Phone/tablet: personal balance and member roster precede expense history. Full names, guests and currencies wrap rather than being truncated. - Expense register with server-backed group-scoped search, real dates, viewer shares, original currencies, conversion context and inline detail/attachments/Edit/confirmed Delete. - Focused amount-first create/edit/scan/payment forms retain custom amounts, percentages, guests, dates, notes, attachments and scanning. - Exact and Simplified remain available with the existing default. Record-payment actions prefill supported suggestions; Spendbee explicitly records payments and does not transfer money. No added confirmation checkbox. - Groups, members/settings, invitations, guest creation, archive/unarchive, Activity and Account remain reachable. DESIGN.md is the canonical People First system. ### Correctness and privacy Financial split/net/debt/rate algorithms are unchanged (independent AST comparison). Missing-rate results are explicitly partial rather than falsely settled. Drafts preserve text/choices per account/group/flow in the same tab, including newer typing during successful or rejected submissions and reverted-to-original values. Explicit Discard suppresses autosave and clears pending file inputs. Files/temp receipt paths are never persisted; receipt review explains reselection. Signed request-specific acknowledgements prevent another tab consuming a save confirmation. Direct/cross-tab sign-out clears drafts; expiry intentionally clears drafts with an explanatory notice. ### Verification - **250 tests passed, zero skipped**, independently executed with `SPENDBEE_REQUIRE_BROWSER=1` (Django + real Chromium flows). - Focused RED/GREEN regressions for missing-rate claims, invalid-response draft races, discard/files, revision reversions, cross-tab acknowledgements/logout, receipt-review handoff and subsequent saves. - Independent re-review: all identified publication blockers resolved; final scan-specific review passed with 10 targeted tests and branch probes. - Frozen uv/Bun installs, reproducible Tailwind CSS, Django checks/no schema drift and Polish catalog checks passed. No schema migration. - Ruff has 2 pre-existing findings; mypy 84 vs baseline 86; repo template lint 45 vs baseline 53, no new findings claimed. - Real route evidence at 360x800, 390x844, 768x1024 and 1280x900, EN/PL. External OCR is mocked deterministically; no paid scanning calls or production data. - New required CI test job installs Chromium, checks generated CSS and runs full pytest without browser skips. Image publishing remains limited to trusted pushes and depends on tests; remote run38 passed for c49a8df; image publishing was correctly skipped for the pull_request event. ### Review boundaries / known limitations - Final design-owner acceptance from Leona remains pending. No merge/deployment. - Real devices, actual browser zoom and assistive technologies were not tested; no full accessibility certification. - Existing unrelated limitations are unchanged: archived guest/invite/share endpoints lack complete server-side archive protection; Simplified omits one-cent residuals; service-worker visited HTML may remain cached after logout. Hidden mutation controls do not fix these backend/cache issues. - The old sidebar's recent group activity is now accessed through Activity. The nonfunctional guest Remove control (no backend route) was not presented as a working capability. Existing no-members-selected expense default is retained. Other members' repayments remain recordable through Settlements. - SQLite search case-insensitivity remains ASCII-limited. ## Visual evidence — current readable viewport captures Corrected head `1f21bb7`. Real Chromium with synthetic fixtures. Primary images are viewport-height (mobile390×844/360×800, tablet768×1024, desktop1280×900), not long pages scaled into narrow strips. Separate scrolled captures show content below the roster. Before: `4b7bbb5`. No production data or live paid OCR calls. ### Group expenses — before / after **Group expenses — before, 390x844 — viewport** ![Group expenses — before, 390x844 — viewport](https://git.marut.network/attachments/32561594-9551-45f7-b0a4-c0c56d6951fa) **Group expenses — after, 390x844 — viewport** ![Group expenses — after, 390x844 — viewport](https://git.marut.network/attachments/5872965b-9492-4b71-b80c-9669e9465407) **Group expenses — before, 1280x900 — viewport** ![Group expenses — before, 1280x900 — viewport](https://git.marut.network/attachments/752ea471-5965-43f9-ba63-057ae5b4b898) **Group expenses — after, 1280x900 — viewport** ![Group expenses — after, 1280x900 — viewport](https://git.marut.network/attachments/31a9fd88-e1c1-48c3-9077-aa8e485a8da1) ### Balances — before / after **Balances — before, 390x844 — viewport** ![Balances — before, 390x844 — viewport](https://git.marut.network/attachments/dd58cd57-f3d3-4825-b1a1-29d790baf686) **Balances — after, 390x844 — viewport** ![Balances — after, 390x844 — viewport](https://git.marut.network/attachments/4fed0858-a381-4bfe-89b8-7bd4331c0a82) **Balances — before, 1280x900 — viewport** ![Balances — before, 1280x900 — viewport](https://git.marut.network/attachments/04f7e8f8-bee0-42d0-8bb1-3c197a04b475) **Balances — after, 1280x900 — viewport** ![Balances — after, 1280x900 — viewport](https://git.marut.network/attachments/6545b9f7-262c-4311-8904-13faac50a105) ### Focused expense form — before / after **Focused expense form — before, 390x844 — viewport** ![Focused expense form — before, 390x844 — viewport](https://git.marut.network/attachments/612c21e8-8ae4-457b-b9cd-e486f0f4ac22) **Focused expense form — after, 390x844 — viewport** ![Focused expense form — after, 390x844 — viewport](https://git.marut.network/attachments/043b9748-0f42-459a-a44b-e2b866de3b9f) **Focused expense form — before, 1280x900 — viewport** ![Focused expense form — before, 1280x900 — viewport](https://git.marut.network/attachments/26fa14d2-c539-4ff1-8eb1-29452035d546) **Focused expense form — after, 1280x900 — viewport** ![Focused expense form — after, 1280x900 — viewport](https://git.marut.network/attachments/72efb082-d208-42a7-9dfe-c49460dcd486) ### Groups overview — before / after **Groups — before, 1280x900 — viewport** ![Groups — before, 1280x900 — viewport](https://git.marut.network/attachments/5d2dac02-6da8-4eca-99f6-5bf695560c0d) **Groups — after, 1280x900 — viewport** ![Groups — after, 1280x900 — viewport](https://git.marut.network/attachments/3be84cae-5247-4c3c-a799-59051611b36e) ### Supporting languages, sizes and states **Group expenses — Polish, 390px — viewport** ![Group expenses — Polish, 390px — viewport](https://git.marut.network/attachments/8c7a8b1e-b557-4534-a579-bc1ea2b8f35d) **Expense form — Polish, 390px — viewport** ![Expense form — Polish, 390px — viewport](https://git.marut.network/attachments/34f64f15-d855-4e22-98e6-c157ece3ce79) **Group expenses — 360px — viewport** ![Group expenses — 360px — viewport](https://git.marut.network/attachments/07c2427a-2a4a-4519-860a-bfe3c24bc6a8) **Group expenses — tablet, 768px — viewport** ![Group expenses — tablet, 768px — viewport](https://git.marut.network/attachments/65df08a0-3442-4b1c-9069-17870f22d83c) **Partial balances — missing rate, 390px — viewport** ![Partial balances — missing rate, 390px — viewport](https://git.marut.network/attachments/85cfc47d-36f1-4a54-8f05-c5744f6987e9) **Restored receipt review — file reselection notice, 390px — viewport** ![Restored receipt review — file reselection notice, 390px — viewport](https://git.marut.network/attachments/b4b4607a-c38d-45df-ae84-d1e2e8e8166f) ### Readability regression states **Balances debt section —390px, scrolled viewport** ![Balances debt section —390px, scrolled viewport](https://git.marut.network/attachments/bd6261a9-40b7-4155-a7f1-ac85ce4bacc3) **Polish narrow phone partial balance —360px** ![Polish narrow phone partial balance —360px](https://git.marut.network/attachments/161d0de4-0470-422d-9f1c-d85539105171) **Large amount wrapping —390px** ![Large amount wrapping —390px](https://git.marut.network/attachments/afe730c1-bb40-42b9-993c-2aaa0f425b20) **Settled viewer —390px** ![Settled viewer —390px](https://git.marut.network/attachments/f543766d-06fe-45ff-8964-1c71f79a5ec6) ### Supplementary full-page downloads These are additional inspection files, not the primary readability evidence. - [expenses 390x844 — full page](https://git.marut.network/attachments/b66c3f44-6c66-4dd0-9dcc-0d3299c57da0) - [expenses 1280x900 — full page](https://git.marut.network/attachments/42beb451-19e1-4482-b4dd-d1803c11345f) - [balances 390x844 — full page](https://git.marut.network/attachments/8d662224-a3b8-441e-be02-9f1de017674e) - [balances 1280x900 — full page](https://git.marut.network/attachments/2ca83718-3cb1-4e94-a640-be2fd0db1330) ## Mobile balance readability correction —1f21bb7 The amount previously took intrinsic width from a whole sentence, squeezing the explanation to ~45px. The heading now carries direction/partial status, the amount contains only number+currency, and the text/amount row wraps to stacked layout when both cannot fit. Typography is not shrunk. The original broken image and other superseded after captures have been removed. Regression coverage: six balance states ×three shared pages ×four viewports ×EN/PL, measured paragraph width/line count, amount containment and normal card height. The new regression failed on the original layout; full suite now **250 tests passed, zero skipped**. Financial amounts/rules unchanged. Remote CI for this follow-up is checked separately; visual direction accepted by Leona; implementation re-review remains pending. No merge/deployment. Remote CI for `1f21bb7`: Test and push Docker image / test (pull_request) = success, Test and push Docker image / push (pull_request) = skipped. ## Leona P2 session-recovery fix — ee77438 Design owner independent review of `1f21bb7`: **visual direction accepted; implementation changes requested** for reproduced session expiry during HTMX search. This follow-up fixes that defect; final acceptance requires re-review of this new head. Root cause: a normal login 302 followed inside the partial request left the old authenticated shell and no results. Centralized middleware now converts only anonymous HTMX login redirects into full-page `HX-Redirect`, preserving Django's login/next URL. Ordinary redirects, authenticated membership denials and non-login redirects are unchanged. A hidden login `next` field retains the return destination; Django rejects off-site return URLs. No layout or financial changes. Tests: real-browser draft creation → exact isolated server session removal → search or tab → full signed-out login document, draft cleared and notice visible → sign in → exact original destination, including search query. Observed RED on original code, GREEN on fix. Request coverage includes all seven protected partial GET routes, attachment deletion, encoded queries, ordinary requests, member/non-member behavior and safe/off-site return URLs. **Independent Camila run: 286 passed, zero skipped**, browser required. Existing local staticfiles warnings remain. CSS unchanged/rebuild byte-identical. Recovery evidence below uses synthetic isolated fixtures, not production. ![after-expired-search-login-390x844.png](https://git.marut.network/attachments/cb0904c6-f7b0-425c-aabe-ab01609ccfca) ![after-expired-search-login-1280x900.png](https://git.marut.network/attachments/a3a1cdd7-ee31-45d4-bbe2-2b4af708e361) Remote CI for `ee77438`: Test and push Docker image / test (pull_request) = success, Test and push Docker image / push (pull_request) = skipped.
feat: implement People First Spendbee experience
All checks were successful
Test and push Docker image / test (pull_request) Successful in 1m56s
Test and push Docker image / push (pull_request) Has been skipped
c49a8df65f
fix: keep mobile balance summaries readable at narrow widths
All checks were successful
Test and push Docker image / test (pull_request) Successful in 2m13s
Test and push Docker image / push (pull_request) Has been skipped
1f21bb7026
fix: recover full login after session expiry during HTMX navigation
All checks were successful
Test and push Docker image / test (pull_request) Successful in 2m19s
Test and push Docker image / push (pull_request) Has been skipped
ee77438f90
exler merged commit 0461997d12 into main 2026-10-25 08:20:30 +01:00
exler deleted branch feat/people-first 2026-10-25 08:20:30 +01:00
Sign in to join this conversation.
No reviewers
No milestone
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
exler/spendbee!5
No description provided.