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

[PLAT-11664] Refactor navigation components #418

Merged

Conversation

gingerbenw
Copy link
Member

@gingerbenw gingerbenw commented Mar 11, 2024

Goal

Ensure the CompleteNavigation interacts with navigation spans as intended

Changeset

  • Refactor complete-navigation.tsx to use a functional component
  • use componentWillAppear over componentDidAppear listener to prevent iOS issues when using the CompleteNavigation component

Testing

Updated end to end tests to implement CompleteNavigation component in all use cases

Copy link

github-actions bot commented Mar 11, 2024

Browser bundle size

NPM build

Package
Before 180.09 kB
After 180.09 kB
± No change

CDN build

Unminified Minfied Minified + gzipped
Before 87.01 kB 32.72 kB 10.01 kB
After 87.01 kB 32.72 kB 10.01 kB
± No change No change No change

Code coverage

Coverage values did not change👌.

Total:

Lines Branches Functions Statements
87.61%(+0.22%) 78.55%(+0%) 88.34%(+0%) 84.52%(+0.28%)

Generated against 5161e2f on 18 March 2024 at 12:46:55 UTC

Base automatically changed from PLAT-11721/react-native-navigation-app-start-spans to integration/react-native-navigation March 11, 2024 12:34
@gingerbenw gingerbenw force-pushed the integration/react-native-navigation branch from a37556f to 28ad5a9 Compare March 11, 2024 12:41
@gingerbenw gingerbenw force-pushed the PLAT-11664/navigation-components branch from 26a393c to 9a567f0 Compare March 11, 2024 12:43
@gingerbenw gingerbenw force-pushed the PLAT-11664/navigation-components branch from 88b76a9 to 2f60963 Compare March 11, 2024 15:43
@gingerbenw gingerbenw force-pushed the PLAT-11664/navigation-components branch from fd0ac27 to c028a42 Compare March 14, 2024 09:24
@gingerbenw gingerbenw marked this pull request as ready for review March 14, 2024 15:54

And the trace "Bugsnag-Span-Sampling" header equals "1:3"

And a span named "[AppStart/ReactNativeInit]" contains the attributes:
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the reason for removing the app start test?

Copy link
Member Author

Choose a reason for hiding this comment

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

ahh, I was just going to separate it out into a different scenario, but it appears I've missed the 'adding it back in' part

Copy link
Member Author

Choose a reason for hiding this comment

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

I've now updated the feature to run the app start span scenario

@gingerbenw gingerbenw merged commit bb27f00 into integration/react-native-navigation Mar 18, 2024
38 checks passed
@gingerbenw gingerbenw deleted the PLAT-11664/navigation-components branch March 18, 2024 15:35
gingerbenw added a commit that referenced this pull request Mar 18, 2024
* Refactor navigation component to ensure spans are ended with the appropriate time and condition
gingerbenw added a commit that referenced this pull request Mar 19, 2024
* [PLAT-11664] Refactor navigation components to ensure spans are ended with the appropriate time and condition (#418)

Add support for react-native-navigation library
@gingerbenw gingerbenw mentioned this pull request Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants