Skip to content

Hide inactive communities from the map and render pins crisply#478

Merged
bryceerobertson merged 1 commit into
mainfrom
communities-inactive-badge
Jul 24, 2026
Merged

Hide inactive communities from the map and render pins crisply#478
bryceerobertson merged 1 commit into
mainfrom
communities-inactive-badge

Conversation

@bryceerobertson

@bryceerobertson bryceerobertson commented Jul 21, 2026

Copy link
Copy Markdown
Member
  • Inactive communities no longer get a map pin – they stay in the cards below, where the Activity level filter can surface them. Per Melissa's Loom feedback, this replaces the earlier Inactive-badge approach (badge and its CSS removed).
  • Pins were blurry because Mapbox rasterized pin.svg once at 128px and then GPU-scaled that bitmap for every pin size and screen density. The SVG is now re-rendered at each displayed size × devicePixelRatio (including the 1.2× hover size), so pins map 1:1 onto physical pixels on both standard and Retina screens.
  • Verified on localhost against the live site: inactive communities (e.g. AI Safety Auckland, AI Safety Würzburg) have pins on live but none locally; active pins, hover enlargement, and tooltips unchanged; magnified screenshot comparison shows cleaner pin edges at 1× and 2× density.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
ai-safety-com Ready Ready Preview, Comment Jul 24, 2026 9:40pm

Request Review

@melissasamworth

Copy link
Copy Markdown
Contributor

My takes here

The only one "required" is that I want the pill to reference the component from the development branch.

…size

- Inactive communities no longer get a map pin – they stay in the cards
  below, where the Activity level filter can surface them.
- Pins were blurry because Mapbox rasterized pin.svg once at 128px and
  GPU-scaled that bitmap for every pin size and screen density. The SVG
  is now re-rendered at each displayed size × devicePixelRatio (including
  the 1.2× hover size), so pins map 1:1 onto physical pixels.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bryceerobertson
bryceerobertson force-pushed the communities-inactive-badge branch from 8b2e7f9 to 49f0e1f Compare July 24, 2026 21:39
@bryceerobertson bryceerobertson changed the title Show Inactive badge on communities map tooltip Hide inactive communities from the map and render pins crisply Jul 24, 2026
@bryceerobertson
bryceerobertson merged commit 1a4535e into main Jul 24, 2026
1 of 2 checks passed
@bryceerobertson

Copy link
Copy Markdown
Member Author

Opted to just hide inactive communities from the map per Melissa's suggestion

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