(Tweaks to the Create Expense Flow) - follow-up - change workspace subtitle#55863
Conversation
|
@abdulrahuman5196 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] |
|
🚧 @trjExpensify has triggered a test build. You can view the workflow run here. |
|
Running a build and couldn't see it in the screenie, but just checking @JKobrynski, when you tap on the participant does the submitsTo carry through to the subtitle of the |
|
Assigning this to @mananjadhav as he's been on the PRs for this issue. |
This comment has been minimized.
This comment has been minimized.
|
@JKobrynski Can you check the comment from @trjExpensify ? |
I added it as a fallback, just so it doesn't show Besides that, the PR was updated, all comments have been addressed, feel free to give it another go! |
grgia
left a comment
There was a problem hiding this comment.
Changes LGTM, could you fix lint?
|
Just finished the code review, will test this now. |
|
@JKobrynski I can see still the workspaces that were archived. Am I missing something?
|
|
@mananjadhav I tried to reproduce this but I couldn't. I also searched through the code and did a bit of debugging to try and find possible causes of this but I think it's not an efficient way to do this so here are a couple solutions that I'd like to suggest:
if ((isPolicyExpenseChat(report) && !!report?.isOwnPolicyExpenseChat) || isExpenseReport(report)) {
const submitToAccountID = getSubmitToAccountID(getPolicy(report?.policyID), report);
const submitsToAccountDetails = allPersonalDetails?.[submitToAccountID];
const subtitle = submitsToAccountDetails?.displayName ?? submitsToAccountDetails?.login;
+ console.log('POLICY ID', report?.policyID);
+ console.log('POLICY', getPolicy(report?.policyID));
+ console.log('SUBMIT TO ACCOUNT ID', submitToAccountID);
+ console.log('SUBMIT TO ACCOUNT DETAILS', submitsToAccountDetails);
+ console.log('SUBTITLE', subtitle);
if (!subtitle || !config.isCreateExpenseFlow) {
return translateLocal('workspace.common.workspace');
}
return translateLocal('iou.submitsTo', {name: subtitle ?? ''});
}and look at the console to locate the data of the report that has the missing subtitle, then paste a screenshot of it here so we can discuss where exactly it fails to retrieve it. Let me know what you think! |
|
@JKobrynski Here's an data of one the policies. Now I am not sure why the data is different for both the policies on two different platforms. **Web****iOS** |
|
@mananjadhav thank you for uploading these objects, I really appreciate it!! I'm taking a look at them now and I see the |
…ticipants-selector-workspace-row
|
Conflicts resolved. |
|
Yes all the |
|
🚧 @grgia has triggered a test build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
What's the latest here, are we ready to merge? |
|
As I've said I can still reproduce this issue. @JKobrynski I am also not the admin of these workspaces. Can you probably post on the #expensify-open-source channel to ask someone from the QA team to add you? @grgia Any thoughts on this? I am not sure if this could be a follow up or it's a workspace specific change. |
|
@mananjadhav it might be some kind of Onyx issue, where the object just doesn't fully load as one of its properties is an array with like 100 records 🤔 I'm going to post on that channel so someone can add me. If you'd like, we can merge this and start working on a follow-up to fix this |
|
I think we should go ahead with the PR, but will let @grgia decide. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb Chromemweb-chrome-submits-to.moviOS: Nativeios-submits-to.mov |
|
We can definitely rule out this PR as an issue, because if I select the workspace and then go back to the list + search you'll end up seeing the @grgia @JKobrynski I think we should create a separate issue for the same. |
@mananjadhav could you help me out with the description of the issue |
|
✋ 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.95-0 🚀
|
|
Sorry I missed it. @grgia let me know if this is fine: Problem:
Repro Steps:
Debug Findings:
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.95-6 🚀
|
| const ownerPersonalDetails = OptionsListUtils.getPersonalDetailsForAccountIDs(report?.ownerAccountID ? [report.ownerAccountID] : [], personalDetails); | ||
| const displayNamesWithTooltips = ReportUtils.getDisplayNamesWithTooltips(Object.values(ownerPersonalDetails), false); | ||
| const shouldShowSubscriptAvatar = ReportUtils.shouldReportShowSubscript(report); | ||
| const title = getReportName(report, undefined, undefined, undefined, invoiceReceiverPolicy); |
There was a problem hiding this comment.
Coming from: #61070. We should add reportAttributes here so the title will be updated









Explanation of Change
Check this comment for details.
Fixed Issues
$ #52981
PROPOSAL: N/A
Tests
Disclaimer:
I have a workspace on my account that is linked to an account that can't be found, for that I implemented a fallback that just displays "Workspace", same as before.
Offline tests
N/A
QA Steps
Same as Tests section above
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
MacOS: Chrome / Safari
Screen.Recording.2025-01-28.at.15.32.19.mov