charts: take the shared concise metric titles (Members · Requests · Spend · Money · Energy · Carbon)
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
Same menu, same order, same words as the panel — the two UIs now differ only in whose usage they show and in their own visual style.
This commit is contained in:
1 parent
2172202315
commit
2b8b8ade18
2 files changed
+5
-5
No files matched your search
+4
-4
@@ -276,9 +276,9 @@
|
|||||||
const CHART_METRICS = [
|
const CHART_METRICS = [
|
||||||
{ id: "members", title: "Members", kind: "line", cont: false, fmt: "count",
|
{ id: "members", title: "Members", kind: "line", cont: false, fmt: "count",
|
||||||
val: r => r.members_total },
|
val: r => r.members_total },
|
||||||
{ id: "requests", title: "Requests per day", kind: "bar", cont: false, fmt: "count",
|
{ id: "requests", title: "Requests", kind: "bar", cont: false, fmt: "count",
|
||||||
val: r => r.requests },
|
val: r => r.requests },
|
||||||
{ id: "spend", title: "Token spend per day", kind: "bar", cont: true, fmt: "money",
|
{ id: "spend", title: "Spend", kind: "bar", cont: true, fmt: "money",
|
||||||
val: r => r.spend_usd },
|
val: r => r.spend_usd },
|
||||||
{ id: "money", title: "Money", kind: "multi", cont: true, fmt: "money",
|
{ id: "money", title: "Money", kind: "multi", cont: true, fmt: "money",
|
||||||
aria: "Cumulative revenue, token spend and OC balance over time",
|
aria: "Cumulative revenue, token spend and OC balance over time",
|
||||||
@@ -287,9 +287,9 @@
|
|||||||
{ name: "Token spend", key: "spend_cum", color: "#4a6a8a" },
|
{ name: "Token spend", key: "spend_cum", color: "#4a6a8a" },
|
||||||
{ name: "OC balance", key: "oc_balance", color: "#a97a2a", dotSingle: true }
|
{ name: "OC balance", key: "oc_balance", color: "#a97a2a", dotSingle: true }
|
||||||
] },
|
] },
|
||||||
{ id: "energy", title: "Energy per day", kind: "bar", cont: true, fmt: "wh",
|
{ id: "energy", title: "Energy", kind: "bar", cont: true, fmt: "wh",
|
||||||
val: r => r.energy_wh },
|
val: r => r.energy_wh },
|
||||||
{ id: "co2e", title: "Carbon per day", kind: "bar", cont: true, fmt: "g",
|
{ id: "co2e", title: "Carbon", kind: "bar", cont: true, fmt: "g",
|
||||||
val: r => r.co2e_g }
|
val: r => r.co2e_g }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import sys
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
ROOT = Path(__file__).resolve().parent.parent
|
ROOT = Path(__file__).resolve().parent.parent
|
||||||
CANONICAL_SHA256 = "233c39faa7b40a9827fefd21aeb5505fdfa770833de2decebc8fe8bbbaee1903"
|
CANONICAL_SHA256 = "d25195d5079da499d6c3788b5678b86af65d9fee8e366cfb08fd5a0201ec1a2e"
|
||||||
SPLICE = 'PAGE_HTML = PAGE_HTML.replace("/*@@CHART_MODULE@@*/", CHART_MODULE_JS)'
|
SPLICE = 'PAGE_HTML = PAGE_HTML.replace("/*@@CHART_MODULE@@*/", CHART_MODULE_JS)'
|
||||||
|
|
||||||
failures = []
|
failures = []
|
||||||
|
|||||||
Reference in new issue
Block a user