-
Notifications
You must be signed in to change notification settings - Fork 0
문제 상세 화면 구현 #34
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
Merged
The head ref may contain hidden characters: "33-\uBB38\uC81C-\uC0C1\uC138-\uD654\uBA74questiondetailscreen-\uAD6C\uD604"
Merged
문제 상세 화면 구현 #34
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b52efed
refactor: 패키지 구조 개선
chanho0908 d3ecb78
feat: Answer sealed class 구현
chanho0908 1942b6a
feat: Answer Response 모델 추가
chanho0908 6bc25f1
feat: Answer DataSource 구현
chanho0908 28e157a
feat: Answer Repository 및 DI 설정 추가
chanho0908 2b809c2
feat: DateFormatter 유틸리티 추가
chanho0908 5ccb471
feat: AnswerUiModel sealed class 구현
chanho0908 c3a7e75
feat: QuestionDetailUiState 및 UiEvent 추가
chanho0908 6658c3c
feat: QuestionDetailViewModel 구현
chanho0908 72d3be8
feat: Design System 컴포넌트 추가 및 개선
chanho0908 1ced23e
feat: AnswerCard 및 EmptyAnswerCard 컴포넌트 구현
chanho0908 fa2aa8c
feat: EditAnswerCard 컴포넌트 구현
chanho0908 bdf1ff4
feat: MyAnswer 컴포넌트 구현
chanho0908 0197320
feat: AnswerHistory 컴포넌트 구현
chanho0908 c7ce082
feat: AddAnswerBottomSheet 컴포넌트 구현
chanho0908 0a92c3e
feat: QuestionInfo 컴포넌트 구현
chanho0908 ebe48b4
feat: QuestionDetailScreen 구현
chanho0908 ad23e4a
feat: QuestionDetail Navigation 설정
chanho0908 dc7c295
feat: QuestionDetail DI 설정 추가
chanho0908 3a3886a
feat: QuestionDetail 문자열 리소스 추가
chanho0908 0b8e67f
feat: QuestionList와 QuestionDetail 연동
chanho0908 fcf7975
test: 패키지 이동에 따른 테스트 코드 업데이트
chanho0908 ae024aa
chore: 빌드 설정 및 의존성 추가
chanho0908 208087d
feat: 로딩된 답변이 올바른 질문에 연결되도록 수정
chanho0908 1f1ca2e
chore: 문제 상세 화면 TopAppBar 타이틀 제거
chanho0908 8eef341
feat: 문제 상세 화면과 리스트 화면 간 상태 동기화 구현
chanho0908 7918387
refactor: 코드 리뷰 피드백 반영
chanho0908 42e17f3
refactor: 추가 코드 리뷰 피드백 반영
chanho0908 0b05d5d
fix: CategoryOOP 색상 변경
chanho0908 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
This file contains hidden or 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 hidden or 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
32 changes: 32 additions & 0 deletions
32
composeApp/src/commonMain/kotlin/com/peto/droidmorning/common/util/DateFormatter.kt
This file contains hidden or 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,32 @@ | ||
| package com.peto.droidmorning.common.util | ||
|
|
||
| import kotlinx.datetime.TimeZone | ||
| import kotlinx.datetime.number | ||
| import kotlinx.datetime.toLocalDateTime | ||
| import kotlin.time.Instant | ||
|
|
||
| object DateFormatter { | ||
| private const val DATE_SEPARATOR = "." | ||
|
|
||
| fun formatDate( | ||
| instant: Instant, | ||
| timeZone: TimeZone = TimeZone.currentSystemDefault(), | ||
| ): String { | ||
| val date = | ||
| instant | ||
| .toLocalDateTime(timeZone) | ||
| .date | ||
|
|
||
| return buildString { | ||
| append(date.year) | ||
| append(DATE_SEPARATOR) | ||
| append( | ||
| date.month.number | ||
| .toString() | ||
| .padStart(2, '0'), | ||
| ) | ||
| append(DATE_SEPARATOR) | ||
| append(date.day.toString().padStart(2, '0')) | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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
4 changes: 3 additions & 1 deletion
4
composeApp/src/commonMain/kotlin/com/peto/droidmorning/di/ViewModelModule.kt
This file contains hidden or 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 |
|---|---|---|
| @@ -1,12 +1,14 @@ | ||
| package com.peto.droidmorning.di | ||
|
|
||
| import com.peto.droidmorning.login.vm.LoginViewModel | ||
| import com.peto.droidmorning.question.vm.QuestionViewModel | ||
| import com.peto.droidmorning.questions.detail.vm.QuestionDetailViewModel | ||
| import com.peto.droidmorning.questions.list.vm.QuestionViewModel | ||
| import org.koin.core.module.dsl.viewModelOf | ||
| import org.koin.dsl.module | ||
|
|
||
| val viewModelModule = | ||
| module { | ||
| viewModelOf(::LoginViewModel) | ||
| viewModelOf(::QuestionViewModel) | ||
| viewModelOf(::QuestionDetailViewModel) | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.