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
This commit is contained in:
claire bontempo
2024-04-16 20:58:54 -07:00
committed by GitHub
parent 3db6aa202c
commit 3f19f8b0f0
22 changed files with 1059 additions and 547 deletions

View File

@@ -167,7 +167,7 @@ export const namespaceArrayToObject = (
...mount,
timestamp,
month,
new_clients: { month, ...newMountClients },
new_clients: { month, timestamp, ...newMountClients },
};
}
return mountObj;
@@ -177,7 +177,7 @@ export const namespaceArrayToObject = (
...destructureClientCounts(ns),
timestamp,
month,
new_clients: { month, ...newNsClients },
new_clients: { month, timestamp, ...newNsClients },
mounts_by_key,
};
}
@@ -241,6 +241,7 @@ export interface NamespaceByKey extends TotalClients {
export interface NamespaceNewClients extends TotalClients {
month: string;
timestamp: string;
label: string;
mounts: MountClients[];
}
@@ -254,6 +255,7 @@ export interface MountByKey extends TotalClients {
export interface MountNewClients extends TotalClients {
month: string;
timestamp: string;
label: string;
}