Skip to content

refactor(scannable): render Scannables through the bill container - #1120

Merged
bmc08gt merged 1 commit into
code/cashfrom
refactor/scannable-rendering
Jul 22, 2026
Merged

refactor(scannable): render Scannables through the bill container#1120
bmc08gt merged 1 commit into
code/cashfrom
refactor/scannable-rendering

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Refactors bill rendering into a general "Scannable" container so non-payment scannables (tip cards) can be presented alongside cash bills. No new user-facing feature. Second of the tipping series (after #1119).

Changes

  • bills module reorg: RenderedBillScannableRenderer, AnimatedBillAnimatedScannable; composables moved into components/{bills,cards,receipts} (adds the TipCard renderer). BillContainerViewScannableContainer.
  • Widen the container to Scannable: BillState.bill becomes Scannable?; SessionController.showTipCard(tipCard) presents a non-payment tip card (no grab/valuation), and the container folds the management options / confirmation modal per scannable type.
  • Session tip state: add isTippingEnabled / tipsUnreadCount to SessionState, wired to a new Tipping feature flag.
  • Theme: add the tipCard color token; bump the xxl corner shape 25→30dp.
  • Incidental (small, unrelated): enable Gradle parallel tooling (gradle.properties); minor ResolverService response refactor.

Testing

./gradlew :apps:flipcash:app:assembleDebug — BUILD SUCCESSFUL (built standalone off code/cash).

- Reorganize bills: RenderedBill -> ScannableRenderer, AnimatedBill ->
  AnimatedScannable, composables into components/{bills,cards,receipts}
  (adds the TipCard renderer); BillContainerView -> ScannableContainer.
- Widen BillState.bill to Scannable? and add SessionController.showTipCard so a
  non-payment tip card can be presented in the container (no grab/valuation);
  add tip SessionState fields wired to the new Tipping feature flag.
- Theme: add the tipCard color token; bump the xxl corner shape.
- Incidental: enable Gradle parallel tooling; small ResolverService refactor.
@github-actions github-actions Bot added type: refactor Code restructuring, no behavior change area: payments Payments, transfers, intents, billing area: ui Compose UI, theme, components, resources area: network gRPC, connectivity, API, exchange rates area: scanner QR/Kikcode scanning, camera area: build-system Gradle, convention plugins, build-logic area: session and removed type: refactor Code restructuring, no behavior change labels Jul 22, 2026
@bmc08gt
bmc08gt merged commit 4a7e763 into code/cash Jul 22, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the refactor/scannable-rendering branch July 22, 2026 17:25
bmc08gt added a commit that referenced this pull request Jul 24, 2026
)

- Reorganize bills: RenderedBill -> ScannableRenderer, AnimatedBill ->
  AnimatedScannable, composables into components/{bills,cards,receipts}
  (adds the TipCard renderer); BillContainerView -> ScannableContainer.
- Widen BillState.bill to Scannable? and add SessionController.showTipCard so a
  non-payment tip card can be presented in the container (no grab/valuation);
  add tip SessionState fields wired to the new Tipping feature flag.
- Theme: add the tipCard color token; bump the xxl corner shape.
- Incidental: enable Gradle parallel tooling; small ResolverService refactor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build-system Gradle, convention plugins, build-logic area: network gRPC, connectivity, API, exchange rates area: payments Payments, transfers, intents, billing area: scanner QR/Kikcode scanning, camera area: session area: ui Compose UI, theme, components, resources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant