Commit graph

786 commits

Author SHA1 Message Date
Soham Kulkarni
64db88228f
refactor: seperate blogs into a seperate app (#32737)
* fix: remove doctypes,workspace blocks, files

* fix: minor python tests and UI tests

* fix: remove blog post from tests

* fix: remove blogger as role for tests

* fix: add check for if doctype exists

* fix: ui test

* fix: more cleanup

* fix: cleanup comments and fix test_query

* fix: resolve conflicts

* fix: add warning and handle comments
2025-07-28 14:35:02 +05:30
Vishal Sindham
e1217282ac feat(password-reset-form): Add show/hide toggle option to password reset form 2025-06-29 19:47:02 +05:30
Soham Kulkarni
e1aa789acf
Merge pull request #32971 from sokumon/newsletter-removal
refactor: seperate newsletter into app
2025-06-27 11:59:02 +05:30
Sagar Vora
2e5c8bea03 feat: frappe.utils.orjson_dumps 2025-06-26 17:37:51 +05:30
sokumon
32a87f53d6 fix: delete newsletter related files 2025-06-18 16:23:36 +05:30
Ejaaz Khan
cdb297da17
Merge pull request #32988 from iamejaaz/41272-rate-limit-issue
fix: rate limit issue on sending email login link
2025-06-18 12:17:18 +05:30
Ejaaz Khan
e5b208079d fix: rate limit issue on sending email login link 2025-06-18 12:00:41 +05:30
Sagar Vora
b3e1eda4c8
feat: global frappe.in_test flag (#32960)
* feat: global `frappe.in_test` flag

* feat: helper utility to toggle `frappe.in_test`

* fix: use `toggle_test_mode` util

* fix: use `frappe.in_test`

* chore: add comment explaining global `in_test`

* chore: ignore commit replacing flag usage

* test: temporarily disable `frappe.in_test`

this worked earlier because flag was set in werkzeug.local which was separate for API test client

* test: add comment explaining change
2025-06-17 19:19:31 +05:30
Ankush Menat
49f582ae57 perf: Use lazy doc in a lot more places 2025-06-11 09:55:45 +05:30
Ankush Menat
f9ff807e4c
refactor: Rename get_settings -> get_single_value (#32840)
Not all single doctypes are settings, so this is better. Implicit
caching is fine, same is done for `db` APIs on singles. We *should* aim
for 100% correctness of caching implementation, especially for singles.

Thanks to @netchampfaris for the suggestion.
2025-06-09 04:20:29 +00:00
Ankush Menat
caf415f13e
feat: get_settings (#32821)
* feat: get_settings

get_cached_value doesn't work well with singles because you either need
to pass `None` or repeat doctype name... both are awekward and easy to
shoot yourself in foot with.

* refactor: Use cached settings
2025-06-06 18:34:17 +05:30
rohitwaghchaure
5c6b2b5bec
refactor: track completed app setup wizards and re-run the setup wizard upon new app installation. (#32640) 2025-06-03 12:36:22 +05:30
Ejaaz Khan
7597bfac3a fix: default fields filter not working in web form 2025-05-28 17:34:08 +05:30
Ejaaz Khan
4f08c34696
Revert "fix: don't allow attaching an file invalid url" 2025-05-14 10:48:46 +05:30
Ejaaz Khan
19959fbf45 fix: revert python changes and do via js 2025-05-13 12:30:45 +00:00
UmakanthKaspa
ae47229dbe
feat: include print format name in Access Log during print (#32360)
* feat: include print format name in Access Log during print

* refactor: reuse print_format_name variable in get_context
2025-05-06 07:43:43 +00:00
ruthra kumar
41feed83be fix: remove custom font 2025-04-18 16:04:28 +05:30
ruthra kumar
7d5e338e55
Merge pull request #32106 from ruthra-kumar/allow_custom_fonts_in_wkhtmltopdf
fix: allow custom fonts in wkhtmltopdf
2025-04-16 15:14:48 +05:30
Ejaaz Khan
4a365b3fc4 chore: remove duplicate call of access log 2025-04-14 16:45:54 +05:30
Ejaaz Khan
e266956a19 test: fix print format failing test 2025-04-14 12:18:31 +05:30
Ejaaz Khan
5b8dde43bd chore: use get() method to get attr 2025-04-14 11:56:09 +05:30
Ejaaz Khan
ed6dd8cd5b fix: print builder beta print option not working 2025-04-14 11:32:44 +05:30
ruthra kumar
e04a161257 fix: allow custom fonts in wkhtmltopdf 2025-04-13 14:47:04 +05:30
Ejaaz Khan
e9aa5e21b9
Merge pull request #31577 from Mutantpenguin/patch-1
feat:  streamline LDAP login
2025-03-22 16:31:28 +05:30
Raffael Meyer
11c3b40802
refactor: parse package metadata for attribution page (#31791)
* refactor: parse package metadata instead of asking pypi

* refactor: parse package metadata instead of asking npmjs

* perf: cache data forslightly faster subsequent loads

* revert: "perf: cache data forslightly faster subsequent loads"

This reverts commit 148dea660798b3b7d6e019c8dee3af0514aa8639.
2025-03-18 19:21:19 +00:00
Markus Lobedann
ed32d310b9
feat: streamline LDAP login
- resetting the password makes no sense with just LDAP login
- when LDAP login is the only option, its button must be primary
2025-03-07 09:39:05 +01:00
Suraj Shetty
902cb722ba
Merge branch 'develop' into add_pdf_backend_hook 2025-03-06 13:18:09 +05:30
Suhail
b8ee712cc5
feat: add login via fc button in login page (#31541)
* refactor: show login with frappe cloud button in login page

instead of throwing the user to site-login page, show them all the options

* fix: use is_frappecloud method to check if site is on fc

since `is_fc_site` checks if the user is a system manager and a guest user is not one

* refactor: use a better fc logo

also show login with fc button only for users coming from new signup flow (for now)

* fix: logo alignment with text
2025-03-06 06:59:22 +00:00
Maharshi Patel
8ff33c1ea4 Merge branch 'develop' into add_pdf_backend_hook 2025-03-06 11:47:32 +05:30
Suhail
5886234b53
refactor: sign up flow changes (#31205)
* fix: logout to site login page if the site is on Frappe Cloud

* fix: check if the site user is logged in before rendering trial banner

* fix: show dropdown even if the site is not on trial plan

* refactor: don't expose communication secret in boot

* feat: show install app button for fc sites

* fix: remove auth from desk

we can simplify it and let user do auth in fc

* fix: install app button condition

* refactor: use `is_fc_site` method

* fix: return boolean value for `is_fc_site` function

* fix: add install app button in /apps page

* fix: don't generate otp for login to fc

* fix: remove install app option from desk

* fix: design changes for trial banner

* fix: add more details to the `current_site_info` endpoint

also don't render trial banner if trial end date is passed

* fix: don't route user to welcome page

always put them on the site's dashboard

* fix: override base_url when needed

also remove misleading class

* fix: show banner to normal user to contact system admin for plan upgrade

* refactor: redirect from /login instead of every /logout code

* fix: rename login to fc to manage billing

also move it above the divider

* refactor: separate out site-login url from login.py
2025-03-03 16:36:15 +00:00
Ejaaz Khan
3f9cb89611 fix: template error on custom print format 2025-03-03 17:34:47 +05:30
Maharshi Patel
c8b40b1805 Merge branch 'develop' into add_pdf_backend_hook 2025-02-28 10:15:32 +05:30
Ejaaz Khan
42f9e537d0
Merge pull request #31372 from frappe/fix-custom-print
fix(print): handle custom format with custom module
2025-02-21 14:36:11 +05:30
Hussain Nagaria
4f453f2ef2 fix(print): handle custom format with custom module
Co-authored-by: Aman <amanupadhayay2906@gmail.com>
Co-authored-by: Khushbu <mittalk1802@gmail.com>
Co-authored-by: Manya <girdharmanya28@gmail.com>
Co-authored-by: Ritika <ritika@korecent.com>
Co-authored-by: Siddharth <siddharth.khati03@gmail.com>
Co-authored-by: Yashvi <yashvi@korecent.com>
2025-02-21 12:57:47 +05:30
Suraj Shetty
0c81689d63
Merge branch 'develop' into add_pdf_backend_hook 2025-02-19 22:53:26 +05:30
Akhil Narang
e181bf118c
Merge pull request #31308 from akhilnarang/fix-xss
fix(send_message): escape HTML in the text
2025-02-19 16:33:40 +05:30
Maharshi Patel
11bac014f2 Merge branch 'develop' into add_pdf_backend_hook 2025-02-19 14:21:01 +05:30
Sagar Vora
1693991702 fix: remove dev server condition 2025-02-19 12:54:21 +05:30
Akhil Narang
f2d0baf79d
fix(send_message): escape HTML in the text
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-02-19 12:23:47 +05:30
Sagar Vora
f4062b4d7a fix: ensure consistent error in response 2025-02-19 12:10:59 +05:30
Maharshi Patel
463d1f2b05 fix: code changes as pdf_generator is now select field 2025-02-14 17:04:13 +05:30
Maharshi Patel
61aabd00af chore: renamed arg name and cleanup
- fixed chrome_pdf_backend arg by making it int and using it to properly override which pdf generator (chrome / wkhtmltopdf) to use.
- renamed new_pdf_backend to chrome_pdf_backend.
- added chrome_pdf_backend arg in local.from_dict to avoid passing it 4-5 functions deep
2025-02-12 13:24:50 +05:30
Maharshi Patel
17375906f8 Merge branch 'frappe:develop' into add_pdf_backend_hook 2025-02-06 17:03:53 +05:30
Rushabh Mehta
d66a8900be fix(styles): Style cleanups for sidebar, breadcrumb 2025-02-05 16:25:09 +05:30
Maharshi Patel
cf0fe8eecd fix: read_file return base64 encoded string
- added flag to read_file to return base64 encoded string
- fixed pdf_header_footer_chrome to remove unused subst function call
- added new_pdf_backend flag to get_print_format_template function
2025-02-04 20:36:44 +05:30
Maharshi Patel
3caa2414e0 chore: Merge branch 'develop' into add_pdf_backend_hook 2025-02-01 19:58:11 +05:30
Maharshi Patel
dd037f54ea feat(minor): add pdf backend hook
added new_pdf_backend hook to run alternate get_pdf function from other apps e.g. print designer.
2025-02-01 19:47:29 +05:30
Ankush Menat
6328421fde fix: only cache if called directly 2025-01-24 19:08:04 +05:30
Ankush Menat
0a068e28f7 perf: proxy-cache website_script.js 2025-01-24 18:58:39 +05:30
Akhil Narang
bbfb26aaab
refactor(printview): first check for doc permissions, then for website
This broke for some cases because people had doc permissions, but `has_website_permission()` returns False

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-01-24 16:51:16 +05:30