WIP: Add sticky group headers to Spend table (two-phase approach)#92067
WIP: Add sticky group headers to Spend table (two-phase approach)#92067Krishna2323 wants to merge 6 commits into
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
…o header + children pairs Signed-off-by: krishna2323 <belivethatkg@gmail.com>
0636261 to
d8c1da2
Compare
…layout Signed-off-by: krishna2323 <belivethatkg@gmail.com>
…tedCollapsible Signed-off-by: krishna2323 <belivethatkg@gmail.com>
…collapsed Signed-off-by: krishna2323 <belivethatkg@gmail.com>
…h results Signed-off-by: krishna2323 <belivethatkg@gmail.com>
…n widths and borders Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5980a0aa06
ℹ️ 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".
| return ( | ||
| <OfflineWithFeedback pendingAction={pendingAction}> | ||
| <PressableWithFeedback | ||
| onPress={onToggle} |
There was a problem hiding this comment.
Preserve report row navigation on press
In the expense-report search view (type === EXPENSE_REPORT), this wrapper now handles every header press by toggling expansion. The previous TransactionGroupListItem path called onSelectRow(item, transactionPreviewData, event) for expense-report groups, so tapping a report row opened the report/RHP and initialized one-transaction previews; after this change narrow users can only expand/collapse the row and lose the normal row navigation. Branch here so expense-report headers still call onSelectRow and reserve toggle for the arrow/other group types.
Useful? React with 👍 / 👎.
| const renderHeader = () => { | ||
| if (isExpenseReportType) { | ||
| return ( | ||
| <ReportListItemHeader |
There was a problem hiding this comment.
Pass payment context into report headers
On wide expense-report rows, the ActionCell inside ReportListItemHeader still calls handleActionButtonPress, which relies on lastPaymentMethod, personalPolicyID, and billing grace values to choose direct Pay/Approve/Submit behavior and restriction redirects. TransactionGroupListItem used to pass those props, but the new GroupHeader invocation omits them, so PAY falls back to opening the item when a saved payment method exists and billing restrictions can be skipped because the grace-period collections are undefined. Thread the same props through SearchList/GroupHeader.
Useful? React with 👍 / 👎.
Explanation of Change
Fixed Issues
$ #88926
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari