Commit graph

271 commits

Author SHA1 Message Date
Akhil Narang
84ef6ec677
refactor: fixup with ruff 0.8.1
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 13:18:04 +05:30
Shariq Ansari
167929ffd7 fix: added manage billing button in navbar settings dropdown 2024-11-15 14:32:05 +05:30
barredterra
e3a65dc1e3 feat: add sms_gateway_enabled flag to bootinfo
This enables ERPNext to not show a "Send SMS" button when it certainly will not work.
2024-10-31 13:54:30 +01:00
Akhil Narang
895ca9a30b
refactor: make desk settings user specific
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-09-24 10:46:23 +05:30
Rushabh Mehta
4da1f70eaf fix(desktop): fixes to app switcher inside desk 2024-09-23 15:19:09 +05:30
Rushabh Mehta
f88c508c23 fix(style): Update icons, new design for /me 2024-09-18 14:27:37 +05:30
Rushabh Mehta
5a23bc52b6 fix(minor): default app title and logo 2024-09-11 11:38:12 +05:30
Rushabh Mehta
802bf94236
Merge pull request #27621 from rmehta/app-switcher
feat: App switcher inside desk
2024-09-06 23:19:45 +05:30
Rushabh Mehta
c2652fed39 fix(minor): page creation 2024-09-06 14:12:34 +05:30
Rushabh Mehta
8dbc2832c5 feat: App switcher 2024-09-06 14:11:39 +05:30
Raffael Meyer
594b0a2536
Merge branch 'develop' into address-autocomplete 2024-08-28 11:14:43 +02:00
Rushabh Mehta
087ee41ea1 feat(design): espresso style sidebar 2024-08-23 22:15:33 +05:30
mergify[bot]
521c6c1bad
Merge branch 'develop' into address-autocomplete 2024-06-12 16:01:30 +00:00
Ankush Menat
63a13d0aff
fix: Skip letter heads if no permission (#26689) 2024-06-05 15:56:56 +00:00
barredterra
bb7e1eb4ec fix: apply user permissions on letter head 2024-05-24 16:03:15 +02:00
barredterra
531b177c91 refactor: rename to Geolocation Settings 2024-05-19 20:51:58 +02:00
barredterra
99918674f8 Merge remote-tracking branch 'upstream/develop' into address-autocomplete 2024-05-19 20:18:14 +02:00
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
barredterra
553918f36b feat: use autocomplete on "New Address" button 2024-05-09 22:10:47 +02:00
Ankush Menat
a234e79790 refactor: misc changes
- Move sys setting check to server side
- tomli import handling
2024-05-04 15:08:34 +05:30
Ankush Menat
5ca14bb171 feat: FC specific update notifications 2024-05-04 15:08:34 +05:30
Ankush Menat
330a1b2044 fix: update notifier never running 2024-05-04 12:28:19 +05:30
Ankush Menat
3e64e60389
chore!: drop sid from boot (#26299) 2024-05-02 10:10:34 +00:00
Akhil Narang
26012aceb5
fix: allow accessing reports without roles
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-05-02 14:20:12 +05:30
Ankush Menat
6873eab7b4 refactor: move to boot
- Remove API call
- Remove notification setting, don't think we need this
2024-04-08 18:40:03 +05:30
Akhil Narang
886d4ffc25
refactor(boot): frappe.cache() -> frappe.cache
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-19 14:28:35 +05:30
Ankush Menat
de9ac89748 style: re-format with ruff 2024-02-05 18:53:33 +05:30
Ankush Menat
447f02e8d3
fix!: Remove misleading "raise_exception" (#24266)
frappe.permission.has_permission won't accept raise_exception anymore,
it was extremely misleading argument and actual purpose of the argument
was to print perm check logs.
2024-01-11 08:24:18 +00:00
Rushabh Mehta
eb0e8262a7
fix(minor): Don't load user_info for Administrator twice. fixes #22211 (#24160) 2024-01-08 12:51:32 +05:30
Ankush Menat
28d05c41c3 fix: correct max file size in boot 2023-11-22 10:55:52 +05:30
Ankush Menat
018ed845bd refactor: defer unnecessary json-dumping of messages
Also avoid accessing locals where interface is present like for popping last message.
2023-10-16 18:13:50 +05:30
Ankush Menat
4fe0a21d6b chore: limit markteplace search to prod sites 2023-09-02 16:00:17 +05:30
Rutwik Hiwalkar
3393e6d1c5
feat: search frappecloud marketplace apps from awesomebar (#22185)
* chore: remove unused import

* feat: search frappecloud marketplace apps from awesomebar

* chore: cache results and add tracking url

* refactor: get_marketplace_apps

- use generator for setting cache
- drop expiry. No need to keep this updated as of now. Site updates and
  ram usage anyways drops cache.
- Timeout if not able to respond
- Rank results lower than everything else

* chore: update request url

* fix: avoid excessive retries

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-09-02 15:57:34 +05:30
Ankush Menat
8a37d6d278
perf: reduce memory usage of background processes (#21467)
* perf: defer translation.py imports

This indirectly imports babel which isn't really required most of the
time.

* perf: defer gzip import

* perf: move validate_and_sanitize_search_inputs

This causes all sorts of indirect imports and increases memory usage

* perf: defer requests module imports

* perf: defer system settings import

* perf: defer LOG_DOCTYPES import

Causes many indirect imports

* perf: defer update_site_config

* perf: defer notifications import

* perf: remove unused import

* perf: defer safe exec import

* test: memory usage overhead
2023-06-23 12:51:45 +05:30
Ankush Menat
fa6dc03cc8
refactor: frappe.cache() usage to frappe.cache (#21282) 2023-06-08 11:47:17 +05:30
Ankush Menat
81c103a741 refactor: remove form tour settings 2023-05-25 15:04:38 +05:30
Maharshi Patel
f612d84247 fix: change onboarding_status fieldtype
change onboarding_status to small text and handle null cases.
2023-05-24 15:42:16 +05:30
Maharshi Patel
05b1793fcd fix: load onboarding_tours async
loads onboarding_tours if enable_onboarding is checked and form tours are available for user.
2023-05-23 12:42:12 +05:30
Maharshi Patel
10628b9b06 feat: add onboarding and status on boot
Add List of all onboarding tours to frappe.boot and onboarding status on frappe.boot.user
2023-05-18 02:33:40 +05:30
Ankush Menat
c5f36a4979
fix(UX): workspace breadcrumbs based on history (#20529)
* fix(UX): Resolve breadcrumb conflicts from history

Same report can be part of 2 workspace, in which case use breadcrumbs
from last workspace.

* fix: make sure last workspace belongs to same module at least
2023-04-12 10:56:05 +05:30
barredterra
b2e36634d6 refactor: rename get_time_zone to get_system_timezone 2023-03-04 19:30:03 +01:00
Ankush Menat
0219eab820 fix: Dont fetch report if not permitted 2023-02-20 18:19:12 +05:30
Rutwik Hiwalkar
e9c57ee76e
revert: subscription management (#19998)
* chore: add namespaced subscription conf to boot info

* revert: https://github.com/frappe/frappe/pull/18263

* clean: remove daily hook for creating manage subscription btn
2023-02-14 12:04:28 +05:30
Ankush Menat
6dcf12d509 fix: Apply permissions on Report sidebar
Alternate to https://github.com/frappe/frappe/pull/19588

Co-Authored-By: marination <maricadsouza221197@gmail.com>
2023-02-03 18:07:21 +05:30
Ankush Menat
75d092ef7d
Revert "fix: Report sidebar must consider Permission Query" (#19921) 2023-02-03 15:13:18 +05:30
Ankush Menat
13162d8fbd fix: Only apply perm query to non-admin users 2023-01-30 11:24:16 +05:30
Gavin D'souza
81d6b282a3 chore: Remove errprint triggered by passing Query object to db.sql 2023-01-24 11:26:31 +05:30
marination
f6a68062d9 chore: Add comments to avoid incompatible queries with _run_with_permission_query 2023-01-16 19:15:16 +05:30
marination
8bd1b7b019 fix: Remove unnecessary get_sql 2023-01-16 17:09:21 +05:30
marination
2702bf60aa refactor: Use Query instead of MySQLQueryBuilder
- Use `Query` from database/utils which will consider postgres query type as well
- Reduce LOC where unnecessary

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
2023-01-16 16:51:11 +05:30