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
| 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.
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.
revert all changes in this component
| const theme = useTheme(); | ||
| const StyleUtils = useStyleUtils(); | ||
| const [previousStatusBarColor, setPreviousStatusBarColor] = useState<string>(); | ||
|
|
|
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! 🧪🧪 |
mountiny
left a comment
There was a problem hiding this comment.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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 so 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
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