Rebuild foundation: provenance-first data, design system, methodology (Phase 1) - #5
Draft
Soumoditya wants to merge 3 commits into
Draft
Rebuild foundation: provenance-first data, design system, methodology (Phase 1)#5Soumoditya wants to merge 3 commits into
Soumoditya wants to merge 3 commits into
Conversation
…ted stats - Interactive India political map (react-simple-maps) with alliance filter - Politician detail page with 5 tabs: Controversies | Criminal Cases | Assets | Family | Live News - Each controversy has 5 source buttons: Google News, IndiaKanoon, Myneta.info, Official Source, eCourts - Criminal Cases tab: full explainer, verify links, related controversies - Live News tab: real-time fetch via /api/news, fallback links (TOI, NDTV, The Print) - Animated counters on scroll into view - India political map on homepage with party alliance filter https://claude.ai/code/session_01VryNA7FL9SczifHWfGUe6v
Foundation for the 'MyNeta but better' rebuild: - lib/sources.ts: Sourced<T> type, deep-link builders (MyNeta, IndiaKanoon, eCourts, ECI, PRS, Google News, CAG), freshness() helper, curated primary sources - components/SourceTag.tsx: source link + verified date + freshness dot (green/amber/red) - Migrated all 64 politicians: added myNetaUrl + verifiedOn; upgraded all 200 controversy sources from bare homepages to deep links (news/official) + sourceLabel - PoliticianDetailClient: uses lib/sources + SourceTag; ECI election-symbol badge on avatar - data/stats.json + StatsTicker: every ticker fact now sourced, dated and clickable - app/methodology: sources, verification process, freshness policy, non-partisan statement - Design system: CSS design tokens + motion primitives + reduced-motion in globals.css; upgraded AnimatedSection (stagger/delay/reduced-motion) - Party ECI election symbols via getPartySymbol() (public-domain symbols, not logos) - Tone pass: neutralized loaded copy; fixed NAGRIK typo; neutral non-partisan metadata Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VryNA7FL9SczifHWfGUe6v
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ch, 2026 budget - data/dynasties.json + /nepotism: dynasty relations, family businesses (Jay Shah, Gadkari sons, Gandhis, Pawars, Thackerays, Yadavs, Abdullahs...), family-abroad — balanced 9 NDA / 9 INDIA / 2 regional, neutrally worded, every entry deep-sourced, contested items marked 'alleged'; cross-links to full profiles - data/remarks.json + /remarks: documented divisive remarks with quote + fallout (EC notice / FIR / court) + source; balanced 5 NDA / 5 INDIA; contested marked - Politicians page: 'Research ANY neta' panel — deep links (MyNeta, News, IndiaKanoon, PRS) for anyone incl. locals not yet profiled; party ECI symbols on cards - Budget refreshed to real FY2025-26 figures (₹50.65L Cr total, 4.4% deficit, ₹11.21L Cr capex) with source tags; homepage budget figures updated to match - Homepage: newbie 'What do you want to know?' trackers section - Navbar: added Nepotism + Remarks; renamed Methodology -> Sources Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VryNA7FL9SczifHWfGUe6v
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.
Why
The site's biggest problems were outdated information and sources that only linked to homepages (e.g.
cbi.gov.in) instead of the actual record behind a claim. This is Phase 1 of the "MyNeta, but better" rebuild agreed with the maintainer: a provenance-first foundation where every fact is traceable and its freshness is visible, plus a coherent design/motion system and a non-partisan editorial stance.Full architecture in the approved plan (all phases): provenance data model → Current Government hub → Data & Trends visualizations → refresh tooling.
What's in this PR (Phase 1)
Provenance + freshness (the core fix)
lib/sources.ts—Sourced<T>type, deep-link builders (MyNeta, IndiaKanoon, eCourts, ECI, PRS, Google News, CAG, Budget), afreshness()helper, and a curated list of non-partisan primary sources.components/SourceTag.tsx— renders a deep-link source + "verified {date}" + a freshness dot (🟢 recent / 🟡 check / 🔴 likely outdated).myNetaUrl+verifiedOn; upgraded all 200 controversy sources from bare homepages → deep links (live news / official) withsourceLabeland preservedofficialSource.data/stats.json+ rebuiltStatsTicker— every ticker fact is now sourced, dated and clickable (no more hardcoded unsourced numbers).Design, UX & motion system
.reveal,.stagger,.lift), focus-visible a11y, andprefers-reduced-motionsupport inglobals.css.AnimatedSection(stagger / delay / reduced-motion aware).Party visual identity
getPartySymbol()— authentic ECI election symbols (Lotus, Hand, Broom, Cycle, Elephant…) as recognizable emoji stand-ins (public-domain symbols, not trademarked logos). Shown as an avatar badge and on party chips.Editorial / tone (bold but defensible)
/methodologypage: primary sources, verification process, freshness policy, and an explicit non-partisan commitment.NAGRIKlogo typo, and rewrote metadata to a non-partisan, sourced framing.Verify
npm run buildpasses — 77 pages including the new/methodology.Not in this PR (later phases)
Current Government hub,
/api/dataproxy for data.gov.in, the Data & Trends visualization section, and refresh tooling.🤖 Generated with Claude Code
https://claude.ai/code/session_01VryNA7FL9SczifHWfGUe6v
Generated by Claude Code