-
Notifications
You must be signed in to change notification settings - Fork 0
[FEAT/#424] 탐색 뷰 믹스패널 붙이기 #425
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
Changes from 2 commits
56565ec
7cb52cc
0c312d1
b1483ef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,6 +86,25 @@ fun ExploreFilterSection( | |
| onFilterReset = { tempFilterState.reset() }, | ||
| onSave = { | ||
| isFilterBottomSheetVisible = false | ||
|
|
||
| val categoryFilters = filterItems.categories.filter { tempFilterState.categories[it.id] == true }.map { it.name } | ||
| val regionFilters = filterItems.regions.filter { tempFilterState.regions[it.id] == true }.map { it.name } | ||
| val ageGroupFilters = filterItems.ages.filter { tempFilterState.ages[it.id] == true }.map { it.name } | ||
| val isLocalReviewEnabled = filterItems.properties.firstOrNull()?.let { tempFilterState.properties[it.id] == true } ?: false | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
현재 코드는 Line 110에서 다음과 같이 개선하는 것을 고려해보세요: val isLocalReviewEnabled = filterItems.properties
.find { /* 로컬 리뷰를 식별하는 조건, 예: it.category == FilterCategory.LOCAL_REVIEW */ }
?.let { tempFilterState.properties[it.id] == true }
?: false🤖 Prompt for AI Agents |
||
|
|
||
| tracker.commonEvents.filterApplied( | ||
| pageApplied = "explore", | ||
| localReviewFilter = isLocalReviewEnabled | ||
| ) | ||
|
|
||
| if (categoryFilters.isNotEmpty() || regionFilters.isNotEmpty() || ageGroupFilters.isNotEmpty()) { | ||
| tracker.exploreEvents.exploreFilterApplied( | ||
| categoryFilters = categoryFilters, | ||
| regionFilters = regionFilters, | ||
| ageGroupFilters = ageGroupFilters | ||
| ) | ||
| } | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| onAction(ExploreAction.ApplyFilter(tempFilterState.toPersistent())) | ||
| }, | ||
| onToggleFilter = { id, type -> | ||
|
|
||
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.
요거 이미 함수는 만들어져있어서 commonEvents 내에 있는 함수로 사용 부탁드립니다!
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.
수정했습니다!