backdrop-issues icon indicating copy to clipboard operation
backdrop-issues copied to clipboard

[UX] Show CKEditor in the site status report page.

Open klonos opened this issue 7 years ago • 34 comments

screen shot 2018-11-01 at 11 29 12 pm


PR by @klonos: https://github.com/backdrop/backdrop/pull/2348

klonos avatar Nov 01 '18 12:11 klonos

...OK, PR up for review:

  • adds a new "CKEditor" entry as REQUIREMENT_INFO
  • changes the jQuery entry from REQUIREMENT_OK to a REQUIREMENT_INFO (to make it bubble up with the entries for PHP/MySQL/Web server)
  • removes the extraneous "version" string from various entries for simplification.

klonos avatar Nov 01 '18 13:11 klonos

We should check, if module "CKEditor" enabled before reporting.

findlabnet avatar Nov 01 '18 14:11 findlabnet

You are absolutely right @findlabnet šŸ‘ ...I was under the impression that ckeditor.module was a system module, hence required and always on by default. This explains those Use of undefined constant CKEDITOR_VERSION exceptions in the tests too šŸ˜…

PR updated.

klonos avatar Nov 01 '18 21:11 klonos

This doesn't look like a feature request, just a UX issue. Adjusting tags and milestones.

jenlampton avatar Jan 03 '19 22:01 jenlampton

...I have split the jQuery changes off to a separate issue: #3879. Hoping to make it easier to review and approve this change here.

klonos avatar Jun 21 '19 19:06 klonos

There still seem to be some unrelated changes in the PR: changes to how the PHP version info links are generated. Marking as NW.

jenlampton avatar Jan 15 '20 23:01 jenlampton

Was going to push a new PR to address @jenlampton comments, but I actually agree with @klonos changes here. Brings consistency. We have:

Backdrop CMS | 1.16.x-dev              <-----NO  "version" string
PHP | Version: 5.6.31 (PHP information)             <----- "version" string
Web server | Apache/2.4.27 (Win64) PHP/5.6.31              <----- NO "version" string
jQuery | jQuery version 1.12.4 / jQuery UI version 1.12.1              <----- "version" string

Not a major issue, but I think its worth keeping and not worth a separate PR. RTBC.

docwilmot avatar Mar 29 '20 19:03 docwilmot

I know we have a lot of similar reports in System module, so it's easy to copy/paste there. But because CKEditor is exposed by ckeditor.module, this should go in a new ckeditor_requirements() function, not in system_requirements().

quicksketch avatar Mar 29 '20 20:03 quicksketch

This is true. So once @jenlampton agrees to leave the "Version" changes in there, will redo properly. Thanks.

docwilmot avatar Mar 30 '20 03:03 docwilmot

With #3879 merged, I've updated the PR. @quicksketch you are absolutely right, but there's no need for a new function, as there is an existing ckeditor_requirements() function in ckeditor.install. With it's current implementation, that function only shows this message if no text formats have been configured to use CKEditor:

Screen Shot 2020-06-11 at 8 37 46 pm

Now, the version is shown at the top of the message:

Screen Shot 2020-06-11 at 8 52 37 pm

I've swapped the part that started with "Visit..." as that in combination with the fact that this is shown as a warning made the sentence sound "commanding". Starting with "To configure..." makes it sound informational/optional.

If the person viewing the status report does not have permission to edit formats, this is shown instead:

Screen Shot 2020-06-11 at 9 00 45 pm

Previously, if at least one text format was configured to use CKEditor, this entire row was hidden. Now with the version shown, there's a "more" link which when clicked shows this:

Screen Shot 2020-06-11 at 9 03 32 pm

...or this:

Screen Shot 2020-06-11 at 9 04 01 pm

(depending on whether the person viewing the report has permission to edit formats or not)

klonos avatar Jun 11 '20 18:06 klonos

The sandbox seems broken, it only leads to the installer. @klonos can you request a fresh one, please?

indigoxela avatar Aug 30 '20 11:08 indigoxela

Done @indigoxela šŸ‘

klonos avatar Aug 30 '20 13:08 klonos

I tested it with a new text format. Seems to be working for me.

Screen Shot 2020-08-30 at 12 46 13 PM

stpaultim avatar Aug 30 '20 17:08 stpaultim

I like the display of CKEditor version on status page (although it ships with core anyway).

But there's one thing I don't get: why is it worth a warning if none of the text formats uses the editor? There's nothing broken or in danger then. Unlike other warnings like "Trusted host settings", which in contrast to editor usage really has security implications.

@klonos could you explain the idea behind that? Why warn if some functionality isn't used?

no-editor-in-formats

indigoxela avatar Aug 31 '20 06:08 indigoxela

(although it ships with core anyway)

The same can be said for jQuery; we still show it in the status report šŸ™‚

@klonos could you explain the idea behind that?

I guess to avoid WFTs when site builders new to Drupal/Backdrop enable the CKEditor module, but they don't see the toolbar show above their text areas. I'm not married to this though; it can be changed to be REQUIREMENT_INFO instead.

klonos avatar Aug 31 '20 15:08 klonos

I'm not married to this though; it can be changed to be REQUIREMENT_INFO instead.

Personally, I'd prefer "info" then. Let's not worry admins, when nothing dangerous happens anyway.

indigoxela avatar Aug 31 '20 15:08 indigoxela

Done šŸ‘

klonos avatar Aug 31 '20 15:08 klonos

To be honest, I don't understand the status page mapping for info and ok anyway... :wink:

The PR works as advertised and the listing of ckeditor-enabled formats is nice to have, too. Works for me.

indigoxela avatar Aug 31 '20 15:08 indigoxela

(depending on whether the person viewing the report has permission to edit formats or not)

I don't like this (I left a message in the PR about this too). I don't know of anywhere else in core where we list the different roles that have access to something in order for the current user (who doesn't have access) to contact them. In fact in another issue we specifically removed all "contact your site administrator" messages...

ghost avatar Jan 05 '21 02:01 ghost

I don't like this (I left a message in the PR about this too). I don't know of anywhere else in core where we list the different roles that have access to something in order for the current user (who doesn't have access) to contact them. In fact in another issue we specifically removed all "contact your site administrator" messages...

So, I understand and appreciate the goal to provide contextual help to point a user in the right direction to solving their problem. But, I share the concern from @BWPanda about handling this in a piecemeal fashion. Are we doing this for any other setting? Are there are status report pages items where it makes sense to do this. If so, why are we not making this decision for all of them.

My concern is that we add this here without any consensus that this is a good idea and we end up with an inconsistent and only partially implemented idea. Then the next time we are making a change to the status page, we have to have this dicussion again and/or possibily revert changes that we've already made.

If we are going to provide helpful information about which roles can update something, let's make that decision in general and not on such a specific case by case basis.

Maybe we have already had this discussion elsewhere and there is a precedent for it. If so, let's mention that.

Should this be a separate issue?

stpaultim avatar Jan 10 '21 22:01 stpaultim

Should this be a separate issue?

Definitely.

ghost avatar Jan 10 '21 22:01 ghost

I don't like this ... In fact in another issue we specifically removed all "contact your site administrator" messages...

Agreed. I'll remove that bit of logic from the status report.

klonos avatar Jan 11 '21 02:01 klonos

So, my team is working on porting a Drupal 7 module to Backdrop CMS. https://www.drupal.org/project/ckeditor_blocks

The Drupal install instructions say the site must be upgraded to Ckeditor 4.3, so I went to check which version of CKEditor that we are using in core and could not find this information anywhere. Was a little surprised it was not on the status page, because it was there in Drupal 7.

I see from screenshots of this PR, that we must still be on CKEditor 4.14, so it appears I have a different problem.

stpaultim avatar Jan 26 '22 03:01 stpaultim

The Drupal install instructions say the site must be upgraded to Ckeditor 4.3

We're on the latest, version 4.17.1: https://github.com/backdrop/backdrop/blob/1.x/core/misc/ckeditor/CHANGES.md

so it appears I have a different problem.

You might be thinking 17 is less than 3 because it starts with a 1? (That catches me sometimes too). I don't think you have a problem :)

jenlampton avatar Jan 26 '22 03:01 jenlampton

@jenlampton - Yes, I feel very silly now. And, I just posted something in the forum asking about this same question. Now, I look silly in two places, not to mention our internal JIRA issue queue.

:-)

stpaultim avatar Jan 26 '22 04:01 stpaultim

Hi all! I’m @jen but not your jen.

On Jan 25, 2022, at 8:10 PM, Tim Erickson @.***> wrote:

@Jen Lampton @.***> - Yes, I feel very silly now. And, I just posted something in the forum asking about this same question. Now, I look silly in two places, not to mention our internal JIRA issue queue.

:-)

On Tue, Jan 25, 2022 at 9:54 PM Jen Lampton @.***> wrote:

The Drupal install instructions say the site must be upgraded to Ckeditor 4.3

We're on the latest, version 4.17.1: https://github.com/backdrop/backdrop/blob/1.x/core/misc/ckeditor/CHANGES.md

so it appears I have a different problem.

You might be thinking 17 is less than 3 because it starts with a 1? That catches me sometimes too. I don't think you have a problem :)

— Reply to this email directly, view it on GitHub https://github.com/backdrop/backdrop-issues/issues/3360#issuecomment-1021837090, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAX7W66V6J6BURUFISH4CB3UX5V6LANCNFSM4GAZIKQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.

jen avatar Jan 27 '22 02:01 jen

PR rebased and tests are green. It seems that we missed updating CKEDITOR_VERSION in #5358, so I've updated that as well. See #5476 for a follow up to automate that in the future.

klonos avatar Jan 28 '22 12:01 klonos

...screenshots:

image

image

klonos avatar Jan 28 '22 12:01 klonos

It seems that we missed updating CKEDITOR_VERSION ...

If #5476 is approved and gets merged before this, we should update the PR here to use ckeditor_get_version() instead of the hard-coded CKEDITOR_VERSION constant.

klonos avatar Jan 28 '22 21:01 klonos

If there's no objections in that other issue and its likely to get in, we should probably do that here anyway.

ghost avatar Jan 28 '22 22:01 ghost