23533 Commits

Author SHA1 Message Date
Julie Plantey
f7b51cd2f2 fix RelationInput proptypes issues 2022-09-13 12:25:50 +02:00
Gustav Hansen
2766b93940
Merge pull request #14387 from strapi/feature/relations-main-view-progressive-state
EditViewDataManagerProvider: Progressively enhance relations state
2022-09-13 10:13:34 +02:00
Julie Plantey
d398c6b4f1
Merge pull request #14392 from strapi/relations/ui-fixes
[RelationInput] UI fixes
2022-09-13 09:36:08 +02:00
Gustav Hansen
e1c4310bc5 EditViewDataManagerProvider: Fix and improve tests 2022-09-13 09:32:35 +02:00
Gustav Hansen
1a1e95c928 EditViewDataManagerProvider: Improve code comments 2022-09-13 09:14:11 +02:00
Julie Plantey
92c9feb79c updated snapshots 2022-09-12 17:19:59 +02:00
Julie Plantey
d6f619900d temp fix react select position 2022-09-12 16:54:09 +02:00
Julie Plantey
8d9bf0e447 select 100% depending on grid size 2022-09-12 15:58:07 +02:00
Julie Plantey
2f7852c6eb fix padding issues 2022-09-12 15:28:43 +02:00
Gustav Hansen
db94e2a877 EditViewDataManagerProvider: Update cleanData test 2022-09-12 14:55:46 +02:00
Gustav Hansen
b54fd46eae EditViewDataManagerProvider: Only send connect/ disconnect for relations 2022-09-12 14:55:46 +02:00
Julie Plantey
fa2590e47c wrap & placeholder ellipsis 2022-09-12 14:55:25 +02:00
Gustav Hansen
9967b09d76 EditViewDataManagerProvider: Keep initialData and modifiedData in sync
Co-authored-by: Julie Plantey <ronronscelestes@users.noreply.github.com>
2022-09-12 14:55:15 +02:00
Gustav Hansen
3809e2d1a6 EditViewDataManagerProvider: Progressively enhance relations state 2022-09-12 14:48:40 +02:00
Gustav Hansen
0bb5a2d22d
Merge pull request #14383 from strapi/feature/relations-main-view-locale
RelationInputWrapper: Pass down the current locale as query parameter
2022-09-12 13:32:24 +02:00
Gustav Hansen
ea81070d8a RelationInputWrapper: Pass down the current locale as query parameter 2022-09-12 12:17:03 +02:00
Gustav Hansen
76b9b1f713
Merge pull request #14379 from strapi/feature/relations-main-view-connected-normalized
RelationInputWrapper: Fix normalization of relations, if results are empty
2022-09-12 12:08:32 +02:00
Gustav Hansen
0bfb5aa5ba RelationInput: Remove unnecessary optional chaining operators 2022-09-12 09:22:04 +02:00
Gustav Hansen
d489de5692 RelationInputWrapper: Fix normalization of relations, if results are empty 2022-09-12 09:17:50 +02:00
Pierre Noël
3f72ff3a73 Merge branch 'main' into feature/relations-main-view 2022-09-08 15:41:31 +02:00
Alexandre BODIN
59b83c5953
Merge pull request #14320 from strapi/chore/eslint
chore/eslint
2022-09-08 14:45:12 +02:00
Alexandre BODIN
90fb8d9aea
Merge pull request #14350 from strapi/chore/node-18
Add node 18
2022-09-08 14:38:04 +02:00
Gustav Hansen
7045a742dc
Merge pull request #14353 from strapi/relations-main-view/fix-find-available-when-no-relations-set
Fix no relations return for find available when no relations are set
2022-09-08 12:14:03 +02:00
Gustav Hansen
928dfd660c
Merge pull request #14355 from strapi/feature/relations-main-view-mainfield-fallback
RelationInput: Render id as fallback, if no mainField was set
2022-09-08 12:06:28 +02:00
Gustav Hansen
57dbd073ee
Merge pull request #14356 from strapi/feature/relations-main-view-204
useRelation/ normalizeRelations: Handle empty 204 API responses
2022-09-08 12:06:07 +02:00
Gustav Hansen
9e4433f881 useRelation/ normalizeRelations: Handle 204 response code properly 2022-09-08 11:57:51 +02:00
Gustav Hansen
16efdef61c
Merge pull request #14352 from strapi/relations/move-connect-disconnect
[Relations] Move connect/disconnect
2022-09-08 11:33:07 +02:00
Gustav Hansen
f8bff59f86 RelationInput: Render id as fallback, if no mainField was set 2022-09-08 11:28:36 +02:00
Gustav Hansen
98109250ea
Merge pull request #14351 from strapi/relations/search-on-open
[Relations] Search on open
2022-09-08 11:14:33 +02:00
Pierre Noël
ea35195ea1 fix no relations return for find available when no relations are set 2022-09-08 11:10:57 +02:00
Julie Plantey
1513d0e9c1 fire search on open search 2022-09-08 11:06:08 +02:00
Julie Plantey
5322d070b9 moved creation of connect/disconnect 2022-09-08 11:03:59 +02:00
Gustav Hansen
389a582e38 useRelation: Update name of search query param from q to _q 2022-09-08 10:52:03 +02:00
Alexandre Bodin
6654ad3528 Add node 18 2022-09-08 08:44:27 +02:00
Gustav Hansen
a3f298d558
Merge pull request #14346 from strapi/feature/relations-main-view-invalidate-post
FormWrapper: Invalidate relation-queries after submit
2022-09-07 21:47:14 +02:00
Gustav Hansen
fb48392a0d FormWrapper: Invalidate relation-queries after submit 2022-09-07 21:27:07 +02:00
Gustav Hansen
26747086d0 RelationInputWrapper: Fix 1:1 relations reducer 2022-09-07 19:59:40 +02:00
Gustav Hansen
9c2dbecb16
Merge pull request #14344 from strapi/feature/relations-main-view-reverse
RelationInputWrapper: Pass down relation pages in reverse order
2022-09-07 19:22:00 +02:00
Gustav Hansen
c38171bb8f RelationInputWrapper: Add tmp fix when creating an entity 2022-09-07 19:21:20 +02:00
Gustav Hansen
3e90c71ead normalizeRelations: Return empty array as fallback 2022-09-07 19:21:19 +02:00
Gustav Hansen
6d1642d713 RelationInputWrapper: Pass down relation pages in reverse order 2022-09-07 19:21:19 +02:00
Gustav Hansen
62391f956a
Merge pull request #14343 from strapi/feature/relations-main-view-misc-2
Relations: Fix list-view, store count and results, render count as part of the label
2022-09-07 18:51:00 +02:00
Gustav Hansen
f89db56a3f
Merge pull request #14339 from strapi/relation-input/native-scroll
[RelationInput] Native scroll
2022-09-07 18:39:36 +02:00
Gustav Hansen
1fddf048db RelationInputWrapper: Move relations to display into a constant 2022-09-07 18:35:23 +02:00
Gustav Hansen
ddfaeed2af RelationMultiple: Fix tests 2022-09-07 18:34:17 +02:00
Julie Plantey
829d6a67c2 fix snapshots 2022-09-07 18:18:17 +02:00
Gustav Hansen
4327fcec41 RelationInput: Fix relations length access 2022-09-07 18:16:30 +02:00
Gustav Hansen
f4ccbe2235 DynamicTable: Pass down source content-type 2022-09-07 18:09:11 +02:00
Gustav Hansen
645f5405e5 RelationInputWrapper: Send entityId when searching 2022-09-07 18:09:11 +02:00
Gustav Hansen
ad5d363253 EditViewDataManagerProvider: Store count and results in intialState 2022-09-07 18:09:11 +02:00