Skip to content

feat(contacts): show one-time Flipcash contacts discovery prompt#811

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/discover-flipcash-contacts
May 30, 2026
Merged

feat(contacts): show one-time Flipcash contacts discovery prompt#811
bmc08gt merged 1 commit into
code/cashfrom
feat/discover-flipcash-contacts

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 30, 2026

Summary

  • Persist hasDiscoveredFlipcashContacts on ContactSyncStateEntity — set to true on first non-empty fetchFlipcashContacts() result
  • Surface the flag as a once-ever BottomBarManager.showInfo() prompt in SendFlowViewModel with pluralized contact count
  • On dismiss, consumeContactsDiscovery() clears the flag in both the DB and in-memory state so the prompt never reappears
  • Fix clearAll() to delete all mappings on logout (prevents stale hasEverSynced on re-login)
  • Sequence permission-revocation check before sync on foreground resume to eliminate a race

@bmc08gt bmc08gt self-assigned this May 30, 2026
@github-actions github-actions Bot added type: feature New functionality area: notifications Push notifications, in-app messaging and removed type: feature New functionality labels May 30, 2026
@bmc08gt bmc08gt force-pushed the feat/discover-flipcash-contacts branch 2 times, most recently from ddec5b8 to 99c8669 Compare May 30, 2026 13:03
@bmc08gt bmc08gt marked this pull request as ready for review May 30, 2026 13:03
Persist a `hasDiscoveredFlipcashContacts` flag on `ContactSyncStateEntity`
(set to `true` the first time `fetchFlipcashContacts()` returns a non-empty
set) and surface it as a once-ever `BottomBarManager.showInfo()` prompt in
`SendFlowViewModel`. When dismissed, `consumeContactsDiscovery()` clears
the flag in both the DB and in-memory state so the prompt never reappears.

Also fix `clearAll()` to delete all mappings on logout (prevents stale
`hasEverSynced` on re-login) and sequence the permission-revocation check
before sync on foreground resume to eliminate a race.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt changed the title feat(contacts): detect first Flipcash contacts discovery (0→N signal) feat(contacts): show one-time Flipcash contacts discovery prompt May 30, 2026
@bmc08gt bmc08gt force-pushed the feat/discover-flipcash-contacts branch from 99c8669 to 6b3d3fa Compare May 30, 2026 13:09
@bmc08gt bmc08gt merged commit f1fcca4 into code/cash May 30, 2026
3 checks passed
@bmc08gt bmc08gt deleted the feat/discover-flipcash-contacts branch May 30, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: notifications Push notifications, in-app messaging type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant