-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Description
Variant
Desktop app (Windows)
Affected area
Other
Bug description
Title: Good News variant can trap navigation and prevent switching back to other variants
Summary
Switching to the Good News variant can leave the app stuck there, with the top-left variant tabs no longer working.
Environment
- OS: Windows
- Run mode: local development server
- Browser: Chromium-based browser
- App context: localhost development session with variant switching from the header
Steps to Reproduce
- Start the app locally.
- Open the default variant.
- Click the
Good Newstab in the upper-left variant switcher. - Try switching back to
Finance,Full, or another variant.
Expected Behavior
The app should switch cleanly between variants in both directions.
Actual Behavior
The app can become stuck on Good News, and the other variant tabs stop responding.
Reproduction Notes
Two separate problems appear to contribute to this:
- A full-screen layer warning overlay can appear during initial map/layer hydration and intercept pointer events, which blocks clicks on the variant switcher.
- On
happy/Good News, startup can throw inside the live news panel path because that variant has no built-in default live channels, but the panel initialization assumes at least one channel exists.
When that second error occurs, app initialization is interrupted and the variant click handlers do not finish wiring up, leaving the header variant links effectively inert.
Impact
- User-facing navigation failure
- Variant switching appears broken
- Easy to hit during normal exploration of the app
- Can make the UI feel frozen even though the app is still loaded
Suggested Fix Direction
- Do not show the layer-limit warning during initial hydration; only show it after the user actually increases the active layer count.
- Make the live news panel resilient when a variant has zero default channels.
Validation
After applying those two fixes locally, variant switching worked correctly:
full -> happyhappy -> finance
No click-blocking overlay appeared during variant load, and the stored variant updated correctly after switching back.
Steps to reproduce
- Start the app locally.
- Open the default variant.
- Click the
Good Newstab in the upper-left variant switcher. - Wait for the
Good Newsvariant to load. - Try clicking
Finance,Full, or another variant tab in the upper-left header. - Observe that the app can remain stuck on
Good Newsand the other variant tabs stop responding.
Expected behavior
The app should switch cleanly between variants, and selecting Good News should not prevent the user from switching back to Finance, Full, or any other variant.
Screenshots / Console errors
No response
Browser & OS
No response