Skip to content

batches: improve list UX when modifying the publication state

Created by: courier-new

When a user modifies the publication state for one or more changesets in the preview GUI, the UX for this recalculation is less-than-ideal, as it reloads the entire connection when a new publication state is applied:

https://user-images.githubusercontent.com/8942601/129820446-97d5fe99-2ac2-4c6c-8770-020e34858c50.mov

It was not within scope to address this at the time of completing this work, so this issue is for tracking the follow-up to improve this experience.

Refactoring this component over to useConnection in order to tap into Apollo's cache and rebuilding with the new FilteredConnection components API should resolve this issue.

See https://github.com/sourcegraph/sourcegraph/pull/24060 description for more context.