-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Expand the new replace image flow out to other blocks #14795
Comments
I agree with your evaluation there. Let's remove the "Needs design feedback" and move toward a PR. |
There's also #14788 for the Media & Text block. @draganescu might have already started. |
Hi everyone, I have indeed already started! :) Will be posting a PR soon! |
I have added a WIP PR #14918 that implements the new flow to video, audio, media, cover, file. I'll check embeds asap :) |
Closed the #14918 PR and opened six instead:
|
The edit icon is then being replaced in a lot of blocks that deal with images or files. I know of one more that might benefit from the swap icon and that is the edit gallery (pencil) icon. That means the main reason to click the edit gallery would be to add a new image. Or we just leave the gallery block as it is and see if anyone asks about this at a later point. |
With regards to the problem that the "swap" (Edit) button disappears (focus loss) and may re-appear in a different position, see: The first GIF posted by @kjellr makes sense to me and would allow to solve the problem:
Seems to me this should apply to all the blocks that switch between the preview and the placeholder. I quickly tried it on the current Audio block on master by:
Quickly testing that, seems to me:
Would this help to solve the issue and improve consistency? /Cc @draganescu Quick GIF from current master (with the old icon): |
@afercia I have implemented your idea in the six media blocks PRs and it worked like a charm. Will create a separate PR with the refactoring for the image block too. Great thinking! Thanks :) |
@draganescu as I see you made a few PRs, is this issue now able to be closed? If not, what is the next step forward? |
Hey @karmatosed, here it goes:
Now if this new image replacement flow works out OK, I will implement it in all the other blocks and only then this issue is completed :) |
Ok that sounds great, it sort of sounds like we can close this issue is that right @draganescu? |
I started to move the media replace flow to the other blocks, since the final form of it is merged and appears to work allright. |
#14142 added an improved flow for replacing an image:
As per @mapk's note in the thread, this flow should be rolled out to other areas of the UI. Here's a quick list:
In the following blocks, the edit button in the toolbar opens the media modal directly, so they just need the pencil icon swapped out for the new "Replace" icon:
*In the case of the Embed blocks (and maybe Video + Audio?) showing the preview in the placeholder may be too complicated. If that's the case, it may be fine to leave that part out.
The text was updated successfully, but these errors were encountered: