Travel - Enable trip room renaming#55936
Conversation
|
@shubham1206agra 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: NativeScreen.Recording.2025-02-01.at.12.10.17.AM.movAndroid: mWeb ChromeScreen.Recording.2025-01-31.at.11.53.27.PM.moviOS: NativeScreen.Recording.2025-02-01.at.12.05.05.AM.moviOS: mWeb SafariScreen.Recording.2025-01-31.at.11.48.05.PM.movMacOS: Chrome / SafariScreen.Recording.2025-01-31.at.11.39.34.PM.movMacOS: DesktopScreen.Recording.2025-01-31.at.11.57.16.PM.mov |
rlinoz
left a comment
There was a problem hiding this comment.
Tests well, just one minor comment
| const validate = useCallback( | ||
| (values: FormOnyxValues<typeof ONYXKEYS.FORMS.NEW_CHAT_NAME_FORM>): Errors => { | ||
| const errors: Errors = {}; | ||
| if (!isValidReportName(values[INPUT_IDS.NEW_CHAT_NAME] ?? '')) { |
There was a problem hiding this comment.
Can we also validate the case for empty room name? The group chat has a default name that is why we let it be empty, but trip rooms don't I think
There was a problem hiding this comment.
Good one, changed 👌
|
✋ 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/rlinoz in version: 9.0.95-0 🚀
|
|
@blazejkustra QA encountered with issue #54567 on all platforms |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.95-6 🚀
|
| const {translate} = useLocalize(); | ||
| const styles = useThemeStyles(); | ||
| const personalData = useCurrentUserPersonalDetails(); | ||
| const [newGroupDraft] = useOnyx(ONYXKEYS.NEW_GROUP_CHAT_DRAFT); |
There was a problem hiding this comment.
Came from this issue
Looks like using useOnyx instead withOnyx called this issue
To fix this we updated a condition here to call readFileAsync after the onyx value is loaded completely
| updateChatName(reportID, values[INPUT_IDS.NEW_CHAT_NAME] ?? '', CONST.REPORT.CHAT_TYPE.TRIP_ROOM); | ||
| } | ||
|
|
||
| return Navigation.setNavigationActionToMicrotaskQueue(() => Navigation.goBack(ROUTES.REPORT_SETTINGS.getRoute(reportID))); |
There was a problem hiding this comment.
The backRoute param value is incorrect and caused issue #62972
Explanation of Change
@rlinoz added new command for renaming trip rooms on the backend. This is FE part of this so that users can rename trip rooms.
Fixed Issues
$ #54539
PROPOSAL: N/A
Tests
Precondition - book a travel from olddot within a workspace that doesn't support chats (you can check it in the console)
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Check web and ios
Android: mWeb Chrome
Check web and ios
iOS: Native
ios.mp4
iOS: mWeb Safari
Check web and ios
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
Check web and ios