Commit f730c44
fix: Allow field-based sorting to persist in aggregate views
Fixed state.py sort validation that was resetting field sorts to AMOUNT:
- cycle_grouping() now allows MERCHANT/CATEGORY/GROUP/ACCOUNT sorts
- go_back() now allows field sorts when returning to aggregate views
This was preventing the 's' key from cycling to field sorts because
the view switching logic would immediately reset it back to AMOUNT.
Now field sorting works correctly in all aggregate views.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a6d9c8c commit f730c44
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
274 | 282 | | |
275 | 283 | | |
276 | 284 | | |
| |||
412 | 420 | | |
413 | 421 | | |
414 | 422 | | |
415 | | - | |
416 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
417 | 432 | | |
418 | 433 | | |
419 | 434 | | |
| |||
0 commit comments