- Issue created by @wim leers
When creating a code component that uses the "image" prop shape, an example value should be possible to specify.
We need to be able to upload an example to use
There are 3 parts to this:
JavaScriptComponent
config entities must be able to store & synchronize props examples that require a file to exist on disk, and should use File
entities + content dependencies + import/export transformation.
FileUploadHandler
, which updated both REST file uploads (
š
Refactor FileUploadResource to use FileUploadHandler
RTBC
) and JSON:API file uploads (
š
[PP-1] Refactor JSON-API file uploads to use FileUploadHandler
Postponed
).
Because of the inherent intertwinedness, and because choices in either affect the other, it's preferable to tackle both in a single issue ā either as separate MRs, or even as a single one. It's probably preferable that the UI pieces happen first, where the people working on the JS code convey through code and/or issue comments how they'd want to see the server-side pieces work.
The server-side pieces MUST use core's FileUploadHandler
, but the exact URL, request body etc have myriad possible decisions, so let's make things as simple as possible for the client side š
Ability to upload example images!
Postponed
1.0
Theme builder
The change alters the user interface, so before and after screenshots should be added to document the UI change. Make sure to capture the relevant region only. Use a tool such as Aviary on Windows or Skitch on Mac OS X.