-
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.
Some small suggestions made. Let me know if you have any questions.
components/announcement_bar/configuration_bar/configuration_bar.jsx
Outdated
Show resolved
Hide resolved
components/announcement_bar/configuration_bar/configuration_bar.jsx
Outdated
Show resolved
Hide resolved
components/announcement_bar/configuration_bar/configuration_bar.jsx
Outdated
Show resolved
Hide resolved
components/announcement_bar/configuration_bar/configuration_bar.jsx
Outdated
Show resolved
Hide resolved
components/announcement_bar/configuration_bar/configuration_bar.jsx
Outdated
Show resolved
Hide resolved
@jasonblais Tag you for review as requested |
/> | ||
<FormattedMessage | ||
id={'announcement_bar.warn_metric_status_ack.text'} | ||
defaultMessage={'Thank you for contacting Mattermost. We will follow up with you soon.'} |
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.
We're not going to mention that they're going to need to install a different instance? What's up with that?
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'll defer to @esadur and @jasonblais on this, they review the texts.
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.
@mkraft, I'm not sure I understand the concern, can you elaborate a bit?
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.
We are linking to documentation in almost all cases so that they can explore the feature and determine if it would be valuable to them. I would rather lead with the value of the features in question so they can make that determination for themselves.
/> | ||
<FormattedMarkdownMessage | ||
id={t('announcement_bar.error.number_active_users_warn_metric_status.text')} | ||
defaultMessage={'You now have over {limit} users. We strongly recommend using advanced features for large-scale servers.'} |
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.
Users are more likely to take action if you tell them exactly what you want them to do and why. This is so vague we're making them interpret it for themselves and it's not clear what we're asking of them.
/> | ||
<FormattedMarkdownMessage | ||
id={t('announcement_bar.number_of_posts_warn_metric_status.text')} | ||
defaultMessage={'You now have over {limit} posts. We strongly recommend using advanced features for large-scale servers.'} |
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.
Same here.
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 improvements. Just some syntax stuff and the typescript optional operator (I believe we should use it due to our move to typescript and it makes sense I feel).
render() { | ||
const isE0Edition = (this.props.enterpriseReady && this.props.license && this.props.license.IsLicensed === 'false'); |
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 don't see why we can't take advantage of optional chaining regardless of the pattern? I noticed we are using license?.
in other parts of code too? I'm not sure what pattern you are actually referring too.
I thought we were moving towards using optional chaining with the move towards typescript anyways.
@@ -176,9 +211,13 @@ class ConfigurationAnnouncementBar extends React.PureComponent { | |||
/> | |||
); | |||
} | |||
if (this.props.license.IsLicensed === 'false' && this.props.warnMetricsStatus) { | |||
if (this.props.license && | |||
this.props.license.IsLicensed === 'false' && |
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 above comment
components/announcement_bar/configuration_bar/configuration_bar.jsx
Outdated
Show resolved
Hide resolved
components/announcement_bar/configuration_bar/configuration_bar.jsx
Outdated
Show resolved
Hide resolved
components/announcement_bar/configuration_bar/configuration_bar.jsx
Outdated
Show resolved
Hide resolved
components/announcement_bar/configuration_bar/configuration_bar.jsx
Outdated
Show resolved
Hide resolved
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.
LGTM! Thanks for the fixes. I still feel we should use the optional chaining for typescript however if you feel it's better not, then we can leave it. Maybe @mkraft can give his opinion if he has any otherwise no more changes I can see that need to be made.
Edit Maybe just update redux hash to get your build passing
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.
Tested the updated PR along with it's dependent PRs and all the issues are now fixed and are working fine. Approving the PR.
@mkraft Kind note to review for v5.28. |
Cherry pick is scheduled. |
(cherry picked from commit 3b866f3)
…o MM-20457 * 'master' of github.com:Tak-Iwamoto/mattermost-webapp: [MM-28680] fix blank page on undefined message (mattermost#6450) MM-28733 : Admin Advisor v2 (mattermost#6461) MM 20547 user settings security ts (mattermost#6216) MM-20904 Add E2E tests for custom categories (mattermost#5981) Update NOTICE.txt (mattermost#6550) Check if emojiMap is undefined before invoking method for it (mattermost#6495) [MM-28151] Cypress/E2E: Automate backlogs - System Console > User Password (mattermost#6538) [MM-28295] e2e/messaging/reactions: add reactions spec (mattermost#6535) [MM-28706] revert ordering change for `in:` auto-suggest search results (mattermost#6493) Remove usage of t function with useIntl (mattermost#6552) MM-28992 Remove unused notPresent and mustBePresent props from MultiSelectSetting (mattermost#6544) MM-27530 Fix for Multiselect items not scrolling into view on arrow keys (mattermost#6286) Demoting failed test from prod (mattermost#6534) migrate show_more to typescript (mattermost#6501) [MM-28878] Revert style change to remove next steps arrow (mattermost#6527) [MM-28972] Added 'Always On' option for new sidebar (mattermost#6530) MM-28839 Fix for hover of cursor on indicators (mattermost#6524) [MM-28790] allow plugins to open in a different tab (mattermost#6476) MM-28290 Always update team member unread counts when added to a channel (mattermost#6500)
…o MM-20462 * 'master' of github.com:Tak-Iwamoto/mattermost-webapp: fix getType is not a function (mattermost#6566) MM-29028 Remove findDOMNode from Slack import (mattermost#6554) MM-28997 Remove references to old context API (mattermost#6545) Add custom slash command tests (mattermost#6391) Cypress/E2E: Fix guest experience ui spec (mattermost#6563) [MM-28784] Migrate string refs to functional ones (mattermost#6494) [MM-28680] fix blank page on undefined message (mattermost#6450) MM-28733 : Admin Advisor v2 (mattermost#6461) MM 20547 user settings security ts (mattermost#6216) MM-20904 Add E2E tests for custom categories (mattermost#5981) Update NOTICE.txt (mattermost#6550) Check if emojiMap is undefined before invoking method for it (mattermost#6495) [MM-28151] Cypress/E2E: Automate backlogs - System Console > User Password (mattermost#6538) [MM-28295] e2e/messaging/reactions: add reactions spec (mattermost#6535) [MM-28706] revert ordering change for `in:` auto-suggest search results (mattermost#6493) Remove usage of t function with useIntl (mattermost#6552) MM-28992 Remove unused notPresent and mustBePresent props from MultiSelectSetting (mattermost#6544) MM-27530 Fix for Multiselect items not scrolling into view on arrow keys (mattermost#6286) Demoting failed test from prod (mattermost#6534)
Summary
Admin Advisor v2.
Ticket Link
https://mattermost.atlassian.net/browse/MM-28733
Related Pull Requests
server: https://github.com/mattermost/mattermost-server/pull/15515/files