Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ struct DeepLinkAction {

private static func showLookupFailed(isScan: Bool, on session: Session) {
session.dialogItem = .error(
title: isScan ? "Couldn't Open Tip Card" : "Couldn't Open Profile",
title: isScan ? "Couldn't Open Profile Card" : "Couldn't Open Profile",
subtitle: "Please check your connection and try again"
)
}
Expand Down
6 changes: 3 additions & 3 deletions Flipcash/Core/Screens/Main/CameraPromptView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ nonisolated enum CameraPrompt: Equatable {
func message(embedded: Bool) -> String {
switch self {
case .requestPermission:
embedded ? "Start your camera to scan a Tip Card"
embedded ? "Start your camera to scan a Profile Card"
: "Flipcash uses your camera to scan and grab cash"
case .openSettings:
embedded ? "Turn on Camera in Settings to scan a Tip Card"
embedded ? "Turn on Camera in Settings to scan a Profile Card"
: "You need to turn on Camera in Settings to scan Codes"
case .startCamera:
embedded ? "Start your camera to scan a Tip Card"
embedded ? "Start your camera to scan a Profile Card"
: "You need to start your camera to grab cash"
}
}
Expand Down
4 changes: 2 additions & 2 deletions Flipcash/Core/Screens/Main/Home/NewUserTutorial.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ nonisolated enum TutorialItem: TutorialItemPresentable {
var title: String {
switch self {
case .addMoney: return "Add Money"
case .scanTipCard: return "Scan a Tip Card"
case .scanTipCard: return "Scan a Profile Card"
}
}

var subtitle: String {
switch self {
case .addMoney: return "Add money to your account"
case .scanTipCard: return "Give your first tip"
case .scanTipCard: return "Send your first message"
}
}

Expand Down
2 changes: 1 addition & 1 deletion Flipcash/Core/Screens/Main/Home/WalletScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct WalletScreen: View {

@Environment(SessionContainer.self) private var sessionContainer

/// Invoked by the tutorial's "Scan a Tip Card" step to switch to the Scan tab.
/// Invoked by the tutorial's "Scan a Profile Card" step to switch to the Scan tab.
let onScanTipCard: () -> Void

var body: some View {
Expand Down
2 changes: 1 addition & 1 deletion Flipcash/Core/Screens/Main/Tips/TipFlow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ final class TipFlow {
/// read, so a miss is a fetch that didn't land rather than a wrong address.
static var failureDialog: DialogItem {
.error(
title: "Couldn't Open Tip Card",
title: "Couldn't Open Profile Card",
subtitle: "Please check your connection and try again"
)
}
Expand Down
4 changes: 2 additions & 2 deletions Flipcash/Core/Screens/Main/Tips/TipcardScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct TipcardScreen: View {
Background(color: .backgroundMain) {
legacyContent
}
.navigationTitle("My Tip Card")
.navigationTitle("My Profile Card")
.toolbarTitleDisplayMode(.inline)
.task(id: profilePicture?.thumbnailBlobID) {
previewCache.warm(TipCode.Payload(userID: sessionContainer.session.userID))
Expand All @@ -39,7 +39,7 @@ struct TipcardScreen: View {

private var legacyContent: some View {
VStack(spacing: 0) {
Text("Share Your Tip Card to Get Tipped")
Text("Share Your Profile Card to Get Tipped")
.font(.appTextLarge)
.foregroundStyle(Color.textMain)
.multilineTextAlignment(.center)
Expand Down
2 changes: 1 addition & 1 deletion Flipcash/Core/Screens/Main/You/TipCardExport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ enum TipCardExport {
.replacingOccurrences(of: ":", with: " ")
.trimmingCharacters(in: .whitespacesAndNewlines)

let stem = if let subject, !subject.isEmpty { "Chat with \(subject)" } else { "Tip Card" }
let stem = if let subject, !subject.isEmpty { "Chat with \(subject)" } else { "Profile Card" }
return "\(stem).\(format.rawValue)"
}

Expand Down
2 changes: 1 addition & 1 deletion FlipcashTests/TipCardExportTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct TipCardExportTests {
let url = try #require(TipCardExport.file(for: .svg, codeData: .placeholder35, name: nil))
defer { TipCardExport.discard(url) }

#expect(url.lastPathComponent == "Tip Card.svg")
#expect(url.lastPathComponent == "Profile Card.svg")
}

/// A display name is server-supplied text landing in a path component.
Expand Down
2 changes: 1 addition & 1 deletion FlipcashTests/TipFlowFailureDialogTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct TipFlowFailureDialogTests {
func failedResolve_genericError() {
let item = TipFlow.failureDialog
#expect(item.style == .destructive)
#expect(item.title == "Couldn't Open Tip Card")
#expect(item.title == "Couldn't Open Profile Card")
#expect(item.subtitle == "Please check your connection and try again")
}
}
Loading