Hide stars when voting

Created on 28 September 2023, over 1 year ago

Problem/Motivation

Users are changing their mind so fast and are trying to update their vote while still Ajax is processing. It results on confusing them.

Steps to reproduce

Proposed resolution

Let's hide widget when Ajax is processing just as an UX improvement, Ajax should take care double processing by default.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

🇳🇮Nicaragua edysmp Nicaragua

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @edysmp
  • Status changed to Needs review over 1 year ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7
    last update over 1 year ago
    4 pass
  • 🇳🇮Nicaragua edysmp Nicaragua

    The patch.

  • Status changed to Postponed: needs info over 1 year ago
  • 🇺🇸United States tr Cascadia

    Ajax requests are only made when a star is clicked - rolling over or hovering a over a star does not send an ajax request.

    I tried clicking stars rapidly to change my vote rapidly - each click does send an ajax request but I don't see any visual problem - the display always tracks what I'm doing because the client-side Javascript is highlighting the stars as I roll over them.

    So I'm not sure exactly what problem you're seeing.

    Additionally, if I use your patch, all the stars are hidden entirely after the first vote is cast, and I can't see the rating or change the rating after that first click. That's obviously not what anyone wants.

    Can you make a video of the problem you're seeing and give directions for how to reproduce it on a clean site?

  • 🇳🇮Nicaragua edysmp Nicaragua

    attached videos without/with the patch.

    I think i needed more wording to describe the issue.

    The main issue is the second vote attempt is not registered because still processing the first one.

    I think the issue only happens with slow server/internet.

Production build 0.71.5 2024