Skip to content

Add optional Card Name column to company-card CSV import - #96912

Merged
justinpersaud merged 5 commits into
mainfrom
jpersaud-csv-card-name-match
Jul 24, 2026
Merged

justinpersaud merged 5 commits into
mainfrom
jpersaud-csv-card-name-match

Conversation

@justinpersaud

@justinpersaud justinpersaud commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Adds an optional Card Name column to the NewDot company-card CSV import mapping step (CompanyCardsImportedPage). Card-identity is now either/or: a feed maps a card number or a card name (at least one required), instead of always requiring a card number. This lets admins auto-match uploaded transactions to cards by name — the NewDot counterpart of the OldDot upload flow.

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/662568
PROPOSAL: N/A (internal feature)

Tests

  1. Open a workspace → Company cards → Add cards → import from file / spreadsheet.
  2. Upload a CSV whose header has a Card Name column (and no card-number column).
  3. On the mapping step, map the Card Name column; leave card number unmapped.
  4. Verify the step validates (no "required column" error) with only Card Name mapped.
  5. Map neither a card number nor a card name and verify the error "Please map a card number or a card name…" appears.
  6. Submit and confirm the import proceeds.
  • Verify that no errors appear in the JS console

Offline tests

Same as Tests — the mapping/validation step is client-side; submission surfaces the standard offline handling for ImportCSVCompanyCards.

QA Steps

  1. As a workspace admin, assign two cards to a CSV feed with distinct names ("Marketing Card", "Sales Card").
  2. Company cards → Add cards → import from file → upload a CSV with a Card Name column (no card number), rows tagged for each card.
  3. Map the Card Name column, submit, and verify each transaction lands on the correctly-named card.
  4. Verify a row with an unmatched card name is not imported.
  5. Regression: import a card-number CSV mapping the card-number column and verify it still routes by number.

I used this CSV
2-card-name-match.csv

It has 6 rows and only 4 should import

And here is one for the existing card number format
1-card-number-seed.csv

This is a new feature so if it doesn't cause any regressions with the existing CSV upload by card number only, then it should not be considered a blocker and we'll fix any issues.

  • 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 followed proper code patterns (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and 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 followed the guidelines as stated in the Review Guidelines
  • 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 a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • 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.
  • 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

image

Card-identity is now either/or in the company-card CSV mapping step: map a
card number or a card name (at least one). Enables routing uploaded rows to
cards by name, matching the OldDot upload flow and the shared feed backend.
@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 5a5a727c355..57a942b1942 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -5819,7 +5819,7 @@ _Für ausführlichere Anweisungen [besuchen Sie unsere Hilfeseite](${CONST.NETSU
                     requiredColumns: (missingColumns: string) => `Bitte weisen Sie jeder der folgenden Eigenschaften eine Spalte zu: ${missingColumns}.`,
                     duplicateColumns: (duplicateColumn: string) =>
                         `Ups! Du hast ein einzelnes Feld („${duplicateColumn}“) mehreren Spalten zugeordnet. Bitte überprüfe die Zuordnung und versuche es erneut.`,
-                    cardIdentityColumn: 'Bitte ordne eine Kartennummer oder einen Kartennamen zu, damit Transaktionen einer Karte zugeordnet werden können.',
+                    cardIdentityColumn: 'Bitte ordnen Sie eine Kartennummer oder einen Kartennamen zu, damit Transaktionen einer Karte zugeordnet werden können.',
                 },
                 fileImportDescription: 'Eine manuelle Option, falls Ihre Bank keinen Feed senden kann.',
                 duplicateFeedModal: {title: 'Karten-Feed bereits verbunden', prompt: 'Sie können denselben Kartenfeed nicht zweimal zu demselben Workspace hinzufügen.'},
diff --git a/src/languages/es.ts b/src/languages/es.ts
index d303136f858..66239ea67dd 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -5643,7 +5643,7 @@ ${amount} para ${merchant} - ${date}`,
                 csvErrors: {
                     requiredColumns: (missingColumns: string) => `Por favor, asigna una columna a cada uno de los atributos: ${missingColumns}.`,
                     duplicateColumns: (duplicateColumn: string) => `¡Ups! Has asignado un solo campo ("${duplicateColumn}") a múltiples columnas. Por favor, revisa y vuelve a intentarlo.`,
-                    cardIdentityColumn: 'Asigna un número de tarjeta o un nombre de tarjeta para que las transacciones puedan asociarse a una tarjeta.',
+                    cardIdentityColumn: 'Asocia un número de tarjeta o un nombre de tarjeta para que las transacciones puedan vincularse a una tarjeta.',
                 },
                 duplicateFeedModal: {title: 'Feed de tarjeta ya conectado', prompt: 'No puedes añadir el mismo flujo de tarjeta al mismo espacio de trabajo dos veces.'},
             },
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index 9a9bc855f72..9127ce9e1b3 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -5830,7 +5830,7 @@ _Pour des instructions plus détaillées, [visitez notre site d’aide](${CONST.
                 csvErrors: {
                     requiredColumns: (missingColumns: string) => `Veuillez attribuer une colonne à chacun des attributs : ${missingColumns}.`,
                     duplicateColumns: (duplicateColumn: string) => `Oups ! Vous avez associé un seul champ (« ${duplicateColumn} ») à plusieurs colonnes. Veuillez vérifier et réessayer.`,
-                    cardIdentityColumn: 'Veuillez associer un numéro de carte ou un nom de carte pour que les transactions puissent être associées à une carte.',
+                    cardIdentityColumn: 'Veuillez associer un numéro de carte ou un nom de carte afin que les transactions puissent être rapprochées d’une carte.',
                 },
                 fileImportDescription: 'Une option manuelle si votre banque ne peut pas envoyer de flux.',
                 duplicateFeedModal: {title: 'Flux de carte déjà connecté', prompt: 'Vous ne pouvez pas ajouter deux fois le même flux de carte au même espace de travail.'},
diff --git a/src/languages/it.ts b/src/languages/it.ts
index a3db09b0555..c3d46322c86 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -5778,7 +5778,7 @@ _Per istruzioni più dettagliate, [visita il nostro sito di assistenza](${CONST.
                 },
                 csvColumns: {
                     cardNumber: 'Numero di carta',
-                    cardName: 'Nome della carta',
+                    cardName: 'Nome carta',
                     postedDate: 'Data',
                     merchant: 'Esercente',
                     amount: 'Importo',
@@ -5794,7 +5794,7 @@ _Per istruzioni più dettagliate, [visita il nostro sito di assistenza](${CONST.
                 csvErrors: {
                     requiredColumns: (missingColumns: string) => `Assegna una colonna a ciascuno degli attributi: ${missingColumns}.`,
                     duplicateColumns: (duplicateColumn: string) => `Ops! Hai associato un singolo campo ("${duplicateColumn}") a più colonne. Controlla e riprova.`,
-                    cardIdentityColumn: 'Assegna un numero di carta o un nome di carta per associare le transazioni a una carta.',
+                    cardIdentityColumn: 'Abbina un numero di carta o un nome della carta così le transazioni potranno essere associate a una carta.',
                 },
                 fileImportDescription: "Un'opzione manuale se la tua banca non può inviare un feed.",
                 duplicateFeedModal: {title: 'Feed carta già collegato', prompt: 'Non puoi aggiungere due volte lo stesso feed della carta allo stesso spazio di lavoro.'},
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index 5bd6499beea..a8aa6251a45 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -5735,7 +5735,7 @@ _詳しい手順については、[ヘルプサイトをご覧ください](${CO
                 csvErrors: {
                     requiredColumns: (missingColumns: string) => `各属性に列を割り当ててください:${missingColumns}`,
                     duplicateColumns: (duplicateColumn: string) => `おっと!1 つのフィールド("${duplicateColumn}")を複数の列にマッピングしています。確認して、もう一度お試しください。`,
-                    cardIdentityColumn: '取引をカードに紐付けられるように、カード番号またはカード名を割り当ててください。',
+                    cardIdentityColumn: '取引をカードに照合できるように、カード番号またはカード名を対応付けてください。',
                 },
                 fileImportDescription: '銀行からフィードを送信できない場合の手動オプションです。',
                 duplicateFeedModal: {title: 'カードフィードはすでに接続されています', prompt: '同じカードフィードを同じワークスペースに二重に追加することはできません。'},
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index b75701c91b6..f080c097a9e 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -5787,7 +5787,7 @@ _Voor meer gedetailleerde instructies, [bezoek onze help-site](${CONST.NETSUITE_
                     requiredColumns: (missingColumns: string) => `Wijs een kolom toe aan elk van de attributen: ${missingColumns}.`,
                     duplicateColumns: (duplicateColumn: string) =>
                         `Oeps! Je hebt één enkel veld (“${duplicateColumn}”) aan meerdere kolommen gekoppeld. Controleer dit en probeer het opnieuw.`,
-                    cardIdentityColumn: 'Wijs een kaartnummer of een kaartnaam toe zodat transacties aan een kaart kunnen worden gekoppeld.',
+                    cardIdentityColumn: 'Koppel een kaartnummer of een kaartnaam zodat transacties aan een kaart kunnen worden gekoppeld.',
                 },
                 fileImportDescription: 'Een handmatige optie als je bank geen feed kan versturen.',
                 duplicateFeedModal: {title: 'Kaartfeed al verbonden', prompt: 'Je kunt dezelfde kaartfeed niet twee keer aan dezelfde workspace toevoegen.'},
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index 1f311bc63ec..05ba9ac1b73 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -5769,7 +5769,7 @@ _Aby uzyskać bardziej szczegółowe instrukcje, [odwiedź naszą stronę pomocy
                 csvErrors: {
                     requiredColumns: (missingColumns: string) => `Przypisz kolumnę do każdego z atrybutów: ${missingColumns}.`,
                     duplicateColumns: (duplicateColumn: string) => `Ups! Przypisałeś jedno pole („${duplicateColumn}”) do wielu kolumn. Sprawdź i spróbuj ponownie.`,
-                    cardIdentityColumn: 'Przypisz numer karty lub nazwę karty, aby transakcje mogły zostać dopasowane do karty.',
+                    cardIdentityColumn: 'Przypisz numer karty lub nazwę karty, żeby transakcje mogły być dopasowane do karty.',
                 },
                 fileImportDescription: 'Ręczna opcja, jeśli Twój bank nie może wysyłać kanału danych.',
                 duplicateFeedModal: {title: 'Kanał karty jest już połączony', prompt: 'Nie możesz dodać tego samego źródła danych karty do tego samego obszaru roboczego dwa razy.'},
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 287dea4ff08..0bfcf9ffa37 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -5777,7 +5777,7 @@ _Para instruções mais detalhadas, [visite nossa central de ajuda](${CONST.NETS
                 csvErrors: {
                     requiredColumns: (missingColumns: string) => `Atribua uma coluna a cada um dos atributos: ${missingColumns}.`,
                     duplicateColumns: (duplicateColumn: string) => `Ops! Você mapeou um único campo ("${duplicateColumn}") para várias colunas. Revise e tente novamente.`,
-                    cardIdentityColumn: 'Mapeie um número de cartão ou um nome de cartão para que as transações possam ser associadas a um cartão.',
+                    cardIdentityColumn: 'Associe um número de cartão ou um nome de cartão para que as transações possam ser vinculadas a um cartão.',
                 },
                 fileImportDescription: 'Uma opção manual caso seu banco não possa enviar um feed.',
                 duplicateFeedModal: {title: 'Feed do cartão já conectado', prompt: 'Você não pode adicionar o mesmo feed de cartão ao mesmo workspace duas vezes.'},
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 97f3130e9a8..0a39e96f57c 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -5594,7 +5594,7 @@ _如需更详细的说明,请[访问我们的帮助网站](${CONST.NETSUITE_IM
                 },
                 csvColumns: {
                     cardNumber: '卡号',
-                    cardName: '卡片名称',
+                    cardName: '卡名',
                     postedDate: '日期',
                     merchant: '商家',
                     amount: '金额',
@@ -5610,7 +5610,7 @@ _如需更详细的说明,请[访问我们的帮助网站](${CONST.NETSUITE_IM
                 csvErrors: {
                     requiredColumns: (missingColumns: string) => `请为以下每个属性分配一列:${missingColumns}`,
                     duplicateColumns: (duplicateColumn: string) => `哎呀!你已将单个字段(“${duplicateColumn}”)映射到了多个列。请检查后重试。`,
-                    cardIdentityColumn: '请映射卡号或卡片名称,以便将交易匹配到对应的卡片。',
+                    cardIdentityColumn: '请映射卡号或卡名称,以便将交易匹配到相应的卡片。',
                 },
                 fileImportDescription: '如果您的银行无法发送数据馈送时的手动选项。',
                 duplicateFeedModal: {title: '卡片流水已连接', prompt: '您不能将同一张卡片流水两次添加到同一个工作区。'},

Note

You can apply these changes to your branch by copying the patch to your clipboard, then running pbpaste | git apply 😉

View workflow run

@codecov

codecov Bot commented Jul 23, 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 94.81% <ø> (ø)
...e/companyCards/addNew/CompanyCardsImportedPage.tsx 0.00% <0.00%> (ø)
... and 161 files with indirect coverage changes

@justinpersaud
justinpersaud marked this pull request as ready for review July 24, 2026 12:44
@justinpersaud
justinpersaud requested review from a team as code owners July 24, 2026 12:44
@melvin-bot
melvin-bot Bot requested review from bernhardoj and heyjennahay and removed request for a team and heyjennahay July 24, 2026 12:44
@melvin-bot

melvin-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

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

@melvin-bot
melvin-bot Bot removed the request for review from a team July 24, 2026 12:44
@justinpersaud
justinpersaud removed the request for review from bernhardoj July 24, 2026 12:45
@justinpersaud

Copy link
Copy Markdown
Contributor Author

No need for C+ on this one

@robertjchen

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible 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 checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and 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 verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • 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.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this 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.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

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

robertjchen
robertjchen previously approved these changes Jul 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚧 justinpersaud has triggered a test Expensify/App build. You can view the workflow run here.

@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: 3e1e40812a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

This comment has been minimized.

The empty-value check only scanned required columns; since cardNumber is no
longer required, blank card numbers/names slipped through. Extend the check
to the mapped cardNumber/cardName column so rows without a card identity are
caught before import.
@github-actions

Copy link
Copy Markdown
Contributor

🚧 justinpersaud has triggered a test Expensify/App build. You can view the workflow run here.

@github-actions

This comment has been minimized.

@justinpersaud
justinpersaud merged commit 8d17456 into main Jul 24, 2026
42 checks passed
@justinpersaud
justinpersaud deleted the jpersaud-csv-card-name-match branch July 24, 2026 15:00
@github-actions

Copy link
Copy Markdown
Contributor

🚧 justinpersaud has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

OSBotify pushed a commit that referenced this pull request Jul 24, 2026
Add optional Card Name column to company-card CSV import

(cherry picked from commit 8d17456)

(cherry-picked to staging by Beamanator)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Jul 24, 2026
@OSBotify OSBotify mentioned this pull request Jul 24, 2026
51 tasks done
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.4.44-2 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/marcaaron in version: 9.4.44-6 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.4.45-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor

Help site docs — changes required ✅

This PR adds an optional Card name column to the NewDot company-card CSV import mapping, making card identity either/or (a feed can map a Card number or a Card name, at least one required). That behavior is documented on the help site, so an update was needed.

Article affected: Import Company Card Transactions From a Spreadsheet — it previously stated a Card number was always required.

Draft help-site PR: #97143

What I changed there:

  • Field-mappings step now explains you map either a Card number or a Card name (at least one required).
  • Rewrote the "What columns are required" FAQ so the card-identity column is either/or.
  • Added a new FAQ explaining how matching by Card name works (and that an unmatched card name isn't imported).
  • Updated the "Oops!" empty-values FAQ to include the mapped card-identity column.

UI labels were verified against src/languages/en.ts in this PR — the mapping options are Card number and Card name (sentence case).

The personal-card spreadsheet import article was not touched, since this PR only changes CompanyCardsImportedPage.


@justinpersaud, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR Ready for review.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/marcaaron in version: 9.4.45-14 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@QichenZhu

Copy link
Copy Markdown
Contributor

This made the card number column optional and broke row.at(cardNumberColumnIndex) in CompanyCard.ts. If the column doesn't exist, cardNumberColumnIndex is -1, but at() interprets -1 as the last item.

PR #101569 fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CP Staging marks PRs that have been CP'd to staging Ready To Build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants