UI: hide the stubbing actions in Conversation screen
This commit is contained in:
parent
7313b41574
commit
8bd9615e6b
|
|
@ -290,11 +290,11 @@ fun AppContent(
|
||||||
val modelThinkingOrSpeaking =
|
val modelThinkingOrSpeaking =
|
||||||
engineState is State.ProcessingUserPrompt || engineState is State.Generating
|
engineState is State.ProcessingUserPrompt || engineState is State.Generating
|
||||||
|
|
||||||
val showStubMessage = {
|
val showStubMessage = null // {
|
||||||
handleScaffoldEvent(ScaffoldEvent.ShowSnackbar(
|
// handleScaffoldEvent(ScaffoldEvent.ShowSnackbar(
|
||||||
message = "Stub for now, let me know if you want it done :)"
|
// message = "Stub for now, let me know if you want it done :)"
|
||||||
))
|
// ))
|
||||||
}
|
// }
|
||||||
|
|
||||||
ScaffoldConfig(
|
ScaffoldConfig(
|
||||||
topBarConfig = TopBarConfig.Performance(
|
topBarConfig = TopBarConfig.Performance(
|
||||||
|
|
|
||||||
|
|
@ -102,8 +102,8 @@ sealed class BottomBarConfig {
|
||||||
val onSendClick: () -> Unit,
|
val onSendClick: () -> Unit,
|
||||||
val showModelCard: Boolean,
|
val showModelCard: Boolean,
|
||||||
val onToggleModelCard: (Boolean) -> Unit,
|
val onToggleModelCard: (Boolean) -> Unit,
|
||||||
val onAttachPhotoClick: () -> Unit,
|
val onAttachPhotoClick: (() -> Unit)?,
|
||||||
val onAttachFileClick: () -> Unit,
|
val onAttachFileClick: (() -> Unit)?,
|
||||||
val onAudioInputClick: () -> Unit,
|
val onAudioInputClick: (() -> Unit)?,
|
||||||
) : BottomBarConfig()
|
) : BottomBarConfig()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,9 +41,9 @@ fun ConversationBottomBar(
|
||||||
onSendClick: () -> Unit,
|
onSendClick: () -> Unit,
|
||||||
showModelCard: Boolean,
|
showModelCard: Boolean,
|
||||||
onToggleModelCard: (Boolean) -> Unit,
|
onToggleModelCard: (Boolean) -> Unit,
|
||||||
onAttachPhotoClick: () -> Unit,
|
onAttachPhotoClick: (() -> Unit)?,
|
||||||
onAttachFileClick: () -> Unit,
|
onAttachFileClick: (() -> Unit)?,
|
||||||
onAudioInputClick: () -> Unit,
|
onAudioInputClick: (() -> Unit)?,
|
||||||
) {
|
) {
|
||||||
val placeholder = if (isReady) "Message ${APP_NAME}..." else "Please wait for ${APP_NAME} to finish"
|
val placeholder = if (isReady) "Message ${APP_NAME}..." else "Please wait for ${APP_NAME} to finish"
|
||||||
|
|
||||||
|
|
@ -86,25 +86,31 @@ fun ConversationBottomBar(
|
||||||
|
|
||||||
BottomAppBar(
|
BottomAppBar(
|
||||||
actions = {
|
actions = {
|
||||||
IconButton(onClick = onAttachPhotoClick) {
|
onAttachPhotoClick?.let {
|
||||||
Icon(
|
IconButton(onClick = it) {
|
||||||
imageVector = Icons.Outlined.AddPhotoAlternate,
|
Icon(
|
||||||
contentDescription = "Attach a photo",
|
imageVector = Icons.Outlined.AddPhotoAlternate,
|
||||||
)
|
contentDescription = "Attach a photo",
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IconButton(onClick = onAttachFileClick) {
|
onAttachFileClick?.let {
|
||||||
Icon(
|
IconButton(onClick = it) {
|
||||||
imageVector = Icons.Outlined.AttachFile,
|
Icon(
|
||||||
contentDescription = "Attach a file",
|
imageVector = Icons.Outlined.AttachFile,
|
||||||
)
|
contentDescription = "Attach a file",
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IconButton(onClick = onAudioInputClick) {
|
onAudioInputClick?.let {
|
||||||
Icon(
|
IconButton(onClick = it) {
|
||||||
imageVector = Icons.Default.Mic,
|
Icon(
|
||||||
contentDescription = "Input with voice",
|
imageVector = Icons.Default.Mic,
|
||||||
)
|
contentDescription = "Input with voice",
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IconButton(onClick = { onToggleModelCard(!showModelCard) } ) {
|
IconButton(onClick = { onToggleModelCard(!showModelCard) } ) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue