feat(home): add "5-minute check-in" time budget framing to daily question card

This commit is contained in:
null 2026-06-20 23:46:28 -05:00
parent 2a1e5fad10
commit bc3317c65a
1 changed files with 24 additions and 1 deletions

View File

@ -356,6 +356,16 @@ private fun PrimaryHomeActionCard(
else -> action.body
}
val timeBudgetLabel = when (action.target) {
HomeActionTarget.DailyQuestion -> when (dailyQuestion?.type) {
"scale" -> "~1 min"
"single_choice" -> "~2 min"
"this_or_that" -> "~2 min"
else -> "~3 min"
}
else -> null
}
CloserCard(
modifier = Modifier.fillMaxWidth(),
shape = RoundedCornerShape(CloserRadii.FeatureCard),
@ -380,7 +390,20 @@ private fun PrimaryHomeActionCard(
verticalAlignment = Alignment.CenterVertically
) {
HomePill(action.eyebrow)
action.metric?.let { HomePill(it) }
Row(horizontalArrangement = Arrangement.spacedBy(6.dp)) {
timeBudgetLabel?.let { label ->
HomePill(label)
}
action.metric?.let { HomePill(it) }
}
}
if (action.target == HomeActionTarget.DailyQuestion) {
Text(
text = "Got 5 min?",
style = MaterialTheme.typography.labelSmall.copy(fontWeight = FontWeight.SemiBold),
color = MaterialTheme.colorScheme.onSurfaceVariant
)
}
Row(