Skip to content

Add Chennai community stories page + wire hub card - #12

Merged
Ashwask merged 1 commit into
mainfrom
chennai-stories
Jul 31, 2026
Merged

Add Chennai community stories page + wire hub card#12
Ashwask merged 1 commit into
mainfrom
chennai-stories

Conversation

@Ashwask

@Ashwask Ashwask commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

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

  • New /cities/chennai/stories/ — mirrors the Bengaluru stories page, calling dataLoader.loadStories('Chennai'). Identical markup/styles/JS (render, expand, inline YouTube); only city-specific strings swapped.
  • Hub card flipped to Live — the Community Stories card on /cities/chennai/ now shows a "Live" badge and a Read Stories button linking to the new page.

Notes

  • No i18n changes — reuses existing keys (cityHub.features.stories.{title,description,button}, cityHub.features.map.statusLive).
  • The Communities card and coming-soon callout on the hub intentionally stay "Coming Soon".
  • Verified in headless Chrome against live Supabase: the stories grid renders the Chennai story (1 card, with its YouTube video), and the hub card links through correctly.

🤖 Generated with Claude Code

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>
@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 8:23am

@Ashwask
Ashwask merged commit 7eb9113 into main Jul 31, 2026
2 of 3 checks passed
@Ashwask
Ashwask deleted the chennai-stories branch July 31, 2026 08:26
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