changed check for __islocal as well in savedocs
As new route ends with random hash instead of numbers,
updated cypress test to just check start of data-route instead of entire path
name is used in many places and should not be overwritten,
so i have sent name in upload_via_file_browser as library_file_name
which can be used to get existing file.
Previously, the attach from library only shared file_url, problem is we
need more information such as is_private.
fix: send name instead of file_url on file uploader and use that in
upload_file handler to get more information about the file then attach
that info to newly created file.
Certain people add attachment, before filling mandatory fields
which will raise Missing Fields error.
Or any other kind of errors raised by different validators due to which
file is uploaded but doc is not saved.
This will lead to orphaned/mislinked files. ex. new-purchase-receipt-1
This fix changes name of new docs to new-<doctype>-<no>-<10digithash>
after saving the document we can use this new name to find any mislinked
files created in past hour and relink them to the new doc on save.
This has been done because the mysql command issues a deprecation warning now
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
* fix: strip html and show text
Quill editor adds html which is useless for user so strip html using html2text and render Text only. If no text is found it will render No Text Found in + "Field Label" (ex. Description).
* fix: remove placeholder text
[skip ci]
---------
Co-authored-by: Ankush Menat <ankush@frappe.io>
* Label will be same for all documents so there is no need to call get_docfield.
* As it internally calls docfield_copy and makes "deep copy" for each document.
which causes massive memory usage as number of document increases.
* Instead get meta from docfield_map and use it.
* on new doc, hide sidebar is hidden. however, layout-side-section is still visible.
* added hide-sidebar class to layout-side-section when doc is new.
* removed divider, changed arrow location for shortcut-widget-box
* removed indicator from quick_list_widget also changed link items style to shortcut links with arrow
* added border for workspace and removed border for onboarding and quick_list_widget
* replaced all full width pill buttons with the labels and plus icons
* added a click listener to avatars for opening share dialog.
* made attachments label a link where user can click and open all of the files
as there isn't enough space for explore buttons in new design