feat(home): escalate daily-question art by state (partner prompt → reveal ready)

This commit is contained in:
null 2026-07-01 02:55:15 -05:00
parent 6d0a52641c
commit d03e071098
1 changed files with 10 additions and 9 deletions

View File

@ -1007,14 +1007,15 @@ private fun PrimaryHomeActionCard(
) {
val colors = action.tone.actionColors()
val isDark = isCloserDarkTheme()
// The reveal-waiting moment (you answered, then your partner did) gets its own warm couple art so
// "your reveal is waiting" reads as the night's focus. Every other daily-question state keeps the
// default target-based art.
val artRes = if (
action.target == HomeActionTarget.DailyQuestion &&
dailyQuestionState == DailyQuestionState.BOTH_ANSWERED
) {
R.drawable.illustration_tonight_partner_prompt
// Daily-question art escalates with the ritual:
// partner prompt before anyone answers, answer cards while one partner is waiting,
// then a dedicated reveal-ready illustration once both answered.
val artRes = if (action.target == HomeActionTarget.DailyQuestion) {
when (dailyQuestionState) {
DailyQuestionState.UNANSWERED -> R.drawable.illustration_tonight_partner_prompt
DailyQuestionState.BOTH_ANSWERED -> R.drawable.illustration_daily_reveal_ready
else -> homePrimaryArt(action.target)
}
} else {
homePrimaryArt(action.target)
}
@ -1745,7 +1746,7 @@ fun PairedHomePreviewScreen(onNavigate: (String) -> Unit = {}) {
category = "emotional_intimacy",
depthLevel = 2
),
dailyQuestionState = DailyQuestionState.BOTH_ANSWERED,
dailyQuestionState = DailyQuestionState.PARTNER_ANSWERED_USER_PENDING,
hasPartnerAnsweredToday = true,
partnerAnsweredQuestionId = "demo",
answerStats = HomeAnswerStats(total = 24, revealed = 18, private = 6),