-
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
fix navigation to room description #52485
Conversation
@alitoshmatov 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/components/ReportWelcomeText.tsx
Outdated
@@ -123,12 +124,13 @@ function ReportWelcomeText({report, policy}: ReportWelcomeTextProps) { | |||
(welcomeMessage?.messageHtml ? ( | |||
<PressableWithoutFeedback | |||
onPress={() => { | |||
if (!canEditPolicyDescription) { | |||
if (!canEdit) { |
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 you change it to more descriptive name like canEditReportDescription
Also update similar usage in line 159
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.
Done.
While testing, I noticed the behavior of the back button. If we open the description from the chat and press the back button, it takes the user to the report details page. This behavior is the same for the rooms page as well. It could be easily fixed by using App/src/components/ReportWelcomeText.tsx Line 156 in 4df913e
Screen.Recording.2024-11-13.at.10.21.11.PM.mov |
@Nodebrute Yes, I also think we should fix that, lets apply your solution for both places. |
@Nodebrute How is the PR going? Will you be updating it today? |
I'll update this shortly. |
@alitoshmatov I've made the changes. |
@alitoshmatov bump ^ |
@alitoshmatov bump fro review |
Bumped in slack. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeinvoice-android.movAndroid: mWeb ChromeiOS: Nativeinvoice-ios.mp4iOS: mWeb Safariinvoice-safari.mp4MacOS: Chrome / Safariinvoice-web.movMacOS: Desktopinvoice-desktop.mov |
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!
✋ 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: 9.0.67-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.67-9 🚀
|
Explanation of Change
Fixed Issues
$ #51976
PROPOSAL: #51976 (comment)
Tests
Offline tests
Same as above
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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.2024-11-13.at.9.42.16.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-11-13.at.9.46.52.PM.mov
iOS: Native
Screen.Recording.2024-11-13.at.9.51.31.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-11-13.at.9.55.02.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-11-13.at.9.33.08.PM.mov
MacOS: Desktop
Screen.Recording.2024-11-13.at.9.47.49.PM.mov