-
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
[Details Revamp] Allow Editing Report Title from Details Page #44671
[Details Revamp] Allow Editing Report Title from Details Page #44671
Conversation
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.
Lint is failing, but overall it LGTM
@ishpaul777 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeRecord_2024-07-02-18-44-52.mp4Android: mWeb ChromeVIDEO-2024-07-02-18-52-49.mp4iOS: NativeScreen.Recording.2024-07-02.at.6.22.33.PM.moviOS: mWeb SafariScreen.Recording.2024-07-02.at.6.33.04.PM.movMacOS: Chrome / SafariScreen.Recording.2024-07-02.at.6.13.05.PM.movMacOS: DesktopScreen.Recording.2024-07-03.at.10.02.14.PM.mov |
@cdOut Does that mean if user A invited user B to a workspace (as member only) and user B submit 2 expenses. user should not be able to edit the expense report title? Asking because user B seems to be able to edit the title |
I'm fairly sure that user B should still be able to change the title, you can check the requirements here. The direct quote is here:
|
I believe "Invitee" being referenced here is just a random user that might be @-mentioned on an expense report and then has the report shared with them. It doesn't mean the submitter of the expense report. The submitter should be able to edit the title of their expense report (so long as default report titles aren't enforced on the workspace, in which case nobody can edit the titles). |
Haha, jinx. |
For such user, The title seems missing is this a bug ? Screen.Recording.2024-07-02.at.6.27.32.PM.mov |
It is a bug, I'll let you know when I fix it. |
@ishpaul777 I've pushed a fix, let me know if it works for all cases (member, admin, invitee). |
Triggered test build |
merge main into @cdOut/money-report-rename
This comment was marked as outdated.
This comment was marked as outdated.
@cdOut let me know when you're ready for a new build |
@grgia should be ready for a new build now. |
I'll rereview in ~1 hour. |
This reverts commit 25f59de.
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/grgia in version: 9.0.5-0 🚀
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.0.5-2 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
titleStyle={styles.newKansasLarge} | ||
shouldCheckActionAllowedOnPress={false} | ||
description={Str.UCFirst(titleField.name)} | ||
onPress={() => Navigation.navigate(ROUTES.EDIT_REPORT_FIELD_REQUEST.getRoute(report.reportID, report.policyID ?? '-1', titleField.fieldID ?? '-1'))} |
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.
Coming from this #44963, After editing the title, the user should be returned to the Details RHP instead of dismissing the RHP modal.
Details
Moved the option to rename the money report title field from the report view into the new report details.
Fixed Issues
$ #44149
PROPOSAL:
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 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
ANDROID-NATIVE.mov
Android: mWeb Chrome
ANDROID-CHROME.mov
iOS: Native
IOS-NATIVE.mov
iOS: mWeb Safari
IOS-SAFARI.mov
MacOS: Chrome / Safari
WEB.mov
MacOS: Desktop
DESKTOP.mov