Open anmurali opened 2 weeks ago
Triggered auto assignment to @dannymcclain (Design
), see these Stack Overflow questions for more details.
I like all of them except the plug that isn't plugged in one. That somehow suggests to me that something needs doing.
The icons are added depending on the MCC category. So that might be what we use for utility bills or something.
Giving this one to you since you've done all the work for it!
Putting the receipt edges here for posterity so I don't lose them:
Very generous with your GH coinage today, thank you again for filling my cup.
I think we can probably make this external @anmurali - thoughts? Also cc @grgia since you were the original engineer behind our NewDot eReceipts...
If its clear from my issue description what the contributor needs to do, let's slap an External on it. I wasn't sure I had described it sufficiently clearly
Okay, I updated the original post with a more clear screenshot. I would still love @grgia 's thoughts on how to implement this best though, but I think we can at least start getting proposals for this one.
Job added to Upwork: https://www.upwork.com/jobs/~021878720719253020177
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 (External
)
Triggered auto assignment to @strepanier03 (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@shawnborton you may want to add some mocks of the new eReceipt "in situ" in the previews cards and stuff, just to make sure that gets implemented properly!
Good shout Danny. After taking them for a spin, I think it makes sense to do something like this where we just make the eReceipt go full width inside its container. We have various container sizes depending on the situation, but here is generally what might happen:
Thoughts? cc @dubielzyk-expensify too.
Honestly I think that's lovely! Even the 3-receipt version looks fantastic IMO.
Awesome, let's see what Jon thinks but in the meantime, I've added those mocks to the OP for extra clarity. Thanks for the nudge on this one!
I love them ❤️ I think they're stunning. SHIP IT
We are looking for proposals here
Question, should we be creating these as PNGs from the BE or something instead of live from data?
This screenshot implies that the eReceipt will be an image instead of a thumbnail we can create from the FE
@shawnborton
This is why I tagged you @grgia!
How do you think it's best to accomplish the screenshot above? And how are we doing it now? It seems like now we are doing something to inject the eReceipt image/styles into the thumbnail areas. Curious for your thoughts.
Ah gothca, It sounded like this design had moved to implementation.
@shawnborton
We currently use the data to build the receipt in the FE. There's no actual image or preview- the thumbnails use the MCC data from the transaction to show the icon. Same with the EReceipt, the transaction data is injected.
Hmm interesting, how do you think we would pull that off for the mockups above? The idea on them is to basically display eReceipt thumbnails the same way we display image-based receipt thumbnails...
Improve eReceipt visually in New Dot
This is an improvement
EReceiptThumbnail
here and we need to reuse the logic in EReceiptThumbnail
to display the background image and get the MCC iconThe main UI will have two svg here and inside these svg we will display the content with the white background.
About the transaction data, we need to change the data text like currency, amount, merchant, ... to primary color of eReceipt here
EReceipt
component if it's isEReceipt
otherwise if it's a thumbnail we will use EReceiptThumbnail
component. To scale the EReceipt
we can use the transform
style and scale based on the width of the parent componentconst [scale, setScale] = useState<number>(1);
const onParentLayout = (event: LayoutChangeEvent) => {
const parentWidth = event.nativeEvent.layout.width;
const desiredWidth = 335; // Replace with the original width of your component
const scaleFactor = Math.min(parentWidth / desiredWidth, 1);
setScale(scaleFactor);
};
<View
onLayout={onParentLayout}
style={style ?? [styles.mw100, styles.h100, {transform: `scale(${scale})`, transformOrigin: 'top left'}]}
>
<EReceipt
transactionID={transactionID ?? '-1'}
/>
</View>
Other styles can discuss in the PR.
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
~will review proposal today~
will look here on Monday
@mkzie2 proposal looks good, we can make any design/code polish at PR stage
🎀 👀 🎀
Triggered auto assignment to @danieldoglas, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@danieldoglas Please help to take a look when you have a chance.
@shawnborton @danieldoglas @strepanier03 @grgia @ishpaul777 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!
@shawnborton, @danieldoglas, @strepanier03, @grgia, @ishpaul777 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
📣 @mkzie2 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
LGTM @mkzie2 @ishpaul777
Let's make sure we catch the spacing between the top part of the receipt and the middle part. I can see a faint line. Would it be better to use a single SVG here?
We can also supply an entire receipt SVG to use as the BG image in case that is helpful?
Attaching here in case it's worth trying:
When I go to approve expenses that @cole submits from his Expensify Card, I keep finding myself asking him to upload a receipt. That's because the receipt in the app looks like this Looks like there's no receipt but that's actually an eReceipt and is sufficient from a compliance standpoint.
Let's update the design for an eReceipt to look more like a receipt.
Let's also make sure the eReceipt takes up full width in the various thumbnail areas where its used, such as:
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ishpaul777