Skip to content
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/#91] 캘린더뷰 / 스크랩 목록 서버통신 #101

Merged
merged 51 commits into from
Jul 17, 2024

Conversation

boiledeggg
Copy link
Member

@boiledeggg boiledeggg commented Jul 16, 2024

⛳️ Work Description

  • 월간 스크랩 목록 서버통신 구현
  • 일간 스크랩 목록 서버통신 구현
  • 기타 UI 수정

📸 Screenshot

default.mp4

📢 To Reviewers

  • Service까지 연결을 완료한 상태입니다~
  • 이제 서버와 연결하고 확인 작업과 기타 수정만 하면 될 것 같아요!!
  • 이게 무슨 일인진 모르겠지만 예전 커밋들이 제 피알에 합쳐지게 됐어요,, 뭐라 말은 못해주고 잘 판단해서 효율적으로 봐주시면 될 것 같습니다,,, 죄송 죄송 🙏

leeeyubin and others added 30 commits July 14, 2024 01:41
[Feat/#79] 탐색 기본 뷰 / 조회수 많은 공고 통신
@boiledeggg boiledeggg added FEAT ✨ 새로운 기능 구현 석준💜 석준 labels Jul 16, 2024
@boiledeggg boiledeggg self-assigned this Jul 16, 2024
Copy link
Member

@leeeyubin leeeyubin 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 +113 to +117
year: Int, month: Int
) = viewModelScope.launch {
withContext(Dispatchers.IO) {
calendarRepository.getScrapMonthList(year, month)
}.fold(
Copy link
Member

Choose a reason for hiding this comment

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

왕,, Dispatchers.IO 까지!! 넘넘 수고 많았다,,,

Comment on lines 142 to 146
onSuccess = {
_calendarWeekState.update { currentState ->
currentState.copy(
/*loadState = if (it.isNotEmpty()) UiState.Success(it) else UiState.Empty*/
loadState = UiState.Success(it)
Copy link
Member

Choose a reason for hiding this comment

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

덕분에 update라는 기능 알아갑니다!

Comment on lines 28 to 30
import kotlinx.coroutines.withContext
import timber.log.Timber
import java.time.LocalDate
Copy link
Member

Choose a reason for hiding this comment

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

Timber 안 쓰이면 지워줘도 될 것 같아요!

Copy link
Member

@Hyobeen-Park Hyobeen-Park left a comment

Choose a reason for hiding this comment

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

진짜 멋있다~~~ 최고최고!!!!

fun getScrapMonthList(
year: Int, month: Int
) = viewModelScope.launch {
withContext(Dispatchers.IO) {
Copy link
Member

Choose a reason for hiding this comment

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

우왕 Dispatchers.IO....!!!! 짱이다

_calendarListState.update { currentState ->
currentState.copy(
loadState = if (it.isNotEmpty()) UiState.Success(it) else UiState.Empty
//loadState = UiState.Success(it)
Copy link
Member

Choose a reason for hiding this comment

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

이거 안쓰는거면 삭제해주세요!!

.fillMaxHeight()
.background(Back)
) {
when (scrapState.loadState) {
Copy link
Member

Choose a reason for hiding this comment

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

오... 저도 LazyColumn 안에서 when문으로 확인하는 방식을 고려해봐야겠네요..!! 굿~!~!

Copy link
Member Author

Choose a reason for hiding this comment

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

이것보단 Paging 처리하는 방식이 훨씬 나아보이는데 지금은 못하겠네요ㅎㅎ,,

@boiledeggg boiledeggg merged commit 3f9a40d into feat/#59-calendar-month Jul 17, 2024
@leeeyubin leeeyubin linked an issue Jul 17, 2024 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT ✨ 새로운 기능 구현 석준💜 석준
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 캘린더 뷰 / 스크랩 목록 서버 통신 구현
4 participants