The bundle-ID and display-name renames weren't enough — the actual Xcode target/product name was still "Jarvis", which drives CFBundleName, Xcode's Organizer archive list, the .xcodeproj filename, and the scheme name. Renamed all the way through: - project.yml: top-level name, target key, PRODUCT_NAME, source/info paths - Jarvis/ -> Jervis/ (source folder, git-tracked as renames, no content diffs on the moved files) - .gitignore, CI workflows, README, CONTRIBUTING: Jarvis.xcodeproj / scheme Jarvis -> Jervis.xcodeproj / scheme Jervis Verified: xcodebuild -scheme Jervis succeeds, produces Jervis.app, CFBundleName/CFBundleExecutable/CFBundleDisplayName all read "Jervis". CFBundleIdentifier intentionally stays com.kisani.jarvis (per prior decision — bundle ID isn't user-facing anywhere including Organizer). Swift type names (JarvisApp, JarvisWordmark, etc.) and the Gitea repo name/URL are unchanged — pure internal source identifiers, not user or developer-facing product identity. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
879 B
Swift
34 lines
879 B
Swift
// SignalStripe.swift
|
|
// Jarvis — the 3pt left-edge stripe whose color is tied to the signal score.
|
|
|
|
import SwiftUI
|
|
|
|
struct SignalStripe: View {
|
|
let score: Int
|
|
var width: CGFloat = 3
|
|
/// Read stories drop the colored stripe for a neutral one.
|
|
var muted: Bool = false
|
|
|
|
var body: some View {
|
|
Rectangle()
|
|
.fill(muted ? Palette.hairline : Signal.stripeColor(score))
|
|
.frame(width: width)
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
HStack(spacing: 24) {
|
|
ForEach([97, 78, 55, 35, 12, 0], id: \.self) { s in
|
|
VStack {
|
|
SignalStripe(score: s)
|
|
.frame(height: 60)
|
|
Text("\(s)")
|
|
.font(.system(size: 11, design: .monospaced))
|
|
.foregroundStyle(Signal.scoreColor(s))
|
|
}
|
|
}
|
|
}
|
|
.padding()
|
|
.background(Palette.background)
|
|
}
|