-
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
fix base url not showing for leave messages + minor refactoring #35525
Conversation
and refactor this function so this doesn't happen again and so this function is more readable
@alitoshmatov 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] |
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.
minor NAB stuff
@@ -39,6 +39,8 @@ type MemberChangeMessageRoomReferenceElement = { | |||
|
|||
type MemberChangeMessageElement = MessageTextElement | MemberChangeMessageUserMentionElement | MemberChangeMessageRoomReferenceElement; | |||
|
|||
const policyChangeActionsSet = new Set<string>(Object.values(CONST.REPORT.ACTIONS.TYPE.POLICYCHANGELOG)); |
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.
NAB: I don't really think this needs to be a const, why don't we just use new Set<string>(Object.values(CONST.REPORT.ACTIONS.TYPE.POLICYCHANGELOG))
directly?
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.
See this thread: #35525 (comment).
I don't think we need the PR reviewer checklist here. I'm still learning when this is and isn't needed, seems like we use it for pretty much every contributor PR and for some Expensify employee created PRs depending on the situation. If anyone thinks this is bad judgement please let me know so that I can learn how and when we think the PR checklist should be applied. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
No worries @blimpich. My understanding is that we should use it for every PR. Next time, I'd recommend one of these actions:
|
Sounds good! Thank you for the tips Marc! I will make sure to follow that going forward 🙂 |
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.36-5 🚀
|
Details
This change makes it so that any policychangelog actions will be correctly processed to include the
%baseUrl
in their messages, including the leave room action. Additionally I refactored the function to be more concise, and to automatically add new policy change actions in the future.cc: @jasperhuangg
Fixed Issues
$ #35475
PROPOSAL: n/a
Tests
Offline tests
QA Steps
Same as test.
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop