Commit 45741a5160

45741a51601a3075ad825795be2dc36a637ac742

parent: 269d959071

Unsigned

cmc <hello@cleberg.net> · 2026-07-25 16:45 UTC

fix: point Rate at the App Store and drop the empty Legal section (#56)

- Rate DomainDig now opens the App Store write-review URL
  (AppLinks.writeReview, derived from the real app id) instead of the in-app
  StoreKit prompt, so an explicit tap always reaches the review composer. Drops
  the now-unused StoreKit import and requestReview environment.
- The copyright line moves into the "Support the App" section footer, removing
  the empty Section content closure SonarCloud flagged (swift:S1186).

Layout: unified · split

DomainDig/AppInfoView.swift +6 −9
@@ -1,14 +1,11 @@
1import StoreKit
21import SwiftUI
32
43/// Settings → App Info. Shows app/build metadata and links out to docs, source,
54/// privacy, support, and the App Store. The actionable rows are driven by a
65/// single declarative `AppInfoRow` model so titles, icons, and destinations live
7/// in one place; only the Rate and Share rows are special-cased (a StoreKit
8/// action and a `ShareLink` view, respectively).
6/// in one place; only the Share row is special-cased (a `ShareLink` view).
97struct AppInfoView: View {
108 @Environment(\.openURL) private var openURL
11 @Environment(\.requestReview) private var requestReview
129 @State private var cloudSyncService = CloudSyncService.shared
1310 @State private var activeSheet: AppInfoSheet?
1411
@@ -29,20 +26,20 @@ struct AppInfoView: View {
2926 ForEach(supportRows) { row($0) }
3027 }
3128
32 Section("Support the App") {
29 Section {
3330 Button {
34 requestReview()
31 openURL(AppLinks.writeReview)
3532 } label: {
3633 Label("Rate DomainDig", systemImage: "star")
3734 }
35 .accessibilityHint("Opens the App Store")
3836
3937 ShareLink(item: AppLinks.appStoreListing) {
4038 Label("Share DomainDig", systemImage: "square.and.arrow.up")
4139 }
4240 .accessibilityHint("Opens the share sheet")
43 }
44
45 Section {
41 } header: {
42 Text("Support the App")
4643 } footer: {
4744 Text(AppLinks.copyright)
4845 .frame(maxWidth: .infinity, alignment: .center)