Roll out Bengaluru-style data previews to the other 11 city hubs - #16
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
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.
hub-grid(Communities preview · Stories preview · Map preview) and link the sharedcity-hub.css./cities/mumbai/climate/dashboards) so its built climate access is preserved.Script cleanup (
city-hub.js)data-feature="stories"card-flip path (no hub uses feature cards anymore)./stories/page can't 404. (It reappears once a city has stories + a page.)Verified (headless Chrome vs live Supabase)
1).display:none.Notes
.feature-card-*/.coming-soon-calloutCSS remains in each hub's inline<style>(harmless dead CSS; not worth a risky cross-file scripted removal)./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