Skip to content

Release v5.21.0 - #891

Merged
evilguy4000 merged 56 commits into
mainfrom
rc/v5.21.0
Nov 18, 2026
Merged

evilguy4000 merged 56 commits into
mainfrom
rc/v5.21.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Release 5.21.0

Automated release candidate cut from develop.

Checklist

  • CI is green (ci-pass)
  • CHANGELOG looks correct
  • Migrations reviewed (if any)

Notes

Added

  • FatturaPA / SDI (Italy) — FatturaPA 1.2 XML export (FPR12 / FPA12), configurable SDI intermediary HTTP adapter, transmission history, notification handling (RC/NS/MC/NE/DT/AT), and poll_sdi_status every 15 minutes. API: GET /api/v1/invoices/{id}/fatturapa, POST .../send-sdi. See FATTURAPA_SDI.md.
  • Credit notes — End-to-end credit notes (web UI, PDF, UBL, FatturaPA for Italian workflows) and /api/v1/credit-notes CRUD + downloads.
  • Invoice reminders & dunning — Configurable reminder policies with multi-step offsets, client email templates, optional late fees (fixed or annual %), and InvoiceReminderSchedule tracking. Admin → Reminder policies.
  • Invoicing lines — Per-line tax rates, discounts, and explicit line ordering on invoices.
  • Payment gateways — Mollie and PayPal checkout flows completed with gateway refunds and receipt handling.
  • Invoice lifecycle webhooks — invoice.sent, invoice.paid, invoice.overdue, credit_note.created, and payment events (payment.processed, payment.failed, payment.refunded) emitted from invoice, checkout, and scheduled jobs.
  • CRM — Remaining CRM gaps: API coverage, pipeline drag-and-drop, deal forecast, lead-source analytics, communication templates, activity calendar reminders, and module guards.
  • Time tracking — Autotracker, Focus session, and Belgium compliance/reporting gap closure across web and clients.
  • GDPR erase UI — Admin users list Erase (GDPR) action; Import/Export self-service account erasure.
  • Client parity — Mobile CRM deal/lead detail/edit/convert and client notes; reports by-project breakdown; desktop CRM edit/convert + German locale catalog; browser extension manual theme preference.
  • Teams bot — Per-conversation sliding-window rate limit on bot commands (~20/min per conversation).
  • CI — Duration-balanced 8-shard pytest split for faster PR feedback.

Changed

  • Client (and related) custom field forms load definitions filtered by entity_type.
  • Migrated additional native alert()/confirm() call sites (API tokens, report builder, invoices/expenses/projects lists, import/export) to ttAlert/ttConfirm.
  • Support conversion defaults to key_first Supporter CTA; tips route via Buy Me a Coffee and /support checkout.
  • README roadmap marks push notifications, workflows, base forecasting, and FatturaPA/SDI as shipped.
  • Dependencies — Pip, npm (root + desktop), and Flutter flutter_local_notifications bumps (Dependabot chore(deps): bump fullcalendar from 7.1.4 to 7.1.5 in the npm-root group #880–chore(deps): bump the pip group with 9 updates #883).

Fixed

Security

  • Clear CodeQL log-injection findings on credit-note code paths.
  • Ignore APScheduler Safety advisory with no 3.x remediation path.

Documentation


Merging this PR will tag v5.21.0, publish via CD - Release Build,
back-merge into develop, and delete rc/v5.21.0.

evilguy4000 and others added 30 commits November 10, 2026 13:24
SFTY-20261008-90293 targets persistent job-store pickle loads; TimeTracker uses MemoryJobStore only, and no patched 3.x release exists yet.
chore: back-merge v5.20.0 into develop
Raise AGP to Flutter 3.47's minimum 8.11.1, stop tracking host-specific Generated.xcconfig paths, and regenerate Flutter iOS config before pod install in CD.
round() rounds .5 to the even integer, so at 30-minute rounding a
15-minute entry was stored as 0 and a 75-minute entry as 60, while 45
became 60.
fix(time-rounding): round exact halves up with the nearest method
Support Italian e-invoicing with FPR12/FPA12 export, a generic HTTP SDI adapter, transmission tracking/polling, admin UI, docs, and tests.
Format FatturaPA/SDI files with black for CI lint, stop echoing exception text to clients, and document intentional empty excepts.
CI lint failed after black because isort still needed to reorder imports in the new SDI files.
CI trailing-whitespace hook rewrote the vendor schema fixtures; commit the cleaned copies so lint stays green.
feat(invoicing): add FatturaPA XML export and SDI transmission
Separate lifecycle status from payment settlement, stop marking drafts overdue,
recompute paid amounts from the payment ledger, and treat overpayments explicitly
so the dashboard and payment flows stay consistent.
Support mixed VAT rates and allowances on invoice lines, keep a tax breakdown
for Peppol/CII/FatturaPA/XRechnung exports, and lock financial edits on
non-draft invoices while still allowing notes and due-date updates.
Introduce reusable reminder levels with optional fixed or annual late fees,
wire the daily overdue job to send each due level once, and expose admin and
per-client policy controls plus invoice reminder history.
Extend credit notes with line items and numbering, add create/issue/PDF UI,
and export Peppol UBL 381, CII 381, XRechnung, and FatturaPA TD04 documents
linked back to the original invoice.
Add Mollie webhooks, verify PayPal signatures, implement provider refunds,
send payment receipt emails, and let clients download invoice PDFs from the
portal with a provider-neutral checkout page.
Expose send-email plus UBL/XRechnung/FatturaPA downloads on API v1, emit
invoice and credit-note webhook events consistently, and document the new
scopes and payload surface.
Format with black/isort, add the reminder-policy edit script nonce, align
position/late_fee server defaults, and make reminder-policy FK adds SQLite-safe
with batch_alter_table plus the policy_id index.
Sort reminder_policy imports in models and factories-before-app in the
overdue scheduled invoice report test so the isort pre-commit hook passes.
Split the suite across eight jobs using pytest-split least_duration, cache
merged timings between runs, drop verbose coverage reports on shards, and
raise the per-job timeout to 30 minutes as a safety margin.
Close invoicing gaps: correctness, credit notes, dunning, payments, and API
fix(import): accept CSV files saved with a UTF-8 BOM
Sanitize logged route IDs and stop echoing exception text to clients so credit-note create/PDF/XML handlers no longer trip log-injection or stack-trace exposure findings.
Add activities, conversion, pipeline stage moves, forecast, and source analytics to the API; ship pipeline drag-and-drop, communication templates, and calendar reminders on web; fix desktop/mobile field mapping and email-to-deal matching; and prevent Settings timezone lookups from rolling back in-flight CRM mutations.
Unblock Lint and Frontend assets checks for the CRM follow-up PR.
Attach the webhook relationship and default retry_count on create so
mark_failed/mark_success still update counters when timezone lookup
skips Settings while the session has pending CRM work.
base.html defines scripts_extra, not scripts, so the pipeline page script
was never rendered and failed template block coverage.
Close CRM gaps + harden credit-note logging
evilguy4000 and others added 26 commits November 15, 2026 16:54
…gaps

Ship desktop activity capture with local storage and ActivityWatch bridge, make Solo Focus the default lean packaging across setup and clients, and add Belgium attendance history/corrections UI on desktop and mobile.
feat(time-tracking): close remaining autotracker, Focus, and Belgium gaps
Bumps the npm-root group with 1 update: [fullcalendar](https://github.com/fullcalendar/fullcalendar/tree/HEAD/packages/vanilla).


Updates `fullcalendar` from 7.1.4 to 7.1.5
- [Release notes](https://github.com/fullcalendar/fullcalendar/releases)
- [Changelog](https://github.com/fullcalendar/fullcalendar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fullcalendar/fullcalendar/commits/v7.1.5/packages/vanilla)

---
updated-dependencies:
- dependency-name: fullcalendar
  dependency-version: 7.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-root
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the npm-desktop group in /desktop with 4 updates: [axios](https://github.com/axios/axios), [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react), [electron](https://github.com/electron/electron) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `axios` from 1.21.0 to 1.21.1
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.21.0...v1.21.1)

Updates `@vitejs/plugin-react` from 6.2.1 to 6.3.0
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@6.3.0/packages/plugin-react)

Updates `electron` from 45.2.3 to 45.3.1
- [Release notes](https://github.com/electron/electron/releases)
- [Commits](electron/electron@v45.2.3...v45.3.1)

Updates `vite` from 8.3.6 to 8.3.8
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.3.8/packages/vite)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.21.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-desktop
- dependency-name: "@vitejs/plugin-react"
  dependency-version: 6.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-desktop
- dependency-name: electron
  dependency-version: 45.3.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-desktop
- dependency-name: vite
  dependency-version: 8.3.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-desktop
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the pub-mobile group in /mobile with 1 update: [flutter_local_notifications](https://github.com/MaikuB/flutter_local_notifications).


Updates `flutter_local_notifications` from 23.0.0 to 23.0.2
- [Release notes](https://github.com/MaikuB/flutter_local_notifications/releases)
- [Commits](MaikuB/flutter_local_notifications@flutter_local_notifications-v23.0.0...flutter_local_notifications-v23.0.2)

---
updated-dependencies:
- dependency-name: flutter_local_notifications
  dependency-version: 23.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: pub-mobile
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [pikepdf](https://github.com/pikepdf/pikepdf), [firebase-admin](https://github.com/firebase/firebase-admin-python), [sentry-sdk](https://github.com/getsentry/sentry-python), [stripe](https://github.com/stripe/stripe-python), [google-api-python-client](https://github.com/googleapis/google-api-python-client), [coverage](https://github.com/coveragepy/coveragepy), [types-markdown](https://github.com/python/typeshed), [faker](https://github.com/joke2k/faker) and [lxml](https://github.com/lxml/lxml) to permit the latest version.

Updates `pikepdf` to 10.18.1
- [Release notes](https://github.com/pikepdf/pikepdf/releases)
- [Commits](pikepdf/pikepdf@v10.17.0...v10.18.1)

Updates `firebase-admin` from 7.7.0 to 7.8.0
- [Release notes](https://github.com/firebase/firebase-admin-python/releases)
- [Commits](firebase/firebase-admin-python@v7.7.0...v7.8.0)

Updates `sentry-sdk` from 2.74.0 to 2.75.0
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-python@2.74.0...2.75.0)

Updates `stripe` from 16.1.0 to 17.0.0
- [Release notes](https://github.com/stripe/stripe-python/releases)
- [Changelog](https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md)
- [Commits](stripe/stripe-python@v16.1.0...v17.0.0)

Updates `google-api-python-client` from 2.201.0 to 2.202.0
- [Release notes](https://github.com/googleapis/google-api-python-client/releases)
- [Commits](googleapis/google-api-python-client@v2.201.0...v2.202.0)

Updates `coverage` from 7.17.2 to 7.17.3
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](coveragepy/coveragepy@7.17.2...7.17.3)

Updates `types-markdown` from 3.11.2.20261107 to 3.11.3.20261108
- [Commits](https://github.com/python/typeshed/commits)

Updates `faker` from 40.44.0 to 40.54.0
- [Release notes](https://github.com/joke2k/faker/releases)
- [Changelog](https://github.com/joke2k/faker/blob/master/CHANGELOG.md)
- [Commits](joke2k/faker@v40.44.0...v40.54.0)

Updates `lxml` to 6.1.3
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](lxml/lxml@lxml-5.0.0...lxml-6.1.3)

---
updated-dependencies:
- dependency-name: pikepdf
  dependency-version: 10.18.1
  dependency-type: direct:production
  dependency-group: pip
- dependency-name: firebase-admin
  dependency-version: 7.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: pip
- dependency-name: sentry-sdk
  dependency-version: 2.75.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: pip
- dependency-name: stripe
  dependency-version: 17.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: pip
- dependency-name: google-api-python-client
  dependency-version: 2.202.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: pip
- dependency-name: coverage
  dependency-version: 7.17.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: pip
- dependency-name: types-markdown
  dependency-version: 3.11.3.20261108
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: pip
- dependency-name: faker
  dependency-version: 40.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: pip
- dependency-name: lxml
  dependency-version: 6.1.3
  dependency-type: direct:production
  dependency-group: pip
...

Signed-off-by: dependabot[bot] <support@github.com>
…pload-volume

fix(projects): save project attachments in the uploads volume
fix(backup): include receipts and avatars from UPLOAD_FOLDER
…npm-root-ee3d932cf7

chore(deps): bump fullcalendar from 7.1.4 to 7.1.5 in the npm-root group
…develop/npm-desktop-3c4d286490

chore(deps): bump the npm-desktop group in /desktop with 4 updates
…b-mobile-2b7f65368d

chore(deps): bump flutter_local_notifications from 23.0.0 to 23.0.2 in /mobile in the pub-mobile group
…df313

chore(deps): bump the pip group with 9 updates
Lead CTAs with funding, badge, and clean PDFs; keep tips secondary; stop BMC clicks from suppressing key prompts; deep-link system_id on every checkout path; drop orphaned banner JS and lock A/B to key_first.
Tip €5/€10/€25 buttons used href="#" and fell through to the current page when JS blocked the old license-page fallback; give them real BMC links and defaults. Use the canonical /support checkout path with system_id instead of support.html.
Stop assigning checkout URLs into DOM href attributes, reject data/vbscript schemes, and validate tip hosts via hostname equality. Apply black to support_ui, main, and context_processors so Lint passes.
fix(support): improve Supporter key conversion funnel
Add mobile/desktop lead and deal detail edit/convert flows, client notes,
and report by-project breakdown. Ship a German desktop catalog and a
manual light/dark theme preference for the browser extension.
… polish

Expose admin and self-service GDPR anonymization, filter client custom
fields by entity type, rate-limit Teams bot commands, and migrate more
native alert/confirm call sites to ttAlert/ttConfirm with command-palette
gettext entries restored.
Add Slack, push, GDPR erase, and custom-field entity filter tests, and
align README/gap docs with shipped push, workflows, forecasting, and
client parity follow-ups.
Improve client parity, GDPR erase UI, and roadmap polish
Bring CHANGELOG and invoice/e-invoicing docs in line with shipped credit notes,
dunning, FatturaPA/SDI, and gateway refunds; fix black formatting that broke develop CI.
docs(release): refresh Unreleased notes and invoicing docs for 5.21.0
@evilguy4000 evilguy4000 reopened this Nov 18, 2026
@evilguy4000
evilguy4000 merged commit ae91412 into main Nov 18, 2026
31 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants