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

Decouple category filter modal #885

Merged
merged 3 commits into from
Nov 29, 2022

Conversation

MythicManiac
Copy link
Collaborator

@MythicManiac MythicManiac commented Nov 25, 2022

This PR replaces #879 as some commits in #879 had to be merged ahead of time; this PR is the re-ordered result.

This should be merged after #886

@MythicManiac MythicManiac changed the base branch from develop to master November 25, 2022 15:18
@MythicManiac MythicManiac changed the base branch from master to develop November 25, 2022 15:18
Copy link
Collaborator Author

@MythicManiac MythicManiac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few questions, otherwise looks good. Can't approve this myself since I re-opened the PR on behalf of @anttimaki

src/components/modals/CategoryFilterModal.vue Outdated Show resolved Hide resolved
src/components/modals/CategoryFilterModal.vue Outdated Show resolved Hide resolved
Some of the filters in manager page are managed via a modal. Having the
modal inside the Manager page makes it difficult to move towards route
based navigation. But before the modal can be moved out of the manager
page, we need to move the management of filter state to make them
universally accessible.

Refs TS-1309
Continue making Manager page less of a god-class component.

This also partially fixes the problem where "allow NSFW" checkbox
didn't react correctly to dark/light theme. The value is now read from
correct place, so the checkbox is themed based on the theme that was
active when user entered Manager page. However, if user changes the
theme while on manager page, the checkbox theme is not updated yet. I
wasn't sure how this should be solved, and it falls outside the scope
of the ticket, so I just marked the issue with TODO comment.

Refs TS-1309
@anttimaki anttimaki force-pushed the standalone-category-filter-modal-rebased branch from eb22e8c to 88b199d Compare November 29, 2022 09:01
Copy link
Collaborator

@anttimaki anttimaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking approved on behalf of Mythic.

Copy link
Owner

@ebkr ebkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment and a suggestion to not have a permanent TODO. Happy to merge once resolved.

src/components/modals/CategoryFilterModal.vue Outdated Show resolved Hide resolved
src/store/modules/ModFilterModule.ts Outdated Show resolved Hide resolved
Rename a variable from cats to categories as requested in PR review. Not
squashing to previous commit as to avoid creating conflicts in the PR
chain.
@MythicManiac MythicManiac merged commit 0af2003 into develop Nov 29, 2022
@MythicManiac MythicManiac deleted the standalone-category-filter-modal-rebased branch November 29, 2022 19:26
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