Skip to content

[Feat] #703 - 일반검색 개선: 최근검색어 추가#704

Open
onesunny2 wants to merge 6 commits into
developfrom
Feat/#703
Open

[Feat] #703 - 일반검색 개선: 최근검색어 추가#704
onesunny2 wants to merge 6 commits into
developfrom
Feat/#703

Conversation

@onesunny2
Copy link
Copy Markdown
Contributor

@onesunny2 onesunny2 commented May 7, 2026

⭐️Issue


🌟Motivation

최근 검색어 기능을 추가했습니다.

🌟Key Changes

  • /novels/recent-searches API 연동 (조회 / 단일 삭제 / 전체 삭제)
  • NormalSearchRecentView, NormalSearchRecentTagCell 신규 구현
  • 검색창이 비어있고 검색 결과가 없을 때만 최근 검색어 영역 노출
  • 최근 검색어 태그 탭 시 해당 키워드로 즉시 검색 실행
  • 단일 삭제 시 Optimistic UI 업데이트 (API 응답 전 목록에서 즉시 제거)
  • 향후 섹션 추가를 고려해 contentStackView(UIStackView, spacing: 32) 기반으로 레이아웃 구조화
  // 최근 검색어 표시 조건 (3가지 모두 충족 시)
  let showRecentSearchView = Observable.combineLatest(                                                                                                 
      recentSearchList.map { !$0.isEmpty },        // 최근 검색어 존재                                                                                         
      normalSearchList.map { $0.isEmpty }          // 검색 결과 없음                                                                                   
  )               
  .map { $0 && $1 }                                                                                                                              
  .asDriver(onErrorJustReturn: false)    

🌟Simulation

검색어 20개까지 노출되는 것 확인 최근 검색어 단일/전체 삭제
)

@onesunny2 onesunny2 self-assigned this May 7, 2026
@onesunny2 onesunny2 marked this pull request as ready for review May 7, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 일반검색 개선 - 최근 검색어 추가

1 participant