diff --git a/apps/ios/Shared/Views/Badges/BadgeUserPreview.swift b/apps/ios/Shared/Views/Badges/BadgeUserPreview.swift index d833bed337..3e7216866e 100644 --- a/apps/ios/Shared/Views/Badges/BadgeUserPreview.swift +++ b/apps/ios/Shared/Views/Badges/BadgeUserPreview.swift @@ -9,9 +9,6 @@ import SwiftUI import SimpleXChat -// User's avatar + name with a preview badge at the selected level, rendered via NameWithBadge -// so the preview matches how the badge appears on the name elsewhere. Callers can inject a -// picker affordance (e.g. a chevron) into the name row via `trailing`. struct BadgeUserPreview: View { @EnvironmentObject var chatModel: ChatModel let level: BadgeLevel diff --git a/apps/ios/Shared/Views/Badges/BadgesHowItWorksView.swift b/apps/ios/Shared/Views/Badges/BadgesHowItWorksView.swift index 492b55ffab..24836b37f9 100644 --- a/apps/ios/Shared/Views/Badges/BadgesHowItWorksView.swift +++ b/apps/ios/Shared/Views/Badges/BadgesHowItWorksView.swift @@ -9,8 +9,7 @@ import SwiftUI import SimpleXChat -// Draft explanation of how private badges work. TODO [badges]: replace lorem ipsum with the real -// copy once the badge protocol and privacy properties are documented. +// TODO [badges]: replace lorem ipsum with the real copy once the badge protocol and privacy properties are documented. struct BadgesHowItWorksView: View { @EnvironmentObject var theme: AppTheme diff --git a/apps/ios/Shared/Views/Badges/BadgesPayView.swift b/apps/ios/Shared/Views/Badges/BadgesPayView.swift index 037a0627ea..1e45f73a63 100644 --- a/apps/ios/Shared/Views/Badges/BadgesPayView.swift +++ b/apps/ios/Shared/Views/Badges/BadgesPayView.swift @@ -9,7 +9,6 @@ import SwiftUI import SimpleXChat -// Draft billing periods used by the badges UI while the API/state machine is still being designed. // TODO [badges]: replace with types produced by the badge purchase API when it lands. enum BadgePeriod: String, CaseIterable, Identifiable { case oneMonth diff --git a/apps/ios/Shared/Views/Badges/BadgesRedeemCodeView.swift b/apps/ios/Shared/Views/Badges/BadgesRedeemCodeView.swift index efe2892ef6..2101bfa7f0 100644 --- a/apps/ios/Shared/Views/Badges/BadgesRedeemCodeView.swift +++ b/apps/ios/Shared/Views/Badges/BadgesRedeemCodeView.swift @@ -9,8 +9,7 @@ import SwiftUI import SimpleXChat -// Draft entry-point for redeeming an investor badge code. TODO [badges]: implement input field, -// server verification and success/failure states when the redeem API is defined. +// TODO [badges]: implement input field, server verification and success/failure states when the redeem API is defined. struct BadgesRedeemCodeView: View { @EnvironmentObject var theme: AppTheme diff --git a/apps/ios/Shared/Views/Badges/BadgesSupportSimplexView.swift b/apps/ios/Shared/Views/Badges/BadgesSupportSimplexView.swift index 6b0d7d4334..6ee992fa8d 100644 --- a/apps/ios/Shared/Views/Badges/BadgesSupportSimplexView.swift +++ b/apps/ios/Shared/Views/Badges/BadgesSupportSimplexView.swift @@ -9,8 +9,6 @@ import SwiftUI import SimpleXChat -// Entry point for badges management. Subsequent screens push via NavigationLink; the enclosing -// NavigationView (settings or the chat-list banner sheet) provides the sliding animation. struct BadgesSupportSimplexView: View { @EnvironmentObject var theme: AppTheme @Environment(\.colorScheme) var colorScheme: ColorScheme @@ -130,8 +128,6 @@ struct BadgesSupportSimplexView: View { } } -// Hero image reused across badges views and WhatsNewView v7.1. Fallback (no SIMPLEX_ASSETS) is a -// gradient card carrying the small supporter badge glyph. struct PhoneSupporterHero: View { @EnvironmentObject var theme: AppTheme @Environment(\.colorScheme) var colorScheme: ColorScheme diff --git a/apps/ios/Shared/Views/Badges/BadgesYourLevelView.swift b/apps/ios/Shared/Views/Badges/BadgesYourLevelView.swift index a33b92616c..30e228034d 100644 --- a/apps/ios/Shared/Views/Badges/BadgesYourLevelView.swift +++ b/apps/ios/Shared/Views/Badges/BadgesYourLevelView.swift @@ -9,8 +9,7 @@ import SwiftUI import SimpleXChat -// Draft levels used by the badges UI while the API/state machine is still being designed. TODO [badges]: -// replace with types produced by the badge purchase API when it lands. +// TODO [badges]: replace with types produced by the badge purchase API when it lands. enum BadgeLevel: String, CaseIterable, Identifiable { case supporter case legend diff --git a/apps/ios/Shared/Views/Badges/SupportSimpleXBanner.swift b/apps/ios/Shared/Views/Badges/SupportSimpleXBanner.swift index f7e5a7d1fe..07bf4366d2 100644 --- a/apps/ios/Shared/Views/Badges/SupportSimpleXBanner.swift +++ b/apps/ios/Shared/Views/Badges/SupportSimpleXBanner.swift @@ -9,8 +9,6 @@ import SwiftUI import SimpleXChat -// Dumb chat-list card promoting the badges purchase flow. Both the show gate and the dismissal -// persistence live in ChatListView; this view just renders and reports taps. struct SupportSimpleXBanner: View { @EnvironmentObject var theme: AppTheme @Environment(\.colorScheme) var colorScheme: ColorScheme diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgeUserPreview.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgeUserPreview.kt index d33c048211..6380e5cf79 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgeUserPreview.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgeUserPreview.kt @@ -17,9 +17,6 @@ import chat.simplex.common.views.helpers.NameWithBadge import chat.simplex.common.views.helpers.ProfileImage import chat.simplex.res.MR -// User's avatar + name with a preview badge at the selected level, rendered via NameWithBadge -// so the preview matches how the badge appears on the name elsewhere. Callers can inject a -// picker affordance (e.g. a chevron) into the name row via `trailing`. @Composable fun BadgeUserPreview(level: BadgeLevel, modifier: Modifier = Modifier, trailing: @Composable () -> Unit = {}) { val user = chatModel.currentUser.value diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesHowItWorksView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesHowItWorksView.kt index f2aa964dd3..7c16bee763 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesHowItWorksView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesHowItWorksView.kt @@ -12,8 +12,7 @@ import dev.icerock.moko.resources.compose.stringResource import chat.simplex.common.platform.ColumnWithScrollBar import chat.simplex.res.MR -// Draft explanation of how private badges work. TODO [badges]: replace lorem ipsum with the real -// copy once the badge protocol and privacy properties are documented. +// TODO [badges]: replace lorem ipsum with the real copy once the badge protocol and privacy properties are documented. @Composable fun BadgesHowItWorksView() { ColumnWithScrollBar( diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesPayView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesPayView.kt index cb5e5600ec..2256b1c219 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesPayView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesPayView.kt @@ -23,7 +23,6 @@ import chat.simplex.common.views.helpers.* import chat.simplex.common.views.onboarding.OnboardingActionButton import chat.simplex.res.MR -// Draft billing periods used by the badges UI while the API/state machine is still being designed. // TODO [badges]: replace with types produced by the badge purchase API when it lands. enum class BadgePeriod { OneMonth, diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesRedeemCodeView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesRedeemCodeView.kt index a290993657..8a1069c536 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesRedeemCodeView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesRedeemCodeView.kt @@ -12,8 +12,7 @@ import dev.icerock.moko.resources.compose.stringResource import chat.simplex.common.platform.ColumnWithScrollBar import chat.simplex.res.MR -// Draft entry-point for redeeming an investor badge code. TODO [badges]: implement input field, -// server verification and success/failure states when the redeem API is defined. +// TODO [badges]: implement input field, server verification and success/failure states when the redeem API is defined. @Composable fun BadgesRedeemCodeView() { ColumnWithScrollBar( diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesSupportSimplexView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesSupportSimplexView.kt index 57ad88e6a8..aa8100519b 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesSupportSimplexView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesSupportSimplexView.kt @@ -30,8 +30,6 @@ import chat.simplex.common.views.onboarding.OnboardingActionButton import chat.simplex.common.views.onboarding.TextButtonBelowOnboardingButton import chat.simplex.res.MR -// Entry point for badges management. Subsequent screens push via ModalManager; the enclosing -// modal (settings or the chat-list banner sheet) provides the sliding animation. @Composable fun BadgesSupportSimplexView() { // TODO [badges] gate on user badge status (no badge → this view, active → "Manage your badge") @@ -96,8 +94,6 @@ private fun ChooseLevelButton() { } -// Hero image reused across badges views and WhatsNewView v7.1. Fallback (no SIMPLEX_ASSETS) is a -// gradient card carrying the small supporter badge glyph. @Composable fun PhoneSupporterHero(modifier: Modifier = Modifier) { val isDark = isInDarkTheme() diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesYourLevelView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesYourLevelView.kt index f1fba5920f..fa5bdeeaf3 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesYourLevelView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/BadgesYourLevelView.kt @@ -23,8 +23,7 @@ import chat.simplex.common.views.onboarding.OnboardingActionButton import chat.simplex.common.views.onboarding.TextButtonBelowOnboardingButton import chat.simplex.res.MR -// Draft levels used by the badges UI while the API/state machine is still being designed. TODO [badges]: -// replace with types produced by the badge purchase API when it lands. +// TODO [badges]: replace with types produced by the badge purchase API when it lands. enum class BadgeLevel { Supporter, Legend; diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/SupportSimpleXBanner.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/SupportSimpleXBanner.kt index 9142def4ce..008034a3ef 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/SupportSimpleXBanner.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/badges/SupportSimpleXBanner.kt @@ -29,8 +29,6 @@ import chat.simplex.common.views.newchat.gradientPoints import chat.simplex.common.views.newchat.lightStops import chat.simplex.res.MR -// Dumb chat-list card promoting the badges purchase flow. Both the show gate and the dismissal -// persistence live in ChatListView; this view just renders and reports taps. @Composable fun SupportSimpleXBanner(onTap: () -> Unit, onDismiss: () -> Unit) { val cardCornerRadius = 16.dp