Skip to content

feat(analytics): send the batch catalogue events - #1170

Merged
bmc08gt merged 3 commits into
mainfrom
feat/analytics-catalogue-batch
Oct 30, 2026
Merged

bmc08gt merged 3 commits into
mainfrom
feat/analytics-catalogue-batch

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Sends the events catalogued in code-payments/code-android-app#1889, #1890 and #1891. Until now iOS sent nothing for invite links, join requests, moderation, Search, the Currency Info tiles, boosts or payment requests.

This stays a draft until a SharedCore release includes those three PRs. The current pin, 0.17.0, has none of the new builders, so CI will fail; locally it builds with FLIPCASH_SHARED_CORE_LOCAL pointed at a merge of the three catalogue branches. Once the release is out, the pin bump goes in all three Package.swift files on this branch.

New events

  • Group: invite link created and revoked, join request approved and denied, member silenced and removed. Each carries the chat result on failure. Analytics.chatResult now maps the invite, lobby and moderation errors, which used to report as Network.
  • Search opened and result tapped. Token Info opened from Search sends Token Info: Opened From Search instead of Discovery.
  • Currency Info tile tapped.
  • Group: New Opened gets Type (Private or Community).
  • Sent Boost, plus Payment Request Created and Closed.

Changed events

  • Sent Cash gets Context (Direct, Group Send or Payment Request) at every call site, and Recipient Count for group sends. Paying a request (PaymentRequestPayment.swift) now sends Context = Payment Request instead of an untagged Sent Cash.
  • Gallery Scan sends the catalogue's Succeeded and Failed events. Gallery Scan: Code Found and Nothing Found stop on the release that ships this, so any Mixpanel chart on them needs to switch names at that version. QR and Kik finds are no longer told apart, because the shared event has no type. A cancelled scan reports Exhausted = true.
  • Create Account, Auto-login and Currency Launch move onto the catalogue builders under their existing names, so their series continue. Create Account no longer sends Owner Public Key.

Removed: six names nothing sent any more: Button: Allow Camera, Button: Sell, Send: Show Enter Phone, Send: Show Confirm Phone, Wallet: Transactions Submitted and Wallet: Transactions Failed.

Approving a join request treats notInLobby as success, matching how the screen handles it. A request that was already resolved isn't counted as a failure.

CatalogueBatchEventsTests, GroupEventsTests and MigratedEventsTests pass against the local SharedCore build (59 tests).

Wires the events catalogued in code-android-app#1889, #1890 and #1891:
invite links, join requests, member silence and removal, Search, Currency
Info tiles, New Chat type, Sent Boost, payment requests, and Sent Cash
Context and Recipient Count.

Moves iOS-only names onto the catalogue builders. Gallery Scan now sends
the catalogue's Succeeded and Failed events instead of Code Found and
Nothing Found, so those Mixpanel series stop on the release that ships
this. Deletes six event names nothing sent any more.

Needs a SharedCore release that includes those three PRs; it builds
today only with FLIPCASH_SHARED_CORE_LOCAL.
@bmc08gt bmc08gt self-assigned this Oct 30, 2026
…gue-batch

* origin/main:
  feat(analytics): send the Profile events (#1167)
  fix(grpc): recover when a GOAWAY strands calls behind the event stream (#1171)
0.18.0 carries the catalogue entries from android #1889, #1890 and #1891,
which the analytics wiring in this branch calls.
@bmc08gt
bmc08gt marked this pull request as ready for review October 30, 2026 11:49
@bmc08gt
bmc08gt merged commit 52d9613 into main Oct 30, 2026
5 checks passed
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