-
Notifications
You must be signed in to change notification settings - Fork 1
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/tgyuu/#69 #73
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณ ์ํ์ด์ ํ๊ท์ !!
์ ๋ ๋นํ๊ธฐ ๊ธฐ๋ค๋ฆฌ๋ฉด์ ์ด์ง ์ฟต ๋ฆฌ๋ทฐ ๋จ๊ฒจ๋ดค์ต๋๋ค ํํ
์์ผ๋ก ์ด์ฌํ ์ํผ ์ผ๋ผ์ฐจ์ฐจ์ ๋๋ค. ~!
title = eventTitle, | ||
content = eventContent, | ||
location = eventLocation, | ||
startDateTime = eventStartDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํด๋น ๋ก์ง์ผ๋ก, data ๋ชจ๋์์๋ 3๋ฒ ํฌ๋งทํ ์ฌ์ฉ๋์ด์
network์ฒ๋ผ ์ ํธ๋ก ๋นผ๋ฒ๋ฆฌ๋๊ฒ ์ด๋จ๊น์ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DateUtil ๋ก ๋นผ๋๊ฒ ์ต๋๋ค!
firebaseFirestore.collection(EVENT_COLLECTION) | ||
.document(getMonth(date)) | ||
.document(getMonth(startDateTime.toISOLocalDateTime().toLocalDate())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํด๋น ์ฝ๋ ๊ดํธ๋๋ฌธ์ ์์๋ณด๊ธฐ ์ฝ์ง ์์๋ฐ, startDateTime ~ toLocalDate ๊น์ง ๋ณ์๋ก ๋นผ๋ฒ๋ฆฌ๋ ๊ฑด ์ด๋์ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์์ฃผ ์ข์ ์๊ฐ์ ๋๋ค ์งํธ์. ์์ ํด๋์๊ฒ์!
suspend fun isSubmittedSurvey( | ||
eventId: String, | ||
userId: String, | ||
): Result<Boolean> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด์ ๋ถํฐ ๊ฐํ์ ๊ณ์ ํ์๋๋ฐ,
๋ฐ๋ก ๊ฐํํ์๋ ์ด์ ๊ฐ ์์๊น์??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๊ฐํ ๋ฌด์กฐ๊ฑด ํด์ผํ๋ ๊ฑด ์ค ์์์ด์........... ์ปจ๋ฒค์ ์ฝ์ด๋ณด๊ณ ์ค๊ฒ ์ต๋๋ค ใ ใ ใ ใ ใ ใ ํใ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๏ฟฝํํ ํ๊ท์ ํท๊ฐ๋ฆฌ๊ฒ ์ ๊ฐ ์ ์ด๋จ๋ค์ ํํํํ
๊ทผ๋ฐ ์คํ๋ ค ๊ฐํํ๋ฉด, ๋งค๊ฐ๋ณ์ ์ธ์์ ๋ ์๋์ ์คํ๋ ค ๊ตฟ์ ๋๋ค ํํ
import com.wap.designsystem.WappTheme | ||
|
||
@Composable | ||
internal fun RegistrationTextField( | ||
value: String, | ||
onValueChange: (String) -> Unit, | ||
modifier: Modifier = Modifier, | ||
textAlign: TextAlign? = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ฐ๋ก NullableType์ผ๋ก ์ง์ ํ์ ์ด์ ๊ฐ ์์๊น์ ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณ ์ด์ ๋ ๋ฐ๋ก TextStyle
์ TextAlign
์ ๊ธฐ๋ณธ ๊ฐ์ด null์ด๊ธฐ ๋๋ฌธ์
๋๋ค!
์๋ฌด๊ฒ๋ ๋ฃ์ด์ฃผ์ง ์์ ๊ฒฝ์ฐ ์ผ๋ฐ ๊ธฐ๋ณธ๊ฐ์ผ๋ก ๋ค์ด๊ฐ๊ฒ ํ์ด์...!
} | ||
|
||
@Composable | ||
private fun DayOfWeek(modifier: Modifier = Modifier) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ผ๋ฐ์ ์ธ DayOfWeek์ ์ปดํฌ๋ํธ ๋ค์ด๋ฐ๋ ๋ค์ด๊ฐ๋ฉด ์ข์ ๊ฒ ๊ฐ์์ !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ปดํฌ๋ํธ ๋ค์ด๋ฐ์ด๋ผ ํ๋ฉด ์ด๋ค ๊ฒ์ด ์์๊น์..?
์ฌ์ค ์ด๊ฑฐ ๋ค์ด๋ฐ ํ๊ธฐ ๋๋ฌด ์ ๋งคํด์ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ์ถ์ฒ ๋ฐ์ต๋๋ค,...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GPT ์ ์๋์ ๋์์ ๋ฐ์ CalendarWeekDays
๋ก ๋ช
๋ช
ํ์ต๋๋ค!
} | ||
|
||
@Composable | ||
private fun CalendarMonthItem( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํ๊ท์ ํด๋น ๋ก์ง ์ผ๋ถ ์ฃผ์ ์ฒ๋ฆฌ ๊ฐ๋ฅํ๊ฐ์ ??
๋ก์ง์ด ๋ง๊ณ ๋ณต์กํ ๋ถ๋ถ์ ์ฃผ์์ด ์์ผ๋ฉด ์ดํดํ๊ธฐ ํจ์ฌ ๋ ์ข์๊บผ ๊ฐ์์
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์กฐ์ค์ฟ์ต๋๋ค. ๋ฌ๋ ฅ ๋ถ๋ถ ์ผ๋ถ ์ฃผ์ ์ฒ๋ฆฌ ํด๋์๊ฒ์!
periodSelectorUnselectedContentColor = WappTheme.colors.gray95, | ||
periodSelectorSelectedContainerColor = WappTheme.colors.yellow34, | ||
periodSelectorUnselectedContainerColor = WappTheme.colors.black25, | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ใทใทใทใทใทใทใทใทใทใท ์ปฌ๋ฌ ๋ค ์ฐ์ด๋ณด์๋ฉด์ ๊ตฌํํด๋ณด์ จ๊ฒ ๋ค์
๊ณ ์ํ์ จ์ด์ !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๋ ธ๋ ฅ์ ์์์ฃผ์๋ ๊ฐ๊ฐ๋ฌด๋ํ ๋ฐ๋ฆ์ ๋๋ค.
modifier = Modifier.padding(top = 30.dp), | ||
DeadlineCard( | ||
title = stringResource(R.string.start_date), | ||
hint = startDate.format(DateTimeFormatter.ofPattern("yyyy.MM.dd")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด๊ฑฐ ๋ฐ๋ก ์ ํธ์ ๊ตฌํ๋์ด ์์ง ์๋์ ??
DateTimeFormatter.ofPattern("yyyy.MM.dd")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํ ๋ง์ต๋๋ค. ์งํธ์ ์ฝ๋๋ฅผ ๋ณต๋ถํ๋ ๊ฒ ๊ฐ์๋ฐ......
๋ค ์์ ํด๋๊ฒ ์๋๋ค!
modifier = Modifier.fillMaxWidth(), | ||
DeadlineCard( | ||
title = stringResource(R.string.end_time), | ||
hint = endTime.format(DateTimeFormatter.ofPattern("HH.mm")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํด๋น๋ ์ ์ฌํ๊ฒ ์ปค๋จผ ๋ชจ๋์ ๊ตฌํํ์๋ฉด ๋ ๊ฒ ๊ฐ์์ !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๋ฃํ์๋๋ค!
eventStartTime = _eventStartTime.value, | ||
eventEndDate = _eventEndDate.value, | ||
eventEndTime = _eventEndTime.value, | ||
).fold( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ฐํ ๊ฐ์ ๋ฐ๋ก ์๋ฐ๊ณ ์์ด์, fold๋ฅผ ์ฌ์ฉํ์๋ ๊ฒ ๋ณด๋ค
onSuccess, onFailure ์ฌ์ฉํ์๋ ๊ฑด ์ด๋์ ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฌ์ค ์ด fold๋ onSuccess, onFailure ๋ฐ๋ก ์ฐ๋ ๊ฒ์ ์ฐจ์ด์ ์ ์ ๋ชจ๋ฅด๊ณ ์์๋๋ฐ์,
ํ ๋ฒ ์ฐพ์๋ณด๊ฒ ์๋๋ค.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fold
๊ฐ๋จํ ๋ถ๊ธฐ์ฒ๋ฆฌ๋ง ์ฒ๋ฆฌํด์ค ๋์๋ onSuccess, onFailure๋ฅผ ์ฌ์ฉํ๋๊ตฐ์!
๊ตฟ์ ๋๋ค. ์์ ํด๋์๊ฒ์..!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ผ๋ผ์ฐจ์ฐจ์ฐจ์ฐจ์ด์ฐจ์ดค์ดค์ดค
1. ๐ ๊ด๋ จ๋ ์ด์ ๋ฐ ์๊ฐ
closed #69
2. ๐ฅ๋ณ๊ฒฝ๋ ์
-DatePickerDialog ์ปค์คํ
-TimePickerDialog ์ปค์คํ
-์ผ์ ๋ฑ๋ก ๋ก์ง์ Validation ๊ธฐ๋ฅ ์ถ๊ฐ
-์ค๋ฌธ ํ์ด์ง UI ๊ฐ์ (๋ง์ง ๊ฐ, ์ ๋ ฌ ๋ฑ)
-์ค๋ฌธ ๋ฑ๋ก UI ๊ฐ์ (๋ง์ง ๊ฐ, ์ ๋ ฌ, Card Radius ๋ฑ)
-์ผ์ DB์ eventId Docoument ID๋ก ๋๋ค์์ฑ๋๋ String ๊ฐ์ผ๋ก ๋ณ๊ฒฝ
-์์ ๋ ์ง, ์ข ๋ฃ ๋ ์ง๋ฅผ ๋ฐ๋๋ก ๋ณ๊ฒฝ
3. ๐ธ ์คํฌ๋ฆฐ์ท(์ ํ)
-์ผ์ , ์๊ฐ ์ค์ Dialog ์ปค์คํ
- ์ผ์ ๋ฑ๋ก ๋ก์ง์ Validation ๊ธฐ๋ฅ ์ถ๊ฐ
- ์ค๋ฌธ ์กฐ์ฌ, ์ค๋ฌธ ๋ฑ๋ก ํ์ด์ง UI ๊ฐ์
ํผ๊ทธ๋ง์ ์๋ UI๋ ๋ง์ง ๊ฐ์ด๋ Card Radius ์ ๋ง๋ ๋ถ๋ถ์ด ๋ง์์ ์กฐ๊ธ ์๋ดค์ต๋๋ฅ.
-์ผ์ DB์ eventId Docoument ID๋ก ๋๋ค์์ฑ๋๋ String ๊ฐ์ผ๋ก ๋ณ๊ฒฝ
์ด๊ฑฐ ๋์ eventID Int์๋๊ฒ String์ผ๋ก ๋ฐ๊ฟ์ ธ์ ๋๊ท๋ชจ ์์ ์ข ํ์ต๋๋ค.
SurveyForm์ด๋ Survey Entity์ ์๋ eventID๋ ๋ค ๊ฐฑ์ ํด์ฃผ์์ต๋๋ค.
-์์ ๋ ์ง, ์ข ๋ฃ ๋ ์ง๋ฅผ ๋ฐ๋๋ก ๋ณ๊ฒฝ
4. ๐ก์๊ฒ๋ ํน์ ๊ถ๊ธํ ์ฌํญ๋ค
- Compose์์ SnackBar ๋ฐ์ฐ๋ ๋ฐฉ๋ฒ
https://kotlinworld.com/206