-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Simplified Actions on Report Header and Preview V2 #59999
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
luacmartins
merged 68 commits into
Expensify:main
from
software-mansion-labs:jnowakow/simplified-actions-on-header-v2
Apr 24, 2025
+3,592
−849
Merged
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
5326a6f
Add report preview actions to new preview component
jnowakow 6ca8a5f
Fix several blockers after PR-58084
jnowakow 357308a
Merge branch 'main' of github.com:Expensify/App into jnowakow/blocker…
jnowakow d2be1d5
fix test
jnowakow 6a890dc
Further fixes
jnowakow c36fc9d
Revert "revert 58084"
jnowakow ba3eb29
fix 'Download as PDF' option is shown for DM thread
SzymczakJ 228fc50
fix No warning is shown when unapproving an expense that has been exp…
SzymczakJ 59cca89
fix "Pay with Expensify" button extends out of screen
SzymczakJ 6064c5b
fix empty green button on the expense preview when scanning
SzymczakJ 21ee95f
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow 515d557
Merge branch 'jnowakow/blockers-after-58084' into jnowakow/simplified…
jnowakow d9fa312
fix unnecessary delete option
sumo-slonik 27d9378
fix 59904
jnowakow 8e1f56e
add additional violation check to report previews
SzymczakJ c2a0b2a
fix 59909
jnowakow a3c084a
fix 59880
borys3kk 6dff03e
Fix 59916
jnowakow 86e9a9d
Merge branch 'jnowakow/simplified-actions-on-header-v2' into borys3kk…
borys3kk e971067
Merge branch 'main' into jnowakow/simplified-actions-on-header-v2
jnowakow 97321d9
Fix 59928
jnowakow a6ada46
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow e5d8000
Merge branch 'jnowakow/actions-on-new-preview-component' into jnowako…
jnowakow ec27757
fix unissued bug
borys3kk 5df34d7
Fix linter, prettier and tests
jnowakow 450817a
Fix prettier 2
jnowakow 6118cd4
Merge pull request #221 from software-mansion-labs/bugfix/kuba_nowako…
sumo-slonik 049eb51
Fix checks
jnowakow 2cd657b
merge commit
SzymczakJ 5f1713c
fix "Review" button is still displayed for admin and employee after e…
SzymczakJ ab14e9b
clean up code
SzymczakJ 0376896
Merge pull request #222 from software-mansion-labs/@szymczak/fixes-fo…
jnowakow 54e7525
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow 1d5af08
fix 59910
borys3kk 7af5b9b
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow 5e26bd9
Merge branch 'jnowakow/simplified-actions-on-header-v2' of github.com…
jnowakow e4e8593
Merge branch 'jnowakow/simplified-actions-on-header-v2' into borys3kk…
borys3kk 4d5e127
Merge pull request #223 from software-mansion-labs/borys3kk-fix-58084…
jnowakow 5396aed
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow 1c44254
fix 59899
jnowakow 171d21e
fix 59900
jnowakow f1044b5
Don't show submit for report with empty transaction
jnowakow c92d300
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow e726f2c
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow e79d438
Merge branch 'main' into jnowakow/simplified-actions-on-header-v2
jnowakow c940be8
Update condition to check if message was exported and improve preview…
jnowakow 8361f6e
Check if receipt is being scanned before allowing to submit
jnowakow 78eb183
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow 04805a3
fix 59999\#issuecomment-2814714079
jnowakow 611d96e
fix 59999\#issuecomment-2814854160
jnowakow 390d1db
fix 59999\#issuecomment-2814873758
jnowakow b7832ee
fix 59999\#issuecomment-2814939366
jnowakow 2e39ba8
fix 59999\#issuecomment-2815075448
jnowakow 0ab9d7c
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow 172a0f9
Hide new logic behind beta
jnowakow 724a2f0
fix tests
jnowakow 17a6bb1
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow ae9a729
fix typecheck
jnowakow 67e9a4a
fix prettier
jnowakow a8e8b2a
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow ad97b7c
Check beta on ReportDetailsPage
jnowakow 4428dfa
make tests deterministic
jnowakow cb19ab8
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow 6f9eca2
Do not remove option to export csv from details page
jnowakow 3be336a
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow 7311c4a
fix ts
jnowakow d12b67e
Merge branch 'main' of github.com:Expensify/App into jnowakow/simplif…
jnowakow 44e1cad
after merge
jnowakow 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
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 |
|---|---|---|
|
|
@@ -30,7 +30,6 @@ | |
| import type {Policy, Report} from '@src/types/onyx'; | ||
| import type {Icon} from '@src/types/onyx/OnyxCommon'; | ||
| import {getButtonRole} from './Button/utils'; | ||
| import CaretWrapper from './CaretWrapper'; | ||
| import DisplayNames from './DisplayNames'; | ||
| import {FallbackAvatar} from './Icon/Expensicons'; | ||
| import MultipleAvatars from './MultipleAvatars'; | ||
|
|
@@ -64,15 +63,15 @@ | |
| }; | ||
|
|
||
| function AvatarWithDisplayName({policy, report, isAnonymous = false, size = CONST.AVATAR_SIZE.DEFAULT, shouldEnableDetailPageNavigation = false}: AvatarWithDisplayNameProps) { | ||
| const [parentReportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report?.parentReportID}`, {canEvict: false}); | ||
| const [personalDetails] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST) ?? CONST.EMPTY_OBJECT; | ||
|
|
||
| const theme = useTheme(); | ||
| const styles = useThemeStyles(); | ||
| const StyleUtils = useStyleUtils(); | ||
| const [parentReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${report?.parentReportID}`); | ||
| const [invoiceReceiverPolicy] = useOnyx( | ||
| `${ONYXKEYS.COLLECTION.POLICY}${parentReport?.invoiceReceiver && 'policyID' in parentReport.invoiceReceiver ? parentReport.invoiceReceiver.policyID : CONST.DEFAULT_NUMBER_ID}`, | ||
|
Check failure on line 74 in src/components/AvatarWithDisplayName.tsx
|
||
| ); | ||
| const title = getReportName(report, undefined, undefined, undefined, invoiceReceiverPolicy); | ||
| const subtitle = getChatRoomSubtitle(report, {isCreateExpenseFlow: true}); | ||
|
|
@@ -155,16 +154,14 @@ | |
| </View> | ||
| </PressableWithoutFeedback> | ||
| <View style={[styles.flex1, styles.flexColumn]}> | ||
| <CaretWrapper> | ||
| <DisplayNames | ||
| fullTitle={title} | ||
| displayNamesWithTooltips={displayNamesWithTooltips} | ||
| tooltipEnabled | ||
| numberOfLines={1} | ||
| textStyles={[isAnonymous ? styles.headerAnonymousFooter : styles.headerText, styles.pre]} | ||
| shouldUseFullTitle={isMoneyRequestOrReport || isAnonymous} | ||
| /> | ||
| </CaretWrapper> | ||
| <DisplayNames | ||
| fullTitle={title} | ||
| displayNamesWithTooltips={displayNamesWithTooltips} | ||
| tooltipEnabled | ||
| numberOfLines={1} | ||
| textStyles={[isAnonymous ? styles.headerAnonymousFooter : styles.headerText, styles.pre]} | ||
| shouldUseFullTitle={isMoneyRequestOrReport || isAnonymous} | ||
| /> | ||
| {Object.keys(parentNavigationSubtitleData).length > 0 && ( | ||
| <ParentNavigationSubtitle | ||
| parentNavigationSubtitleData={parentNavigationSubtitleData} | ||
|
|
||
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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.
We should have just called the
onBackButtonPressfunction here. This redirection logic caused #62075 later on.