feat: Add inline editing for tables on desktop#83127
feat: Add inline editing for tables on desktop#83127mohammadjafarinejad wants to merge 59 commits intoExpensify:mainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@mohammadjafarinejad when do you think this can be opened for review? |
|
I'm still working on it. I'll try to have it ready within a few hours, or by tomorrow at the latest. |
…ndling in search results
…etIouParamsForTransaction
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@ahmedGaber93 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] |
There was a problem hiding this comment.
💡 Codex Review
App/src/libs/actions/IOU/index.ts
Lines 5298 to 5299 in 2116cab
This branch still calls getUpdateTrackExpenseParams(...) without the new hash argument, even though hash is accepted by the wrapper now to restore snapshot rows on failure; the same omission exists in updateMoneyRequestAmountAndCurrency. For self-DM track-expense edits from Search, a failed date/amount update will keep the optimistic snapshot value instead of reverting, leaving stale data visible until the snapshot is refreshed.
ℹ️ 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".
|
Basically I would expect the merchant and description cells to work identically. |
|
@shawnborton The current |
|
Hmm I don't think I am following. Those two cells should behave exactly the same. |
@mohammadjafarinejad I don't get that, could you please add more details? I see the both support multi-line on staging
|
|
@shawnborton @ahmedGaber93 Do you mean they should be identical only in preview mode? In edit mode, they cannot be identical because the description is multiline.
|
|
@mohammadjafarinejad Thanks for the updates. I am still able to reproduce Issue 1, 3 and 5 here #83127 (comment) issue 7: pressing enter now do nothing. video issue 5, 720260312205645374.mp4This issue is back again #83127 (comment)
|
Checking in the code ... |
That's fine, but in the inline table editing, the controls should be identical IMO. Both of those items - the merchant and description - can grow to two lines in the table cell. |
I think we can support this in preview mode only. In edit mode, allowing the field to grow to multiple lines would also allow users to enter new lines ( As far as I can see, the current input component in the app doesn’t support a single-line input that can grow in height, so this may require more investigation and might be out of scope for this PR. @shawnborton Do we have any case in the app where an input is single-line but can grow in height that can we follow it? |
|
We are just talking about inline editing here. The inline editing behavior for the merchant and description should be exactly the same. |
The main challenge is preventing users from entering a new line ( I’ll do a bit more investigation to see how we can allow both inputs to grow in height while only allowing the description field to accept new lines ( |
|
Yeah, I think I would just remove the new lines after the user exits inline editing mode. |
Great! @mohammadjafarinejad Let’s go with that. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dcffdcb273
ℹ️ 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".
|
How we looking here to get it over the line this week? |
|
@ahmedGaber93 Ready for re-review. I cannot reproduce this issue (tapping outside the input selects the expense). Could you please check it again? Videoissue7_unfocus_bug.mp4 |
|
Thanks for the update. I’m AFK for now and will review it in a few hours. |



Explanation of Change
Adds inline editing to transaction table cells on desktop for date, merchant, description, category, and amount. Introduces
EditableCell,useInlineEditState, andusePopoverEditStateas shared primitives for the display/edit toggle pattern.Fixed Issues
$ #82534
PROPOSAL: #82534 (comment)
Tests
Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.ScrollViewcomponent to make it scrollable when more elements are added to the page.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.mp4
Android: mWeb Chrome
android-web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios-web.mp4
MacOS: Chrome / Safari
web.mp4