Skip to content

Improve SignalR Connection State UX with Transitions#2579

Merged
pkuehnel merged 2 commits intofeat/addConnectingOnHomefrom
improve-signalr-ux-9244653893447535974
Feb 27, 2026
Merged

Improve SignalR Connection State UX with Transitions#2579
pkuehnel merged 2 commits intofeat/addConnectingOnHomefrom
improve-signalr-ux-9244653893447535974

Conversation

@pkuehnel
Copy link
Owner

Improved the UX of the SignalR connection status alert by replacing abrupt visibility toggles with smooth CSS transitions. The alert now morphs between 'Reconnecting' and 'Connected' states and fades out gently, avoiding layout shifts.


PR created automatically by Jules for task 9244653893447535974 started by @pkuehnel

…moother UX

- Replaced boolean visibility flags with a state-based approach (`ConnectionUiState`) and CSS transitions.
- Added CSS for fading and sliding transitions to prevent layout jumps.
- Ensured the component morphs between states (Reconnecting -> Connected) and fades out gracefully.
- Removed jumping behavior by wrapping the alert in a transition container.

Co-authored-by: pkuehnel <35361981+pkuehnel@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist
Copy link

Warning

Gemini is experiencing higher than usual traffic and was unable to create the summary. Please try again in a few hours by commenting /gemini summary.

@pkuehnel
Copy link
Owner Author

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The code changes modify the SignalRConnectionStateComponent to improve the visibility and user experience of connection status alerts. The changes include introducing a ConnectionUiState enum to manage the component's state, using CSS transitions for smoother appearance and disappearance of alerts, and adjusting the logic for displaying reconnection and connection success messages. The reviewer suggests defining the 500ms delay for the CSS transition as a named constant for better maintainability.

});

// Wait for CSS transition to finish before hiding logically (optional, but cleaner)
await Task.Delay(500, token);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The 500 millisecond delay here is a magic number that directly corresponds to the CSS transition duration. It would be more maintainable to define this as a named constant, perhaps CssTransitionDurationMilliseconds, to ensure consistency and easier updates if the CSS transition time ever changes.

            await Task.Delay(500, token);

@pkuehnel pkuehnel force-pushed the improve-signalr-ux-9244653893447535974 branch from c7e9276 to 093a49a Compare February 27, 2026 19:03
@pkuehnel pkuehnel merged commit 45ab3b1 into feat/addConnectingOnHome Feb 27, 2026
1 check passed
@pkuehnel pkuehnel deleted the improve-signalr-ux-9244653893447535974 branch February 27, 2026 19:03
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