999d243544
* alphabetize utils * add util to add namespace key * finish filtering * add fake data for filtering * address comments * add empty state for no new client counts, when filtered by namespace * fix mirage clients linting * re-add namespaces to month object * clean up filtering * add tests and refactor accordingly * fix tooltip bug and chart new month client chart not rendering * filter out undefined * optional method chaining * add filter and fix ticks for line chart * fix axes domains * fix average calculation
88 lines
3.2 KiB
Handlebars
88 lines
3.2 KiB
Handlebars
{{! TODO Add conditional, show charts if data available, otherwise show stat text boxes }}
|
|
<div class="chart-wrapper stacked-charts">
|
|
<div class="single-chart-grid">
|
|
<div class="chart-header has-bottom-margin-xl">
|
|
<h2 class="chart-title">Vault client counts</h2>
|
|
<p class="chart-description">
|
|
A client is any user or service that interacts with Vault. They are made up of entity clients and non-entity clients.
|
|
The total client count number is an important consideration for Vault billing.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="chart-container-wide">
|
|
<Clients::LineChart @dataset={{@lineChartData}} @upgradeData={{@upgradeData}} />
|
|
</div>
|
|
|
|
<div class="chart-subTitle">
|
|
<h2 class="chart-title">Running client total</h2>
|
|
<p class="chart-subtext">The number of clients which interacted with Vault during this date range. </p>
|
|
</div>
|
|
<div class="data-details-top">
|
|
<h3 class="data-details">Entity clients</h3>
|
|
<p class="data-details">
|
|
{{format-number this.entityClientData.runningTotal}}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="data-details-bottom">
|
|
<h3 class="data-details">Non-entity clients</h3>
|
|
<p class="data-details">
|
|
{{format-number this.nonEntityClientData.runningTotal}}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="legend-right">
|
|
<span class="light-dot"></span><span class="legend-label">{{capitalize @chartLegend.0.label}}</span>
|
|
<span class="dark-dot"></span><span class="legend-label">{{capitalize @chartLegend.1.label}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="single-chart-grid">
|
|
<div class={{concat (unless this.hasAverageNewClients "chart-empty-state ") "chart-container-wide"}}>
|
|
<Clients::VerticalBarChart
|
|
@dataset={{if this.hasAverageNewClients @barChartData false}}
|
|
@chartLegend={{@chartLegend}}
|
|
@noDataTitle="No new clients"
|
|
@noDataMessage={{concat
|
|
"There are no new clients for this "
|
|
(if @selectedAuthMethod "auth method" "namespace")
|
|
" in this date range"
|
|
}}
|
|
/>
|
|
</div>
|
|
|
|
<div class="chart-subTitle">
|
|
<h2 class="chart-title">New monthly clients</h2>
|
|
<p class="chart-subtext">
|
|
Clients which interacted with Vault for the first time during this date range, displayed per month.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="data-details-top">
|
|
<h3 class="data-details">Average new entity clients per month</h3>
|
|
<p class="data-details">
|
|
{{format-number this.entityClientData.averageNewClients}}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="data-details-bottom">
|
|
<h3 class="data-details">Average new non-entity clients per month</h3>
|
|
<p class="data-details">
|
|
{{format-number this.nonEntityClientData.averageNewClients}}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="timestamp">
|
|
{{#if @timestamp}}
|
|
Updated
|
|
{{date-format @timestamp "MMM d yyyy, h:mm:ss aaa"}}
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="legend-right">
|
|
<span class="light-dot"></span><span class="legend-label">{{capitalize @chartLegend.0.label}}</span>
|
|
<span class="dark-dot"></span><span class="legend-label">{{capitalize @chartLegend.1.label}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
</div> |