Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WCA Live: Add small pulse loader icon for WebSocket connection status #10835

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gregorbg
Copy link
Member

A little late night fun :D
Bildschirmaufnahme_20250214_215900.webm

The circle actually changes color and stops pulsating when the Socket gets disconnected for any reason:
Bildschirmaufnahme_20250214_220235.webm

Unfortunately ActionCable does not expose any actual error information, that means we cannot show the user why the connection broke away. But the transition itself is fully automatic!

In terms of reviewing, there is a boolean toggle looping between true and false. That is because in SemUI, unidirectional transitions (transitions that do not make a clear distinction between "on" and "off", they "just play") do not differentiate between true and false. They just play the animation whenever the visible value changes: https://react.semantic-ui.com/modules/transition/#explorers-transition-explorer

@gregorbg gregorbg force-pushed the feature/wca-live-connection-pulse branch from 0351325 to 6e7ee74 Compare February 19, 2025 07:04
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