[Step2|FE] Use snippet `blobs` field instead of `blob` from GraphQL
Support rendering blobs if available otherwise default to blob
Original Post
Once we implement #217784 (closed), we can update the VUE code and use the new blobs field from GraphQL.
I assume we can get it safely and rendering all the snippet blobs in a loop inside VUE.
If it is more than that and, for the sake of iteration, after the request to GraphQL we can get the first blob returned in the array.
Actions plan
-
As the first step towards iterative approach, and considering the actual lack of support for multiple files at the moment, we fall back to We do not show "Edit" button if at least one blob is binaryoption. Implemented in #35605 -
We create a frontend Issue to prevent editing binary files and sending those in mutations. -
We create a frontend Issue to switch to We always show "Edit" buttonoption preserving the editing restrictions from the previous step
Edited by Denys Mishunov