← All repositories

reportage

A life-logging app for iPhone

git clone https://code.inqk.net/reportage.git


commit b5a2a8831d21b1082bcc90775ed661f9ffe2ae9f
parent 4d62c10e789e1057ef341e5a746bc75b17c8f2a0
Author: Michael Camilleri <[email protected]>
Date:   Mon, 19 Oct 2026 16:52:33 +0900

Reword the welcome and add a way to show it again

The welcome only appears while a permission is undecided, so it
couldn't be seen on a device where both had been decided. Debug builds
now have 'Show Welcome' in a Debug section of Settings, which shows it
again. Continue then asks only for permissions still undecided.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Diffstat

MReportage/Views/Settings/SettingsView.swift | 30++++++++++++++++++++++++++++++
MReportage/Views/WelcomeView.swift | 8++++----

2 files changed, 34 insertions(+), 4 deletions(-)

diff --git a/Reportage/Views/Settings/SettingsView.swift b/Reportage/Views/Settings/SettingsView.swift

@@ -12,6 +12,9 @@ struct SettingsView: View {
     /// Counts finished reschedules, so the debug list of pending
     /// notifications reloads after each.
     @State private var scheduleGeneration = 0
+    #if DEBUG
+        @State private var isShowingWelcome = false
+    #endif
 
     private static let gaps = [0, 15, 30, 45, 60, 90, 120]
     private static let snoozes = [5, 10, 15, 20, 30, 60]
@@ -77,6 +80,7 @@ struct SettingsView: View {
                 DataSection()
                 DiagnosticsSection()
                 #if DEBUG
+                    WelcomeReplay { isShowingWelcome = true }
                     ScheduledPrompts(generation: scheduleGeneration)
                 #endif
             }
@@ -86,6 +90,14 @@ struct SettingsView: View {
             .foregroundStyle(Theme.ink)
             .toolbar(.hidden, for: .navigationBar)
         }
+        #if DEBUG
+            // On the screen rather than the row: a cover attached inside
+            // the list is dismissed when the list rebuilds the row, as it
+            // does while the scheduled prompts load.
+            .fullScreenCover(isPresented: $isShowingWelcome) {
+                WelcomeView { isShowingWelcome = false }
+            }
+        #endif
         .task { await checkPermissions() }
         .onChange(of: scenePhase) { _, phase in
             if phase == .active { Task { await checkPermissions() } }
@@ -247,6 +259,24 @@ extension View {
 }
 
 #if DEBUG
+    /// Shows the welcome screen again, to see it on a device where both
+    /// permissions are decided and it wouldn't otherwise appear. Continue
+    /// asks only for permissions still undecided. Debug builds only.
+    private struct WelcomeReplay: View {
+        let onShow: () -> Void
+
+        var body: some View {
+            Section {
+                Button(action: onShow) {
+                    Text(verbatim: "Show Welcome")
+                }
+                .settingsRow()
+            } header: {
+                SettingsHeading("Debug")
+            }
+        }
+    }
+
     /// The notifications waiting to be delivered, soonest first, to check
     /// what the scheduler has done. Debug builds only.
     private struct ScheduledPrompts: View {

diff --git a/Reportage/Views/WelcomeView.swift b/Reportage/Views/WelcomeView.swift

@@ -51,7 +51,7 @@ struct WelcomeContent: View {
                 .screenTitle()
                 .accessibilityLabel(Text("Reportage"))
             Text(
-                "At random times through the day, Reportage asks what you're up to. Your answers, and where and when you gave them, become a record of your days."
+                "Throughout the day, Reportage will send notifications asking you to file a report."
             )
             .font(Theme.serif(.title3))
             .fixedSize(horizontal: false, vertical: true)
@@ -59,16 +59,16 @@ struct WelcomeContent: View {
                 Text("Reportage will ask to use")
                     .eyebrow()
                 WelcomePermission(
-                    title: "Your Location",
+                    title: "Location",
                     systemImage: "location",
                     detail:
-                        "Each report records where you were and the weather there, including reports you log from a notification without opening the app."
+                        "Each report records your location and the weather. This includes Instant Reports."
                 )
                 WelcomePermission(
                     title: "Notifications",
                     systemImage: "bell",
                     detail:
-                        "Prompts come as notifications. You can choose how many come each day, and between which hours, in the Settings tab."
+                        "Prompts are delivered as system notifications. You can choose the frequency and the hours during which you want to be prompted in the Settings tab."
                 )
             }
             Text("You can change either permission at any time in the Settings app.")