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

Feature/10030+10028 create analytics and trigger #10279

Merged
merged 19 commits into from
Dec 13, 2024

Conversation

dumathane
Copy link
Contributor

@dumathane dumathane commented Nov 29, 2024

Description of Change

Screenshots/Video

        

Testing

  • Tested on iOS
  • Tested on Android

Reviewer Validations

PR Checklist

Reviewer: Confirm the items below as you review

  • PR is connected to issue(s)
  • Tests are included to cover this change (when possible)
  • No magic strings (All string unions follow the Union -> Constant type pattern)
  • No secrets or API keys are checked in
  • All imports are absolute (no relative imports)
  • New functions and Redux work have proper TSDoc annotations

For QA

Run a build for this branch

@dumathane dumathane requested review from a team as code owners November 29, 2024 16:26
@dumathane dumathane changed the base branch from develop to feature/Binny-10233-CreatePIIFilter November 29, 2024 16:27
Base automatically changed from feature/Binny-10233-CreatePIIFilter to develop December 3, 2024 13:52
@rbontrager rbontrager requested a review from a team as a code owner December 3, 2024 20:47
alexandec
alexandec previously approved these changes Dec 4, 2024
Copy link
Contributor

@alexandec alexandec left a comment

Choose a reason for hiding this comment

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

Approving with optional suggestions

},
vama_feedback_closed: (screen: string): Event => {
return {
name: 'vama_feedback_page_exit',
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason the event name differs from the function name? Usually they'd be the same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it was originally exit and was too long and i forgot to change the name lol editing now.

const lastReviewVersion = await AsyncStorage.getItem(STORAGE_LAST_REVIEW_VERSION)

if (days > IN_APP_REVIEW_INTERVAL_DAYS && lastReviewVersion !== versionName) {
export const useReviewEvent = (screenView?: boolean, feedbackScreen?: string): (() => Promise<void>) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

You could move these args to the reviewEvent function that this function returns. Optional but it means fewer code changes overall. Also consider renaming screenView to isScreenView since it's a boolean

const reviewEvent = async () => {
if (!featureEnabled('inAppReview') && !featureEnabled('inAppFeedback')) return
//Checked for feedbackScreen triggers first.
if (featureEnabled('inAppFeedback') && feedbackScreen) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider moving this feedback part to a separate function since it feels like a distinct piece of code (optional)

@github-actions github-actions bot added the FE-With QA A PR waiting for QA Activity label Dec 4, 2024
@github-actions github-actions bot added FE-Ready to Merge and removed FE-With QA A PR waiting for QA Activity labels Dec 10, 2024
@dumathane dumathane merged commit 1574896 into develop Dec 13, 2024
89 of 91 checks passed
@dumathane dumathane deleted the feature/10030+10028-CreateAnalyticsAndTrigger branch December 13, 2024 14:10
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.

3 participants