6261 Commits

Author SHA1 Message Date
Gustav Hansen
2bdfad08ff useFetchContentTypeLayout: Extend and simplify tests 2022-11-03 09:57:09 +01:00
Gustav Hansen
3f85f4b992 useFetchContentTypeLayout: Remove usage of cID 2022-11-03 09:47:46 +01:00
Gustav Hansen
6d35deb31a useFetchContentTypeLayout: Unify mutations with and without components 2022-11-03 09:30:42 +01:00
Josh
2bc8dd3be0 test: fix RelationDataInputManagerTest 2022-11-03 08:25:25 +00:00
Josh
6a2ff9e84b feat: re-add the count and make it update with the browser state 2022-11-02 17:49:00 +00:00
Josh
1d76868768
Merge branch 'feature/relations-main-view' into fix/relations/gracefully-fail-no-search-results 2022-11-02 15:03:09 +00:00
Josh
cabfa37ff3 refactor: tidy up entityId 2022-11-02 14:59:41 +00:00
Gustav Hansen
468bb7783d RelationInputDataManager: Bring back defaultParams for locale 2022-11-02 15:46:01 +01:00
Gustav Hansen
01accc69b1 RelationInputDataManager: Fix prop-types 2022-11-02 15:43:31 +01:00
Gustav Hansen
ea0d0c1558
Merge branch 'feature/relations-main-view' into enhance/relations-component-get-param 2022-11-02 15:35:03 +01:00
Josh
13cf08a5b4 hotfix: entityId chaos 2022-11-02 14:32:46 +00:00
Gustav Hansen
1a46ffdcdf CM: Stop passing defaultParams down (not needed any longer) 2022-11-02 15:24:44 +01:00
Josh
c1f8d20245 fix: gracefully fail 404 results from API 2022-11-02 14:21:31 +00:00
Mark Kaylor
35c1dc85b4 Remi feedback 2022-11-02 14:44:18 +01:00
Josh
ff3be3b796 refactor: lil' tidy up of recursivelyFindPathsBasedOnCondition 2022-11-02 13:11:01 +00:00
Convly
788ea22ba6 v4.4.6 2022-11-02 14:09:37 +01:00
Josh
6a87adba49 fix: bug with initialData not replacing correctly and recursion replacing keys incorrectly 2022-11-02 12:20:50 +00:00
Josh
34109ecd44 Merge branch 'feature/relations-main-view' into relations/refacto-state-management 2022-11-02 11:39:43 +00:00
Josh
0b7b8acb85 tests: fix reducer tests around relations & components 2022-11-02 11:20:44 +00:00
Gustav Hansen
eceab57828 CM: Fix prop-types for EditView header 2022-11-02 12:09:22 +01:00
Gustav Hansen
71b7fad1a4 DynamicTable: Fix prop-types for relational cells 2022-11-02 12:09:02 +01:00
Josh
0ead5ccdf6 fix: adding components with relational fields 2022-11-02 11:58:50 +01:00
Josh
ccfd45ba52 chore: rename fields & paths 2022-11-02 11:58:50 +01:00
Josh
7097bdc234 fix: repeatableComponents in regular components 2022-11-02 11:58:50 +01:00
Josh
e128e30d26 fix: anticipate oldValue being undefined 2022-11-02 11:58:50 +01:00
Josh
d13a2c8dad test(fix): useRelation 2022-11-02 11:58:50 +01:00
Josh
e82e32a25f fix: unit tests 2022-11-02 11:58:50 +01:00
Josh
d85bbf2461 refactor: PR updates 2022-11-02 11:58:50 +01:00
Josh
b0a127aba2 Update packages/core/admin/admin/src/content-manager/components/RelationInputDataManager/RelationInputDataManager.js
Co-authored-by: Gustav Hansen <gustav.hansen@strapi.io>
2022-11-02 11:58:50 +01:00
Josh
ed358e3218 Update packages/core/admin/admin/src/content-manager/components/EditViewDataManagerProvider/utils/cleanData.js
Co-authored-by: Gustav Hansen <gustav.hansen@strapi.io>
2022-11-02 11:58:50 +01:00
Josh
187039633e fix: keep useRelation hook in sync with browser state
also normalize relation on connection
2022-11-02 11:58:50 +01:00
Josh
d681351901 test: add cleanData tests for relations 2022-11-02 11:58:50 +01:00
Josh
99fa4c3696 fix: RelationInputDataManager test 2022-11-02 11:58:50 +01:00
Josh
5235e25698 fix: broken clean data test 2022-11-02 11:58:50 +01:00
Josh
f50f8a9dd4 test: EditViewDataManger reducer 2022-11-02 11:58:50 +01:00
Josh
2cc18becf4 fix: bug with default values in repeatable and dynamic components 2022-11-02 11:58:50 +01:00
Josh
04a223b0ba test: add tests for findLeafByPathAndReplace 2022-11-02 11:58:50 +01:00
Josh
55fbc3732f test: add more for recursivelyFindPathsBasedOnCondition 2022-11-02 11:58:50 +01:00
Josh
d445966dd2 refactor: make findLeafByPath more generic
it's a replacing function, let someone pick what they want to replace with.
2022-11-02 11:58:50 +01:00
Josh
69ad01c388 fix: dynamic zones with relations 2022-11-02 11:58:50 +01:00
Josh
c57f46f506 fix: use modifiedData if we have it 2022-11-02 11:58:50 +01:00
Josh
34f69999f9 refactor(wip): repeatable components 2022-11-02 11:58:50 +01:00
Josh
5ef96b9741 fix: handle components and nested components 2022-11-02 11:58:50 +01:00
Josh
22c8ec1c26 fix: reducer and clean data tests 2022-11-02 11:58:50 +01:00
Josh
8c1756abfc feat: add diff relations test 2022-11-02 11:58:50 +01:00
Josh
08ba321ca5 fix: useRelation test pt2 2022-11-02 11:58:50 +01:00
Josh
b08d7739e6 fix: normalizeRelation tests 2022-11-02 11:58:50 +01:00
Josh
5e3490104b refactor: return the same data format for search and relations 2022-11-02 11:58:50 +01:00
Josh
cf23e39892 fix: RelationInput tests 2022-11-02 11:58:50 +01:00
Josh
6383fc85ce fix: tests with useRelation 2022-11-02 11:58:50 +01:00