Skip to content
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

Default the state filters on the publications page #2312

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

mtaylorgds
Copy link
Contributor

@mtaylorgds mtaylorgds commented Sep 6, 2024

When visiting the root page, with no filters set, default the state filters so that only editions in the "pre-published" states are shown, as these are the editions that users of Mainstream Publisher mostly care about.

Uses the presence of the title filter as a proxy for whether any filters have been set, since that filter is always present when the 'update filter' button is clicked (even if no title text has been supplied, in which case it will have an empty value).

Trello card

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@mtaylorgds mtaylorgds force-pushed the 435-default-statuses-view-publications-page branch 2 times, most recently from 9226fae to 553bcda Compare September 6, 2024 09:11
When visiting the root page, with no filters set, default the state
 filters so that only editions in the "pre-published" states are shown,
 as these are the editions that users of Mainstream Publisher mostly
 care about.

Uses the presence of the title filter as a proxy for whether any filters
 have been set, since that filter is always present when the
 'update filter' button is clicked (even if no title text has been
 supplied, in which case it will have an empty value).
@mtaylorgds mtaylorgds force-pushed the 435-default-statuses-view-publications-page branch from 553bcda to cd243dc Compare September 6, 2024 10:42
@mtaylorgds mtaylorgds marked this pull request as ready for review September 6, 2024 10:54
@baisa baisa merged commit e289b7a into main Sep 9, 2024
13 checks passed
@baisa baisa deleted the 435-default-statuses-view-publications-page branch September 9, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants