-
Notifications
You must be signed in to change notification settings - Fork 2
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
[feat] 준비 현황 뷰 구현 #186
Merged
Merged
[feat] 준비 현황 뷰 구현 #186
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
74679af
fix/#176 rootView로 네이밍 전환
youz2me 9cda8af
feat/#176 소요시간 정보 뷰 구현
youz2me b28c076
feat/#176 소요시간 정보 뷰 구현
youz2me 4898437
feat/#176 rootView viewDidLoad()에서 loadView()에서 설정 변경
youz2me 3433905
feat/#176 화면 컴포넌트 구현
youz2me 350b162
feat/#176 준비 현황 뷰 구현
youz2me 4baafa8
fix/#176 충돌 해결 중
youz2me 04f5d77
fix/#176 충돌 해결
youz2me 8353124
fix/#176 충돌 해결
youz2me 92b853a
Merge remote-tracking branch 'refs/remotes/origin/suyeon'
youz2me ce7ef60
fix/#176 충돌 해결
youz2me a66e0bd
feat/#176 준비 현황 뷰 구현 완료
youz2me a04c646
feat/#176 tableView 코드 삭제
youz2me 8c38be1
feat/#176 OurReadyStatusCollectionViewCell 구현
youz2me b94cf2d
feat/#176 ReadyStatusProgressView 구현 완료
youz2me 4ff8dab
feat/#176 ReadyStatusButton 구현
youz2me 5c5093b
fix/#176 서버 수정된 부분에 맞게 모델 수정
youz2me 6187c61
feat/#176 테스트용 ReadyStatusService 구현
youz2me 71f2130
feat/#176 준비 현황 뷰 및 분기처리, 기능 구현
youz2me 3374f87
feat/#176 준비 현황 구현
youz2me 88704f6
Merge remote-tracking branch 'refs/remotes/origin/suyeon'
youz2me c14a7b8
fix/#176 충돌 해결
youz2me e6db3f7
fix/#176 리뷰 반영
youz2me df868aa
Merge remote-tracking branch 'refs/remotes/origin/suyeon'
youz2me 59c01f2
fix/#186 컨벤션에 맞게 모델명 수정하고 CodingKeys 추가
youz2me File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
KkuMulKum/Network/DTO/Model/Promises/ArrivalCompletionResponseModel.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
KkuMulKum/Resource/Assets.xcassets/Image/img_text_popup.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "text_popup.svg", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
KkuMulKum/Resource/Assets.xcassets/Image/img_text_popup.imageset/text_popup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
KkuMulKum/Source/Promise/ReadyStatus/Service/MockReadyStatusService.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// | ||
// ReadyStatusService.swift | ||
// KkuMulKum | ||
// | ||
// Created by YOUJIM on 7/15/24. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol ReadyStatusServiceType { | ||
func getMyPromiseStatus(with promiseID: Int) -> MyReadyStatusModel? | ||
func patchMyReadyStatus(with myInfo: MyPromiseReadyInfoModel) | ||
func getParticipantList(with promiseID: Int) -> PromiseParticipantListModel? | ||
} | ||
|
||
final class MockReadyStatusService: CreateMeetingServiceType { | ||
func getMyPromiseStatus(with promiseID: Int) -> MyReadyStatusModel? { | ||
let mockData = MyReadyStatusModel( | ||
preparationTime: 300, | ||
travelTime: 230, | ||
preparationStartAt: "AM 11:00", | ||
departureAt: "PM 1:30", | ||
arrivalAt: "PM 2:00" | ||
) | ||
|
||
return mockData | ||
} | ||
|
||
func getParticipantList(with promiseID: Int) -> PromiseParticipantListModel { | ||
let mockData = PromiseParticipantListModel( | ||
participantCount: 3, | ||
participants: [ | ||
Participant( | ||
participantId: 1, | ||
memberId: 3, | ||
name: "안꾸물이", | ||
state: "도착", | ||
profileImageURL: nil | ||
), | ||
Participant( | ||
participantId: 2, | ||
memberId: 4, | ||
name: "꾸우우우웅물이", | ||
state: "도착", | ||
profileImageURL: nil | ||
), | ||
Participant( | ||
participantId: 3, | ||
memberId: 5, | ||
name: "꾸물이", | ||
state: "이동중", | ||
profileImageURL: nil | ||
) | ||
] | ||
) | ||
|
||
return mockData | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
KkuMulKum/Source/Promise/ReadyStatus/View/OurReadyStatusCollectionViewCell.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// | ||
// OurReadyStatusCollectionViewCell.swift | ||
// KkuMulKum | ||
// | ||
// Created by YOUJIM on 7/16/24. | ||
// | ||
|
||
import UIKit | ||
|
||
class OurReadyStatusCollectionViewCell: BaseCollectionViewCell { | ||
var profileImageView: UIImageView = UIImageView(image: .imgProfile).then { | ||
$0.contentMode = .scaleAspectFill | ||
} | ||
|
||
let nameLabel: UILabel = UILabel().then { | ||
$0.setText("유짐이", style: .body03, color: .gray8) | ||
} | ||
|
||
var readyStatusButton: ReadyStatusButton = ReadyStatusButton( | ||
title: "준비중", | ||
readyStatus: .ready | ||
).then { | ||
$0.layer.cornerRadius = Screen.height(14) | ||
$0.layer.borderWidth = 0.5 | ||
} | ||
|
||
override func setupView() { | ||
backgroundColor = .white | ||
layer.cornerRadius = 8 | ||
clipsToBounds = true | ||
|
||
addSubviews( | ||
profileImageView, | ||
nameLabel, | ||
readyStatusButton | ||
) | ||
} | ||
|
||
override func setupAutoLayout() { | ||
profileImageView.snp.makeConstraints { | ||
$0.top.equalToSuperview().offset(14) | ||
$0.bottom.equalToSuperview().inset(14) | ||
$0.leading.equalToSuperview().offset(12) | ||
$0.height.equalTo(Screen.height(44)) | ||
$0.width.equalTo(profileImageView.snp.height) | ||
} | ||
|
||
nameLabel.snp.makeConstraints { | ||
$0.centerY.equalToSuperview() | ||
$0.leading.equalTo(profileImageView.snp.trailing).offset(13) | ||
} | ||
|
||
readyStatusButton.snp.makeConstraints { | ||
$0.centerY.equalToSuperview() | ||
$0.trailing.equalToSuperview().inset(12) | ||
$0.height.equalTo(Screen.height(28)) | ||
$0.width.equalTo(Screen.width(68)) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
홈화면에 야미하게 가져다 써야지!