fix(signing): remove Access Wi-Fi entitlement (unsupported on free teams)

- Drop com.apple.developer.networking.wifi-info from project.yml entitlements
  and NSLocationWhenInUseUsageDescription from Info.plist
- SSID detection gracefully returns nil without the capability; all UI handles
  nil SSID already via optional chaining

feat: branding, ring polish, sign-out UX, version/support

- LoginView: replace title with "kisani." monospaced wordmark + UGREEN logo,
  show username then NAS display name after login
- BackupView: "kisani." + UGREEN logo chip in toolbar; ring color is orange
  (in-progress), green (completed), destructive (failed), dim (idle)
- BackupJob: cap progress at min(1.0, ...) to prevent >100% display
- SettingsView sign-out dialog: two actions — "Sign Out" (lock only, keeps NAS)
  and "Sign Out & Forget NAS" (full clear); clearer message
- SettingsView ACCOUNT section: App Version v1.0 + Support mailto rows
- AppMenuView: About section with kisani. wordmark, version, support link

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Robin Kutesa
2026-05-16 18:39:35 +03:00
parent 15f9da843c
commit 2e40aa5683
8 changed files with 150 additions and 49 deletions

View File

@@ -33,10 +33,11 @@ struct SettingsView: View {
isPresented: $showSignOutConfirm,
titleVisibility: .visible
) {
Button("Sign Out", role: .destructive) { store.lock() }
Button("Sign Out & Forget NAS", role: .destructive) { store.signOut() }
Button("Cancel", role: .cancel) {}
} message: {
Text("Your NAS connection and backup settings will be removed from this device.")
Text("\"Sign Out\" keeps your NAS saved and requires Face ID next time. \"Sign Out & Forget NAS\" removes everything from this device.")
}
}
@@ -463,24 +464,70 @@ struct SettingsView: View {
VStack(alignment: .leading, spacing: 8) {
sectionLabel("ACCOUNT")
Button(action: { showSignOutConfirm = true }) {
VStack(spacing: 0) {
// App version row
HStack(spacing: 12) {
Image(systemName: "rectangle.portrait.and.arrow.right")
Image(systemName: "info.circle")
.font(.system(size: 14, weight: .regular))
.foregroundStyle(AppTheme.destructive)
.foregroundStyle(AppTheme.inkSecondary)
.frame(width: 20)
Text("Sign Out")
Text("App version")
.font(AppTheme.body())
.foregroundStyle(AppTheme.destructive)
.foregroundStyle(AppTheme.ink)
Spacer()
Text("v1.0")
.font(AppTheme.caption())
.foregroundStyle(AppTheme.inkTertiary)
}
.padding(.horizontal, AppTheme.cardPad)
.padding(.vertical, 14)
.background(AppTheme.surfaceRaised)
.clipShape(RoundedRectangle(cornerRadius: AppTheme.radius, style: .continuous))
.shadow(color: AppTheme.cardShadow, radius: 12, x: 0, y: 2)
hairline
// Support row
Link(destination: URL(string: "mailto:apps@provoc.ug")!) {
HStack(spacing: 12) {
Image(systemName: "envelope")
.font(.system(size: 14, weight: .regular))
.foregroundStyle(AppTheme.inkSecondary)
.frame(width: 20)
Text("Support")
.font(AppTheme.body())
.foregroundStyle(AppTheme.ink)
Spacer()
Text("apps@provoc.ug")
.font(AppTheme.caption())
.foregroundStyle(AppTheme.inkTertiary)
Image(systemName: "arrow.up.right")
.font(.system(size: 10, weight: .medium))
.foregroundStyle(AppTheme.inkQuaternary)
}
.padding(.horizontal, AppTheme.cardPad)
.padding(.vertical, 14)
}
hairline
// Sign Out button
Button(action: { showSignOutConfirm = true }) {
HStack(spacing: 12) {
Image(systemName: "rectangle.portrait.and.arrow.right")
.font(.system(size: 14, weight: .regular))
.foregroundStyle(AppTheme.destructive)
.frame(width: 20)
Text("Sign Out")
.font(AppTheme.body())
.foregroundStyle(AppTheme.destructive)
Spacer()
}
.padding(.horizontal, AppTheme.cardPad)
.padding(.vertical, 14)
}
.buttonStyle(ScaleButtonStyle())
}
.buttonStyle(ScaleButtonStyle())
.background(AppTheme.surfaceRaised)
.clipShape(RoundedRectangle(cornerRadius: AppTheme.radius, style: .continuous))
.shadow(color: AppTheme.cardShadow, radius: 12, x: 0, y: 2)
}
}