Skip to content

Commit

Permalink
fix: quack 이슈로 인한 임시버튼 제거 (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
limsaehyun authored Nov 19, 2023
1 parent 5575ad6 commit 5dbd5b7
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 143 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import team.duckie.app.android.common.compose.ui.quack.todo.QuackSurface
import team.duckie.app.android.common.compose.ui.temp.TempFlexiblePrimaryLargeButton
import team.duckie.app.android.feature.exam.result.R
import team.duckie.quackquack.material.QuackColor
import team.duckie.quackquack.ui.sugar.QuackPrimaryLargeButton
import team.duckie.quackquack.ui.sugar.QuackSubtitle
import team.duckie.quackquack.ui.util.ExperimentalQuackQuackApi

Expand Down Expand Up @@ -53,7 +53,7 @@ internal fun ResultBottomBar(
onClick = onClickRetryButton,
)
}
TempFlexiblePrimaryLargeButton(
QuackPrimaryLargeButton(
modifier = Modifier.weight(1f),
text = stringResource(id = R.string.exam_result_exit_exam),
onClick = onClickExitButton,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ import kotlinx.coroutines.launch
import org.orbitmvi.orbit.compose.collectAsState
import team.duckie.app.android.common.compose.activityViewModel
import team.duckie.app.android.common.compose.ui.Spacer
import team.duckie.app.android.common.compose.ui.temp.TempFlexiblePrimaryLargeButton
import team.duckie.app.android.feature.home.R
import team.duckie.app.android.feature.home.constants.GuideStep
import team.duckie.app.android.feature.home.viewmodel.guide.HomeGuideViewModel
import team.duckie.quackquack.material.QuackColor
import team.duckie.quackquack.material.QuackTypography
import team.duckie.quackquack.material.quackClickable
import team.duckie.quackquack.ui.QuackText
import team.duckie.quackquack.ui.sugar.QuackPrimaryLargeButton
import team.duckie.quackquack.ui.util.ExperimentalQuackQuackApi

@Composable
Expand Down Expand Up @@ -148,7 +148,7 @@ private fun HomeGuideStartScreen(
),
)
Spacer(space = 20.dp)
TempFlexiblePrimaryLargeButton(
QuackPrimaryLargeButton(
text = stringResource(id = R.string.guide_start_accept_message),
modifier = Modifier.size(118.dp, 44.dp),
enabled = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import team.duckie.app.android.common.compose.ui.DuckTestCoverItem
import team.duckie.app.android.common.compose.ui.DuckieHorizontalPagerIndicator
import team.duckie.app.android.common.compose.ui.quack.todo.QuackAnnotatedText
import team.duckie.app.android.common.compose.ui.skeleton
import team.duckie.app.android.common.compose.ui.temp.TempFlexiblePrimaryLargeButton
import team.duckie.app.android.common.kotlin.addHashTag
import team.duckie.app.android.domain.exam.model.Exam
import team.duckie.app.android.domain.recommendation.model.ExamType
Expand All @@ -76,6 +75,7 @@ import team.duckie.quackquack.material.QuackTypography
import team.duckie.quackquack.ui.QuackText
import team.duckie.quackquack.ui.sugar.QuackBody3
import team.duckie.quackquack.ui.sugar.QuackLarge1
import team.duckie.quackquack.ui.sugar.QuackPrimaryLargeButton
import team.duckie.quackquack.ui.util.ExperimentalQuackQuackApi

private val HomeHorizontalPadding = PaddingValues(horizontal = 16.dp)
Expand Down Expand Up @@ -240,7 +240,7 @@ private fun HomeRecommendJumbotronLayout(
)
Spacer(modifier = Modifier.height(24.dp))

TempFlexiblePrimaryLargeButton(
QuackPrimaryLargeButton(
modifier = Modifier
.fillMaxWidth()
.skeleton(isLoading),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import team.duckie.app.android.common.compose.ui.Spacer
import team.duckie.app.android.common.compose.ui.constant.SharedIcon
import team.duckie.app.android.common.compose.ui.quack.todo.QuackErrorableTextField
import team.duckie.app.android.common.compose.ui.quack.todo.QuackErrorableTextFieldState
import team.duckie.app.android.common.compose.ui.temp.TempFlexiblePrimaryLargeButton
import team.duckie.app.android.common.kotlin.runIf
import team.duckie.app.android.feature.onboard.R
import team.duckie.app.android.feature.onboard.common.OnboardTopAppBar
Expand All @@ -83,6 +82,7 @@ import team.duckie.quackquack.material.quackClickable
import team.duckie.quackquack.material.shape.SquircleShape
import team.duckie.quackquack.ui.QuackImage
import team.duckie.quackquack.ui.optin.ExperimentalDesignToken
import team.duckie.quackquack.ui.sugar.QuackPrimaryLargeButton
import team.duckie.quackquack.ui.util.ExperimentalQuackQuackApi

private val currentStep = OnboardStep.Profile
Expand Down Expand Up @@ -229,7 +229,7 @@ internal fun ProfileScreen(vm: OnboardViewModel = activityViewModel()) {
)

Spacer(weight = 1f)
TempFlexiblePrimaryLargeButton(
QuackPrimaryLargeButton(
modifier = Modifier.fillMaxWidth(),
text = stringResource(R.string.button_next),
enabled = profileScreenState == ProfileScreenState.Valid &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

@file:Suppress("ConstPropertyName", "PrivatePropertyName")
@file:OptIn(ExperimentalQuackQuackApi::class)

package team.duckie.app.android.feature.onboard.screen

Expand Down Expand Up @@ -35,7 +36,6 @@ import team.duckie.app.android.common.compose.systemBarPaddings
import team.duckie.app.android.common.compose.ui.quack.todo.QuackGridLayout
import team.duckie.app.android.common.compose.ui.quack.todo.QuackSelectableImage
import team.duckie.app.android.common.compose.ui.quack.todo.QuackSelectableImageType
import team.duckie.app.android.common.compose.ui.temp.TempFlexiblePrimaryLargeButton
import team.duckie.app.android.common.kotlin.fastAny
import team.duckie.app.android.common.kotlin.fastFirstOrNull
import team.duckie.app.android.common.kotlin.fastMapIndexedNotNull
Expand All @@ -45,7 +45,9 @@ import team.duckie.app.android.feature.onboard.common.OnboardTopAppBar
import team.duckie.app.android.feature.onboard.common.TitleAndDescription
import team.duckie.app.android.feature.onboard.constant.OnboardStep
import team.duckie.app.android.feature.onboard.viewmodel.OnboardViewModel
import team.duckie.quackquack.ui.sugar.QuackPrimaryLargeButton
import team.duckie.quackquack.ui.sugar.QuackTitle2
import team.duckie.quackquack.ui.util.ExperimentalQuackQuackApi

private val currentStep = OnboardStep.Category

Expand Down Expand Up @@ -157,7 +159,7 @@ internal fun CategoryScreen(vm: OnboardViewModel = activityViewModel()) {
)
}
}
TempFlexiblePrimaryLargeButton(
QuackPrimaryLargeButton(
modifier = Modifier
.layoutId(CategoryScreenNextButtonLayoutId)
.fillMaxWidth()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ import team.duckie.app.android.common.compose.systemBarPaddings
import team.duckie.app.android.common.compose.ui.domain.DuckieTagAddBottomSheet
import team.duckie.app.android.common.compose.ui.quack.todo.QuackCircleTag
import team.duckie.app.android.common.compose.ui.quack.todo.QuackOutLinedSingeLazyRowTag
import team.duckie.app.android.common.compose.ui.temp.TempFlexiblePrimaryLargeButton
import team.duckie.app.android.common.kotlin.AllowMagicNumber
import team.duckie.app.android.common.kotlin.fastAny
import team.duckie.app.android.common.kotlin.fastFirstOrNull
Expand All @@ -79,6 +78,7 @@ import team.duckie.quackquack.material.QuackColor
import team.duckie.quackquack.material.QuackTypography
import team.duckie.quackquack.material.quackClickable
import team.duckie.quackquack.ui.QuackText
import team.duckie.quackquack.ui.sugar.QuackPrimaryLargeButton
import team.duckie.quackquack.ui.sugar.QuackTitle2
import team.duckie.quackquack.ui.util.ExperimentalQuackQuackApi

Expand Down Expand Up @@ -179,10 +179,8 @@ internal fun TagScreen(vm: OnboardViewModel = activityViewModel()) {
},
)

// TODO(riflockle7): 문제 있으므로 꽥꽥 이슈 해결할 때까지 주석 제거하지 않음
// type = QuackLargeButtonType.Fill,
// isLoading = isLoadingToFinish,
TempFlexiblePrimaryLargeButton(
QuackPrimaryLargeButton(
modifier = Modifier
.layoutId(TagScreenQuackLargeButtonLayoutId)
.fillMaxWidth()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import kotlinx.collections.immutable.persistentListOf
import kotlinx.collections.immutable.toImmutableList
import team.duckie.app.android.common.compose.ui.BackPressedHeadLineTopAppBar
import team.duckie.app.android.common.compose.ui.DuckTestCoverItem
import team.duckie.app.android.common.compose.ui.temp.TempFlexibleSecondaryLargeButton
import team.duckie.app.android.common.kotlin.FriendsType
import team.duckie.app.android.domain.exam.model.ProfileExam
import team.duckie.app.android.domain.user.model.UserProfile
Expand All @@ -43,6 +42,7 @@ import team.duckie.quackquack.material.icon.quackicon.outlined.Notice
import team.duckie.quackquack.material.icon.quackicon.outlined.Setting
import team.duckie.quackquack.material.quackClickable
import team.duckie.quackquack.ui.QuackIcon
import team.duckie.quackquack.ui.sugar.QuackSecondaryLargeButton
import team.duckie.quackquack.ui.util.ExperimentalQuackQuackApi

@Suppress("UnusedPrivateMember") // 시험 생성하기를 추후에 다시 활용하기 위함
Expand Down Expand Up @@ -120,7 +120,7 @@ fun MyProfileScreen(
title = stringResource(id = R.string.my_favorite_tag),
tags = tags,
emptySection = {
TempFlexibleSecondaryLargeButton(
QuackSecondaryLargeButton(
modifier = Modifier.fillMaxWidth(),
text = stringResource(id = R.string.add_favorite_tag),
onClick = onClickEditTag,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import androidx.compose.ui.unit.dp
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import team.duckie.app.android.common.compose.ui.BackPressedTopAppBar
import team.duckie.app.android.common.compose.ui.ImeSpacer
import team.duckie.app.android.common.compose.ui.temp.TempFlexiblePrimaryLargeButton
import team.duckie.app.android.feature.start.exam.R
import team.duckie.app.android.feature.start.exam.screen.StartExamScreen
import team.duckie.app.android.feature.start.exam.viewmodel.StartExamState
Expand All @@ -36,6 +35,7 @@ import team.duckie.quackquack.material.QuackColor
import team.duckie.quackquack.material.QuackTypography
import team.duckie.quackquack.ui.QuackText
import team.duckie.quackquack.ui.sugar.QuackHeadLine1
import team.duckie.quackquack.ui.sugar.QuackPrimaryLargeButton
import team.duckie.quackquack.ui.util.ExperimentalQuackQuackApi

/**
Expand Down Expand Up @@ -84,7 +84,8 @@ internal fun StartExamInputScreen(modifier: Modifier, viewModel: StartExamViewMo
Spacer(modifier = Modifier.weight(1f))

// 시험시작 버튼
TempFlexiblePrimaryLargeButton(
QuackPrimaryLargeButton(

modifier = Modifier
.fillMaxWidth()
.padding(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import androidx.lifecycle.compose.collectAsStateWithLifecycle
import team.duckie.app.android.common.compose.ui.BackPressedTopAppBar
import team.duckie.app.android.common.compose.ui.ImeSpacer
import team.duckie.app.android.common.compose.ui.Spacer
import team.duckie.app.android.common.compose.ui.temp.TempFlexiblePrimaryLargeButton
import team.duckie.app.android.common.compose.util.rememberUserInputState
import team.duckie.app.android.feature.start.exam.R
import team.duckie.app.android.feature.start.exam.screen.exam.StartExamTextField
Expand All @@ -52,6 +51,7 @@ import team.duckie.quackquack.material.QuackTypography
import team.duckie.quackquack.ui.optin.ExperimentalDesignToken
import team.duckie.quackquack.ui.sugar.QuackBody2
import team.duckie.quackquack.ui.sugar.QuackHeadLine1
import team.duckie.quackquack.ui.sugar.QuackPrimaryLargeButton
import team.duckie.quackquack.ui.sugar.QuackTitle2
import team.duckie.quackquack.ui.util.ExperimentalQuackQuackApi

Expand Down Expand Up @@ -107,7 +107,7 @@ internal fun StartQuizInputScreen(modifier: Modifier, viewModel: StartExamViewMo
)
}
Spacer(modifier = Modifier.weight(1f))
TempFlexiblePrimaryLargeButton(
QuackPrimaryLargeButton(
modifier = Modifier
.fillMaxWidth()
.padding(
Expand All @@ -118,6 +118,17 @@ internal fun StartQuizInputScreen(modifier: Modifier, viewModel: StartExamViewMo
onClick = viewModel::startSolveProblem,
enabled = certifyingStatementText.isNotEmpty(),
)
// TempFlexiblePrimaryLargeButton(
// modifier = Modifier
// .fillMaxWidth()
// .padding(
// vertical = 12.dp,
// horizontal = 16.dp,
// ),
// text = stringResource(id = R.string.start_exam_quiz_start_button),
// onClick = viewModel::startSolveProblem,
// enabled = certifyingStatementText.isNotEmpty(),
// )
ImeSpacer()
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ quack-lint-compose = "1.0.2"
# TODO(sungbin): quack-lint-writing

# quack v2
quack-v2-ui = "2.0.0-alpha14"
quack-v2-ui = "2.0.0-alpha15"
quack-v2-ui-plugin-interceptor-textfield ="2.0.0-alpha01"

# test
Expand Down

0 comments on commit 5dbd5b7

Please sign in to comment.