-
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
hide hold for archived workspace #51008
base: main
Are you sure you want to change the base?
Conversation
The issue is fixed, but while testing on smaller devices, I noticed that even when the expense is from an archived workspace, the hold and delete options are still visible for a short time. That's why the dropdown still shows the hold and delete options when selecting an expense on the search page. They disappear after a while. Screen.Recording.2024-10-19.at.8.29.12.PM.mov |
@Nodebrute I got this on web as well. It seems like something recently changed in the backend , the expense is not archived when you delete the workspace : |
Started the conversation here |
@Gonals In this PR, we were supposed to hide the hold/delete options in search for expenses from archived workspaces. However, something recently changed, and these expenses are no longer marked as archived, which is allowing users to delete and hold them. Could you confirm the expected behavior? |
Asking around to see if this change was on purpose and what the expectations are |
It seems we stopped archiving them, but we were going to archive them again, so you may want to give it a try and see how it looks now |
I'm testing this again. |
Still the same |
Details
Fixed Issues
$ #50352
PROPOSAL: #50352 (comment)
Tests
Go to workspace chat
Submit an expense
Delete the workspace
Go to Search
Select the expense in Step 3 via checkbox
Click on the dropdown
Verify that there is no hold or delete option
Verify that no errors appear in the JS console
Offline tests
Same as above
QA Steps
Go to workspace chat
Submit an expense
Delete the workspace
Go to Search
Select the expense in Step 3 via checkbox
Click on the dropdown
Verify that there is no hold or delete option
Verify that no errors appear in the JS console
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop