Skip to content

Fix currency display in Stash page - #355

Merged
cebarks merged 3 commits into
mainfrom
fix-currency-display
Jul 29, 2026
Merged

Fix currency display in Stash page#355
cebarks merged 3 commits into
mainfrom
fix-currency-display

Conversation

@cebarks

@cebarks cebarks commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Currency items (USD, EUR) now display with proper symbols (₽, $, €) instead of rouble-converted values
  • Stash page shows actual currency counts for currency items

Changes

  • Added currency_type field to StashItemDisplay struct to track currency type
  • Implemented currency detection by template ID in stash handler (RUB: 5449016a4bdc2d6f08b456f6, USD: 5696686a4bdc2da3298b456a, EUR: 569668774bdc2da2298b4568)
  • Updated stash template to conditionally render currency symbols and counts for currency items
  • Removed completed bug from TODO.md

Test plan

  • Navigate to a user's profile Stash tab
  • Verify that USD currency displays as "$ [count]" instead of rouble conversion
  • Verify that EUR currency displays as "€ [count]" instead of rouble conversion
  • Verify that RUB currency displays as "₽ [count]"
  • Verify that non-currency items still display rouble values correctly

Implemented with the help of Claude Code

cebarks and others added 3 commits July 28, 2026 21:34
…low)

Three small fixes:

1. Changelog URL typo: Changed /versions to /#versions in updates carousel
   - The Forge URL path segment /versions 404s; should be a hash anchor

2. Headless restart redirect: Force restart now redirects to main list page
   - Non-HTMX fallback was redirecting to individual client page
   - Now matches graceful restart behavior (redirect to /quma/headless)

3. Action buttons overflow: Added min-width to .action-buttons class
   - Headless table buttons were overflowing their container
   - Added min-width: 10rem to prevent 4-button overflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… rouble conversion

Currency items (USD, EUR) were incorrectly displayed as rouble-converted
values on the Stash page. Now they display with proper currency symbols
(₽, $, €) and show the actual currency count instead of exchange values.

Changes:
- Add currency_type field to StashItemDisplay to track currency type
- Detect currency items by template ID in stash handler
- Update stash template to conditionally render currency symbols and counts
- Remove completed bug from TODO.md

Implemented with the help of Claude Code
…isplay

- Added format_number Askama filter that formats integers with thousand separators
- Currency counts now display as "$ 500,000" instead of "$ 500000"
- Money category header now shows per-currency subtotals (₽X / $Y / €Z) instead of rouble-converted total
- Other categories continue to show rouble-converted totals

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cebarks
cebarks enabled auto-merge (squash) July 29, 2026 04:31
@cebarks
cebarks merged commit f087eb1 into main Jul 29, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant