Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SIW-1953] Mixpanel tracking of new ITWallet feature #6601

Open
wants to merge 42 commits into
base: master
Choose a base branch
from

Conversation

RiccardoMolinari95
Copy link
Collaborator

@RiccardoMolinari95 RiccardoMolinari95 commented Jan 14, 2025

Short description

This PR add the tracking on mixpanel of some ITWallet events

Warning

Depens on #6577

List of changes proposed in this pull request

  • trackItwStatusWalletAttestationFailure when the wallet attestation fails.
  • trackItwStatusCredentialAttestationFailure when the credential attestation fails
  • trackItwTrustmarkRenewFailure when the generation of the QR Code for attesting the authenticity of the credential fails
  • trackCredentialCardModal when a credential is viewed in landscape mode
  • trigger the event FIMS_START by clicking the CTA towards iPatente through the trackAuthenticationStart function
  • added itwIPatenteCtaConfigSelector to retrieve the iPatente cta remote config

How to test

Verify that the newly added events are tracked correctly

mastro993 and others added 27 commits December 19, 2024 15:42
…lector in ItwPresentationDetailsFooter for iPatente CTA
*/
export const itwIsIPatenteCtaEnabledSelector = createSelector(
export const itwIPatenteCtaSelector = createSelector(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export const itwIPatenteCtaSelector = createSelector(
export const itwIPatenteCtaConfigSelector = createSelector(

@@ -131,28 +133,40 @@ const getCredentialActions = (credentialType: string): React.ReactNode =>
* Renders the IPatente service action item
*/
const IPatenteListItemAction = () => {
const isIPatenteEnabled = useIOSelector(itwIsIPatenteCtaEnabledSelector);
const iPatenteCtaSelector = useIOSelector(itwIPatenteCtaSelector);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const iPatenteCtaSelector = useIOSelector(itwIPatenteCtaSelector);
const ctaConfig = useIOSelector(itwIPatenteCtaConfigSelector);

Vangaorth
Vangaorth previously approved these changes Jan 15, 2025
@Vangaorth Vangaorth dismissed their stale review January 15, 2025 14:41

My review was only about CDN data

Comment on lines 153 to 154
//TODO Change with a new source
"message_detail"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should solve this ambiguity in this PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes I know, in fact I inserted the tag don't merge. I'm still waiting for an answer on what source to insert; when I know what to put I will delete the TODO and change the source to the correct one

Base automatically changed from SIW-1918-add-ipatente-cta-in-mdl-details-screen to master January 15, 2025 15:47
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.

5 participants