Commit graph

46467 commits

Author SHA1 Message Date
Rutwik Hiwalkar
3e8765d5d1
fix(ui_test): reload page after login instead of redirecting to /app (#26551)
- navigating to /app does an absolute navigation in cypress and doesn't
  forward url args
2024-05-24 13:08:31 +05:30
Ankush Menat
750b70b075
refactor: Wrap meta in v2 (#26548) 2024-05-24 06:05:09 +00:00
Rutwik Hiwalkar
75412ba872
Merge pull request #26514 from rutwikhdev/fix-download-redirect
fix: download file instead of open in new window
2024-05-22 19:04:21 +05:30
Rutwik Hiwalkar
5cdad43d23
Merge pull request #26515 from rutwikhdev/fix-imageview
fix: misc fixes in image view
2024-05-22 19:04:00 +05:30
Rutwik Hiwalkar
f95d7ace1e
fix(style): remove bg-color override for datatable (#26497) 2024-05-22 19:03:31 +05:30
Ankush Menat
9e9e72bce5
fix: reload before saving on reconnect (#26534)
The doc we have might be "in future".
2024-05-22 16:31:07 +05:30
gavin
ea6a47df94
fix: Redirect to Login Page if not signed In (#26506)
Redirect to Login page if User is not logged in already. Upon successful login, redirect to the page they intended to see.

This is a common pattern for opening tabs to previous sessions where Users get logged out and are shown the "Log in to access this page." message instead.
2024-05-22 15:49:59 +05:30
Ankush Menat
005e74b20d
perf: Avoid coalesce for between filters (#26531)
- Avoid on `between` + date
- Avoid on timestamp fields
- Avoid on `>` and `>=` comparisons
2024-05-22 09:32:59 +00:00
Rutwik Hiwalkar
de36efb8ee
Merge branch 'frappe:develop' into fix-imageview 2024-05-22 12:30:42 +05:30
Ankush Menat
4fbeb4617a
fix: Use true stderr for dumping trace (#26524)
closes https://github.com/frappe/frappe/issues/26302
2024-05-22 07:00:29 +00:00
dependabot[bot]
ba199f8e4b
--- (#26520)
updated-dependencies:
- dependency-name: pymysql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-22 12:06:04 +05:30
Rutwik Hiwalkar
2cbf8f7e2b chore: use a darker bg-color for zoom-view icon
- better visibility in dark mode
2024-05-21 19:06:24 +05:30
Rutwik Hiwalkar
0b6357fcfb fix: show only uploaded images in gallery view
- earlier we used to show null images as empty
2024-05-21 19:05:49 +05:30
Rutwik Hiwalkar
c112380a6e fix: download file instead of open in new window
- simulate a link click download the file when Download button is
  clicked in File Doc
2024-05-21 18:33:04 +05:30
Ankush Menat
1b025c76da
build: Bump requests (#26501)
Minor security issue, not really used by us this way afaik.
2024-05-21 07:59:18 +00:00
Ankush Menat
c973d08fe2
fix: ignore apps without pyproject (#26498) 2024-05-21 07:44:07 +00:00
Ankush Menat
2953c165cf
Merge pull request #26487 from rutwikhdev/upgrade-photoswipe
feat: upgrade photoswipe and remove vendoring
2024-05-21 12:05:25 +05:30
Akhil Narang
45ffcf606e
Merge pull request #26462 from akhilnarang/tar-ignore-file-changed-as-we-read-it
feat: ignore `tar: file changed as we read it` during backups
2024-05-21 11:46:05 +05:30
Corentin Flr
33256cd3ac
fix(code): Only add copy button if missing (#26493) 2024-05-21 11:25:06 +05:30
Ankush Menat
025727674f
fix: scheduled type syncing (#26490)
- Scheduled Job sync when type was changed from scheduled to some other
  type didn't work.
- It updates on every save with message, bad DX IMO (can't save script
  and edit without dismissing)
- This was because of complex walrus which was triggering rest of code
  even when nothing changed. Maybe walrus opponents were onto something.
- `Truthy` couples two different operations and hence makes code
  complicated. In most cases where these checks are required it's not
  performance critical, we can do 1 more function call to avoid this
  coupling of change + actual value.
2024-05-20 13:43:20 +00:00
Rutwik Hiwalkar
66a67a1399 chore: remove photoswipe licence and static stylesheet 2024-05-20 19:00:03 +05:30
Rutwik Hiwalkar
eaece0f009 fix: image_view background styling 2024-05-20 18:58:36 +05:30
Rutwik Hiwalkar
42072ff76b refactor: image_view with latest library api 2024-05-20 18:57:57 +05:30
Rutwik Hiwalkar
c155962956 chore: add photoswipe bundle 2024-05-20 14:28:48 +05:30
Rutwik Hiwalkar
426a4991ca build(deps): add photoswipe dependency 2024-05-20 14:26:56 +05:30
Rutwik Hiwalkar
6269403e77 chore: remove vendored libs for photoswipe 2024-05-20 14:26:14 +05:30
Rutwik Hiwalkar
cbbe57db24
fix: don't fail if input_wrapper is not defined while attaching markdown_editor (#26460)
Sentry FRAPPE-6K1
2024-05-20 11:48:58 +05:30
Corentin Flr
c4492cc378
refactor(code): Fix "copy text" button in dialogs and read_only_depends_on (#26467)
* refactor(code): Use get_status for "copy text" button

* refactor(code): Rename method to setup_copy_button

* refactor(code): Toggle "copy text" button on refresh

* refactor(code): Use get_model_value when copying to clipboard
2024-05-20 11:47:06 +05:30
Raino-Harvest
9ad376a579
fix: enable fetch_from for Time fieldtype (#25266) (#26471)
* fix: enable fetch_from for Time fieldtype

* Update frappe/public/js/frappe/form/script_manager.js

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2024-05-20 05:35:05 +00:00
Ernesto Ruiz
5ee0cac068
chore: Add translation functio to Email link text in Update login.html (#26472)
chore: Add translation functio to Email link text in Update login.html
2024-05-20 10:49:05 +05:30
Frappe PR Bot
65f0400596
chore: update POT file (#26479) 2024-05-20 10:27:38 +05:30
Raffael Meyer
d693b5b899
Merge pull request #26473 from barredterra/default-tree-view 2024-05-19 15:43:00 +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
9a5d42e793 fix: default tree view 2024-05-17 20:33:32 +02:00
Nihantra C. Patel
c8a276b477
fix: overlap filter dialog box (#25772)
* fix: overlap filter dialog box

* fix: overlap filter dialog box - mousedown
2024-05-17 16:48:53 +05:30
Ankush Menat
3b53bb4f3f
fix: "Not assigned" filter (#26468)
This filter doesn't work because `"[]"` is empty assignment list but
truthy value.
2024-05-17 10:14:16 +00:00
Corentin Flr
17a0c9a211
fix(modal): Stack modals when minimized (#26458)
* fix(modal): Fix backdrop for multiple minimized modals

* feat(modal): Visually stack minimized modals
2024-05-17 15:36:20 +05:30
Akhil Narang
e3e6834b5d
fix: add errors=replace to decode() call
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-05-17 15:03:32 +05:30
Ankush Menat
513957ee40
Merge pull request #26457 from ankush/ci_skip
fix(DX): Don't run CI if there are no tests
2024-05-17 13:17:16 +05:30
Ankush Menat
1b0ad4137a fix(DX): Don't run CI if there are no tests
New apps keep burning CI just to install the app and run nothing.
This adds a small check before install to avoid unnecessary CI runs.
2024-05-17 13:05:06 +05:30
Ankush Menat
afed21e29f fix: dont translate syntax error messages
closes https://github.com/frappe/frappe/issues/26443
2024-05-17 13:05:06 +05:30
Ankush Menat
a1bd916cfa
docs: typo in db.delete (#26464) 2024-05-17 07:32:23 +00:00
Akhil Narang
803b45b9fa
feat: ignore tar: file changed as we read it during backups
This seems to occur when new files are being created as we're archiving
the files on a site. Doesn't make sense to fail the entire backup
because of that.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-05-17 11:39:41 +05:30
Nihantra C. Patel
c353aae012
fix: condition of event participants (#26300) 2024-05-16 18:04:18 +05:30
Ankush Menat
803f7b3990
fix: Don't fiddle with child table indexes (#26450)
- Link fields when referred to increase idx
- This is used in search.py to rank most referred documents higher than
- This doesn't make for child table links at all.
2024-05-16 17:09:56 +05:30
Akhil Narang
b2e3f3dcdd
Merge pull request #26446 from akhilnarang/fix-FRAPPE-698
fix(grid_row): don't crash when undefined
2024-05-16 13:10:38 +05:30
Akhil Narang
0892609710
fix(grid_row): don't crash when undefined
TypeError: Cannot read properties of undefined (reading 'fields')
  at frappe.ui.form.ControlTable.get_field(../../../../../apps/frappe/frappe/public/js/frappe/form/controls/table.js:120:18)
  at HTMLInputElement.<anonymous>(../../../../../apps/frappe/frappe/public/js/frappe/form/controls/table.js:46:13)
  at jQuery.event.dispatch(../../../../../apps/frappe/node_modules/jquery/dist/jquery.js:5135:27)
  at elemData.handle(../../../../../apps/frappe/node_modules/jquery/dist/jquery.js:4939:28)
  at sentryWrapped(../../../../../apps/frappe/node_modules/src/helpers.ts:98:1)

Sentry FRAPPE-698

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-05-16 12:56:02 +05:30
Maxim Sysoev
557293adfe
feat: show link field title in sidebar filters if set (#26417)
* feat: In sidebar filter link field show Title of Field if set (#26413)

* fix: test_list_view_child_table_filter_with_created_by_filter

* fix tests

* fix: formatting

* fix: formatting

* refactor: cleanup logic slightly, reduce code repetition

Respect value of show_title_field_in_link

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2024-05-15 12:48:05 +00:00
Akhil Narang
3a4dd9a671
Merge pull request #26183 from vmatt/data_import_delimiter
feat(Data Import): custom csv delimiters, UTF-8 BOM handling
2024-05-15 16:45:31 +05:30
Akhil Narang
9986ea8171
chore: update labels and a comment
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-05-15 16:29:55 +05:30