Review Feature Access

Nucleic-Session: 85A6233A-F3F6-44B2-AD0B-261D49EE9C35
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-02 19:21:11 -07:00
co-authored by Nucleic
parent eb6875a662
commit bc96b9c056
@@ -131,3 +131,33 @@ struct BuildBanner: View {
} }
} }
} }
/// A slim strip shown while the app is in offline demo mode, so sample data is never mistaken
/// for a live connection to a Mac. Sits under the `BuildBanner` in `RootView`.
struct DemoBanner: View {
@EnvironmentObject var store: RemoteStore
var body: some View {
if store.demoMode {
HStack(spacing: 8) {
Image(systemName: "play.circle.fill").font(.system(size: 14, weight: .bold))
Text("Demo — sample data, no Mac connected")
.font(.footnote.weight(.semibold))
.lineLimit(1)
Spacer(minLength: 8)
Text("DEMO")
.font(.caption2.weight(.heavy))
.tracking(0.9)
.padding(.horizontal, 6)
.padding(.vertical, 2)
.background(.white.opacity(0.18), in: .capsule)
}
.foregroundStyle(.white.opacity(0.95))
.padding(.horizontal, 12)
.padding(.vertical, 5)
.frame(maxWidth: .infinity)
.background(Color(red: 0.36, green: 0.36, blue: 0.42))
.accessibilityLabel("Demo mode — sample data, not connected to a Mac.")
}
}
}