29765 Commits

Author SHA1 Message Date
Gustav Hansen
1baf0cfa91 Merge branch 'features/ML-folder' into features/ML-folder-create-folder 2022-04-28 14:36:08 +02:00
Gustav Hansen
ac16091628 ML: Mock deleteRequest for RemoveAssetDialog 2022-04-28 13:50:30 +02:00
Gustav Hansen
fb8f641096 ML: Use deleteRequest for useBulkRemoveAsset hook 2022-04-28 13:50:29 +02:00
Gustav Hansen
1529d17812 ML: Add tests for useRemoveAsset hook 2022-04-28 13:50:29 +02:00
Gustav Hansen
cc078b9f88 ML: Namespace useRemoveAsset hook 2022-04-28 13:50:29 +02:00
Gustav Hansen
19d498d199 ML: Replace removeAssetQuery with deleteRequest 2022-04-28 13:50:29 +02:00
Gustav Hansen
5e75ff9c16 ML: Add useRemoveFolder hook 2022-04-28 13:50:28 +02:00
Gustav Hansen
e382bc22c5 Chore: Update snapshot test 2022-04-28 13:50:28 +02:00
Gustav Hansen
7c1e90c89d SelectTree: Improve example 2022-04-28 13:50:28 +02:00
Gustav Hansen
d39b4c6ae7 SelectTree: Move custom Option props to selectProps 2022-04-28 13:50:28 +02:00
soupette
3647486db0 Change storybook port
Signed-off-by: soupette <cyril@strapi.io>
2022-04-28 13:50:27 +02:00
Gustav Hansen
3b5f26587a Add storybook documentation to develop local components outside the helper plugin
Signed-off-by: soupette <cyril@strapi.io>
2022-04-28 13:50:19 +02:00
Gustav Hansen
5048ed061c Chore: Fix snapshot test 2022-04-28 13:47:05 +02:00
Gustav Hansen
be68fe2957 Update test 2022-04-28 13:47:05 +02:00
Gustav Hansen
6eaf2d7441 ReactSelect: Improve styling for selected options 2022-04-28 13:47:04 +02:00
Gustav Hansen
18d26cc963 SelectTree: Handle react-select defaultValue 2022-04-28 13:47:04 +02:00
Gustav Hansen
71d06305b0 SelectTree: Reduce impact of disabled lint rule 2022-04-28 13:47:04 +02:00
Gustav Hansen
f9eb3004d4 SelectTree: Move Option into it's own component 2022-04-28 13:47:04 +02:00
Gustav Hansen
9b162d8e99 SelectTree: Improve PropTypes for options 2022-04-28 13:47:04 +02:00
Gustav Hansen
18e495f6e0 Link ML SelectTree to the helper-plugin storybook temporarily 2022-04-28 13:47:03 +02:00
Gustav Hansen
e31e8bc038 SelectTree: Update snapshot tests 2022-04-28 13:47:03 +02:00
Gustav Hansen
a5df3fbcce Chore: Add react-select as dependency of the helper-plugin 2022-04-28 13:46:53 +02:00
Gustav Hansen
9a5f703993 SelectTree: Update snapshot test 2022-04-28 13:41:53 +02:00
Gustav Hansen
d8e6039c79 ReactSelect: Add maxDisplayDepth prop to determine max level of indention 2022-04-28 13:41:53 +02:00
Gustav Hansen
4d872656d2 ReactSelect: Cleanup import order 2022-04-28 13:41:53 +02:00
Gustav Hansen
eb4bd8e050 ReactSelect: Simplify handleToggle callback 2022-04-28 13:41:53 +02:00
Gustav Hansen
bf0e321820 ML: Create SelectTree component on top of ReactSelect 2022-04-28 13:41:52 +02:00
Gustav Hansen
8983a69025 ReactSelect: Abstract base class from SelectWrapper 2022-04-28 13:41:49 +02:00
Gustav Hansen
318bec4f5c FolderCard: Restructure component files 2022-04-28 13:41:15 +02:00
Gustav Hansen
0d0a24f29d ML: Add FolderCard component 2022-04-28 13:39:19 +02:00
Gustav Hansen
a9abafccb0 ML: Add useFolders() hook and tests 2022-04-28 13:36:57 +02:00
Gustav Hansen
2e64487fc0 Chore: Update snapshot tests 2022-04-28 13:33:41 +02:00
Gustav Hansen
7fc6b4de67 ML: Refactor AssetMeta into ContextInfo to reuse it for folders 2022-04-28 13:29:05 +02:00
Pierre Noël
b8c8279580 fix lint 2022-04-28 13:29:04 +02:00
Pierre Noël
8abc6a73cb apply feedback 2022-04-28 13:29:04 +02:00
Pierre Noël
9c3dcfecbc sanitize files for the content-api 2022-04-28 13:29:04 +02:00
Pierre Noël
587b62ea7b replace path by location + add location to files 2022-04-28 13:29:04 +02:00
Pierre Noël
906f625c30 replace names by uids in folder path 2022-04-28 13:29:03 +02:00
Pierre Noël
ada5553977 remove path for files + add base for delete folders 2022-04-28 13:29:03 +02:00
Pierre Noël
9476065472 add ability to set and change file folder location 2022-04-28 13:29:03 +02:00
Pierre Noël
2ae631d903 forbid folder name starting or ending with a whitespace 2022-04-28 13:29:03 +02:00
Pierre Noël
8ddf42f75c fix tests 2022-04-28 13:29:02 +02:00
Pierre Noël
4ee7519b4f restructure upload controllers + add create and get folders 2022-04-28 13:29:00 +02:00
Gustav Hansen
6a9850bb21 FolderCard: remove legacy useId prefix param 2022-04-28 13:28:33 +02:00
Gustav Hansen
b9b01b9d51 FolderCard: Restructure component files 2022-04-28 13:28:33 +02:00
Gustav Hansen
39019848a4 FolderCard: Update tests 2022-04-28 13:28:33 +02:00
Gustav Hansen
609fb1336d ML: Add FolderCard component 2022-04-28 13:28:32 +02:00
Gustav Hansen
c494431a20 ML: Simplify useAssets() and useFolders() hooks 2022-04-28 13:28:32 +02:00
Gustav Hansen
c2722dcfd0 ML: Resolve ignored eslint rules 2022-04-28 13:28:32 +02:00
Gustav Hansen
c7cf9d886c ML: Add useFolders() hook and tests 2022-04-28 13:28:32 +02:00