open-vault/ui/app/templates/components/clients/usage-stats.hbs
claire bontempo 34630f6557
UI/Add CSV export, update history and current tabs (#13812)
* add timestamp to attribution

* create usage stat component

* updates stat text boxes

* remove flex-header css

* remove comment

* add empty state if no data

* update monthly serializer

* remove empty state - unnecessary

* change tab to 'history'

* add usage stats to history view

* change css styling for upcased grey subtitle

* correctly exports namespace and auth data

* close modal on download

* test making a service?

* fix monthly attrs

* update csv content format

* remove component and make downloadCsv a service

* update function name

* wip//add warning labels, fixing up current and history tabs

* wip//clean up serializer fix with real data

* fix link styling:

* add conditionals for no data, add warning for 1.9 counting changes

* naming comment

* fix tooltip formatting

* fix number format and consolidate actions

* remove outdated test

* add revokeObjectURL and rename variable

* fix errors and empty state views when no activity data at all

* fix end time error

* fix comment

* return truncating to serializer

* PR review cleanup

* return new object
2022-02-02 11:46:59 -08:00

42 lines
1.4 KiB
Handlebars
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="chart-wrapper">
<div class="chart-header has-header-link has-bottom-margin-m">
<div class="header-left">
<h2 class="chart-title">{{@title}}</h2>
<p class="chart-description"> These totals are within this namespace and all its children. </p>
</div>
<div class="header-right">
<LearnLink @path="/tutorials/vault/usage-metrics">
Learn more
</LearnLink>
</div>
</div>
<div class="columns">
<div class="column" data-test-client-count-stats>
<StatText
@label="Total clients"
@value={{or @totalUsageCounts.clients "0"}}
@size="l"
@subText="The sum of entity clientIDs and non-entity clientIDs; this is Vaults primary billing metric."
/>
</div>
<div class="column">
<StatText
class="column"
@label="Entity clients"
@value={{or @totalUsageCounts.entity_clients "0"}}
@size="l"
@subText="Representations of a particular user, client, or application that created a token via login."
/>
</div>
<div class="column">
<StatText
class="column"
@label="Non-entity clients"
@value={{or @totalUsageCounts.non_entity_clients "0"}}
@size="l"
@subText="Clients created with a shared set of permissions, but not associated with an entity. "
/>
</div>
</div>
</div>