-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add delete btn to workspace profile page #37528
Conversation
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
@aimane-chnaif I have added screenshots, PR ready for review. |
BUG: wrong status bar background after deleting workspace on mobile safari msafari.mov |
@aimane-chnaif The status bar issue occurs in the Modal component. I have added checked for isSmallScreenWidth to correct the background on mobile safari. |
src/components/Modal/index.tsx
Outdated
@@ -32,7 +33,7 @@ function Modal({fullscreen = true, onModalHide = () => {}, type, onModalShow = ( | |||
if (statusBarColor) { | |||
setPreviousStatusBarColor(statusBarColor); | |||
// If it is a full screen modal then match it with appBG, otherwise we use the backdrop color | |||
setStatusBarColor(isFullScreenModal ? theme.appBG : StyleUtils.getThemeBackgroundColor(statusBarColor)); | |||
setStatusBarColor(isFullScreenModal || isSmallScreenWidth ? theme.appBG : StyleUtils.getThemeBackgroundColor(statusBarColor)); |
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.
This is not safe fix. Please revert it. I suggest this out of scope as happening in other places on production. But let's create separate GH for tracking and fix.
Bug to report is here: #37528 (comment)
cc: @mountiny
Screen.Recording.2024-03-06.at.11.24.12.PM.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.
revert all changes in this component
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.
@aimane-chnaif I have reverted the Modal component.
src/components/Modal/index.tsx
Outdated
@@ -10,7 +10,6 @@ function Modal({fullscreen = true, onModalHide = () => {}, type, onModalShow = ( | |||
const theme = useTheme(); | |||
const StyleUtils = useStyleUtils(); | |||
const [previousStatusBarColor, setPreviousStatusBarColor] = useState<string>(); | |||
|
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.
Also this
After changes, make sure to check diff in https://github.com/Expensify/App/pull/37528/files. |
@dannymcclain you got assigned to the linked issue, could you please check this implementation is fine? I can see that the buttons do not have icons as in the screens in the linked issue. @aimane-chnaif @jsdev2547 could you add the share buttons and bin icons to the Share and Delete buttons in this PR please? |
It's already separate issue - #37089 and not priority |
thanks, noted there |
Thanks for tagging me @mountiny! It looks great and is working exactly how I would expect it to. 👍 |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
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.
seems good, waiting for the reviewer checklist
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
Thanks! |
@jsdev2547 the testing/ QA steps are missing in the PR body, that needs to be included in each PR unless there is nothing to test |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@mountiny I have added the testing steps. |
@jsdev2547 not sure if I understand the steps, how can you invite user to a workpace that was deleted? |
@mountiny I meant the delete button should not display to the user who is invited to the workspace. |
@jsdev2547 can you swap the steps then? and highlight the invited user is non-admin |
@mountiny I have highlighted the invited user is non-admin. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.49-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.50-5 🚀
|
Details
Fixed Issues
$ #35855
PROPOSAL: #35855 (comment)
Tests
Admin
Non-Admin
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 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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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.webm
Android: mWeb Chrome
android.web.webm
iOS: Native
ios.native.webm
iOS: mWeb Safari
ios.web.webm
MacOS: Chrome / Safari
web.webm
MacOS: Desktop
desktop.webm