Add Chennai community stories page + wire hub card - #12
Merged
Conversation
The uploaded Chennai story ("Project Thiruvanmiyur Mada Street —
Community Design Initiative", active, city=Chennai) had nowhere to
display: /cities/chennai/ had no stories subpage, and its "Community
Stories" hub card was a hardcoded "Coming Soon" placeholder.
- Add /cities/chennai/stories/ — mirrors the Bengaluru stories page,
calling dataLoader.loadStories('Chennai'). Same markup, styles, and
render/expand/YouTube logic; only city-specific strings swapped.
- Flip the hub's Community Stories card from disabled "Coming Soon" to
a Live card linking to the new page.
Reuses existing i18n keys (cityHub.features.stories.{title,description,
button}, cityHub.features.map.statusLive) — no new translations.
Verified in headless Chrome against live Supabase: the stories grid
renders the Chennai story (1 card) and the hub card links through.
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.
Problem
A Chennai story was uploaded ("Project Thiruvanmiyur Mada Street — Community Design Initiative",
status=active,city=Chennai) but wasn't visible at https://www.notf.in/cities/chennai/.Root cause: it's not a data issue — the story is live and correct in Supabase. Chennai simply had no stories page to display it (only
/cities/chennai/map/existed), and the hub's "Community Stories" card was a hardcoded "Coming Soon" placeholder with a disabled button. (Bengaluru has/cities/bengaluru/stories/; Chennai didn't.)Fix
/cities/chennai/stories/— mirrors the Bengaluru stories page, callingdataLoader.loadStories('Chennai'). Identical markup/styles/JS (render, expand, inline YouTube); only city-specific strings swapped./cities/chennai/now shows a "Live" badge and a Read Stories button linking to the new page.Notes
cityHub.features.stories.{title,description,button},cityHub.features.map.statusLive).🤖 Generated with Claude Code