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

Bump react-native-web to 0.15.7 react to 17.0.2 #3215

Merged
merged 10 commits into from
Jun 9, 2021

Conversation

marcaaron
Copy link
Contributor

@marcaaron marcaaron commented May 28, 2021

Details

cc @roryabraham @sketchydroide

Coming from #2939

I'm gonna recommend that we do not update to react-native-web 0.16 yet because there is a change to EventEmitter that is causing logs to stream in the console. Probably this will change when we update other dependencies that reference the more recent versions of react-native.

Fixed Issues (Snyk PR)

#2939

Tests

QA Steps

Test opening links and verify they open in new tabs on web
Test for general regressions in all platforms

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

@marcaaron marcaaron self-assigned this May 28, 2021
@roryabraham
Copy link
Contributor

I'm gonna recommend that we do not update to react-native-web 0.16 yet because there is a change to EventEmitter that is causing logs to stream in the console

👍

@marcaaron
Copy link
Contributor Author

There is a bug on main preventing Android testing (reverted the code here so we could test), but this is working pretty good for me.

@marcaaron marcaaron marked this pull request as ready for review May 28, 2021 21:07
@marcaaron marcaaron requested a review from a team as a code owner May 28, 2021 21:07
@MelvinBot MelvinBot requested review from Julesssss and removed request for a team May 28, 2021 21:07
@Julesssss
Copy link
Contributor

FYI, conflicts

@marcaaron
Copy link
Contributor Author

Updated

@Julesssss
Copy link
Contributor

Damn, sorry @marcaaron -- some recent merge has triggered further conflicts

@marcaaron
Copy link
Contributor Author

Thanks, conflicts fixed

Copy link
Contributor

@Julesssss Julesssss left a comment

Choose a reason for hiding this comment

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

Changes look good and it tested well. Added a few questions

@marcaaron
Copy link
Contributor Author

Gonna run through platform tests again since we just updated 7 zillion other things.

@marcaaron
Copy link
Contributor Author

Ok ready for review again

Comment on lines -102 to 101
/**
* Determines whether the drawer is currently open.
*
* @returns {Boolean}
*/
function isDrawerOpen() {
return getIsDrawerOpenFromState(navigationRef.current.getRootState().routes[0].state);
}

export default {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this just removed for cleanup?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Contributor

@Julesssss Julesssss left a comment

Choose a reason for hiding this comment

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

Looking good. Ran through all flow I could think of without running into any issues.

@Julesssss Julesssss merged commit 84f0b3e into main Jun 9, 2021
@Julesssss Julesssss deleted the marcaaron-bumpReactNativeWeb branch June 9, 2021 11:48
@OSBotify
Copy link
Contributor

OSBotify commented Jun 9, 2021

🚀 Deployed to staging in version: 1.0.65-10🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@isagoico
Copy link

isagoico commented Jun 9, 2021

Links are opening in the same tab

Expected Result

Links should open in a different tab

Actual result

Links are opening in the same tab

Action Performed

  1. Navigate to a conversation and send a link
  2. Click on the link in the conv

Platform

Web ✔️
mWeb ✔️

Notes/images/video
(I'm on mobile atm and unable to upload the vid getting the video in a bit)

@isagoico isagoico added the DeployBlockerCash This issue or pull request should block deployment label Jun 9, 2021
@OSBotify
Copy link
Contributor

OSBotify commented Jun 9, 2021

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@marcaaron
Copy link
Contributor Author

Navigate to a conversation and send a link

Hmm.. I think this is possibly related to this PR -> #3066

And not this one... cc @roryabraham - also lmk if that's incorrect and I can look into this some more.

@roryabraham
Copy link
Contributor

Hmm.. I think this is possibly related to this PR -> #3066

I don't think so ... I believe I checked regular links in the testing + QA steps of that PR. Also the _target wasn't changed, just certain URLs are given an ?authToken=xyz where they were not before.

@marcaaron
Copy link
Contributor Author

Ok cool maybe it is related to react-native-web accessibility stuff. I'm unsure how those links are working.

@Julesssss
Copy link
Contributor

If it helps, I'm pretty sure I didn't try opening links during testing.

@marcaaron
Copy link
Contributor Author

Copied the markup from one of these links and got this

<a href="https://google.com" role="link" class="css-reset-4rbku5 css-cursor-18t94o4 css-text-901oao css-textHasAncestor-16my406" style="color: rgb(1, 133, 255); font-family: GTAmericaExp-Regular; font-size: 15px; line-height: 20px; text-decoration-color: rgb(1, 133, 255); text-decoration-line: underline;">https://google.com</a>

so seems like the target is not getting passed now, but unsure why.

@marcaaron
Copy link
Contributor Author

Seems like we need to use hrefAttrs as per -> https://necolas.github.io/react-native-web/docs/accessibility/#links

Fix PR incoming.

@marcaaron marcaaron mentioned this pull request Jun 9, 2021
5 tasks
@stitesExpensify
Copy link
Contributor

It looks like this PR is responsible for #3512

It seems like the new react native web is eating shortcuts for some reason when focused on inputs. This happens when doing cmd+k for the sidebar, and pressing escape to remove the sidebar.

@Julesssss
Copy link
Contributor

I had a quick look through the 0.16.0 changes, but couldn't find anything obvious that would break shortcut keys.

It's also odd that no one else has reported this issue (the release was back in April).

@Julesssss
Copy link
Contributor

It looks to me like this react-native-web update is also responsible for this regression. Perhaps we should think about reverting for now?

@Julesssss
Copy link
Contributor

Julesssss commented Jun 11, 2021

I'm leaning towards reverting this PR as it introduced two regressions that block our N5 build and we're struggling to make progress on these fixes.

Does anyone disagree? It's a bit of a pain to revert, CP and review again but I can't see much progress being made here soon and we're hoping to release on Monday.

CC @trjExpensify

@stitesExpensify
Copy link
Contributor

If we're planning on releasing Monday I agree, we should just revert. These are changes to 2 of our core components and if we already have 2+ regressions, I would be willing to bet there are more

@marcaaron
Copy link
Contributor Author

If we want to revert this then we will need to also roll back #3486

Also heads up, if we wants this to happen before Monday please get someone else to help with the revert and testing as I can't manage this. We might also want to keep an eye on the react-native version bump made here if we are worried about

if we already have 2+ regressions, I would be willing to bet there are more

@stitesExpensify
Copy link
Contributor

if we wants this to happen before Monday please get someone else to help with the revert and testing as I can't manage this

I also can't take care of this 😅 I'm working half days Monday/Tuesday

@Julesssss
Copy link
Contributor

I was mistaken. This PR didn't introduce the issue -- it started occurring after main was merged into this PR, so here is the list of libraries that could have introduced the regression.

@Julesssss Julesssss removed the DeployBlockerCash This issue or pull request should block deployment label Jun 14, 2021
@OSBotify
Copy link
Contributor

🚀 Deployed to production in version: 1.0.68-4🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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.

6 participants