Repository navigation
Attendee field is empty after creating new report - #105600
puneetlath merged 4 commits into
Conversation
|
@ikevin127 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dbce3e824b
ℹ️ 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".
Reviewer Checklist
Screenshots/VideosAndroid: Nativescreen-20261102-161249-1793664669782.mp4MacOS: Chrome / SafariScreen.Recording.2026-11-02.at.16.04.56.mov |
ikevin127
left a comment
There was a problem hiding this comment.
🟢 LGTM - The fix itself is sound: subscribing to report_<id> and reportDraft_<id> with useOnyx does fix the empty Attendees row.
src/hooks/useReportOwnerAsAttendee.tsx:19 and that thread is still open, so I didn't repeat it.
Finding 1 🟡 covers the other side of the same problem. Please address these before moving forward with merge!
…nclude attendees in comments
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 puneetlath has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.5.31-0 🚀
|
|
No help site update needed — this PR fixes the default attendee disappearing after report creation, restoring expected behavior without changing documented workflows. |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.5.31-0 🚀
|
|
@DylanDylann PR failing with original KI on Android only |
|
Note I noticed that on my android checklist video, but since the attendee did appear after a few seconds, and it remained there on second try - I thought that'd pass QA. |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
The default attendee is the owner of the report the expense is on.
useReportOwnerAsAttendeeread that report once from the module-level report copy. The report dropdown writes the new report ID to the draft as soon as "Create report" is tapped, before the optimistic report has reached that copy, so the owner resolved toundefinedand the Attendees row went empty. Nothing re-rendered the row when the report landed. The hook now subscribes to the report (and its draft) withuseOnyx, so the row fills in as soon as the report is in Onyx.getReportOwnerAccountIDAsAttendeetakes the owner as a parameter instead of reading it itself.Fixed Issues
$ #105549
PROPOSAL:
Tests
Precondition:
anchoredFieldDropdownsbeta on; workspace with attendee tracking enabled and at least two open reports.Offline tests
Same as Tests, offline.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))CategoryPickerModalis shared with the Search table's inline category edit and needs re-verifying there.Designlabel and/or tagged@Expensify/designso the design team can review the changes.tests/unit/components/ExpenseFieldDropdown.test.tsxcovers lazy mounting, opening in place vs. navigating, the row-width/below-the-row geometry, the flip above the row, dismissing by pressing the row again, and the full-page fallback.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: HybridApp
Screen.Recording.2026-11-02.at.16.02.36.mov
iOS: HybridApp
Screen.Recording.2026-11-02.at.16.05.00.mov
MacOS: Chrome / Safari
Screen.Recording.2026-11-02.at.16.02.15.mov