-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(PN-10821): Fix some Mixpanel regressions and track super profile …
…properties (#1200) * fix: mixpanel events and add super properties * fixed randomic message problems into the DomicileBanner component --------- Co-authored-by: Andrea Cimini <[email protected]>
- Loading branch information
1 parent
665d324
commit 8dd9c41
Showing
20 changed files
with
208 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/pn-personafisica-webapp/src/redux/sidemenu/reducers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 23 additions & 6 deletions
29
...es/pn-personafisica-webapp/src/utility/MixpanelUtils/Strategies/SendRemoveLegalAddress.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
import { EventPropertyType, EventStrategy, TrackedEvent } from '@pagopa-pn/pn-commons'; | ||
|
||
import { DeleteDigitalAddressParams } from '../../../redux/contact/types'; | ||
|
||
type SendRemoveLegalAddress = { | ||
SEND_HAS_PEC: 'no'; | ||
}; | ||
|
||
type SendRemoveLegalAddressData = { | ||
payload: string; | ||
params: DeleteDigitalAddressParams; | ||
}; | ||
|
||
export class SendRemoveLegalAddressStrategy implements EventStrategy { | ||
performComputations(): TrackedEvent<SendRemoveLegalAddress> { | ||
return { | ||
[EventPropertyType.PROFILE]: { | ||
SEND_HAS_PEC: 'no', | ||
}, | ||
}; | ||
performComputations({ | ||
params, | ||
}: SendRemoveLegalAddressData): TrackedEvent<SendRemoveLegalAddress> { | ||
// If i'm removing a special contact (senderId !== 'default') I don't want to update the profile property | ||
if (params.senderId === 'default') { | ||
return { | ||
[EventPropertyType.PROFILE]: { | ||
SEND_HAS_PEC: 'no', | ||
}, | ||
[EventPropertyType.SUPER_PROPERTY]: { | ||
SEND_HAS_PEC: 'no', | ||
}, | ||
}; | ||
} else { | ||
return {}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.