-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Split FilterCategoryView into new/old versions for search phase 2 #2396
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
Split FilterCategoryView into new/old versions for search phase 2 #2396
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy of FilterCategoryViewTest
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy of FilterCategoryView
.
40c8b3d
to
8af233e
Compare
@@ -9,12 +9,6 @@ struct FilterCategoryView<T: FilterCategory>: View { | |||
|
|||
var body: some View { | |||
VStack(spacing: 0) { | |||
if !featureSearchFilterByProjectStatusEnabled() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FilterCategoryView
is only used in the new flow, so it doesn't need this feature flag check any more
@@ -228,7 +228,7 @@ internal final class SearchViewController: UITableViewController { | |||
selectedCategory: self.viewModel.outputs.selectedFilters.category | |||
) | |||
|
|||
let filterView = FilterCategoryView( | |||
let filterView = FilterCategoryView_PhaseOne( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above - this is used when the feature flag is off.
b49272f
to
e2f8f0b
Compare
📲 What
Rename
FilterCategoryView
toFilterCategoryView_PhaseOne
and make a copy for Phase Two.🤔 Why
I've been working on creating the new root filter view. I thought I was going to be able to do it without making substantial changes to
FilterCategoryView
, but eventually I realized that wasn't going to work.This will let us keep Phase 2 fully behind a feature flag. When the phase 2 flag is off (
featureSearchFilterByProjectStatusEnabled()
), the oldFilterCategoryView_PhaseOne
will be used. The newFilterCategoryView
will be used when the flag is on.🛠 How
Copy-paste.