Today's Highlight: daily-rotating insight on the home tab (v2.7.0)#34
Merged
Conversation
A new gradient-bordered card at the top of "What is This?" surfaces one of 14 curated highlights, deterministically rotated by date so every visitor sees the same thing on the same day. Each highlight has: - Category badge (Headline number, Compare regimes, Try this, etc.) - Bold title (the surprising stat or finding) - Short narrative - "Jump to" CTA that activates the relevant tab Coverage: top 1% inequality, GDP-jobs decoupling, regime scorecard, RSF 2026, Scenario Lab demo, methodology, communal incidents, cess share, V-Dem peer comparison, graduate unemployment, CSV exports, correlation explorer, formal employment decline, policy "what next". Rotation key: Math.floor(Date.now() / 86400000) % dailyFeatures.length -- so 14 highlights cycle through over a fortnight, then repeat. Version 2.7.0; CITATION.cff matched; CHANGELOG entry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Today's Highlight card at the top of the "What is This?" tab — a daily-rotating insight that surfaces one of 14 curated findings, with a CTA button that jumps straight to the relevant tab.
How rotation works
14 curated highlights
Categories cover: headline numbers, regime comparison ("UPA vs NDA: nine indicators side by side"), latest releases (RSF 2026), the decoupling story, methodology, hidden CSV series (communal incidents, cess share), peer democracy trajectories, graduate unemployment, the Correlation Explorer, and policy next steps.
Each highlight links to the most relevant tab (Deep Analysis, Scenario Lab, Human Stories, Methodology, etc.) — so the home page becomes a daily-changing entry point that pulls new visitors deeper into the site.
Visual
A gradient-bordered card (indigo → blue → purple) with:
Test plan
Date.now = () => 86400000 * 5then reload → highlight changes to index 5Generated by Claude Code