Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/android_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
KAKAO_NATIVE_APP_KEY: ${{ secrets.KAKAO_NATIVE_APP_KEY }}
AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }}
GOOGLE_ADS_API_ID: ${{ secrets.GOOGLE_ADS_API_ID }}
GOOGLE_ADS_API_ID_MANIFEST: ${{ secrets.GOOGLE_ADS_API_ID }}
GOOGLE_ADS_API_ID_MANIFEST: ${{ secrets.GOOGLE_ADS_API_ID_MANIFEST }}
run: |
echo "dev.base.url=\"$HFM_BASE_URL\"" >> local.properties
echo "kakao.native.app.key.manifest=\"$KAKAO_NATIVE_APP_KEY_MANIFEST\"" >> local.properties
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
KAKAO_REST_API_KEY: ${{ secrets.KAKAO_REST_API_KEY }}
AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }}
GOOGLE_ADS_API_ID: ${{ secrets.GOOGLE_ADS_API_ID }}
GOOGLE_ADS_API_ID_MANIFEST: ${{ secrets.GOOGLE_ADS_API_ID }}
GOOGLE_ADS_API_ID_MANIFEST: ${{ secrets.GOOGLE_ADS_API_ID_MANIFEST }}
run: |
echo "dev.base.url=\"$BASE_URL\"" >> local.properties
echo "kakao.base.url=\"$KAKAO_BASE_URL\"" >> local.properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ enum class TagType(
PLACE_CARD_TIME(
backgroundColor = defaultDateRoadColors.gray200,
contentColor = defaultDateRoadColors.black,
paddingHorizontal = 14,
paddingHorizontal = 0,
paddingVertical = 5,
textStyle = defaultDateRoadTypography.bodyMed13,
roundedCornerShape = 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fun DateRoadPlaceCard(
place: Place,
onIconClick: (() -> Unit)? = null
) {
val paddingValues = Modifier.padding(start = placeCardType.startPadding, end = 17.dp)
val paddingValues = Modifier.padding(start = placeCardType.startPadding, end = 13.dp)

Row(
modifier = modifier
Expand Down Expand Up @@ -75,7 +75,7 @@ fun DateRoadPlaceCard(
Spacer(modifier = Modifier.width(10.dp))

DateRoadTextTag(
modifier = Modifier.width(74.dp),
modifier = Modifier.width(61.dp),
textContent = place.duration,
tagContentType = TagType.PLACE_CARD_TIME
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
package org.sopt.teamdateroad.presentation.ui.pointhistory

import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
Expand All @@ -40,7 +49,6 @@ import org.sopt.teamdateroad.presentation.ui.component.dialog.DateRoadOneButtonD
import org.sopt.teamdateroad.presentation.ui.component.tabbar.DateRoadTabBar
import org.sopt.teamdateroad.presentation.ui.component.tabbar.DateRoadTabTitle
import org.sopt.teamdateroad.presentation.ui.component.topbar.DateRoadBasicTopBar
import org.sopt.teamdateroad.presentation.ui.component.view.DateRoadEmptyView
import org.sopt.teamdateroad.presentation.ui.component.view.DateRoadErrorView
import org.sopt.teamdateroad.presentation.ui.component.view.DateRoadIdleView
import org.sopt.teamdateroad.presentation.ui.component.view.DateRoadLoadingView
Expand Down Expand Up @@ -204,12 +212,35 @@ fun PointHistoryScreen(
PointHistoryTabType.USED_HISTORY -> pointHistoryUiState.pointHistory.used
}
if (pointHistory.isEmpty()) {
DateRoadEmptyView(
emptyViewType = when (pointHistoryUiState.pointHistoryTabType) {
PointHistoryTabType.USED_HISTORY -> EmptyViewType.POINT_HISTORY_USED_HISTORY
PointHistoryTabType.GAINED_HISTORY -> EmptyViewType.POINT_HISTORY_GAINED_HISTORY
}
)
val emptyViewType = when (pointHistoryUiState.pointHistoryTabType) {
PointHistoryTabType.USED_HISTORY -> EmptyViewType.POINT_HISTORY_USED_HISTORY
PointHistoryTabType.GAINED_HISTORY -> EmptyViewType.POINT_HISTORY_GAINED_HISTORY
}
Column(
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center,
modifier = Modifier.fillMaxSize()
) {
Image(
modifier = Modifier
.wrapContentHeight()
.fillMaxWidth(),
painter = painterResource(id = emptyViewType.imageRes),
contentDescription = null,
contentScale = ContentScale.FillWidth
)
Spacer(modifier = Modifier.height(57.dp))
Text(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 20.dp),
text = stringResource(id = emptyViewType.titleRes),
color = DateRoadTheme.colors.gray300,
style = DateRoadTheme.typography.titleBold18,
textAlign = TextAlign.Center
)
Spacer(modifier = Modifier.height(20.dp))
}
} else {
LazyColumn {
items(pointHistory.size) { index ->
Expand Down
Loading