-
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
move message "admins only can post" from welcome message to footer #41199
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 |
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.
@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
@@ -160,6 +177,14 @@ function ReportFooter({ | |||
{isArchivedRoom && <ArchivedReportFooter report={report} />} | |||
{!isArchivedRoom && blockedFromChat && <BlockedReportFooter />} | |||
{!isAnonymousUser && !canWriteInReport && isSystemChat && <SystemChatReportFooterMessage />} | |||
{isAdminsOnlyPostingRoom && !isUserPolicyAdmin && !isArchivedRoom && !isAnonymousUser && !blockedFromChat && ( | |||
<Banner |
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.
@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.
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.
nice catch!
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.
@robertjchen LGTM
@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 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
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