feat: add Alert Bell to Quick Chat actions

closes #972
This commit is contained in:
andrekir 2024-12-03 10:11:43 -03:00
parent ca8a49d862
commit f9424f2abc
2 changed files with 9 additions and 1 deletions

View file

@ -360,10 +360,17 @@ private fun QuickChatRow(
modifier: Modifier = Modifier,
onClick: (QuickChatAction) -> Unit
) {
val alertAction = QuickChatAction(
name = "🔔",
message = "🔔 ${stringResource(R.string.alert_bell_text)} \u0007",
mode = QuickChatAction.Mode.Append,
position = -1
)
LazyRow(
modifier = modifier,
) {
items(actions, key = { it.uuid }) { action ->
items(listOf(alertAction) + actions, key = { it.uuid }) { action ->
Button(
onClick = { onClick(action) },
modifier = Modifier.padding(horizontal = 4.dp),

View file

@ -311,4 +311,5 @@
<string name="not_selected">Not Selected</string>
<string name="unknown_age">Unknown Age</string>
<string name="copy">Copy</string>
<string name="alert_bell_text">Alert Bell Character!</string>
</resources>