feat(packs): route pack Discuss to the unified conversation

Replace the orphaned in-thread QuestionDiscussionThread (which wrote to question_threads
and sent no notifications) with a 'Discuss this together' button that opens the conversation
(q_<questionId>), same as the daily flow — so pack discussions are notified and appear in
the Messages inbox.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
null 2026-06-24 18:55:40 -05:00
parent 7a9ff31ae6
commit 6580299f05
1 changed files with 13 additions and 12 deletions

View File

@ -46,7 +46,6 @@ import app.closer.ui.components.ErrorState
import app.closer.ui.components.LoadingState import app.closer.ui.components.LoadingState
import app.closer.ui.questions.components.AnswerBubble import app.closer.ui.questions.components.AnswerBubble
import app.closer.ui.questions.components.QuestionAnswerInput import app.closer.ui.questions.components.QuestionAnswerInput
import app.closer.ui.questions.components.QuestionDiscussionThread
import app.closer.ui.questions.components.QuestionHeader import app.closer.ui.questions.components.QuestionHeader
import app.closer.ui.theme.closerBackgroundBrush import app.closer.ui.theme.closerBackgroundBrush
@ -235,17 +234,19 @@ private fun RevealedPhase(
) )
} }
QuestionDiscussionThread( // Discussion now lives in the unified Messages conversation (q_<questionId>) so it's notified
messages = state.messages, // and appears in the inbox — same as the daily flow.
currentUserId = viewModel.currentUserId, Button(
partnerPhotoUrl = state.partnerPhotoUrl, onClick = { onNavigate(AppRoute.conversation(coupleId, "q_$questionId")) },
messageInput = state.messageInput, modifier = Modifier.fillMaxWidth().heightIn(min = 48.dp),
onMessageInputChanged = viewModel::updateMessageInput, shape = RoundedCornerShape(16.dp),
onSendMessage = viewModel::sendMessage, colors = ButtonDefaults.buttonColors(
isRevealed = true, containerColor = MaterialTheme.colorScheme.secondaryContainer,
onSendImage = viewModel::sendImage, contentColor = MaterialTheme.colorScheme.onSecondaryContainer
loadDecryptedMedia = viewModel::loadDecryptedMedia
) )
) {
Text("Discuss this together")
}
// Navigation out of the thread // Navigation out of the thread
Row( Row(