Commit Graph
2190 Commits
Author SHA1 Message Date
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 ' 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 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
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
eitchtee 91275e0256 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-20 02:45:26 +00:00
Weblate dddd757bb5 Merge remote-tracking branch 'origin/main' 2026-11-20 02:44:56 +00:00
Herculino Trotta 0f5f925683 Merge pull request #695 from eitchtee/feat/auto-tagging
feat(transactions): add lightweight auto-tagging for unclassified transactions
2026-11-19 23:44:53 -03:00
Herculino Trotta c29a6bea8f feat(transactions): add lightweight auto-tagging for unclassified transactions 2026-11-19 20:00:51 -03:00
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
Dimitri Decrock 35f406d3f9 locale(Dutch): update translation
Currently translated at 100.0% (991 of 991 strings)

Translation: WYGIWYH/App
Translate-URL: https://translations.herculino.com/projects/wygiwyh/app/nl/
2026-11-19 05:58:59 +00:00
Dimitri Decrock 3f3855e905 locale(Dutch): update translation
Currently translated at 93.4% (926 of 991 strings)

Translation: WYGIWYH/App
Translate-URL: https://translations.herculino.com/projects/wygiwyh/app/nl/
2026-11-18 05:58:59 +00:00
Weblate 5ad69061ba Merge remote-tracking branch 'origin/main' 2026-11-17 16:06:32 +00:00
eitchtee f36593cce8 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-17 16:06:28 +00:00
Weblate 75ab7d3e56 Merge remote-tracking branch 'origin/main' 2026-11-17 16:06:02 +00:00
Herculino Trotta 0ff29ba465 Merge pull request #693 from eitchtee/fix/export-restore
fix(export): multi-user restore, large exports, and export/restore on the page
2026-11-17 13:05:58 -03:00
Herculino Trotta 8d6b86b7ca feat(export): export and restore on the page, with progress and messages
The export and restore forms now sit on the Export and Restore page
instead of an offcanvas. Exporting shows a progress line and a toast
when the download starts; restoring splits ZIP and CSV uploads into
tabs and shows errors in the form.

- An empty export warns instead of downloading the message as a file
- Export errors show a message instead of a stuck spinner
- The download link is kept long enough for Safari to save the file
- Non-superusers get a 403 instead of a redirect loop with the login
- The asset classes CSV can be uploaded on its own
- Drop the export form's unknown investment_classes layout field
2026-11-17 13:01:25 -03:00
Herculino Trotta 5ea7f79f56 fix(export): keep each user's names on restore and speed up big exports
Restore looked categories, tags and entities up through the admin's
filtered manager, so other users' transactions moved to the admin's
categories and lost their tags. They are now matched to the row's
owner (then to ones that owner can see) and created for that owner.
Export also read tags and entities through that manager and left other
users' private ones out.

Recurring transactions and installment plans now export account_owner,
which restore already read but never received.

Transaction exports ran a few queries per row and paged prefetched rows
with OFFSET, so large histories timed out. They now load relations up
front and read in cursor chunks: 200k transactions export in ~43s with
~200 queries (10k took 34s and ~21k queries before).

Fixes #691
Fixes #692
2026-11-17 13:01:25 -03:00
Dimitri Decrock bc12332619 locale(Dutch): update translation
Currently translated at 88.0% (867 of 985 strings)

Translation: WYGIWYH/App
Translate-URL: https://translations.herculino.com/projects/wygiwyh/app/nl/
2026-11-16 04:58:59 +00:00
eitchtee 627e47341e chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-15 20:01:24 +00:00
Herculino Trotta 3752682f63 Merge pull request #686 from eitchtee/weblate
Translations update from Weblate
2026-11-15 17:00:59 -03:00
Weblate 679e96a0b3 Merge remote-tracking branch 'origin/main' 2026-11-15 19:58:42 +00:00
eitchtee 75c854d034 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-15 19:58:38 +00:00
Weblate 791d35ad20 Merge remote-tracking branch 'origin/main' 2026-11-15 19:58:17 +00:00
Herculino Trotta c58129ccfe Merge pull request #689 from eitchtee/feat/oauth-consent-screen
feat(oauth): match the consent screen to the app
2026-11-15 16:58:13 -03:00
Herculino Trotta 615bc0033e feat(oauth): match the consent screen to the app
Override django-oauth-toolkit's unstyled authorize template with the login
page's layout. It says who's signed in, what the app will be able to do, and
where the answer is sent, so a look-alike app with someone else's redirect
is easier to spot.
2026-11-15 16:54:14 -03:00
Weblate b4740e4e00 Merge remote-tracking branch 'origin/main' 2026-11-15 19:45:17 +00:00
eitchtee cb8f5128ab chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-15 19:45:11 +00:00
Weblate 82bcb635ef Merge remote-tracking branch 'origin/main' 2026-11-15 19:44:44 +00:00
Herculino Trotta faa47d2d7c Merge pull request #688 from eitchtee/feat/native-mcp
feat(api): native MCP server at /mcp
2026-11-15 16:44:18 -03:00
Weblate 9fcea382d6 Merge remote-tracking branch 'origin/main' 2026-11-15 19:44:18 +00:00
Herculino Trotta c38ad7e294 Merge pull request #687 from eitchtee/fix/recurring-end-date
fix(transactions): drop unpaid recurring occurrences past a shorter end date
2026-11-15 16:44:15 -03:00
Herculino Trotta 9ba19bd3b5 docs: point to the built-in MCP server's generic tools, drop the third-party one
WYGIWYH ships its own MCP server now, and that project looks abandoned.
2026-11-15 16:39:19 -03:00
Herculino Trotta f5414223ab fix(transactions): drop unpaid recurring occurrences past a shorter end date
Editing a recurring transaction to end earlier kept its unpaid occurrences
after the new end date, counting them in projected balances, and left
last_generated_date past it. Remove them (both sides of a generated transfer;
a partner linked from elsewhere is unlinked and kept) and move the bookmark
back to the last remaining occurrence. Paid occurrences stay.

Also pin ENABLE_SOFT_DELETE=False on the test that asserts hard deletes, so a
.env that turns soft delete on no longer fails it.
2026-11-15 16:36:29 -03:00