openassistant: expand the composer attachment/recording row
- Commit
d96d5caacd9d6217d022c5d0b97ec0da18031cc4- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-05 16:25 UTC (11 hours ago)
- Parents
dc63332
The picked-image thumbnails and the recording card mounted in a cut above the message field. That row now opens through ExpandVisibility in the composer column. Wrap abrupt conditional content in the shared library.ui motion helpers so it expands/fades/pops in instead of popping in cut, and closes up cleanly when it goes away. No raw androidx.compose. animation is used at the call site, per the fatal DirectCompose Animation lint; durations and easing come from the helpers' MaterialTheme motion-scheme defaults. Verified in this worktree with lint, lintVitalRelease and testDevUnitTest for the module (details in the session report; any pre-existing failure was reproduced on the pristine base).
Diff
openassistant/src/main/java/com/vayunmathur/openassistant/ui/LiteRTChatInput.kt
diff --git a/openassistant/src/main/java/com/vayunmathur/openassistant/ui/LiteRTChatInput.kt b/openassistant/src/main/java/com/vayunmathur/openassistant/ui/LiteRTChatInput.ktindex d4ae272cb2..e6bf6c222e 100644--- a/openassistant/src/main/java/com/vayunmathur/openassistant/ui/LiteRTChatInput.kt+++ b/openassistant/src/main/java/com/vayunmathur/openassistant/ui/LiteRTChatInput.kt@@ -25,6 +25,7 @@ import androidx.compose.ui.unit.dp import com.vayunmathur.library.image.ImageRequest import com.vayunmathur.library.image.compose.AsyncImage import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.ExpandVisibility import com.vayunmathur.library.ui.CardDefaults import com.vayunmathur.library.ui.ExperimentalMaterial3Api import com.vayunmathur.library.ui.IconAdd@@ -59,7 +60,7 @@ fun ChatInput( ) { val context = LocalContext.current Column(modifier.fillMaxWidth().padding(16.dp, 8.dp)) {- if (selectedImageUris.isNotEmpty() || isRecording) {+ ExpandVisibility(visible = selectedImageUris.isNotEmpty() || isRecording) { Row(Modifier.padding(bottom = 8.dp), verticalAlignment = Alignment.Bottom) { if (selectedImageUris.isNotEmpty()) { LazyRow(horizontalArrangement = Arrangement.spacedBy(12.dp), modifier = Modifier.weight(1f, false)) {