-
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
feat: redirect to workspace after creation #19224
Conversation
@NikkiWines @Santhosh-Sellavel One of you needs to 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] |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-05-20.at.1.45.42.AM.movDesktopScreen.Recording.2023-05-20.at.1.45.15.AM.movMobile Web - Chrome & Mobile Web - SafariScreen.Recording.2023-05-20.at.1.51.31.AM.movAndroidScreen.Recording.2023-05-20.at.1.56.17.AM.moviOSScreen.Recording.2023-05-20.at.1.53.12.AM.mov |
src/libs/actions/Policy.js
Outdated
// This is needed to redirect the user to workspace admin screen on the main router stack | ||
// https://github.com/Expensify/App/pull/19224 |
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 is needed to redirect the user to workspace admin screen on the main router stack | |
// https://github.com/Expensify/App/pull/19224 | |
// To navigate the user to admin room | |
// https://github.com/Expensify/App/issues |
Wait for @NikkiWines before updating
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 would make the comment more generic to the behavior and less about the issue it's fixing. e.g.
Get the reportID associated with the newly created #admins room and route the user to that chat
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.
@allroundexperts 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.
@Santhosh-Sellavel Is this fine?
Get the reportID associated with the newly created #admins room and route the user to that chat
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.
Yes it's fine
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.
Should remove the issue/pr links @allroundexperts
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.
@Santhosh-Sellavel 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.
minor comment adjustment
src/libs/actions/Policy.js
Outdated
// This is needed to redirect the user to workspace admin screen on the main router stack | ||
// https://github.com/Expensify/App/pull/19224 |
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 would make the comment more generic to the behavior and less about the issue it's fixing. e.g.
Get the reportID associated with the newly created #admins room and route the user to that chat
@allroundexperts can you fix lint please? |
Mobile commits aren’t a good idea 😅.
I’ll push once I’m on my laptop
…On Sun, 21 May 2023 at 9:11 PM, Santhosh Sellavel ***@***.***> wrote:
@allroundexperts <https://github.com/allroundexperts> can you fix lint
please?
—
Reply to this email directly, view it on GitHub
<#19224 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHFJUUB5YYHKJ3YCRTTTFEDXHI5CPANCNFSM6AAAAAAYHAQROI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Santhosh-Sellavel All done! |
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 @NikkiWines
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 great!
✋ 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/NikkiWines in version: 1.3.17-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.17-5 🚀
|
Details
This PR redirects the user to the workspace page in the background once a new workspace is created.
Fixed Issues
$ #18894
PROPOSAL: #18894 (comment)
Tests
Create new workspace
buttonOffline tests
N/A
QA Steps
Create new workspace
buttonPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Screen.Recording.2023-05-19.at.1.30.25.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-05-19.at.1.37.41.AM.mov
Mobile Web - Safari
Screen.Recording.2023-05-19.at.1.34.25.AM.mov
Desktop
Screen.Recording.2023-05-19.at.1.30.57.AM.mov
iOS
Screen.Recording.2023-05-19.at.1.40.34.AM.mov
Android
Screen.Recording.2023-05-19.at.1.39.05.AM.mov