Skip to content

[HOLD] Create bills from the plus menu and show Spend > Bills - #105501

Closed
cead22 wants to merge 5932 commits into
carlos-billpay-searchfrom
carlos-billpay-create-bill
Closed

cead22 wants to merge 5932 commits into
carlos-billpay-searchfrom
carlos-billpay-create-bill

Conversation

@cead22

@cead22 cead22 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

This PR lets admins create bills from the plus menu, and shows Spend > Bills.

  • Create bill. The plus menu and the Spend create menu show Create bill, using the same rules as Classic: the user admins a Collect or Control policy, their email is on a private domain, and the domain has a technical contact. The form sends the bill to the technical contact, which shows in the fixed To row. It calls Bill_Create with an amount, currency, date, merchant, vendor email and an optional PDF. After it creates a bill, the app opens Spend > Bills.
  • Spend > Bills. Users with bills see a Bills section with Bills, Needs approval and Ready to pay. Ready to pay follows the same visibility as the expense Pay search. The Type filter offers Bill to the same users.
  • Domain hint. The domain's Primary contact setting explains that the contact receives bills sent to the domain's bill pay address, <domain>@expensify.cash.

This needs Auth https://github.com/Expensify/Auth/pull/25977, which sends technicalContactEmail in the domain data of admins of paid policies.

Notes for the code review:

  • useBillPayCounts reads 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.
  • The optimistic bill sets the creator as its owner. I'll confirm in a follow up that this matches the bill Bill_Create returns to the creator.

Fixed Issues

For https://github.com/Expensify/Expensify/issues/684654
PROPOSAL:

Tests

  1. Sign in as an admin of a Collect or Control policy whose email domain is validated and has a technical contact.
  2. Open the plus menu.
  3. Verify Create bill shows.
  4. Select Create bill.
  5. Verify the To row shows the domain's technical contact.
  6. Enter an amount, attach a PDF, and enter a vendor email, a merchant and a date.
  7. Select Create bill.
  8. Verify the app opens Spend > Bills and lists the new bill.
  9. Verify Spend shows the Bills section with Bills, Needs approval and Ready to pay.
  10. Open the Type filter and verify it offers Bill.
  11. Try to attach a file that isn't a PDF.
  12. Verify the form shows an error and doesn't attach it.
  13. Sign in as a policy member who isn't an admin.
  14. Verify the plus menu doesn't show Create bill, and /create-bill shows Not found.
  15. As a domain admin, open the domain's Admins settings.
  16. Verify the text under Primary contact names the domain's bill pay address.
  • Verify that no errors appear in the JS console

Offline tests

  1. Go offline.
  2. Create a bill from the plus menu.
  3. Verify the app opens Spend > Bills.
  4. Go online and verify the bill is created.

QA Steps

Same as tests.

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified any copy / text that was added to the app is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T15:12:19.850187Z d4d0c3b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@melvin-bot
melvin-bot Bot removed the request for review from a team October 30, 2026 15:07
@melvin-bot
melvin-bot Bot requested review from puneetlath and removed request for a team October 30, 2026 15:08
@melvin-bot

melvin-bot Bot commented Oct 30, 2026

Copy link
Copy Markdown

@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]

@OSBotify

Copy link
Copy Markdown
Contributor

🦜 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 diff
diff --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 pbpaste | git apply 😉

View workflow run

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +118 to +119
onSubmit={(values) =>
createBill(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/CONST/index.ts 95.90% <ø> (ø)
src/ONYXKEYS.ts 100.00% <ø> (ø)
src/ROUTES.ts 34.70% <ø> (ø)
src/SCREENS.ts 100.00% <ø> (ø)
src/components/BillPaymentButton.tsx 91.04% <ø> (ø)
src/hooks/useBillPayCounts.ts 100.00% <100.00%> (ø)
src/hooks/useBillReceiverEmail.ts 100.00% <100.00%> (ø)
src/hooks/useCanCreateBill.ts 100.00% <100.00%> (ø)
src/hooks/useSearchBulkActions.ts 81.11% <ø> (ø)
src/hooks/useSearchTypeMenuSections.ts 96.22% <100.00%> (+0.14%) ⬆️
... and 13 more
... and 11 files with indirect coverage changes

OlGierd03 and others added 12 commits November 16, 2026 17:52
…-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.
…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
GCyganek and others added 17 commits November 17, 2026 21:16
…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
@github-actions

Copy link
Copy Markdown
Contributor

It looks like this PR adds a search filter or column. Please double check the following:

  • The filter is available in the Search filters dropdown and returns the expected results.
  • The filter has a matching column that can be shown through Display > Edit columns.
  • The column can be sorted by clicking its header.
  • Export > Current view includes the column in the exported CSV.

@github-actions

Copy link
Copy Markdown
Contributor

This PR adds a new Onyx.connectWithoutView call, so I've requested a review from the Onyx performance reviewers (@tgolen, @mountiny, @luacmartins, @chuckdries) — a review from any one of them is enough. Please add a link in your PR description to the Slack discussion where the @frontend-performance team approved using connectWithoutView here.

@mountiny

Copy link
Copy Markdown
Contributor

LGTM, ship it

@trjExpensify

Copy link
Copy Markdown
Contributor

Yeah, I'm pretty sure the Manifesto says PRs with 200k+ line changes can go straight to prod. 🤔

@cead22

cead22 commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Sorry for the confusion, this was split into multiple, small PRs. We don't need this one anymore

@cead22 cead22 closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.