Skip to content

communities: render earlier event markers on top - #1124

Merged
Wituareard merged 1 commit into
mainfrom
agents/event-markers-z-index-adjustment
Sep 15, 2026
Merged

Wituareard merged 1 commit into
mainfrom
agents/event-markers-z-index-adjustment

Conversation

@Wituareard

Copy link
Copy Markdown
Collaborator

What

On the /communities map, event markers are now sorted descending by start_at before being added to the map, so the earliest events' markers render on top of later ones.

Why

MapLibre stacks markers by DOM insertion order (later-added markers render on top). Events were previously added in fetch order, which could cover an earlier event's marker with a later event's marker when they share the same location.

Reviewer notes

  • Change is limited to the event-marker loop in src/routes/communities/+page.svelte; community markers are unaffected.
  • Verified visually on the /communities page (earlier events now appear above later ones where they overlap).

Event markers were stacked purely by fetch order, so a later event could
cover an earlier one sharing the same location. Sort events descending
by start_at so the earliest events' markers are added last and render
on top.
@netlify

netlify Bot commented Sep 15, 2026

Copy link
Copy Markdown

Deploy Preview for pauseai ready!

Name Link
🔨 Latest commit d31635a
🔍 Latest deploy log https://app.netlify.com/projects/pauseai/deploys/6aa961d3e742d10008fd691a
😎 Deploy Preview https://deploy-preview-1124--pauseai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 57 (🔴 down 16 from production)
Accessibility: 91 (no change from production)
Best Practices: 100 (no change from production)
SEO: 82 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@Wituareard
Wituareard enabled auto-merge (squash) September 15, 2026 15:19
@Wituareard
Wituareard merged commit 72ca38f into main Sep 15, 2026
8 of 9 checks passed
@Wituareard
Wituareard deleted the agents/event-markers-z-index-adjustment branch September 15, 2026 20:50
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.

1 participant