Skip to content

[No QA] Docs updates for E/A#99721 moved-expense system message now destination-based - #100498

Merged
VictoriaExpensify merged 2 commits into
mainfrom
claude-docsMovedExpenseSystemMessageDestination
Sep 15, 2026
Merged

VictoriaExpensify merged 2 commits into
mainfrom
claude-docsMovedExpenseSystemMessageDestination

Conversation

@MelvinBot

Copy link
Copy Markdown
Contributor

Explanation of Change

Help site follow-up to #99721, which flipped the moved-expense system message guard from the source report to the destination report so the App matches the backend.

Two help articles documented the old, source-based rule, which is now wrong:

  • Getting-Started-with-the-Spend-Page.md said "A system message records the move when the expense leaves a submitted report … Moving expenses between draft reports does not add a system message." Under the current rule the destination decides: moving into a submitted report adds the message, moving into a draft report never does — regardless of where the expense came from. So the old wording was wrong in both directions (it promised a message for submitted → draft, and denied one for draft → submitted).
  • Managing-Expenses-in-a-Report.md covers the move flow and its metadata promises system-message coverage, but the body never stated the rule. Added it there.

While editing those move steps I also corrected the UI labels in Managing-Expenses-in-a-Report.md, which no longer match the product: the menu item is Move to report (the article said Move expense(s)), the green button is labeled with the selection count such as 1 selected (the article said the green selected button), and the "To move or remove all expenses from a report" flow was missing the step where you actually check the expenses.

I verified the current behavior and every label against dev NewDot on web rather than inferring them from the diff:

Move System message in the expense
Submitted → draft none
Draft → submitted "moved this expense from <report>"
Remove from report (personal space) "moved this expense from <report>"

Also confirmed in the live UI: the green selected-actions button reads 1 selected, its menu item is Move to report, and the destination panel offers Create report, the existing reports, and Remove from report (subtitled "Move expenses to your personal space").

One thing for App engineers rather than the docs: in the Remove from report case, the rendered message reads "moved this expense from <report>" while that node's accessibility label reads "moved this expense to your personal space." The articles describe what a user sees on screen, so this PR does not depend on it, but the mismatch looks unintentional.

Fixed Issues

$ #99653
PROPOSAL:

Tests

// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review"
// Please describe what tests you performed that validates your changed worked.

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review".
// Please describe what QA needs to do to validate your changes and what areas do they need to test for regressions.

  • 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

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

@mkhutornyi, please review the files changed and confirm they reflect the current behavior. Then post a new comment saying @MelvinBot mark this PR as ready for review.

…eport

#99721 moved the optimistic MOVED_TRANSACTION guard from the source report to the destination report to match the backend. Update the two help articles that documented the old source-based rule, and correct the move-flow UI labels to match the current product.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team September 7, 2026 11:26
@MelvinBot MelvinBot added the HelpDot Apply this label if the issue relates to ExpensifyHelp label Sep 7, 2026
@mkhutornyi

Copy link
Copy Markdown

@MelvinBot mark this PR as ready for review

@github-actions github-actions Bot changed the title Docs updates for E/A#99721 moved-expense system message now destination-based [No QA] Docs updates for E/A#99721 moved-expense system message now destination-based Sep 7, 2026
@OSBotify

This comment has been minimized.

@MelvinBot
MelvinBot marked this pull request as ready for review September 7, 2026 11:30
@melvin-bot

melvin-bot Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Concierge reviewer checklist:

  • I have verified the accuracy of the article
    • The article is within a hub that makes sense, and the navigation is correct
    • All processes, screenshots, and examples align with current product behavior.
    • All links within the doc have been verified for correct destination and functionality.
  • I have verified the readability of the article
    • The article's language is clear, concise, and free of jargon.
    • The grammar, spelling, and punctuation are correct.
    • The article contains at least one image, or that an image is not necessary
  • I have verified the formatting of the article
    • The article has consistent formatting (headings, bullet points, etc.) with other HelpDot articles and that aligns with the HelpDot formatting standards.
    • The article has proper text spacing and breaks for readability.
  • I have verified the article has the appropriate tone and style
    • The article's tone is professional, friendly, and suitable for the target audience.
    • The article's tone, terminology, and voice are consistent throughout.
  • I have verified the overall quality of the article
    • The article is not missing any information, nor does it contain redundant information.
    • The article fully addresses user needs.
  • I have verified that all requested improvements have been addressed

For more detailed instructions on completing this checklist, see How do I review a HelpDot PR as a Concierge Team member?

cc @VictoriaExpensify

@melvin-bot
melvin-bot Bot requested review from VictoriaExpensify and mkhutornyi and removed request for a team September 7, 2026 11:30
@MelvinBot

MelvinBot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Done — this PR is out of draft and ready for review.

  • isDraft: false, state OPEN
  • Reviewers requested: Expensify/pullerbear and stephanieelliott
  • Assignee: mkhutornyi

One thing left for you: the Tests and QA Steps sections still hold the // TODO: The human co-author must fill out... placeholders. I can't fill those in on your behalf, so please replace them (or write "Same as tests" for QA) before a reviewer picks this up.

Heads-up on checks: Check independent approval is failing, which is expected on a fresh PR until a reviewer approves. Everything else that has finished is passing, and build is still running.


view run · view recording

@melvin-bot

melvin-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown

@mkhutornyi @VictoriaExpensify One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

3. Choose the green **selected** button > **Move expense(s)**.
4. Choose a destination report, select **Create report** to create a new report, or select **Remove from report**.
3. Click the checkbox next to each expense you want to move.
4. Click the green selected count button — for example, **3 selected** — then click **Move to report**.

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 / deterministic writing violation: This describes the same UI element as line 49 but phrases it differently ("green selected count button — for example, 3 selected" vs. "green 1 selected button"). Per HELPSITE_NAMING_CONVENTIONS.md (Deterministic Writing Rule + Button Naming Standards), reference the exact bolded UI label consistently and avoid stylistic variation. "selected count button" also paraphrases/generalizes the label. Match the phrasing used in the single-expense flow (e.g. "Click the green 1 selected button > Move to report"), noting the count reflects how many expenses are selected.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in bf21c0b. The line now uses the same construction as the single-expense step instead of paraphrasing the label:

docs/articles/new-expensify/reports-and-expenses/Managing-Expenses-in-a-Report.md:57

  1. Click the green 1 selected button > Move to report. The count in the button label matches the number of expenses you selected.

That drops "selected count button" and keeps the bolded label identical to line 49, with one plain sentence covering the dynamic count.

Confirmed against dev NewDot on web that 1 selected is the real label and that its menu item is Move to report:

Green 1 selected button after selecting the draft expense row

Selection action menu showing Move to report option

One thing I left alone: the two Delete flows further down (lines 74 and 79) still say "the green selected button", which is the same stale label this PR corrected in the move flows. It's outside this PR's diff so I kept the change scoped — say the word and I'll fix those too.


view run

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

HelpDot Documentation Review

Overall Assessment

This PR is a small, targeted correctness update to two Spend/Reports articles following #99721, which made the moved-expense system message destination-based. The changes fix a factually wrong rule, correct several UI labels to match the live product, and add a previously missing step. The scope is tight and well-justified in the PR description.

Scores Summary

  • Readability: 9/10 - Changed sentences are clear, sequential, and scannable; the added count-button example ("for example, 3 selected") aids comprehension.
  • AI Readiness: 8/10 - Edits preserve full feature names and UI-exact labels, and reinforce the destination-based rule consistently across both files, improving retrieval accuracy. No metadata/heading changes were needed (and none were regressed).
  • Style Compliance: 8/10 - UI labels now match the product (Move to report, 1 selected, Remove from report) and buttons are bolded per the naming conventions.

Key Findings

  • Correctly replaces the outdated source-based system-message wording with destination-based wording in both files, and the two files now agree.
  • Fixes real UI-label drift in Managing-Expenses-in-a-Report.md: Move expense(s) -> Move to report, and the generic green selected button -> the selection-count label (1 selected / 3 selected).
  • Adds the missing "check the expenses" step to the "move all expenses" flow, making the procedure complete.
  • Minor style nit: in the added "all expenses" step, "the green selected count button" is descriptive prose while the example label is bolded; wording is fine but keep count-button references phrased consistently with the single-expense step.
  • Pre-existing (not introduced by this PR, out of scope): Managing-Expenses-in-a-Report.md still uses Title Case H2 headings ("How to Move or Remove Expenses...") and one full-URL cross-link, which diverge from the guidelines. Getting-Started-with-the-Spend-Page.md still has non-task headings and a step-4 fragment. These are unchanged lines and not part of this diff.

Recommendations

  • Optional: align the phrasing of the count-button reference in the "all expenses" flow with the single-expense flow for consistency.
  • Consider a follow-up (separate PR) to bring the unchanged headings and the full-URL cross-link in these files into line with the authoring guidelines; out of scope here.
  • No blocking issues in the proposed diff.

Files Reviewed

  • docs/articles/new-expensify/reports-and-expenses/Getting-Started-with-the-Spend-Page.md - Accurate, consistent rule correction. Looks good.
  • docs/articles/new-expensify/reports-and-expenses/Managing-Expenses-in-a-Report.md - Correct label fixes, added missing step, and system-message note. Looks good with a minor optional polish.

Note: Detailed line-by-line feedback has been provided as inline comments.

@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: 40a8e5ef19

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

@mkhutornyi

Copy link
Copy Markdown

@MelvinBot address #100498 (comment) and #100498 (comment)

… reports as move destinations

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@MelvinBot

MelvinBot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Both review comments are addressed in bf21c0b. I replied in each thread with the details (naming, submitted destinations); the short version:

1. Naming / deterministic writing — Managing-Expenses-in-a-Report.md:57 now matches line 49 exactly — "Click the green 1 selected button > Move to report." — with one plain sentence noting the count reflects how many expenses you selected. The "selected count button" paraphrase is gone.

2. Submitted reports as destinations — both destination lists in Getting-Started-with-the-Spend-Page.md (line 70, line 80) now read An existing draft or submitted report, so they no longer contradict the new system-message sentence.

The second comment's claim held up under both checks. In code, useOutstandingReports.ts:37 passes isEditing into the allowSubmitted parameter of getOutstandingReportsForUser, and both documented flows pass it as true. In the live UI on dev NewDot, an already-submitted report shows up as a selectable destination:

Move to report destination panel listing Create report, both expense reports, and Remove from report

I kept the wording at "draft or submitted" because the filter also excludes approved, paid, forwarded, and archived reports, and only offers reports owned by the same member.

Two things worth your call:

  • The Delete flows at lines 74 and 79 still say "the green selected button" — the same stale label this PR fixed in the move flows. I left them since they're outside this PR's diff. Tell me if you want them corrected here.
  • npm run spell-changed couldn't run locally (git merge-base failed — this sandbox has a shallow clone of main), so CI's spellcheck job is the gate for these two files. The change only adds ordinary words ("submitted", "count", "label"), and spellcheck passed on the previous commit.

view run · no recording available

@OSBotify

OSBotify commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

@VictoriaExpensify
VictoriaExpensify merged commit e9e328b into main Sep 15, 2026
17 of 19 checks passed
@VictoriaExpensify
VictoriaExpensify deleted the claude-docsMovedExpenseSystemMessageDestination branch September 15, 2026 02:21
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/VictoriaExpensify in version: 9.4.80-0 🚀

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

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/luacmartins in version: 9.4.80-0 🚀

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

Bundle Size Analysis (Sentry):

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

Labels

HelpDot Apply this label if the issue relates to ExpensifyHelp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants