-
Notifications
You must be signed in to change notification settings - Fork 3k
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
21345 - Upgrade Electron to latest #21885
Conversation
@Santhosh-Sellavel Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@@ -14,6 +14,7 @@ const WebGenericPressable = forwardRef((props, ref) => ( | |||
aria-label={props.accessibilityLabel} | |||
aria-labelledby={props.accessibilityLabelledBy} | |||
aria-valuenow={props.accessibilityValue} | |||
nativeID={props.nativeID || 'no-drag-area'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't it break the pressable functionality if props.nativeID
is passed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think no, why it could break Pressable functionality? As they wrote in the docs:
And note that if you have made the whole window draggable, you must also mark buttons as non-draggable, otherwise it would be impossible for users to click on them
We should mark all of our Pressables with -webkit-app-region: no-drag;
and we are doing it using nativeID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right looks good! We just need to test this out and out!
@Santhosh-Sellavel what do you think about this PR? |
Didn't get to test this enough, will update you after testing this over the weekend |
I played around with the app, I don't see any issues so far. I'll just run through the checklist and will try to get this merged if no issues at all. |
@Santhosh-Sellavel I merged the latest main into this PR and it fixed a problem with new errors in the console |
@Skalakid Can you merge with the main as there is a lint error? Also, I checked there are no new warnings here different from the main, but is this warning seems like something we need to look into? |
@Santhosh-Sellavel Lint error is gone :D Also, I'm not too familiar with Electron Security, but I think it is worth checking what causes this error in another PR. I think it would be beneficial to check our app's security by getting threw this checklist and setting Content Security Policy |
I think that adding a CSP to the renderer process can and should be a separate issue. |
@roryabraham I think then we are good here, I'll add the checklist shortly. |
Reviewer Checklist
Screenshots/VideosDesktop & WebScreen.Recording.2023-07-12.at.12.50.36.AM.movMobile Web - Chrome & Mobile Web - SafariScreen.Recording.2023-07-12.at.12.54.25.AM.moviOS & AndroidScreen.Recording.2023-07-12.at.1.08.03.AM.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All yours @roryabraham!
C+ Reviewed
🎀 👀 🎀
@roryabraham I request you to not merge this one as I ran into a bug earlier. I'll investigate and post an update tomorrow. |
Thanks for waiting, The weird issue was this, where I am trying to click |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All yours @roryabraham!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.40-0 🚀
|
@Skalakid some more specific QA steps would be helpful here |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.40-5 🚀
|
Details
Fixed Issues
$ #21345
PROPOSAL: #21345 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
N/A
Mobile Web - Chrome
N/A
Mobile Web - Safari
N/A
Desktop
updated.mov
iOS
N/A
Android
N/A