add Eurostat + UK ONS sources; valuation/bubble/economy/bonds groups; aggregate read; market-open header
Three new data sources hooked into the existing SOURCES registry. All
open APIs, no keys:
- EUROSTAT: prefix EUROSTAT:dataset?dim=val&... — current EU bond
yields (Bund/OAT/BTP/EZ) and Eurozone economic indicators that
FRED's OECD-mirror series stopped updating in 2022-2023.
- ONS: prefix ONS:topic/cdid/dataset — current UK CPI, unemployment,
GDP, industrial production. Replaces the 5+ month-stale FRED
LRHUTTTTGBM156S mirror.
New indicator groups in default.toml feed the strategic/fundamental
lens we converged on: valuation (CAPE/Buffett anchors), bubble_watch
(SKEW/VVIX/RSP vs SPY/HYG vs TLT/IPO/crypto), economy (multi-region,
ALL current-or-stale-flagged), bonds (UK/EU/US/JPN sovereign yields).
Indicator panel now opens with an AI "read" interpretation per group
(generated hourly at :07 UTC alongside an aggregate cross-group read
shown in the dashboard header). The aggregate is grounded by a markets
strip — NYSE/LSE/Frankfurt/Tokyo/HK/Shanghai with open/closed LEDs and
next-open countdown, computed locally from each exchange's tz.
Other UX bits: indicator-row tooltips populated from TOML notes;
rows whose last observation is >90 days old get a 'stale' chip;
ghost symbols (in DB but no longer in TOML) filtered out of the
panel; Eurostat/ONS symbols display as short codes rather than the
full API path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a10409c02b
commit
1edf9cad41
15 changed files with 1156 additions and 10 deletions
|
|
@ -187,6 +187,12 @@ table.dense th {
|
|||
table.dense th.num,
|
||||
table.dense td.num { text-align: right; }
|
||||
table.dense td.label { color: var(--text); }
|
||||
table.dense td.label.has-tip,
|
||||
table.dense td[title] {
|
||||
cursor: help;
|
||||
border-bottom: 1px dotted color-mix(in srgb, var(--accent) 40%, transparent);
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
table.dense tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
|
||||
|
||||
.pos { color: var(--positive); }
|
||||
|
|
@ -194,6 +200,21 @@ table.dense tr:hover td { background: color-mix(in srgb, var(--accent) 5%, trans
|
|||
.neu { color: var(--muted); }
|
||||
.note { color: var(--dim); font-size: 11px; }
|
||||
|
||||
/* Stale indicator rows — last observation > 90 days old */
|
||||
table.dense tr.row-stale td { color: var(--dim); }
|
||||
.stale-tag {
|
||||
display: inline-block;
|
||||
font-size: 8.5px;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--alert);
|
||||
border: 1px solid var(--alert);
|
||||
padding: 0 4px;
|
||||
margin-left: 4px;
|
||||
vertical-align: middle;
|
||||
text-transform: uppercase;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
/* --- Status LEDs ------------------------------------------------------ */
|
||||
|
||||
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
|
||||
|
|
@ -202,6 +223,117 @@ table.dense tr:hover td { background: color-mix(in srgb, var(--accent) 5%, trans
|
|||
.led.err { background: var(--negative); box-shadow: 0 0 6px var(--negative); }
|
||||
.led.idle { background: var(--dim); }
|
||||
|
||||
/* --- Dashboard top header (markets + aggregate read) ----------------- */
|
||||
|
||||
.dash-header {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 12px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.dash-header__markets {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||
gap: 1px;
|
||||
background: var(--border);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.mkt {
|
||||
background: var(--surface);
|
||||
padding: 6px 10px;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
grid-template-rows: auto auto;
|
||||
align-items: center;
|
||||
gap: 2px 6px;
|
||||
}
|
||||
.mkt__dot {
|
||||
width: 8px; height: 8px; border-radius: 50%;
|
||||
grid-row: 1; grid-column: 1;
|
||||
}
|
||||
.mkt--open .mkt__dot { background: var(--positive); box-shadow: 0 0 6px var(--positive); }
|
||||
.mkt--closed .mkt__dot { background: var(--dim); }
|
||||
.mkt__name {
|
||||
grid-row: 1; grid-column: 2;
|
||||
color: var(--text); font-weight: 700;
|
||||
text-transform: uppercase; letter-spacing: 0.08em;
|
||||
}
|
||||
.mkt__state {
|
||||
grid-row: 1; grid-column: 3;
|
||||
font-size: 9.5px; letter-spacing: 0.08em;
|
||||
}
|
||||
.mkt--open .mkt__state { color: var(--positive); }
|
||||
.mkt--closed .mkt__state { color: var(--dim); }
|
||||
.mkt__when {
|
||||
grid-row: 2; grid-column: 2 / -1;
|
||||
color: var(--muted); font-size: 10px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.mkt__when-label { color: var(--dim); }
|
||||
|
||||
.dash-header__read {
|
||||
border: 1px solid var(--border);
|
||||
border-left: 3px solid var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 4%, transparent);
|
||||
padding: 10px 14px;
|
||||
}
|
||||
.dash-header__read-meta {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.dash-header__read-body {
|
||||
margin: 0;
|
||||
font-family: var(--font-sans);
|
||||
font-size: 14px;
|
||||
line-height: 1.55;
|
||||
color: var(--text);
|
||||
}
|
||||
.dash-header__read--pending { color: var(--dim); font-style: italic; }
|
||||
.dash-header__read--pending .dash-header__read-body { color: var(--dim); font-size: 12px; }
|
||||
|
||||
/* --- Indicator group summary (above the table) ----------------------- */
|
||||
|
||||
.ind-summary {
|
||||
font-family: var(--font-sans);
|
||||
padding: 10px 16px;
|
||||
border-bottom: 1px solid var(--surface-2);
|
||||
border-left: 3px solid var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 4%, transparent);
|
||||
}
|
||||
.ind-summary__head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.ind-summary__label {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
color: var(--accent);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
font-weight: 700;
|
||||
}
|
||||
.ind-summary__label::before { content: "▸ "; }
|
||||
.ind-summary__when {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
color: var(--dim);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.ind-summary__body {
|
||||
margin: 0;
|
||||
font-size: 13.5px;
|
||||
line-height: 1.55;
|
||||
color: var(--text);
|
||||
}
|
||||
.ind-summary--pending { color: var(--dim); font-style: italic; }
|
||||
.ind-summary--pending .ind-summary__body { color: var(--dim); font-size: 12px; }
|
||||
|
||||
/* --- Group tabs ------------------------------------------------------- */
|
||||
|
||||
.group-tabs {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue