10364 Commits

Author SHA1 Message Date
Jamie Howard
6c4439e7ae test(webhooks/ListView) 2023-05-17 12:47:50 +01:00
Josh
8eec10c6ca
chore: remove react-fast-compare (#16749) 2023-05-17 10:57:47 +01:00
Josh
14c829e273
chore: remove react-test-renderer (#16750) 2023-05-17 10:57:27 +01:00
Simone
49a5c205d4
Chore: Replace axios calls with helper-plugin utils (#16628)
* overwrite the Authorization header when passed as config

* replace axios call with fetchClient and remove axios cancel from the admin

* replace axios call in the UseCasePage form

* replace axios with useFetchClient inside the App component for the analytics call

* replace axios calls with the post useFetchClient inside the AuthPage

* remove axios instances inside the CollectionTypeFormWrapper and the SingleTypeFormWrapper

* Replace axios call with useFetchClient inside the Register component

* replace axios call with useFetchClient sinde the urlToFile utils

* remove axios instances inside the useFetchContentTypeLayout

* remove axios instances inside the ComponentSettingsView component

* update test urlToFile

* remove axios as dependency in admin and remove cancel token from ListView

* remove axios dependency from the admin

* revert dependency

* replace the downloadFile axios call with getFetchClient

* remove console log

* fix issue if preferedLanguage is null

* replace axios call with getFetchClient inside the urlToAssets utility

* revert back cancel token inside CollectionTypeFormWrapper

* revert cancel token logic

* add the logic to handle paths without prepending slash

* remove tip for the relative path

* move the fetchMarketplaceProviders util inside the useFetchMarketplaceProviders file

* use fetch instead of useFetchClient for external calls

* remove the control of the preferedLanguage inside the Profile page

* move up useFetchClient call

* refactor normalize url

* add mock getFetchClient in FromComputerForm test

* fix check full url

* refactor fetch

* cleanup code

* fix comments

* fix review comments

* refaactor fetch calls and fix types and format code

* add more info in the documentation

* fix unit tests marketplace and add a constants file shared between the two hooks

* change the import order

* refactor hooks returining type

* move whatwg-fetch import inside the admin-test-util and small refactoring

* fix test, remove comments and remove only
2023-05-17 11:01:28 +02:00
GitStart
d6979650f6
Merge branch 'main' into fix/description-min-and-max-characters 2023-05-16 20:07:40 +03:00
Gustav Hansen
432377b2dd Chore: Update license files 2023-05-16 17:43:19 +02:00
Jamie Howard
d983afc313 feat(webhooks/ListView): Refactor state management
feat(webhooks/ListView): improve react-query usage
2023-05-16 16:42:43 +01:00
Jamie Howard
75dd31c598 chore(webhooks/EditView): Refactor events form for composability 2023-05-16 15:29:57 +01:00
Jamie Howard
f12a5e744e chore(webhooks/EditView): Remove isDraftAndPublishEvents prop from WebhookForm 2023-05-16 15:28:13 +01:00
Jamie Howard
dc2f97d1df chore(webhooks/EditView): Remove EventInput 2023-05-16 15:27:33 +01:00
Jamie Howard
e9a4167ffa feat(webhooks/EditView): Add CE and EE Edit View 2023-05-16 15:26:31 +01:00
Jamie Howard
f555f0d1d5 fix(webhooks/EditView): tooltips for publish and unpublish 2023-05-16 10:24:10 +01:00
Gustav Hansen
e210edbb38 Chore: Fix eslint errors 2023-05-16 10:57:07 +02:00
Jamie Howard
3ea6733d7d chore(webhooks/EditView): Header, Root and Field layouts 2023-05-15 16:19:32 +01:00
Ben Irvin
4029068155
Merge pull request #16706 from marcoautiero/tracking-system-environment-attribute 2023-05-15 16:56:14 +02:00
Jamie Howard
975be32e96 chore(webhooks/EditView): use formik provider 2023-05-15 15:45:19 +01:00
Jamie Howard
7a4024a1ab test(webhooks): webhook disable 2023-05-15 15:12:19 +01:00
Bassel Kanso
cf30e05c61
Merge branch 'main' into translationEnglishToArabic 2023-05-15 16:34:32 +03:00
Ben Irvin
55817f5f05
Update packages/core/strapi/lib/Strapi.js 2023-05-15 14:24:13 +02:00
Bassel Kanso
6bbdf94d5c
Merge pull request #16648 from strapi/fix/transfer-pull
Wait for websocket to open only once in transfer pull
2023-05-15 15:20:03 +03:00
Jamie Howard
76ab105dc4 test(webhooks): webhook deletion 2023-05-15 11:42:33 +01:00
Jamie Howard
182af61050 chore: code cleanup 2023-05-15 11:11:50 +01:00
Jean-Sébastien Herbaux
833f017981
Merge pull request #16705 from strapi/fix/generate-admin-user-hash 2023-05-15 09:20:07 +02:00
Gustav Hansen
6345de302d
Merge pull request #16718 from strapi/dependabot/npm_and_yarn/date-fns-2.30.0
chore(deps): bump date-fns from 2.29.3 to 2.30.0
2023-05-15 09:16:49 +02:00
dependabot[bot]
5c17679d9c
chore(deps): bump babel-plugin-styled-components from 2.0.2 to 2.1.1
Bumps [babel-plugin-styled-components](https://github.com/styled-components/babel-plugin-styled-components) from 2.0.2 to 2.1.1.
- [Release notes](https://github.com/styled-components/babel-plugin-styled-components/releases)
- [Commits](https://github.com/styled-components/babel-plugin-styled-components/compare/v2.0.2...v2.1.1)

---
updated-dependencies:
- dependency-name: babel-plugin-styled-components
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-14 23:04:46 +00:00
dependabot[bot]
04bd1d9eeb
chore(deps): bump date-fns from 2.29.3 to 2.30.0
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.29.3 to 2.30.0.
- [Release notes](https://github.com/date-fns/date-fns/releases)
- [Changelog](https://github.com/date-fns/date-fns/blob/v2.30.0/CHANGELOG.md)
- [Commits](https://github.com/date-fns/date-fns/compare/v2.29.3...v2.30.0)

---
updated-dependencies:
- dependency-name: date-fns
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-14 23:04:03 +00:00
Jamie Howard
9330ba872c feat(webhooks): combine deletion mutations
feat(webhooks): use api error handler

feat(webhooks): add translations
2023-05-12 16:49:08 +01:00
marcoautiero
e79e1f9257 Reintroduce the environment property in the tracking system 2023-05-12 16:53:17 +02:00
Ben Irvin
cb0225e316
Update packages/core/utils/lib/convert-query-params.js
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2023-05-12 16:49:09 +02:00
Ben Irvin
00f43de9b7
Update packages/core/utils/lib/operators.js
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2023-05-12 16:48:26 +02:00
Ben Irvin
8b08534ec8
Update packages/core/utils/lib/operators.js
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2023-05-12 16:48:18 +02:00
Convly
1916c48282 Make sure the admin user email is defined before trying to use it 2023-05-12 15:59:34 +02:00
Jamie Howard
46d50a6b90 feat(webhooks): useMutation for enabled change 2023-05-12 14:08:33 +01:00
Jamie Howard
ace6bb8a16 fix(webhooks): hide delete button when no webhooks to delete 2023-05-12 12:09:29 +01:00
Jamie Howard
e8189e616a feat(webhooks): remove reducer from the list view
feat(webhooks): refactor data fetching
2023-05-12 12:06:27 +01:00
Ben Irvin
53de017ad0 export isOperator and isOperatorOfType directly 2023-05-12 12:50:22 +02:00
Ben Irvin
e9bb5ccdc4
Merge pull request #16465 from strapi/feature/collection-names-and-ids-uniqueness 2023-05-12 12:40:11 +02:00
Ben Irvin
d961309386 remove comment 2023-05-12 12:14:23 +02:00
Ben Irvin
b3998432d7 only allow attributes and operators on filters
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-05-12 12:13:56 +02:00
Ben Irvin
980edbbcce move operators to utils 2023-05-12 12:13:29 +02:00
Convly
d9277d616b v4.10.5 2023-05-11 18:28:54 +02:00
Jean-Sébastien Herbaux
e348595b8d
Merge pull request #16686 from strapi/chore/ds-175 2023-05-11 18:12:01 +02:00
Ben Irvin
45333fe530
Merge pull request #16634 from strapi/fix/dts-bypass-schema-check 2023-05-11 18:11:38 +02:00
Ben Irvin
6c3d9b662a clean up path logic 2023-05-11 16:34:14 +02:00
Ben Irvin
498c18aade remove trailing dot 2023-05-11 15:26:00 +02:00
Ben Irvin
63560762f9 fix typo 2023-05-11 15:21:41 +02:00
Ben Irvin
35bcad0ae7 handle cases with empty path 2023-05-11 15:15:07 +02:00
Jamie Howard
5cf4ead7eb chore(SettingsPage/Webhooks): move formatValue to the component using it 2023-05-11 12:49:11 +01:00
Josh
9e8ccf93b6 chore: update DS to 1.7.5 2023-05-11 11:02:18 +01:00
Gustav Hansen
aa749f4022
Merge pull request #16675 from strapi/fix/list-view-sort
Fix: Fix toOne sorting in CM list-view
2023-05-11 11:11:48 +02:00