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

fix: Correctly filter CollectorProfileUpdatePromptNotificationItem in Activity rail #11501

Conversation

olerichter00
Copy link
Contributor

@olerichter00 olerichter00 commented Feb 6, 2025

This PR resolves PBRW-392

Description

I’ve looked into the code, and it could be related to this line, which prevents rendering activity items with the type name CollectorProfileUpdatePromptNotificationItem man shrugging Activities by this type get filtered out in the rail item component instead of the rail. This could be the reason why the rail is still rendering.

PR Checklist

  • I have tested my changes on iOS and Android.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos, 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

  • Correctly filter CollectorProfileUpdatePromptNotificationItem in Activity rail. - ole

iOS user-facing changes

Android user-facing changes

Dev changes

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

@olerichter00 olerichter00 self-assigned this Feb 6, 2025
@ArtsyOpenSource
Copy link
Contributor

ArtsyOpenSource commented Feb 6, 2025

This PR contains the following changes:

  • Cross-platform user-facing changes (Correctly filter CollectorProfileUpdatePromptNotificationItem in Activity rail. - ole - olerichter00)

Generated by 🚫 dangerJS against a55e0c0

Copy link
Member

@MounirDhahri MounirDhahri left a comment

Choose a reason for hiding this comment

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

good catch! I wonder if there is another way so this logic doesn't break the next time we introduce a new type. That can be something we look for later

@olerichter00
Copy link
Contributor Author

olerichter00 commented Feb 6, 2025

Yes! I guess we should not filter out by type just in the item component and should use the existing helper function.

Typing is quite wild in the Activity panel and may have caused the problem.

@olerichter00 olerichter00 merged commit ac4c092 into main Feb 6, 2025
7 checks passed
@olerichter00 olerichter00 deleted the olerichter00/PBRW-392/correctly-filter-collectorprofileupdatepromptnotificationitem-in-activity-rail branch February 6, 2025 15:04
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