8000 Split FilterCategoryView into new/old versions for search phase 2 by amy-at-kickstarter · Pull Request #2396 · kickstarter/ios-oss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 6 commits into from
Apr 24, 2025

Conversation

amy-at-kickstarter
Copy link
Contributor

📲 What

Rename FilterCategoryView to FilterCategoryView_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 old FilterCategoryView_PhaseOne will be used. The new FilterCategoryView will be used when the flag is on.

🛠 How

Copy-paste.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy of FilterCategoryViewTest.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy of FilterCategoryView.

@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review April 22, 2025 16:02
@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/split-filter-category-view branch 2 times, most recently from 40c8b3d to 8af233e Compare April 22, 2025 17:50
@@ -9,12 +9,6 @@ struct FilterCategoryView<T: FilterCategory>: View {

var body: some View {
VStack(spacing: 0) {
if !featureSearchFilterByProjectStatusEnabled() {
Copy link
Contributor Author

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(
Copy link
Contributor Author

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.

@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/split-filter-category-view branch from b49272f to e2f8f0b Compare April 22, 2025 19:17
@amy-at-kickstarter amy-at-kickstarter merged commit 7b5b0c7 into main Apr 24, 2025
5 checks passed
@amy-at-kickstarter amy-at-kickstarter deleted the feat/adyer/split-filter-category-view branch April 24, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0