9 Commits

Author SHA1 Message Date
Chelsea Shaw
61a3885eb6
UI: Fix client counts bug when no new clients (#27352) 2024-06-06 13:15:12 -05:00
claire bontempo
1e8eefade1
UI: wrap client count card in permission conditional (#26848)
* consistent timestamp format

* wrap client count card in permissions

* add test

* add changelog

* move tests into module, add more!

* final test cleanup, stub permissions manually without helper

* use current_billing_period for dashboard, add tests

* update mirage to handle new client param

* Update ui/app/components/dashboard/client-count-card.js
2024-05-07 17:45:42 +00:00
claire bontempo
b58084291e
install ember-sinon-qunit (#26807)
* install ember-sinon-qunit

* replace stubbed timestamps part 1

* replace clients/ timestamp stubs

* actually stub correctly

* oops got a little excited, these dont need replacing

* and revert client ones as well

* oh my gosh claire stop rushing

* there we go

* move timestamp stub to beforeEach

* more moves to beforeEach

* final CE test moves to beforeEach hook!

* use .replace and .fake instead of callsFake

* license-banner test

* remove remaining callsFake for consistency

* use the timestamp instead of separate date
2024-05-06 14:11:00 +00:00
claire bontempo
6d0e4f654e
UI: Update dashboard client count query to use billing_start_timestamp (#26729)
* remvoe request tolicense in dashboard client count card

* cleanup jsdoc

* add changelog

* use helper to set start time

* update component tests

* update overview test

* update util tests

* throw error instead, add comment to util file

* fix accidentally removed type from import

* remove typo arg from test component

* rename token stat getter to avoid future typos
2024-05-02 17:45:33 +00:00
claire bontempo
3f19f8b0f0
UI: Add charts to ACME client count tab (#26385)
* use model returned by route model hook for ts declaration

* remove hasActivity helper

* refactor mirage so namespace totals are summed from monthly data

* add charts to acme tab

* add controller, update counts test

* add test for acme page

* selector cleanup

* update empty state handling for cc charts

* cleanup conditional logic

* add acme acceptance tests for filtering

* wrap up util updates

* finish acceptance tests

* update usage stats

* wrap up number updates from latest stubbed response
2024-04-16 20:58:54 -07:00
Chelsea Shaw
82eda875dd
UI: Test reorganization (#26340) 2024-04-10 22:01:35 +00:00
claire bontempo
009702cae0
UI: Convert client count utils to typescript (#26262)
* cleanup namespaceArrayToObject method

* WIP typescript conversion

* WIP typescripted destructured block

* slowly making progress....

* WIP move all types to util type file, separate returns in formatByMonths

* namespaceArrayToObject is working?!?

* fix mirage handler not generating months when queries are after upgrade

* wow, the types are actually working omg

* add comments and update client-count-utils test

* delete old js file

* remove types from activity model

* remove comment

* reuse totalclients type to minimize places we add types

* commit file with type changes for git diff

* delete util file again

* address PR feedback and move type declarations to util file

* remove unused types

* update tests, use client helper in dashboard clients test

* remove typo

* make modifications with updated combined activity response from the backend
2024-04-09 20:53:16 +00:00
Steven Clark
ade75bcf00
Update licensing across various source files (#24672) 2024-01-04 12:59:46 -05:00
Kianna
8835514e76
UI: [VAULT-12979] Dashboard Landing Page (#21057)
Co-authored-by: Chelsea Shaw <cshaw@hashicorp.com>
Co-authored-by: clairebontempo@gmail.com <clairebontempo@gmail.com>
Co-authored-by: Angel Garbarino <angel@hashicorp.com>
2023-08-24 13:30:45 -07:00