Closed (fixed)
Project:
Views Bulk Operations (VBO)
Version:
4.2.x-dev
Component:
Theming
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2023 at 12:49 UTC
Updated:
10 Jul 2023 at 13:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
eduardo morales albertiComment #4
graber commentedI think this looks bad but let's wait for feedback from others.
Comment #5
crzdev commentedThanks Graber, can you be a bit more specific about "this looks bad", definitely not for final non technical users as it is an UX improvement, besides using Drupal.ajax wrapper instead jQuery that is being replaced progressively in favor of vanilla JS, so when core implement that, in case wrapper still exists, no change will be required related to main petition itself.

Comment #6
graber commentedSo there’s a blink and a throbbed for a fraction of a second that is completely not needed and may be confusing. I understand it may be an improvement when a site is slow but in most cases this request is super fast and it’s rather something no one wants to see.
I think developers should rather improve performance. The only way I could see this released is by being a configurable feature, turned off by default.
Comment #7
crzdev commentedThat was a prove of concept site with just VBO & less than 35 nodes, into serious sites with thousands of contents and translations, petitions will be considerably slower, even with several cache layers, at least until that cache is calculated. That is an ajax petition that refreshes the selection counter & is a Drupal standard (you can see exact same behaviour when uploading a file, into views page configuration or when ajax is enabled into final display, or many other components), not having it can be confusing for end user editors as mentioned abobe.
Either way, agree to make it configurable, optional & disabled by default.
Even animation can be added to loader with fade in & fade out transition & practically won't be seen if the petition is too fast.
Thanks for the quick feedback.
Comment #8
graber commentedYes, the Ajax petition is great, thanks, I think I’ll merge it soon without a throbber if the setting part will not land here.
Comment #9
crzdev commentedGreat! Moving to Needs work to implement throbber as optional, disabled by default & configurable.
Comment #10
eduardo morales albertiWhy it should be configurable?
If the website is slow the throbber will appear, and the user will notice that the counter is loading, but if the page is faster, the user will not notice the throbber.
It is the standard for Ajax petitions on Drupal.
Comment #11
graber commented@Eduardo #6.
Comment #14
eduardo morales albertiWhy the commit is "authored by CRZDEV"? I create the issue and I create the MR with the changes https://git.drupalcode.org/project/views_bulk_operations/-/merge_request...
At least add me as a co-author.
Comment #15
graber commentedOh dear, sorry, somehow I looked at the discussion and thought CRZDEV was talking like he was the author in #5 and haven’t looked higher 😬 also MR doesn’t set the author automatically as a patch would. We can’t rewrite git history on drupal.org repos but I’ll think of something to make this right.
Comment #18
graber commentedOk, had to revert and recommit with the correct author. Thanks and sorry again!
Comment #19
eduardo morales albertiThank you Graber!
Comment #20
crzdev commentedReally i was co-author of that commit too, i am comfortable with that type of accreditation (commit and revert), thanks for including that part anyway!
Comment #22
eduardo morales albertiAdd an option on the VBO View field for the ajax loader.

Comment #23
graber commented1. New config schema missing.
2. Let's add that setting to test views with any value.
Comment #24
eduardo morales alberti1. Added the new field to the schema.
2. Added setting to the test views.
Could you review Graber?
Comment #25
eduardo morales albertiI am not sure how to update the configuration to add this field on the views with views_bulk_operations field.
I will try to replicate something like the update on the install to add this field to all views.
Comment #26
eduardo morales albertiAdded update to add the ajax_loader new config to the views with views_bulk_operations.
Comment #27
graber commentedCode looks good!
Can someone test this?
Scope:
Comment #28
crzdev commentedLGTM! (Check added comment it is just an small adjust)
Comment #30
graber commented