Skip to content

Commit

Permalink
[PLT-8273] Add banner to system console regarding team stats (matterm…
Browse files Browse the repository at this point in the history
…ost#436)

* [PLT-8273] Add banner to system console regarding team stats

* Add a second line break
  • Loading branch information
Ryan Wang authored and enahum committed Dec 14, 2017
1 parent 8292b1c commit 714476a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
16 changes: 13 additions & 3 deletions components/analytics/team_analytics/team_analytics.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,17 @@ export default class TeamAnalytics extends React.Component {
const postCountsDay = formatPostsPerDayData(stats[StatTypes.POST_PER_DAY]);
const userCountsWithPostsDay = formatUsersWithPostsPerDayData(stats[StatTypes.USERS_WITH_POSTS_PER_DAY]);

let banner;
let banner = (
<div className='banner'>
<div className='banner__content'>
<FormattedMessage
id='analytics.system.info'
defaultMessage='Only data for the chosen team is calculated. Excludes posts made in direct message channels, which are not tied to a team.'
/>
</div>
</div>
);

let totalPostsCount;
let postTotalGraph;
let userActiveGraph;
Expand All @@ -150,8 +160,8 @@ export default class TeamAnalytics extends React.Component {
<div className='banner'>
<div className='banner__content'>
<FormattedHTMLMessage
id='analytics.system.skippedIntensiveQueries'
defaultMessage="Some statistics have been omitted because they put too much load on the system to calculate. See <a href='https://docs.mattermost.com/administration/statistics.html' target='_blank'>https://docs.mattermost.com/administration/statistics.html</a> for more details."
id='analytics.system.infoAndSkippedIntensiveQueries'
defaultMessage="Only data for the chosen team is calculated. Excludes posts made in direct message channels, which are not tied to a team. <br><br> Some statistics have been omitted because they put too much load on the system to calculate. See <a href='https://docs.mattermost.com/administration/statistics.html' target='_blank'>https://docs.mattermost.com/administration/statistics.html</a> for more details."
/>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1149,11 +1149,12 @@
"analytics.system.activeUsers": "Active Users With Posts",
"analytics.system.channelTypes": "Channel Types",
"analytics.system.dailyActiveUsers": "Daily Active Users",
"analytics.system.info": "Only data for the chosen team is calculated. Excludes posts made in direct message channels, which are not tied to a team.",
"analytics.system.infoAndSkippedIntensiveQueries": "Only data for the chosen team is calculated. Excludes posts made in direct message channels, which are not tied to a team. <br><br> To maximize performance, some statistics are disabled. You can <a href='https://docs.mattermost.com/administration/statistics.html' target='_blank'>re-enable them in config.json</a>.",
"analytics.system.monthlyActiveUsers": "Monthly Active Users",
"analytics.system.postTypes": "Posts, Files and Hashtags",
"analytics.system.privateGroups": "Private Channels",
"analytics.system.publicChannels": "Public Channels",
"analytics.system.skippedIntensiveQueries": "To maximize performance, some statistics are disabled. You can <a href='https://docs.mattermost.com/administration/statistics.html' target='_blank'>re-enable them in config.json</a>.",
"analytics.system.textPosts": "Posts with Text-only",
"analytics.system.title": "System Statistics",
"analytics.system.totalChannels": "Total Channels",
Expand Down

0 comments on commit 714476a

Please sign in to comment.