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
4 changes: 3 additions & 1 deletion Flipcash/Core/Screens/Main/Profile/ProfileNameScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ struct ProfileNameScreen: View {
// RPCs — by now the user may have swapped to another sheet, whose
// stack has no profile-creation state to mount against.
guard !Task.isCancelled, router.presentedSheet?.stack == .tips else { return }
router.push(.profilePhoto)
// The photo-capture step is skipped for now — the card omits the
// profile photo, so setup goes straight from the name to the card.
router.push(.tipcard)

} catch ErrorProfile.moderated(let category) {
logger.info("Display name moderation denied", metadata: ["category": "\(category)"])
Expand Down
19 changes: 13 additions & 6 deletions Flipcash/Core/Screens/Main/Tips/TipcardView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ struct TipcardView: View {
/// contrast against different surfaces (share sheet vs. live camera).
var tintOpacity: Double = 0.72

/// The profile photo is intentionally omitted from the card for now, so the
/// avatar is gated off by default. Kept as a flag (rather than deleted) so
/// re-enabling it is a one-line change once the product decision reverts.
var includePhoto: Bool = false

var body: some View {
VStack(spacing: 0) {
CodeView(data: codeData)
Expand All @@ -35,12 +40,14 @@ struct TipcardView: View {
HStack(spacing: 8) {
Text("Tip")

avatarImage
.resizable()
.scaledToFill()
.frame(width: avatarDimension, height: avatarDimension)
.foregroundStyle(Color.textSecondary)
.clipShape(Circle())
if includePhoto {
avatarImage
.resizable()
.scaledToFill()
.frame(width: avatarDimension, height: avatarDimension)
.foregroundStyle(Color.textSecondary)
.clipShape(Circle())
}

Text(name)
.lineLimit(1)
Expand Down
2 changes: 1 addition & 1 deletion Flipcash/Core/Screens/Main/Tips/TipsScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private struct TipsIntroScreen: View {
.multilineTextAlignment(.center)
.padding(.top, 32)

Text("Add your name and a picture to receive tips")
Text("Add your name to receive tips")
.font(.appTextSmall)
.foregroundStyle(Color.textSecondary)
.multilineTextAlignment(.center)
Expand Down