-
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
Allow Welcome Message on Room Creation #27836
Conversation
Just a note that I think we want |
@abdulrahuman5196 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] |
@eVoloshchak 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] |
accessibilityLabel={translate('welcomeMessagePage.welcomeMessage')} | ||
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT} | ||
autoGrowHeight | ||
placeholder={translate('welcomeMessagePage.welcomeMessage')} |
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.
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.
whoops, not sure where that came from
<View style={[styles.mb5]}> | ||
<TextInput | ||
inputID="welcomeMessage" | ||
label={translate('welcomeMessagePage.welcomeMessage')} |
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.
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.
yeah makes sense to me
Besides the two small comments above everything else looks good. I can't test the actual functionality of this until BE change is deployed, but all the FE changes work as expected |
@eVoloshchak BE change is on staging now so you should be able to test! Will review your feedback in a couple mins but wanted to call that out. |
Updated! |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-09-29.at.16.46.43.movMobile Web - Chromescreen-20230929-165144.mp4Mobile Web - SafariRPReplay_Final1695999686.MP4DesktopScreen.Recording.2023-09-29.at.17.02.13.moviOSRPReplay_Final1696000840.MP4Androidscreen-20230929-165848.mp4 |
Okay so I think I'm almost there. If you remove 2023-09-29_13-19-02.mp4 |
Okay good/bad - there's actually already an existing bug with this weird space. If you have a long list of contacts on the What do you think @eVoloshchak cc @MitchExpensify |
Okay confirmed in Slack - we're going to move forward and handle that padding bug separately (reported here). Let us know if you can do a final review with that in mind, @eVoloshchak - thank you! |
Found another bug, this is the last one:
Screen.Recording.2023-09-29.at.11.05.20.movcc: @dangrous |
Can you double check that that doesn't happen on staging? I'm not 100% sure it's a bug - like, it's silly to do so, but I guess there's no reason you can't create a room you can't post in - but maybe we should revert the writeCapability back to the default if isPolicyAdmin is false for the selected policy? |
Ah, it doesn't. Will fix! |
Updated - should work now! Grabs the value from state, and updates it if !isPolicyAdmin. I also fixed a console error that came from merging main (all ScreenWrappers need a testID) |
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.
Went through the checklist once more, LGTM
The re-rendering problem on iOS came back, but at this point I'm not sure if this is a legitimate bug or a problem with my ENV, since it's not reproducible by others and is not 100% reproducible by me, so approving.
We could fix this in a follow-up PR if QA will experience the same
@marcochavezf 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] |
🎯 @eVoloshchak, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #28503. |
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.
The code LGTM, waiting for @jasperhuangg if has some opinion about the "too many auth calls" alert. Or create a follow-up PR to add it to the whitelist and feel free to merge.
I'm gonna merge and create a quick followup issue for the Auth calls thing |
✋ 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 staging by https://github.com/dangrous in version: 1.3.78-0 🚀
|
[CP Staging] Revert "Merge pull request #27836 from Expensify/dangrous-roomwelcomemessages"
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.78-4 🚀
|
Details
You'll get the "too many auth calls" alert for this, due to the welcome message being added as an NVP. @jasperhuangg let me know how you want to handle this, whether we just add it to the list of exceptions, or if we need to somehow roll it into Auth. For local testing, please add the command to the list of exceptions otherwise you'll get an error when you try to create the room and won't be able to test. Staging server should be fine.
This also covers a bit of a refactor for the room creation page, using push-to-page selectors. Since we didn't really have a generic one of these before for use in forms, I created one. It takes a list of items (with values and labels) and will make them into one of these pop up selection modals. Handles display of the selected item, and offers an option for an initial placeholder (though you can't get back to it afterwards, which isn't an issue here since selections are required for all).
I'm not 100% confident on the name of the new component, so any suggestions are welcome.
Lastly, I also had to update the NewChatSelectorPage to include
withOnyx
because otherwise it wasn't actually able to access the betas prop, but now it works.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/316189
PROPOSAL: N/A
Tests
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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Uploading web.mp4…
Mobile Web - Chrome
I can't get this to login, on
main
either, so I'm forgoing this. Some combo of Bali + ngrok + cloudflare + etc. etc.. If you could double test this it would be appreciated!Mobile Web - Safari
mWebSafari.mp4
Desktop
desktop.mp4
iOS
ios.mp4
Android
This is coming! Taking forever to build so I wanted to get a head start.