Repository navigation
Announce "Your review is required" on expense form rows in an error state - #103573
Conversation
…tate Co-authored-by: Marcin Warchoł <war-in@users.noreply.github.com>
|
I opened this PR from an upstream branch because I couldn't find a fork of To take ownership of this branch and push updates from your own fork, run: Then you can close this PR and open a new one from your fork. |
|
@MelvinBot the change is straightforward, so copy tests from the issue and open the PR for review |
|
The failing Details
|
|
Nothing has changed since my last check, so I still have nothing to push. The After that PR merges, ask me to merge Details
|
|
@linhvovan29546 PR is ready, but I cant open it or update the description |
|
🤖 Web test steps verification results: ✅ pass On dev NewDot web, the Attendees row in an error state (a workspace rule requires multiple attendees for the expense's category) adds "Your review is required" to its accessible name. Rows without an error (Category, Merchant) do not. The PR has no test steps yet, so I used the steps from the linked issue. A real screen reader wasn't available, so I checked each row's accessible label instead.
|
|
@linhvovan29546 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
I copied the test steps from the issue into Tests, Offline tests, and QA Steps, and marked the PR ready for review. I added one regression step: a row without an error must not say "Your review is required". The failing checks are unrelated to this PR, so I didn't change any code:
Why the failures are unrelatedThis PR changes only The PR Author Checklist still needs a person to complete it, including the screen reader and all-platforms items. That check will fail until you do. |
I can ask Melvin to update it. You can also ask Melvin to make the update. |
|
@MelvinBot Please merge |
|
Merging
This PR doesn't touch that test file. The break came from Match the self DM by the localized You/Me in report search, which merged on I can only make code changes when directed by the PR author, an assignee, or an existing co-author. To have me implement this, the PR assignee or author should reply with a request tagging me. |
|
@war-in Could you please ask Melvin to merge the |
|
@MelvinBot Please merge main and resolve the unit test and TypeScript workflow failures. |
…eFieldRowReviewRequired Co-authored-by: Marcin Warchoł <war-in@users.noreply.github.com>
|
@jasperhuangg 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] |
|
I merged The merge had no conflicts and changed no code in this PR. It only brought in the fix for the self DM search test, which Two checks aren't green yet:
|
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeiOS: mWeb Safari |
|
🚧 jasperhuangg has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 9.5.9-0 🚀
|
|
No help site update needed. This PR only adds a screen reader announcement ("Your review is required") to expense form rows that already show an error, so no article sentence becomes incorrect. |
|
@war-in This is a accessibility testing and A11Y testing is OOS. Could this be verified internally? |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.5.9-4 🚀
Bundle Size Analysis (Sentry): |






Explanation of Change
On the expense form, every field row (Attendees, Category, Tag, Merchant, and so on) is drawn with
ExpenseFieldRow. When a row has an error, it turns its border red and shows the message below the row. That message sits outside the focusable row, and the row draws no red dot. So nothing told screen readers the row needed attention. The Attendees row read only "Attendees, ".Push rows announce "Your review is required" through
MenuItem.BrickRoadIndicator, which registers theREVIEW_REQUIREDannouncement withMenuItem.Root. This PR adds a small leaf toExpenseFieldRowthat registers the same announcement whenevererrorTextis set, without drawing a dot.MenuItem.Rootappends registered announcements even to a customaccessibilityLabel, so the Attendees row now reads "Attendees, . Your review is required". The same fix applies to every other expense form row in an error state.I added unit tests in
tests/unit/components/ExpenseFieldRow.test.tsxcovering the label with and without an error.AI Tests (run by MelvinBot):
ExpenseFieldRow.test.tsx,tests/ui/components/MenuItem/*,MenuItemTest.tsxandMoneyRequestReportFooter.tsx(61 tests),npm run lint-changed,npm run spell-changed, andreact-compiler-compliance-check checkonExpenseFieldRow.tsx.npm run typecheckfails intests/unit/OptionsListUtilsTest.tsx(5750). This PR doesn't touch that file, and the error also shows onmain.oxfmt, the full Jest suite, and Storybook. The sandbox blocked them. MelvinBot did not check this with a real screen reader or in the browser.Fixed Issues
$ #103560
PROPOSAL: #103560 (comment)
Tests
Preconditions:
Offline tests
Same as tests. The change only updates the row's accessibility label and makes no network requests.
QA Steps
Same as tests, on staging.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari