-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 'WorkspaceNewRoom' page to TypeScript #34742
[TS migration] Migrate 'WorkspaceNewRoom' page to TypeScript #34742
Conversation
This work is blocked by #31972 |
21a8ee6
to
31581f9
Compare
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
@arosiclair 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] |
Code seems good on first glance. @VickyStash @filip-solecki can one of you complete the checklist please? Thanks! |
C+ is supposed to checklist on TS migration PRs but seems missing here. |
@situchan please review |
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.
Code looks good. Testing
@pac-guerreiro please pull main. Context here, thanks! |
…oompage-to-typescript
ok, so TS check failing after pull main. |
…oompage-to-typescript # Conflicts: # src/pages/workspace/WorkspaceNewRoomPage.tsx
9039af6
to
c8fa793
Compare
@situchan Typescript issues and conflicts resolved! Thanks 😄 |
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.
please resolve conflict
label={translate('workspace.common.workspace')} | ||
items={workspaceOptions} | ||
value={policyID} | ||
onValueChange={setPolicyID} | ||
onValueChange={(value) => setPolicyID(value as typeof policyID)} |
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.
No way to avoid this typecast? I don't see such pattern throughout the app.
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.
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 like it was just merged a few days ago. You mind updating this now?
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.
@pac-guerreiro bump ^
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.
@arosiclair @situchan type assertion is still needed 😅
…oompage-to-typescript # Conflicts: # src/libs/ErrorUtils.ts # src/libs/ValidationUtils.ts # src/pages/workspace/WorkspaceNewRoomPage.tsx
Conflicts resolved! |
@situchan Conflicts resolved 😄 |
@pac-guerreiro conflicts again |
…oompage-to-typescript # Conflicts: # src/pages/workspace/WorkspaceNewRoomPage.tsx
@situchan Conflicts resolved again |
…oompage-to-typescript
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
@situchan please prioritize this review so we can close this out without more conflicts, thanks |
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.
@arosiclair all yours |
Also, hoping this PR would get merged sooner than #34654 |
#34654 was merged earlier. |
…oompage-to-typescript
93dd85a
to
4e062c4
Compare
@situchan conflicts resolved! |
@pac-guerreiro please avoid force-push once review started. Is this just your change? |
@situchan Sorry, I won't do it again! I just wanted to make amends to my last commit 😅 Those were my changes! |
…oompage-to-typescript
@arosiclair all yours |
✋ 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/arosiclair in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
if (!(((wasLoading && !isLoading) || (isOffline && isLoading)) && isEmptyObject(errorFields))) { | ||
return; | ||
} | ||
Navigation.dismissModal(newRoomReportID); | ||
// eslint-disable-next-line react-hooks/exhaustive-deps -- we just want this to update on changing the form State | ||
}, [props.formState]); | ||
}, [isLoading, errorFields]); |
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 am working on a PR and I am seeing a lint failure in this file: https://github.com/Expensify/App/actions/runs/8103662907/job/22148730565?pr=37556#step:4:19
Warning: 147:8 warning React Hook useEffect has missing dependencies: 'isOffline', 'newRoomReportID', and 'wasLoading'. Either include them or remove the dependency array react-hooks/exhaustive-deps
Questions are:
- Should I include those other variables like it is suggesting?
- Why is this failing lint now and not when this PR was merged?
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.
// eslint-disable-next-line react-hooks/exhaustive-deps
@iwiznia because you removed this comment in your PR
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.
Oh thanks! 🤦
For some reason my IDE was marking that line as an error... thanks!
Details
Fixed Issues
$#25188
PROPOSAL: N/A
Tests
( + )
button and selectStart chat
Room
tabCreate room
below.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)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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop