-
Notifications
You must be signed in to change notification settings - Fork 75
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
Upload static images to be used by the Image component #12848
Comments
Need UX for file uploading, and backend for endpoint for file uploading 😄 |
We probably also need to display the maximum allowed size. The |
In connection with the codelist issue, I have created the same pattern for adding images as I have suggested for codelists. I am not sure if I have covered all the tasks above, but I have tried to check off the tasks on the list that I believe this design solves now. It is also set up so that you can add images from the library when it is in place. What the sketches do not cover are these options for adjusting size and what is in the config panel today. I think it fits well together with the content accordion, where they are today. Do we need a design for that as well in this issue? |
@Annikenkbrathen Let's leave the other settings as-is for now. Or did you mean placing this image upload component in the content accordion as well? |
No, I meant design for the content section were the other settings are placed today. I think the image upload should be placed with the texts as shown in the sketch |
Nice work as always! 😄
Regarding error message for URL:
Great that you thought of reminding the user to delete either the picture or the URL, it looks nice 😊 |
Ready for dev! |
Impressive testing @mlqn Thanks!
Will also add a spinner when uploading is ongoing |
Description
As a service developer, I want to upload static images to be used by the Image component.
Currently we have a recipe for uploading a static image into the app folder. It involves creating a folder in the repository structure and uploading the image file to that folder.
For developers this is relatively unproblematic, but it should be easy to provide some way to upload static images to an app from the Studio interface.
We should offer some custom handling of the src-property, where we allow the user to either set it to a URL, or to upload an image. In the upload-case, we should automatically set the src-property with the path to the uploaded image.
Additional Information
Link to documentation explaining how to upload image.
Tasks
image.src
property that allows user to upload static pictures directlywwwroot
folderwwwroot
folderAcceptance Criterias
image.src
property manually to a specified URLimage.src
property implicitly by uploading a picture to the app from the Image component configThe text was updated successfully, but these errors were encountered: