summaryrefslogtreecommitdiffstats
path: root/webapp/components/analytics
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-01-20 15:24:53 -0500
committerenahum <nahumhbl@gmail.com>2017-01-20 17:24:53 -0300
commit11a688d3813646aeb97f58b61c083b019da66cfc (patch)
tree2d1c7085837505fb49ecba4dd49c8a34b0a5888c /webapp/components/analytics
parent66dddbdb7895a87e858f9238e546cedc6e05e34e (diff)
downloadchat-11a688d3813646aeb97f58b61c083b019da66cfc.tar.gz
chat-11a688d3813646aeb97f58b61c083b019da66cfc.tar.bz2
chat-11a688d3813646aeb97f58b61c083b019da66cfc.zip
Adding active users statistics to system console (#5141)
Diffstat (limited to 'webapp/components/analytics')
-rw-r--r--webapp/components/analytics/system_analytics.jsx34
1 files changed, 34 insertions, 0 deletions
diff --git a/webapp/components/analytics/system_analytics.jsx b/webapp/components/analytics/system_analytics.jsx
index dd7b90260..89cc98f0b 100644
--- a/webapp/components/analytics/system_analytics.jsx
+++ b/webapp/components/analytics/system_analytics.jsx
@@ -358,6 +358,32 @@ class SystemAnalytics extends React.Component {
/>
);
+ const dailyActiveUsers = (
+ <StatisticCount
+ title={
+ <FormattedMessage
+ id='analytics.system.dailyActiveUsers'
+ defaultMessage='Daily Active Users'
+ />
+ }
+ icon='fa-users'
+ count={stats[StatTypes.DAILY_ACTIVE_USERS]}
+ />
+ );
+
+ const monthlyActiveUsers = (
+ <StatisticCount
+ title={
+ <FormattedMessage
+ id='analytics.system.monthlyActiveUsers'
+ defaultMessage='Monthly Active Users'
+ />
+ }
+ icon='fa-users'
+ count={stats[StatTypes.MONTHLY_ACTIVE_USERS]}
+ />
+ );
+
let firstRow;
let secondRow;
if (isLicensed && skippedIntensiveQueries) {
@@ -406,6 +432,13 @@ class SystemAnalytics extends React.Component {
);
}
+ const thirdRow = (
+ <div className='row'>
+ {dailyActiveUsers}
+ {monthlyActiveUsers}
+ </div>
+ );
+
return (
<div className='wrapper--fixed team_statistics'>
<h3>
@@ -417,6 +450,7 @@ class SystemAnalytics extends React.Component {
{banner}
{firstRow}
{secondRow}
+ {thirdRow}
{advancedStats}
{advancedGraphs}
{postTotalGraph}