batches: set publication states when applying preview
Created by: courier-new
Part 2 of #23383 (closed). Portions of this lifted from or inspired by #22658.
Note: This PR is based on #23966 since it builds upon the changes there.
This PR includes:
- applying the new publish statuses when you click "Apply" from the banner on the top of the preview page
This PR does not include:
- recalculating the actions on the backend when a publish status modification is selected
- disabling the "Apply" button until a publish status modification is selected
(Those will each be a follow-up PR)
The majority of this PR is setting up a new React.Context
for sharing information about the UI controls across preview page components that are very distant relatives. Some of the logic around lifting filters/search from the URL is also moved to the context layer as a result.