fix(amethyst): use https in preview data and image-URL placeholders

Clears Sonar 'Using HTTP protocol is insecure' hits. None were real requests:
six are @Preview dummy strings, four are picture-URL field hints that
suggested http:// to users. The Namecoin RPC onion placeholder stays
http:// on purpose (Tor encrypts; Namecoin Core RPC has no TLS).
This commit is contained in:
davotoula
2026-09-13 12:19:49 +02:00
parent 0a4a0e60ff
commit f9b11ef68b
8 changed files with 10 additions and 10 deletions
@@ -87,7 +87,7 @@ fun RenderTopButtonsPreview() {
ThemeComparisonColumn {
Box(Modifier.background(BitcoinOrange)) {
RenderTopButtons(
mediaData = MediaItemData("http://test.mp4"),
mediaData = MediaItemData("https://test.mp4"),
hasMultipleQualities = false,
qualityButton = {},
controllerVisible = remember { mutableStateOf(true) },
@@ -214,7 +214,7 @@ private fun Picture(
onValueChange = { bookmarkGroupInfoViewModel.picture.value = it },
placeholder = {
Text(
text = "http://mygroup.com/logo.jpg",
text = "https://mygroup.com/logo.jpg",
color = MaterialTheme.colorScheme.placeholderText,
)
},
@@ -285,7 +285,7 @@ private fun Picture(
onValueChange = { postViewModel.channelPicture.value = it },
placeholder = {
Text(
text = "http://mygroup.com/logo.jpg",
text = "https://mygroup.com/logo.jpg",
color = MaterialTheme.colorScheme.placeholderText,
)
},
@@ -87,7 +87,7 @@ import com.vitorpamplona.amethyst.ui.theme.ThemeComparisonColumn
private const val PREVIEW_LIST_TITLE = "Sample List Title"
private const val PREVIEW_LIST_DESCRIPTION = "Sample List Description"
private const val PREVIEW_LIST_IMAGE = "http://some.com/image.png"
private const val PREVIEW_LIST_IMAGE = "https://some.com/image.png"
@Preview()
@Composable
@@ -238,7 +238,7 @@ private fun Picture(
onValueChange = { postViewModel.picture.value = it },
placeholder = {
Text(
text = "http://mygroup.com/logo.jpg",
text = "https://mygroup.com/logo.jpg",
color = MaterialTheme.colorScheme.placeholderText,
)
},
@@ -238,7 +238,7 @@ private fun Picture(
onValueChange = { postViewModel.picture.value = it },
placeholder = {
Text(
text = "http://mygroup.com/logo.jpg",
text = "https://mygroup.com/logo.jpg",
color = MaterialTheme.colorScheme.placeholderText,
)
},
@@ -85,8 +85,8 @@ fun ShowQRScreenPreview() {
name = "My Name"
picture = "Picture"
nip05 = null
banner = "http://banner.com/test"
website = "http://mywebsite.com/test"
banner = "https://banner.com/test"
website = "https://mywebsite.com/test"
about = "This is the about me"
},
MetadataEvent(
@@ -1677,8 +1677,8 @@ fun RelayHeaderPreview() {
),
SpamDebugMessage(
time = TimeUtils.now() - 24000,
link1 = "http://test1.com",
link2 = "http://test2.com",
link1 = "https://test1.com",
link2 = "https://test2.com",
),
),
accountViewModel = mockAccountViewModel(),