-
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
Add new blocking view for new room page #30051
Conversation
@hoangzinh 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] |
src/libs/Permissions.ts
Outdated
@@ -2,6 +2,7 @@ import CONST from '../CONST'; | |||
import Beta from '../types/onyx/Beta'; | |||
|
|||
function canUseAllBetas(betas: Beta[]): boolean { | |||
return true; |
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 revert this commit
linkKey="workspace.emptyWorkspace.title" | ||
onLinkPress={() => App.createWorkspaceAndNavigateToIt('', false, '', false, false)} |
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 with our change, we should revert those changes from the previous PR #27983. It doesn't make sense when we don't have permission to use policy room, but the helper text is creating workspaces
@hoangzinh The root cause is We have two solution to fix this
|
@dukenv0307 I prefer we should remove duplicated (option 1). What do you think? |
@hoangzinh We are using |
@dukenv0307 hmm I think we're good to go with option 2. |
@hoangzinh Already updated with option 2 and resolved conflict. |
Thanks @dukenv0307, I asked on Slack to speed up the comment here #27995 (comment) |
OK, looks like we have the updated copy, so we should be able to push this forward fairly quickly now? |
Updating now. |
@hoangzinh Updated. Please help to review again. |
@dukenv0307 have you confirmed the copy text in Spain yet? |
@hoangzinh The translation is confirmed. |
onSubmit={submit} | ||
enabledWhenOffline | ||
{({insets}) => | ||
workspaceOptions.length ? ( |
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.
It looks hard to read code. Because the children of <KeyboardAvoidingView
are long, we have to scroll back and forth to read the empty view logic and main logic.
Do you have any idea to make it more readable? 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.
@hoangzinh Updated.
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.
Why didn't we do the reverse? Lift the empty view out (because I think it's a sub/edge case view), and arrange the code to something like this:
isEmpty(workspaceOptions)
? renderEmptyWorkspace()
: ...
what do you think?
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.
@hoangzinh Do you think about lifting both views out?
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.
It's up to you, but I think it's not necessary.
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2023-12-13.at.22.00.33.-.web.mov |
@hoangzinh Updated. |
enabledWhenOffline | ||
{({insets}) => | ||
workspaceOptions.length === 0 ? ( | ||
<>{emptyWorkspaceView}</> |
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.
this syntax is weird. Can we make emptyWorkspaceView as a function and call it here intead?
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.
@hoangzinh Updated.
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 good.
✋ 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/techievivek in version: 1.4.13-0 🚀
|
🚀 Deployed to staging by https://github.com/techievivek in version: 1.4.13-0 🚀
|
Hmm it looks like the screenshots here don't match what was provided by @Expensify/design Can we follow up ASAP and get the correct illustration in here? @dukenv0307 any idea what happened there? |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.13-8 🚀
|
Details
Add new blocking view for new room page
Fixed Issues
$ #27995
PROPOSAL: #27995 (comment)
Tests
Learn more
buttonOffline tests
Same as above
QA Steps
Learn more
buttonPR 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
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
Android: Native
Screen.Recording.2023-10-20.at.11.31.03.mov
Android: mWeb Chrome
Screen.Recording.2023-10-20.at.11.19.11.mov
iOS: Native
Screen.Recording.2023-10-20.at.11.24.25.mov
iOS: mWeb Safari
Screen.Recording.2023-10-20.at.11.21.05.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-20.at.11.16.29.mov
MacOS: Desktop
Screen.Recording.2023-10-20.at.11.35.43.mov