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

[AN/USER] feat: 학교 상세 페이지 구현 (#697) #722

Merged
merged 24 commits into from
Feb 26, 2024
Merged

Conversation

EmilyCh0
Copy link
Member

📌 관련 이슈

✨ PR 세부 내용

  • 검색 아이콘에 임시로 연결되어 있습니다.
  • FakeSchool 데이터 사용하고 있습니다.

image

@EmilyCh0 EmilyCh0 added AN 안드로이드에 관련된 작업 USER labels Feb 20, 2024
@EmilyCh0 EmilyCh0 self-assigned this Feb 20, 2024
@github-actions github-actions bot requested review from re4rk and SeongHoonC February 20, 2024 10:30
Copy link
Collaborator

@re4rk re4rk left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!
백그라운드 이미지를 40% 어둡게 만들 줘야 할 것같습니다!

import com.festago.festago.domain.repository.SchoolRepository
import javax.inject.Inject

class SchoolDefaultRepository @Inject constructor(
Copy link
Collaborator

Choose a reason for hiding this comment

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

현재 Festival과 Artist는 Fake객체를 반환하는 리포지터리 네이밍은 다음과 같이 구분되어있는데요!
두가지 방법이 있어서 어떤 방식으로 통일할지 생각해보면 좋을 것같습니다!
Fake**Repository

FakeFestivalRepository : FestivalRepository
FestivalDefaultRepository : FestivalRepository

Copy link
Member Author

Choose a reason for hiding this comment

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

Festival, Artist와 동일하게 FakeSchoolRepository로 변경했습니다. API 연동할 때 SchoolDefaultRepository 추가할게요.

Copy link
Member

Choose a reason for hiding this comment

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

Fake**Repository
Default**Repository

로 통일하는게 어떤가요?

FakeFestivalRepository : FestivalRepository
DefaultFestivalRepository : FestivalRepository

본래 Default 보다 인터페이스 네이밍이 더 잘보이게 하려고 앞에 배치한 것 같은데 권장이나 어순을 고려해서 수식어를 앞에 배치하는게 좋다고 생각합니다:)

android:padding="8dp">

<ImageView
android:id="@+id/iv_social_media"
Copy link
Collaborator

Choose a reason for hiding this comment

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

카멜케이스로 변경이 필요할 것같습니다!

import com.festago.festago.presentation.R
import com.festago.festago.presentation.databinding.ViewSocialMediaBinding

class SocialMediaView @JvmOverloads constructor(
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
Member Author

Choose a reason for hiding this comment

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

common 뷰로 두고 같은 뷰 재활용하는 것도 나쁘지 않다고 생각하는데 수정할까요??

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
Member Author

Choose a reason for hiding this comment

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

SocialMediaView 제거하고 아티스트 화면에 있는 뷰 사용하도록 변경했어요


private fun handleSuccess(uiState: SchoolDetailUiState.Success) {
binding.successUiState = uiState
binding.ivSchoolBackground.setColorFilter(Color.parseColor("#66000000"))
Copy link
Member Author

Choose a reason for hiding this comment

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

@re4rk 백그라운드 이미지 40% 어둡게 처리는 이미 적용되어 있습니다! Fake로 넣어둔 구글 이미지가 투명 배경이라서 티가 안나는 거에요..ㅎㅎ

Copy link
Member

@SeongHoonC SeongHoonC left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines +10 to +11
val logoUrl: String,
val backgroundUrl: String,
Copy link
Member

Choose a reason for hiding this comment

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

명세 이름이 변경되면 반영해주세요!

Copy link
Member Author

Choose a reason for hiding this comment

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

API 연동이랑 변경된 명세 반영은 따로 이슈 파서 작업하겠습니다!

@EmilyCh0 EmilyCh0 merged commit e4fa895 into dev Feb 26, 2024
1 check passed
@EmilyCh0 EmilyCh0 deleted the feat/#697 branch February 26, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AN 안드로이드에 관련된 작업 USER
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AN] 학교 상세 화면 작업
3 participants