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/tgyuu/#69 #73

Merged
merged 31 commits into from
Jan 3, 2024
Merged

Feature/tgyuu/#69 #73

merged 31 commits into from
Jan 3, 2024

Conversation

tgyuuAn
Copy link
Member

@tgyuuAn tgyuuAn commented Dec 29, 2023

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

closed #69

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

-DatePickerDialog ์ปค์Šคํ…€

-TimePickerDialog ์ปค์Šคํ…€

-์ผ์ • ๋“ฑ๋ก ๋กœ์ง์— Validation ๊ธฐ๋Šฅ ์ถ”๊ฐ€

-์„ค๋ฌธ ํŽ˜์ด์ง€ UI ๊ฐœ์„  (๋งˆ์ง„ ๊ฐ’, ์ •๋ ฌ ๋“ฑ)

-์„ค๋ฌธ ๋“ฑ๋ก UI ๊ฐœ์„  (๋งˆ์ง„ ๊ฐ’, ์ •๋ ฌ, Card Radius ๋“ฑ)

-์ผ์ • DB์— eventId Docoument ID๋กœ ๋žœ๋ค์ƒ์„ฑ๋˜๋Š” String ๊ฐ’์œผ๋กœ ๋ณ€๊ฒฝ

-์‹œ์ž‘ ๋‚ ์งœ, ์ข…๋ฃŒ ๋‚ ์งœ๋ฅผ ๋ฐ›๋„๋ก ๋ณ€๊ฒฝ

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

-์ผ์ •, ์‹œ๊ฐ„ ์„ค์ • Dialog ์ปค์Šคํ…€

image




- ์ผ์ • ๋“ฑ๋ก ๋กœ์ง์— Validation ๊ธฐ๋Šฅ ์ถ”๊ฐ€

ezgif com-crop (13)




- ์„ค๋ฌธ ์กฐ์‚ฌ, ์„ค๋ฌธ ๋“ฑ๋ก ํŽ˜์ด์ง€ UI ๊ฐœ์„ 

ํ”ผ๊ทธ๋งˆ์— ์žˆ๋Š” UI๋ž‘ ๋งˆ์ง„ ๊ฐ’์ด๋‚˜ Card Radius ์•ˆ ๋งž๋Š” ๋ถ€๋ถ„์ด ๋งž์•„์„œ ์กฐ๊ธˆ ์†๋ดค์Šต๋‹ˆ๋‘ฅ.

ezgif com-crop (14)




-์ผ์ • DB์— eventId Docoument ID๋กœ ๋žœ๋ค์ƒ์„ฑ๋˜๋Š” String ๊ฐ’์œผ๋กœ ๋ณ€๊ฒฝ

image

์ด๊ฑฐ ๋–”์— eventID Int์˜€๋˜๊ฒŒ String์œผ๋กœ ๋ฐ”๊ฟ”์ ธ์„œ ๋Œ€๊ทœ๋ชจ ์ž‘์—… ์ข€ ํ–ˆ์Šต๋‹ˆ๋‹ค.




SurveyForm์ด๋‚˜ Survey Entity์— ์žˆ๋˜ eventID๋„ ๋‹ค ๊ฐฑ์‹  ํ•ด์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค.

image




-์‹œ์ž‘ ๋‚ ์งœ, ์ข…๋ฃŒ ๋‚ ์งœ๋ฅผ ๋ฐ›๋„๋ก ๋ณ€๊ฒฝ

image

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

- Compose์—์„œ SnackBar ๋›ฐ์šฐ๋Š” ๋ฐฉ๋ฒ•

https://kotlinworld.com/206

@tgyuuAn tgyuuAn self-assigned this Dec 29, 2023
@tgyuuAn tgyuuAn added ๐ŸŒฑ๊ธฐ๋Šฅ๐ŸŒฑ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๋‘๋‘๋‘ฅ์žฅ! ๐ŸŽจ์œ ์•„์ด๐ŸŽจ ํ”ผ๊ทธ๋งˆ, ์—‘์„ธ๋ฉœ, ์ปดํฌ์ฆˆ ์œ ์•„์ด/์œ ์—‘์Šค ์ž‘์—… ๐Ÿงฉํƒœ๊ทœ๐Ÿงฉ ENFP ์•ˆํƒœ๊ทœ 24์„ธ ๐Ÿ”ฅ๋ฆฌ๋ทฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ค‘๐Ÿ”ฅ PR์„ ์˜ฌ๋ฆฌ๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค. labels Dec 29, 2023
Copy link
Member

@jeongjaino jeongjaino left a 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),
Copy link
Member

Choose a reason for hiding this comment

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

ํ•ด๋‹น ๋กœ์ง์œผ๋กœ, data ๋ชจ๋“ˆ์—์„œ๋„ 3๋ฒˆ ํฌ๋งทํŒ… ์‚ฌ์šฉ๋˜์–ด์„œ

network์ฒ˜๋Ÿผ ์œ ํ‹ธ๋กœ ๋นผ๋ฒ„๋ฆฌ๋Š”๊ฒŒ ์–ด๋–จ๊นŒ์š” ?

Copy link
Member Author

@tgyuuAn tgyuuAn Jan 2, 2024

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()))
Copy link
Member

Choose a reason for hiding this comment

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

ํ•ด๋‹น ์ฝ”๋“œ ๊ด„ํ˜ธ๋•Œ๋ฌธ์— ์•Œ์•„๋ณด๊ธฐ ์‰ฝ์ง€ ์•Š์€๋ฐ, startDateTime ~ toLocalDate ๊นŒ์ง€ ๋ณ€์ˆ˜๋กœ ๋นผ๋ฒ„๋ฆฌ๋Š” ๊ฑด ์–ด๋•Œ์š” ?

Copy link
Member Author

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>
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.

@jeongjaino

์ „ ๊ฐœํ–‰ ๋ฌด์กฐ๊ฑด ํ•ด์•ผํ•˜๋Š” ๊ฑด ์ค„ ์•Œ์•˜์–ด์š”........... ์ปจ๋ฒค์…˜ ์ฝ์–ด๋ณด๊ณ  ์˜ค๊ฒ ์Šต๋‹ˆ๋‹ค ใ…‹ใ…‹ใ…‹ใ…‹ใ…‹ใ…‹ํใ… 

Copy link
Member Author

@tgyuuAn tgyuuAn Jan 2, 2024

Choose a reason for hiding this comment

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

image

๊ผญ ์•ˆํ•ด๋„ ๋˜๊ณ , ์ค„๋ฐ”๊ฟˆ์ด ํ•„์š”ํ•œ ๊ฒฝ์šฐ์—๋งŒ ์ค„๋ฐ”๊ฟˆ์„ ํ•˜๋Š”๊ตฐ์š”................

๋‹ค์‹œ ์›๋ž˜๋Œ€๋กœ ์ˆ˜์ •ํ•ด๋†จ์Šต๋‹ˆ๋‹ค!

Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

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

๋”ฐ๋กœ NullableType์œผ๋กœ ์ง€์ •ํ•˜์‹  ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š” ??

Copy link
Member Author

@tgyuuAn tgyuuAn Jan 2, 2024

Choose a reason for hiding this comment

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

@jeongjaino

๊ณ  ์ด์œ ๋Š” ๋ฐ”๋กœ TextStyle์˜ TextAlign์˜ ๊ธฐ๋ณธ ๊ฐ’์ด null์ด๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค!

์•„๋ฌด๊ฒƒ๋„ ๋„ฃ์–ด์ฃผ์ง€ ์•Š์„ ๊ฒฝ์šฐ ์ผ๋ฐ˜ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ๋“ค์–ด๊ฐ€๊ฒŒ ํ–ˆ์–ด์š”...!

image

}

@Composable
private fun DayOfWeek(modifier: Modifier = Modifier) {
Copy link
Member

Choose a reason for hiding this comment

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

์ผ๋ฐ˜์ ์ธ DayOfWeek์— ์ปดํฌ๋„ŒํŠธ ๋„ค์ด๋ฐ๋„ ๋“ค์–ด๊ฐ€๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š” !

Copy link
Member Author

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.

GPT ์„ ์ƒ๋‹˜์˜ ๋„์›€์„ ๋ฐ›์•„ CalendarWeekDays๋กœ ๋ช…๋ช…ํ–ˆ์Šต๋‹ˆ๋‹ค!

}

@Composable
private fun CalendarMonthItem(
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.

์กฐ์˜ค์˜ฟ์Šต๋‹ˆ๋‹ค. ๋‹ฌ๋ ฅ ๋ถ€๋ถ„ ์ผ๋ถ€ ์ฃผ์„ ์ฒ˜๋ฆฌ ํ•ด๋†“์„๊ฒŒ์š”!

periodSelectorUnselectedContentColor = WappTheme.colors.gray95,
periodSelectorSelectedContainerColor = WappTheme.colors.yellow34,
periodSelectorUnselectedContainerColor = WappTheme.colors.black25,
),
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.

์ œ ๋…ธ๋ ฅ์„ ์•Œ์•„์ฃผ์‹œ๋‹ˆ ๊ฐ๊ฐœ๋ฌด๋Ÿ‰ํ•  ๋”ฐ๋ฆ„์ž…๋‹ˆ๋‹ค.

modifier = Modifier.padding(top = 30.dp),
DeadlineCard(
title = stringResource(R.string.start_date),
hint = startDate.format(DateTimeFormatter.ofPattern("yyyy.MM.dd")),
Copy link
Member

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")

Copy link
Member Author

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")),
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.

์™„๋ฃŒํ–ˆ์”๋‹ˆ๋‹ค!

eventStartTime = _eventStartTime.value,
eventEndDate = _eventEndDate.value,
eventEndTime = _eventEndTime.value,
).fold(
Copy link
Member

Choose a reason for hiding this comment

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

๋ฐ˜ํ™˜ ๊ฐ’์„ ๋”ฐ๋กœ ์•ˆ๋ฐ›๊ณ  ์žˆ์–ด์„œ, fold๋ฅผ ์‚ฌ์šฉํ•˜์‹œ๋Š” ๊ฒƒ ๋ณด๋‹ค

onSuccess, onFailure ์‚ฌ์šฉํ•˜์‹œ๋Š” ๊ฑด ์–ด๋•Œ์š” ??

Copy link
Member Author

Choose a reason for hiding this comment

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

@jeongjaino

์‚ฌ์‹ค ์ด fold๋ž‘ onSuccess, onFailure ๋”ฐ๋กœ ์“ฐ๋Š” ๊ฒƒ์˜ ์ฐจ์ด์ ์„ ์ž˜ ๋ชจ๋ฅด๊ณ ์žˆ์—ˆ๋Š”๋ฐ์š”,

ํ•œ ๋ฒˆ ์ฐพ์•„๋ณด๊ฒ ์”๋‹ˆ๋‹ค.

Copy link
Member Author

@tgyuuAn tgyuuAn Jan 2, 2024

Choose a reason for hiding this comment

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

fold

image

์ถœ์ฒ˜




๊ฐ„๋‹จํ•œ ๋ถ„๊ธฐ์ฒ˜๋ฆฌ๋งŒ ์ฒ˜๋ฆฌํ•ด์ค„ ๋•Œ์—๋Š” 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 jeongjaino added ๐ŸŒŸ๋จธ์ง€ ํ•ด์ฃผ์„ธ์š”๐ŸŒŸ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๊ฐ€ ์™„๋ฃŒ๋œ ๋’ค PR์„ ์˜ฌ๋ฆฐ์‚ฌ๋žŒ์ด Merge๋ฅผ ํ•˜๋ฉด ๋˜๋Š” ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค. and removed ๐Ÿ”ฅ๋ฆฌ๋ทฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ค‘๐Ÿ”ฅ PR์„ ์˜ฌ๋ฆฌ๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค. labels Jan 3, 2024
@tgyuuAn tgyuuAn merged commit f95fb41 into develop Jan 3, 2024
@tgyuuAn tgyuuAn deleted the feature/tgyuu/#69 branch February 6, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐ŸŒŸ๋จธ์ง€ ํ•ด์ฃผ์„ธ์š”๐ŸŒŸ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๊ฐ€ ์™„๋ฃŒ๋œ ๋’ค PR์„ ์˜ฌ๋ฆฐ์‚ฌ๋žŒ์ด Merge๋ฅผ ํ•˜๋ฉด ๋˜๋Š” ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค. ๐ŸŒฑ๊ธฐ๋Šฅ๐ŸŒฑ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๋‘๋‘๋‘ฅ์žฅ! ๐ŸŽจ์œ ์•„์ด๐ŸŽจ ํ”ผ๊ทธ๋งˆ, ์—‘์„ธ๋ฉœ, ์ปดํฌ์ฆˆ ์œ ์•„์ด/์œ ์—‘์Šค ์ž‘์—… ๐Ÿงฉํƒœ๊ทœ๐Ÿงฉ ENFP ์•ˆํƒœ๊ทœ 24์„ธ
Projects
None yet
2 participants