-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Bulk Upload in Asset Manager #29007
Conversation
Pinging @elastic/kibana-canvas |
💔 Build Failed |
We probably shouldn't hide the asset interface if you don't have anything uploaded anymore. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great overall, but it needs to de-dupe uploaded assets.
💚 Build Succeeded |
Hmm, I'm not sure what's causing it, but adding the loading indicator should prevent it from happened. |
💚 Build Succeeded |
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The feature itself works as expected, I like it!
There is a little something going on with the modal header markup. Might have to do with how the flex elements are arranged/nested. Compare the Manage Assets header to the Add Element header... see how the FilePicker flows over into the margin:
Manage assets
Add element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryankeairns I added the same style you applied to the file picker in the workpad loader, which makes the height taller, but I can undo that change. |
0e79872
to
12a96b6
Compare
💚 Build Succeeded |
Moved filepicker style to main.scss. Removed workpad_upload component Added filepicker to asset manager Removed check for assets in workpad header to always show asset manager button Deduped image uploads in asset manager. Added loading indicator to asset manager Added empty prompt to display when there are no assets Adds additional image upload type checking Updated verbiage Undid CSS changes to workpad_loader filepicker
12a96b6
to
152afa2
Compare
💚 Build Succeeded |
Moved filepicker style to main.scss. Removed workpad_upload component Added filepicker to asset manager Removed check for assets in workpad header to always show asset manager button Deduped image uploads in asset manager. Added loading indicator to asset manager Added empty prompt to display when there are no assets Adds additional image upload type checking Updated verbiage Undid CSS changes to workpad_loader filepicker
Related to #23064.
Closes #28277.
This adds a file picker to the asset manager that allows you to upload multiple images to a workpad without going through an image element. With this, you can load up your workpad with all of the assets you want to use, and easily select them from the asset picker when you add your image elements.
I also added an
accept
attribute to all the file pickers. Now file pickers in image upload and in the asset manager will only accept images, and the one in the workpad loader will only accept JSON files.Workpad Loader
Only JSON files are selectable
![screen shot 2019-01-18 at 11 06 49 am](https://user-images.githubusercontent.com/1697105/51404618-363ef380-1b11-11e9-9f84-34a3c61788e2.png)
Image Upload
Only image files are selectable
![screen shot 2019-01-18 at 11 06 10 am](https://user-images.githubusercontent.com/1697105/51404589-15769e00-1b11-11e9-89be-31a04a523bee.png)