Tooltip Flickering & EDGE_CONFIG Handling #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1. Tooltip Flickering Issue
The Problem:
The tooltips on the main page, such as those on the colored dots in the top-left corner of the main window, would disappear the moment a user's mouse cursor left the trigger element. This made it impossible to move the mouse onto the tooltip to read its content, creating a poor user experience.
The Fix:
The issue was resolved by implementing a more robust hover-state management system for the Tooltip component.
2. EDGE_CONFIG Handling Error
Issue #27
The Problem:
The application would crash on startup if the
EDGE_CONFIG
environment variable was not set in the environment. This variable is intended to be optional for loading special configurations (like those for enterprise users), but the code was written in a way that required it to be present, preventing developers or users on standard plans from running the application easily.The Fix:
The fix was made in the server-side code that handles session creation. The part of the code that attempts to read the Vercel Edge Config is now wrapped in a
try...catch
block.EDGE_CONFIG
variable is present and valid, the application uses it.