Problem/Motivation

When installing modules through the Project Browser (this may only happen with max_selections > 1, not sure) - during the install, three dots animate and move next to the install button in the bar at the bottom.

Steps to reproduce

Pick some projects to install, then hit the install button.

Proposed resolution

Just remove the animated three dots - we have the spinner. (In a future issue we'll move the spinner down into the bar)

CommentFileSizeAuthor
#6 Issue-3504656-after.png25.56 KBsandip
#6 Issue-3504656-before.png25.54 KBsandip
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

chrisfromredfin created an issue. See original summary.

omkar-pd made their first commit to this issue’s fork.

sandip’s picture

Assigned: Unassigned » sandip

Hi @omkar-pd,

Thank you for your work on this. However, there’s still one more thing left to address. While you have removed the .pb-elipsis class from the CSS, we also need to remove it where it was attached with the install button. i am working on this.

sandip’s picture

Assigned: sandip » Unassigned
Status: Active » Needs review

Please review the changes.

sandip’s picture

StatusFileSize
new25.54 KB
new25.56 KB

Attaching before and after SS for better understanding.

utkarsh_33’s picture

Status: Needs review » Reviewed & tested by the community

Can you also update the SS when max_selections > 1?

utkarsh_33’s picture

Manually tested this and the code changes looks good to me.The three dots don't appear in both cases.

sandip’s picture

Hi @utkarsh_33, I am not getting any option in Project Browser UI to select multiple module to be installed (e.g. max_selections > 1). Can you guide me so i can take the SS and upload here too.

phenaproxima made their first commit to this issue’s fork.

chrisfromredfin’s picture

Status: Reviewed & tested by the community » Needs work

Moving back to NW.

You can set max_selections to one with drush or some other way to edit your config:
drush cset -y project_browser.admin_settings max_selections 1

This completely removes the dancing dots, even when we need them, which is when max_selections is 1.

Alternatively, the spinner we use could be put up when max_selections = 1, and that would also be an OK alternative (perhaps even better, meaning consistent UI both ways).

utkarsh_33’s picture

Status: Needs work » Needs review

Only showing the dancing dots when max_selections is 1.

sandip’s picture

Hi @utkarsh_33, I noticed that when MAX_SELECTIONS > 1, an unnecessary empty class attribute is being added to the <span>. To address this, I propose using the following approach:

<span class:pb-ellipsis={MAX_SELECTIONS === 1}>{message}</span>

This ensures that the class attribute is only included when MAX_SELECTIONS === 1, resulting in cleaner HTML output. Could you please share your thoughts on this solution?

utkarsh_33’s picture

I completely agree with #13.I overlooked that.I have added what you suggested.

sandip’s picture

Status: Needs review » Reviewed & tested by the community

LGTM :)
Moving to RTBC++

chrisfromredfin’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the look, Sandip! Happy to have you here (especially if you have some Svelte chops!) :)

sandip’s picture

Thank you @chrisfromredfin! Your appreciation means a lot to me. I’m still new to Svelte—I picked it up while working on this issue—but I’m excited to explore it further and apply it to future issues in Project Browser.
Thanks again 😄

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.