Skip to content

[Feat] UI 업데이트 내용 반영#365

Merged
mooninbeom merged 4 commits intodevelopfrom
feat/#364-ui-update
May 19, 2025
Merged

[Feat] UI 업데이트 내용 반영#365
mooninbeom merged 4 commits intodevelopfrom
feat/#364-ui-update

Conversation

@thinkySide
Copy link
Contributor

@thinkySide thinkySide commented Apr 30, 2025

close #364

TO-DO

  • 답변 댓글, 게시판 댓글 리스트 UI 업데이트
  • 오늘의 질문, 게시판 active 리프레쉬 기능 추가

상세 설명

  • Figma에 반영되어있는 자잘자잘한 UI 업데이트 및 리프레쉬가 되지 않는 현상을 해결하기 위해 기능을 추가했습니다!

스크린샷

기능 스크린샷
답변 댓글 리스트 업데이트
게시판 댓글 리스트 업데이트

@thinkySide thinkySide added Feat 기능 구현 PR-Reviewing 현재 리뷰 중인 PR labels Apr 30, 2025
@thinkySide thinkySide self-assigned this Apr 30, 2025
@thinkySide thinkySide linked an issue Apr 30, 2025 that may be closed by this pull request

struct CommentView: View {
@Bindable var store: StoreOf<CommentFeature>
struct BoardCommentView: View {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

답변 댓글도 생긴만큼 게시판 댓글 리스트도 명확히 구분해주기 위해 네이밍을 업데이트했습니다.

store.send(.academyDayCounterTapped)
} label: {
QPAcademyDayCounter()
QPAcademyDayCounter(event: store.event)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

아카데미 일정 카운터 컴포넌트에 event 속성을 주입받을 수 있도록 업데이트했습니다.

onAppear, refresh, active 등에 대응하기 위해선 Reducer가 이벤트 속성을 가지고 있어야 하기 때문에 수정해주었습니다!

Comment on lines +27 to +31
.onChange(of: scenePhase) { _, newPhase in
if newPhase == .active {
store.send(.active)
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ScenePhase 환경 변수를 이용해 앱에 재진입 시 자연스럽게 리프레쉬 할 수 있도록 구현했습니다. 오늘의 질문 쪽도 똑같아요!

Copy link
Contributor

@OhMyungJin OhMyungJin left a comment

Choose a reason for hiding this comment

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

LGTM!!
scenePhase 기능 완전 좋네요!

@mooninbeom mooninbeom merged commit b82d7ba into develop May 19, 2025
1 check passed
@mooninbeom mooninbeom added PR-Merged Merge가 완료된 PR and removed PR-Reviewing 현재 리뷰 중인 PR labels May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feat 기능 구현 PR-Merged Merge가 완료된 PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] UI 업데이트 내용 반영

3 participants