Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@puneetlath 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] |
🦜 Polyglot Parrot! 🦜Squawk! Looks like you added some shiny new English strings. Allow me to parrot them back to you in other tongues: View the translation diffdiff --git a/src/languages/de.ts b/src/languages/de.ts
index 4635d267..20038be5 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -38,15 +38,15 @@ const translations: TranslationDeepObject<typeof en> = {
billPay: {
bill: 'Eingangsrechnung',
bills: 'Eingangsrechnungen',
- createBill: 'Eingangsrechnung erstellen',
- vendorEmail: 'E-Mail des Lieferanten',
+ createBill: 'Rechnung erstellen',
+ vendorEmail: 'E-Mail des Anbieters',
attachPDF: 'PDF anhängen',
payByACH: 'Per ACH bezahlen',
markAsPaid: 'Als bezahlt markieren',
paymentFailed: 'Diese Rechnung konnte nicht bezahlt werden. Bitte versuche es erneut.',
- createFailed: 'Diese Rechnung konnte nicht erstellt werden. Bitte versuche es erneut.',
- primaryContactHint: (domain) =>
- `Der Hauptkontakt ist die zentrale Kontaktperson für ${domain} und erhält Rechnungen, die an die Rechnungsadresse dieser Domain ${domain}@expensify.cash gesendet werden.`,
+ createFailed: 'Wir konnten diese Rechnung nicht erstellen. Bitte versuchen Sie es erneut.',
+ primaryContactHint: (domain: string) =>
+ `Die Hauptansprechperson ist die zentrale Kontaktperson für ${domain} und erhält Rechnungen, die an die Rechnungszahlungsadresse dieser Domain ${domain}@expensify.cash gesendet werden.`,
},
common: {
durationDays: ({count}: {count: number}) => ({
diff --git a/src/languages/el.ts b/src/languages/el.ts
index 78cffd90..13eaed5b 100644
--- a/src/languages/el.ts
+++ b/src/languages/el.ts
@@ -35,15 +35,15 @@ const translations: TranslationDeepObject<typeof en> = {
billPay: {
bill: 'Λογαριασμός',
bills: 'Λογαριασμοί',
- createBill: 'Δημιουργία λογαριασμού',
+ createBill: 'Δημιουργία τιμολογίου',
vendorEmail: 'Email προμηθευτή',
attachPDF: 'Επισύναψη PDF',
payByACH: 'Πληρωμή μέσω ACH',
markAsPaid: 'Σήμανση ως πληρωμένο',
paymentFailed: 'Δεν μπορέσαμε να πληρώσουμε αυτόν τον λογαριασμό. Δοκιμάστε ξανά.',
- createFailed: 'Δεν μπορέσαμε να δημιουργήσουμε αυτόν τον λογαριασμό. Δοκιμάστε ξανά.',
- primaryContactHint: (domain) =>
- `Η κύρια επαφή είναι το βασικό σημείο επικοινωνίας για το ${domain} και θα λαμβάνει λογαριασμούς που αποστέλλονται στη διεύθυνση πληρωμών του τομέα ${domain}@expensify.cash.`,
+ createFailed: 'Δεν ήταν δυνατή η δημιουργία αυτού του λογαριασμού. Παρακαλούμε δοκιμάστε ξανά.',
+ primaryContactHint: (domain: string) =>
+ `Η κύρια επαφή είναι το βασικό σημείο επικοινωνίας για το ${domain} και θα λαμβάνει λογαριασμούς που αποστέλλονται στη διεύθυνση πληρωμής λογαριασμών αυτού του domain ${domain}@expensify.cash.`,
},
common: {
durationDays: ({count}: {count: number}) => ({
diff --git a/src/languages/es.ts b/src/languages/es.ts
index a001c633..4107ce30 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -24,15 +24,15 @@ const translations: TranslationDeepObject<typeof en> = {
billPay: {
bill: 'Factura por pagar',
bills: 'Facturas por pagar',
- createBill: 'Crear factura por pagar',
- vendorEmail: 'Correo del proveedor',
+ createBill: 'Crear factura',
+ vendorEmail: 'Correo electrónico del proveedor',
attachPDF: 'Adjuntar PDF',
payByACH: 'Pagar por ACH',
markAsPaid: 'Marcar como pagada',
paymentFailed: 'No pudimos pagar esta factura. Inténtalo de nuevo.',
- createFailed: 'No pudimos crear esta factura. Inténtalo de nuevo.',
- primaryContactHint: (domain) =>
- `El contacto principal es el punto de contacto de ${domain} y recibirá las facturas enviadas a la dirección de pago de facturas del dominio ${domain}@expensify.cash.`,
+ createFailed: 'No hemos podido crear esta factura. Por favor, inténtalo de nuevo.',
+ primaryContactHint: (domain: string) =>
+ `El contacto principal es la persona de referencia para ${domain} y recibirá las facturas enviadas a la dirección de pago de facturas de este dominio ${domain}@expensify.cash.`,
},
common: {
durationDays: ({count}: {count: number}) => ({
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index 7d8f6660..f4f7e836 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -38,15 +38,15 @@ const translations: TranslationDeepObject<typeof en> = {
billPay: {
bill: 'Facture à payer',
bills: 'Factures à payer',
- createBill: 'Créer une facture à payer',
+ createBill: 'Créer une facture',
vendorEmail: 'E-mail du fournisseur',
attachPDF: 'Joindre un PDF',
payByACH: 'Payer par ACH',
markAsPaid: 'Marquer comme payée',
paymentFailed: 'Nous n’avons pas pu payer cette facture. Veuillez réessayer.',
createFailed: 'Nous n’avons pas pu créer cette facture. Veuillez réessayer.',
- primaryContactHint: (domain) =>
- `Le contact principal est l’interlocuteur de ${domain} et recevra les factures envoyées à l’adresse de paiement des factures du domaine ${domain}@expensify.cash.`,
+ primaryContactHint: (domain: string) =>
+ `Le contact principal est l’interlocuteur principal pour ${domain} et recevra les factures envoyées à l’adresse de paiement des factures de ce domaine ${domain}@expensify.cash.`,
},
common: {
durationDays: ({count}: {count: number}) => ({
diff --git a/src/languages/it.ts b/src/languages/it.ts
index dc418eea..b8a04f92 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -38,15 +38,15 @@ const translations: TranslationDeepObject<typeof en> = {
billPay: {
bill: 'Fattura da pagare',
bills: 'Fatture da pagare',
- createBill: 'Crea fattura da pagare',
- vendorEmail: 'Email del fornitore',
+ createBill: 'Crea fattura',
+ vendorEmail: 'Email fornitore',
attachPDF: 'Allega PDF',
payByACH: 'Paga tramite ACH',
markAsPaid: 'Segna come pagata',
paymentFailed: 'Non è stato possibile pagare questa fattura. Riprova.',
- createFailed: 'Non è stato possibile creare questa fattura. Riprova.',
- primaryContactHint: (domain) =>
- `Il contatto principale è il referente di ${domain} e riceverà le fatture inviate all’indirizzo per il pagamento delle fatture del dominio ${domain}@expensify.cash.`,
+ createFailed: 'Non siamo riusciti a creare questa fattura. Riprova.',
+ primaryContactHint: (domain: string) =>
+ `Il contatto principale è il referente principale per ${domain} e riceverà le fatture inviate all’indirizzo di pagamento di questo dominio ${domain}@expensify.cash.`,
},
common: {
durationDays: ({count}: {count: number}) => ({
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index 8ce7b6ae..e108b310 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -38,14 +38,15 @@ const translations: TranslationDeepObject<typeof en> = {
billPay: {
bill: '支払請求書',
bills: '支払請求書',
- createBill: '支払請求書を作成',
- vendorEmail: '取引先のメールアドレス',
- attachPDF: 'PDFを添付',
+ createBill: '請求書を作成',
+ vendorEmail: 'ベンダーのメールアドレス',
+ attachPDF: 'PDF を添付',
payByACH: 'ACHで支払う',
markAsPaid: '支払済みにする',
paymentFailed: 'この請求書を支払えませんでした。もう一度お試しください。',
createFailed: 'この請求書を作成できませんでした。もう一度お試しください。',
- primaryContactHint: (domain) => `主な連絡先は${domain}の窓口となり、このドメインの請求書支払い用アドレス${domain}@expensify.cashに送信された請求書を受け取ります。`,
+ primaryContactHint: (domain: string) =>
+ `プライマリ担当者は、${domain} の主な連絡窓口であり、このドメインの請求支払用アドレス ${domain}@expensify.cash に送信される請求書を受け取ります。`,
},
common: {
durationDays: ({count}: {count: number}) => ({
@@ -7467,7 +7468,6 @@ _詳しい手順については、[ヘルプサイトをご覧ください](${CO
title: 'メンバーをコピー',
prompt: ({count, targetWorkspaceName}: {count: number; targetWorkspaceName: string}) => ({
one: `${targetWorkspaceName}のメンバーをこのワークスペースのメンバーで置き換えてもよろしいですか?`,
- // Japanese has no "one" plural category, so handle the single-workspace case here
other:
count === 1
? `${targetWorkspaceName}のメンバーをこのワークスペースのメンバーで置き換えてもよろしいですか?`
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index e21fc2a2..b6e836cb 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -38,15 +38,15 @@ const translations: TranslationDeepObject<typeof en> = {
billPay: {
bill: 'Te betalen factuur',
bills: 'Te betalen facturen',
- createBill: 'Te betalen factuur maken',
+ createBill: 'Factuur aanmaken',
vendorEmail: 'E-mailadres leverancier',
- attachPDF: 'PDF bijvoegen',
+ attachPDF: 'PDF toevoegen',
payByACH: 'Betalen via ACH',
markAsPaid: 'Markeren als betaald',
paymentFailed: 'We konden deze factuur niet betalen. Probeer het opnieuw.',
- createFailed: 'We konden deze factuur niet maken. Probeer het opnieuw.',
- primaryContactHint: (domain) =>
- `De primaire contactpersoon is het aanspreekpunt voor ${domain} en ontvangt facturen die naar het factuuradres van dit domein ${domain}@expensify.cash worden gestuurd.`,
+ createFailed: 'We konden deze rekening niet aanmaken. Probeer het opnieuw.',
+ primaryContactHint: (domain: string) =>
+ `De primaire contactpersoon is het belangrijkste aanspreekpunt voor ${domain} en ontvangt rekeningen die worden verstuurd naar het betaaladres van dit domein: ${domain}@expensify.cash.`,
},
common: {
durationDays: ({count}: {count: number}) => ({
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index f9c51afe..3d27d9e4 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -39,13 +39,14 @@ const translations: TranslationDeepObject<typeof en> = {
bill: 'Rachunek',
bills: 'Rachunki',
createBill: 'Utwórz rachunek',
- vendorEmail: 'E-mail dostawcy',
- attachPDF: 'Załącz PDF',
+ vendorEmail: 'E-mail sprzedawcy',
+ attachPDF: 'Dołącz PDF',
payByACH: 'Zapłać przez ACH',
markAsPaid: 'Oznacz jako opłacone',
paymentFailed: 'Nie udało się opłacić tego rachunku. Spróbuj ponownie.',
createFailed: 'Nie udało się utworzyć tego rachunku. Spróbuj ponownie.',
- primaryContactHint: (domain) => `Główna osoba kontaktowa odpowiada za kontakt w domenie ${domain} i otrzyma rachunki wysłane na adres płatności tej domeny ${domain}@expensify.cash.`,
+ primaryContactHint: (domain: string) =>
+ `Główny kontakt jest podstawową osobą kontaktową dla ${domain} i będzie otrzymywać rachunki wysyłane na adres do opłacania rachunków tej domeny ${domain}@expensify.cash.`,
},
common: {
durationDays: ({count}: {count: number}) => ({
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index fdd09b20..c1892590 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -38,15 +38,15 @@ const translations: TranslationDeepObject<typeof en> = {
billPay: {
bill: 'Conta a pagar',
bills: 'Contas a pagar',
- createBill: 'Criar conta a pagar',
+ createBill: 'Criar conta',
vendorEmail: 'E-mail do fornecedor',
attachPDF: 'Anexar PDF',
payByACH: 'Pagar por ACH',
markAsPaid: 'Marcar como paga',
paymentFailed: 'Não foi possível pagar esta conta. Tente novamente.',
createFailed: 'Não foi possível criar esta conta. Tente novamente.',
- primaryContactHint: (domain) =>
- `O contato principal é o ponto de contato de ${domain} e receberá as contas enviadas ao endereço de pagamento de contas deste domínio ${domain}@expensify.cash.`,
+ primaryContactHint: (domain: string) =>
+ `O contato principal é o ponto de contato responsável por ${domain} e receberá as contas enviadas para o endereço de pagamento deste domínio ${domain}@expensify.cash.`,
},
common: {
durationDays: ({count}: {count: number}) => ({
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 6fc340fb..ce0bd3f7 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -44,8 +44,8 @@ const translations: TranslationDeepObject<typeof en> = {
payByACH: '通过 ACH 支付',
markAsPaid: '标记为已支付',
paymentFailed: '无法支付此账单。请重试。',
- createFailed: '无法创建此账单。请重试。',
- primaryContactHint: (domain) => `主要联系人是 ${domain} 的主要联络人,并将收到发送至此域名账单支付地址 ${domain}@expensify.cash 的账单。`,
+ createFailed: '我们无法创建此账单。请重试。',
+ primaryContactHint: (domain: string) => `主要联系人是 ${domain} 的首要联系对象,将接收发送到此域账单支付地址 ${domain}@expensify.cash 的账单。`,
},
common: {
durationDays: ({count}: {count: number}) => ({
@@ -7294,7 +7294,6 @@ _如需更详细的说明,请[访问我们的帮助网站](${CONST.NETSUITE_IM
title: '复制成员',
prompt: ({count, targetWorkspaceName}: {count: number; targetWorkspaceName: string}) => ({
one: `确定要用此工作区的成员替换 ${targetWorkspaceName} 的成员吗?`,
- // Chinese has no "one" plural category, so handle the single-workspace case here
other: count === 1 ? `确定要用此工作区的成员替换 ${targetWorkspaceName} 的成员吗?` : `确定要用此工作区的成员替换 ${count} 个工作区的成员吗?`,
}),
},
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d4d0c3ba2b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const receiverEmail = useBillReceiverEmail(); | ||
| const canCreateBill = useCanCreateBill(); | ||
| const receiverDetails = usePersonalDetailByLogin(receiverEmail); | ||
| const [currency, setCurrency] = useState<string>(CONST.CURRENCY.USD); |
There was a problem hiding this comment.
Persist the currency together with the drafted amount
When a user selects a non-USD currency, enters an amount, and leaves the form before submitting, shouldSaveDraft restores the amount on the next visit but this state always resets the currency to USD. The restored amount can therefore be submitted in a different denomination than the user originally entered; store the currency in the draft or avoid restoring the amount without it.
Useful? React with 👍 / 👎.
| onSubmit={(values) => | ||
| createBill( |
There was a problem hiding this comment.
Clear the bill form draft after submission
After a bill is submitted, all four inputs marked shouldSaveDraft remain in createBillFormDraft, because this submit path queues the request and navigates away without calling clearDraftValues. Opening Create bill again therefore pre-fills the previous vendor, merchant, amount, and date, making an accidental duplicate bill likely; clear the draft when this submission is accepted.
Useful? React with 👍 / 👎.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…-touch-delete-APP-7AR # Conflicts: # patches/react-native/details.md
…ouped search With no group columns saved, hiding one saved the group columns on screen. The table drops Amount debited and Amount reimbursed when no withdrawal has a conversion amount, so those were left out of the saved list and never came back. Start from the default group columns instead, the way the Columns page does, keeping any shown column the defaults lack.
to the chart average line
Don't show the Export option on mobile
…oin-room Treat approve-only members like guests when leaving and joining workspace rooms
…iptions-2 [Perf] Only re-render a row when the people it shows change
…elete Leave pending-delete rows out of the selected-reports check
…-share-draft-report [HOLD Auth#26174] Revert "Revert "[Payment due @TaduJR] Show share report on draft reports""
…y-labels-required-types [No QA] Require `sentryLabel` through types and remove the lint rule
…eApprovalWorkflowRows Revert "Migrate three approval rows to MenuItem composition"
…ot-getdatabypath [No QA] Look up Search snapshot member keys directly in useOnyx
…ot-live-data-context [No QA] Read shouldUseLiveData from its own context in useOnyx
…onReimbursableReports Keep non-reimbursable-only reports out of Ready to pay before their expenses load
…ne-duo-nav-layout fix: add iPhone Duo support
…ot-collection-delta-guard [No QA] Guard useCollectionDelta against Search snapshot scope
…-bill # Conflicts: # src/components/MoneyReportHeaderPrimaryAction/useConfirmApproval.ts # src/components/ParentNavigationSubtitle.tsx # src/components/Search/FilterDropdowns/DisplayPopup.tsx # src/hooks/useLifecycleActions.tsx # src/hooks/useSearchBulkActions.ts # src/languages/de.ts # src/languages/el.ts # src/languages/en.ts # src/languages/es.ts # src/languages/fr.ts # src/languages/it.ts # src/languages/ja.ts # src/languages/nl.ts # src/languages/pl.ts # src/languages/pt-BR.ts # src/languages/zh-hans.ts # src/libs/NextStepUtils.ts # src/libs/ReportUtils.ts # src/pages/inbox/sidebar/FloatingActionButtonAndPopover.tsx # src/types/onyx/ReportNameValuePairs.ts # tests/ui/components/PayActionCellTest.tsx
|
It looks like this PR adds a search filter or column. Please double check the following:
|
|
This PR adds a new |
|
LGTM, ship it |
|
Yeah, I'm pretty sure the Manifesto says PRs with 200k+ line changes can go straight to prod. 🤔 |
|
Sorry for the confusion, this was split into multiple, small PRs. We don't need this one anymore |
Explanation of Change
This PR lets admins create bills from the plus menu, and shows Spend > Bills.
Bill_Createwith an amount, currency, date, merchant, vendor email and an optional PDF. After it creates a bill, the app opens Spend > Bills.<domain>@expensify.cash.This needs Auth https://github.com/Expensify/Auth/pull/25977, which sends
technicalContactEmailin the domain data of admins of paid policies.Notes for the code review:
useBillPayCountsreads the policy collection without a selector. A selector keyed by policy would return a collection map, which PERF-11 lists as worse than no selector. The report selector reduces every report to 3 counts.Bill_Createreturns to the creator.Fixed Issues
For https://github.com/Expensify/Expensify/issues/684654
PROPOSAL:
Tests
/create-billshows Not found.Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari