Commit graph

686 commits

Author SHA1 Message Date
barredterra
43a991ecc5 fix: limit attribution page to system users 2024-04-06 20:23:56 +02:00
barredterra
1dbc1aafa4 style: format with ruff 2024-04-02 22:22:05 +02:00
barredterra
7e12238511 Merge remote-tracking branch 'upstream/develop' into attribution-page 2024-04-02 22:20:42 +02:00
barredterra
41a28e7381 fix: load crowdin script using https 2024-03-27 13:15:53 +01:00
barredterra
90610a7e8e feat: In-Context Translation 2024-03-27 12:53:15 +01:00
Ankush Menat
071e269548 fix!: Switch to creation as default sort order 2024-03-27 11:18:28 +05:30
barredterra
f40fa6ec73 style: newlines that don't trigger semgrep 2024-03-22 17:54:22 +01:00
barredterra
457f5bf437 fix(Contact form): translate internal notification to system language 2024-03-22 17:45:10 +01:00
barredterra
b440eab24f fix(Contact form): make title and options translatable 2024-03-22 17:44:37 +01:00
barredterra
bcdce09dba fix(Contact form): make email translatable 2024-03-22 17:28:15 +01:00
Akhil Narang
766d2ae778
feat: allow setting a custom rate limit for login via email link feature
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-22 15:50:45 +05:30
barredterra
68ad59721c Merge branch 'develop' into attribution-page 2024-03-20 15:16:58 +01:00
Ankush Menat
571ca34eca
fix: redirect after login, todo filters (#25521)
* Revert "fix: default filter setup on todo list (#25455)"

This reverts commit 396bc4102e.

* Revert "Revert "fix: default filter setup on todo list (#25455)""

This reverts commit 5e6b6997d526446760c42e7e812ceef5fe416492.

* test: wait longer for filters to apply

* fix: route redirects after login

* test: use clear_filters

* fix: don't set default filters on ToDo

This messes with previous filters logic.
2024-03-20 17:02:24 +05:30
Maharshi Patel
ce2d91c751
feat: hook for print format template loader (#25037)
* feat: hook for print format template loader

currently logic for how print format template should be loaded is hardcoded
added hook to allow for custom logic to be implemented by other apps.

if hook returns falsy value, then default logic will be used.

* chore: use Walrus Operator and handle Empty Hooks
2024-02-26 20:20:25 +05:30
Akhil Narang
3f1e19de85
refactor(treewide): enable RUF rules
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-21 16:20:28 +05:30
Ankush Menat
78264a7f16 fix(UX): usability of reset password page
- password managers use paste, added that event to trigger our code
- if no password policy then skip. Way too much needless business logic in HTML here.
2024-02-11 16:30:32 +05:30
Ankush Menat
72c2207e0f refactor: useless use of dict in frappe.get_doc 2024-02-10 12:52:38 +05:30
Akhil Narang
26ae0f3460
fix: ruff fixes
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-07 17:04:31 +05:30
Ankush Menat
de9ac89748 style: re-format with ruff 2024-02-05 18:53:33 +05:30
Suraj Shetty
2243c5ebe3 fix: Resolve conflicts 2024-02-05 15:51:22 +05:30
Suraj Shetty
2bf82e80ba fix: Make sure sitemap respects robot_txt 2024-02-05 15:41:05 +05:30
David Arnold
c09f48f5d7
feat: comply trackers with utm and add utm_content for a/b testing (#24521)
* feat: comply trackers with utm and add utm_content for a/b testing

* fix: make all other than source optional

this is plausible.io best practice

* fix: medium is not specified to be lowercase

* fix: ensure proper parameter quoting
2024-02-02 11:33:22 +05:30
Maharshi Patel
3fb418f28f
Merge pull request #23907 from marination/dynamic-header-footer-develop
feat: Letterhead Scripts & fix disappearing header in pdf
2024-02-01 17:43:12 +05:30
Ankush Menat
ffb9c9cf6a fix: clear sitemap cache periodically 2024-01-31 18:25:28 +05:30
barredterra
f01ce014e4 fix: missing translation 2024-01-29 17:19:15 +01:00
barredterra
82ddd385ba refactor: async load info in frontend 2024-01-29 17:11:43 +01:00
barredterra
960fbcaeeb Merge branch 'develop' into attribution-page 2024-01-29 15:23:07 +01:00
barredterra
9412ef4e76 fix: only show attribution to authenticated users 2024-01-08 18:03:21 +01:00
barredterra
5a4b5789fe feat: cache app info 2024-01-08 18:02:56 +01:00
barredterra
a307ec6c88 feat: auto-generated attribution page 2024-01-08 17:51:25 +01:00
Rushabh Mehta
04646024cb fix(minor): show footer on login via Website Settings, fixes #24153 2024-01-08 11:56:51 +05:30
barredterra
ad93afcd4c fix: use system font for printing
This way, content from Text Editor will have the same style as the rest of the print.
2023-12-25 18:28:18 +01:00
marination
29e761671d feat: Letterhead scripts
- feat: Allow script injection into header/footer.html to allow manipulation of styles using page numbers/args received by wkhtmltopdf
- misc: also validate letterhead scripts
- Include scripts in printview as well as pdf
- Add helper instructions & re-arrange fields
2023-12-21 17:25:19 +01:00
Ankush Menat
0fd6f5eed7
Merge pull request #23827 from frappe/api-docs
docs: add Python API missing docstrings / type hints
2023-12-21 12:13:05 +05:30
Hussain Nagaria
bb68d879c2 fix: type hint issue 2023-12-19 14:01:41 +05:30
Hussain Nagaria
2f277c66ae fix: use optional 2023-12-19 13:57:35 +05:30
Hussain Nagaria
3520bcb9b3 fix: add (more) type hints printview.py 2023-12-19 12:55:02 +05:30
Sagar Vora
3820926ffa fix: dont pass removed parameter name 2023-12-19 12:08:28 +05:30
Hussain Nagaria
8d2137c265 docs: consistent doc strings 2023-12-18 18:27:39 +05:30
Raffael Meyer
76afbaaa40
Merge pull request #23609 from barredterra/de-morgan 2023-12-06 22:21:01 +01:00
Shariq Ansari
69a96ad565
fix: strip html the printview's key value (#23606)
* fix: strip html the printview's key value

* fix: escape instead of strip html
2023-12-05 15:49:46 +05:30
barredterra
c35476256f refactor: simplify conditional logic
Command: `sourcery review --fix --enable de-morgan .`
2023-12-05 11:14:41 +01:00
Ankush Menat
eb9d126cd8 Merge branch 'develop' into feat-improve-a11y 2023-12-03 12:09:05 +05:30
Ankush Menat
52686f79cb refactor: code cleanup
- better boot config name
- send sentry after - because frappe namespce doesn't exist if it starts
  first
- remove import in app.py because __init__ is always imported so no
  need.
- leave telemetry JS always present, this is used even when telemetry is
  not enabled.
2023-11-30 17:40:53 +05:30
Akhil Narang
9a0a5468c5 feat: setup sentry integration
Inspired primarily from sentry's generic WSGI integration

Environment variable `FRAPPE_SENTRY_DSN` needs to be enabled as well
as explicit opt-in from the user's side in system sid telemetry
settings

Conditionally include telemetry JS bundles

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-11-30 17:13:41 +05:30
Ankush Menat
a7137bdeaa feat: client side error reporting + sentry
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-11-30 17:13:41 +05:30
Ankush Menat
957293bd54 fix: Only preload icons for desk 2023-11-29 21:50:18 +05:30
Corentin Flr
2b00309d94
fix(app.html): Add charset="UTF-8" meta first in head 2023-11-23 15:21:00 +01:00
Arjun
67bac7863e
fix(UX): updated error.html message (#23129)
* UX: updated error.html

* chore: wspace

* chore: simpler message.

assuming foss deploys

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2023-11-07 18:27:11 +05:30
Maharshi Patel
527c3ca418 fix: use flex in empty-apps-state
- changed empty-apps-state to flex and replaced box-shadow with border
2023-10-20 14:45:44 +05:30