-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Pending/Scanning pattern] Update the UI for Pending and Scanning in Single Transaction ReportPreview / MoneyRequestAction #40020
[Pending/Scanning pattern] Update the UI for Pending and Scanning in Single Transaction ReportPreview / MoneyRequestAction #40020
Conversation
@dannymcclain @thesahindia One of you needs to 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] |
width={variables.iconSizeExtraSmall} | ||
fill={theme.textSupporting} | ||
/> | ||
<Text style={[styles.textLabel, styles.colorMuted, styles.ml1, styles.amountSplitPadding]}>{translate('iou.receiptScanInProgress')}</Text> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the preview card view? If so, just want to check that we're using the correct font size for that, cc @dannymcclain
If I recall, we had a slightly smaller size on the preview card, but we use label on the actual report header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
width={variables.iconSizeExtraSmall} | ||
fill={theme.textSupporting} | ||
/> | ||
<Text style={[styles.textLabel, styles.colorMuted, styles.ml1, styles.amountSplitPadding]}>{translate('iou.receiptScanInProgress')}</Text> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar comment as above here
@shawnborton I haven't changed anything in the display logic for that part, so it's either because of missing info from the mocked transaction or a separate bug. |
width={variables.iconSizeExtraSmall} | ||
fill={theme.textSupporting} | ||
/> | ||
<Text style={[styles.textMicroSupporting, styles.colorMuted, styles.ml1, styles.amountSplitPadding]}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
width={variables.iconSizeExtraSmall} | ||
fill={theme.textSupporting} | ||
/> | ||
<Text style={[styles.textMicroSupporting, styles.colorMuted, styles.ml1, styles.amountSplitPadding]}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Looks good, let's merge this tomorrow 👍 |
ah, translation confirmation is still pending @yuwenmemon can you please bump https://expensify.slack.com/archives/C01GTK53T8Q/p1715166633822739 internally ? |
Ah yes! Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in the proper translations as suggestions.
src/languages/es.ts
Outdated
@@ -640,15 +640,17 @@ export default { | |||
deleteReceipt: 'Eliminar recibo', | |||
receiptIssuesFound: (count: number) => `${count === 1 ? 'Problema encontrado' : 'Problemas encontrados'}`, | |||
fieldPending: 'Pendiente...', | |||
receiptScanning: 'Escaneando recibo...', | |||
receiptScanInProgress: 'Escaneo en curso.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
receiptScanInProgress: 'Escaneo en curso.', | |
receiptScanInProgress: 'Escaneado de recibo en proceso.', |
src/languages/es.ts
Outdated
@@ -640,15 +640,17 @@ export default { | |||
deleteReceipt: 'Eliminar recibo', | |||
receiptIssuesFound: (count: number) => `${count === 1 ? 'Problema encontrado' : 'Problemas encontrados'}`, | |||
fieldPending: 'Pendiente...', | |||
receiptScanning: 'Escaneando recibo...', | |||
receiptScanInProgress: 'Escaneo en curso.', | |||
receiptScanInProgressDescription: 'Escaneando recibo. Vuelva a comprobarlo más tarde o introduzca los detalles ahora.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
receiptScanInProgressDescription: 'Escaneando recibo. Vuelva a comprobarlo más tarde o introduzca los detalles ahora.', | |
receiptScanInProgressDescription: 'Escaneado de recibo en proceso. Vuelva a comprobar más tarde o introduzca los detalles ahora.', |
src/languages/es.ts
Outdated
receiptMissingDetails: 'Recibo con campos vacíos', | ||
missingAmount: 'Falta importe', | ||
missingMerchant: 'Falta comerciante', | ||
receiptStatusTitle: 'Escaneando…', | ||
receiptStatusText: 'Solo tú puedes ver este recibo cuando se está escaneando. Vuelve más tarde o introduce los detalles ahora.', | ||
receiptScanningFailed: 'El escaneo de recibo ha fallado. Introduce los detalles manualmente.', | ||
transactionPendingText: 'La transacción tarda unos días en contabilizarse desde la fecha en que se utilizó la tarjeta.', | ||
transactionPendingDescription: 'Transacción pendiente. Esto puede tardar algunos días en registrarse a partir de la fecha en que se utilizó la tarjeta.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transactionPendingDescription: 'Transacción pendiente. Esto puede tardar algunos días en registrarse a partir de la fecha en que se utilizó la tarjeta.', | |
transactionPendingDescription: 'Transacción pendiente. La transacción tarda unos días en contabilizarse desde la fecha en que se utilizó la tarjeta.', |
@@ -752,6 +754,7 @@ export default { | |||
set: 'estableció', | |||
changed: 'cambió', | |||
removed: 'eliminó', | |||
transactionPending: 'Transacción pendiente.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transactionPending: 'Transacción pendiente.', | |
transactionPending: 'Transacción pendiente.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 1.4.73-0 🚀
|
@BrtqKr Can you please share the QA steps? |
@kbecciv Above are QA test steps |
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.73-7 🚀
|
Hi friends! Can I get a quick explanation of why we included
It's causing this bug with new functionality (allowing flagging of whispers) and I'm wondering if we need it. Do you recall what the reasoning was for not having pending actions count as whispers? Thanks! |
Bump @BrtqKr and anyone else who might know - am I safe to remove that |
Details
Fixed Issues
$ #38688
PROPOSAL:
Tests
Prerequisites:
The
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop