Improve Settle up avatars and amount prefilling #4
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!4
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/issue-3"
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?
Summary
Closes #3.
Intl.NumberFormat, preserving the currency formatting introduced in main, and reset to the group base currency when applying a suggestion.Upstream integration
Merged
4c5968e15c86aa7638bb14781ffe8b16bc8f2b1dinto this branch without rewriting history. Preservedmoney(v)/Intl.NumberFormatfor labels and the PR's translate-tag fix for EN/PL placeholders. Amount inputs remain raw decimals. Re-ran all 188 tests, changed-file lint, and all 23 browser interaction checks after reconciliation.Root cause and approach
The settlement picker previously rendered names only. Its partial suggestion logic cleared the amount on payer changes and discarded all form state on validation errors. Shared server-rendered member rows now reuse the existing avatar style; Alpine updates only automatically suggested amounts. Names remain Django-escaped rather than interpolated into JavaScript.
Verification
uv sync --frozen.uv run pytest -q: 188 passed (including avatar, escaping, invalid submission and EN/PL label regressions).uv run ruff check expenses/views.py tests/test_expenses.py tests/test_i18n.py: passed.git diff --check: passed.Limits / risk
staticfiles/warning under test storage settings.Visual verification
Fixture-rendered Django route with synthetic local members; real Alpine.js interactions, no production account.
