Commit graph

864 commits

Author SHA1 Message Date
Bread Genie
bf97db2de9 refactor: remove billing pages and navigate user to Frappe Cloud directly 2024-12-13 13:13:12 +05:30
Corentin Forler
e0c08fab4e
fix: Fix typo in build_domain_restriced function names 2024-11-20 13:52:19 +01:00
Shariq Ansari
1001f1fe0e fix: added trial banner in desk 2024-11-15 16:09:17 +05:30
Shariq Ansari
167929ffd7 fix: added manage billing button in navbar settings dropdown 2024-11-15 14:32:05 +05:30
Shariq Ansari
7b7eafc188 fix: implemented Billing, Plans, Invoices in sidebar - body layout 2024-11-13 12:08:30 +05:30
Gavin D'souza
ecb4795ed3
feat: Enable Sentry Sampling
Closes https://github.com/frappe/frappe/issues/28245
2024-10-28 11:27:51 +01:00
Sumit Bhanushali
847dd62ec0 feat: permission log 2024-09-30 14:54:32 +05:30
David
ac379f297c
fix: Add support for minutes-based notifications 2024-09-10 16:45:53 +02:00
Rushabh Mehta
8dbc2832c5 feat: App switcher 2024-09-06 14:11:39 +05:30
Shariq Ansari
67eb28d836 fix: redirect to apps if multiple apps installed or redirect to apps portal 2024-08-08 18:29:16 +05:30
Shariq Ansari
d7b217b384
Merge branch 'develop' into app-switcher 2024-08-08 18:27:19 +05:30
Rushabh Mehta
774d86f642 feat: Workspace Settings - allow enabling and disabling of workspaces during setup 2024-08-04 13:41:08 +05:30
Shariq Ansari
9b3c46e700 fix: include apps link in standard navbat items 2024-08-02 20:12:50 +05:30
David
e2517d11e8
chore: add include_icons jinja global 2024-06-11 20:03:15 +02:00
David
37d8e2bb36
perf: lazy load svg sprictes on websites 2024-06-11 20:01:55 +02:00
Ankush Menat
04642edd63
fix: Move Monitor dump to after_response (#26703)
It needs access to response to capture status code and size etc
2024-06-06 14:38:22 +00:00
Ankush Menat
80a3bf33cf
perf: rearrange some frequent jobs (#26591)
* perf: lower frequency of not so useful jobs

* fix: 4x deferred insert frequency
2024-05-29 17:41:06 +05:30
gavin
a71df1839f
fix: Drop file_manager.download_file (#26575)
Closes https://github.com/frappe/frappe/issues/26424
2024-05-27 19:30:48 +05:30
Ankush Menat
445e1dbd6b
perf: num2words, babel, gettext, sentry imports (#26475)
num2words - 260KB - Used frequently on ERPNext sites.
babel - 1.1MB Gets imported because of dates, localization
sentry - 2.8MB should be loaded only if envvar is set
gettext - required for reading translations
2024-05-18 07:20:41 +00:00
Ankush Menat
16c8a30861 fix: Avoid erasing recorder during clear_cache
This reverts commit eadfe86fd834f43925956fa6d759127aaf363441.
2024-05-13 17:41:34 +05:30
Ankush Menat
8ab308838b feat: Keep certain keys persistent in cache 2024-05-04 15:08:35 +05:30
Ankush Menat
56233f3182 chore: dead hooks 2024-05-04 15:08:32 +05:30
Ankush Menat
330a1b2044 fix: update notifier never running 2024-05-04 12:28:19 +05:30
Ankush Menat
03de739107
fix(UX): Add health check in navbar (#26086) 2024-04-22 07:35:59 +00:00
Ankush Menat
bd2dc42b94 perf: speed up changelog fetching
- implicit limit
- bench level cache for each app
2024-04-08 18:24:38 +05:30
Ankush Menat
d2b38666f6 refactor: fetch changelog in background once a week 2024-04-08 18:24:38 +05:30
Ankush Menat
8d9304abbe Merge branch 'develop' into whats-new 2024-04-08 16:32:15 +05:30
Ankush Menat
322671766d perf: avoid importing posthog if not required
Avoids 7MB of overhead and cleanup costs for each background job 🎉
2024-03-15 10:51:17 +05:30
Ankush Menat
cfeb1db3f5 fix: ignore route history and access log from link check 2024-03-10 12:59:22 +05:30
Shankarv19bcr
5ef208d1f1 fix: update file attached_to details in submitted doc 2024-02-28 14:21:42 +05:30
Ankush Menat
de9ac89748 style: re-format with ruff 2024-02-05 18:53:33 +05:30
Ankush Menat
dd839e4d50
fix: lower default retention periods (#24697)
These can still be configured to different number. We are just changing
defaults. Why?

- Scheduled job log - errors get logged in error log anyway. Success log
  isn't that useful of 90 days?
- Prepared report - most reports are expired in a day or max a week.
  Rarely last month's report makes any sense today.
2024-02-02 17:33:58 +05:30
Ankush Menat
9620a3c596 Merge branch 'develop' into po-translation 2024-01-10 16:17:47 +05:30
Akhil Narang
35ea093b51
feat: support background jobs in recorder
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-01-04 15:51:26 +05:30
Akhil Narang
64b63d5969
fix(sentry): don't set context if not enabled
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-27 11:38:01 +05:30
Akhil Narang
067104ca9c
refactor(sentry): sync up with FC implementation
Co-authored-by: Aditya Hase <aditya@adityahase.com>
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-26 12:30:10 +05:30
Ankush Menat
91cebdace8 Merge branch 'develop' into po-translation 2023-12-02 19:43:32 +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
c23771475c
refactor: Use hooks to specify default log clearing (#23507) 2023-11-30 13:06:29 +05:30
barredterra
67404e0cd0 Merge branch 'develop' into po-translation 2023-11-06 19:40:25 +01:00
Raffael Meyer
f0155674a5
refactor!: remove redundant sending of translations (#22962)
* chore!: remove redundant translation

* refactor!: remove "get_translated_dict" hook

Instead, include the results from
`frappe.geo.country_info.get_translated_dict` in `get_all_translations`.

* test: money_in_words uses translated currency

... and now we have translations.

* Revert "test: money_in_words uses translated currency"

This reverts commit e07d594ac1ce4b120c0fceb5d23377cb981fe820.

* refactor!: stop translating timezone and currency

* refactor: rename `get_translated_dict`

... to `get_translated_countries`
2023-11-02 20:04:14 +05:30
barredterra
d969c1aa3a Merge remote-tracking branch 'upstream/develop' into po-translation 2023-10-29 01:34:14 +02:00
Ankush Menat
287e13522c
fix: ignore workspace links on delete (#22895)
These can be manually modified later. It's not important to completely
block and prevent deletion.
2023-10-25 07:05:37 +00:00
Ankush Menat
db3e4c9cfc
fix: Check if note has permission (#22750) 2023-10-16 16:43:47 +05:30
barredterra
e212cad44e refactor: move navbar and help items to hooks 2023-10-15 19:23:44 +02:00
barredterra
ed2290d1d6 Merge branch 'develop' into feat/improve-openid-connect-devx 2023-10-07 15:22:59 +02:00
Ankush Menat
d7a9d0111c
perf: lazy load SVG icons (#22517)
| Metric                             | Before | After | Change    |
| ---                                | ---    | ---   | ---       |
| app.html first response size       | 421kb  | 106kb | -75% (!)  |
| First response duration            | 60ms   | 40ms  | -33%      |

huge thanks to @cogk for doing most of the work for this PR on this issue: https://github.com/frappe/frappe/issues/17449#issuecomment-1728328726

Co-authored-by: Corentin Flr <10946971+cogk@users.noreply.github.com>
2023-09-23 15:13:43 +05:30
Ankush Menat
8635daf425
fix: duplicate icons (#22516) 2023-09-23 12:51:20 +05:30