-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[$250] [Search v1] RHP reports show incorrect headers #41585
Comments
Job added to Upwork: https://www.upwork.com/jobs/~017a5debcfaef3f611 |
Triggered auto assignment to @JmillsExpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
Hi, |
📣 @Niki106! 📣
|
Contributor details |
it's a bit confusing @luacmartins @fedirjh Could you detail the description of this bug or attach a video? |
OK, I will do it quickly. |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Reports don't show correct header What is the root cause of that problem?We render the header as App/src/pages/home/ReportScreen.tsx Lines 338 to 339 in 2f5173c
In this function, we're checking if the Line 1343 in 2f5173c
But if the IOU report has notification as What changes do you think we should make in order to solve the problem?
So we can do the same for
Line 1343 in 2f5173c
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.RHP search report view displays incorrect headers (different from report screen view in center) What is the root cause of that problem?The search result is generated by API.read(READ_COMMANDS.SEARCH and stored in onyx Snapshot_ When user select search result item, the app will display RHP report view. Based on: Lines 67 to 69 in ab1e924
The parameter used to open report is Line 55 in ab1e924
But the actual report thread in the search result is placed in the For more details: In Snapshot onyx:
This will cause different report header than the real thread of the search result. In reportscreen: App/src/pages/home/ReportScreen.tsx Lines 361 to 370 in ab1e924
In this line because of different reportID the Additional info:@luacmartins it is in my RCA. Let me confirm with images. This is transaction thread: This is iou/expense report: In Snapshot onyx:
What changes do you think we should make in order to solve the problem?In: Line 68 in ab1e924
We could use If the report type is |
@nkdengineer and @tsa321 Can you please share testing steps you used to replicate the issue? @Niki106 To get started, you should refer to the CONTRIBUTING Document for guidance. |
@fedirjh make invoice request to someone and select a workspace. |
Thank you @tsa321. I am able to replicate with your steps. |
@nkdengineer Thank you for the proposal, can you elaborate more on the second point? |
@tsa321 After testing your solution, It did not appear to be the correct one.
|
@fedirjh After fixing the point 1, the header is rendered correctly with App/src/components/AvatarWithDisplayName.tsx Lines 140 to 141 in 942cad9
So to display this we should call
|
@fedirjh for point 1,
Yes of course, because the RHP is just a report screen so it will reflect what is shown by report screen in center. It is same component. The join button is displayed because it is thread of thread of the transaction report (this thread report id is generated by back end) and we don't join the thread yet so the join button is shown. You can try this in any other thread, then press three dot menu button and then click What I am trying to show here is, The Right panel doesn't use correct report id: video:macos-web-d.mp4As you can see in the video, I think the intended report id should be displayed in right panel is report id displayed in center in this video.
For second point could you give me steps to reproduce it for other request? |
Looks like we're still waiting for a successful proposal, though it'd be good to confirm. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@JmillsExpensify @luacmartins @fedirjh this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Sorry I have missed this one. @luacmartins There are two separate bugs. One bug affects the expense report and causes the incorrect header to be displayed because the parent report is missing in
The second bug is related to invoices. Even if the parent report already exists, the header displays the join thread action. Check the header, we have a link to the parent report which indicates that the parent report exists. I think @rezkiy37 Can help us debug it further since he implemented the invoice flow. |
@fedirjh could you re-review my proposal. In Snapshot onyx:
TLDR: Just change this line into: Line 68 in ab1e924
into try it for these two type of transacations (transaction from |
@fedirjh I think we can add to call Line 87 in e8ae3c5
|
I see the work in progress here. If you need any help, please ping me 🙂 |
@tsa321 I don't find your proposal valid because the root cause analysis doesn't explain the bug's cause.
Can elaborate on that? |
@fedirjh it is from the server, the data is from the server. |
@tsa321 are you saying that the server is returning the transaction thread reportID in the |
@luacmartins yes. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I checked and I think it's incorrect, the |
For the header of the send invoice transaction thread, the problem is In the second thought if we remove the check
App/src/pages/home/ReportScreen.tsx Line 316 in 8d73db3
@fedirjh What do you think? |
@fedirjh were you able to take a look at the comments above? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@JmillsExpensify @luacmartins @fedirjh this issue is now 4 weeks old, please consider:
Thanks! |
@nkdengineer we can't rely on checking the parent report action because that data is not available in search. |
@luacmartins When we view a search result, Screen.Recording.2024-06-01.at.04.33.55.mov |
That's correct. That being said, I've seen the incorrect header being shown before the call to OpenReport returns a response. How will we handle that case? |
@luacmartins What do you think about updating the backend so that the parent report action data is returned within the |
@fedirjh don't we already return that in OpenReport? I just tested opening a transaction thread and the parent IOU action was returned as well |
Issue not reproducible during KI retests. (First week) |
I just checked and saw that:
Correct me if I missed st. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number:
Reproducible in staging?:
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
Action Performed:
Coming from here, the report headers in the RHP are incorrect. They should show the headers for a transaction thread.
Expected Result:
Reports show incorrect header
Actual Result:
Reports don't show correct header
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @fedirjhThe text was updated successfully, but these errors were encountered: