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

Feature: Provide loading feedback when completing a lesson on a slow connection #4942

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

Conversation

KevinMulhern
Copy link
Member

Because:

  • The complete button will appear to "hang" on slower connections.

This commit:

  • Adds loading spinners to the complete button on lesson and course pages, that will only appear when toggling complete and the connection is slow.
  • Bumps turbo-rails to latest patch version so we can use the :morph option when replacing content with turbo streams and avoid hover flashes on buttons as the content is replaced.
  • Switch the complete button on course pages from links to buttons as they are not making GET requests.
  • Removes some old Stimulus JS hooks for a complete controller that has been removed long ago.

Lesson page loading spinner:

Screen.Recording.2025-02-21.at.16.09.29.mov

Course page loading spinner:

Screen.Recording.2025-02-21.at.16.08.59.mov

@KevinMulhern KevinMulhern force-pushed the feature/complete-button-loading-feedback branch from 314bff6 to 02b84a3 Compare February 21, 2025 16:24
@KevinMulhern KevinMulhern temporarily deployed to odin-review-app-pr-4942 February 21, 2025 16:28 Inactive
…connection

Because:
- The complete button will appear to "hang" on slower connections.

This commit:
- Adds loading spinners to the complete button on lesson and course pages, that will only appear when toggling complete and the connection is slow.
- Bumps turbo-rails to latest patch version so we can use the :morph option when replacing content with turbo streams and avoid hover flashes on buttons as the content is replaced.
- Switch the complete button on course pages from links to buttons as they are not making GET requests.
- Removes some old Stimulus JS hooks for a complete controller that has been removed long ago.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog / Ideas
Development

Successfully merging this pull request may close these issues.

1 participant