As mentioned in #2041793: install-page.html.twig markup and CSS

When testing this, I noticed that update.php and install.php are now wildly out of sync with each other in terms of look and feel. Is there a separate issue about cleaning that up?

Blue background vs. not, checkboxes vs. not, etc.

CommentFileSizeAuthor
#56 Update_page.png48.64 KBStuartJNCC
#49 Screen Shot 2014-03-25 at 1.18.10 PM.png82.79 KBwebchick
#49 Screen Shot 2014-03-25 at 1.17.28 PM.png122.01 KBwebchick
#49 Screen Shot 2014-03-25 at 1.17.36 PM.png95.57 KBwebchick
#44 update_php-redesign-2169765-44.patch16.77 KBphilipz
#38 update_php-redesign-2169765-37.patch16.45 KBc_lehel
#34 update_php-redesign-2169765-34.patch16.59 KBSutharsan
#31 update_php-redesign-2169765-31.patch16.45 KBphilipz
#31 interdiff.txt441 bytesphilipz
#30 update_php-redesign-2169765-30.patch16.02 KBSutharsan
#28 update_php-redesign-2169765-28.patch16.16 KBSutharsan
#24 Zrzut ekranu 2014-02-15 o 12.44.02.png417.88 KBphilipz
#23 update_php-redesign-2169765-23.patch16.72 KBphilipz
#23 interdiff.txt1.91 KBphilipz
#21 update_php-redesign-2169765-21.patch16.6 KBphilipz
#21 interdiff.txt6.93 KBphilipz
#19 fake-update-2169765-do-not-test.patch347 bytesLewisNyman
#18 Screen Shot 2014-02-10 at 21.08.07.jpg194.9 KBLewisNyman
#17 update_php-redesign-2169765-17.patch13.82 KBphilipz
#13 update_php-redesign-2169765-13.patch8.23 KBphilipz
#13 interdiff.txt887 bytesphilipz
#13 Zrzut ekranu 2014-01-16 o 09.56.15.png48.37 KBphilipz
#12 update_php-redesign-2169765-12.patch8.21 KBckrina
#12 update_php-redesign-2169765-12B-firefox.png83.18 KBckrina
#12 update_php-redesign-2169765-12A-firefox.png142.69 KBckrina
#9 update_php-redesign-2169765-7B-firefox.png80.46 KBckrina
#9 update_php-redesign-2169765-7A-firefox.png140.41 KBckrina
#8 update_php-redesign-2169765-7.patch8.58 KBckrina
#2 update_php_redesign.png98.85 KBphilipz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

Yeah, specifically I thought the task completion-related design could really stand to be unified. I agree we don't need to be as "POW!" about it since this is ultimately a maintenance task, but it's really weird to have two very different designs for tracking "you're at step 1 of N." Also weird to see Druplicon in one and not the other.

philipz’s picture

FileSize
98.85 KB

The installation design feels about 'loud' for update.php but we could have a tweaked version that's a little calmer.

So something in this direction?

update.php redesign

webchick’s picture

Ooooh! Maybe! That looks really nice. Ideally, whatever we did here would apply to all maintenance pages. It makes sense to one-off the installer, but not sure about update vs. 'site down' vs. 'omg something happened' :)

philipz’s picture

LewisNyman’s picture

@philipz Great, pretty much. I think the first step would be component-izing the install-page.css file so elements like the columns, progress steps, and the white wrapper can be reused here. It would be nice if we could get #2017257: Create generic layout classes in first.

ckrina’s picture

Assigned: Unassigned » ckrina

Starting to work on that.

ckrina’s picture

Changes done:
- Updated template maintenance-page.html.twig to follow markup from install-page.html.twig.
- Updated seven/style.css with styles from install-page.css
- Updated file update.php to use "button--primary" class instead "button-primary" for the input.

ckrina’s picture

Assigned: ckrina » Unassigned
Status: Active » Needs review
FileSize
8.58 KB
ckrina’s picture

ckrina’s picture

Not sure if the
element should be the {{ title }} or the {{ site_name }}. The #7 patch is made with the {{ site_name }} because on some steps the title changes to "home". See attached file update_php-redesign-2169765-7B-firefox.png.

The last submitted patch, 8: update_php-redesign-2169765-7.patch, failed testing.

ckrina’s picture

Moved the title of the page to the header like in design.

philipz’s picture

It looks really good! Two small things I would change:
1. Move and indent {{ page_top }} - see interdiff.txt.
2. Consider min-height for l-container. After jumping from first page to "No updates..." the window jumps suddenly and becomes small and still centered vertically. This looks bad IMO. It should be as high as first step.

No min height on update page summary

The last submitted patch, 12: update_php-redesign-2169765-12.patch, failed testing.

LewisNyman’s picture

Status: Needs review » Needs work

It would be nice if we could move this CSS out of style.css but ideally the two pages could share the same CSS as they are so similar.

philipz’s picture

Assigned: Unassigned » philipz

I'm starting to work on it.

philipz’s picture

Assigned: philipz » Unassigned
Status: Needs work » Needs review
FileSize
13.82 KB
  1. Moved most of css from install-page.css to new maintenance-page.css.
  2. Task list styles are shared although I haven't changed install-task-list class to task-list. This could be a follow up if decided so.
  3. maintenance-page.html.twig is almost identical to install-page.html.twig. We could even make them one twig template in follow up. Same goes with install-page.css which could be merged into maintenance-page.css.
  4. Layout classes are shared now in maintenance-page.css.
  5. Removed some unused styles for #page and #content from install-page.css.
  6. Prettier maintenance background with gradient and noise like install page but gray.
LewisNyman’s picture

Status: Needs review » Needs work
FileSize
194.9 KB

Oooh I like it! Just a few things really:

Visually

  • The background is better but the noise seems more visible than on the install page, maybe too much but that's my personal taste. I'd either darken the grey or reduce the noise to make it a little bit more subtle.
  • I noticed the buttons on the first step isn't a primary button, we could also do that here but we can move that to a separate issue if you'd prefer
  • The indentation of the ol on the first page is massive, it looks like we need to set ol { padding: 0; } in seven.base.css

Mobile only

  • It looks like we've lost some bottom padding on both update and install
  • The install process hides the progress steps and uses JS to add progress numbers to the page, can we add that to the update process to?

Code review

+++ b/core/themes/seven/maintenance-page.css
@@ -0,0 +1,199 @@
+ .task-list,
+ .install-task-list {

I don't think we need to have two separate classes for the same component. We could always add task-list--install to the element on the installer page if we need to tweak it, but I can't see any need for it.

LewisNyman’s picture

FileSize
347 bytes

By the way, here's a patch to add a fake update hook for anyone wanting to test this out.

philipz’s picture

Assigned: Unassigned » philipz

All good catches :) I have most of them fixed now and patch is coming soon.

philipz’s picture

Assigned: philipz » Unassigned
Status: Needs work » Needs review
FileSize
6.93 KB
16.6 KB

Fixed:

  1. The background is darker now so the noise is down but I liked lighter background better
  2. Primary button fixed, it got left out from #13
  3. ol identation fixed.
  4. Mobile bottom padding added
  5. Steps in mobile working the same as install page now
  6. install-task-list class removed both from css and theme function. Moreover I've changed the variant (if defined at any point in future) to task-list--[variant] in theme function.

I expect some failing tests now but lets see what happens :)

LewisNyman’s picture

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

Only one piece of code review, which I probably should of mentioned before.

+++ b/core/includes/theme.maintenance.inc
@@ -112,7 +112,7 @@ function theme_task_list($variables) {
   if (isset($variables['variant'])) {
-    $class = $variables['variant'] . '-task-list';
+    $class = 'task-list--' . $variables['variant'];

This class variant stuff was only added because update and install had completely different task list styles. Now that they match we can probably remove that code completely

A few “out there” things popped into my head while looking at the design that I'd like your opinion on:

  1. The update process is a lot less cheerful and friendly than the install process. The rounded corners on the container don't make as much sense. Maybe we should remove/reduce them?
  2. Some of the brighter colours also feel our of place, maybe we could remove the blue heading colour or even produce a duller version of the progress bar? Just thinking out loud.
  3. What if the friendly blue install background came back if the updates were successful? It would like a celebration.
philipz’s picture

In attached patch:

  • task-list--variant functionality is gone
  • maintanance background is lighter and noise is removed again.
  1. Regarding cheerfulness: I think the lighter background improves that a lot. I like the rounded corners but most of all it's just consistent with the install page which is important too. Why do you feel they don't make much sense here? If you think they should be removed in update I guess the same goes for install page.
  2. The blue colors in heading or button make it look better I think and I think some blue color is needed here anyway - it's Drupal:)
  3. If any background color change should indicate success I say it would be green. First because It's the success color but also I think this page should never look like install page anyway
philipz’s picture

Status: Needs work » Needs review
FileSize
417.88 KB

A quick mockup of green background makes me sure it's a bad idea :)

LewisNyman’s picture

Status: Needs review » Reviewed & tested by the community

Regarding cheerfulness: I think the lighter background improves that a lot. I like the rounded corners but most of all it's just consistent with the install page which is important too. Why do you feel they don't make much sense here? If you think they should be removed in update I guess the same goes for install page.

Only because rounded corners imply friendlyness and a safer environment, which update.php is not. They were rough ideas though, I don't feel strongly about any of them.

We've made enough improvements and iterations here. Let's commit this, if we want a further discussion on the background later we can open a follow up.

The latest patch works great, code is good. RTBC.

LewisNyman’s picture

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

update_php-redesign-2169765-23.patch no longer applies.

error: patch failed: core/themes/seven/seven.theme:15
error: core/themes/seven/seven.theme: patch does not apply

Sutharsan’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
16.16 KB

Patch #23 rerolled.

seven_library_info() got replaced by seven.libraries.yml in #1996238: Replace hook_library_info() by *.libraries.yml file.
Someone with inside knowledge should check if the replaced if the changes in seven_library_info() are fully replaced by the configuration in seven.libraries.yml.

Patch #23

diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme
index 409632b..b3dbb06 100644
--- a/core/themes/seven/seven.theme
+++ b/core/themes/seven/seven.theme
@@ -15,6 +15,14 @@ function seven_library_info() {
   $path = drupal_get_path('theme', 'seven');
 
   $libraries['install-page'] = array(
+    'css' => array(
+      $path . '/install-page.css' => array(
+        'group' => CSS_AGGREGATE_THEME,
+      ),
+    ),
+  );
+
+  $libraries['maintenance-page'] = array(
     'version' => \Drupal::VERSION,
     'js' => array(
       $path . '/js/mobile.install.js' => array(
@@ -22,7 +30,7 @@ function seven_library_info() {
       ),
     ),
     'css' => array(
-      $path . '/install-page.css' => array(
+      $path . '/maintenance-page.css' => array(
         'group' => CSS_AGGREGATE_THEME,
       ),
     ),

seven.libraries.yml

install-page:
  version: VERSION
  js:
    js/mobile.install.js: {}
  css:
    theme:
      install-page.css: {}
  dependencies:
    - system/maintenance

drupal.nav-tabs:
  version: VERSION
  js:
    js/nav-tabs.js: {}
  dependencies:
    - core/matchmedia
    - core/jquery
    - core/drupal
    - core/jquery.once
    - core/jquery.intrinsic

Status: Needs review » Needs work

The last submitted patch, 28: update_php-redesign-2169765-28.patch, failed testing.

Sutharsan’s picture

Status: Needs work » Needs review
FileSize
16.02 KB

Again, reroll of #23 patch.

philipz’s picture

Nice re-roll! I didn't know about libraries.yml but I love it :) This requires adding maintenance section to libraries.yml I guess... I hope it is ok like this.
Other than that still looks good.

LewisNyman’s picture

Status: Needs review » Reviewed & tested by the community

Good stuff. I had another look over it. The patch is applying fine.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

update_php-redesign-2169765-31.patch no longer applies.

error: patch failed: core/update.php:210
error: core/update.php: patch does not apply

Sutharsan’s picture

Status: Needs work » Needs review
FileSize
16.59 KB

Rerolled #31 patch

Status: Needs review » Needs work

The last submitted patch, 34: update_php-redesign-2169765-34.patch, failed testing.

c_lehel’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 34: update_php-redesign-2169765-34.patch, failed testing.

c_lehel’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
16.45 KB

Rerolled.

k_zoltan’s picture

Assigned: Unassigned » k_zoltan
k_zoltan’s picture

Assigned: k_zoltan » Unassigned

I couldn't apply the patch. there were errors while apply the part with the seven.theme file

philipz’s picture

Assigned: Unassigned » philipz
Status: Needs review » Needs work

I thought you assigned for re-roll :) I'll do it today then.

philipz’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 38: update_php-redesign-2169765-37.patch, failed testing.

philipz’s picture

Assigned: philipz » Unassigned
Status: Needs work » Needs review
FileSize
16.77 KB

Ready to review again.

LewisNyman’s picture

Status: Needs review » Reviewed & tested by the community

Still looks good. Two thumbs up.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 44: update_php-redesign-2169765-44.patch, failed testing.

philipz’s picture

Status: Needs work » Needs review
LewisNyman’s picture

Status: Needs review » Reviewed & tested by the community
webchick’s picture

Status: Reviewed & tested by the community » Fixed
FileSize
95.57 KB
122.01 KB
82.79 KB

Install:

Install.php screen

Update:

Update.php screen

Even the "responsive-y" stuff works!

Narrow update.php screen

Awesome work! :D

Committed and pushed to 8.x. Woot!

  • Commit 728aad1 on 8.x by webchick:
    Issue #2169765 by philipz, Sutharsan, ckrina, c_lehel, LewisNyman:...
longwave’s picture

longwave’s picture

Status: Fixed » Needs work

Suggest rolling this back and recommitting them separately?

  • Commit c01616f on 8.x by catch:
    Revert "Issue #2169765 by philipz, Sutharsan, ckrina, c_lehel,...

  • Commit d43ffb1 on 8.x by catch:
    Issue #2169765 by philipz, Sutharsan, ckrina, c_lehel, LewisNyman:...
LewisNyman’s picture

Status: Needs work » Fixed
StuartJNCC’s picture

FileSize
48.64 KB

The site slogan seems to have been missed during this redesign.

Update page screenshot

StuartJNCC’s picture

Status: Fixed » Needs work

Change status.

penyaskito’s picture

Status: Needs work » Fixed

Opened follow-up at #2230997: Remove the slogan in install.php and update.php. With the different commits and reverts this one is getting messy.

Status: Fixed » Closed (fixed)

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