Commit Graph
2219 Commits
Author SHA1 Message Date
eitchtee a79d5d9252 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-12-05 18:39:30 +00:00
Herculino Trotta 499aa7ac77 Merge pull request #712 from officialasishkumar/fix/split-event-delete
fix(splits): let events with expenses or payments be deleted
2026-12-05 15:39:04 -03:00
Herculino Trotta 1298e38772 refactor(splits): delete attachment files when their rows are deleted
A post_delete receiver replaces the file deletes in each view, so the files
also go when an attachment is deleted through a cascade from the Django admin
or the organizer's account, and are only removed once the row is.
2026-12-05 15:34:41 -03:00
eitchtee 4ec848a784 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-12-05 05:41:42 +00:00
Herculino Trotta 274308a8dd Merge pull request #708 from eitchtee/feat/selective-transaction-updates
feat(transactions): update saved transactions in place instead of reloading lists
2026-12-05 02:40:52 -03:00
Herculino Trotta 38cf717dee Merge pull request #709 from eitchtee/fix/transaction-picker-mobile-overflow
fix(transactions): keep the transaction picker within the screen on mobile
2026-12-05 02:40:38 -03:00
Herculino Trotta e7b8e488e3 Merge pull request #710 from eitchtee/feat/investments-asset-rebalance
feat(investments): show a per-asset breakdown in the rebalance
2026-12-05 02:40:26 -03:00
eitchtee a54c5a4e8c chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-12-05 05:40:24 +00:00
Herculino Trotta 43014b0113 Merge pull request #711 from officialasishkumar/feat/export-split-expenses
feat(export): back up split expenses
2026-12-05 02:39:20 -03:00
Herculino Trotta 3a5b4cb608 Merge pull request #707 from officialasishkumar/fix/split-sync-run-rules
fix(splits): run rules on transactions created from split events
2026-12-05 02:39:15 -03:00
Herculino Trotta 3b70746a3c Merge pull request #713 from officialasishkumar/fix/duplicate-transaction-rules
fix(transactions): run creation rules on duplicates, not on the originals
2026-12-05 02:39:11 -03:00
Herculino Trotta 4c7ddf1097 Merge pull request #705 from jayhemnani9910/fix/qif-comma-decimal-amounts
fix(import): read comma-decimal amounts in QIF files
2026-12-05 02:39:07 -03:00
Asish Kumar aaa6e3be70 fix(transactions): run creation rules on duplicates, not on the originals
Duplicating a transaction sent transaction_created for the transaction
being duplicated instead of the new copy. Rules that run on creation,
and auto-tagging, were applied to the original a second time: an edit
action rewrote the original's fields while the copy kept them unchanged.
Duplicating a transfer ran nothing on its new "to" side, and bulk
duplicate never ran rules at all.

Both views now send transaction_created for each copy once it's saved,
and for both new sides of a duplicated transfer, the way the transfer
form and quick transactions already do. clone_transaction keeps
returning the copy without side effects, so it can still be used where
no user is signed in.
2026-12-05 05:58:00 +05:30
Asish Kumar d9142f6872 fix(splits): let events with expenses or payments be deleted
Deleting a split event failed with a server error as soon as it had an
expense or a payment, from the event page and from the API alike
(DELETE /api/splits/events/{id}/). Deleting the event cascades to its
participants, and the expenses, shares and payments pointing at them
used on_delete=PROTECT, which refuses even when those rows are being
deleted with the same event. Only empty events could be removed, and an
admin couldn't delete a user who organized one.

- The participant foreign keys on expenses, shares and payments now use
  RESTRICT. A participant with expenses or payments still can't be
  deleted on their own (the people screen and the API already check
  this first), but they now go along with their event. The migration
  only changes Django's state; the database is untouched.
- Deleting an event also removes its attachments' files, as deleting an
  expense or a payment already does, so receipts aren't left behind in
  the private media folder.
2026-12-05 05:51:12 +05:30
Asish Kumar a41b32420a feat(export): back up split expenses
Export and restore left split events out, so moving to a new instance or
restoring a backup lost every event, its people, expenses, payments and
the links to the members' own transactions.

- Export has a "Split Expenses" option, on by default. It writes
  split_events, split_participants, split_expenses, split_expense_shares
  and split_payments. Like the bank sync option, it warns that the file
  carries something sensitive: the events' share links, kept so the links
  people already have keep working after a restore.
- split_transaction_links goes along only when transactions are exported
  too, the same way sub-transactions follow their parents, so a restore
  never points at transactions missing from the backup.
- Restore reads the new files after users, currencies and transactions,
  in dependency order. Everything is matched by id, except the event's
  currency (by name, like DCA strategies) and the linked transaction,
  which is looked up across every user: restore runs as the admin, who
  can't see the other members' transactions.
- Guests' usernames and password hashes are restored, so they can still
  sign in through the share link.
- Attachments stay out, as transaction attachments do: they're files,
  not rows.
2026-12-05 05:46:57 +05:30
Herculino Trotta 2d816f6c57 feat(investments): show a per-asset breakdown in the rebalance
Each asset class now lists its holdings with a suggestion: the class buy
goes to the holdings below an equal share of the class target, lowest first,
and a class sell comes from the ones above it, highest first. A class on
target shows no suggestion, since the spread among its assets doesn't matter.

Also drops the "Left out" line from the rebalance.
2026-12-03 22:30:41 -03:00
Herculino Trotta 8b273df6b9 fix(transactions): keep the transaction picker within the screen on mobile
The rule meant to let a picked transaction shrink never matched: tom-select
puts the item class on the .ts-tx element itself, so .item:has(.ts-tx) found
nothing. Its nowrap text then set the fieldset's min-content width and pushed
the field past the screen edge. Target .ts-tx directly, contain its inline
size, and ellipsize the date so it can't run into the amount.
2026-12-03 22:30:38 -03:00
Herculino Trotta 0244238354 feat(transactions): update saved transactions in place instead of reloading lists
Adding or editing a transaction used to fire "updated", which re-rendered the
whole list. Saves now send "transactions_changed" with the saved ids. Lists
with the transaction_mover behavior ask their own endpoint for just those rows
(?only=<id>), and the server answers with where each row goes: the row after
it and, for lists split by date, its divider. Rows it doesn't return have left
the list and are removed.

Covers the monthly overview, all transactions (a row joining or leaving the
current page still reloads it), and the installment, recurring and calendar
lists. Pages without a mover fall back to "updated".
2026-12-03 21:53:00 -03:00
Asish Kumar e51a688b23 fix(splits): run rules on transactions created from split events
Adding a split expense, payment or planned settlement to "my transactions"
with "Create new WYGIWYH transaction" saved the transaction without sending
transaction_created. Rules and auto-tagging never ran on it, unlike
transactions created from the form, the API, imports, quick transactions
and bank sync.

create_and_link_transaction now sends transaction_created once the
transaction, its tags and entities, and the split link are committed, the
same way quick transactions do. Linking an existing transaction still
doesn't trigger rules, as with bank sync matching.
2026-11-28 11:00:28 +05:30
Jay Hemnani e8f1478c6d fix(import): read comma-decimal amounts in QIF files 2026-11-24 06:48:56 +05:30
Herculino Trotta 6d56958deb Merge pull request #703 from eitchtee/weblate
Translations update from Weblate
0.28.0
2026-11-21 22:25:43 -03:00
Herculino Trotta 08d488575a locale(Portuguese (Brazil)): update translation
Currently translated at 100.0% (1228 of 1228 strings)

Translation: WYGIWYH/App
Translate-URL: https://translations.herculino.com/projects/wygiwyh/app/pt_BR/
2026-11-21 21:59:00 +00:00
Herculino Trotta 1685456dc5 Merge pull request #699 from eitchtee/dependabot/uv/mistune-3.3.4
chore(deps): bump mistune from 3.3.3 to 3.3.4
2026-11-20 20:34:29 -03:00
eitchtee e728d12f81 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-20 23:33:44 +00:00
Herculino Trotta 70a2255e0c Merge pull request #702 from eitchtee/docs/sharing-edit-wording
docs(sharing): owner-only edits cover the shared object, not its contents
2026-11-20 20:32:59 -03:00
Herculino Trotta 6de57d0511 Merge pull request #701 from eitchtee/GHSA-hjfv-p3g6-mwch
fix(rules): only run rules owned by or shared with the acting user
2026-11-20 20:32:54 -03:00
Herculino Trotta 9989cec8b6 Merge pull request #700 from eitchtee/GHSA-fh52-f8r4-hv6g
fix(charts): embed chart data with json_script instead of |safe
2026-11-20 20:32:49 -03:00
Herculino Trotta c8f972d01a fix(templates): pass names to hyperscript through data attributes
Django's &#x27; escaping is decoded by the browser before hyperscript parses
a _="..." attribute, so a quote in a currency or account name closed the
string and the rest ran as hyperscript. Names now live in plain data-*
attributes and are read with @data-*. Spaces in currency prefixes and
suffixes are kept.

Refs GHSA-fh52-f8r4-hv6g
2026-11-20 20:26:30 -03:00
Herculino Trotta c5662708e4 docs(sharing): say that owner-only edits cover the shared object, not its contents
The old wording ("sharing grants read access only") read as if a shared
account's transactions were read-only, which keeps producing BOLA reports
against intended behaviour.
2026-11-20 20:17:04 -03:00
Herculino Trotta c0eca55489 fix(rules): only run rules owned by or shared with the acting user
Rule selection went through SharedObjectManager, which includes every
user's public rules, so a public rule ran against other users'
transactions. Public rules stay readable by everyone; shared rules keep
running for the users they are shared with.

Fixes GHSA-hjfv-p3g6-mwch
2026-11-20 20:16:38 -03:00
Herculino Trotta 2997cf72f0 fix(charts): embed chart data with json_script instead of |safe
Currency, account and category names were rendered into inline <script>
blocks with |safe, so a name containing </script> or a quote ran as script
for every user whose net worth or insights page included it.

Fixes GHSA-fh52-f8r4-hv6g
2026-11-20 20:13:58 -03:00
dependabot[bot] ebd4ef3a23 chore(deps): bump mistune from 3.3.3 to 3.3.4
Bumps [mistune](https://github.com/lepture/mistune) from 3.3.3 to 3.3.4.
- [Release notes](https://github.com/lepture/mistune/releases)
- [Changelog](https://github.com/lepture/mistune/blob/main/docs/changes.rst)
- [Commits](https://github.com/lepture/mistune/compare/v3.3.3...v3.3.4)

---
updated-dependencies:
- dependency-name: mistune
  dependency-version: 3.3.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-20 22:49:39 +00:00
eitchtee 1904968be5 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-20 22:48:54 +00:00
Herculino Trotta 59ceef1339 Merge pull request #698 from eitchtee/expense-share-tracker
feat: split expenses for shared group costs
2026-11-20 19:48:31 -03:00
Herculino Trotta fe2e366a74 feat(api): expose split expenses in the REST API and MCP
Add /api/splits/ endpoints for events, participants, expenses and payments,
plus an event summary (balances and settle-up) and leave action. They share
the web UI's access rules and share calculation. MCP reaches them through
search_api/call_api, and its instructions now point to them.
2026-11-20 19:43:23 -03:00
Herculino Trotta 77bf2d7bdb feat(splits): add split expenses for shared group costs
Track expenses shared with other people (trips, flats, dinners) and settle
up with the fewest payments.

- Events with WYGIWYH users and people without an account, who join through
  a share link and pick a password on first sign-in
- Equal, exact, percentage and share-weight splits that always add up
- Balances, a minimal settle-up plan and an activity feed showing what each
  item means for you
- Link items to your own transactions; recording a payment marks planned
  ones as paid
- Share menu: printable PDF report and PNG images of the summary, settle-up
  and balances (adds modern-screenshot)
- Only the two people involved or the organizer can record a payment;
  members can leave events they don't organize
2026-11-20 19:43:23 -03:00
eitchtee f558d52ac6 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-20 19:52:57 +00:00
Herculino Trotta a12bfdc91f Merge pull request #694 from officialasishkumar/feat/default-filter-preset
feat(transactions): open the transaction pages with a default filter preset
2026-11-20 16:52:33 -03:00
Herculino Trotta f9a630d618 fix(migrations): make filterpreset is_default migration depend on 0055 2026-11-20 16:46:59 -03:00
Herculino Trotta 25c9018aab fix(migrations): renumber filterpreset is_default migration after main's 0055 2026-11-20 16:45:15 -03:00
Herculino Trotta 1114a5a1c4 Merge remote-tracking branch 'origin/main' into feat/default-filter-preset 2026-11-20 16:42:50 -03:00
Herculino Trotta 9d6ce6ff1c Merge pull request #697 from eitchtee/fix/db-pool-size
fix(settings): size DB pool from WEB_THREADS and PROCRASTINATE_WORKER_CONCURRENCY
2026-11-20 13:28:05 -03:00
Herculino Trotta 54e86c29d1 fix(settings): size DB pool from WEB_THREADS and PROCRASTINATE_WORKER_CONCURRENCY 2026-11-20 13:23:02 -03:00
Herculino Trotta 517bce1800 docs(env): document PROCRASTINATE_WORKER_CONCURRENCY for task concurrency 2026-11-20 13:11:44 -03:00
Herculino Trotta 61acd10441 Merge pull request #696 from eitchtee/feat/web-threads
feat(docker): add WEB_THREADS to run gunicorn workers with threads
2026-11-20 13:01:38 -03:00
Herculino Trotta 0f4f36fe85 chore(env): default example env to 1 worker with 4 threads 2026-11-20 12:57:35 -03:00
Herculino Trotta 9ba91383cd feat(docker): add WEB_THREADS to run gunicorn workers with threads 2026-11-20 12:55:34 -03:00
eitchtee 32976a8d2e chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-20 03:39:13 +00:00
Herculino Trotta 26fbbcf378 Merge pull request #690 from eitchtee/weblate
Translations update from Weblate
2026-11-20 00:38:47 -03:00
Weblate d225133009 Merge remote-tracking branch 'origin/main' 2026-11-20 02:45:30 +00:00