From 560e922c57f0b2a2c9bb8ff7c126eec858e88a09 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 02:45:46 +0000 Subject: [PATCH 1/4] Add concrete examples via tooltips to financial parameters Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com> --- .Jules/palette.md | 4 ++++ src/dashboard.py | 17 +++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .Jules/palette.md diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..7f6e59d --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,4 @@ + +## 2024-05-14 - Concrete Examples for Financial Parameters +**Learning:** Users can misinterpret abstract financial or statistical parameters like "basis points" or "quantiles". Adding explicit, concrete examples via tooltips ensures clarity and acts as a preventative UX measure against input errors. +**Action:** When adding inputs for complex metrics (e.g., statistical quantiles, basis points), always include a `help` parameter with a real, concrete example (e.g., "10 bps = 0.10%"). diff --git a/src/dashboard.py b/src/dashboard.py index 4156c1d..e09e515 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -185,12 +185,25 @@ def get_cache_key(*args) -> str: st.info("Using full-sample quantiles (exploratory mode)") vol_q_high = st.slider( - "High Volatility Quantile", 0.5, 0.95, DEFAULT_VOL_QUANTILE_HIGH, 0.05 + "High Volatility Quantile", + 0.5, + 0.95, + DEFAULT_VOL_QUANTILE_HIGH, + 0.05, + help="e.g., 0.80 means the top 20% of historical volatility.", ) if mode == "Single-Asset": st.subheader("5. Backtest Settings") - bt_cost = st.number_input("Transaction Cost (bps)", value=DEFAULT_COST_BPS, step=1) / 10000 + bt_cost = ( + st.number_input( + "Transaction Cost (bps)", + value=DEFAULT_COST_BPS, + step=1, + help="10 bps = 0.10%", + ) + / 10000 + ) allow_short = st.checkbox("Allow Short Selling?", value=False) else: st.subheader("5. Alert Thresholds") From 0781605214a3756fe5d514a427c1df36edbb724b Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 02:50:35 +0000 Subject: [PATCH 2/4] Add concrete examples via tooltips to financial parameters Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com> From 5b77d1a88430a2746e76fad462b2ddd148619491 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 02:59:43 +0000 Subject: [PATCH 3/4] Add concrete examples via tooltips to financial parameters Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com> From 7a41f34ff8f27dada002f51f544779d4801c42c1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 03:02:56 +0000 Subject: [PATCH 4/4] Add concrete examples via tooltips to financial parameters Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>