Closed JmillsExpensify closed 11 months ago
Current assignee @JmillsExpensify is eligible for the NewFeature assigner, not assigning anyone new.
@koko57 would you be up for this one?
Sorry, I'll be ooo from tomorrow till 10th Sept., so maybe someone else from my team could take it?
@mountiny @luacmartins can we get someone else on this one given the OOO? I think we really need to have these items cleaned up ahead of 6th September for the product promotions.
asked here
Also asked if any C+ has time to tackle this https://expensify.slack.com/archives/C02NK2DQWUX/p1693362407056109 I think Callstack might have a bit less availability now ahead of RNEU conference.
Nice, thanks ya'll!
Hi, I can work on this if no one from callstack has bandwidth
@rushatgabhane Michael should be able to, you could do c+ role here to help with the code review
Okay, so to be clear I'm just reviewing the PR that Michael will raise?
Hi, I'm Michael (Mykhailo) from Callstack and I would like to work in this issue.
@rezkiy37 let's do this!
@JmillsExpensify, just to clarify the 4th step. The app already handles cases with one or multiple requests and receipts. I see only one discrepancy associated with the overlay, that counts the number of additional receipts.
So, based on this investigation, I think we need to fix the overlay. Am I right? Please correct me if I am wrong π
We also need to fix this for a normal Cash requests, thats where it was not working and I agree with the overlay issue here the cards are no visible
@mountiny, do you mean this case:
https://github.com/Expensify/App/assets/57314631/6f01e3b2-b4b5-4648-ada1-4e6c24a58259
Should we add a counter under the amount?
So, based on this investigation, I think we need to fix the overlay. Am I right? Please correct me if I am wrong π
@rezkiy37 Yes you're exactly right! Thank you for confirming.
@rezkiy37 Yes correct, there should be the counter same as for the receipts or distance!
@JmillsExpensify, is it possible to provide access for a design for this specific component? I am not sure, that I can do it precisely without colors, dimensions and so on. Thank you!
I am actually not sure if we want that design
Asked internally
Triggered auto assignment to @dannymcclain (Design
), see these Stack Overflow questions for more details.
Another thing to consider is the shape of the thumbnail. I wonder if we want to make everything appear rounded, as it feels a bit nicer with our design system? For example, look at this mock that has rounded corners for the thumbnails:
Whereas this doesn't:
Thoughts @dannymcclain?
The app has several inaccuracies for previewing a description and merchant of expense reports and expense requests.
There is an icon (ArrowRight
) of ReportPreview and MoneyRequestPreview.
IOU
reports are showing the merchant when they should instead be showing the description (because IOUs
always have the same merchant, which is **Request**).There is a condition to show/hide the merchant of MoneyRequestPreview. As we can see below, there is not any restrictions if it is an IOU
.
There is a condition to show/hide the description of MoneyRequestPreview. As we can see below, there is not any restrictions if the merchant exists.
+X
.There is a remaining counter of ReportActionItemImages.
However, it uses deprecated/wrong styles. It is centralized, rounded, etc.
There is a condition to use the merchant as a description for distance requests of MoneyRequestPreview. As we can see below.
X requests
logic.There is a condition in ReportPreview. It has a restriction to preview counter only for requests with receipts.
That's happens because when a message is a whisper, it has the the same background color as for ReportActionItem (parent) and for ReportPreview (child).
Remove icon (ArrowRight
) from ReportPreview and MoneyRequestPreview.
IOU
reports are showing the merchant when they should instead be showing the description (because IOUs
always have the same merchant, which is **Request**).Create a variable like shouldShowMerchant
(boolean
). it should checks:
Something like this:
const shouldShowMerchant = !_.isEmpty(requestMerchant) && !props.isBillSplit && hasReceipt;
Create a variable like shouldShowDescription
(boolean
). it should checks:
Something like this:
const shouldShowDescription = !_.isEmpty(description) && shouldShowMerchant;
+X
.Modify styles.reportActionItemImagesMore to have a proper UI.
Extend the shouldShowMerchant
variable from the 2nd step. It should take into account if it is a distance request.
Something like this:
const shouldShowMerchant = !_.isEmpty(requestMerchant) && !props.isBillSplit && (hasReceipt || isDistanceRequest);
Also, we need to remove lines that insert the merchant as a description.
X requests
logic.Modify a condition and remove restriction on receipts. It unblocks previewing counter for normal "cash" requests. Also, add a restriction on amount to show counter only when 2 requests at least.
Pass a property to ReportPreview - isWhisper (boolean
). Based on this value, ReportPreview will enable styles.reportPreviewBoxHoverBorder
. This "hover" effect looks good in a combination with a whisper.β¨
N/A
Another thing to consider is the shape of the thumbnail. I wonder if we want to make everything appear rounded, as it feels a bit nicer with our design system? For example, look at this mock that has rounded corners for the thumbnails:
Great point. I like the rounded corners. Looks more friendly and groovy haha.
@JmillsExpensify, is it possible to provide access for a design for this specific component? I am not sure, that I can do it precisely without colors, dimensions and so on. Thank you!
@dannymcclain Do you mind helping with the dimensions, colors, etc. I don't think we have this one in our general design system yet.
Gonna start dropping some stuff into here quickly
@rushatgabhane mind reviewing proposal as soon as you can? πββοΈ
FYI I fixed the duplicated distance merchant in this PR.
Nice. Thanks @neil-marcellini. I'll remove from this issue then.
@rezkiy37 please feel free to make the PR, you proposal lokos good and we can refine any details in the PR itself
asking in slack for an update π
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.63-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-09-12. :confetti_ball:
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
ready for the payment
I think we're just waiting on payment here
@JmillsExpensify can you help with payment please?
Bump @JmillsExpensify for payment
Still waiting for payment?
Still waiting for payment
We only need to pay $500 to @situchan here, otherwise nothing to pay and we can close this.
Offer sent to @situchan.
Offer accepted and paid.
We've been making a lot of fast-and-loose changes to requests and reports as part of waves3-wave5, and as a result of adding
merchant
names for wave4, the end result isn't what we intended. Accordingly, this is a summary of what's broken and needs to be fixed.We're showing right carets for all report and request previews, when instead right carets should be removed from all request and report previews.
Similarly,
IOU
reports are showing themerchant
when they should instead be showing thedescription
(because IOUs always have the same merchant, which isRequest
).expense
/ request preview, we only show the merchant.X requests
logic on report previews in the workspace chat. More specifically, when more than one request exists on theexpense
report, we replace themerchantName
withX requests
, where X is the number of requests on the report. We also show up to three receipt images in the report preview. If more than three receipts exist, then we show an overlay in the lower right corner of the right most receipt,+X
. This overlay counts the number of additional receipts (e.g. receipts over 3) that exist on the report but can't be seen. Examples for completeness.