feat: People First Spendbee experience #5
No reviewers
Labels
No labels
Enhancement
Bug
Feature
Performance
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
exler/spendbee!5
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/people-first"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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
SPENDBEE_REQUIRE_BROWSER=1(Django + real Chromium flows).c49a8df; image publishing was correctly skipped for the pull_request event.Review boundaries / known limitations
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 — after, 390x844 — viewport
Group expenses — before, 1280x900 — viewport
Group expenses — after, 1280x900 — viewport
Balances — before / after
Balances — before, 390x844 — viewport
Balances — after, 390x844 — viewport
Balances — before, 1280x900 — viewport
Balances — after, 1280x900 — viewport
Focused expense form — before / after
Focused expense form — before, 390x844 — viewport
Focused expense form — after, 390x844 — viewport
Focused expense form — before, 1280x900 — viewport
Focused expense form — after, 1280x900 — viewport
Groups overview — before / after
Groups — before, 1280x900 — viewport
Groups — after, 1280x900 — viewport
Supporting languages, sizes and states
Group expenses — Polish, 390px — viewport
Expense form — Polish, 390px — viewport
Group expenses — 360px — viewport
Group expenses — tablet, 768px — viewport
Partial balances — missing rate, 390px — viewport
Restored receipt review — file reselection notice, 390px — viewport
Readability regression states
Balances debt section —390px, scrolled viewport
Polish narrow phone partial balance —360px
Large amount wrapping —390px
Settled viewer —390px
Supplementary full-page downloads
These are additional inspection files, not the primary readability evidence.
Mobile balance readability correction —
1f21bb7The 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 —
ee77438Design 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 loginnextfield 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.
Remote CI for
ee77438: Test and push Docker image / test (pull_request) = success, Test and push Docker image / push (pull_request) = skipped.