-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[CFI] Add group-by columns #76175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[CFI] Add group-by columns #76175
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
a6f60db
[CFI] Add group-by columns
mohammadjafarinejad e491685
Merge branch 'Expensify:main' into fix/75099
mohammadjafarinejad 14a9be1
chore: fix prettier
mohammadjafarinejad faafa0a
feat: add isExpenseReportView prop to TransactionGroupListExpanded
mohammadjafarinejad e1f2188
fix ts error & spell check
mohammadjafarinejad 7e70ea8
fix: update sorting logic
mohammadjafarinejad 030130c
fix: add "americanexpress" to cspell dictionary
mohammadjafarinejad 077043f
Merge branch 'main' into fix/75099
mohammadjafarinejad e257c24
fix: remove isExpenseReportView prop from Search component
mohammadjafarinejad 26d1483
fix: update width handling for expenses
mohammadjafarinejad 9ea500a
fix: hide Action column from nested rows
mohammadjafarinejad c582be9
fix: show checkbox for withdrawal group
mohammadjafarinejad 85255c3
fix: group headers layout and styles issues
mohammadjafarinejad 724860d
fix: default sorting
mohammadjafarinejad 789fe65
fix: add formattedCardName to transaction card group list items
mohammadjafarinejad caab269
Merge branch 'main' into fix/75099
mohammadjafarinejad 6a41ee4
fix: add cardFeeds to search component
mohammadjafarinejad e23705d
Merge branch 'main' into fix/75099
mohammadjafarinejad ab7c0e9
refactor: simplify checkbox rendering in CardListItemHeader and Membe…
mohammadjafarinejad b4bac30
fix eslint
mohammadjafarinejad 85eb6cb
fix eslint
mohammadjafarinejad dd64ee8
Merge branch 'Expensify:main' into fix/75099
mohammadjafarinejad 5cdc18a
Merge branch 'main' into fix/75099
mohammadjafarinejad dbfc6da
fix: update peggy to change default sortBy
mohammadjafarinejad 3595511
revert: unintended change
mohammadjafarinejad 91f8f3f
revert: unintended change
mohammadjafarinejad 0eeed46
refactor: DRY list item header components
mohammadjafarinejad cd61b52
Merge branch 'main' into fix/75099
mohammadjafarinejad c53358f
Fix merge conflicts from main
mohammadjafarinejad c90547e
Merge remote-tracking branch 'origin/main' into fix/75099
mohammadjafarinejad 1b99b01
Fix: Lazy icons hook as const assertion
mohammadjafarinejad 1fdbfb3
Merge remote-tracking branch 'origin/main' into fix/75099
mohammadjafarinejad a153031
Remove manual memoization from new header components for React Compil…
mohammadjafarinejad 5a4f9d9
Merge branch 'main' into fix/75099
mohammadjafarinejad 0b4a237
Merge branch 'main' into fix/75099
mohammadjafarinejad b8f9cc4
Fix Expenses column not expanding properly in grouped search results
mohammadjafarinejad 7c2dd43
fix: withdrawn sorting
mohammadjafarinejad 4f66902
Revert SearchTableHeader to use profileIcon parameter
mohammadjafarinejad 9c385fb
fix: crash on card sections
mohammadjafarinejad 62d8893
fix: add cardFeeds to MoneyRequestReportNavigation
mohammadjafarinejad b5961ea
fix expenses column style
mohammadjafarinejad 9a9878d
fix: misaligned child columns
mohammadjafarinejad 514d2bf
fix: update sorting logic for member and card data
mohammadjafarinejad d45c585
fix: reset orderBy in peggy for groupViews
mohammadjafarinejad 80cd7c5
Merge branch 'main' into fix/75099
mohammadjafarinejad ab3b209
Merge branch 'main' into fix/75099
mohammadjafarinejad 49a6015
Adapt code to changes from main
mohammadjafarinejad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ | |
| "alrt", | ||
| "Amal", | ||
| "Amal's", | ||
| "americanexpress", | ||
| "americanexpressfdx", | ||
| "Amina", | ||
| "androiddebugkey", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/components/SelectionListWithSections/Search/ExpandCollapseArrowButton.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import React from 'react'; | ||
| import Icon from '@components/Icon'; | ||
| import {PressableWithFeedback} from '@components/Pressable'; | ||
| import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset'; | ||
| import useTheme from '@hooks/useTheme'; | ||
| import useThemeStyles from '@hooks/useThemeStyles'; | ||
| import CONST from '@src/CONST'; | ||
|
|
||
| type ExpandCollapseArrowButtonProps = { | ||
| isExpanded?: boolean; | ||
|
|
||
| onPress: () => void; | ||
| }; | ||
|
|
||
| function ExpandCollapseArrowButton({isExpanded, onPress}: ExpandCollapseArrowButtonProps) { | ||
| const theme = useTheme(); | ||
| const styles = useThemeStyles(); | ||
| const icons = useMemoizedLazyExpensifyIcons(['UpArrow', 'DownArrow']); | ||
|
|
||
| return ( | ||
| <PressableWithFeedback | ||
| onPress={onPress} | ||
| style={[styles.pl3, styles.justifyContentCenter, styles.alignItemsEnd]} | ||
| accessibilityRole={CONST.ROLE.BUTTON} | ||
| accessibilityLabel={isExpanded ? CONST.ACCESSIBILITY_LABELS.COLLAPSE : CONST.ACCESSIBILITY_LABELS.EXPAND} | ||
| > | ||
| {({hovered}) => ( | ||
| <Icon | ||
| src={isExpanded ? icons.UpArrow : icons.DownArrow} | ||
| fill={theme.icon} | ||
| additionalStyles={!hovered && styles.opacitySemiTransparent} | ||
| small | ||
| /> | ||
| )} | ||
| </PressableWithFeedback> | ||
| ); | ||
| } | ||
|
|
||
| export default ExpandCollapseArrowButton; |
25 changes: 25 additions & 0 deletions
25
src/components/SelectionListWithSections/Search/ExpensesCell.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import React from 'react'; | ||
| import TextWithTooltip from '@components/TextWithTooltip'; | ||
| import useThemeStyles from '@hooks/useThemeStyles'; | ||
|
|
||
| type ExpensesDataCellProps = { | ||
| count: number; | ||
|
|
||
| shouldShowTooltip?: boolean; | ||
| }; | ||
|
|
||
| function ExpensesDataCell({count, shouldShowTooltip = true}: ExpensesDataCellProps) { | ||
| const styles = useThemeStyles(); | ||
|
|
||
| return ( | ||
| <TextWithTooltip | ||
| shouldShowTooltip={shouldShowTooltip} | ||
| text={String(count)} | ||
| style={[styles.optionDisplayName, styles.lineHeightLarge, styles.pre]} | ||
| /> | ||
| ); | ||
| } | ||
|
|
||
| ExpensesDataCell.displayName = 'ExpensesDataCell'; | ||
|
|
||
| export default ExpensesDataCell; | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should just reuse TextCell here, since this is just a string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luacmartins Addressing this in