Improve status filters by making them independent on manage project page #4711
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR's main goal is to solve the linked issue by creating a new status filter called "Managed by Me", so that users can select projects managed by them that have been archived. Currently, there's no way to do so because "Archived" and "Created by Me" filters are mutually exclusive.
We also improve the status filter toggling behaviour by making "Active", "Draft" & "Archived" filters separate from "Created by Me" and "Managed by Me". These filters have also been tested on mobile-sized screens to make sure they aren't awkwardly aligned.
(Beware: Unfamiliar with business logic)
Feel free to comment if I might have misunderstood the requirements here. I think it's easier to implement what I think should be the logic in code, and then work on this from here as a baseline.
Fixes #3829
Type of change
How Has This Been Tested?
yarn start
in the./frontend
folderManage > View all projects
yarn test
in the./frontend
folder. There were no unit tests for this file, so I tested my implementation on the UI.Here is a reference screenshot (larger screens):
(mobile screens)