-
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
Use new path for share url #21081
Use new path for share url #21081
Conversation
@marcaaron 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/pages/ShareCodePage.js
Outdated
@@ -41,7 +41,7 @@ class ShareCodePage extends React.Component { | |||
const isReport = this.props.report != null && this.props.report.reportID != null; | |||
const subtitle = ReportUtils.getChatRoomSubtitle(this.props.report); | |||
|
|||
const url = isReport ? `${CONST.NEW_EXPENSIFY_URL}r/${this.props.report.reportID}` : `${CONST.NEW_EXPENSIFY_URL}details?login=${encodeURIComponent(this.props.session.email)}`; | |||
const url = isReport ? `${CONST.NEW_EXPENSIFY_URL}r/${this.props.report.reportID}` : `${CONST.NEW_EXPENSIFY_URL}a/${this.props.session.accountID}`; |
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.
Can we use getReportRoute and getProfileRoute instead?
158eefe
to
0a3d621
Compare
Updated! |
Lint is failing, but code LGTM. @marcaaron all yours! |
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. Can we also add test steps and screenshots for all platforms?
Doesn't this only apply to web? |
Edit: nevermind, I figured this one out haha |
This comment was marked as outdated.
This comment was marked as outdated.
Oh also I would say that maybe these links should work with deep links on native? But I see we have not set them up yet here (at least for Apple): App/.well-known/apple-app-site-association Lines 7 to 46 in b49ca20
|
Reviewer Checklist
Screenshots/VideosDesktopiOSAndroid |
Oh sorry, did we want to CP this to staging? Maybe it must be done manually now? |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Use new path for share url (cherry picked from commit 3030d6f)
…ing-21081 🍒 Cherry pick PR #21081 to staging 🍒
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 1.3.29-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.29-11 🚀
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 1.3.32-1 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.32-5 🚀
|
Details
When we refactored Personal Details we didn't remember to update the QR Code/Share Link page. This PR addresses that with @hungvu193's proposed fix.
Fixed Issues
$ #20993
PROPOSAL: #20993 (comment)
Tests
Offline tests
QA Steps
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)/** 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
Mobile Web - Chrome
2023-06-19_17-36-09.mp4
Mobile Web - Safari
Uploading Simulator Screen Recording - iPhone 13 - 2023-06-19 at 16.57.50.mp4…
Desktop
N/A
iOS
N/A
Android
N/A