Skip to content

Before you go#72

Merged
teetow merged 9 commits intomainfrom
before-you-go
Mar 3, 2026
Merged

Before you go#72
teetow merged 9 commits intomainfrom
before-you-go

Conversation

@teetow
Copy link
Copy Markdown
Contributor

@teetow teetow commented Mar 3, 2026

Adds an exit-intent popup on select pages to offer audio.com signup

…tion; add UI semaphore utility for managing concurrent access.
The Escape key dismiss handler was inside the same useEffect as the
conditions setup (dwell timer, engagement, exit-intent detection).
When the popup became visible, the effect re-ran and hit the session
cap check (impressions >= cap), causing it to return early without
re-registering the Escape handler. The cleanup from the previous
render removed the old handler, leaving Escape non-functional.

Moved the Escape key handler into its own useEffect that only depends
on isVisible, selectedPromo, and resolvedPolicy, ensuring it stays
active whenever the popup is visible regardless of session cap state.
- Add role="dialog", aria-modal, and aria-labelledby to the modal
- Add focus trap that cycles between dismiss and CTA buttons
- Auto-focus the first focusable element on open
- Give exit-intent popup id on title element for labelling

- Remove isAttentionOverlayLocked gating from conditions setup
- Exit-intent now preempts cookie consent (priority 100 > 10)
- Cookie consent yields and re-shows after exit-intent dismissal
- Remove unused isAttentionOverlayLocked state and subscribe effect
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 3, 2026

Deploy Preview for audacityteam ready!

Name Link
🔨 Latest commit 1c90acb
🔍 Latest deploy log https://app.netlify.com/projects/audacityteam/deploys/69a6a1d47816cc000804bcb7
😎 Deploy Preview https://deploy-preview-72--audacityteam.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: 98 (🟢 up 1 from production)
Accessibility: 98 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@teetow teetow merged commit f257dc9 into main Mar 3, 2026
4 checks passed
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