Skip to content

feat(tips): gate frosted tip card behind a beta flag#1153

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/frosted-tip-card-flag
Jul 26, 2026
Merged

feat(tips): gate frosted tip card behind a beta flag#1153
bmc08gt merged 1 commit into
code/cashfrom
feat/frosted-tip-card-flag

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

What

Gates the scanner's frosted-glass tip card behind a new beta feature flag, off by default, and fixes the frost rendering nearly opaque.

Changes

  • New flag FeatureFlag.FrostedTipCard (frosted_tip_card_enabled) — default = false, minTrack = Beta, so it appears in Labs under beta override and is off for everyone by default. Registered automatically via @FeatureFlagMarker.
  • Gating in ScannableContainer.kt — the frosted path now requires deviceSupportsFrostedTipCard && frostedTipCardFlagEnabled. Flag off (or an incapable device: pre-API-31 / low-RAM) → the existing opaque fallback.
  • Frost fix — the frosted branch was inheriting the 0.82 TipCardAlpha default, which masked the (correctly captured) blurred camera backdrop and made the card read as a solid panel. Dropped the frosted fill to 0.45 alpha and reduced the backdrop blur 24dp → 16dp.

Why

Root-caused on-device (Galaxy S25 Ultra, API 36) via temporary logging: the gate passed, the camera snapshot succeeded instantly, and the backdrop was live — the only problem was the too-opaque fill on top hiding it. Now gated so it can be rolled out to beta first.

Testing

  • ./gradlew :apps:flipcash:app:installDebug — builds and installs clean; KSP registers the new flag.
  • On device: flag off → opaque card (default); enabling Frosted Tip Card in Labs (beta override) on a capable device → frosted glass over the blurred camera.

Add a FrostedTipCard beta feature flag (off by default) that gates the
scanner's frosted-glass tip card. When the flag is off, or the device
cannot support the blur (pre-API-31 / low-RAM), the card renders the
existing opaque fallback.

Also fix the frosted branch reading nearly opaque: it was inheriting the
0.82 TipCardAlpha default, which masked the blurred camera backdrop.
Drop the frosted fill to 0.45 alpha and reduce the backdrop blur from
24dp to 16dp so the frost reads as glass.
@github-actions github-actions Bot added area: payments Payments, transfers, intents, billing area: scanner QR/Kikcode scanning, camera type: feature New functionality labels Jul 26, 2026
@bmc08gt
bmc08gt merged commit f07b5d4 into code/cash Jul 26, 2026
2 of 3 checks passed
@bmc08gt
bmc08gt deleted the feat/frosted-tip-card-flag branch July 26, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: payments Payments, transfers, intents, billing area: scanner QR/Kikcode scanning, camera type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant