-
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
[TS migration] Migrate 'Desktop' files to TypeScript #37615
[TS migration] Migrate 'Desktop' files to TypeScript #37615
Conversation
return contextMenu({ | ||
labels: { | ||
cut: Localize.translate(preferredLocale, 'desktopApplicationMenu.cut'), | ||
paste: Localize.translate(preferredLocale, 'desktopApplicationMenu.paste'), | ||
copy: Localize.translate(preferredLocale, 'desktopApplicationMenu.copy'), | ||
}, | ||
append: (defaultActions, parameters, browserWindow) => [ | ||
new MenuItem({ |
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.
details.requestHeaders.origin = CONFIG.EXPENSIFY.URL_EXPENSIFY_CASH; | ||
details.requestHeaders.referer = CONFIG.EXPENSIFY.URL_EXPENSIFY_CASH; |
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.
URL_EXPENSIFY_CASH
was removed from config a lot of time ago.
@@ -404,14 +413,13 @@ const mainWindow = () => { | |||
submenu: [ | |||
{ | |||
id: 'back', | |||
role: 'back', |
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.
back
role doesn't exist, and overall since the menu item has click function it wasn't necessary. See more in docs
@@ -420,14 +428,13 @@ const mainWindow = () => { | |||
}, | |||
{ | |||
id: 'forward', | |||
role: 'forward', |
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.
forward
role doesn't exist, and overall since the menu item has click function it wasn't necessary. See more in docs
accelerator: process.platform === 'darwin' ? 'Cmd+[' : 'Shift+[', | ||
click: () => { | ||
browserWindow.webContents.goBack(); | ||
}, | ||
}, | ||
{ | ||
role: 'back', | ||
label: 'backWithKeyShortcut', |
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.
Without role
/label
this item made the app crash, since 'back' role doesn't exist I've added a label, it's not shown since this item is not visible.
accelerator: process.platform === 'darwin' ? 'Cmd+]' : 'Shift+]', | ||
click: () => { | ||
browserWindow.webContents.goForward(); | ||
}, | ||
}, | ||
{ | ||
role: 'forward', | ||
label: 'forwardWithKeyShortcut', |
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.
Without role
/label
this item made the app crash, since 'back' role doesn't exist I've added a label, it's not shown since this item is not visible.
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.
LGTM ❤️ Please test it extensively to make sure desktop apps are running smoothly and the desktop build script too!
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.
LGTM! Let's test desktop extensively by QA team 😄
@mountiny Could you please generate adhoc builds for this branch to make sure desktop app build is okay? |
This comment has been minimized.
This comment has been minimized.
Seems like it failed in the setupNode step https://github.com/Expensify/App/actions/runs/8206513618/job/22445894155 |
Testing again https://github.com/Expensify/App/actions/runs/8208509429 Does it maybe need to be build off this branch code too? |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
@mountiny Could you please clarify what do you mean? |
@VickyStash ah sorry, that was irrelevant after the second build succeeded Basically what I meant is whether the build workflow uses the config files from the branch it building or from main. |
@getusha kind bump 🙂 |
@VickyStash not sure if this is related #exfy-roadmap is not opening for me, the skeleton just flickers. Screen.Recording.2024-03-14.at.1.57.28.in.the.afternoon.mov |
@VickyStash noticed a strange thing, after running |
@getusha It works the same way on the main branch for me, could you confirm? |
Can confirm it is the same on |
Reviewer Checklist
Screenshots/VideosMacOS: DesktopScreen.Recording.2024-03-14.at.3.01.06.in.the.afternoon.mov |
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25333 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
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.
Looks fine to me, thanks for testing thoroughly, be on a look out if there will be any issues with desktop please
# Conflicts: # package-lock.json
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
Hmm tests were passing |
✋ 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/mountiny in version: 1.4.54-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.54-4 🚀
|
Details
[TS migration] Migrate 'Desktop' files to TypeScript
Fixed Issues
$ #25333
PROPOSAL: N/A
Tests
desktop/dist
folderHistory
->Back
/Forward
)Since
concurrently
lib got updated in this PR, please also check that next scripts work as expected:npm run ipdad
npm run ipad-sm
npm run web
Offline tests
N/A
QA Steps
History
->Back
/Forward
)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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
MacOS: Desktop
desktop1.mp4