Commit graph

38547 commits

Author SHA1 Message Date
Suraj Shetty
05f416e448 refactor: Removed vendored socketio library
- Removed vendored socketio library
- Add socket.io-client library
- Removed unnecessary code in socketio server
- Remove chat related code
2022-06-29 14:58:13 +05:30
Suraj Shetty
c72731c4af chore: Update socket io, remove fuse.js
- Install cliui as devDependency
- Add @vue/component-compiler
2022-06-29 14:31:06 +05:30
Suraj Shetty
870b98a34e chore: Update esbuild-vue and vue 2022-06-24 19:26:34 +05:30
Suraj Shetty
78ceec6a95 chore: Update showdown and yargs 2022-06-24 19:16:11 +05:30
Suraj Shetty
eeeef86ae3 fix: Replace node-sass with dart-sass 2022-06-24 19:11:44 +05:30
Suraj Shetty
8f9a4295b6 chore: Remove unused libraries and files 2022-06-24 17:15:35 +05:30
Suraj Shetty
f8fc1918d2
Merge pull request #17253 from surajshetty3416/fix-login-ux
perf(UX): Load splash screen immediately after login
2022-06-21 09:36:41 +05:30
Suraj Shetty
1767af4972
Merge branch 'develop' into fix-login-ux 2022-06-21 09:30:19 +05:30
Suraj Shetty
ad89d07247
Merge pull request #17252 from frappe/dependabot/github_actions/actions/checkout-3
build(deps): bump actions/checkout from 2 to 3
2022-06-21 09:29:06 +05:30
Suraj Shetty
d68965a694
Merge pull request #17251 from frappe/dependabot/github_actions/pre-commit/action-3.0.0
build(deps): bump pre-commit/action from 2.0.3 to 3.0.0
2022-06-21 09:28:29 +05:30
Suraj Shetty
9f2dfbe980 chore: Fix merge error 2022-06-21 09:06:34 +05:30
Suraj Shetty
49bee3a912
Merge branch 'develop' into fix-login-ux 2022-06-21 09:02:14 +05:30
Suraj Shetty
242e3825a4
Merge pull request #17254 from surajshetty3416/refactor-clean-up 2022-06-21 08:47:00 +05:30
Suraj Shetty
245302dc7a refactor: Rename icon symbol filename from symbol-defs.svg to icons.svg 2022-06-21 08:07:51 +05:30
Suraj Shetty
64cc07227e refactor: Replace usage of deprecated attribute 2022-06-21 08:00:49 +05:30
Ankush Menat
d6f2d34bf4 perf: send boot string instead of JSON literal
changes:

- compact boot info in /app HTML
    /app size went from 451kb to 393kb - ~13% less
    Verified that regex applied on this JSON aren't affecting perf, infact
    found them to be faster with compact JSON.

- Send json string instead of placing JSON literal in code using Jinja.
  JS takes more time to pass object literal than parsing a plain JSON string.

Overall content transfer size remains roughly same (albeit slightly
lower) since double escaping ends up adding extra `\` around quotes.

Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
2022-06-21 07:53:48 +05:30
Suraj Shetty
d7fe7ae39c perf(UX): Load splash screen immediately after login 2022-06-21 07:02:58 +05:30
dependabot[bot]
e12d37a943
build(deps): bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-20 18:40:35 +00:00
dependabot[bot]
4811c51ecc
build(deps): bump pre-commit/action from 2.0.3 to 3.0.0
Bumps [pre-commit/action](https://github.com/pre-commit/action) from 2.0.3 to 3.0.0.
- [Release notes](https://github.com/pre-commit/action/releases)
- [Commits](https://github.com/pre-commit/action/compare/v2.0.3...v3.0.0)

---
updated-dependencies:
- dependency-name: pre-commit/action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-20 18:40:31 +00:00
Ankush Menat
fd324db67e
chore!: remove deprecated quaggajs based barcode scanner (#17248) 2022-06-20 21:04:30 +05:30
Ankush Menat
f40c82d4d8
test(meta): control JS bundle sizes (#17244)
Any drastic increase in production bundle sizes should fail in CI.
2022-06-20 15:34:11 +05:30
Ankush Menat
6350406305
perf: remove duplicate control assets (#17237)
* test: flaky tests due to uncleared filters

* perf: remove duplicate code in assets

Remove controls which are separately bundled too, saves ~1.1MB of
network transfer.

Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
2022-06-20 14:28:38 +05:30
dependabot[bot]
b04bffe439
build(deps): bump codecov/codecov-action from 2 to 3 (#17219)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 11:50:10 +05:30
dependabot[bot]
dd5a9e0d9c
build(deps): bump actions/cache from 2 to 3 (#17220)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 11:49:09 +05:30
dependabot[bot]
7570c0e2a1
build(deps): bump actions/setup-node from 2 to 3 (#17222)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 11:48:32 +05:30
dependabot[bot]
dd8aabcc2f
build(deps): bump actions/setup-python from 2 to 4 (#17218)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 11:48:06 +05:30
Ankush Menat
28fd355f24 chore: translate before searching doctype 2022-06-20 11:16:24 +05:30
Ankush Menat
e0e452bdcc
fix: incorrect filtering on address doctype (#17241)
[skip ci]
2022-06-20 11:11:10 +05:30
Raffael Meyer
7b67e1f847
fix: translate doctype in error messages (#17239) 2022-06-20 10:35:57 +05:30
Ankush Menat
571ee67b50
Merge pull request #17072 from ankush/shareble_link_fixes
feat(UX)!: always sharable URLs on List/Report/Kanbanview
2022-06-17 21:09:52 +05:30
Ankush Menat
54824071c2 test: simple test for URL routing with params 2022-06-17 20:47:55 +05:30
Ankush Menat
61c895c2fc refactor: update listview URL on all refresh
Previous changes only made it refresh on change of filters, this change
now updates URL ALWAYS.

Co-Auhtored-By: Suraj Shetty <surajshetty3416@gmail.com>
2022-06-17 19:45:40 +05:30
Ankush Menat
90bcbe46f1 feat(ux): Always sharable query report URLs 2022-06-17 19:45:40 +05:30
Ankush Menat
37999ea17e fix: handle multiselect report options 2022-06-17 19:45:40 +05:30
Ankush Menat
69b7c72be8 fix: kanban board from shared links
- Apply filter from URL
- Update URL in browser when filters change
2022-06-17 19:45:34 +05:30
Ankush Menat
b3b3829912 fix: don't forget 'like' filters
Currently like filters get reset if field is part of standard filters
2022-06-17 19:43:26 +05:30
Ankush Menat
f4e8dee669 fix: double urlencoding of values
This was breaking URLs for complex filters
2022-06-17 19:43:26 +05:30
Ankush Menat
813793a700 fix: view routing from URL query paramters 2022-06-17 19:43:21 +05:30
Ankush Menat
e0e0c6f219 fix: remove query params from existing URL 2022-06-17 19:29:40 +05:30
Ankush Menat
23bd9749f6 feat(UX): refresh URL when updating filters 2022-06-17 19:29:40 +05:30
Suraj Shetty
bd2f2bcae9
Merge pull request #17233 from surajshetty3416/fix-first-tab
fix(tabs): Set first visible tab as active
2022-06-17 19:26:07 +05:30
Suraj Shetty
ee7cb22cd6 fix: Remember active tab for a document in a browsing session 2022-06-17 18:17:54 +05:30
Suraj Shetty
3f2901d837 fix: Check if visible tab exists 2022-06-17 16:56:11 +05:30
Suraj Shetty
05ea37c779 fix: Set first visible tab as active 2022-06-17 16:16:58 +05:30
Ankush Menat
8c6d266fad fix: can't select dynamic link on address doctype 2022-06-17 14:43:02 +05:30
Himanshu
6d6a67e9e3
feat: set image as footer in letter head (#17119)
* feat: set image as footer in letter head

* fix: do not hide footer section

* fix: hide footer source

* style: black

* fix: reduce code for setting image as html

* fix: Force system admin role only if active

* fix(ui): tab refresh was not implemented

* fix(minor): Onboarding: add option to view list view in create action

* fix(minor): js lint

* fix: allow All to select a User

* test: user permissions affecting User

* refactor: filter_dynamic_link_doctypes API

* Added typing, better variable naming
* Remove unnecessary re-iterations
* Optimize queries and membership processing

* perf: Check query type via is_query_type

* chore: Drop duplicate get_frontmatter definition

* perf: Login Page

Improves performance 3x - from 0.047s to 0.017s

* Use frappe.get_*_settings to query table once
* Use cached LDAP Settings' document via get_ldap_client_settings
* Use single get_all to query all Social Login providers and related
  data
* Skip provider if client_secret doesn't exist

* perf: About Us Settings

Use cached document for building /about page

* perf: App Page

Reduced time taken for get_context to execute from 0.035s to 0.02s (75%
reduction)

* perf: Patch qb only once - not on every init

* perf: Fetch and cache entire settings' dicts

* refactor!: frappe.db.get_singles_dict

* Cast single's values as their fieldtypes before returning
* Support previously dead debug parameter
* Consider single with no meta as non-existent; skip query

Decided to go ahead with the breaking change given the nature of the
existing usages of get_singles_dict :crie:

* ci: Run tests bypassing roulette with labels "Run UI Tests", "Run Server Tests"

* test: Scheduler tests cleanup

* chore: linter changes

* chore: linter changes

* chore: linter changes

* fix: set HTML as default

to keep existing formats working

* refactor: no **kwargs

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Rushabh Mehta <rmehta@gmail.com>
Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
2022-06-17 12:07:07 +05:30
Suraj Shetty
9ebe3e70ea
Merge pull request #17212 from surajshetty3416/add-more-instance-for-UI 2022-06-17 10:24:30 +05:30
Suraj Shetty
7b328e85c9
Merge branch 'develop' into add-more-instance-for-UI 2022-06-17 09:21:15 +05:30
Ritwik Puri
335edc14f3
fix: number card ui inconsistencies (#17160) 2022-06-16 20:25:01 +05:30
Shariq Ansari
5ca7d6fab9
Merge branch 'develop' into add-more-instance-for-UI 2022-06-16 17:45:35 +05:30