move message "admins only can post" from welcome message to footer#41199
move message "admins only can post" from welcome message to footer#41199robertjchen merged 13 commits intoExpensify:mainfrom
Conversation
|
@rushatgabhane 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] |
|
Looks correct to me. Small suggestion: what if we use the light bulb icon here instead of the exclamation point? It's just a little less scary/negative. I don't feel strongly though, thoughts @Expensify/design? |
100% agree. I think we should go lightbulb for this one. |
|
In the PR testing for this, can someone test a public room where an anon user can't post until they sign-in, and make sure the report footer doesn't get replaced by this message intended for "admin only" user-created rooms? Thanks! |
|
+3 for the lightbulb. Good to see all these messages getting consolidated 👍 |
|
@ahmedGaber93 could you please use lightbulb icon |
|
@rushatgabhane Yes, I will use lightbulb icon, and push the commit in the next 3 hours. |
# Conflicts: # src/pages/home/report/ReportFooter.tsx
@trjExpensify Good catch 👍, fixed. |
|
|
|
All good! Let us know when new screenshots are available. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Desktop |
rushatgabhane
left a comment
There was a problem hiding this comment.
@ahmedGaber93 on iOS I can see an overflow. Could you please resolve it
|
Good catch. I think we would want that to spill over to a second line, with everything vertically centered in the box area. |
@rushatgabhane Yeah, I also face the same behavior in android, and mentioned it here #41199 (comment), but I think it is a Bug in Banner.tsx and need to handle separately. Banner.tsx text already broken to new line, but it always breaks out of the component border, see the below image. what do you think? |
# Conflicts: # src/components/ReportWelcomeText.tsx
|
@rushatgabhane bump here #41199 (comment) |
|
I agree, it's an unrelated bug. Opened an issue for it - #42373 I strongly think that we shouldn't merge this PR until the overflow issue is resolved tho |
|
@ahmedGaber93 it'd be great if you could post a fix for it on the issue |
|
@ahmedGaber93 could you please resolve conflicts in the meanwhile |
# Conflicts: # src/pages/home/ReportScreen.tsx # src/pages/home/report/ReportFooter.tsx
|
holding on #42398 |
|
@ahmedGaber93 please merge latest |
# Conflicts: # src/pages/home/report/ReportFooter.tsx
| {!isArchivedRoom && blockedFromChat && <BlockedReportFooter />} | ||
| {!isAnonymousUser && !canWriteInReport && isSystemChat && <SystemChatReportFooterMessage />} | ||
| {isAdminsOnlyPostingRoom && !isUserPolicyAdmin && !isArchivedRoom && !isAnonymousUser && !blockedFromChat && ( | ||
| <Banner |
There was a problem hiding this comment.
@rushatgabhane while merge I found we have a new feature now called blocked users in main branch which will display <BlockedReportFooter /> in the footer, so I add !blockedFromChat to this condition to prevent display both of them at the same time.
|
@robertjchen bump for merge this. |
|
✋ 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 production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|




Details
move message "admins only can post" from welcome message to report footer.
Fixed Issues
$ #39636
PROPOSAL: #39636 (comment)
Tests
Offline tests
N/A.
QA Steps
Same as "Tests".
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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
a.mov
Android: mWeb Chrome
aw.mov
iOS: Native
i.mov
iOS: mWeb Safari
iw.mov
MacOS: Chrome / Safari
w.mov
MacOS: Desktop
d.mov