-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
fix: remove link if card is deactivated #50720
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. |
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.
@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:
|
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.
Thanks!
@@ -124,6 +125,10 @@ function BaseReportActionContextMenu({ | |||
const transactionID = ReportActionsUtils.getLinkedTransactionID(reportActionID, reportID); | |||
const [transaction] = useOnyx(`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`); | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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