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

๐Ÿ”€ :: (#294) - Use UiState To Certification Module #295

Merged
merged 149 commits into from
Nov 30, 2024

Conversation

audgns10
Copy link
Member

@audgns10 audgns10 commented Sep 9, 2024

๐Ÿ’ก ๊ฐœ์š”

  • Certification ๋ชจ๋“ˆ์—์„œ UiState๋กœ ๊ด€๋ฆฌ๋ฅผ ํ•˜๋Š” ๊ฒƒ์ด ํ”„๋กœ์ ํŠธ ์ƒ์—์„œ ๋” ์•ˆ์ •์ ์œผ๋กœ ๋ณด์—ฌ UiState๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก Migration์„ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ“ƒ ์ž‘์—…๋‚ด์šฉ

  • Certification ๋ชจ๋“ˆ์„ UiState๋กœ Migration ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
    • asResult() ํ•จ์ˆ˜๋ฅผ ์ •์˜ํ•˜์—ฌ viewModel์—์„œ UiState์˜ ์ƒํƒœ๋ฅผ ๊ด€๋ฆฌํ•˜๊ธฐ ๋” ์‰ฝ๋„๋ก ํ•˜์˜€์Šต๋‹ˆ๋‹ค
    • ๋ถˆํ•„์š”ํ•œ suspend ํ‚ค์›Œ๋“œ๋ฅผ ์‚ญ์ œํ•˜์˜€์Šต๋‹ˆ๋‹ค. / Flow๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ๋ณ€๊ฒฝํ•˜์˜€์Šต๋‹ˆ๋‹ค.(UseCase)
    • UiState๋ฅผ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. -> ์ด๋ฅผ viewModel์— ์ ์šฉ -> viewModel ์ ์šฉ ์ดํ›„ Screen์— ์ ์šฉ
    • ๋ถˆํ•„์š”ํ•œ ์ฝ”๋“œ๋ฅผ ์‚ญ์ œํ•˜์˜€์Šต๋‹ˆ๋‹ค.

๐Ÿ”€ ๋ณ€๊ฒฝ์‚ฌํ•ญ

  • add result.kt - asResult()
  • refactor GetCertificationListUseCase
  • refactor WriteCertificationUseCase
  • refactor EditCertificationUseCase
  • refactor GetStudentBelongClubUseCase
  • refactor GetLectureSignUpHistoryUseCase
  • add EditCertificationUiState
  • add GetCertificationListUiState
  • add GetLectureSignUpHistoryUiState
  • add GetStudentBelongClubDetailUiState
  • add WriteCertificationUiState
  • refactor CertificationViewModel
  • refactor AddCertificationScreen
  • refactor CertificationScreen

๐Ÿ™‹โ€โ™‚๏ธ ์งˆ๋ฌธ์‚ฌํ•ญ

  • ์—”์ง€๋ฝ์ด ์ฃฝ์€ ๊ฒƒ ๊ฐ™์•„ ํ…Œ์ŠคํŠธ๋Š” ๋ชปํ•ด๋ดค์ง€๋งŒ ๋‹ค์‹œ ์‚ด์•„๋‚˜๋ฉด ํ…Œ์ŠคํŠธ ํ›„ ๋จธ์ง€ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์ผ๋‹จ pr ์˜ฌ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.

๐Ÿด ์‚ฌ์šฉ๋ฐฉ๋ฒ•

  • x

๐ŸŽธ ๊ธฐํƒ€

  • x

@audgns10 audgns10 merged commit 7c44705 into develop Nov 30, 2024
1 check passed
@audgns10 audgns10 deleted the refactor/294-use-uistate-to-certification-module branch November 30, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2๏ธโƒฃ Priority: Medium ์šฐ์„ ์ˆœ์œ„ - ์ค‘ โ™ป๏ธ Refactor ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง
Projects
None yet
6 participants