Skip to content

fix: adjust tapped navigation tab event #11913

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dariakoko
Copy link
Contributor

This PR resolves []

Description

As requested by data, adjust the tracking of the pill tap event
Slack thread: https://artsy.slack.com/archives/C05EQL4R5N0/p1744376580199449?thread_ts=1742927066.401229&cid=C05EQL4R5N0

PR Checklist

  • I have tested my changes on the following platforms:
    • Android.
    • iOS.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos at least on Android, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

  • adjust tapped navigation tab event

Need help with something? Have a look at our docs, or get in touch with us.

@dariakoko dariakoko requested a review from MounirDhahri April 14, 2025 16:40
@dariakoko dariakoko self-assigned this Apr 14, 2025
@ArtsyOpenSource
Copy link
Contributor

ArtsyOpenSource commented Apr 14, 2025

This PR contains the following changes:

  • Dev changes (adjust tapped navigation tab event - dariakoko)

Generated by 🚫 dangerJS against 182e68b

MounirDhahri
MounirDhahri previously approved these changes Apr 15, 2025
Comment on lines 38 to 48
const trackTappedInfoBubble = () => {
let contextModule: ContextModule
switch (activeTab) {
case "saves":
contextScreen = ContextModule.favoritesSaves
contextModule = ContextModule.favoritesSaves
break
case "follows":
contextScreen = ContextModule.favoritesFollows
contextModule = ContextModule.favoritesFollows
break
case "alerts":
contextScreen = ContextModule.favoritesAlerts
contextModule = ContextModule.favoritesAlerts
Copy link
Member

Choose a reason for hiding this comment

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

To avoid maintaining this and forgetting to add new context modules if we add new tabs, maybe we can add the context module to Pills inside Favorites.tsx.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, addressing it now

@dariakoko dariakoko added the Squash On Green A label to indicate that Peril should squash-merge this PR when all statuses are green label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Squash On Green A label to indicate that Peril should squash-merge this PR when all statuses are green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants