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

@@ -14,33 +14,28 @@ struct LoginView: View {
VStack(spacing: 0) {
Spacer()
// App identity
VStack(spacing: 6) {
Text("Kisani")
.font(.system(size: 34, weight: .bold, design: .default))
.foregroundStyle(AppTheme.ink)
// Brand + logo
VStack(spacing: 20) {
brandMark
.opacity(appeared ? 1 : 0)
.offset(y: appeared ? 0 : 8)
.offset(y: appeared ? 0 : 10)
.animation(.spring(response: 0.44, dampingFraction: 0.82).delay(0.06), value: appeared)
logoView
.scaleEffect(appeared ? 1 : 0.88)
.opacity(appeared ? 1 : 0)
.animation(.spring(response: 0.48, dampingFraction: 0.74).delay(0.12), value: appeared)
}
Spacer().frame(height: 28)
// Logo
logoView
.scaleEffect(appeared ? 1 : 0.88)
.opacity(appeared ? 1 : 0)
.animation(.spring(response: 0.48, dampingFraction: 0.74).delay(0.12), value: appeared)
Spacer().frame(height: 24)
Spacer().frame(height: 32)
// Session context
if let conn = connection {
VStack(spacing: 5) {
Text(conn.displayName)
VStack(spacing: 4) {
Text(conn.username)
.font(.system(size: 17, weight: .semibold))
.foregroundStyle(AppTheme.ink)
Text(conn.username)
Text(conn.displayName)
.font(.system(size: 14, weight: .regular))
.foregroundStyle(AppTheme.inkTertiary)
}
@@ -49,7 +44,7 @@ struct LoginView: View {
.animation(.spring(response: 0.4, dampingFraction: 0.8).delay(0.18), value: appeared)
}
Spacer().frame(height: 44)
Spacer().frame(height: 40)
// Auth
VStack(spacing: 14) {
@@ -109,21 +104,29 @@ struct LoginView: View {
}
}
// MARK: Brand mark
private var brandMark: some View {
Text("kisani.")
.font(.system(size: 13, weight: .medium, design: .monospaced))
.foregroundStyle(AppTheme.inkTertiary)
.kerning(1.2)
}
// MARK: Logo
private var logoView: some View {
ZStack {
// Subtle ring so logo edge is always legible against any background
RoundedRectangle(cornerRadius: 24, style: .continuous)
.stroke(AppTheme.inkQuaternary, lineWidth: 0.5)
.frame(width: 92, height: 92)
Image("nas_logo_clean")
Image("ugreen_logo")
.resizable()
.scaledToFit()
.frame(width: 90, height: 90)
.clipShape(RoundedRectangle(cornerRadius: 22, style: .continuous))
}
.shadow(color: .black.opacity(0.14), radius: 20, x: 0, y: 6)
.shadow(color: .black.opacity(0.12), radius: 20, x: 0, y: 6)
}
}