Automattic / Automattic/jetpack

Publicize: update connection `done` state once post publishes

Open
#21,233 0 comments 0 reactions 1 assignee Claimed by @retrofox View on GitHub
[Extension] Publicize [Status] In Progress Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

Currently, when the post is published the `done` state is not updated on the fly. You need to do a hard refresh to get it.

Screen Shot 2021-09-29 at 10 42 01 AM

It makes sense because the final sharing process is handled by an async job, on the server-side. But it doesn't mean we can't be optimistic and update the IU once the post is published, and theoretically, shared.

Also, the `done` state is reflected in the UI disabling the toggle button, that makes sense to do this immediately after the post is published beyond the final sharing result because the app should not allow re-sharing while the process is not done yet.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.