Skip to content

Roll out Bengaluru-style data previews to the other 11 city hubs - #16

Merged
Ashwask merged 1 commit into
mainfrom
rollout-hub-previews
Jul 31, 2026
Merged

Roll out Bengaluru-style data previews to the other 11 city hubs#16
Ashwask merged 1 commit into
mainfrom
rollout-hub-previews

Conversation

@Ashwask

@Ashwask Ashwask commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

What

Follow-up to #15 (Chennai). Applies the same data-preview hub layout to the remaining 11 city hubs so they surface real communities/stories inline instead of static nav cards.

  • 10 cities (ahmedabad, bhubaneswar, gurugram, hyderabad, jaipur, kochi, kolkata, pune, thane, visakhapatnam): replace the Map/Communities/Stories nav-card grid + "Coming Soon" callout with the shared hub-grid (Communities preview · Stories preview · Map preview) and link the shared city-hub.css.
  • Mumbai: same, plus a Climate section (Energy + Waste sector cards → its existing live /cities/mumbai/climate/ dashboards) so its built climate access is preserved.

Script cleanup (city-hub.js)

  • Removed the now-dead data-feature="stories" card-flip path (no hub uses feature cards anymore).
  • Hide each Stories "Read all" link when the city has no stories, so the 11 cities without a /stories/ page can't 404. (It reappears once a city has stories + a page.)

Verified (headless Chrome vs live Supabase)

  • Pune: its 1 real community now appears in the Communities preview (stat 1).
  • Mumbai: Climate section renders (Energy + Waste); communities/stories show empty states.
  • Kochi: empty states; Stories "Read all" correctly display:none.
  • All map previews render each city's SVG. No new i18n keys.

Notes

  • Net −650 lines (compact previews replace verbose cards).
  • Climate/Wards stats unchanged (built-infra counts). No visual-regression specs cover hubs → no baselines change.
  • Leftover unused .feature-card-* / .coming-soon-callout CSS remains in each hub's inline <style> (harmless dead CSS; not worth a risky cross-file scripted removal).
  • Open follow-up: a generic per-city /stories/ page so any city that gets a story shows a working "Read all" — not needed yet (only Bengaluru/Chennai have stories).

🤖 Generated with Claude Code

Follow-up to the Chennai hub (PR #15). Apply the same hub-grid preview
layout to the remaining coming-soon hubs so they surface real data:

- ahmedabad, bhubaneswar, gurugram, hyderabad, jaipur, kochi, kolkata,
  pune, thane, visakhapatnam: replace the Map/Communities/Stories nav-card
  grid + "Coming Soon" callout with the shared hub-grid (Communities
  preview, Stories preview, Map preview). Link the shared city-hub.css.
- mumbai: same, plus a Climate section (Energy + Waste sector cards
  linking to its existing live /cities/mumbai/climate/ dashboards), so its
  built climate access is preserved in the new layout.

city-hub.js: drop the now-dead data-feature="stories" card-flip path (no
hub uses feature cards anymore) and hide each Stories "Read all" link when
the city has no stories, so cities without a /stories/ page can't 404.

Verified in headless Chrome vs live Supabase:
- Pune: its 1 real community now shows in the Communities preview (stat 1).
- Mumbai: Climate section renders; communities/stories empty states.
- Kochi: empty states; Stories "Read all" hidden (display:none).
All map previews render each city's SVG. No new i18n keys.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
notf Ready Ready Preview Jul 31, 2026 12:24pm

@Ashwask
Ashwask merged commit d9deb53 into main Jul 31, 2026
3 checks passed
@Ashwask
Ashwask deleted the rollout-hub-previews branch July 31, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants