Compare these screenshots:



If you thought those last two were the same image, look again ;)
The status report gives you a nice friendly indication that certain things are working, notices for things you might want to look at, and warnings for things that are critical.
The installer gives you a big block of red text, that changes a couple of words, removes one block, maybe adds a different block until you get it right.
I'd be nice to replace all the drupal_set_message() with almost exactly the same presentation as admin/reports/status - that way, new users get immediate positive feedback that /something/ is working, and a nice green tick every time they change a permission or create a files folder or whatever.
Haven't yet looked to see how much of this is a presentation issue, or how much it'd require reworking. Afaik there's been no usability testing of the installer as yet - but this seems like an easy win.
| Comment | File | Size | Author |
|---|---|---|---|
| #30 | installer_status_report.patch | 10.41 KB | catch |
| #29 | installer_status_report.patch | 10.4 KB | catch |
| #28 | installer_status_report.patch | 10.35 KB | catch |
| #27 | installer_status_report.patch | 0 bytes | catch |
| #24 | settings-file-status-report.png | 61.86 KB | dropcube |
Comments
Comment #1
xqus commentedHere is a patch. Works fine for me, but should probably be reviewed by someone else.
Comment #2
lilou commentedNot tested, but small typo found :
$requirements['config file permissions']
Comment #3
dropcube commentedSome reviews to the above patch:
- Note that
drupal_verify_profilecan also set error messages and the patch is not including them in the report.- It uses hardcoded numbers instead of the constant
REQUIREMENT_ERROR.Does not seem to be a good idea to print and exit at
install_check_requirements, I suggest to return an array of requirements and process all the collected requirements later. The same for thedrupal_verify_profile.The attached patch implements it in this way. It introduces a new function
drupal_profile_modulesthat returns a list of modules required by a given profile and leftdrupal_verify_profileto verify the existence of the required modules. In consequence, simpletest should use this function as well. Both,install_check_requirementsanddrupal_verify_profilereturn an array of 'requirements'. The severity is checked and if there is a requirement error, a status report is displayed.See attached screenshot, it happens when trying to install a profile that requires the views module but it was not found.
Comment #4
catchThis looks great!
Couple of minor issues in the patch though. It removes the @drupal placeholder in messages so install profiles can't insert their own name. Also, there's a missing space here:
needs write permissions to') . $fileComment #5
xqus commentedHere is a update that fixes the two issues mentioned by catch.
Comment #6
catchThose changes look good. I also re-tested with 'views' added to the required modules and that works well too.
This could do with another set of eyes on it before being marked RTBC, but otherwise seems ready to go.
Comment #7
catchExcept 'missing' is spelt 'mising' in the patch.
Comment #8
xqus commentedDarn! Ok. Here it is once again.
Comment #9
dries commentedWe don't write "Config File Permission", we write "Settings file permission". ;-)
Also, the patch no longer applies to CVS HEAD. Can you try to reroll?
Comment #10
dropcube commentedHere is a patch rerolled against HEAD and fixing the message issue reported by Dries.
Also, other screen shoots where you can see how it looks like.

Comment #11
dropcube commentedThe patch still applies cleanly.
Comment #12
webchickThis is interesting. Subscribing.
Comment #13
catchRe-rolled for offset/fuzz/trailing whitespace.
Comment #14
dropcube commentedThe patch looks good. I have tested again and with other profiles with required modules and is working as expected. In this patch I am adding the
admin.cssthat got removed by mistake in one of the above patches. That CSS file is required to show the icons in the report table.As far as I can see, it is RTBC.
Comment #15
meba commentedDidn't apply to HEAD anymore. Rerolling
Comment #16
catchLess code, more pretty, tested with various combinations of incorrect permissions/missing files. This is ready.
Comment #17
dropcube commentedLooks good to me as well. Tested with PDO unavailable, resulting in a fatal error, this requirement must be included later in the same way the requirements are handled in this patch (#299308: Installing Drupal by visiting index.php (rather than install.php) leads to a fatal error when PDO is not enabled)
Comment #18
Bojhan commentedI think it looks good, I havn't been able to apply the patch myself but reviewing from the pictures. The contrast seems good, however is the red text(to highlight the required modules) we use accessible for those who have color disabilities / those in a hurry rushing over the page.
I like how you fixed the alignment and added space/indent, it made it completely more readable.
Comment #19
gaele commentedHere is an online color contrast checker: http://snook.ca/technical/colour_contrast/colour.html
Red text is #FF0000, background is #FFCCCC. The color difference is too low. A text color of #A30000 would do. (Too me it's easier on the eye too.)
BTW this is set in admin.css
Comment #20
catchThere's an existing issue for colour contrast/accessibility here #8082: DROP Task: Improve accessibility of forms and messages.
Comment #21
dropcube commentedThe missing modules are themed using the CCS class
.admin-missingfrom modules/system/admin.css, so the contrast/accessibility of the messages is other issue that should not block this one.Comment #22
catchwebchick asked for the settings file messages to be split into two in irc, I have to go out in a minute so this hasn't been tested extensively, but it ought to do it. If possible I'd love this change to go in before UNSTABLE-1 gets tagged so we can test it out on 'real people', so reviews welcome.
Comment #23
catchThis patch actually works.
Comment #24
dropcube commentedLast patch applies cleanly and works as expected. RTBC as far as I can see.
Attached another screen shot showing the last changes.
Comment #25
webchickOk, well. ;) We don't need the thing about the settings permission there twice. Please re-word the first error so it's only about copying the file.
I'm going to try and give this a thorough "webchick" review in a couple of hours, so if you want to hold off until then that's cool.
Comment #26
webchickSorry, ran out of steam for tonight ;( Will try again about 20 hours from now.
Comment #27
catchReworded these so they only deal with one thing each. This means we have two 'Settings file' headings, one of which can have a tick, one an x, which isn't ideal. However, if possible it'd be nice to postpone any further textual changes to a followup patch, since this one is really only concerned with conversion from drupal_set_message() to the status report layout.
Comment #28
catchThe internets is broken :(
Comment #29
catchchanges via webchick in irc.
Comment #30
catchforgot one.
Comment #31
catchhttp://drupal.org/cvs?commit=143643
Comment #32
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.