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