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] 이용예정/완료 뷰 구현 #12

Merged
merged 6 commits into from
Nov 27, 2023
Merged

Conversation

HAJIEUN02
Copy link
Contributor

Work Description ✏️

Screenshot 📸

Uncompleted Tasks 😅

To Reviewers 📢

  • 아 할게넘많아 뿌에엥엥에엥엥

@jihyunniiii
Copy link
Contributor

Assignees랑 라벨 등등 설정해줍시다

Copy link
Contributor

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

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

고생해따 잘해따!
코드정렬 전체적으로 한 번 씩 해주시고 아래 사항들 신경써서 작업하면 좋을 것 같아오 !!

  1. 마진, 패딩 값은 최대한 작은 값으로 -> 근처에 있는 컴포넌트에 제약을 주자 !
  2. 스트링 추출은 꼭 필요한 경우에만 -> 서버에서 불러오는 값을 입력해줘야하는 등 값이 계속 변경되는 텍스트의 경우에는 tools를 활용해서 미리보기를 하자 !
  3. 고정 높이, 너비 값을 주는 건 좋지 않움 ! 불가피한 상황이 아니라면 wrap_content, match_parent, 0dp를 사용하자
  4. 코드정렬, 불필요한 임포트 제거는 필수!!!

app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
import org.sopt.tabling.databinding.FragmentQueueCancelBinding


class QueueCancelFragment : Fragment() {
Copy link
Contributor

Choose a reason for hiding this comment

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

BindingFragment 사용해줍시당

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BindingFragment 사용해줍시당

잘,, 모르게쑵니다 넘 바빠서ㅜㅜㅜㅜ 학교 프젝 끝나구 찬찬히 공부해바도 될까여 엉엉😱😱😱

Copy link
Contributor

Choose a reason for hiding this comment

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

그럽시당 !!

import org.sopt.tabling.databinding.FragmentQueueReservationBinding
import org.sopt.tabling.presentation.common.ReservationViewModel

class QueueReservationFragment : Fragment() {
Copy link
Contributor

Choose a reason for hiding this comment

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

여기두요 !!


fun setReservationList(mockReservationList: List<ReservationItem>) {
reservationList = mockReservationList
notifyDataSetChanged()
Copy link
Contributor

Choose a reason for hiding this comment

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

지은이두 !! 합세 끝나고 나중에라두 diffutil이랑 listAdapter 공부해보고 적용해보깅 !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

지은이두 !! 합세 끝나고 나중에라두 diffutil이랑 listAdapter 공부해보고 적용해보깅 !

넵!@!@@!첨 들어보는 군여.... 앱잼 전에 공부 마니마니 해야겟다

app/src/main/res/layout/reservation_item.xml Outdated Show resolved Hide resolved
app/src/main/res/layout/reservation_item.xml Outdated Show resolved Hide resolved
app/src/main/res/layout/reservation_item.xml Outdated Show resolved Hide resolved
app/src/main/res/layout/reservation_item_done.xml Outdated Show resolved Hide resolved
app/src/main/res/values/strings.xml Show resolved Hide resolved
@jihyunniiii
Copy link
Contributor

민우오빠가 머지한 거 있어서 디벨롭 업데이트 하구 merge develop into feat_queue_details 해야할 것 같네옹 !!

Copy link
Member

@Doreminwoo Doreminwoo left a comment

Choose a reason for hiding this comment

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

너무 고생하셨습니다!!
지현님이 꼼꼼이 코드리뷰해주셔서 할게 없네요 호호

private var reservationList: List<ReservationItem> = emptyList()
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder {
return when (viewType) {
1 -> ReservationViewHolder(
Copy link
Member

Choose a reason for hiding this comment

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

상수 const로 빼주면 가독석 좋을 것 같아요

Comment on lines 109 to 128
<TextView
android:id="@+id/tv_waiting"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="23dp"
android:layout_marginTop="108dp"
android:text="@string/queue_tv_waiting"
android:textAppearance="@style/TextAppearance.H0"
android:textColor="@color/primary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/tv_waiting_num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="108dp"
android:text="@string/queue_tv_waiting_num"
android:textAppearance="@style/TextAppearance.H0"
android:textColor="@color/primary"
Copy link
Member

Choose a reason for hiding this comment

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

데이터바인딩 사용하지 않아도 %d로 가능한가요?

# Conflicts:
#	app/src/main/AndroidManifest.xml
#	app/src/main/res/values/strings.xml
@HAJIEUN02 HAJIEUN02 merged commit 7de5240 into develop Nov 27, 2023
1 check failed
@Doreminwoo Doreminwoo deleted the feat-queue-details branch December 26, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[feat] 이용예정/완료 뷰 구현
3 participants