Commit graph

946 commits

Author SHA1 Message Date
Er-Naren719
369c9ade94 refactor(Kanban): Use anchor tag for the ability to open card in new tab (#9217)
* feat: open task in a new tab

* fix: url updated using frappe util

* feat: open kanban task in new tab using anchor tag

* feat: element class name updated

* feat: variable name updated in js file

* feat: hack to retrieve document number removed

* feat: target attribute of anchor tag is removed
2020-01-16 09:55:55 +00:00
Suraj Shetty
b67faf4f52
fix: Style of result image in search (#9294) 2020-01-15 17:32:16 +05:30
Shivam Mishra
4d9356fb20 feat: wider awesomebar 2019-12-27 12:13:47 +05:30
Andrew McLeod
07cedc581d feat: Optionally remove seconds from datetime (#8531)
* fix: Add updated datepicker; fixed seconds formatting bug.
Seconds between 0 and 9 were not zero-padded.

* feat: Add framework for time format

* feat: datetime server-side formatters.

* tests: Added server-side datetime formatter tests

* feat: Update client-side datetime formatters

* tests: Add Cypress client-side formatting tests.

* fix: JSON errors

* fix: Update to not hard-code admin password

* fix: Change to using bulk_update rather than the REST API

* tests: Use Custom doctype for testing, not Standard

* fix: Codacy style fixes

* fix: Commonify update_datetime_picker in date.js, datetime.js, time.js
Fix order of time_format in System Settings
Restore get_user_fmt in utils/datetime.js

* feat: Drastically reduce scale of Cypress testing (to make tests faster)
Full testing is possible by setting 'fast_mode' to false in the spec file.

* fix: Fix issues with datepicker/timepicker expansion

* fix: typo

* style: Various style fixes as requested by DeppSource: Python

* fix: Timepicker not hiding on 'now' button. Force hiding on click.

* style: Codacy style fixes.

* fix: Use datepicker from node_modules

* test: Refactor Datetime UI tests

- cy.get_field
- cy.set_value
- cy.insert_doc with ignore_duplicate
- Nominal datetime tests to cover most formats
- Formatting with prettier

* test: Datetime UI tests; wait for cur_frm.doc.datetime to update

* tests: Add whitespace to typed input

- Clear input only for Time field

* test: Wait timeout 200

* test: Fix form test

Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
2019-12-25 14:54:28 +05:30
Suraj Shetty
7107409531
Merge version-12-hotfix to develop (#9095)
* fix: REST API utf-8 decoding on creates/updates

Creating or updating a document via the REST API would generate an error of:

`TypeError: the JSON object must be str, not 'bytes'`

Because get_data() returns bytes which must be explicitly converted to a string before parsing as JSON.

Defect introduced by efe94886a and a71a92341e

* fix(patch): Handle failures in while making Prepared Report attachments private

* case insensitive search for postgres

* convert operator to lowercase while checking

* fix: Pass prepared_report_name as filter if exists

* fix: Add input to multiselect_list control

* fix(reportview): convert to unicode conditionally

fixes TypeError: decoding str is not supported

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 57, in application
    response = frappe.handler.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 61, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1038, in call
    return fn(*args, **newargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 511, in wrapper_fn
    retval = fn(*args, **get_newargs(fn, kwargs))
  File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/reportview.py", line 177, in export_query
    frappe.response['result'] = text_type(f.read(), 'utf-8')
TypeError: decoding str is not supported

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* chore: remove useless encode

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* fix: Allow Rename in Website Route Meta

* fix: Add Visit Web Page button in form

* fix: next schedule date should be on or after current date

* test: next schedule date

* fix: Change modified by

* fix: do not allow bulk update for core, single doctypes and doctypes from inactive domains

* fix: switch to safe_decode

* test: Fix list_view test by removing clear-cache code (#8941)

* test: Fix listview test by waiting for clear-cache

* test: Move wait to list_view.js

* test: Try removing clear-cache

* fix(integration): Social Login Key (#8940)

add missing field

* fix: don't set filter for restrict_to_domain in Bulk Update Tool

* fix: query report chart options

* fix: Default and company address fixes

* fix: revert changes made to get_default_address function

* fix: Remove changes in notifications

* fix: list view group by filter ambiguous column name

* fix: changelog modal ui

* test: list view child table filter with created by filter

* fix: not able to download XML file

* fix(security): invalidate reset_password_key on password reset

currently there is no way to invalidate reset_password_key on updating
password through the user settings. so whenever the user sets a new
password we'll invalidate the reset_password_key, so that existing links
to reset user passwords cannot be used.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* fix: Pin faker version to avoid test failures

* perf: optimise globals search

* fix: add index on child table

* fix: do not pop item from list

* fix: dont add index for global search doctype

* fix: rename function to set

* tests: fix results being return

* fix: codacy fixes

* fix: Code cleanup

- Pass values so that db cursor can handle escaping

* fix: Convert list to tuple

* style: added semi-colon

* fix: add default role on sign up via SSO

* fix(autocomplete): parse options (#8999)

* fix(autocomplete): parse options

* fix: add ignore validation flag

* fix: minor change

* fix(email): try to encode email part to utf-8 (#8964)

fixes issues with class objects other than str

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 281, in receive
    communication = self.insert_communication(msg, args=args)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 338, in insert_communication
    email = Email(raw)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 372, in __init__
    self.parse()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 393, in parse
    self.process_part(part)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 445, in process_part
    self.text_content += self.get_payload(part)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 489, in get_payload
    charset = self.get_charset(part)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 484, in get_charset
    charset = chardet.detect(frappe.safe_encode(part))['encoding']
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/chardet/__init__.py", line 34, in detect
    '{0}'.format(type(byte_str)))
TypeError: Expected object of type bytes or bytearray, got: <class 'email.message.Message'>

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* fix: Ambiguous column error when going to next doc (#9005)

fix: Ambiguous column error when going to next doc

Co-authored-by: Prssanna Desai <prssud@gmail.com>

* fix(patch): auto commit on more than 10000 writes

fixes issue where patch fails with:

frappe.exceptions.ValidationError: Too many writes in one request. Please send smaller requests

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* revert: changes in currency formatting  (#9003)

* fix: reverted currency formatting

* ux: added description for currency's number format
* It doesn't have any effect on how the currency is formatted.

* fix: revert json changes in currency master

* fix(filters): set default id to empty string instead of 0 (#9014)

fixes issue where "undefined" value gets set to 0 in postgres, which causes ProgrammingError since the expected value is of type str and not int

* revert: changes in currency formatting  (#9003)

* fix: reverted currency formatting

* ux: added description for currency's number format
* It doesn't have any effect on how the currency is formatted.

* fix: revert json changes in currency master

* feat: add doc for email linking

* fix: missing commits while reverting currency changes

* fix(file): Public-private issue (#9032)

* fix: Pass file's is_private for doc creation

* fix: File is_private and file_url mismatch

* fix: Check if file_url exists

* fix: Validation check

* fix(postgres): Convert is_private to int

* fix: File path for content_hash

* fix: Show default currency as a fallback for currency fieldtype (#8992)

* fix: Show default currency as a fallback for currency fieldtype

* test: Add a test for currency formatting

* fix: Add a patch to fix all user's home settings (#9040)

* fix: Add a patch to fix all user's home settings

* fix: Remove limit

* fix: Allow field of submitted doc to edit if field has allow_on_submit enabled

* test: Add test to check if field is editable

* fix: Typo

* test: Add assert statement for value

* test: Clear cache after creating doctype

* fix: Codacy

* fix checkbox behavior in rtl view when clicking on label to check (#8898)

* fix checkbox behavior in rtl view when clicking on label to check

* fix: Undo changes in desk.css

* fix: Empty row validation

* style: Fix code formatting

* fix: Terminate regex

* fix: don't validate email for standard filters

* fix: before setting user default value, if fieldtype is Link check if doc exists

* Revert "fix: user default value for Link fields"

* before setting user default value, if fieldtype is Link check if doc exists

* fix: Remove Attachment on remove

* fix: minor changes

* style: fix Codacy issue

There should be no space before ','. (comma-spacing)

* fix: rfc5322 compliance for python3 (#9056)

* start of tests

* rfc compliant emails for frappe.

* fix for deepsource

* fix length of strings.

* fix bug that I'm not sure where it came from?

* codacy and deepsource issues trying to keep them happy

* take a punt in the dark

* fix: use SMTPUTF8 instead of SMTP and other minor fixes

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* fix: patch home_settings_for_all_users

* style: Fix Codacy

* fix: KeyError: 'hidden_modules'

* fix: TypeError in home_settings patch

Convert set to list

* refactor: override style for changelog modal

* Merge V12-pre-release to version-12-hotfix (#9094)

Merge V12-pre-release to version-12-hotfix

Co-authored-by: null <rohitw1991@gmail.com>
Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
Co-authored-by: Vishal Dhayagude <vishaldhayagude09@gmail.com>
Co-authored-by: Himanshu <himanshuwarekar@yahoo.com>
Co-authored-by: null <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: null <sahilkhan28297@gmail.com>

* Revert queue.py

Co-authored-by: Ben Knowles <benknowles@users.noreply.github.com>
Co-authored-by: Aditya Hase <aditya@adityahase.com>
Co-authored-by: Shridhar Patil <shridharpatil2792@gmail.com>
Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
Co-authored-by: Revant Nandgaonkar <revant.one@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
Co-authored-by: Himanshu <himanshuwarekar@yahoo.com>
Co-authored-by: Rohan <Alchez@users.noreply.github.com>
Co-authored-by: Mangesh-Khairnar <mkhairnar10@gmail.com>
Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Saqib <thefalconx33@gmail.com>
Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Ammar Hararah <ammarkharara@gmail.com>
Co-authored-by: Vishal Dhayagude <vishdha@users.noreply.github.com>
Co-authored-by: sahil28297 <37302950+sahil28297@users.noreply.github.com>
2019-12-23 12:24:52 +05:30
Suraj Shetty
1032e6b245
Merge branch 'develop' into v12-pre-release-fixes-develop 2019-12-23 09:10:20 +05:30
Suraj Shetty
cf481e5f69
fix: Fix tags list sidebar dropdown (#9099)
fix: Fix tags list sidebar dropdown

Co-authored-by: Prssanna Desai <prssud@gmail.com>
2019-12-23 09:06:43 +05:30
mergify[bot]
33a10e0983
Merge pull request #9002 from ruchamahabal/remove_onboarding_images
fix: remove illustrations from onboarding slides
2019-12-23 02:51:19 +00:00
Himanshu Warekar
4e79b7994e fix: miscellaneous fixes 2019-12-23 07:37:50 +05:30
prssanna
1c12641587 fix: add padding to 'No Records Tagged' 2019-12-23 07:31:09 +05:30
mergify[bot]
0c042ef35b
Merge pull request #8970 from scmmishra/changelog-ux
fix (ui/ux): change log modal on boot
2019-12-22 04:32:22 +00:00
Shivam Mishra
f8cda37127 refactor: override style for changelog modal 2019-12-20 15:41:35 +05:30
Suraj Shetty
a494d08ccd fix: List filter area style 2019-12-20 08:34:12 +05:30
Suraj Shetty
ea4d73f9a5 fix: Restricted button CSS 2019-12-19 12:56:27 +05:30
Suraj Shetty
bd6d2b16bc fix: Modal indicator CSS 2019-12-19 12:56:00 +05:30
Prssanna Desai
1a69ba6a84 fix: fix grid ui for child tables in column break (#9050) 2019-12-19 00:13:35 +05:30
Suraj Shetty
acfbc58e46
Merge branch 'develop' into remove_onboarding_images 2019-12-18 15:42:38 +05:30
Shivam Mishra
eeabcb8155 fix: height for null state on list view (#8997)
* fix: height for null state on list view

* Update list.less
2019-12-12 11:51:20 +05:30
rohitwaghchaure
234ab445a8
Merge pull request #8974 from rohitwaghchaure/fixed_css_for_dashboard_progress_bar
fix: padding for progress bar in dashboard
2019-12-11 12:24:32 +05:30
Rucha Mahabal
f64604cd58 fix: reduced modal's box-shadow and added a border 2019-12-09 18:52:45 +05:30
Rushabh Mehta
7328abe30d
fix: make padding a bit more consistent 2019-12-09 18:19:02 +05:30
Rucha Mahabal
a7600f527a fix: set the modal backdrop opacity to 1 2019-12-09 16:14:23 +05:30
Rohit Waghchaure
2477d5eb37 fix: padding for progress bar in dashboard 2019-12-09 13:25:28 +05:30
Shivam Mishra
d3fecebd83 feat: summary tag should have cursor pointer 2019-12-09 11:28:44 +05:30
Shivam Mishra
e1754d78ef feat: allow overflow scroll for msgprint body 2019-12-06 15:26:33 +05:30
mergify[bot]
ae5ba4bdaa
Merge pull request #8952 from ruchamahabal/onboarding-ui-fixes
fix: Onboarding Wizard Multiple Fixes
2019-12-06 07:14:36 +00:00
Rucha Mahabal
74fe3c71f7 feat: style only onboarding wizard 2019-12-04 17:20:22 +05:30
mergify[bot]
af67d81b7b
Merge pull request #8786 from prssanna/child-table-pagination
feat: Child table pagination
2019-12-04 08:09:37 +00:00
Shivam Mishra
3c3c0b2252 Merge branch 'develop' of https://github.com/frappe/frappe into null-state 2019-12-02 16:46:05 +05:30
Suraj Shetty
bd69e8cff3 Merge branch 'develop' of https://github.com/frappe/frappe into child-table-pagination 2019-12-02 14:05:46 +05:30
Shivam Mishra
a8b16f1176 fix: multiple ui fixes 2019-11-30 13:58:59 +05:30
mergify[bot]
08d7ccae2d
Merge pull request #8880 from ruchamahabal/setup_wizard
feat: Onboarding Wizard With Configurable Slides
2019-11-28 09:04:35 +00:00
Suraj Shetty
15a662a4b6 fix: Reivew pill font size 2019-11-27 09:53:41 +05:30
Suraj Shetty
c7ed4342c0 fix: Move user-avatar style changes under .recent-item class
So that it does not mess up other user-avatars
2019-11-27 08:59:58 +05:30
Shivam Mishra
eff0661123 refactor: increase margin bottom for null state 2019-11-26 12:41:55 +05:30
Shivam Mishra
4a0db8df25 Merge branch 'develop' of https://github.com/frappe/frappe into null-state 2019-11-26 12:35:50 +05:30
mergify[bot]
4b122f90d3
Merge pull request #8817 from Alchez/dev-tags-filter
fix: update sidebar tags on changing list filters (develop)
2019-11-26 06:34:39 +00:00
Rucha Mahabal
5351bff370 fix: code cleanup 2019-11-25 12:04:13 +05:30
Shivam Mishra
9536d6d61c feat: contextual null state messages 2019-11-25 12:01:25 +05:30
Rucha Mahabal
27245d14be feat: onboarding wizard with configurable slides 2019-11-21 20:21:13 +05:30
Shivam Mishra
27d87a7028 feat: added a null state to list view 2019-11-21 16:09:43 +05:30
mergify[bot]
4bdbd0c29c
Merge pull request #8777 from prssanna/notifications-fix
fix: Notification fixes
2019-11-20 12:05:08 +00:00
Himanshu Warekar
7089be4db2 fix: z-index for dropdown less than page-head 2019-11-20 16:16:39 +05:30
Faris Ansari
c79754e97d
Merge pull request #8784 from gavindsouza/chat-fix
fix(chat): visitor chat for v12
2019-11-12 12:12:56 +05:30
Gavin D'souza
5d847da351 fix(chat): css and socketio for visitor chat 2019-11-11 15:22:27 +05:30
prssanna
9c3132753c feat: Child Table pagination 2019-11-11 15:01:14 +05:30
deepeshgarg007
9f846f9a3b fix: Hide default arrow from select field in webforms 2019-11-09 22:03:27 +05:30
prssanna
d3c73e3a89 fix: hide indicator on click even on page refresh 2019-11-08 12:34:18 +05:30
Shivam Mishra
9bbd627db8
Merge pull request #8702 from hrwX/align-dropdown
fix(Select): specify top for dropdown arrow
2019-10-30 10:37:59 +05:30
mergify[bot]
1b16d4a843
Merge pull request #8692 from netchampfaris/block-cards-globally
feat: Ability to block module cards for all users
2019-10-29 13:05:51 +00:00