-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feature/jaino/#85
- Loading branch information
Showing
18 changed files
with
500 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:pathData="M7.954,0C5.846,0.003 3.824,0.842 2.333,2.333C0.842,3.824 0.003,5.846 0,7.954C0.003,10.063 0.842,12.085 2.333,13.576C3.824,15.067 5.846,15.906 7.954,15.909C9.292,15.909 10.552,15.569 11.659,14.981L20.458,23.78C20.599,23.921 20.789,24 20.988,24C21.187,24 21.378,23.921 21.518,23.78L23.78,21.515C23.921,21.375 24,21.184 24,20.985C24,20.786 23.921,20.596 23.78,20.455L14.982,11.659C15.588,10.519 15.906,9.246 15.906,7.954C15.903,5.846 15.065,3.825 13.574,2.333C12.084,0.842 10.063,0.003 7.954,0ZM7.954,1.5C11.527,1.5 14.404,4.38 14.404,7.954C14.406,8.802 14.24,9.642 13.917,10.425C13.593,11.209 13.118,11.921 12.519,12.521C11.92,13.12 11.208,13.595 10.425,13.92C9.642,14.243 8.802,14.41 7.954,14.409C7.106,14.41 6.266,14.244 5.483,13.92C4.699,13.596 3.987,13.121 3.387,12.521C2.788,11.922 2.312,11.21 1.988,10.426C1.665,9.642 1.499,8.802 1.5,7.954C1.499,7.106 1.665,6.266 1.988,5.483C2.312,4.699 2.788,3.987 3.387,3.387C3.987,2.788 4.699,2.312 5.483,1.988C6.266,1.664 7.106,1.499 7.954,1.5ZM10.795,4.905C10.686,4.904 10.578,4.927 10.479,4.972C10.38,5.017 10.291,5.082 10.219,5.164L6.427,9.477L4.462,8.253C3.601,7.668 2.766,9.009 3.667,9.525L6.172,11.085C6.323,11.179 6.503,11.216 6.679,11.19C6.855,11.164 7.017,11.076 7.134,10.942L11.347,6.151C11.444,6.044 11.507,5.911 11.53,5.768C11.552,5.626 11.534,5.48 11.475,5.347C11.417,5.215 11.322,5.103 11.201,5.024C11.081,4.944 10.94,4.902 10.795,4.9V4.905ZM14.2,12.998L22.189,20.985L20.989,22.189L12.999,14.2L14.2,12.998Z" | ||
android:fillColor="#202022"/> | ||
</vector> |
113 changes: 35 additions & 78 deletions
113
feature/survey-check/src/main/java/com/wap/wapp/feature/survey/check/SurveyCheckScreen.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
feature/survey-check/src/main/java/com/wap/wapp/feature/survey/check/SurveyItemCard.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package com.wap.wapp.feature.survey.check | ||
|
||
import androidx.compose.foundation.clickable | ||
import androidx.compose.foundation.layout.Arrangement | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.Row | ||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material3.Card | ||
import androidx.compose.material3.CardDefaults | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.unit.dp | ||
import com.wap.designsystem.WappTheme | ||
import com.wap.wapp.core.model.survey.Survey | ||
|
||
@Composable | ||
internal fun SurveyItemCard( | ||
onCardClicked: (String) -> Unit, | ||
survey: Survey, | ||
) { | ||
Card( | ||
colors = CardDefaults.cardColors( | ||
containerColor = WappTheme.colors.black25, | ||
), | ||
modifier = Modifier | ||
.fillMaxWidth() | ||
.clickable { onCardClicked(survey.surveyId) }, | ||
) { | ||
Column( | ||
verticalArrangement = Arrangement.spacedBy(16.dp), | ||
modifier = Modifier.padding(16.dp), | ||
) { | ||
Row( | ||
horizontalArrangement = Arrangement.End, | ||
modifier = Modifier.fillMaxWidth(), | ||
) { | ||
Text( | ||
text = survey.title, | ||
modifier = Modifier.weight(1f), | ||
maxLines = 1, | ||
color = WappTheme.colors.white, | ||
style = WappTheme.typography.titleBold, | ||
) | ||
|
||
Text( | ||
text = survey.eventName, | ||
color = WappTheme.colors.grayA2, | ||
style = WappTheme.typography.captionMedium, | ||
) | ||
} | ||
|
||
Text( | ||
text = survey.userName, | ||
color = WappTheme.colors.grayBD, | ||
style = WappTheme.typography.contentMedium, | ||
) | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ure/survey/check/ObjectiveQuestionCard.kt → ...vey/check/detail/ObjectiveQuestionCard.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...re/survey/check/SubjectiveQuestionCard.kt → ...ey/check/detail/SubjectiveQuestionCard.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.