[TS migration] Migrate 'WorkspaceNewRoom' page to TypeScript#34742
Conversation
|
This work is blocked by #31972 |
21a8ee6 to
31581f9
Compare
|
@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 |
situchan
left a comment
There was a problem hiding this comment.
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 😄 |
situchan
left a comment
There was a problem hiding this comment.
please resolve conflict
| items={workspaceOptions} | ||
| value={policyID} | ||
| onValueChange={setPolicyID} | ||
| onValueChange={(value) => setPolicyID(value as typeof policyID)} |
There was a problem hiding this comment.
No way to avoid this typecast? I don't see such pattern throughout the app.
There was a problem hiding this comment.
Looks like it was just merged a few days ago. You mind updating this now?
There was a problem hiding this comment.
@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 |
|
@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.
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.
// eslint-disable-next-line react-hooks/exhaustive-deps
@iwiznia because you removed this comment in your PR
There was a problem hiding this comment.
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 chatRoomtabCreate roombelow.Offline tests
Same as tests.
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop