-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI/ Client counts range (running total component) (#13477)
* grid for stacked charts * pass in data as arg from parent * pull out vertical bar chart component * refactor to use vertical bar chart component * remove any chart handling stuff from parent * rename variables * refactor horizontal bar chart into separate component * move descriptions to inside template (not passed in) * constructs attribution copy * add sample response to mirage config * change indenting * rename to MonthlyUsage * change name to running totals * rename variable * finishes line chart * pull constants to util * cleanup add todos * fix formatNumbers return" * comments and cleanup * adds tooltip to line chart * make cover area larger * fixes tooltip styling * adds tooltip styling" * adds tooltip modal to horizontal chart * finishes tooltip for horizontal chart * remove click event arg
- Loading branch information
1 parent
f658c80
commit aeedf70
Showing
19 changed files
with
864 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
// TODO: fill out below!! | ||
/** | ||
* @module Attribution | ||
* Attribution components are used to... | ||
* | ||
* @example | ||
* ```js | ||
* <Attribution @requiredParam={requiredParam} @optionalParam={optionalParam} @param1={{param1}}> | ||
* Pass in export button | ||
* </Attribution> | ||
* ``` | ||
* @param {object} requiredParam - requiredParam is... | ||
* @param {string} [optionalParam] - optionalParam is... | ||
* @param {string} [param1=defaultValue] - param1 is... | ||
*/ | ||
|
||
export default class Attribution extends Component { | ||
get dateRange() { | ||
// some conditional that returns "date range" or "month" depending on what the params are | ||
return 'date range'; | ||
} | ||
|
||
get chartText() { | ||
// something that determines if data is by namespace or by auth method | ||
// and returns text | ||
// if byNamespace | ||
return { | ||
description: | ||
'This data shows the top ten namespaces by client count and can be used to understand where clients are originating. Namespaces are identified by path. To see all namespaces, export this data.', | ||
newCopy: `The new clients in the namespace for this ${this.dateRange}. | ||
This aids in understanding which namespaces create and use new clients | ||
${this.dateRange === 'date range' ? ' over time.' : '.'}`, | ||
totalCopy: `The total clients in the namespace for this ${this.dateRange}. This number is useful for identifying overall usage volume.`, | ||
}; | ||
// if byAuthMethod | ||
// return | ||
// byAuthMethod = { | ||
// description: "This data shows the top ten authentication methods by client count within this namespace, and can be used to understand where new clients and total clients are originating. Authentication methods are organized by path.", | ||
// newCopy: `The new clients used by the auth method for this {{@range}}. This aids in understanding which auth methods create and use new clients ${this.dateRange === "date range" ? " over time." : "."}`, | ||
// totalCopy: `The total clients used by the auth method for this ${this.dateRange}. This number is useful for identifying overall usage volume. ` | ||
// } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.