Problem/Motivation

During development of the 8.x branch of Search API. We discovered another user for the progress bar component outside of the batch api:
#2252485: Improve UI for server/index summary pages

The progress bar is used to show a static progress, it does not update. So the animation does not make sense

Proposed resolution

Create a new variant class that removes the animation

Remaining tasks

Write a patch

User interface changes

None in core

API changes

A new HTML class

CommentFileSizeAuthor
#87 2277551-87.patch9.67 KBayushmishra206
#87 interdiff_85-87.txt502 bytesayushmishra206
#85 interdiff_84-85.txt1.6 KBatul4drupal
#85 2277551-85.patch9.67 KBatul4drupal
#84 2277551-84.patch9.67 KBranjith_kumar_k_u
#83 2277551-83.patch9.67 KBranjith_kumar_k_u
#77 2277551-77.patch9.67 KBbunty badgujar
#77 interdiff_75-77.txt828 bytesbunty badgujar
#75 2277551-75.patch9.67 KBbunty badgujar
#75 interdiff_72-75.txt4.22 KBbunty badgujar
#72 2277551-72.patch9.29 KBbunty badgujar
#72 interdiff_64-72.txt4.71 KBbunty badgujar
#66 interdiff_64-66.txt1.46 KBsaurabh-2k17
#66 drupal_progress_static-2277551-66.patch5.62 KBsaurabh-2k17
#64 2277551-9.1-64.patch4.01 KBaleevas
#60 2277551-60.drupal.progress-static.patch3.76 KBvacho
#51 2277551-51.drupal.progress-static.patch3.77 KBjoachim
#46 interdiff-2277551.txt1.66 KBsegi
#46 add_a_static_variant-2277551-46.patch3.77 KBsegi
#41 interdiff-39-41.txt532 bytesjp.stacey
#41 add_a_static_variant-2277551-41.patch4.16 KBjp.stacey
#39 add_a_static_variant-2277551-39.patch4.21 KBjp.stacey
#32 static_by_argument-2277551-32.patch3.56 KBx3cion
#32 static_by_argument--$overhaul-2277551-32.patch4.92 KBx3cion
#29 2277551.29.patch3.42 KBalexpott
#29 25-29-interdiff.txt3.76 KBalexpott
#25 add_a_static_variant-2277551-25.patch1.99 KBAnonymous (not verified)
#21 interdiff.txt763 bytesx3cion
#21 2277551-static_by_argument-21.patch1.97 KBx3cion
#15 static_by_argument-2277551-15.patch2.25 KBx3cion
#9 #2277551 static by argument-3.patch2.25 KBx3cion
#4 #2277551 static by argument-2.patch1.98 KBx3cion
#2 #2277551 static by argument.patch1.97 KBx3cion

Comments

draganeror’s picture

Issue tags: +Novice

Tagging...

x3cion’s picture

StatusFileSize
new1.97 KB

Hello everyone,

I'm pretty new to this and I've to admit that I read or found no style guide or anything else.

I made up this patch and a patch for #2252485: Improve UI for server/index summary pages to implement it.

I discovered that the animation is not set for anything but -webkit and -moz, so I think it would be a good idea to do that...? However, I removed them for the static progress bar, just in case.

Of course, I have a patch for that already, too and the problem about the animation going in the wrong direction is no big deal either.
Though if I got it right, changing the animation direction is not part of this issue.

If anything's wrong, please specify what and how to do it better, I'm eager to learn... or so.

x3cion’s picture

Status: Active » Needs review
x3cion’s picture

StatusFileSize
new1.98 KB

I'm sorry for the double post, but I've just read https://drupal.org/coding-standards#indenting and noticed that I used tabs in the CSS, here's the updated patch.

draganeror’s picture

Thanks @x3cion, looks great!

Few more notes:

  1. +++ b/core/modules/system/css/system.theme.css
    @@ -357,6 +357,14 @@ th.checkbox {
    +.progress__bar.static {
    

    We don't want to introduce NEW "static" class into core.

    Use '.progress__bar--static' selector instead '.progress__bar.static'.

    You can see formatting guideline here https://drupal.org/node/1887918#formatting

  2. +++ b/core/modules/system/templates/progress-bar.html.twig
    @@ -17,7 +17,7 @@
    +  <div class="progress__track"><div class="progress__bar {% if static %}static{% endif %}" style="width: {{ percent }}%"></div></div>
    

    Also change this into

    <div class="progress__track"><div class="{% static ? 'progress__bar--static' : 'progress__bar' %}" style="width: {{ percent }}%"></div></div>

x3cion’s picture

I got a question to that.

https://drupal.org/node/1887918#formatting says

<!--
  Modifier classes create component variants; modifier classes must
  be used with the original class in the markup
  -->

Does that mean I would use

<div class="progress__track"><div class="progress__bar {{ static ? 'progress__bar--static' : '' }}" style="width: {{ percent }}%"></div></div>

or something similiar? If i don't use it like this, wouldn't this create duplicate CSS, which probably is not intended?

draganeror’s picture

Seams you're right, I missed that...
So, then would be just:
<div class="progress__track"><div class="progress__bar {% if static %}progress__bar--static{% endif %}" style="width: {{ percent }}%"></div></div>

lewisnyman’s picture

Status: Needs review » Needs work

Yep that makes sense. .progress__bar--static or even .progress--static .progress__bar

x3cion’s picture

Status: Needs work » Needs review
StatusFileSize
new2.25 KB

This patch should take everything in account. I also added the static argument to the documentation comment.

draganeror’s picture

Status: Needs review » Reviewed & tested by the community

Looks prefect :)

draganeror’s picture

Just one tip for the future: theres is convention for patch naming [project_name]-[short-description]-[issue-number]-[comment-number].patch
The acceptable one is also [issue-number]-[short-description]-[comment-number].patch

And file shouldn't start with hash character (it is strange that testing works at all). Should start with small alphabet character or number.

Cheers! :)

lewisnyman’s picture

Status: Reviewed & tested by the community » Needs work

Hey, just two points:

  1. +++ b/core/modules/system/css/system.theme.css
    @@ -357,6 +357,14 @@ th.checkbox {
    +.progress__bar--static.progress__bar {
    

    We don't need to have both classes in the selector. We can just use the --static class.

  2. +++ b/core/modules/system/templates/progress-bar.html.twig
    @@ -9,6 +9,7 @@
    + * - static: If true, use no stripe animation.
    

    This reads a little bit inconsistent compared to the other comments. I would recommend something like "Disable the progress bar animation"

x3cion’s picture

About 1.: Isn't it insecure to rely on the weak precedence of class after class css declaration? .progress__bar--static is a .progress__bar too. If someone changes the order in the css file, it might break the css if we only use .progress__bar--static.

draganeror’s picture

@x3cion no worries, just place your code after .progress__bar too, no one will change order. If so, there will be BUG and issue, and will be fixed again. ;)

x3cion’s picture

StatusFileSize
new2.25 KB

About the convention for patch naming: By "comment-number" you mean the supposed comment number of the post that this patch will be with?

x3cion’s picture

Status: Needs work » Needs review
x3cion’s picture

Assigned: Unassigned » x3cion
draganeror’s picture

About the convention for patch naming: By "comment-number" you mean the supposed comment number of the post that this patch will be with?

Yes. So, even if same patch (the content of file) is uploaded twice, the file name should be updated.

draganeror’s picture

For example, the file name of patch here in this comment should be something like: 2277551-example-patch-name-19.patch

tstoeckler’s picture

+++ b/core/modules/system/templates/progress-bar.html.twig
@@ -17,7 +18,7 @@
+  <div class="progress__track"><div class="progress__bar {% if static %}progress__bar--static{% endif %}" style="width: {{ percent }}%"></div></div>

I'm no Twig expert, but doesn't this leave an empty space in the markup if static is FALSE?

x3cion’s picture

StatusFileSize
new1.97 KB
new763 bytes

Hi,

you're right and it might be a cleaner solution to insert the space only if neccessary, so I changed my patch once more and moved the space inside the condition.

Don't be surprised, but for the sake of testing I'll attach an interdiff too.

lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community

I think this code is correct now. Thanks!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 21: 2277551-static_by_argument-21.patch, failed testing.

Anonymous’s picture

I've taken a look why the patch is failing and it looks like the theme.inc has changed in between and now the patch is out of date.

git  apply -v 2277551-static_by_argument-21.patch 
Checking patch core/includes/theme.inc...
error: while searching for:
      'variables' => array('url' => NULL, 'title' => NULL)
    ),
    'progress_bar' => array(
      'variables' => array('label' => NULL, 'percent' => NULL, 'message' => NULL),
      'template' => 'progress-bar',
    ),
    'indentation' => array(

error: patch failed: core/includes/theme.inc:2582
error: core/includes/theme.inc: patch does not apply

A line has been added on theme.inc:2289

'feed_icon' => array(
      'variables' => array('url' => NULL, 'title' => NULL),
      'template' => 'feed-icon',
    ),
    'progress_bar' => array(
      'variables' => array('label' => NULL, 'percent' => NULL, 'message' => NULL),
      'template' => 'progress-bar',
    ),
Anonymous’s picture

Status: Needs work » Needs review
StatusFileSize
new1.99 KB

I've added an re-roll because the patch was failing.

Bojhan’s picture

Status: Needs review » Reviewed & tested by the community

Looks like the issues are resolved.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

This approach feels the wrong way around - like a double negative. How about having an animate variable that defaults to TRUE and then have a class that adds something rather than removes something.

lewisnyman’s picture

@alexpott I think technically I agree, but I think I always felt that it's important to display the animated progress bar as the 'default recommended progress bar'. Developers should only use the static progress bar in exceptional circumstances.

What do people think?

alexpott’s picture

Status: Needs work » Needs review
StatusFileSize
new3.76 KB
new3.42 KB

Well the current change proposed in #25 doesn't actually work with the ajax form of the progress bar anyway since the html is generated in progress.js.

How about something like this?

lewisnyman’s picture

Status: Needs review » Needs work
+++ b/core/misc/progress.js
@@ -25,6 +25,9 @@
+    if (drupalSettings.progressBarAnimate) {
+      $(this.element).find('div.progress__bar').addClass('progress__bar--animate');
+    }

Ok, this makes sense from an API point of view. I think we can tweak this Javascript to be a little more performant. I'll take a look

star-szr’s picture

Issue tags: +JavaScript
x3cion’s picture

I took the Patch from #29, but it didn't apply properly for theme.inc and batch.inc. I searched and searched why it wouldn't apply properly, but didn't find anything on my side. I patched an up to date working copy and did the rest of the changes manually.

Two little questions:

  1. Why don't you use jQuery object naming convetions like this.$element for example? This would make clear if it's an jQuery object or not. Anyways, from what I see, this.element is initiated as a jQuery object and will always be. Is there a reason it's re-jquerified all the time?
  2. Is there a reason to do div.progress__bar instead of only .progress__bar in the selector? From my understanding of Drupal's Classing Conventions (heh.), it should be clear it can only be this very div.

Ok, so I got two patches here. The thing is, I did the renaming of element to $element and changed the usage of it in all of progress.js, mainly using .find() instead of $(selector, context). I did not change the div.class selectors, as I don't know if I'm already going too far with this one - especially for a ticket that's about a different issue. Since it's already off-topic, I put it in a second patch.

To the real problem that needed work: I integrated the check for drupalSettings.progressBarAnimate into the .html() call. The always-adding of an extra string (: '') should be tolerable, since it circumvents a costly .find().

x3cion’s picture

Status: Needs work » Needs review

The last submitted patch, 32: static_by_argument--$overhaul-2277551-32.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 32: static_by_argument-2277551-32.patch, failed testing.

x3cion queued 29: 2277551.29.patch for re-testing.

The last submitted patch, 29: 2277551.29.patch, failed testing.

jp.stacey’s picture

Assigned: x3cion » Unassigned
Issue tags: +SprintWeekend2016

Unassigning from previous owner, as it's been left for a year or so; looking at this for Sprint Weekend.

jp.stacey’s picture

Status: Needs work » Needs review
StatusFileSize
new4.21 KB

A lot has changed since the patch in #29, so much that it's not really possible to create an interdiff (as it won't apply HEAD any more.) But please find attached an updated patch, that just takes #29 and makes the following changes:

  • core/includes/theme.inc: standardizes the Implements comment.
  • core/misc/progress.js: copes with the fact the existing code now uses Drupal.theme('progressBar').
  • core/modules/system/templates/progress-bar.html.twig: the CSS for this is now in classy at core/themes/classy/css/components/progress.css; also made the [dir=rtl] animation CSS dependent on the new --animate class.

Status: Needs review » Needs work

The last submitted patch, 39: add_a_static_variant-2277551-39.patch, failed testing.

jp.stacey’s picture

StatusFileSize
new4.16 KB
new532 bytes

Among other things, adding of Javascript settings has changed. Re-rolling patch to hopefully deal with that bit (not clear where all the errors are coming from.)

jp.stacey’s picture

Status: Needs work » Needs review
droplet’s picture

  1. +++ b/core/includes/theme.inc
    @@ -1837,3 +1837,14 @@ function drupal_common_theme() {
    +  $variables['#attached']['drupalSettings']['progressBarAnimate'] = $variables['animate'];
    
    +++ b/core/misc/progress.js
    @@ -53,6 +53,11 @@
    +    if (drupalSettings.progressBarAnimate) {
    +      $(this.element).find('div.progress__bar').addClass('progress__bar--animate');
    +    }
    
    +++ b/core/modules/system/templates/progress-bar.html.twig
    @@ -17,7 +21,7 @@
    +  <div class="progress__track"><div class="progress__bar{% if animate %} progress__bar--animate{% endif %}" style="width: {{ percent }}%"></div></div>
    

    Anyone can explain these lines ? Why both in front & backend.

  2. +++ b/core/misc/progress.js
    @@ -53,6 +53,11 @@
    +    if (drupalSettings.progressBarAnimate) {
    +      $(this.element).find('div.progress__bar').addClass('progress__bar--animate');
    +    }
    
  3. no DIV scoped .progress__bar

  4. +++ b/core/themes/classy/css/components/progress.css
    @@ -44,22 +44,26 @@
    +  -webkit-animation: animate-stripes 3s linear infinite;
    +  -moz-animation: animate-stripes 3s linear infinite;
    

    missing standard one

  5. +++ b/core/themes/classy/css/components/progress.css
    @@ -44,22 +44,26 @@
    +  animation-direction: reverse;
    

    standard rule should be the last one in ordering.

  6. +++ b/core/themes/classy/css/components/progress.css
    @@ -44,22 +44,26 @@
    +  -moz-animation-direction: reverse;
    

    no -moz i think

David Hernández’s picture

Status: Needs review » Needs work
segi’s picture

Assigned: Unassigned » segi
segi’s picture

StatusFileSize
new3.77 KB
new1.66 KB

I think @jp.stacey add the progress__bar--animate class on the backend and the frontend side as well, because he prepared for no-js case.

segi’s picture

Status: Needs work » Needs review
jp.stacey’s picture

@segi @droplet I was only re-rolling the patch, so I can't comment on why that was there! But, yes, as @segi says there are already two instances of the progress bar markup, for when Javascript needs to create a progress bar for itself. So that does make sense.

emma.maria’s picture

Assigned: segi » Unassigned

Setting this issue to unassigned to open up @segi's patch for review :)

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

joachim’s picture

Component: Seven theme » theme system
Status: Needs review » Needs work
StatusFileSize
new3.77 KB

This works great. Spoke too soon! The 'available updates' progress bar (at admin/reports/updates) no longer animates with this patch!

The attached is a plain reroll of #46.

However... it seems a bit odd to me to have the striping show when the bar is un-animated. It seems to me that their whole purpose is to be part of the animated effect.

Search API's version of a static progress bar removes the background too, with its own CSS.

manjit.singh’s picture

Status: Needs work » Needs review

triggering the test bot.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

joelpittet’s picture

Status: Needs review » Needs work

Back to needs work for #51

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

vacho’s picture

Issue tags: +Needs reroll
vacho’s picture

Issue tags: -Needs reroll
StatusFileSize
new3.76 KB

Only patch reroll

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

narendra.rajwar27’s picture

Assigned: Unassigned » narendra.rajwar27
Issue tags: -JavaScript +JavaScript
narendra.rajwar27’s picture

Assigned: narendra.rajwar27 » Unassigned
aleevas’s picture

Version: 8.8.x-dev » 9.1.x-dev
Issue tags: -SprintWeekend2016
StatusFileSize
new4.01 KB

Only re-rolled latest patch onto 9.1 branch

saurabh-2k17’s picture

Assigned: Unassigned » saurabh-2k17
saurabh-2k17’s picture

Status: Needs work » Needs review
StatusFileSize
new5.62 KB
new1.46 KB

I have updated the patch as earlier one failed.

saurabh-2k17’s picture

Assigned: saurabh-2k17 » Unassigned

Status: Needs review » Needs work

The last submitted patch, 66: drupal_progress_static-2277551-66.patch, failed testing. View results

narendra.rajwar27’s picture

Assigned: Unassigned » narendra.rajwar27
narendra.rajwar27’s picture

Assigned: narendra.rajwar27 » Unassigned
joachim’s picture

The documentation in the base template in core/modules/system/templates/progress-bar.html.twig needs to be updated too:

/**
 * @file
 * Theme override for a progress bar.
 *
 * Note that the core Batch API uses this only for non-JavaScript batch jobs.
 *
 * Available variables:
 * - label: The label of the working task.
 * - percent: The percentage of the progress.
 * - message: A string containing information to be displayed.
 */
bunty badgujar’s picture

Assigned: Unassigned » bunty badgujar
Status: Needs work » Needs review
StatusFileSize
new4.71 KB
new9.29 KB

Test case failure fixed.

In #71

The documentation in the base template in core/modules/system/templates/progress-bar.html.twig needs to be updated too:

Already added in #64

  * - label: The label of the working task.
  * - percent: The percentage of the progress.
  * - message: A string containing information to be displayed.
+ * - animate: If set, enable the progress bar animation.
+ *
+ * @see template_preprocess_progress_bar()
+ * @see progress.js
  *
  * @ingroup themeable
  */
joachim’s picture

Status: Needs review » Reviewed & tested by the community

Oops, I must have missed that in the patch!

Tests pass, LGTM.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/misc/progress.js
@@ -16,6 +16,11 @@
+
+    // Implement optional animation of progress bar.
+    if (drupalSettings.progressBarAnimate) {
+      $(this.element).find('progress__bar').addClass('progress__bar--animate');
+    }

We need to change progress.es6.js and then use the js build tools to update this file. See https://www.drupal.org/node/2815083

yarn run v1.19.1
$ cross-env BABEL_ENV=legacy node ./scripts/js/babel-es6-build.js --check --file /Users/alex/dev/sites/drupal8alt.dev/core/misc/progress.es6.js
[10:14:32] '/Users/alex/dev/sites/drupal8alt.dev/core/misc/progress.es6.js' is being checked.
[10:14:33] '/Users/alex/dev/sites/drupal8alt.dev/core/misc/progress.es6.js' is not updated.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

profiles/demo_umami/themes/umami/css/classy/components/progress.css
 53:3  ✖  Expected "-webkit-transition" to come before "animation"   order/properties-order
 60:1  ✖  Expected empty line before at-rule                         at-rule-empty-line-before

PHPCS: core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php passed

themes/bartik/css/classy/components/progress.css
 53:3  ✖  Expected "-webkit-transition" to come before "animation"   order/properties-order
 60:1  ✖  Expected empty line before at-rule                         at-rule-empty-line-before


themes/classy/css/components/progress.css
 53:3  ✖  Expected "-webkit-transition" to come before "animation"   order/properties-order
 60:1  ✖  Expected empty line before at-rule                         at-rule-empty-line-before


themes/seven/css/classy/components/progress.css
 53:3  ✖  Expected "-webkit-transition" to come before "animation"   order/properties-order
 60:1  ✖  Expected empty line before at-rule                         at-rule-empty-line-before

The css changes are also not compatible with our rules.

bunty badgujar’s picture

Status: Needs work » Needs review
StatusFileSize
new4.22 KB
new9.67 KB

Thanks @alexpott for review. Adding suggestion from #74.

Status: Needs review » Needs work

The last submitted patch, 75: 2277551-75.patch, failed testing. View results

bunty badgujar’s picture

Status: Needs work » Needs review
StatusFileSize
new828 bytes
new9.67 KB

bad test bot :D

Adding correct hash for file.

bunty badgujar’s picture

Assigned: bunty badgujar » Unassigned
bunty badgujar’s picture

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

guilhermevp’s picture

Since patch applied cleanly, I just queued a retest of #77 for 9.2.x.

nod_’s picture

Status: Needs review » Needs work

:)

ranjith_kumar_k_u’s picture

StatusFileSize
new9.67 KB

try to fix the custom commands failure

ranjith_kumar_k_u’s picture

StatusFileSize
new9.67 KB

Updated

atul4drupal’s picture

Status: Needs work » Needs review
StatusFileSize
new9.67 KB
new1.6 KB

Fixing the checksum error. Hopefully should be green.

renatog’s picture

Status: Needs review » Needs work
Issue tags: +Grammar

// Implement optional animation of progress bar.
On this case we should use
// Implements optional animation of progress bar.

ayushmishra206’s picture

Status: Needs work » Needs review
StatusFileSize
new502 bytes
new9.67 KB

Made the change suggested in #86. Please review.

adalbertov’s picture

Status: Needs review » Reviewed & tested by the community

Hello, just tried patch #87. Didn't found any more grammar errors, and the patch seems to be working ok, so I'm moving the issue to RTBC

renatog’s picture

Issue tags: -Grammar

I fully agree. +1 to it

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 87: 2277551-87.patch, failed testing. View results

benjifisher’s picture

Please do not ask the testbot to try again until #3207086: [HEAD BROKEN] Consistent failure in MonthDatePluginTest is fixed.

spokje’s picture

Status: Needs work » Reviewed & tested by the community

#3207086: [HEAD BROKEN] Consistent failure in MonthDatePluginTest was committed. Ordered retest and put this issue back to RTBC per #88.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -Novice
  1. +++ b/core/includes/theme.inc
    @@ -2135,3 +2135,14 @@ function drupal_common_theme() {
    +  $variables['#attached']['drupalSettings']['progressBarAnimate'] = $variables['animate'];
    

    How about scenarios where multiple progress bars exist on same page?

  2. +++ b/core/misc/progress.es6.js
    @@ -57,6 +57,11 @@
    +      $(this.element).find('progress__bar').addClass('progress__bar--animate');
    

    Is there a way this could be added to Drupal.theme.progressBar since the markup should be overridable.

  3. +++ b/core/modules/system/templates/progress-bar.html.twig
    @@ -17,7 +21,7 @@
    +  <div class="progress__track"><div class="progress__bar{% if animate %} progress__bar--animate{% endif %}" style="width: {{ percent }}%"></div></div>
    

    This changes the default progress bar to be without animation which doesn't match with the issue summary which says it should be a new variant. This would lead into change of behavior for any template overrides.

alexpott’s picture

Issue tags: +Needs tests

@lauriii nice catch on the multiple bars on the same page. That scenario feels worth adding a test for.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.