Commit Graph
83 Commits
Author SHA1 Message Date
Asish Kumar b10323b6f5 feat(transactions): open the transaction pages with a default filter preset
Saved filter presets have to be picked from the menu every time a page
opens, so a view someone always wants, like hiding projected
transactions (#521), takes a few clicks on every visit or a bookmarked
URL.

A preset can now be set as the default from the presets menu, with the
star next to its name. All transactions and the Monthly overview then
open with it applied, relative dates moved to today, whenever their
URL has no filters of its own:

- `FilterPreset.is_default`, with a constraint allowing one default per
  user. Starring another preset moves the default to it, and starring
  the default again turns it off.
- Filters in the URL, like `/transactions/?is_paid=1`, take precedence
  over the default, and Clear still empties the filter for the visit.
- The star stays visible on the default preset and shows on hover for
  the others, like the delete button.
- Building a filter from a preset moves into
  `TransactionsFilter.from_preset`, shared by applying a preset and
  opening a page with the default one.
2026-11-20 02:28:10 +05:30
Herculino Trotta 262ac3fbb6 Merge remote-tracking branch 'origin/main' into feat/filter-preset-relative-dates
# Conflicts:
#	app/apps/transactions/filters.py
2026-11-14 11:29:15 -03:00
Herculino Trotta 5cc68f4bfc fix(transactions): follow visual order when tabbing through the save preset dialog
The relative dates option was shown below the preset name with CSS order
but came before it in the page, so Tab reached it first. It is now
inserted right after the name input when the dialog opens.
2026-11-14 11:26:53 -03:00
Herculino Trotta ae245fb1d1 feat(transactions): add sub-transactions
Splits a transaction into named parts whose amounts add up to its amount,
e.g. the items of a big purchase or the fees inside an investment
contribution. Parts can be set on transactions, installment plans,
recurring and quick transactions, and are copied to the transactions they
generate. Transfers can't have parts.

Transactions show their parts under a tab on the card and in the
investment detail. The content filter matches part names, and bulk edits
leave the amount of split transactions alone.
2026-11-14 02:13:21 -03:00
Asish Kumar ced7f3826e feat(transactions): keep filter preset dates relative to today
Filter presets save the exact dates they were created with, so a preset
for "from today" or "this month" goes stale the next day or month.

The save dialog now offers "Keep dates relative to today". When ticked,
the preset remembers the day it was saved (`FilterPreset.relative_to`)
and, when applied, moves its dates forward by the time elapsed since:
"Date from"/"Until" by days and the reference months by months. A preset
saved with today as the start date always starts today, and one saved
for the current reference month always shows the current month.

- The option is only stored when the preset has a date filter.
- Presets with relative dates show a clock icon in the presets menu.
- Presets saved before this change, or without the option, keep their
  fixed dates.
2026-11-12 22:59:59 +05:30
Herculino Trotta 3716b9b0e3 feat(transactions): link transfer sides and show them as a single item
Transfers are still two transactions, now linked to each other:
- shown as one item in lists, with each side's amount, account,
  category and tags ("Combine transfers" user setting, on by default)
- date, reference date, paid and mute stay in sync between sides
- edit opens the transfer form; delete, restore, duplicate and bulk
  actions act on both sides
- transfers made by the transfer form now trigger rules for each side

Recurring and quick transactions gain a Transfer type, with a "To
account" and optional "To amount", generating linked transfers. A
transfer can be converted into either.

Existing transfers are left as they are, since there is no reliable
way to pair them.
2026-11-02 01:14:46 -03:00
Herculino Trotta c274e92f86 Merge pull request #613 from eitchtee/feat/transaction-convert-menu
feat(transactions): convert a transaction into a quick transaction, recurring transaction or installment plan
2026-10-10 17:51:13 -03:00
Herculino Trotta 8c5c299312 feat(transactions): add views to convert a transaction into a quick transaction, recurring transaction or installment plan 2026-10-09 23:25:19 -03:00
Herculino Trotta 52fe81f564 feat(ui:transaction): deleting transactions is smoother and no longer requires a full list refresh 2026-09-12 13:45:41 -03:00
Herculino Trotta 0ab2a41ccc feat(ui:filter): add quick clear button to filter button 2026-09-12 12:06:55 -03:00
Herculino Trotta cd48edddab feat(transactions): add htmx filter presets 2026-08-16 01:40:11 -03:00
Herculino Trotta 6a19381672 feat(transactions): add attachments 2026-06-06 04:33:06 -03:00
Herculino Trotta 8fc11b0acf feat(transactions): hide filter on page load to prevent flashing 2026-05-01 00:07:43 -03:00
Herculino Trotta b074ef7929 feat: add late section to monthly and all views (w/ default ordering) 2026-01-10 02:52:46 -03:00
Herculino Trotta 01f91352d6 feat(transactions:filter): make montlhy summary filter-aware 2025-12-28 13:20:25 -03:00
Herculino Trotta 4aa29545ec feat: remove bootstrap's collapses; improve animations 2025-12-14 11:06:55 -03:00
Herculino Trotta 0b0d760bab feat: guess what, more changes 2025-11-11 20:21:01 -03:00
Herculino Trotta 7e37948616 feat: more changes and fixes 2025-11-09 15:31:50 -03:00
Herculino Trotta cd54df6f2d feat: more changes and fixes 2025-11-08 14:06:01 -03:00
Herculino Trotta 9ade58a003 feat: another batch 2025-11-03 01:40:13 -03:00
Herculino Trotta 89b2d0118d feat: another batch of fixes 2025-11-02 03:03:22 -03:00
Herculino Trotta a63367a772 feat: first batch of work 2025-11-01 03:15:44 -03:00
Herculino Trotta e600d87968 feat: automated replacement 2025-10-28 14:13:30 -03:00
Herculino Trotta 791e1000a3 feat(all-transactions): turn filter, order and search into a single bar 2025-08-19 14:01:35 -03:00
Herculino Trotta f80f74a01a refactor(transactions:all): reduce screen state by moving filter to top 2025-08-06 11:45:43 -03:00
Herculino Trotta 5e7e918085 feat: add FAB to networth and all transactions pages 2025-07-19 23:59:58 -03:00
Herculino Trotta b4e9446cf6 chore: update tailwind to v4
As is customary in the JS world EVERYTHING must break with each major version
2025-06-21 16:12:44 -03:00
Herculino Trotta 0a3e47819a feat: add trash can to see deleted transactions 2025-02-01 11:12:43 -03:00
Herculino Trotta 39c1f634b6 feat: add account and currency info to monthly view 2025-02-01 00:51:16 -03:00
Herculino Trotta 43382d2ffe feat: store selected "order by" on session
Closes #95
2025-01-28 20:05:00 -03:00
Herculino Trotta a22a95cb9f locale: update locales 2025-01-25 13:54:10 -03:00
Herculino Trotta 1ef7a780fb feat: bulk edit selected transactions 2025-01-25 12:41:55 -03:00
Herculino Trotta e71775292a feat(transactions): proper clear button for filters 2025-01-25 01:30:24 -03:00
Herculino Trotta 0857b44fc3 feat: add new /add/ endpoint for quickly adding new transactions 2025-01-24 22:50:39 -03:00
Herculino Trotta 9c4ba3a6de fix(transactions): unaligned type button 2025-01-24 22:48:24 -03:00
Herculino Trotta 6c60c3659c feat(transactions): new is_paid switch 2025-01-24 22:47:00 -03:00
Herculino Trotta e72d6cd1ea fix(transactions:filter): unaligned filter buttons 2025-01-24 22:42:01 -03:00
Herculino Trotta 6955294283 feat(datepicker): drop native datepickers in favor of AirDatePicker for better compatibility
As Firefox (still) doesn't support month input type
2025-01-14 23:47:03 -03:00
Herculino Trotta 0ab0ad2ccb refactor(transactions:all): change columns ordering on mobile 2024-12-25 23:42:41 -03:00
Herculino Trotta e461e87688 feat(transactions:all): add summary 2024-12-25 23:36:28 -03:00
Herculino Trotta 3500f667a9 feat: move action_bar to it's own cotton component and add basic sum of selected items 2024-11-06 17:07:22 -03:00
Herculino Trotta 4bea55dc63 feat: keep natural date collapsible state 2024-10-30 23:53:25 -03:00
Herculino Trotta 15cc7018c0 feat: add cotton component for empty message 2024-10-29 13:42:02 -03:00
Herculino Trotta da8a8323fd locale(pt-BR): update translation 2024-10-28 01:08:08 -03:00
Herculino Trotta 5aec7b840e feat: add ordering selector to monthly_overview and all_transactions 2024-10-28 00:57:54 -03:00
Herculino Trotta 550da1d63e refactor: replace select all action icon with square 2024-10-26 19:33:18 -03:00
Herculino Trotta 5a5262b713 feat: add all transactions page 2024-10-26 19:16:17 -03:00
Herculino Trotta 11028ebe46 fix: item fragment doesn't use cotton component 2024-10-26 01:49:39 -03:00
Herculino Trotta c513bda3fd feat: convert transaction-item to django-cotton 2024-10-24 16:27:28 -03:00
Herculino Trotta b9a9e279dc feat: add rules for transactions 2024-10-23 00:39:14 -03:00