Skip to content

Commit

Permalink
fix: visual adjustments to learn more on remote failures link (WPB-22…
Browse files Browse the repository at this point in the history
…82) (#1916)

* fix: visual adjustment to learn more on remot efailures link

* fix: visual adjustment to learn more on remot efailures link

* fix: detekt
  • Loading branch information
yamilmedina authored Jul 7, 2023
1 parent b46964f commit e04274a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ internal fun Modifier.customizeMessageBackground(
@Composable
internal fun OfflineBackendsLearnMoreLink(context: Context = LocalContext.current) {
val learnMoreUrl = stringResource(R.string.url_message_details_offline_backends_learn_more)
VerticalSpace.x4()
Text(
modifier = Modifier.clickable { CustomTabsHelper.launchUrl(context, learnMoreUrl) },
style = LocalTextStyle.current.copy(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*
*
*/
@file:Suppress("TooManyFunctions")

package com.wire.android.ui.home.conversations

Expand Down Expand Up @@ -320,6 +321,39 @@ fun PreviewSystemMessageKnock() {
}
}

@PreviewMultipleThemes
@Composable
fun PreviewSystemMessageFailedToAddSingle() {
WireTheme {
SystemMessageItem(
message = mockMessageWithKnock.copy(
messageContent = SystemMessage.MemberFailedToAdd(
mapOf("wire.com" to listOf(UIText.DynamicString("Barbara Cotolina")))
)
)
)
}
}

@PreviewMultipleThemes
@Composable
fun PreviewSystemMessageFailedToAddMultiple() {
WireTheme {
SystemMessageItem(
message = mockMessageWithKnock.copy(
messageContent = SystemMessage.MemberFailedToAdd(
mapOf(
"wire.com" to listOf(
UIText.DynamicString("Barbara Cotolina"),
UIText.DynamicString("Albert Lewis")
)
)
)
)
)
}
}

private val SystemMessage.expandable
get() = when (this) {
is SystemMessage.MemberAdded -> this.memberNames.size > EXPANDABLE_THRESHOLD
Expand Down
2 changes: 1 addition & 1 deletion kalium
Submodule kalium updated 28 files
+3 βˆ’2 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/message/ProtoContentMapper.kt
+2 βˆ’2 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/user/UserRepository.kt
+2 βˆ’1 ...src/commonMain/kotlin/com/wire/kalium/logic/sync/receiver/conversation/message/ApplicationMessageHandler.kt
+78 βˆ’2 logic/src/commonTest/kotlin/com/wire/kalium/logic/data/user/UserRepositoryTest.kt
+123 βˆ’0 monkeys/build.gradle.kts
+24 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/DefaultChunkSplit.kt
+42 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/DefaultConversationCreation.kt
+140 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/DefaultSetup.kt
+30 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/Monkey.kt
+89 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/MonkeyApplication.kt
+32 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/SimpleTestSequence.kt
+68 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/TestSequence.kt
+38 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/UserData.kt
+66 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/command/BananaPerGroupCommand.kt
+59 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/importer/TestData.kt
+24 βˆ’0 monkeys/src/commonMain/kotlin/com/wire/kalium/monkeys/importer/TestDataImporter.kt
+27 βˆ’0 monkeys/src/darwinMain/kotlin/com/wire/kalium/monkeys/coreLogic.kt
+25 βˆ’0 monkeys/src/darwinMain/kotlin/com/wire/kalium/monkeys/fileLogger.kt
+25 βˆ’0 monkeys/src/darwinMain/kotlin/com/wire/kalium/monkeys/homeDirectory.kt
+26 βˆ’0 monkeys/src/darwinMain/kotlin/com/wire/kalium/monkeys/importer/TestDataImporter.kt
+21 βˆ’0 monkeys/src/darwinMain/kotlin/main.kt
+27 βˆ’0 monkeys/src/jvmMain/kotlin/com/wire/kalium/monkeys/fileLogger.kt
+31 βˆ’0 monkeys/src/jvmMain/kotlin/com/wire/kalium/monkeys/homeDirectory.kt
+60 βˆ’0 monkeys/src/jvmMain/kotlin/com/wire/kalium/monkeys/importer/TestDataImporter.kt
+21 βˆ’0 monkeys/src/jvmMain/kotlin/com/wire/kalium/monkeys/main.kt
+25 βˆ’0 monkeys/users.json
+2 βˆ’0 network/src/commonMain/kotlin/com/wire/kalium/network/api/v4/authenticated/KeyPackageApiV4.kt
+3 βˆ’3 persistence/src/commonTest/kotlin/com/wire/kalium/persistence/dao/ConversationDAOTest.kt

0 comments on commit e04274a

Please sign in to comment.