[PR #85] [MERGED] feat: add number format user setting and improve date format handling #163

Closed
opened 2025-12-29 00:18:35 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/eitchtee/WYGIWYH/pull/85
Author: @eitchtee
Created: 1/27/2025
Status: Merged
Merged: 1/27/2025
Merged by: @eitchtee

Base: mainHead: number_format


📝 Commits (8)

  • 7fe446e refactor: remove custom_date filter
  • a08548b feat: add local access to user and request from anywhere
  • 9589400 feat: add number_format user setting
  • 3796112 feat: monkey patch get_format to return usersettings
  • 187c56c refactor: remove user attr from datepicker
  • 80bad24 refactor: remove custom_date filter
  • 81b8da3 feat: add number_format to user_settings form
  • 331a7d5 locale: update translations

📊 Changes

27 files changed (+460 additions, -369 deletions)

View changed files

📝 app/WYGIWYH/settings.py (+1 -0)
app/apps/common/functions/format.py (+31 -0)
📝 app/apps/common/middleware/localization.py (+11 -3)
app/apps/common/middleware/thread_local.py (+73 -0)
app/apps/common/templatetags/date.py (+0 -32)
📝 app/apps/common/templatetags/formats.py (+1 -1)
📝 app/apps/common/widgets/datepicker.py (+1 -17)
📝 app/apps/common/widgets/decimal.py (+3 -1)
📝 app/apps/currencies/forms.py (+2 -4)
📝 app/apps/currencies/views/exchange_rates.py (+4 -4)
📝 app/apps/dca/forms.py (+2 -2)
📝 app/apps/dca/views.py (+4 -4)
📝 app/apps/monthly_overview/views.py (+2 -2)
📝 app/apps/transactions/filters.py (+3 -3)
📝 app/apps/transactions/forms.py (+9 -13)
📝 app/apps/transactions/views/installment_plans.py (+4 -6)
📝 app/apps/transactions/views/recurring_transactions.py (+4 -8)
📝 app/apps/transactions/views/transactions.py (+10 -16)
📝 app/apps/users/forms.py (+14 -0)
app/apps/users/migrations/0017_usersettings_number_format.py (+18 -0)

...and 7 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/eitchtee/WYGIWYH/pull/85 **Author:** [@eitchtee](https://github.com/eitchtee) **Created:** 1/27/2025 **Status:** ✅ Merged **Merged:** 1/27/2025 **Merged by:** [@eitchtee](https://github.com/eitchtee) **Base:** `main` ← **Head:** `number_format` --- ### 📝 Commits (8) - [`7fe446e`](https://github.com/eitchtee/WYGIWYH/commit/7fe446e510974ca306fb097e6518d08a38ce8089) refactor: remove custom_date filter - [`a08548b`](https://github.com/eitchtee/WYGIWYH/commit/a08548bb136f22031d536cbabd4552731e0a0cfc) feat: add local access to user and request from anywhere - [`9589400`](https://github.com/eitchtee/WYGIWYH/commit/958940089ad0b05254be6470223c7cab95b22269) feat: add number_format user setting - [`3796112`](https://github.com/eitchtee/WYGIWYH/commit/3796112d77a2421e3142c3483ecf047eb56b7e7b) feat: monkey patch get_format to return usersettings - [`187c56c`](https://github.com/eitchtee/WYGIWYH/commit/187c56c96cbd165e927ec402018e0312f5a95858) refactor: remove user attr from datepicker - [`80bad24`](https://github.com/eitchtee/WYGIWYH/commit/80bad240e72a73207c0723c149e787cfc29d8874) refactor: remove custom_date filter - [`81b8da3`](https://github.com/eitchtee/WYGIWYH/commit/81b8da30d622c2585fcf455c069d877cf37802a3) feat: add number_format to user_settings form - [`331a7d5`](https://github.com/eitchtee/WYGIWYH/commit/331a7d5b1847953b14056f12c40560da038b6925) locale: update translations ### 📊 Changes **27 files changed** (+460 additions, -369 deletions) <details> <summary>View changed files</summary> 📝 `app/WYGIWYH/settings.py` (+1 -0) ➕ `app/apps/common/functions/format.py` (+31 -0) 📝 `app/apps/common/middleware/localization.py` (+11 -3) ➕ `app/apps/common/middleware/thread_local.py` (+73 -0) ➖ `app/apps/common/templatetags/date.py` (+0 -32) 📝 `app/apps/common/templatetags/formats.py` (+1 -1) 📝 `app/apps/common/widgets/datepicker.py` (+1 -17) 📝 `app/apps/common/widgets/decimal.py` (+3 -1) 📝 `app/apps/currencies/forms.py` (+2 -4) 📝 `app/apps/currencies/views/exchange_rates.py` (+4 -4) 📝 `app/apps/dca/forms.py` (+2 -2) 📝 `app/apps/dca/views.py` (+4 -4) 📝 `app/apps/monthly_overview/views.py` (+2 -2) 📝 `app/apps/transactions/filters.py` (+3 -3) 📝 `app/apps/transactions/forms.py` (+9 -13) 📝 `app/apps/transactions/views/installment_plans.py` (+4 -6) 📝 `app/apps/transactions/views/recurring_transactions.py` (+4 -8) 📝 `app/apps/transactions/views/transactions.py` (+10 -16) 📝 `app/apps/users/forms.py` (+14 -0) ➕ `app/apps/users/migrations/0017_usersettings_number_format.py` (+18 -0) _...and 7 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 00:18:35 +01:00
adam closed this issue 2025-12-29 00:18:36 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WYGIWYH#163