fix: disabled download button when downloading#44760
fix: disabled download button when downloading#44760madmax330 merged 9 commits intoExpensify:mainfrom
Conversation
|
@Expensify/design does this look good? 345698348-82a0143a-c7d8-446b-9ba9-549f17b80deb.mov |
|
I think that looks good to me! |
|
Yeah I like it! |
|
@situchan friendly bump |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid1.mp4android2.mp4Android: mWeb ChromeiOS: Nativeios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktop |
| const message = Array.isArray(reportAction?.message) ? reportAction?.message?.at(-1) ?? null : reportAction?.message ?? null; | ||
| const html = message?.html ?? ''; | ||
| const {sourceURL} = getAttachmentDetails(html); | ||
| const sourceID = (sourceURL?.match(CONST.REGEX.ATTACHMENT_ID) ?? [])[1]; |
There was a problem hiding this comment.
NAB: Can we make util for this?
- I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
|
Please pull main as 2k+ commits are behind |
|
@nkdengineer there's conflict |
| } | ||
|
|
||
| function getSourceIDFromReportAction(reportAction: OnyxEntry<ReportAction>): string { | ||
| const message = Array.isArray(reportAction?.message) ? reportAction?.message?.at(-1) ?? null : reportAction?.message ?? null; |
There was a problem hiding this comment.
There's still duplicated code in ContextMenuActions
App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx
Lines 40 to 43 in 3fd1644
App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx
Lines 518 to 521 in 3fd1644
There was a problem hiding this comment.
@situchan I think using the utils function in the onPress function does not bring much benefit because variables like originalFileName, sourceURL, sourceURLWithAuth, etc., are all reused below.
|
Please resolve conflict |
|
@situchan resolved, please check again |
|
Looks like there's conflicts to resolve |
|
@madmax330 resolved, please check again |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/madmax330 in version: 9.0.13-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.13-4 🚀
|
Details
Fixed Issues
$ #43546
PROPOSAL: #43546 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.mov
Android: mWeb Chrome
android.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov