Automattic / Automattic/jetpack

Tiled gallery block: lock post while uploading image

Open
#12,198 0 comments 0 reactions 0 assignees View on GitHub
[Block] Tiled Gallery [Feature] Tiled Gallery [Focus] Blocks [Pri] Normal [Type] Good First Bug Enhancement Good For Community
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

When uploading an image to the gallery, the block should lock the editor from auto-saving the post so that unfinished uploads, i.e. so called "blob" images don't get stored in the content.

There should be this mechanism in Slideshow block but last time I tested it didn't work very well.

WIP code in https://github.com/Automattic/wp-calypso/pull/31147

Fairly straightforward to implement for anyone getting into block-editor/JS development.

Contributor guide

Open the contributing guide

Research direction

Start with the Tiled gallery block's image-upload flow and compare it with the locking mechanism in the Slideshow block. Review the WIP code in Automattic/wp-calypso pull request 31147 for context. Done means the editor cannot auto-save unfinished blob images while an upload is in progress.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.