- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2
 
π :: [#337] μ°λ μμμΌλ‘ λ³κ²½ #338
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
base: develop
Are you sure you want to change the base?
Conversation
          
WalkthroughReviewFilterμμ μ°λ λͺ©λ‘μ μμλ₯Ό μμ(2026β2020)μΌλ‘ λ³κ²½νκ³ , μΈλ±μ€βμ°λ λ§€ν λ‘μ§μ μ΄μ λ§κ² μμ νμ΅λλ€. SearchReviewμμλ κ²μ μ λ ₯ νλμ νλ μ΄μ€νλ 문ꡬλ₯Ό κ΅μ²΄νμ΅λλ€. Changes
 Sequence Diagram(s)sequenceDiagram
    participant UI as CollectionView (Year)
    participant VC as ReviewFilterViewController
    participant Relay as selectedYearRelay
    rect rgb(240,248,255)
    UI->>VC: user selects cell(index)
    note right of VC: years = [2026,2025,...,2020]
    end
    VC->>VC: year = years[index]  %% μΈλ±μ€βμ°λ λ§€ν (μμ λ°μ)
    VC->>Relay: selectedYearRelay.accept(year)
    Relay-->>VC: (binding updates UI/state)
    Estimated code review effortπ― 2 (Simple) | β±οΈ ~10 minutes 
 Possibly related PRs
 Suggested reviewers
 Poem
 Pre-merge checks and finishing touchesβ Failed checks (1 warning)
 β Passed checks (2 passed)
 β¨ Finishing touches
 π§ͺ Generate unit tests (beta)
 π Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro π Files selected for processing (1)
 β° Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
 π Additional comments (1)
 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment   | 
    
          All File Checked β
  | 
    
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.
Actionable comments posted: 0
π§Ή Nitpick comments (1)
Projects/Presentation/Sources/ReviewFilter/ReviewFilterViewController.swift (1)
246-251: μ°λ μμ μ λ ¬ λ‘μ§μ΄ μ ννκ² κ΅¬νλμμ΅λλ€.μ΅μ μ°λκ° λ¨Όμ  νμλλλ‘ λ³κ²½μ΄ μ¬λ°λ₯΄κ² μ μ©λμμ΅λλ€. κ·Έλ¬λ λμΌν μ°λ λ°°μ΄ μμ± λ‘μ§μ΄ line 263μλ μ€λ³΅λμ΄ μμ΅λλ€.
μ€λ³΅μ μ κ±°νκΈ° μν΄ μ°λ λ°°μ΄μ νλ‘νΌν°λ‘ μΆμΆνλ κ²μ κΆμ₯ν©λλ€:
public final class ReviewFilterViewController: BaseViewController<ReviewFilterViewModel> { private let filterApplyButtonDidTap = PublishRelay<Void>() private var selectedYear: String = "" private let selectedYearRelay = BehaviorRelay<String>(value: "") private var selectedJobIndex: Int? private var selectedYearIndex: Int? + private let years = (2020...2026).reversed().map { String($0) }κ·Έλ° λ€μ λ κ³³μμ μ΄ νλ‘νΌν°λ₯Ό μ¬μ©νλλ‘ λ³κ²½:
private func handleYearSelection(at indexPath: IndexPath) { if let previousIndex = selectedYearIndex, let previousCell = yearsCollectionView.cellForItem(at: IndexPath(item: previousIndex, section: 0)) as? ReviewMajorCollectionViewCell { previousCell.isCheck = false } if let cell = yearsCollectionView.cellForItem(at: indexPath) as? ReviewMajorCollectionViewCell { cell.isCheck = true selectedYearIndex = indexPath.item - let years = (2020...2026).reversed().map { String($0) } if indexPath.item < years.count { selectedYear = years[indexPath.item] selectedYearRelay.accept(selectedYear) } } }public override func configureViewController() { viewWillAppearPublisher.asObservable() .bind { self.hideTabbar() self.setSmallTitle(title: "νν° μ€μ ") self.navigationController?.navigationBar.prefersLargeTitles = false } .disposed(by: disposeBag) - let years = (2020...2026).reversed().map { String($0) } - Observable.just(years) .bind(to: yearsCollectionView.rx.items(
π Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
π Files selected for processing (1)
Projects/Presentation/Sources/ReviewFilter/ReviewFilterViewController.swift(2 hunks)
β° Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: JOBIS_DSM_iOS | JOBIS v2 CI | Test - iOS
 - GitHub Check: JOBIS_DSM_iOS | JOBIS v2 CI | Build - iOS
 
π Additional comments (1)
Projects/Presentation/Sources/ReviewFilter/ReviewFilterViewController.swift (1)
263-273: μ΄λ―Έ line 246-251μ λν 리뷰 μ½λ©νΈμμ μ΄ μ½λ μ€λ³΅μ λν΄ λ€λ£¨μμ΅λλ€.
          All File Checked β
  | 
    
κ°μ
μ°λ μμμΌλ‘ λ³κ²½
μμ μ¬ν
UI
Summary by CodeRabbit
λ¦΄λ¦¬μ€ λ ΈνΈ
리ν©ν°
μ€νμΌ