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/#13 seats screen UI #16

Merged
merged 44 commits into from
Nov 27, 2024
Merged

Feature/#13 seats screen UI #16

merged 44 commits into from
Nov 27, 2024

Conversation

tunaunnie
Copy link
Contributor

๐Ÿ“Œ Issue

๐Ÿ’ป Work Description

  • SeatSelection ์Šคํฌ๋ฆฐ(UI)๊ณผ, ๊ทธ ์•ˆ์— ๋“ค์–ด๊ฐ€๋Š” ์ปดํฌ๋„ŒํŠธ๋“ค์„ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค.
    • SeatScreenTopBar ๊ตฌํ˜„
    • TimeCompCardRow ๊ตฌํ˜„
    • SeatSelectionChangeButton ๊ตฌํ˜„
    • SeatSelectionChipRow ๊ตฌํ˜„
    • SeatSelectionConfirmRow ๊ตฌํ˜„
    • SeatConfirmationModal ๊ตฌํ˜„

๐Ÿ“ธ Screenshot

https://github.com/user-attachments/assets/6c453100-438f-415b-addb-c8a6d1d0a5f2
-> ์›๋ž˜ SeatScreen ์ฒ˜์Œ์— ์ง„์ž…ํ•˜์ž๋งˆ์ž ๋ชจ๋‹ฌ์ด ํ•˜๋‚˜ ๋œจ๋Š” ๊ฒƒ๊นŒ์ง€ ๊ตฌํ˜„ํ•œ ์ƒํƒœ์ธ๋ฐ (์ฝ”๋“œ์— ๋“ค์–ด๊ฐ€ ์žˆ์Œ), ์—๋ฎฌ๋ ˆ์ดํ„ฐ์—์„œ ์ž๊พธ ์ž‘๋™์ด ์•ˆ ๋ผ์„œ ์ฒซ ๋ฒˆ์งธ ๋ชจ๋‹ฌ ๋„์šฐ๋Š” ๋ถ€๋ถ„๋งŒ ์ฃผ์„์ฒ˜๋ฆฌํ•˜๊ณ  ์ฐ์€ ์˜์ƒ์ž…๋‹ˆ๋‹ค..! ๋ชจ๋‹ฌ ์ปดํฌ๋„ŒํŠธ๋งŒ ๋”ฐ๋กœ ํ”„๋ฆฌ๋ทฐ๋กœ ๋ณด๋ฉด ์ž˜ ๋™์ž‘ํ•˜๋Š”๋ฐ ํ˜น์‹œ ํด๋ก ๋ฐ›์•„์„œ ๋‘ ๊ฐœ์˜ ๋ชจ๋‹ฌ์ด ๋‹ค ์ž˜ ๋œจ๋Š”์ง€ ํ™•์ธํ•ด์ฃผ์‹œ๋ฉด.. ์ •๋ง ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค ใ…œใ… 

https://github.com/user-attachments/assets/6127f952-0e9b-4b62-abb0-e5fc9b2a010b
image
image
image
https://github.com/user-attachments/assets/38679544-c42a-41c0-a64e-a37e39fcb3ef

๐Ÿ’ญ To Reviewers

-SeatSelectionModal1์—์„œ ์ด ์„ ํƒํ•œ ์ธ์› ์ˆ˜๊ฐ€ 0๋ช… ์ด์ƒ์ธ ๊ฒฝ์šฐ์— '์ขŒ์„ ์„ ํƒ' ๋ฒ„ํŠผ์ด ๋นจ๊ฐ›๊ฒŒ ํ™œ์„ฑํ™”๋˜๋Š” ์ฝ”๋“œ๋„ ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง์ด๋ผ๊ณ  ์ƒ๊ฐํ•ด์„œ ์šฐ์„ ์€ ๋‚ด๋ฒ„๋ ค ๋’€์Šต๋‹ˆ๋‹ค! (TimeCompCard ํ™œ์„ฑํ™”๋„ ๋งˆ์ฐฌ๊ฐ€์ง€) ์ฐจ์ฐจ ํ•ด๋‹น ๋ถ€๋ถ„์„ ๊ณ ์ณ๋ด๋„ ๊ดœ์ฐฎ์„ ๊ฒƒ ๊ฐ™๋‹ค๋ฉด, ๋ฆฌ๋ทฐ ๋‚จ๊ฒจ์ฃผ์‹œ๋ฉด ๋ฐ”๋กœ๋ฐ”๋กœ ๋ฐ˜์˜ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค! ์ง€๊ธˆ ์ฝ”๋“œ ์ƒํ™ฉ์—์„œ ๊ณ ์ณ๊ฐ€์•ผ ํ•  ๋ถ€๋ถ„์„ ์ˆœ์ฐจ์ ์œผ๋กœ ์•Œ๋ ค์ฃผ์‹œ๋ฉด ์กฐ๊ธˆ์”ฉ ๋ฆฌํŒฉํ† ๋งํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ท

Copy link
Member

@0se0 0se0 left a comment

Choose a reason for hiding this comment

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

์†์ปคํ†ค ํ•˜๋Š๋ผ ๋ฐ”์ ํ…๋ฐ.. ์ด๋žฌ๋‹ค ์ €๋žฌ๋‹ค ํ•˜๋Š” ๋ฆฌ๋“œ๋ผ ๋ฏธ์•ˆํ•ด...!๐Ÿ˜–


Box(
modifier = modifier
.size(width = 90.dp, height = 64.dp)
Copy link
Member

Choose a reason for hiding this comment

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

์ด๋ ‡๊ฒŒ ์ปดํฌ๋„ŒํŠธ ์‚ฌ์ด์ฆˆ๋ฅผ ๊ณ ์ • dp๋กœ ์ฃผ๋Š” ๊ฒƒ์ด ์•„๋‹Œ ์ปดํฌ๋„ŒํŠธ ์š”์†Œ๋“ค์˜ ํŒจ๋”ฉ ๊ฐ’์œผ๋กœ ์กฐ์ ˆํ•ด์ค€ ํ›„ ์Šคํฌ๋ฆฐ์— ๋„ฃ์—ˆ์„ ๋•Œ, ์ „์ฒด ์Šคํฌ๋ฆฐ์—์„œ์˜ ๋””ํ”ผ๋กœ ์กฐ์ ˆํ•ด์ฃผ๋ฉด ๋” ์ข‹์„ ๊ฑฐ ๊ฐ™์•„์š”

Comment on lines 36 to 37
startTime: LocalDateTime,
endTime: LocalDateTime,
Copy link
Member

Choose a reason for hiding this comment

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

์–‘์ง€๋ฐœ์ด์•ผ... ๋‚ด๊ฐ€ ๋ฏธ์•ˆํ•ด...
์˜ค๋Š˜ ์„œ๋ฒ„ ํ†ต์‹ ์„ ๋ฐฐ์šฐ๋ฉฐ ์ƒ๊ฐํ•˜์˜€๋Š”๋ฐ,
์ด ๋ถ€๋ถ„ string์œผ๋กœ ์ฃผ๋Š” ๊ฒƒ์ด ๋งž๋Š” ๊ฒƒ ๊ฐ™์• .. ๋„ˆ๋Š” ๋‹ค ๊ณ„ํš์ด ์žˆ์—ˆ๊ตฌ๋‚˜..
๋ชป๋‚œ ๋ฆฌ๋“œ๋ผ ๋ฏธ์•ˆํ•ด....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ใ…‹ใ…‹ใ…‹ใ…‹ ๋’ท๊ฑธ์Œ์ •๋‹ต ...๐Ÿซข ๊ดœ์ฐจ๋‚˜ ์ด๋Ÿฌ๋ฉด์„œ ๋” ๋ฐฐ์šฐ๊ฒŒ ๋˜๋Š” ๊ฒƒ ๊ฐ™๋‹น!!

Comment on lines 50 to 52
val timeFormatter = DateTimeFormatter.ofPattern("HH:mm")
val formattedStartTime = startTime.format(timeFormatter)
val formattedEndTime = endTime.format(timeFormatter)
Copy link
Member

Choose a reason for hiding this comment

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

์ด ๋ถ€๋ถ„์ด ์‹œ๊ฐ„ ํฌ๋ฉงํŒ… ๋ถ€๋ถ„์ด์—ฌ์„œ ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง์— ๊ฐ€๊น๋‹ค๋Š” ์ƒ๊ฐ์ด ์ง€๊ธˆ ๋“ค์—ˆ์‚ฌ์˜ต๋‹ˆ๋‹ค.. ์„œ๋ฒ„ ํ†ต์‹ ํ•  ๋•Œ ๋ทฐ๋ชจ๋ธ ๋ถ€๋ถ„์—์„œ ์‹œ๊ฐ„ ํฌ๋ฉงํŒ…์„ ํ•ด์ฃผ๋ฉด ๋  ๊ฒƒ ๊ฐ™์‚ฌ์˜ต๋‹ˆ๋‹ค..
๋ฏธ์•ˆํ•˜์˜ต๋‹ˆ๋‹ค....๐Ÿฅน

Comment on lines 19 to 24
modifier: Modifier = Modifier,
content: String
){

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

Suggested change
modifier: Modifier = Modifier,
content: String
){
Box(
modifier = Modifier
modifier: Modifier = Modifier,
content: String
){
Box(
modifier = modifier


Box(
modifier = modifier
.size(width = 66.dp, height = 24.dp)
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
Contributor Author

Choose a reason for hiding this comment

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

ํ•˜๋“œ์ฝ”๋”ฉํ•œ ๋‹ค๋ฅธ ์ด์œ ๊ฐ€ ์žˆ๋Š” ๊ฑด ์•„๋‹ˆ๊ณ , ํŒจ๋”ฉ๊ฐ’์„ ์ธ์ž๋กœ ์ฃผ์–ด์„œ ๋™์ ์œผ๋กœ ํฌ๊ธฐ๊ฐ€ ์กฐ์ ˆ๋˜๋„๋ก ํ•˜๋Š” ๋ฐฉ์‹์„ ๋” ์ผ๋ฐ˜์ ์œผ๋กœ ์‚ฌ์šฉํ•œ๋‹ค๋Š” ์‚ฌ์‹ค์„ ์ž˜ ๋ชฐ๋ž์–ด์š”..! ์„ธ์˜์“ฐ๊ฐ€ ๋ฒ„ํŠผ ๊ตฌํ˜„ํ•œ ๊ฑฐ ๋ณด๊ณ  ์™„๋ฒฝํ•˜๊ฒŒ ์ดํ•ดํ•ด๊ฐ‘๋‹ˆ๋‹น.. ๐Ÿคฉ

Comment on lines 47 to 55
Text(
text = price,
style = Typography.head8_b_20,
color = Color.Black
)
Text(
text = "์›",
style = Typography.head4_b_15,
color = Color.Black
Copy link
Member

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ ์ปฌ๋Ÿฌ๋‘์š”!

Text(
text = label,
style = Typography.body4_m_15,
color = Color.Black
Copy link
Member

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ ์ปฌ๋Ÿฌ ํ•œ๋ฒˆ ๋ด์ฃผ์„ธ์šฉ

contentAlignment = Alignment.Center
) {
Icon(
painter = painterResource(id = R.drawable.ic_seats_minus),
Copy link
Member

Choose a reason for hiding this comment

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

์•„์ด์ฝ˜ ํŽ˜์ธํ„ฐ ๋ฆฌ์†Œ์Šค ๋ง๊ณ  ๋ฒกํ„ฐ๋กœ ์‚ฌ์šฉํ•ด์ฃผ์„ธ์š”!
ํ˜น์‹œ ic_seats_minus๊ฐ€ png๋ผ๋ฉด painterResource๋กœ ํ•ด์ฃผ์…”์š”!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

๋•๋ถ„์— ์ปดํฌ์ฆˆ์—์„œ ๋ฒกํ„ฐ ์•„์ด์ฝ˜์„ ์‚ฌ์šฉํ•  ๋•Œ๋Š” painterResoucre๋ณด๋‹ค vectorResource ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ๋” ์ตœ์ ํ•˜๋œ ๋ฐฉ๋ฒ•์ด๋ผ๋Š” ์‚ฌ์‹ค ์•Œ์•„๊ฐ‘๋‹ˆ๋‹น . .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

์‚ฌ์‹ค ์ด๋ฆ„๋ถ€ํ„ฐ painterResource์ธ๋ฐ ๋‚ด๊ฐ€ ๋„˜ ์˜์‹ฌ์—†์ด ์‚ฌ์šฉํ•œ ๊ฒƒ ๊ฐ™๋‹น. . ๋ฐ”๋ณด

modifier = Modifier
.padding(horizontal = 5.dp)
.size(width = 34.dp, height = 28.dp)
.background(Color.White, RoundedCornerShape(8.dp)),
Copy link
Member

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ๋„ ์ƒ‰์ƒ ํ•œ๋ฒˆ๋งŒ ํ™•์ธํ•˜๊ธฐ!!

Comment on lines 98 to 99
Icon(
painter = painterResource(id = R.drawable.ic_seats_plus),
Copy link
Member

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ๋„ painterResource ํ™•์ธํ•ด์ฃผ์…”์š”!

Copy link
Member

@0se0 0se0 left a comment

Choose a reason for hiding this comment

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

์ถ”๊ฐ€์ ์œผ๋กœ seats ๋ถ€๋ถ„์—์„œ๋งŒ ์‚ฌ์šฉํ•˜๋Š” component๋Š” component ํŒจํ‚ค์ง€๋ฅผ ๋”ฐ๋กœ ๋งŒ๋“ค์–ด์„œ ๊ทธ ์•ˆ์— ํŒŒ์ผ๋“ค์„ ๋„ฃ์–ด์ฃผ์„ธ์š”!!

Copy link
Contributor

@kamja0510 kamja0510 left a comment

Choose a reason for hiding this comment

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

์งฑ์งฑ๋งจ ๋ฆฌ๋ทฐ ๋‹ต์žฅ ์ž˜ ํ™•์ธํ• ๊ฒŒ~

){
//์‹œ๊ฐ„ ๋ถ€๋ถ„
Row(
modifier = modifier
Copy link
Contributor

Choose a reason for hiding this comment

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

modifier๋ฅผ ๊ณ„์† ๋ฌผ๋ ค๋ฐ›์œผ๋ฉด ๊ณ„์‚ฐํ•  ๋•Œ ์กฐ๊ธˆ ํž˜๋“ค์ง€ ์•Š๋‚˜์š”?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

์„ธ์˜์ด๊ฐ€ modifier: Modifier = Modifier, ์ด๊ฑฐ ๋ชจ๋“  ์ปดํฌ๋„ŒํŠธ์— ์ถ”๊ฐ€ํ•ด์ฃผ๋ผ๊ณ  ํ•ด์„œ ๋‹ค ์ธ์ž๋กœ ๋„˜๊ฒจ๋ฐ›์€ modifier๋ฅผ ๋ฌผ๋ ค๋ฐ›์•„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์œผ๋กœ ํ•ด๋’€๋Š”๋ฐ, ์ƒ์œ„์—์„œ modifier๋ฅผ ์ธ์ž๋กœ ๋„˜๊ฒจ๋ฐ›๊ธฐ๋งŒ ํ•˜๊ตฌ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š”๊ฑด๊ฐ€์šฉ??

Copy link
Contributor

Choose a reason for hiding this comment

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

์ผ๋‹จ ์ €๋„ ๋‹ค ์ถ”๊ฐ€๋Š” ํ•ด๋†“๊ตฌ ๋ถ€๋ชจ๊ณ„์ธต(?)์˜ ์˜ํ–ฅ์„ ๋ฐ›๋Š” ์•„์ด๋“ค์ด ์žˆ์„๋•Œ๋งŒ modifier๋ฅผ ์“ฐ๊ธดํ•ด์š”
์˜ˆ๋ฅผ ๋“ค๋ฉด ๋ถ€๋ชจ๊ฐ€ ํ• ๋‹น๋ฐ›์€ width์˜ 1/4์„ ๋ฐ›๊ณ  ์‹ถ์œผ๋ฉด ๋ถ€๋ชจ ์ปดํฌ๋„ŒํŠธ๋กœ ๋ถ€ํ„ฐ Modifier.weight(0.25f) ๋ฅผ ๋ฌผ๋ ค๋ฐ›์•„์„œ ์“ฐ๋Š” ๋ฐฉ์‹์œผ๋กœ??
์„ธ์˜์ด ๋ฐฉ๋ฒ•์ด ๋” ๋งž์„ ์ˆ˜๋„! ์ „ ๋ญ”๊ฐ€ ์‹ ๊ฒฝ์“ธ๊ฒŒ ๋งŽ์•„์ ธ์„œ ์•ˆ์“ฐ๊ฒŒ ๋˜๋”๋ผ๊ตฌ์š”

){
Column(
modifier = modifier.fillMaxSize(),
verticalArrangement = Arrangement.SpaceBetween
Copy link
Contributor

Choose a reason for hiding this comment

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

์ด ๋ถ€๋ถ„์ด ํ•„์š”ํ• ๊นŒ์š”?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

์ง„์งœ ๋นผ๋‘ ๊ดœ์ฐฎ๋„ค์š”..๐Ÿซข ์•„์ง๋„ ์ •๋ ฌ์— ์ต์ˆ™ํ•˜์ง€ ์•Š์•„์„œ spacer๋‚˜ align์„ ๋•์ง€๋•์ง€ ๋ถ™์ด์ง€ ์•Š๊ณ ๋„ ์˜ˆ์˜๊ณ  ๊น”๋”ํ•˜๊ฒŒ ๋ฐฐ์น˜ํ•˜๋Š” ๋ฒ•์„ ์ž˜ ๋ชจ๋ฅด๊ฒ ์–ด์š”ใ…œใ…  ..

verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceAround,
){
if(isMorning){
Copy link
Contributor

Choose a reason for hiding this comment

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

๋„ˆ๋ฌด ์ข‹๋„ค์š”

Copy link
Contributor

Choose a reason for hiding this comment

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

์ด ํŒŒ์ผ์€ ์ œ๊ฐ€ ๋” ๊ณ ์ณ๋†“๊ฒ ์‘ต๋‹ˆ๋‹ค ๋‹ซ๊ธฐ ์•„์ด์ฝ˜ ์žˆ๋Š” ๋ฒ„์ „์œผ๋กœ

Copy link
Contributor Author

Choose a reason for hiding this comment

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

์„ธ์˜๋‹˜ ์ฝ”๋“œ๋ฆฌ๋ทฐ๋„ ๋ฐ˜์˜ํ•ด๋’€์Šต๋‹ˆ๋‹น (cgvButton์ฒ˜๋Ÿผ ์ธ์ž๋กœ ํŒจ๋”ฉ๊ฐ’ ๋ฐ›์•„์„œ ๋™์ ์œผ๋กœ ์นฉ ํฌ๊ธฐ ๋ณ€๊ฒฝ๋˜๋„๋ก)


@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun SeatConfirmationModal(
Copy link
Contributor

Choose a reason for hiding this comment

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

preview๋ฅผ ๋ณด๋‹ˆ modal์˜ ์ƒ๋‹จ์— ๋‹น๊ธธ ์ˆ˜ ์žˆ๋Š” ํ‘œ์‹œ?๊ฐ€ ๋‚จ์•„์žˆ๋Š” ๊ฑฐ ๊ฐ™์€๋ฐ ์ œ๊ฑฐํ•ด ๋ณด์‹ฌ์ด ์–ด๋– ์‹ ๊ฐ€์š”!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

modalBottomSheet์˜ ์ธ์ž์— dragHandle = { } ์„ ์ถ”๊ฐ€ํ•˜๋‹ˆ๊นŒ ์—„์ฒญ ๊ฐ„๋‹จํ•˜๊ฒŒ ์—†์–ด์ง€๋„ค์š”!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

๋ˆˆ์ฐ๋ฏธ๊ฐ€ ๋‹ค๋“ค ๋Œ€๋‹จํ•˜๋„ค์š” ... ์žฌ๋ฏผ๋‹˜์€ ์ง„์งœ ํด๋ผ์˜ ์ž์งˆ์ด ์žˆ์œผ์‹ ๊ฑฐ๊ฐ™์•„์š” ..

Copy link
Contributor

Choose a reason for hiding this comment

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

์บฌ ํ˜ผ์ž ์•Œ์•„๋‚ด์‹œ๋‹ค๋‹ˆ
๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ใ…Ž

isBack = true
)

Spacer(modifier = Modifier.width(16.dp))
Copy link
Contributor

Choose a reason for hiding this comment

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

์ด๋Ÿฐ๊ฒƒ ๋ณด๋ฉด์€ ๋””์ž์ธ์˜ ์‚ฌ์ด ๊ฐ„๊ฒฉ์€ 12px์ด๋ผ๊ณ  ๋‚˜์™€์žˆ๋Š”๋ฐ 16dp๋ฅผ ์ฃผ๋Š” ์ด์œ ๊ฐ€ ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค! ์ง„์งœ ์งˆ๋ฌธ

Copy link
Contributor Author

Choose a reason for hiding this comment

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

px์™€ dp์˜ ์ฐจ์ด๋ฅผ ๊ณ ๋ คํ•ด์„œ ๋ณ€ํ™˜ํ•œ ๊ฑฐ์˜€๋‹ค๋ฉด ์ •๋ง ๋ฉ‹์ง„๋Œ€๋‹ต์ด์—ˆ๊ฒ ์ง€๋งŒ.. ์‹ค์ˆ˜๋กœ ์ž˜๋ชป๋„ฃ์€๊ฑฐ๋ผ ์žฝ์‹ธ๊ฒŒ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹นใ…œ

Copy link
Contributor

Choose a reason for hiding this comment

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

ใ…‹ใ…‹ใ…‹ใ…‹ใ…‹ใ…‹ใ…‹ใ…‹ ๋‚˜์ด์Šค

) {
Text(
text = movieTitle,
style = Typography.head6_b_17,
Copy link
Contributor

Choose a reason for hiding this comment

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

์–ด๋–จ๋•Œ๋Š” CGVTheme.typography.head6_b_17 ๋กœ ์ ์šฉํ•˜์‹œ๋‹ค๊ฐ€ ์–ด์ฉ”๋•Œ๋Š” ์ด๋ ‡๊ฒŒ ์ ์šฉํ•˜์‹œ๋Š”๋ฐ ํ•˜๋‚˜๋กœ ํ†ต์ผ ํ•˜์‹œ๋Š”๊ฒŒ ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”! ์ €๋Š” CGVTheme์˜ typography๋ฅผ ์“ด๋‹ค๊ณ  ๋ช…์‹œํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™๊ธดํ•ฉ๋‹ˆ๋‹ค

contents: List<String>,
){
Row(
horizontalArrangement = Arrangement.spacedBy(8.dp, Alignment.CenterHorizontally),
Copy link
Contributor

Choose a reason for hiding this comment

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

์˜ค์šฐ ์ด๊ฑด ์–ด๋–ค ๋ฌธ๋ฒ•์ด์ฃต?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

spacedBy๋„ ์“ฐ๊ณ ์‹ถ๊ณ  ์ค‘์•™์ •๋ ฌ๋„ ํ•˜๊ณ ์‹ถ์€๋ฐ horizontalArrangment๋ฅผ ๋‘๋ฒˆ ์“ฐ๋ฉด ์˜ค๋ฅ˜๊ฐ€ ๋‚˜๊ธธ๋ž˜ ์ฐพ์•„๋ณด๋‹ˆ๊นŒ ์ด๋ ‡๊ฒŒ ํ•œ๋ฒˆ์—๋„ ์“ธ ์ˆ˜ ์žˆ๋”๋ผ๊ณ ์š”! ๋” ๊ฐ„๋‹จํ•œ ๋ฐฉ๋ฒ•์œผ๋กœ ๊ฐ€๋…์„ฑ ์ข‹๊ฒŒ ๊ณ ์น  ๋ฐฉ๋ฒ•์ด ์žˆ์„๊นŒ์š”??

Copy link
Contributor

Choose a reason for hiding this comment

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

๋ฐ”๋กœ ์ƒ๊ฐ๋‚˜๋Š” ๊ฑฐ๋Š” ์—†๋„ค์š”? ์ข‹์€ ๊ฒƒ ๋ฐฐ์šด๊ฑฐ๊ฐ™์•„์š”

) {

Row(
modifier = Modifier,
Copy link
Contributor

Choose a reason for hiding this comment

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

์ด๋Ÿฐ์ค„์€ ํ•„์š” ์—†์„ ๊ฒƒ ๊ฐ™์•„์š”!

horizontalArrangement = Arrangement.Center
) {
CgvButton(
text = "๋’ค๋กœ๊ฐ€๊ธฐ",
Copy link
Contributor

Choose a reason for hiding this comment

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

confirm์ฐฝ์—๋Š” ๋’ค๋กœ๊ฐ€๊ธฐ๊ฐ€ ์—†๋Š”๋ฐ ํ˜น์‹œ ๋””์ž์ธ์ด ๋ณ€๊ฒฝ๋˜์—ˆ๋‚œ์š”?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

๋ฐ”๋กœ ๊ณ ์ณค์Šต๋‹ˆ๋‹คใ…œใ…œ ๊ผผ๊ผผํžˆ ๋ด์ฃผ์…”์„œ ๋„ˆ๋ฌด๋„ˆ๋ฌด ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.!!!!

@tunaunnie tunaunnie requested review from 0se0 and kamja0510 November 25, 2024 11:07
onDismissRequest = { },
sheetState = rememberModalBottomSheetState(),
shape = RoundedCornerShape(topStart = 16.dp, topEnd = 16.dp),
containerColor = Color.White
Copy link
Contributor

Choose a reason for hiding this comment

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

๋ฐœ๊ฒฌ!
์ด๋ž˜์„œ ์ €๋Š” ๋†“์ง„ ๋ถ€๋ถ„์ด ์žˆ์„ ์ˆ˜ ์žˆ์œผ๋‹ˆ ctrl+R์„ ๋ˆŒ๋Ÿฌ์„œ ๊ฒ€์ƒ‰์„ ํ•œ๋‹ค์Œ์— Replace๋ฅผ ํ•ด์š”
๋ฌด์Šจ ๋ง์ธ์ง€ ๋ชจ๋ฅด๊ฒ ์œผ๋ฉด ์—ฐ๋ฝํ•˜์„ธ์šฉ

Copy link
Contributor

Choose a reason for hiding this comment

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

์ „์ฒด ํ”„๋กœ์ ํŠธ์—์„œ ๊ฒ€์ƒ‰ํ• ๋• ctrl + shift + R

Copy link
Contributor Author

Choose a reason for hiding this comment

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

์ˆ˜์ • ์™„๋ฃŒ!!

Copy link
Member

@0se0 0se0 left a comment

Choose a reason for hiding this comment

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

์šฐ์™• ๋„ˆ๋ฌด ์ˆ˜๊ณ  ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค~! ํ›จ์”ฌ ๋ณด๊ธฐ ์ข‹์•„์กŒ๋„ค์š”!
์ œ๊ฐ€ ๋‚จ๊ธด ๋ฆฌ๋ทฐ๋“ค ํ•œ๋ฒˆ ํ™•์ธํ•ด์ฃผ์‹œ๊ณ  ์ˆ˜์ •ํ•ด์ฃผ์‹œ๋ฉด ์ข‹์„ ๊ฑฐ ๊ฐ™์•„์š”!

Comment on lines 48 to 50
val backgroundColor = if (isActivated) White else Gray700
val backgroundColor2 = if (isActivated) Gray200 else Gray700
val leftSeatsColor = if (isActivated) PrimaryRed400 else Green
Copy link
Member

Choose a reason for hiding this comment

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

์š” ๋ถ€๋ถ„

Suggested change
val backgroundColor = if (isActivated) White else Gray700
val backgroundColor2 = if (isActivated) Gray200 else Gray700
val leftSeatsColor = if (isActivated) PrimaryRed400 else Green
.background(if (isActivated) White else Gray700)
.background(if (isActivated) Gray200 else Gray700),

์ด๋ ‡๊ฒŒ ์ฃผ๋Š” ๊ฑฐ ์–ด๋– ์‹ค์ง€์š”!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

์ด๋ ‡๊ฒŒ ํ•˜๋‹ˆ๊นŒ ์“ธ๋ฐ์—†๋Š” ๋ณ€์ˆ˜ ์„ ์–ธ๋„ ์ค„์ผ ์ˆ˜ ์žˆ๊ณ , ๊ฐ€๋…์„ฑ๋„ ๋” ์ข‹์•„์ง€๋„ค์š”!

modifier = Modifier
.fillMaxWidth()
.padding(vertical = 4.dp) // ์œ„์•„๋ž˜ ์—ฌ๋ฐฑ ์กฐ์ •
.background(if (isActivated) Gray200 else Gray700),
Copy link
Member

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ์ฒ˜๋Ÿผ์š”!

Comment on lines 44 to 46
var _showBottomSheet by remember { mutableStateOf(showBottomSheet) }
var showSeatConfirmBottomSheet by remember { mutableStateOf(false) }

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
Contributor Author

Choose a reason for hiding this comment

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

์ด๋ฒˆ์— ๋‚จ๊ฒจ์ฃผ์‹  ๋ฆฌ๋ทฐ ๋•๋ถ„์—, ์–ด๋– ํ•œ ๋ณ€์ˆ˜๋“ค์„ ๋ทฐ๋ชจ๋ธ๋กœ ๋„˜๊ฒจ ๊ด€๋ฆฌํ•ด์•ผ ํ•˜๋Š”์ง€ ์กฐ๊ธˆ ๋” ๋ช…ํ™•ํžˆ ์ดํ•ดํ•œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค..!

(๊ทธ๋Ÿฐ๋ฐ ์—ฌ์ „ํžˆ ํ•˜์œ„ ์ปดํฌ๋„ŒํŠธ์—์„œ ํ•„์š”ํ•œ ๋ทฐ๋ชจ๋ธ์„ ์ƒ์œ„ ์ปดํฌ๋„ŒํŠธ๋“ค์—์„œ ๋ฌดํ•œ(..) ์ธ์ž๋กœ ๋ฐ›์•„์ค˜์•ผ ํ•˜๋Š” ๊ฑด์ง€?? <- ์ด ๋ถ€๋ถ„์€ ์•„์ง ์ •ํ™•ํ•˜๊ฒŒ ์ดํ•ดํ•˜์ง€ ๋ชปํ•œ ๊ฒƒ ๊ฐ™์•„์šฉ..)

๊ทธ๋ž˜๋„ ํ•˜๋‚˜ํ•˜๋‚˜ ์Šค์Šค๋กœ ๋ถ€๋”ชํžˆ๋ฉด์„œ ์•Œ์•„๊ฐ€๊ณ  ์ดํ•ดํ•ด๊ฐ€๋Š” ๋ง›์ด ์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค ....! ์–ด๋–ป๊ฒŒ ๋ณด๋ฉด ์„ธ์˜์ด ์ž…์žฅ์—์„œ๋Š” ๋„ˆ๋ฌด ๋‹น์—ฐํ•œ ๊ฒƒ๋“ค์„ ํ•˜๋‚˜ํ•˜๋‚˜ ์ง€์ ํ•˜๋Š๋ผ ๋‹ต๋‹ตํ•˜๊ณ  ๊ณ ์ƒ์Šค๋Ÿฌ์šธ ์ˆ˜๋„ ์žˆ์„ ๊ฒƒ ๊ฐ™์€๋ฐ, ๋” ์ •์ง„ํ•ด์„œ ๋น ๋ฅด๊ฒŒ ๋ฐฐ์›Œ๊ฐ€๊ฒŸ์Šต๋‹ˆ๋‹น... ๊ผผ๊ผผํ•˜๊ณ  ์ •์„ฑ์Šค๋Ÿฌ์šด ๋ฆฌ๋ทฐ ๋„ˆ๋ฌด๋„ˆ๋ฌด ๊ณ ๋งˆ์›Œ์šฉ

Comment on lines 19 to 25
@Composable
fun SeatSelectionConfirmRow(
label: String,
price: String,
) {
Row(
modifier = Modifier.fillMaxWidth(),
Copy link
Member

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ์—๋„ modifier์ธ์ž๊ฐ€ ์žˆ์Œ ๋” ์ข‹์„ ๊ฑฐ ๊ฐ™์•„์š”!

import org.sopt.cgv.core.designsystem.theme.CGVTheme

@Composable
fun StepperRow(label: String) {
Copy link
Member

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ๋„ modifier์ธ์ž๊ฐ€ ์žˆ์Œ ๋” ์ข‹์„ ๊ฑฐ ๊ฐ™์ˆจ๋‹น

Copy link
Contributor Author

Choose a reason for hiding this comment

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

์ด๊ฒƒ๋‘ ์žฌ๋ฏผ์˜ค๋น ๊ฐ€ ๋‚จ๊ฒจ์ค€ ๋ฆฌ๋ทฐ ๊ธฐ๋ฐ˜์œผ๋กœ ์ƒ์œ„ ์ปดํฌ๋„ŒํŠธ์—์„œ ๋ฌผ๋ ค์ค€ (์ธ์ž๋กœ ๋ฐ›์€) modifier๋ฅผ ๋„๋Œ€์ฒด ์–ด๋””๊นŒ์ง€ ์ ์šฉํ•ด์ค˜์•ผ ํ•˜๋Š” ๊ฑด์ง€ ์•ฝ๊ฐ„ ๋” ๊ณต๋ถ€ํ•ด๋ณผ ์ˆ˜ ์žˆ์–ด์„œ ์ข‹์•˜์„œ์šฉ

contents: PersistentList<TimeCardContent>,
modifier: Modifier = Modifier,
) {
var clickedCardIndex = remember { mutableStateOf(Int) }
Copy link
Member

Choose a reason for hiding this comment

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

์š”๋Ÿฐ ์ƒํƒœ๋Š” ๋ทฐ๋ชจ๋ธ์—์„œ ๊ด€๋ฆฌํ•˜๋Š” ํŽธ์ด ๋” ์ข‹์ง€ ์•Š์„๊นŒ์š”???

Comment on lines 46 to 49
//์ƒํƒœํ‘œ์‹œ์ค„ ์—ฌ๋ฐฑ
Spacer(modifier = Modifier.height(30.dp))

//TopBar ๋ถ€๋ถ„
Copy link
Member

Choose a reason for hiding this comment

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

๋ชจ๋“  ํŒŒ์ผ์—์„œ ์ด๋Ÿฐ ์ฃผ์„ ๋ถ€๋ถ„์„ ์ง€์›Œ์ฃผ์‹œ๋ฉด ์ข‹์„ ๊ฑฐ ๊ฐ™์•„์š”!

initialValue: Int = 0,
onValueChange: (Int) -> Unit
) {
var currentValue by remember { mutableStateOf(initialValue) }
Copy link
Member

Choose a reason for hiding this comment

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

์ด ๋ถ€๋ถ„๋„ ์ƒํƒœ๊ด€๋ฆฌ๋ฅผ ๋ทฐ๋ชจ๋ธ์—์„œ ํ•˜๋ฉด ๋” ์ข‹์„ ๊ฑฐ ๊ฐ™์•„์š”!

@tunaunnie tunaunnie requested a review from 0se0 November 26, 2024 08:52
Copy link
Member

@0se0 0se0 left a comment

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.

๋ทฐ๋ชจ๋ธ ํŒŒ์ผ์€ ์ปดํฌ๋„ŒํŠธ์— ์žˆ์œผ๋ฉด ์•ˆ๋ฉ๋‹ˆ๋‹น
์ปดํฌ๋„ŒํŠธ ํŒจํ‚ค์ง€๋Š” ui๋ฅผ ์žฌ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ํŒŒ์ผ๋“ค๋กœ ์ด๋ค„์ฃผ์„ธ์š”!

@Composable
fun SeatSelectionModal1(
modifier: Modifier = Modifier,
viewModel: SeatSelectViewModel,
Copy link
Member

Choose a reason for hiding this comment

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

๋ทฐ๋ชจ๋ธ ์˜์กด์„ฑ์„ ์ œ๊ฑฐํ•ด์ฃผ์„ธ์š”!

Suggested change
viewModel: SeatSelectViewModel,
stepperValues: Map<String, Int>,
onStepperIncrease: (String) -> Unit,
onStepperDecrease: (String) -> Unit,

ViewModel์„ ์ง์ ‘ ์ฃผ์ž…ํ•˜๋Š” ๋Œ€์‹  ํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ์™€ ์ด๋ฒคํŠธ ํ•ธ๋“ค๋Ÿฌ๋งŒ ์ „๋‹ฌ๋ฐ›๋„๋ก ๋ณ€๊ฒฝํ•ด์ฃผ์„ธ์š”!
์ด๋ ‡๊ฒŒ ๋ฐ”๊พผ๋‹ค๋ฉด ์ปดํฌ์ €๋ธ”์˜ ์žฌ์‚ฌ์šฉ์„ฑ์„ ๋†’์ผ ์ˆ˜ ์žˆ์„ ๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹น

@Composable
fun StepperRow(
modifier: Modifier = Modifier,
viewModel: SeatSelectViewModel,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
viewModel: SeatSelectViewModel,
value: Int,
onIncrease: () -> Unit,
onDecrease: () -> Unit

์ด ์ฝ”๋“œ์—์„œ๋„ ViewModel ์ง์ ‘ ์ฐธ์กฐ ๋Œ€์‹  ํ•„์š”ํ•œ ์ƒํƒœ์™€ ์ด๋ฒคํŠธ๋งŒ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ๋ฐ›๋„๋ก ๋ณ€๊ฒฝํ•ด์ฃผ์„ธ์š”! ์ด๋ ‡๊ฒŒ ๋ฐ”๊พธ๋ฉด ์ปดํฌ๋„ŒํŠธ๊ฐ€ ํŠน์ • ViewModel์— ์ข…์†๋˜์ง€ ์•Š์•„ ๋‹ค์–‘ํ•œ ์ƒํ™ฉ์—์„œ ์žฌ์‚ฌ์šฉ์ด ๊ฐ€๋Šฅํ•  ๊ฑฐ ๊ฐ™์•„์š”!

Copy link
Member

Choose a reason for hiding this comment

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

๋˜ํ•œ ์ด ์ปดํฌ๋„ŒํŠธ ํ•จ์ˆ˜๋ช…์„ ํŒŒ์ผ๋ช…๊ณผ ์ผ์น˜์‹œํ‚ค๋ฉด ์กฐ๊ธˆ ๋” ๋ณด๊ธฐ ์‰ฌ์šธ ๊ฑฐ ๊ฐ™์•„์š”!

@Composable
fun SeatSelectionTimeCardRow(
contents: PersistentList<TimeCardContent>,
viewModel: SeatSelectViewModel,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
viewModel: SeatSelectViewModel,
selectedIndex: Int,
onCardClick: (Int) -> Unit,

์—ฌ๊ธฐ์„œ๋„ ViewModel ์ง์ ‘ ์ฐธ์กฐ ๋Œ€์‹  ์„ ํƒ๋œ ์ธ๋ฑ์Šค(selectedIndex)์™€ ํด๋ฆญ ์ด๋ฒคํŠธ ์ฝœ๋ฐฑ(onCardClick)์„ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ๋ฐ›๋„๋ก ๋ณ€๊ฒฝํ•˜์—ฌ ์ƒํƒœ ๊ด€๋ฆฌ์˜ ์ฑ…์ž„์„ ์ƒ์œ„ ์ปดํฌ๋„ŒํŠธ๋กœ ์ด๋™์‹œํ‚ค๊ฒŒ ๋œ๋‹ค๋ฉด ์ปดํฌ๋„ŒํŠธ์˜ ์žฌ์‚ฌ์šฉ์„ฑ ํ–ฅ์ƒ์‹œํ‚ฌ ์ˆ˜ ์žˆ์„ ๊ฑฐ ๊ฐ™์•„์š”! ๋˜ํ•œ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ํŠน์ • ViewModel์— ์ข…์†๋˜์ง€ ์•Š์•„ ๋” ๋‹ค์–‘ํ•˜๊ฒŒ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•  ๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹น

@Composable
fun SeatsScreenTopBar(
modifier: Modifier = Modifier,
viewModel: SeatSelectViewModel,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
viewModel: SeatSelectViewModel,
selectedTimeCardIndex: Int,
onTimeCardClick: (Int) -> Unit,
onBackClick: () -> Unit

์—ฌ๊ธฐ์„œ๋„ ViewModel ์˜์กด์„ฑ์„ ์ œ๊ฑฐํ•˜๊ณ  ํ•„์š”ํ•œ ์ƒํƒœ์™€ ์ด๋ฒคํŠธ ์ฝœ๋ฐฑ๋งŒ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ๋ฐ›๋„๋ก ๋ณ€๊ฒฝํ•˜๋ฉด ์ข‹์„ ๊ฑฐ ๊ฐ™์•„์š”! ์ด์œ ๋Š” ์œ„์™€ ๊ฐ™์Šต๋‹ˆ๋‹น

Comment on lines 32 to 33
label: String,
viewModel: SeatSelectViewModel
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
label: String,
viewModel: SeatSelectViewModel
value: Int,
onIncrease: () -> Unit,
onDecrease: () -> Unit

์—ฌ๊ธฐ์„œ๋„ ์ง€๊ธˆ๊นŒ์ง€์™€ ๊ฐ™์€ ์ด์œ ๋กœ ์ด๋ ‡๊ฒŒ ๋ฐ”๊พธ๋ฉด ์ข‹์„ ๊ฑฐ ๊ฐ™์•„์š”!
์ถ”๊ฐ€์ ์œผ๋กœ label์ด ViewModel์˜ stepperValues Map์—์„œ ํ•ด๋‹น Stepper์˜ ๊ฐ’์„ ์ฐพ๋Š” ํ‚ค๋กœ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ๋Š” ๊ฑฐ ๊ฐ™์€๋ฐ ๋งž์„๊นŒ์š”? ์œ„์™€ ๊ฐ™์ด ๋ฐ”๊พธ๋ฉด value๋ฅผ ์ง์ ‘ ๋ฐ›์•„์˜ค๋ฏ€๋กœ Map์—์„œ ๊ฐ’์„ ์ฐพ์„ ํ•„์š”๊ฐ€ ์—†์–ด์ ธ์„œ ์•„๋ž˜ ์ฝ”๋“œ๊ฐ€ ํ•„์š” ์—†์–ด์ง€๊ฒŒ ๋  ๊ฑฐ ๊ฐ™์€๋ฐ ํ•œ๋ฒˆ ํ™•์ธํ•ด์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค!

Comment on lines 59 to 76
if (showBottomSheet){
LaunchedEffect(showBottomSheet) { selectionBottomSheetState.expand() }
SeatSelectionModal1(
modifier = Modifier,
viewModel = viewModel,
movieTitle = movieTitle,
chipContents = chipContents,
onDismiss = {
viewModel.toggleBottomSheet()
focusManager.clearFocus()
},
onBackClick = { viewModel.toggleBottomSheet() },
onSeatSelectionClick = {
viewModel.toggleBottomSheet()
viewModel.toggleSeatConfirmBottomSheet()
},
bottomSheetState = selectionBottomSheetState
)
Copy link
Member

Choose a reason for hiding this comment

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

์ œ๊ฐ€ ๋‹จ ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๋ฐ˜์˜ํ•˜๋ฉด ์ด์ œ ์—ฌ๊ธฐ ๋ถ€๋ถ„๊ณผ

Comment on lines 106 to 110
SeatsScreenTopBar(
modifier = Modifier,
viewModel = viewModel,
timeCardContent = sampleTimeCardData
)
Copy link
Member

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ ๋ถ€๋ถ„๊นŒ์ง€ ์ˆ˜์ •๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹น

Comment on lines 36 to 41
fun SeatSelectScreen(
modifier: Modifier = Modifier,
viewModel: SeatSelectViewModel = viewModel(),
movieTitle: String,
){

Copy link
Member

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ์—
onNavigateBack: () -> Unit = {} ์ด๋ ‡๊ฒŒ ๋„ค๋น„๊ฒŒ์ด์…˜ ์ฝœ๋ฐฑ์„ ์ถ”๊ฐ€ํ•˜๋ฉด
SeatsScreenTopBar์—์„œ ๋’ค๋กœ๊ฐ€๊ธฐ๋ฅผ ํ•  ๋•Œ

SeatsScreenTopBar(
    onBackClick = onNavigateBack 
)

์ด๋ ‡๊ฒŒ ์‚ฌ์šฉํ•˜์—ฌ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋กœ์ง์„ ์ƒ์œ„ ์ปดํฌ๋„ŒํŠธ๋กœ ์ด๋™์‹œํ‚จ๋‹ค๋ฉด ํ™”๋ฉด ๊ฐ„ ์ด๋™์„ ๋” ์œ ์—ฐํ•˜๊ฒŒ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์„ ๊ฑฐ ๊ฐ™์•„์š”!

@tunaunnie tunaunnie requested a review from 0se0 November 26, 2024 17:06
Copy link
Member

@0se0 0se0 left a comment

Choose a reason for hiding this comment

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

์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค~!!ใ…Žใ…Ž ์ฒด๊ณ !!

@tunaunnie tunaunnie merged commit 67e8719 into develop Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] seats / SeatsScreen ui ๊ตฌํ˜„
3 participants