-
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 getReportName and getParentNavigationSubtitle from ReportUtils for reports with title or subtitle as empty string for QR code page #27439
Conversation
@0xmiroslav 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] |
Bump @0xmiroslav |
Reviewer Checklist
Screenshots/Videos |
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!
Asked for design confirmation here
Code looks good! I commented on the issue but I'd like to wait for design to confirm that this works for them too. I made one suggestion on how to make it a little easier for them to confirm. Thanks! |
@dangrous |
Sounds like yes! We can just update this PR if that works for you. Did you see the comment about the subtitle? Do you think you can handle that here as well? |
@c3024 please update screenshots accordingly based on latest change. |
I updated tests and screenshots for all cases that changed from existing behaviour. Please review and suggest any changes if required. @0xmiroslav In the context of this comment here, I just want to clarify that for a thread or task created directly in a workspace chat, the QR code subtitle shows workspaceName like this as asked. |
LGTM! |
src/pages/ShareCodePage.js
Outdated
const subtitle = ReportUtils.getChatRoomSubtitle(this.props.report); | ||
const title = isReport ? ReportUtils.getReportName(this.props.report) : this.props.currentUserPersonalDetails.displayName; | ||
const formattedEmail = this.props.formatPhoneNumber(this.props.session.email); | ||
const subtitle = isReport ? ReportUtils.getChatRoomSubtitle(this.props.report) || ReportUtils.getParentNavigationSubtitle(this.props.report).rootReportName : formattedEmail; |
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.
const subtitle = isReport ? ReportUtils.getChatRoomSubtitle(this.props.report) || ReportUtils.getParentNavigationSubtitle(this.props.report).rootReportName : formattedEmail; | |
const subtitle = isReport ? (ReportUtils.getChatRoomSubtitle(this.props.report) || ReportUtils.getParentNavigationSubtitle(this.props.report).rootReportName) : formattedEmail; |
just to make this a little easier to understand
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.
Prettier is not allowing to add parentheses here.
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.
weird! never mind then haha
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.
One tiny change - this looks good though, we can merge once this is done!
Oh wait sorry - I just noticed. So in the Slack thread Jason suggested that the subtitle for the threads (and tasks, IOUs, etc.) should be the workspace name (if it exists), rather than the parent thread. Can we make that change? So basically everything should have either |
I think this commit settles all we want.
I updated screenshots for all the cases I found for workspace. @dangrous please suggest if I missed anything. cc @0xmiroslav |
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.
Yep those screenshots look good - I think we're good to go!
@0xmiroslav do you mind taking one last look as well? I'm not sure why it didn't dismiss your review since there have been changes. |
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.
LGTM2
Not sure if it's bug but once C+ approved, ✅ keeps remaining even though author pushed more changes 😄
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
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.
not sure why my review got dismissed, but I approved this!
🚀 Deployed to staging by https://github.com/dangrous in version: 1.3.73-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.73-1 🚀
|
🚀 Deployed to staging by https://github.com/dangrous in version: 1.3.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
Details
Fixed Issues
$ #27265
PROPOSAL: #27265 (comment)
Tests
Test 1
Test 2
Test 3
threadName
is shown astitle
andworkSpace
is shown assubtitle
below QR code.Test 4
taskName
is shown astitle
andworkSpace
is shown assubtitle
below QR code.Offline tests
Test 1
Test 2
Test 3
threadName
is shown astitle
andworkSpace
is shown assubtitle
below QR code.Test 4
taskName
is shown astitle
andworkSpace
is shown assubtitle
below QR code.QA Steps
Test 1
Test 2
Test 3
threadName
is shown astitle
andworkSpace
is shown assubtitle
below QR code.Test 4
taskName
is shown astitle
andworkSpace
is shown assubtitle
below QR code.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
Workspace RoomOwner Workspace Chat
Owner view of Chat of Invited Member to Workspace
Archived Workspace Chat
Archived Room
Task in Room
Task in Workspace
Subtask inside Task in Workspace
Thread in Workspace
Thread in Room of Workspace
Non-workspace Thread
Mobile Web - Chrome
qrCodeWebChrome.mp4
Mobile Web - Safari
qrCode-iOSSafari.mov
Desktop
qrCode-Web.mov
iOS
qrCode-iOSNative.mov
Android
Screen.Recording.2023-09-14.at.7.49.47.PM.mov