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

Feature/jaino/#85 #103

Merged
merged 14 commits into from
Jan 13, 2024
Merged

Feature/jaino/#85 #103

merged 14 commits into from
Jan 13, 2024

Conversation

jeongjaino
Copy link
Member

@jeongjaino jeongjaino commented Jan 13, 2024

1. ๐Ÿ“„ ๊ด€๋ จ๋œ ์ด์Šˆ ๋ฐ ์†Œ๊ฐœ

#85 ์„ค๋ฌธํƒญ์—์„œ ์ž‘์„ฑ๋œ ์„ค๋ฌธ ์—ด๋žŒ ๊ธฐ๋Šฅ ๊ตฌํ˜„

2. ๐Ÿ”ฅ๋ณ€๊ฒฝ๋œ ์ 

๊ธฐ์กด ๊ด€๋ฆฌํƒญ์—์„œ ์„ค๋ฌธ ํ™•์ธ -> ์„ค๋ฌธํƒญ์—์„œ ์„ค๋ฌธ ํ™•์ธ๋˜๋„๋ก ์ˆ˜์ •

์ž‘์„ฑ๋œ ์„ค๋ฌธ ๋ฆฌ์ŠคํŠธ ํ™”๋ฉด ๊ตฌํ˜„,

์„ค๋ฌธํƒญ -> ์ž‘์„ฑ๋œ ์„ค๋ฌธ ๋ชฉ๋ก -> ์ž์„ธํ•œ ์„ค๋ฌธ ๋‚ด์šฉ ํ™•์ธ ์œผ๋กœ ๊ตฌ์„ฑ

survey -> survey-check -> survey-detail

๊ธฐ์กด survey-check ๋„ค์ด๋ฐ์ด -> survey-detail๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค
survey-check ๋„ค์ด๋ฐ์€ ์„ค๋ฌธ ๋ชฉ๋ก ํ™”๋ฉด์œผ๋กœ ๊ตฌ์„ฑํ•˜์˜€์Šต๋‹ˆ๋‹ค.

3. ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท(์„ ํƒ)

Pasted Graphic (ํšŒ์›์ธ ๊ฒฝ์šฐ ) Pasted Graphic 1 (์šด์˜์ง„) แ„‰แ…ฅแ†ฏแ„†แ…ฎแ†ซ แ„’แ…ชแ†จแ„‹แ…ตแ†ซ (์„ค๋ฌธ ๋ชฉ๋กํ™”๋ฉด) Pasted Graphic 3 (์„ค๋ฌธ ํ™•์ธ ํ™”๋ฉด)

4. ๐Ÿ’ก์•Œ๊ฒŒ๋œ ํ˜น์€ ๊ถ๊ธˆํ•œ ์‚ฌํ•ญ๋“ค

์ถ”ํ›„ ๊ตฌํ˜„์‚ฌํ•ญ

  • ์„ค๋ฌธ ๋ชฉ๋ก ์ •๋ ฌ ๊ธฐ๋Šฅ (์„ค๋ฌธ์— ๋”ฐ๋ผ, ์‹œ๊ฐ„์— ๋”ฐ๋ผ )
  • ํ˜„์žฌ ์ด๋ฒคํŠธ๊ฐ€ ๋”๋ฏธ๋ฐ์ดํ„ฐ๋กœ ๋งคํ•‘๋˜์–ด ์žˆ์Œ. -> ์ด๋ฒคํŠธ์กฐํšŒ ๋กœ์ง๊ตฌํ˜„๋˜๋ฉด ๊ทธ์—๋”ฐ๋ผ ๋”๋ฏธ -> ์‹ค ๋ฐ์ดํ„ฐ๋กœ ๋ณ€๊ฒฝ

@jeongjaino jeongjaino added ๐Ÿš€์ง„ํ˜ธ๐Ÿš€ ESTP ์ •์ง„ํ˜ธ 23์„ธ ๐ŸŒฑ๊ธฐ๋Šฅ๐ŸŒฑ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๋‘๋‘๋‘ฅ์žฅ! ๐Ÿ”ฅ๋ฆฌ๋ทฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ค‘๐Ÿ”ฅ PR์„ ์˜ฌ๋ฆฌ๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค. labels Jan 13, 2024
@jeongjaino jeongjaino self-assigned this Jan 13, 2024
Copy link
Member

@tgyuuAn tgyuuAn left a comment

Choose a reason for hiding this comment

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

์ง„ํ˜ธ์ƒ ์•ฝ๊ฐ„์˜ ์ž”์ž”๋ฐ”๋ฆฌ๋“ค ์ฝ”๋ฉ˜ํŠธ ๋‚จ๊ฒจ๋ดค์Šต๋‹ˆ๋‹ค.!!

ํฌ๊ฒŒ ๊ณ ์ณ์•ผํ•  ์ ์€ ์—†๋„ค์š” ์•„์ฃผ ๋‚˜์ด์“ฐ์ž…๋‹ˆ๋‹ค!

) {
val surveyUiState by viewModel.surveyUiState.collectAsStateWithLifecycle()
val surveyListUiState = viewModel.surveyListUiState.collectAsStateWithLifecycle().value
Copy link
Member

Choose a reason for hiding this comment

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

์ง„ํ˜ธ์ƒ ์—ฌ๊ธฐ by๋ฅผ ์†Œ๊ฑฐํ•˜๊ณ  ๋‹ค์‹œ value๋ฅผ ๋ถ™์ธ ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”?!

Copy link
Member Author

@jeongjaino jeongjaino Jan 13, 2024

Choose a reason for hiding this comment

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

์ด๊ฒŒ ํŒŒ์ผ ์ด๋ฆ„์„ ๋ณ€๊ฒฝํ•˜๊ณ , ์ƒˆ๋กœ์šด ํŒŒ์ผ์„ ์ด์ „ ํŒŒ์ผ ์ด๋ฆ„์œผ๋กœ ๋ณ€๊ฒฝํ–ˆ๋”๋‹ˆ,

์ƒˆ๋กœ ์ถ”๊ฐ€๋œ ๋‚ด์šฉ์ธ๋ฐ, ๋ณ€๊ฒฝ์‚ฌํ•ญ์œผ๋กœ ๋‚˜์˜ค๋Š”๊ตฐ์š” ์บฌ์บฌ ,,

๋”ฐ๋กœ ์†Œ๊ฑฐํ•œ๊ฒŒ ์•„๋‹ˆ๋ผ, ์ƒˆ๋กœ ๊ตฌํ˜„ํ•œ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค ์บฌ์บฌ,,, ํ•˜ํ•˜ํ•˜ํ•˜ํ•˜ํ•˜

Copy link
Member

Choose a reason for hiding this comment

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

@jeongjaino

์•„ํ•˜ ๊ทธ๋Ÿฐ๊ฑฐ๋ผ๋ฉด value๋ฅผ ์†Œ๊ฑฐํ•˜๊ณ  by๋งŒ ๋ถ™์—ฌ์ค˜๋„ ๋  ๊ฒƒ ๊ฐ™์•„์š”!

}
.onFailure { throwable ->
_surveyCheckUiEvent.emit(SurveyUiEvent.Failure(throwable))
_errorFlow.emit(throwable)
}
Copy link
Member

Choose a reason for hiding this comment

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

์Šค์ฝ”ํ”„ ํ•˜๋‚˜ ์ œ๊ฑฐํ•  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์•„์š”.

getSurveyListUseCase().onSuccess { surveyList ->   // <- ์š”์ชฝ
    _surveyListUiState.value = SurveyListUiState.Success(surveyList)
}

ํ•˜๋ฉด ๊ฐœํ–‰ํ•ด์•ผํ•˜๋Š” ๋„ˆ๋น„์ธ๊ฐ€์š”?!

Copy link
Member Author

Choose a reason for hiding this comment

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

ํ˜น์‹œ ์–ด๋–ค ์Šค์ฝ”ํ”„ ๋ง์”€ํ•˜์‹ ๊ฑด๊ฐ€์š” ,, ?

onSuccess ๊ฐœํ–‰ ๋ง์”€ํ•˜์‹ ๊ฑด๊ฐ€์š” ??

Copy link
Member

Choose a reason for hiding this comment

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

image

์ปจ๋ฒค์…˜์— ๋ฉ”์†Œ๋“œ ์ฒด์ด๋‹์‹œ, ์ฒซ ์ค„์€ ๋ถ™์–ด์žˆ๊ธธ๋ž˜ ์ฝ”๋ฉ˜ํŠธ ๋‹ฌ์•„๋ดค์”๋‹ˆ๋‹ค...!

Copy link
Member Author

Choose a reason for hiding this comment

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

์บฌ์บฌ ํ•ด๋‹น ์ปจ๋ฒค์…˜์— ์ฝ”๋“œ์—๋Š” ์ด์–ด์ ธ ์žˆ๊ธดํ•œ๋ฐ,

์‚ฌ์‹ค ํฐ ์˜๋ฏธ๋Š” ๊ฐœํ–‰์ด ํ•„์š”ํ•œ ๊ฒฝ์šฐ, ๋ฌด์กฐ๊ฑด ํ•œ์ค„์— ํ•œ ์ฒด์ธ๋งŒ ์„ค์ •ํ•˜๋„๋ก ํ•˜๋Š”๊ฒŒ ์ฃผ ์˜๋ฏธ๋ผ๊ณ  ์ƒ๊ฐํ•ด์š”

๊ฐœ์ธ์ ์œผ๋กœ ๋ฐ”๋กœ onSuccess๋ฅผ ๋ถ™์ด๋Š”๊ฒŒ ๊ฐ€๋…์„ฑ๋„ ์ข‹์ง€์•Š๊ณ ,
onFailure๋ž‘ ๋„ˆ๋ฌด ๋–จ์–ด์ง„ ๋Š๋‚Œ์ด ๋“ค์–ด์„œ ๊ฐœ์ธ์ ์œผ๋กœ ๋ฌด์กฐ๊ฑด ๋‹ค์Œ์ค„๋ถ€ํ„ฐ ๊ฐœํ–‰ํ•˜๋Š”๊ฑธ ์ข‹์•„ํ•ด์š” ...

Copy link
Member

Choose a reason for hiding this comment

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

@jeongjaino

์•„ํ•˜ ์ € ๋ถ€๋ถ„์— ๋Œ€ํ•ด์„œ๋Š” ๊ตณ์ด ์ฒ ์ €ํžˆ ์ง€ํ‚ค์ง€ ์•Š์•„๋„ ๋˜๋Š” ์ปจ๋ฒค์…˜์ผ๊นŒ์š” ?.?

์‚ฌ์‹ค ์ง€๊ธˆ๋„ ์„ž์—ฌ์žˆ๊ธด ํ•ด์„œ

Copy link
Member Author

@jeongjaino jeongjaino Jan 13, 2024

Choose a reason for hiding this comment

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

์ €๋Š” ์ € ์ปจ๋ฒค์…˜์„ ์•Œ๊ณ  ์“ฐ๊ณ  ์žˆ๊ณ , ์–ด๊ธด ์‚ฌ๋ก€๋Š” ์ œ๊ฐ€ ์ƒ๊ฐ๋‚˜๋Š” ๊ฒƒ์ค‘์—๋Š” ์—†์–ด์š” !

ํ•ด๋‹น ์ปจ๋ฒค์…˜์ด ๋ง ๊ทธ๋Œ€๋กœ ์ฒด์ด๋‹์„ ํ• ๋–„ ํ•œ ์ค„๋กœ ์•ˆ๋˜๋ฉด ๋ฌด์กฐ๊ฑด ๊ฐœํ–‰ํ•˜๋ผ. ๊ฐ€ ์ฃผ ๋ชฉ์ ์ด๋ผ

useCase().onSuceess()
.onFailure().onRestore() -> ์ด๋ ‡๊ฒŒ ํ•˜๋Š”๊ฒŒ ์•ˆ๋˜๋Š”๋ถ€๋ถ„์ด๊ณ 

useCase()
.onSuccess()
.onFailure() -> ์ด๊ฑด ๊ฐ€๋Šฅํ•ด์š”

Comment on lines +35 to +43
LaunchedEffect(true) {
viewModel.getSurvey(surveyId)
}

LaunchedEffect(true) {
viewModel.errorFlow.collectLatest {
snackBarHostState.showSnackbar(it.toSupportingText())
}
}
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

@jeongjaino jeongjaino Jan 13, 2024

Choose a reason for hiding this comment

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

๋‹จ์ˆœํžˆ ๋กœ์ง ๋ทฐ๋ชจ๋ธ ํ˜ธ์ถœ ๋กœ์ง ๋ถ„๋ฆฌ ๋•Œ๋ฌธ์— ๋‚˜๋’€์–ด์š” !

ํ‚ค ๊ฐ’์ด ์„œ๋กœ true๋ผ ์„œ๋กœ ๊ฐ™์€ ์Šค์ฝ”ํ”„์— ๋‚˜๋‘ฌ๋„ ์ฐจ์ด๋Š” ์—†์„ ๊ฒƒ ๊ฐ™์•„์š” !

Comment on lines 81 to 89
Text(
text = "์ž‘์„ฑ๋œ ์„ค๋ฌธ ๋ณด๋Ÿฌ๊ฐ€๊ธฐ",
style = WappTheme.typography.contentRegular,
)

Icon(
painter = painterResource(id = R.drawable.ic_magnifier),
contentDescription = "์ž‘์„ฑ๋œ ์„ค๋ฌธ ๋ณด๋Ÿฌ๊ฐ€๊ธฐ ์•„์ด์ฝ˜",
)
Copy link
Member

Choose a reason for hiding this comment

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

์ด ๋ถ€๋ถ„ ๊ท€์ฐฎ๋”๋ผ๋„ Strings.xml๋กœ ๋นผ์ฃผ์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”!

Copy link
Member Author

Choose a reason for hiding this comment

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

ํ˜ธ์šฐ ์žˆ๋Š”์ง€๋„ ๋ชฐ๋ž๋„ค์š” ์บฌ์บฌ ๋ฐ”๋กœ ์†Œ๊ฑฐํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค !

Comment on lines 1 to 3

package com.wap.wapp.feature.survey

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.

์˜ค์šฐ์˜ˆ~~ ๋งค์˜๋ˆˆ ํ‹ฐ์ง€์™€์ด์œ ์œ 

Comment on lines 69 to 71
UserRole.MEMBER -> {
viewModel.getSurveyFormList()
}
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.

์ข‹์Šต๋‹ˆ๋‹ค์ž‡~~

@tgyuuAn tgyuuAn added โœ๏ธ์ˆ˜์ • ์š”์ฒญโœ๏ธ ์ฝ”๋“œ ๋ฆฌ๋ทฐํ›„ ์ฝ”๋“œ ์ˆ˜์ • ์š”์ฒญ and removed ๐Ÿ”ฅ๋ฆฌ๋ทฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ค‘๐Ÿ”ฅ PR์„ ์˜ฌ๋ฆฌ๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค. labels Jan 13, 2024
@tgyuuAn tgyuuAn added ๐ŸŒŸ๋จธ์ง€ ํ•ด์ฃผ์„ธ์š”๐ŸŒŸ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๊ฐ€ ์™„๋ฃŒ๋œ ๋’ค PR์„ ์˜ฌ๋ฆฐ์‚ฌ๋žŒ์ด Merge๋ฅผ ํ•˜๋ฉด ๋˜๋Š” ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค. and removed โœ๏ธ์ˆ˜์ • ์š”์ฒญโœ๏ธ ์ฝ”๋“œ ๋ฆฌ๋ทฐํ›„ ์ฝ”๋“œ ์ˆ˜์ • ์š”์ฒญ labels Jan 13, 2024
@jeongjaino jeongjaino merged commit 7024694 into develop Jan 13, 2024
@tgyuuAn tgyuuAn deleted the feature/jaino/#85 branch February 6, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐ŸŒŸ๋จธ์ง€ ํ•ด์ฃผ์„ธ์š”๐ŸŒŸ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๊ฐ€ ์™„๋ฃŒ๋œ ๋’ค PR์„ ์˜ฌ๋ฆฐ์‚ฌ๋žŒ์ด Merge๋ฅผ ํ•˜๋ฉด ๋˜๋Š” ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค. ๐ŸŒฑ๊ธฐ๋Šฅ๐ŸŒฑ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๋‘๋‘๋‘ฅ์žฅ! ๐Ÿš€์ง„ํ˜ธ๐Ÿš€ ESTP ์ •์ง„ํ˜ธ 23์„ธ
Projects
None yet
2 participants