Skip to content

fix(chat): tip amount-entry — enforce minimum on send + simplify slide label - #1188

Merged
bmc08gt merged 2 commits into
code/cashfrom
chore/chat-amount-entry-cleanup
Aug 6, 2026
Merged

fix(chat): tip amount-entry — enforce minimum on send + simplify slide label#1188
bmc08gt merged 2 commits into
code/cashfrom
chore/chat-amount-entry-cleanup

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

What

Tightens up the messenger tip amount-entry flow:

Enforce tip minimum on send

Guard the send path so a tip DM below its minimum can't go through: when the entered amount is under minAmountFlow, show a " Minimum" alert and abort the send. Previously the minimum was only hinted (belowMinHint) and not enforced at send time. Reworded the two tip-minimum error strings to match (error_title_tipMinimum, error_description_tipMinimum).

Simplify slide label

Always use action_swipeToSend for the amount-entry slide action instead of switching to action_swipeToTip for tip DMs. With enforcement now happening at send time, the dedicated tip label is redundant. Tip minimum behavior is unchanged aside from the label text.

Cleanup

  • Remove the unused standalone ChatAmountEntryScreen(identifier) composable and its now-dead imports (no remaining call sites; the flow-scoped FlowAmountEntryScreenChatAmountEntryContent path is the only entry point).
  • Minor whitespace fix on State.separatorConfig.

Testing

  • :apps:flipcash:features:messenger:compileDebugKotlin passes.
  • Manual: enter a tip below the minimum and swipe to send → alert shown, send aborted; enter ≥ minimum → sends normally.

…ne screen

- Always use action_swipeToSend for the amount-entry slide action; the
  tip minimum is still surfaced via belowMinHint, so tip DMs keep their
  minimum enforcement without a separate slide label.
- Remove the unused standalone ChatAmountEntryScreen composable (and its
  now-dead imports); the flow-scoped FlowAmountEntryScreen /
  ChatAmountEntryContent path is the only entry point.
- Minor whitespace fix on State.separatorConfig.
@bmc08gt bmc08gt changed the title chore(chat): simplify amount-entry slide label and drop dead standalone screen fix(chat): tip amount-entry — enforce minimum on send + simplify slide label Aug 6, 2026
Guard the send path: when the chat is a tip DM with a minimum and the
entered amount is below it, surface a "<min> Minimum" alert and abort
the send instead of proceeding. Reword the tip-minimum error strings to
match.

Pairs with the slide label simplification — the minimum is now enforced
at send time rather than implied by a dedicated "Swipe to Tip" label.
@bmc08gt
bmc08gt force-pushed the chore/chat-amount-entry-cleanup branch from 394ac1d to 26c0dd3 Compare August 6, 2026 18:03
@bmc08gt
bmc08gt merged commit e8e50c1 into code/cash Aug 6, 2026
@bmc08gt
bmc08gt deleted the chore/chat-amount-entry-cleanup branch August 6, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant