-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Conversation
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.
I looked and thought about the doubts you've raised and I honestly think it's okay to leave it as it is. Thank you for bringing them up and after thinking over them, I feel that what you've done is okay and there is no need for any changes. Thanks again!
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.
Looks great! Thanks for the contribution.
/update-branch |
Hello @gabrieljackson or @hanzei |
@srkgupta This PR affects the System Notice, which contains messages like https://github.com/vanya829/mattermost-webapp/blob/e8fd6355be72eba359829244c1d67df5e9bf0ffd/components/system_notice/notices.tsx#L93. |
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.
Test server destroyed |
/update-branch |
Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour. |
Trying to auto merge this PR. |
Pull Request successfully merged |
Summary
Moved system notice component to Typescript.
Not all props we inline with their definitions, so I was forced to use
any
definition it a few places:show
method in notice type optional, because it missing in one of the notice lists in the testsconfig
param insideshow
method should bePartial<ClientConfig>
based on selectors' definition, but it expectsInstallationDate
that is not a part of this type. That is why it'sany
license
param insideshow
method should beClientLicense
based on selectors' definition, but it expectsIsLicensed
that is not a part of this type. That is why it'sany
dismissedNotices
prop inSystemNotice
component should beboolean
based on selectors definition, but in component, it's used as an object with boolean props.Ticket Link
Fixes mattermost/mattermost#13477