Skip to content

[No QA] Create import-via-csv.md#80548

Merged
stephanieelliott merged 2 commits into
mainfrom
dylanexpensify-patch-2
May 19, 2026
Merged

[No QA] Create import-via-csv.md#80548
stephanieelliott merged 2 commits into
mainfrom
dylanexpensify-patch-2

Conversation

@dylanexpensify

@dylanexpensify dylanexpensify commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

Tracking - https://github.com/Expensify/Expensify/issues/571728
Project Resource GH - https://github.com/Expensify/Expensify/issues/593163

Explanation of Change

Updating help site to account for new changes

Fixed Issues

Tests

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

// TODO: These must be filled out, or the issue title must include "[No QA]."

  • 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 there are no new alerts related to the canBeMissing param for useOnyx
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • 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 shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • 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)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • 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)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • 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.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • 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

@github-actions github-actions Bot changed the title Create import-via-csv.md [No QA] Create import-via-csv.md Jan 26, 2026
@OSBotify

This comment has been minimized.

@sonialiap

Copy link
Copy Markdown
Contributor

@dylanexpensify same for this one, should this still be in draft mode?

@dylanexpensify

Copy link
Copy Markdown
Contributor Author

pending

@stephanieelliott stephanieelliott marked this pull request as ready for review May 19, 2026 21:15
@stephanieelliott stephanieelliott self-requested a review as a code owner May 19, 2026 21:15
@stephanieelliott stephanieelliott requested review from jliexpensify and removed request for sonialiap May 19, 2026 21:16

@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: d71572e037

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

Comment thread docs/articles/new-expensify/connect-credit-cards/import-via-csv.md Outdated
Comment thread docs/articles/new-expensify/connect-credit-cards/import-via-csv.md Outdated
@jliexpensify

Copy link
Copy Markdown
Contributor

@dylanexpensify line 92 is:

ADD A SCREENSHOT HERE. Suggestion: Error message showing duplicate field mapping issue.

Can you add this in, or can we remove it?

cc @stephanieelliott

@stephanieelliott

stephanieelliott commented May 19, 2026

Copy link
Copy Markdown
Contributor

Yea let's remove that @jliexpensify! I see one other change I want to make too - I will go in and commit those changes, then approve. You should then be able to merge!

@jliexpensify

Copy link
Copy Markdown
Contributor

Cool thanks @stephanieelliott - let me know once you've made those changes and I'll approve 👍

@stephanieelliott

Copy link
Copy Markdown
Contributor

All set @jliexpensify!

@OSBotify

Copy link
Copy Markdown
Contributor

A preview of your ExpensifyHelp changes have been deployed to https://4a2096f8.helpdot.pages.dev ⚡️

Updated articles:

@jliexpensify jliexpensify left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@stephanieelliott stephanieelliott merged commit 80bd178 into main May 19, 2026
18 checks passed
@stephanieelliott stephanieelliott deleted the dylanexpensify-patch-2 branch May 19, 2026 22:12
@melvin-bot melvin-bot Bot added the Emergency label May 19, 2026
@melvin-bot

melvin-bot Bot commented May 19, 2026

Copy link
Copy Markdown

@stephanieelliott looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

# Import Company Card Transactions From a Spreadsheet

If your bank isn't supported by a direct connection, you can still import company card transactions into Expensify using a CSV, TXT, XLX or XLSX file. This lets you bring your own card (BYOC) and manually upload company card transactions when a direct bank connection is unavailable.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo: "XLX" should be "XLS". The FAQ section on line 78 correctly uses "XLS". This same typo also appears on lines 29 and 51.


## How to import company card transactions from a spreadsheet

1. In the navigation tabs (on the left on web, on the bottom on mobile), go to the **Workspaces** and select your workspace.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Style: "go to the Workspaces" reads awkwardly — drop the article "the" so it reads "go to Workspaces and select your workspace."


1. In the navigation tabs (on the left on web, on the bottom on mobile), go to the **Workspaces** and select your workspace.
2. Click **Company Cards**.
3. Click on **Add card**.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Naming consistency: "Click on Add card" has two issues: (1) Use "Click" not "Click on" to match the style used in all other steps. (2) The label is "Add card" here but "Add Card" on the next line — pick whichever matches the actual UI label and use it consistently.

5. Choose **Import transactions from file**.
6. Choose the CSV, TXT, XLX or XLSX file you want to upload.
7. Enter a name for the card feed.
8. Set your field mappings (e.g., Card Number, Date, Amount, Merchant).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Terminology violation: Per naming conventions, use "members" instead of "users." The correct phrasing would be: "Assign cards to members based on the transactions in the file."


---

## How to upload additional transactions to an existing card feed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Navigation inconsistency: Step 1 in this section uses abbreviated navigation ("Go to Workspaces > Company Cards") but step 1 in the first procedure (line 24) uses the full pattern with navigation tabs. For consistency and per the Navigation Instruction Standards, use the same format: "In the navigation tabs (on the left on web, on the bottom on mobile), go to Workspaces and select your workspace." then add a step to click Company Cards.

@github-actions

Copy link
Copy Markdown
Contributor

HelpDot Documentation Review

Overall Assessment

This PR adds a new article for importing company card transactions from a spreadsheet. The article is well-structured, follows the single-H1 rule, includes complete YAML metadata with internalScope, uses task-based headings throughout, and provides clear procedural steps. A few mechanical issues need attention before merge.

Scores Summary

  • Readability: 8/10 - Clear, scannable structure with well-organized sections and numbered steps. Dinged for a step numbering error (jumps from 3 to 5 in the first procedure) and a repeated file format typo that could confuse users.
  • AI Readiness: 9/10 - Strong metadata with descriptive internalScope, keywords covering realistic search phrases (including "BYOC" and "bring your own card"), task-based headings with feature names, and proper heading hierarchy (only # and ##). Includes at least one "How to" heading as required.
  • Style Compliance: 8/10 - Button and UI element names are consistently bolded. Navigation instructions follow the unified format correctly. Minor issues: "Click on" should be "Click" (line with "Click on Add card"), and the article before "Workspaces" in step 1 ("go to the Workspaces") should be removed per naming conventions.

Key Findings

  • Typo: "XLX" should be "XLS" -- This appears three times in the article (intro paragraph, first procedure step 6, and second procedure step 5). The FAQ section correctly uses "XLS." This is a factual error that will confuse users trying to validate their file format.
  • Step numbering skip -- The first procedure jumps from step 3 to step 5, skipping step 4. This is likely a Markdown rendering issue from a removed or reordered step.
  • Multiple workflows in one article -- The article covers importing, updating, and deleting card feeds. Per Section 1 of the authoring guidelines ("Solve one primary workflow only"), this is borderline. The update and delete tasks are closely related sub-operations of the same card feed feature, so this is acceptable, but worth noting.
  • Positive: Strong FAQ section -- All FAQ questions use question words, are specific to the feature, and provide direct answers. The FAQ about duplicate column mapping is particularly useful.
  • Positive: Cross-links are well-placed -- Links appear in explanatory paragraphs (not inside numbered steps), use descriptive anchor text, and reference prerequisite/related workflows appropriately.

Recommendations

  1. Fix "XLX" to "XLS" in all three occurrences -- this is the highest-priority fix as it is a factual error.
  2. Fix step numbering in the first procedure so steps are sequential (1 through 10 without gaps).
  3. Remove "on" from "Click on" in "Click on Add card" -- per naming conventions, the correct form is "Click Add card."
  4. Remove "the" before Workspaces in step 1 -- change "go to the Workspaces" to "go to Workspaces."

Files Reviewed

  • docs/articles/new-expensify/connect-credit-cards/Import-Company-Card-Transactions-From-a-Spreadsheet.md -- New article. Solid foundation with good metadata and structure. Requires minor corrections listed above before merge.

Review based on docs/HELP_AUTHORING_GUIDELINES.md, docs/HELPSITE_NAMING_CONVENTIONS.md, and docs/TEMPLATE.md governance standards.

7. Click **Import**.

**Note:** Previously mapped fields will auto-fill to save time.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Navigation inconsistency: Same issue as line 47 — this section also uses the abbreviated "Go to Workspaces > Company Cards" format instead of the full navigation pattern established in the first procedure. Apply the same fix for consistency.

- If you already have a company card feed set up, click the feed name to see **Add Card**.
5. Choose **Import transactions from file**.
6. Choose the CSV, TXT, XLX or XLSX file you want to upload.
7. Enter a name for the card feed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Step formatting: The field mapping examples are in parentheses — "e.g., Card Number, Date, Amount, Merchant" — but the governance rules require steps to be clear and action-oriented. Consider rephrasing to: "Map the required fields: Card Number, Date, Amount, and Merchant." This also aligns the step with the FAQ answer on lines 82-87 which lists these as required columns.

5. Confirm deletion.

**Note:** This removes the card feed and any **Deleted**, **Unreported**, and **Draft** expenses. **Outstanding**, **Approved** and **Paid** expenses are not deleted. [Learn more about expense and report statuses](/articles/new-expensify/reports-and-expenses/Understanding-Report-Statuses-and-Actions#report-statuses).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cross-linking placement: Per the cross-linking standards, links should not be placed inside procedural steps or tightly coupled with step-like instructions. The link here at the end of the Note is acceptable, but verify that the linked path /articles/new-expensify/reports-and-expenses/Understanding-Report-Statuses-and-Actions#report-statuses exists and the anchor is valid.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/stephanieelliott in version: 9.3.79-1 🚀

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

Bundle Size Analysis (Sentry):

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.79-4 🚀

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

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.

5 participants