2156 Commits
Author SHA1 Message Date
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
Herculino Trotta 4754f7e022 feat(api): serve a native MCP server at /mcp
Off unless MCP_ENABLED=true. Runs inside the web app (stateless Streamable
HTTP, JSON responses), so no extra container or supervisord program.

- Tools run the REST views in-process as the caller, so permissions,
  sharing, validation and transaction rules stay the API's.
- 11 curated tools with compact output, plus search_api/call_api to reach
  every other API endpoint from the OpenAPI schema.
- OAuth protected-resource metadata (RFC 9728) and a WWW-Authenticate hint
  on 401s, so MCP clients find the existing OAuth server and DCR.
- GET /api/transactions/summary/: totals per currency and type, optionally
  grouped by category, tag, entity, account or month.

API changes found while testing it:

- Writes no longer need Django model permissions, which nothing granted;
  access now matches the web UI (signed-in user, scoped querysets, owner-only
  edits of shared objects). API tokens and OAuth apps can now write for
  regular users.
- Account group owner is read-only; it could be set to another user.
- Reject negative installment, recurring, DCA and exchange-rate amounts, a
  zero recurrence interval, and performance on non-investment accounts.
- Accounts can be archived; group_id/exchange_currency_id are optional;
  category accepts null; currency prefix/suffix keep their spaces.
- Transactions filter by tags and entities.
- OpenAPI: separate request schemas (COMPONENT_SPLIT_REQUEST) and real
  descriptions for the viewsets and DCA chart actions.
2026-11-15 16:29:06 -03:00
Herculino Trotta 9ad872a903 locale(Portuguese (Brazil)): update translation
Currently translated at 100.0% (978 of 978 strings)

Translation: WYGIWYH/App
Translate-URL: https://translations.herculino.com/projects/wygiwyh/app/pt_BR/
2026-11-15 03:21:39 +00:00
Herculino Trotta eb51e240ac Merge pull request #672 from officialasishkumar/fix/qif-dedup-account
fix(import): make QIF deduplication account-aware and keep identical transactions
0.27.0
2026-11-14 12:20:49 -03:00
Herculino Trotta d763d0ffb8 fix(import): leave QIF headers out of the hash and skip non-transaction sections
The !Type header line was buffered into the first transaction's raw
lines, so a transaction hashed differently depending on whether it
opened the export. An overlapping export with a different first
transaction imported it twice. Header lines are now left out of the
internal ID. The previous-hash check still hashes the full lines,
headers included, and runs on the first appearance of each of those,
so a first transaction and an identical later one imported before
this change are both still recognized.

Account blocks (!Account and !Option:AutoSwitch account lists) and
non-transaction sections (!Type:Cat, !Type:Class, !Type:Memorized and
any type not in QIF_TRANSACTION_SECTIONS) were read with the
transaction codes, where T is an account's type and D a description,
so files containing them failed to import. They are now skipped, and
each skipped section is logged.
2026-11-14 12:16:15 -03:00
eitchtee b6a62a3e8c chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-14 14:41:29 +00:00
Herculino Trotta 304817470d Merge pull request #673 from officialasishkumar/feat/filter-preset-relative-dates
feat(transactions): keep filter preset dates relative to today
2026-11-14 11:41:04 -03:00
Herculino Trotta 72502c8873 fix(transactions): renumber filter preset migration after sub-transactions
main added 0053_sub_transaction, which also depends on 0052, so the
filter preset migration becomes 0054 to keep a single leaf.
2026-11-14 11:36:30 -03:00
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 35c288582b fix(transactions): store filter preset dates as ISO
Presets kept dates as typed, such as "Novembro 2026" or "14/11/2026",
so changing the language or date format made them unreadable and they
were silently dropped. Dates are now stored as ISO and shown in the
user's current format when the preset is applied. Presets saved before
this keep working while the language and format stay the same.
2026-11-14 11:28:36 -03:00
Herculino Trotta c5717d41c2 feat(transactions): keep whole-month preset ranges on whole months
A preset whose dates run from the 1st to the last day of a month moved
by days, so a "this month" range drifted into the next month. Such a
range now moves by months, ending on the last day of its new month.
2026-11-14 11:27:38 -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
eitchtee 6c4b117d11 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-14 14:06:20 +00:00
Herculino Trotta cc13280160 Merge pull request #685 from officialasishkumar/fix/recurring-edit-unpaid-account
fix(transactions): move unpaid recurring transactions when the account or type changes
2026-11-14 11:05:53 -03:00
Herculino Trotta ed513a2171 fix(transactions): unlink outside transfers broken by a recurrence edit
An unpaid occurrence linked to a transaction outside its recurrence (e.g. through a DCA entry) could end up as two expenses, or both sides in one account, after the recurrence's type or account changed. The link is now dropped in that case; the partner is left untouched.
2026-11-14 11:02:38 -03:00
Asish Kumar 4532677e49 fix(transactions): move unpaid recurring transactions when the account or type changes
Editing a recurring transaction only refreshed the amount, description,
category, notes, tags and entities of its unpaid transactions. Changing its
account or type left the already generated transactions behind: a monthly
expense moved to another account kept its upcoming months in the old one,
and an expense turned into an income kept pulling projected balances down.
New occurrences followed the new settings, so the recurrence ended up split
across two accounts.

Unpaid transactions now take the recurrence's account and type as well,
keeping their dates, the same way installment plans already update theirs.
For recurring transfers:

- the "to" sides follow the "to" account and amount;
- turning a recurrence into a transfer adds the missing "to" sides;
- turning a transfer into an income or expense removes the unpaid "to"
  sides and leaves the paid transfers linked.

A "to" side is now recognised by its partner belonging to the same
recurrence, so an occurrence the user linked by hand to another
transaction is updated like any other occurrence instead of being treated
as a generated "to" side.
2026-11-14 17:00:17 +05:30
eitchtee 93fa7b272e chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-14 06:23:31 +00:00
Herculino Trotta 709a8a89f0 Merge pull request #684 from eitchtee/fix/sharing-help-text
fix(sharing): clarify what shared and public visibility allow
2026-11-14 03:23:07 -03:00
Herculino Trotta 66351aee49 fix(sharing): clarify what shared and public visibility allow
"Only editable by the owner" read as covering an account's transactions
too, which led to GHSA-36w2-769w-h62g being reported. Sharing an account
or making it public deliberately opens its ledger to everyone who can
see it; only the object itself stays owner-only.

State that in the generic visibility help text, and spell out the
account case on the account share panel.
2026-11-14 03:18:37 -03:00
Herculino Trotta bdda13343e Merge pull request #683 from eitchtee/GHSA-vcr4-g82g-wcq8
fix(transactions): scope installment plan and recurring transaction lookups
2026-11-14 03:06:41 -03:00
Herculino Trotta 348bc6e519 fix(transactions): scope installment plan and recurring transaction lookups
InstallmentPlan and RecurringTransaction declare the unfiltered
all_objects manager first and set no default_manager_name, so
get_object_or_404(Model, id=...) bypassed account visibility. Any
logged-in user could read, refresh, pause, finish or delete another
user's plans (and their transactions) by id.

Resolve the nine per-object views through the filtered objects manager,
as the list views, the API and the transaction views already do.

Refs GHSA-vcr4-g82g-wcq8
2026-11-14 03:01:49 -03:00
eitchtee 11c9d60954 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-14 05:38:09 +00:00
Herculino Trotta 3b47562cfb Merge pull request #681 from eitchtee/fix/api-docs-warnings
fix(api): clear the API docs schema warnings
2026-11-14 02:37:25 -03:00
Herculino Trotta 59dccd72d8 Merge pull request #680 from eitchtee/fix/rule-dry-run-connection
fix(rules): rule dry runs fail with a 500
2026-11-14 02:37:12 -03:00
Herculino Trotta 6576435168 Merge pull request #679 from eitchtee/feat/sub-transactions-2
feat: sub-transactions
2026-11-14 02:36:58 -03:00
Herculino Trotta a970c99e12 chore(demo): add sub-transaction examples to the demo data 2026-11-14 02:13:22 -03:00
Herculino Trotta 3dcc2316fb feat(export): back up sub-transactions and quick transactions 2026-11-14 02:13:21 -03:00
Herculino Trotta 188876fdf0 feat(rules): add, change and remove sub-transactions in rules
Adds a Sub-transactions field to edit actions and update-or-create
actions. Expressions get a sub_transactions variable and return a list of
{name, amount}; an empty list removes the parts. Rules skip transfers, and
setting the amount of a split transaction is skipped.
2026-11-14 02:13:21 -03:00
Herculino Trotta 5459865366 feat(api): read and write sub-transactions
Transactions, installment plans and recurring transactions take a nested
sub_transactions list; their amount becomes the parts' sum. Changing only
the amount of a split transaction, or adding parts to a transfer, is a
validation error.
2026-11-14 02:13:21 -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
Herculino Trotta a432fae632 fix(api): clear the API docs schema warnings
Describe the API token authentication, name the colliding transaction
type enums, and use nullable instead of an OpenAPI 3.1 null type. A test
keeps the schema free of warnings.
2026-11-14 02:12:16 -03:00
Herculino Trotta 00f014ccae fix(rules): keep the connection when tasks run inside a transaction
Rule dry runs call tasks directly inside an atomic block they roll back.
The connection cleanup wrapper closed that connection, so every dry run
failed with a 500.
2026-11-14 02:11:15 -03:00
eitchtee 9714df8820 chore(locale): update translation files
[skip ci] Automatically generated by Django makemessages workflow
2026-11-13 21:56:52 +00:00
Herculino Trotta a0588e33d6 Merge pull request #678 from eitchtee/feat/convert-to-transfer
feat(transactions): convert a transaction into a transfer
2026-11-13 18:56:18 -03:00
Herculino Trotta 2a06bd4a06 feat(transactions): convert a transaction into a transfer
Adds Convert > Transfer to the transaction menu. The transfer form opens
prefilled on the side matching the transaction type (expense = from,
income = to); saving creates the transfer and deletes the original.
Not available for transfers or plan/recurrence transactions.
2026-11-13 18:50:46 -03:00