Skip to content

Conversation

@Vangaorth
Copy link
Contributor

@Vangaorth Vangaorth commented Oct 28, 2025

Short description

This PR adds the tracking events for the AAR Phase 2.

List of changes proposed in this pull request

  • High number of changed files, since most of the code was not tested. This PR adds tests and mocks where is needed
  • A lot of snapshots have changed since they used the entire original components sub-hierarchy: such children components now have mocks so the original snapshot have changed to include the mock (instead of the original component)
  • SEND_TEMPORARY_NOTIFICATION_OPENING_DISCLAIMER: screen view on ToS
  • SEND_TEMPORARY_NOTIFICATION_OPENING_DISCLAIMER_ACCEPTED: accept on ToS
  • SEND_TEMPORARY_NOTIFICATION_OPENING_DISCLAIMER_DISMISSED: denial on ToS
  • SEND_TEMPORARY_NOTIFICATION_OPENING_NOT ALLOWED: screen view when user is not the recipient
  • SEND_TEMPORARY_NOTIFICATION_OPENING_NOT_ALLOWED_MANDATE_INFO: tap on more info when user is not the recipient
  • SEND_TEMPORARY_NOTIFICATION_OPENING_NOT_ALLOWED_DISMISSED: tap on close when user is not the recipient
  • PN_UX_SUCCESS: properties send_user and opening_source added
  • PN_NOTIFICATION_LOAD_SUCCESS: properties send_user and opening_source added
  • PN_PAYMENT_STATUS: properties send_user and opening_source added
  • PN_ATTACHMENT_OPENING: properties send_user and opening_source added
  • PN_PAYMENT_START: properties send_user and opening_source added
  • PN_SHOW_TIMELINE: properties send_user and opening_source added
  • PN_SHOW_F24: properties send_user and opening_source added
  • PN_TIMELINE_EXTERNAL: properties send_user and opening_source added
  • SEND_TEMPORARY_NOTIFICATION_CLOSURE: screen view upon showing the bottom sheet, leaving the AAR notification
  • SEND_TEMPORARY_NOTIFICATION_CLOSURE_BACK: tap on "back to notification" in the bottom sheet above
  • SEND_TEMPORARY_NOTIFICATION_CLOSURE_CONFIRM: tap on "close" in the bottom sheet above
  • SEND_TEMPORARY_NOTIFICATION_CLOSURE_EXIT: tap on external link in the bottom sheet above
  • SEND_AAR_ERROR_CLOSURE: tap on close in the error screen
  • SEND_AAR_ERROR_DETAIL: tap on details in the error screen
  • SEND_AAR_ERROR_DETAIL_HELP: tap on chat assistance in the error screen
  • SEND_AAR_ERROR_DETAIL_CODE: tap on assistance code copy in the error screen

How to test

Use the io-dev-api-server to simulate every possible flow and check that every event is raised the right number of times, with proper parameters

ChrisMattew and others added 30 commits September 26, 2025 11:52
…OperationResultScreenContent"

This reverts commit bd9821f.
…idth prop type in the action props"

This reverts commit f963ccc.
export const SendAARErrorScreen = () => {
const flowType = useIOSelector(currentAARFlowStateType);

useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use useOnFirstRender?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the fact that it is a custom hook with an inside ref and that it allows the developer to not include the necessary dependencies in the callback. Moreover, in case of a (wrong) re-rendering, it does not run again but if the component is unmounted and mounted again (due to parent inclusion), then it does run again, against the fact that it is called "useOnFirstRender"

# Conflicts:
#	ts/features/pn/aar/components/SendAARMessageDetailBottomSheet.tsx
#	ts/features/pn/aar/components/SendAARMessageDetailBottomSheetComponent.tsx
#	ts/features/pn/aar/components/__tests__/SendAARMessageDetailBottomSheet.test.tsx
#	ts/features/pn/screens/__test__/__snapshots__/MessageDetailsScreen.test.tsx.snap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants