From c46e5fa1fad6f7739379f1a6e80595d4ee19b3d5 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Sun, 28 Jun 2026 13:50:15 -0400 Subject: [PATCH] feat(config): add news page and widget configuration --- config/glance.yml | 26 ++++++---- config/news/header.yml | 21 ++++++++ config/{today => news}/left.yml | 10 +--- config/{today => news}/main.yml | 0 config/{today => news}/right.yml | 9 ++-- config/news/widgets/headlines.yml | 51 +++++++++++++++++++ .../{today => news}/widgets/ical-personal.yml | 0 config/{today => news}/widgets/ical-work.yml | 0 config/news/widgets/rates.yml | 40 +++++++++++++++ config/{today => news}/widgets/reddit.yml | 0 config/{today => news}/widgets/youtube.yml | 0 config/today/header.yml | 11 ---- config/today/widgets/alerts.yml | 28 ---------- config/today/widgets/headlines.yml | 24 --------- 14 files changed, 135 insertions(+), 85 deletions(-) create mode 100644 config/news/header.yml rename config/{today => news}/left.yml (71%) rename config/{today => news}/main.yml (100%) rename config/{today => news}/right.yml (50%) create mode 100644 config/news/widgets/headlines.yml rename config/{today => news}/widgets/ical-personal.yml (100%) rename config/{today => news}/widgets/ical-work.yml (100%) create mode 100644 config/news/widgets/rates.yml rename config/{today => news}/widgets/reddit.yml (100%) rename config/{today => news}/widgets/youtube.yml (100%) delete mode 100644 config/today/header.yml delete mode 100644 config/today/widgets/alerts.yml delete mode 100644 config/today/widgets/headlines.yml diff --git a/config/glance.yml b/config/glance.yml index 7940191..79f1c74 100644 --- a/config/glance.yml +++ b/config/glance.yml @@ -1,7 +1,17 @@ server: assets-path: /app/assets +branding: + custom-footer: | +

Powered by Glance

+ logo-url: /assets/logo.png + favicon-url: /assets/logo.png + app-name: "My Dashboard" + app-icon-url: "/assets/app-icon.png" + app-background-color: "#151519" + theme: + custom-css-file: /assets/newspaper.css background-color: 240 27 11 contrast-multiplier: 1.5 primary-color: 321 100 71 @@ -9,14 +19,14 @@ theme: negative-color: 360 100 71 pages: - - name: Today + - name: News width: wide head-widgets: - - $include: ./today/header.yml + - $include: ./news/header.yml columns: - - $include: ./today/left.yml - - $include: ./today/main.yml - - $include: ./today/right.yml + - $include: ./news/left.yml + - $include: ./news/main.yml + - $include: ./news/right.yml - name: Finance head-widgets: @@ -32,11 +42,7 @@ pages: - $include: ./developer/main.yml - $include: ./developer/right.yml - - name: Movies + - name: Media columns: - $include: ./media/movies.yml - - - name: TV - columns: - $include: ./media/tv.yml - diff --git a/config/news/header.yml b/config/news/header.yml new file mode 100644 index 0000000..e3555ae --- /dev/null +++ b/config/news/header.yml @@ -0,0 +1,21 @@ +# Masthead + markets ticker — the newspaper banner +- type: html + source: | +
+
+
The Daily Glance
+
Tech · Markets · Crypto
+
+
+ +- type: markets + hide-header: true + markets: + - symbol: BTC-USD + name: Bitcoin + - symbol: ETH-USD + name: Ethereum + - symbol: MAGS + name: Mag7 + - symbol: QQQ + name: Nasdaq diff --git a/config/today/left.yml b/config/news/left.yml similarity index 71% rename from config/today/left.yml rename to config/news/left.yml index 546919d..6b5a262 100644 --- a/config/today/left.yml +++ b/config/news/left.yml @@ -1,3 +1,4 @@ +# Left rail — weather corner, work agenda, world clocks - size: small widgets: - type: weather @@ -14,12 +15,3 @@ label: Singapore - timezone: Europe/London label: London - - type: rss - title: Deals - limit: 10 - collapse-after: 2 - feeds: - - url: https://rss.app/feeds/rb0smDdeyhIkusel.xml - title: Crypto Fundraising - - diff --git a/config/today/main.yml b/config/news/main.yml similarity index 100% rename from config/today/main.yml rename to config/news/main.yml diff --git a/config/today/right.yml b/config/news/right.yml similarity index 50% rename from config/today/right.yml rename to config/news/right.yml index 0dbc535..a22512f 100644 --- a/config/today/right.yml +++ b/config/news/right.yml @@ -1,13 +1,16 @@ +# Right rail — datebook, macro rates box, and the news wire - size: small widgets: - - type: to-do - type: calendar first-day-of-week: sunday - $include: ./widgets/ical-personal.yml + - $include: ./widgets/rates.yml - type: rss - title: Crypto + title: The Wire limit: 20 collapse-after: 5 feeds: - url: https://rss.app/feeds/wiGtpLZuOjLgKlC4.xml - title: WatcherGuru + title: Watcher Guru + - url: https://rss.app/feeds/rb0smDdeyhIkusel.xml + title: Crypto Fundraising diff --git a/config/news/widgets/headlines.yml b/config/news/widgets/headlines.yml new file mode 100644 index 0000000..792b5c0 --- /dev/null +++ b/config/news/widgets/headlines.yml @@ -0,0 +1,51 @@ +# Front page — newspaper sections as clean tabs. +# detailed-list gives the headline + blurb + section look of a printed page. +- type: group + widgets: + - type: rss + title: Front Page + style: detailed-list + limit: 15 + collapse-after: 6 + feeds: + - url: https://www.techmeme.com/feed.xml + title: Techmeme + - url: https://www.ft.com/technology?format=rss + title: Financial Times + - url: https://feeds.a.dj.com/rss/RSSMarketsMain.xml + title: Wall Street Journal + + - type: rss + title: Tech + style: detailed-list + limit: 20 + collapse-after: 6 + feeds: + - url: https://www.techmeme.com/feed.xml + title: Techmeme + - url: https://terminaltrove.com/new.xml + title: Terminal Trove + - url: https://rss.app/feeds/_tBKt0Q2vzII4baWl.xml + title: Product Hunt + + - type: rss + title: Markets + style: detailed-list + limit: 20 + collapse-after: 6 + feeds: + - url: https://feeds.a.dj.com/rss/RSSMarketsMain.xml + title: Wall Street Journal + - url: https://www.ft.com/technology?format=rss + title: Financial Times + + - type: rss + title: Crypto + style: detailed-list + limit: 20 + collapse-after: 6 + feeds: + - url: https://rss.app/feeds/wiGtpLZuOjLgKlC4.xml + title: Watcher Guru + - url: https://rss.app/feeds/rb0smDdeyhIkusel.xml + title: Crypto Fundraising diff --git a/config/today/widgets/ical-personal.yml b/config/news/widgets/ical-personal.yml similarity index 100% rename from config/today/widgets/ical-personal.yml rename to config/news/widgets/ical-personal.yml diff --git a/config/today/widgets/ical-work.yml b/config/news/widgets/ical-work.yml similarity index 100% rename from config/today/widgets/ical-work.yml rename to config/news/widgets/ical-work.yml diff --git a/config/news/widgets/rates.yml b/config/news/widgets/rates.yml new file mode 100644 index 0000000..0872555 --- /dev/null +++ b/config/news/widgets/rates.yml @@ -0,0 +1,40 @@ +# Macro rates box (St. Louis Fed / FRED). One shared template, three series. +# ponytail: template was copy-pasted 4x across the config — collapsed to one anchor. +define: + fred-template: &fred-template | + {{ $latest := .JSON.Float "observations.0.value" }} + {{ $previous := .JSON.Float "observations.1.value" }} + {{ $lastObserve := .JSON.String "observations.0.date" }} + {{ $change := sub $latest $previous }} +
+
+ + {{ .JSON.String "observations.0.value" }}% + +
St. Louis Federal Reserve
+
+
+
+ {{ printf "%+.2f" $change }}% +
+
+
+
+ +- type: custom-api + title: Secured Financing Rate + cache: 12h + url: https://api.stlouisfed.org/fred/series/observations?series_id=SOFR&api_key=${FRED_API_KEY}&file_type=json&sort_order=desc&limit=2 + template: *fred-template + +- type: custom-api + title: Federal Funds Rate + cache: 12h + url: https://api.stlouisfed.org/fred/series/observations?series_id=FEDFUNDS&api_key=${FRED_API_KEY}&file_type=json&sort_order=desc&limit=2 + template: *fred-template + +- type: custom-api + title: Real GDP + cache: 12h + url: https://api.stlouisfed.org/fred/series/observations?series_id=A191RL1Q225SBEA&api_key=${FRED_API_KEY}&file_type=json&sort_order=desc&limit=2 + template: *fred-template diff --git a/config/today/widgets/reddit.yml b/config/news/widgets/reddit.yml similarity index 100% rename from config/today/widgets/reddit.yml rename to config/news/widgets/reddit.yml diff --git a/config/today/widgets/youtube.yml b/config/news/widgets/youtube.yml similarity index 100% rename from config/today/widgets/youtube.yml rename to config/news/widgets/youtube.yml diff --git a/config/today/header.yml b/config/today/header.yml deleted file mode 100644 index dff5119..0000000 --- a/config/today/header.yml +++ /dev/null @@ -1,11 +0,0 @@ -- type: markets - hide-header: true - markets: - - symbol: BTC-USD - name: Bitcoin - - symbol: ETH-USD - name: Ethereum - - symbol: MAGS - name: Mag7 - - symbol: QQQ - name: Nasdaq diff --git a/config/today/widgets/alerts.yml b/config/today/widgets/alerts.yml deleted file mode 100644 index ec15bfe..0000000 --- a/config/today/widgets/alerts.yml +++ /dev/null @@ -1,28 +0,0 @@ -- type: group - widgets: - - type: rss - title: Crypto - limit: 30 - collapse-after: 13 - feeds: - - url: https://rss.app/feeds/wiGtpLZuOjLgKlC4.xml - title: WatcherGuru - - - type: rss - title: Deals - limit: 30 - collapse-after: 13 - feeds: - - url: https://rss.app/feeds/rb0smDdeyhIkusel.xml - title: Crypto Fundraising - - - - type: rss - title: Finance - limit: 30 - collapse-after: 13 - feeds: - - url: https://www.ft.com/technology?format=rss - title: Financial Times - - url: https://feeds.a.dj.com/rss/RSSMarketsMain.xml - title: Wall Street Journal diff --git a/config/today/widgets/headlines.yml b/config/today/widgets/headlines.yml deleted file mode 100644 index 2c34665..0000000 --- a/config/today/widgets/headlines.yml +++ /dev/null @@ -1,24 +0,0 @@ -- type: group - widgets: - - type: rss - title: Techmeme - style: horizontal-cards - feeds: - - url: https://www.techmeme.com/feed.xml - title: TechMeme - - - type: rss - title: ProductHunt - style: horizontal-cards - feeds: - - url: https://rss.app/feeds/_tBKt0Q2vzII4baWl.xml - title: ProductHunt - - - type: rss - title: TerminalTrove - style: horizontal-cards - feeds: - - url: https://terminaltrove.com/new.xml - title: TerminalTrove - -