-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Feat: Delete workspace with card feed or expensify card #50152
Feat: Delete workspace with card feed or expensify card #50152
Conversation
bump @ntdiary 🙇♂️ |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-06.at.12.51.13.AM.movAndroid: mWeb ChromeWhatsApp.Video.2024-10-06.at.1.00.22.AM.mp4iOS: NativeScreen.Recording.2024-10-06.at.12.37.33.AM.moviOS: mWeb SafariScreen.Recording.2024-10-06.at.12.08.03.AM.movMacOS: Chrome / SafariScreen.Recording.2024-10-05.at.11.33.05.PM.movMacOS: DesktopScreen.Recording.2024-10-06.at.1.07.36.AM.mov |
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.
Only pending translation conifrmation, rest LGTM!
We did not find an internal engineer to review this PR, trying to assign a random engineer to #49938 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
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.
Translation needs to be adjusted, other than that LGTM
@ishpaul777 Do we have any blockers here? |
We were discussing this suggestion #50152 (comment) |
@waterim merge main when you get chance |
…ce-with-card-feed
Updated |
✋ 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/lakchote in version: 9.0.48-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.48-2 🚀
|
const workspaceAccountID = PolicyUtils.getWorkspaceAccountID(policyIDToDelete ?? '-1'); | ||
const [cardFeeds] = useOnyx(`${ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_DOMAIN_MEMBER}${workspaceAccountID}`); | ||
const [cardsList] = useOnyx(`${ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST}${workspaceAccountID}_${CONST.EXPENSIFY_CARD.BANK}`); | ||
const hasCardFeedOrExpensifyCard = !isEmptyObject(cardFeeds) || !isEmptyObject(cardsList); |
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 also need to consider cardsEnabled value, bcoz card details will be available only after opening the cards page. This missing check caused issue #50671
Details
Fixed Issues
$ #49938
PROPOSAL: N/A
Tests
Offline tests
Same as tests
QA Steps
None
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web, with card feed
Web, without card feed