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

[후원사] 2024 후원사 데이터 반영 #277

Merged
merged 6 commits into from
Apr 24, 2024
Merged

Conversation

KimReady
Copy link
Contributor

@KimReady KimReady commented Apr 22, 2024

Issue

Overview (Required)

  • 2024 후원사 데이터에 맞게 최신화 해요.
  • 실버 등급 후원사를 추가했어요.
  • 작은 개선으로, 후원사 등급에 변경이 생기더라도 후원사 목록 보여주는 UI 코드를 변경하지 않아도 되게끔 수정했어요.

@KimReady KimReady self-assigned this Apr 22, 2024
Copy link

github-actions bot commented Apr 22, 2024

Test Results

18 tests   18 ✅  5s ⏱️
11 suites   0 💤
11 files     0 ❌

Results for commit 77e20c5.

♻️ This comment has been updated with latest results.

Comment on lines +93 to +107
sponsors
.groupBy { it.grade }
.toSortedMap(compareBy { it.priority })
.values
.forEachIndexed { index, groupedSponsorsByGrade ->
SponsorGroupRow(
modifier = Modifier
.wrapContentWidth()
.padding(
start = if (index % 2 == 0) 0.dp else 36.dp,
end = if (index % 2 == 0) 36.dp else 0.dp,
),
sponsors = groupedSponsorsByGrade
)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

UI 에서는 후원사 등급을 몰라도 되도록 수정했어요.

.groupBy { it.grade }
.toSortedMap(compareBy { it.priority })
.values
.forEachIndexed { index, groupedSponsorsByGrade ->
Copy link
Member

Choose a reason for hiding this comment

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

이렇게하면 리컴포지션 탈때마다 새로운 리스트를 다시 계산하게됩니다.
ViewModel에서 처리하도록 변경해주세요.
View에는 최종 데이터만 있으면 됩니다.

@taehwandev
Copy link
Member

머지합니다.

@taehwandev taehwandev merged commit 9d209c6 into main Apr 24, 2024
2 checks passed
@wisemuji wisemuji deleted the 2024/feature/sponsor branch May 8, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[후원사] 2024 후원사 데이터 반영
2 participants