Skip to content

Show City, State at a glance in events viewer#1137

Open
rustynwac wants to merge 1 commit into
mainfrom
claude/triage-5ny2nj
Open

Show City, State at a glance in events viewer#1137
rustynwac wants to merge 1 commit into
mainfrom
claude/triage-5ny2nj

Conversation

@rustynwac

Copy link
Copy Markdown
Contributor

Description

In the public events viewer, each event's location was shown as the venue place name with a caret popover. City and State were only visible after opening the popover, so users couldn't tell where an event was happening while scanning the list.

This adds an always-visible City, State line directly beneath the location trigger, matching the layout requested in #1098:

Date, Time
Skill Level
Location (place name with caret dropdown for full address)
City, State

Related Issues

Fixes #1098

Key Changes

  • src/components/EventPreview/LocationPopover.tsx — wrap the popover in a column container and render a City, State line beneath the trigger. Gracefully falls back to city-only or state-only, and is omitted entirely when neither is set. The full address (street, city, state, zip, copy, and "Open in Maps") remains available in the popover.
  • __tests__/client/components/LocationPopover.client.test.tsx — new client tests covering the city+state, city-only, state-only, and neither cases.

How to test

  1. Visit a center's /events page with events that have a physical location (e.g. nwac.localhost:3000/events).
  2. Confirm each event shows the venue place name with the caret, and a City, State line directly beneath it — without clicking the caret.
  3. Open the caret popover and confirm the full address / copy / Open in Maps still work.
  4. Virtual events are unaffected (they render the "Virtual Event" badge instead of a location).

Automated: pnpm test (529 passing, including the new LocationPopover tests), pnpm tsc, pnpm lint.

Screenshots / Demo video

N/A — see "How to test" above.

Migration Explanation

No schema or migration changes; this is a presentational change only.

Future enhancements / Questions

None.

🤖 Generated with Claude Code

https://claude.ai/code/session_016s7MJjeP8Mr3KRiRA22WwJ


Generated by Claude Code

The public events viewer displayed a venue place name with a caret
popover, but City and State were only visible after opening the popover.
Add an always-visible "City, State" line beneath the location trigger in
LocationPopover so users can scan an event's city and state without
clicking. Falls back to city-only or state-only, and is omitted when
neither is set.

Fixes #1098

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016s7MJjeP8Mr3KRiRA22WwJ
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Preview deployment: https://claudextriage-5ny2nj.preview.avy-fx.org

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.

Cannot see City + State at a glance in Events viewer

2 participants