Skip to content

Style/#371 공통 여정 돌아보기 뷰 구현#381

Merged
dev-domo merged 19 commits intodevelopfrom
style/#371-lookBackCommonQuest
Feb 27, 2026
Merged

Style/#371 공통 여정 돌아보기 뷰 구현#381
dev-domo merged 19 commits intodevelopfrom
style/#371-lookBackCommonQuest

Conversation

@dev-domo
Copy link
Collaborator

🔗 연결된 이슈

📄 작업 내용

  • 공통 여정 돌아보기 뷰 구현했습니다!
  • 나의 답변이 있는 경우와 없는 경우 dequeue하는 UITableViewCell이 다름에 주의해주세요~
  • backAndMenu 내비게이션 바 타입을 추가했습니다. 메뉴 버튼을 누르면 나연이가 작업한 바텀시트가 올라오도록 추후 연결할 예정입니다
  • 아래 영상은 backAndMenu가 적용되기 전으로 촬영했네요 ㅠㅠ 양해 부탁드리겠습니다
구현 내용 IPhone 16 pro IPhone 13 mini
나의 답변이 없는 경우
나의 답변이 있는 경우

💻 주요 코드 설명

  • CommonQuestHistoryViewController : 공통 퀘스트 돌아보기 뷰
  • CommonQuestMyAnswerViewController : 나의 답변 돌아보기 뷰

@dev-domo dev-domo self-assigned this Feb 24, 2026
@dev-domo dev-domo linked an issue Feb 24, 2026 that may be closed by this pull request
1 task
Copy link
Collaborator

@y-eonee y-eonee left a comment

Choose a reason for hiding this comment

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

고생하셨습니당 !!

Comment on lines +210 to 212
private static func makeTopRightButtonItem(
image: UIImage,
target: BaseViewController,
Copy link
Collaborator

Choose a reason for hiding this comment

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

오옹

getUserNameUseCase.execute()
}

private static func stub() -> [AnswerRecord] {
Copy link
Collaborator

Choose a reason for hiding this comment

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

stub은 나중에 유스케이스/레포지토리 생기면 분리하실 생각 있으신가요!?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

네 추후 API 연동 때 분리합니다!

return [
.init(
question: "이별 후 제일 힘들었던 순간은?",
answer: "헤어진 첫날 밤이었어요. 혼자 집에 있는데 갑자기 모든 게 현실로 다가왔고, 이제 정말 끝났",
Copy link
Collaborator

Choose a reason for hiding this comment

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

끝나버렷다난아직시작도못해봣는데

Comment on lines +72 to +79
let historyViewController = ViewControllerFactory.shared.makeCommonQuestHistoryViewController()
historyViewController.navigationItem.hidesBackButton = true
historyViewController.configure(
question: record.question,
writtenAt: record.writtenAt,
profileIcon: .sosoBadge,
nickname: viewModel.getUserName(),
content: record.answer
Copy link
Collaborator

Choose a reason for hiding this comment

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

근데 내답변 보기 할 때는 프로필 아이콘이 없어야 하지 않나요?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

수정하러 갑니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

완료하였습니다

Copy link
Collaborator

Choose a reason for hiding this comment

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

예리하다

Copy link
Collaborator

@juri123123 juri123123 left a comment

Choose a reason for hiding this comment

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

고생하셧습ㅁ니ㅏㄷ


enum NavigationBarType: Equatable {
case back(header: NavigationHeaderType = .clear)
case backAndMenu(header: NavigationHeaderType = .clear)
Copy link
Collaborator

Choose a reason for hiding this comment

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

jw 이거 case 순서 기준이 있는거에용?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아 back에서 파생(?)된 느낌이라 2번째로 배치했는데, 딱히 상관없어요! ㅎㅎ 마지막으로 빼도 됩니다

Comment on lines +15 to +19
struct AnswerRecord {
let question: String
let answer: String
let writtenAt: Date
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

얘도 viewmodel에서만 사용되는 친구일까용 . . .? API 연동 시에 분리할 예정이신가요 ? ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

네네 임의입니다!

Comment on lines +56 to +58
$0.register(CommonQuestAnswerCell.self)
$0.register(CommonQuestContentCell.self)
$0.register(NoAnswerCell.self)
Copy link
Collaborator

Choose a reason for hiding this comment

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

오우 고능하다

Comment on lines +81 to +83
private func moveWriteAnswerButtonDidTap() {

}
Copy link
Collaborator

Choose a reason for hiding this comment

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

공백추가확인 ㅋㅋ

Comment on lines +72 to +79
let historyViewController = ViewControllerFactory.shared.makeCommonQuestHistoryViewController()
historyViewController.navigationItem.hidesBackButton = true
historyViewController.configure(
question: record.question,
writtenAt: record.writtenAt,
profileIcon: .sosoBadge,
nickname: viewModel.getUserName(),
content: record.answer
Copy link
Collaborator

Choose a reason for hiding this comment

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

예리하다

Comment on lines +89 to +94
func tableView(
_ tableView: UITableView,
viewForHeaderInSection section: Int
) -> UIView? {
UIView()
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

얘는 꼭 잇어야 하는 친구에요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

테이블뷰 셀 간 간격을 주어야 하는데, 셀에 빈 헤더를 넣어서 간격이 떨어져있는 것처럼 보이게 만드는 작전입니당

@dev-domo dev-domo merged commit 44ee2c3 into develop Feb 27, 2026
1 check passed
@dev-domo dev-domo deleted the style/#371-lookBackCommonQuest branch February 28, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Style] 공통퀘스트 돌아보기 UI 구현

3 participants