fix: remove link if card is deactivated#50720
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2024-10-15_13.45.00.mp4Android: mWeb Chromeandroid-chrome-2024-10-15_13.49.32.mp4iOS: Nativeios-app-2024-10-15_14.14.17.mp4iOS: mWeb Safariios-safari-2024-10-15_14.15.29.mp4MacOS: Chrome / Safaridesktop-chrome-2024-10-15_13.23.00.mp4MacOS: Desktopdesktop-app-2024-10-15_13.26.05.mp4 |
|
@truph01 Can you update the |
|
@jjcoffee I updated |
|
|
I think it is BE issue. With the fresh sign-in, the card data is not available for each workspace until we visit the workspace card page. cc @mountiny |
|
This is probably more of a polish issue but on refresh the card link initially doesn't show for a brief period: desktop-chrome-polish-2024-10-15_13.39.44.mp4 |
|
Ah I see that this card shows up under Workspace->Expensify Cards, so it must be a BE issue. |
|
@truph01, can you please resolve merge conflicts? |
|
@mountiny When copying the issue card action, should we:
Currently, we are using the 2nd option. But it can lead to the copy being different when the card is deactivated or not, so I prefer the 1st. What do you think? cc @jjcoffee |
|
@truph01 I think we should just do the same we do when there is a link in a normal message. So whatever we format it then |
|
I am working on fixing this part:
|
| const [user] = useOnyx(ONYXKEYS.USER); | ||
| const policyID = ReportUtils.getReport(reportID)?.policyID; | ||
| const workspaceAccountID = PolicyUtils.getWorkspaceAccountID(policyID ?? '-1'); | ||
| const [cardList = {}] = useOnyx(ONYXKEYS.CARD_LIST); |
There was a problem hiding this comment.
I think it might be cleaner to call this something like userCardList to dsitinguish it more clearly from the admin cards
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Not an emergency, the tests were passing, some race condition |
|
✋ 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/mountiny in version: 9.0.53-0 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.53-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.53-1 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.53-1 🚀
|
Details
Fixed Issues
$ #50375
PROPOSAL:
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
output.mp4
Android: mWeb Chrome
output.mp4
iOS: Native
output.mp4
iOS: mWeb Safari
output.mp4
MacOS: Chrome / Safari
output.mp4
MacOS: Desktop
output.mp4