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/#47 design system alert #51

Merged
merged 8 commits into from
Dec 11, 2023
Merged

Conversation

lsakee
Copy link
Contributor

@lsakee lsakee commented Dec 11, 2023

๐Ÿ“Œ PR ์š”์•ฝ

๐ŸŒฑ ์ž‘์—…ํ•œ ๋‚ด์šฉ

  • ๋‹ค์ด์–ผ๋กœ๊ทธ component
  • toast view component

๐ŸŒฑ PR ํฌ์ธํŠธ

  • ๋‹ค์ด์–ผ๋กœ๊ทธ ์ปดํฌ๋„ŒํŠธ ๋ทฐ ํ™•์ธํ•ด์ฃผ์„ธ์š”
  • ํ† ์ŠคํŠธ ๋ทฐ ํ™•์ธ ํ•ด์ฃผ์„ธ์š”
  • ๋„ค์ด๋ฐ ์ปจ๋ฒค์…˜ ํ™•์ธ ํ•ด์ฃผ์„ธ์š”
    ๐ŸŒฑ PR ํฌ์ธํŠธ2
  • ์ถ”๊ฐ€ ๋ฐ˜์˜ ์‚ฌํ•ญ - pr ๋ฆฌ๋ทฐ ๋ฐ˜์˜ ํ•˜์˜€์Šต๋‹ˆ๋‹ค
  • ๋ฒ„ํŠผ ์ปดํฌ๋„ŒํŠธ ์†์„ฑ 1๊ฐœ ๋ฐ”๊ผ‡์Šต๋‹ˆ๋‹ค

๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท

|์Šคํฌ๋ฆฐ์ƒท|

Image 1 Image 2
|:--:| |ํŒŒ์ผ์ฒจ๋ถ€๋ฐ”๋žŒ|

๐Ÿ“ฎ ๊ด€๋ จ ์ด์Šˆ

@lsakee lsakee added the feature label Dec 11, 2023
@lsakee lsakee requested review from jinukeu and BEEEAM-J December 11, 2023 11:16
Copy link
Member

@jinukeu jinukeu 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 23 to 35
@Composable
fun basicAlertDialog(
onDismissRequest: () -> Unit,
properties: DialogProperties = DialogProperties(),
content: @Composable () -> Unit,
) {
Dialog(
onDismissRequest = onDismissRequest,
properties = properties,
) {
content()
}
}
Copy link
Member

Choose a reason for hiding this comment

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

basicAlertDialog๋ž‘ Dialog๋ž‘ ์™„์ „ํžˆ ๋™์ผํ•œ๋ฐ basic์œผ๋กœ ๋งŒ๋“  ์ด์œ ๊ฐ€ ๊ถ๊ธˆํ•ด์š”~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://sungbin.land/jetpack-compose-%EC%99%84%EB%B2%BD%ED%95%9C-%EC%BB%A4%EC%8A%A4%ED%85%80-%EB%8B%A4%EC%9D%B4%EC%96%BC%EB%A1%9C%EA%B7%B8-%EB%A7%8C%EB%93%A4%EA%B8%B0-79aab4c3023e
์š”๋ธ”๋กœ๊ทธ๋ฅผ ์ฐธ๊ณ ํ•˜๋ฉฐ ๊ตฌํ˜„ํ•˜์˜€๋Š”๋ฐ ํ˜„์žฌ๊นŒ์ง€๋Š” ์™„์ „ํžˆ ๋™์ผํ•˜๋‹ˆ ๋นผ๋„์ข‹์„๊ฑฐ ๊ฐ™์ง€๋งŒ Dialog๊ฐ€ ๋™์ผํ•˜์ง€ ์•Š์„ ์ˆ˜๋„ ์žˆ๋‹ค๊ณ  ์ƒ๊ฐํ•˜์˜€์Šต๋‹ˆ๋‹ค!

Copy link
Member

Choose a reason for hiding this comment

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

์Œ ๊ทผ๋ฐ ์‚ญ๋‹˜์ด ๋งŒ๋“œ์‹  basicAlertDialog๋„ ๊ฑฐ์˜ ๋ฐฑ์ง€์— ๊ฐ€๊นŒ์šด ์ปดํฌ์ €๋ธ”์ด๊ณ  Dialog๋„ ๋ฐฑ์ง€์— ๊ฐ€๊นŒ์šด ์ปดํฌ์ €๋ธ”์ด์–ด์„œ์š”.
basicAlertDialog์— ํ‹€์ด ์žกํ˜€์žˆ๋Š”๊ฒŒ ์•„๋‹ˆ๊ธฐ์— Dialog์™€ ๋™์ผํ•œ ์ปดํฌ์ €๋ธ”์ด๋ผ ์ƒ๊ฐํ•ด์š”.
์ด๋Ÿฐ ์ด์œ ๋กœ ๋‹ค๋ฅธ ํ˜•ํƒœ์˜ Dialog๊ฐ€ ๋‚˜์˜จ๋‹คํ•ด๋„ basicAlertDialog์„ ์‚ฌ์šฉํ•ด์„œ ๊ตฌํ˜„ํ•˜๋Š” ๊ฒƒ๊ณผ Dialog๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๊ตฌํ˜„ํ•˜๋Š” ๊ฒƒ๊ณผ ์ฐจ์ด๊ฐ€ ์—†๋‹ค ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

๋˜ ์ „์ฒด ๋””์ž์ธ์ด ์ด๋ฏธ ๋‚˜์˜จ ์ƒํƒœ์ด๊ธฐ์— ์ƒˆ๋กœ์šด Dialog๊ฐ€ ๋‚˜์˜ฌ ์ผ์€ ์—†์–ด๋ณด์ž…๋‹ˆ๋‹น

BaseActivity์™€ Activity๊ฐ€ ์•„์˜ˆ ๋™์ผํ•˜๋‹ค๋ฉด Activity๋งŒ ์‚ฌ์šฉํ•˜๋Š”๊ฒŒ ์ข‹์€ ๊ฒƒ ์ฒ˜๋Ÿผ์š”!

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 45 to 46
onConfirmClick: () -> Unit,
onDismissClicked: () -> Unit,
Copy link
Member

Choose a reason for hiding this comment

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

Clicked๋ž‘ Click ์ฐจ์ด๊ฐ€ ๋ญ”๊ฐ€์š”!?

onClickConfirm, onClickDismiss๋กœ ์ˆœ์„œ ๋ฐ”๊ฟ”์ฃผ์„ธ์š”~!

),
color = Color.Transparent,
) {
// ์•„์ด์ฝ˜์ด ์ถ”๊ฐ€ ๋ ์ˆ˜ ์žˆ์„๊ฑฐ ๊ฐ™์•„ ์ผ๋‹จ Row๋กœ ํ•ด๋‘์—ˆ์Šต๋‹ˆ๋‹ค.
Copy link
Member

Choose a reason for hiding this comment

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

dryํ•˜๊ฒŒ ๊ฐ€์‹œ์ฃต Row ์ œ๊ฑฐํ•ด์ฃผ์„ธ์š”

Comment on lines 74 to 78
SuwikiContainedGreyButtonSmall(
onClick = onDismissClicked,
text = dismissButtonText,
modifier = Modifier.padding(2.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.

SuwikiContainedGreyButtonSmall ๋ฒ„ํŠผ๊ณผ SuwikiContainedButtonSmall ๋ฒ„ํŠผ์˜ ํŒจ๋”ฉ ์ฐจ์ด๊ฐ€ ์žˆ์–ด ์ €๋ ‡๊ฒŒ ๊ตฌํ˜„ํ•˜์˜€์Šต๋‹ˆ๋‹ค!

Copy link
Member

Choose a reason for hiding this comment

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

์•„ํ•˜ PR์— ์ฒจ๋ถ€ํ•œ ์‚ฌ์ง„์„ ๋ณด๋‹ˆ ๋ฐฑ๊ทธ๋ผ์šด๋“œ ์ปฌ๋Ÿฌ๊ฐ€ ๋“ค์–ด๊ฐ”๋”๋ผ๊ตฌ์š”!?


@Composable
fun SuwikiToastView(
messageTxt: String,
Copy link
Member

Choose a reason for hiding this comment

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

messageText๋กœ ๋ณ€๊ฒฝ ๊ฐ€๋Šฅํ• ๊นŒ์š”!?

@lsakee lsakee requested a review from jinukeu December 11, 2023 15:25
Copy link
Member

@jinukeu jinukeu left a comment

Choose a reason for hiding this comment

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

๐Ÿ’ฏ ๐Ÿ‘

color = Gray95,
shape = RoundedCornerShape(25.dp),
),
color = Color.Transparent,
Copy link
Member

Choose a reason for hiding this comment

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

Surface ๋งŽ์ด ์ž˜ ๋ชฐ๋ผ์„œ ๊ทธ๋Ÿฐ๋ฐ color = Color.Transparent ์ด๊ฑธ ๋”ฐ๋กœ ์ •์˜ํ•œ ์ด์œ ๊ฐ€ ๋ญ”๊ฐ€์š”???
background๋ž‘ ๋ฌด์Šจ ์ฐจ์ด์ธ์ง€ ์ž˜ ๋ชจ๋ฅด๊ฒ ์–ด์„œ..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Surface๊ฐ€ ํˆฌ๋ช…ํ•œ ๋ฐฐ๊ฒฝ์„ ๊ฐ€์ง€๋„๋ก ํ•„์š”ํ•œ ์ฝ”๋“œ์ž…๋‹ˆ๋‹ค.
๋ฐฑ๊ทธ๋ผ์šด๋“œ ์„ค์ •์œผ๋กœ ๊ฐ€๋ ค์ง„ ์†์„ฑ์ด ๋ณด์ด์ง€ ์•Š๋Š” ๊ฒƒ์„ ๋ฐฉ์ง€ํ•˜๋Š” ์ฝ”๋“œ ์ž…๋‹ˆ๋‹ค.
์ €์ฝ”๋“œ ์ง€์šฐ๋ฉด ํ† ์ŠคํŠธ ๋ทฐ๋Š” ๋ณด์ด์ง€ ์•Š์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค!

Copy link
Member

@BEEEAM-J BEEEAM-J left a comment

Choose a reason for hiding this comment

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

์ฝ”๋“œ ์•„์ฃผ ๊น”๋”ํ•˜๋„ค์œ  ๐Ÿ‘๐Ÿ‘
๋ณด๊ธฐ ์•„์ฃผ ์ข‹์Šต๋‹ˆ๋‹ค

@lsakee lsakee merged commit 17944e8 into develop Dec 11, 2023
1 check passed
@jinukeu jinukeu deleted the feature/#47-design-system-alert branch December 20, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] Feature Modal
3 participants