From 55307f7725b493e6595cc9a724797e771011e1fd Mon Sep 17 00:00:00 2001 From: Seungpyo Hong Date: Mon, 22 Jun 2026 16:16:15 +0900 Subject: [PATCH] fix(verify): pin mermaid pie slice colors to green/amber/red Mermaid colors slices pie1/pie2/pie3 by declaration order; default palette showed Green=black, Yellow=red, Red=blue. Set themeVariables to match labels. Refs #1 --- app/verify/cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/verify/cli.py b/app/verify/cli.py index b6626a58185..92c61e3e3d7 100644 --- a/app/verify/cli.py +++ b/app/verify/cli.py @@ -198,8 +198,13 @@ def _print_markdown(hist, scored, hard_flags) -> None: gtot = sum(totals.values()) or 1 print(f"**{scored} record(s) scored.**\n") - # Overall distribution as a Mermaid pie (rendered by GitHub). + # Overall distribution as a Mermaid pie (rendered by GitHub). Mermaid colors + # slices pie1/pie2/pie3 in declaration order, so pin them to green/amber/red + # to match the labels (default palette would show black/red/blue). print("```mermaid") + print('%%{init: {"theme":"base","themeVariables":' + '{"pie1":"#3fb950","pie2":"#d29922","pie3":"#f85149",' + '"pieStrokeWidth":"0px","pieOpacity":"1"}}}%%') print("pie showData") print(' title Verification bands — all records') print(f' "Green" : {totals["green"]}')