Meta Issue:#1870944: [Meta] Mobile friendly admin pages

Problem/Motivation

Comment delete and edit to open in overlay, these page need to be similar to node/user edit or delete.

Admin URL: comment/%/delete, comment/%/edit

Proposed resolution

To be determined.

Remaining tasks

To be determined.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plopesc’s picture

Status: Active » Needs review
FileSize
584 bytes

Attachiog patch that includes comment edit and delete pages as admin pages.

plopesc’s picture

FileSize
582 bytes

Re-rolling patch with correct indentation.

Sorry

rteijeiro’s picture

Status: Needs review » Needs work

Hi plopesc,

Could you include screenshots before and after the patch apply, please?

It would be great to reviewers in order to find what has changed with your patch.

Also please, review the patch indentation, there is a wrong indentation in the return sentence ;)

Thanks :)

plopesc’s picture

Status: Needs work » Needs review
FileSize
35.02 KB
63.38 KB
64.14 KB
69.03 KB

Attaching screenshots.

All them were taken after clicking on edit and delete links in comment page.

Firstly edit and delete comment pages without patch.

1902874-before.png

1902874-before-2.png

Now, same pages after patch applied. Both are opened in overlay:

1902874-after.png

1902874-after-2.png

Regards

rteijeiro’s picture

Status: Needs review » Reviewed & tested by the community

Great, the patch works as shown in the screenshots.

Well done!

Dries’s picture

This makes sense to me.

catch’s picture

Status: Reviewed & tested by the community » Needs work

Hmm it doesn't really make sense to me to be honest.

Users can post and edit comments (and sometimes only do that) on lots of sites, and that's not administrative when they're editing their own comments. In this case the overlay would be shown only for this particular action and never for anything else.

We have a setting for the node form for each node type, why not the same for comments? Or have a global setting for comments but inherit the node type settings based on the comment bundle?

The overlay is disabled on small screen sizes at the moment too, so most mobile users won't see it.

rli’s picture

Hi catch,

Have applied the patch and it seems to work the way you want.

Since we can set the permission for different roles to see the overlay, authenticated user will not be able to see the overlay unless we change the permission. Please check the screenshot.

Been talking to JohnAlbin, we think adding option to global setting and node settings will make user confused. i.e. what if we have permission disabled but the option for displaying overlay ticked in node? Or we have to set default value according to the permission?

Happy to discuss with you.

rli

Bojhan’s picture

Yhea, I dont think this is a really good idea - comments is not really a site building task. For many cases, it will be a user who only sees the front-end

plopesc’s picture

I think only people with admin overlay permission will access to the comment edit overlay feature. As occurs with nodes.

Managing comments could be another site building task, site admins can manage and moderate comments if desired.

Regards

rli’s picture

agree. This patch does make sense to me.

rli’s picture

Status: Needs work » Reviewed & tested by the community
catch’s picture

Status: Reviewed & tested by the community » Needs work

Still needs more discussion and possibly testing.

While I have some administrative permissions on Drupal.org, I only ever edit my own comments to fix typos etc. and having those appear in the overlay would irritate me no end.

adammalone’s picture

FileSize
8.88 KB

Would that then be a case for users being able to (should they have requisite permissions) disable overlay.

If I am reading your comments in #7 and #13 correctly catch:

  • Use overlay for comment edit/delete
  • Add in option on content types page to set node defaults for comment edit/delete.
  • Add in option on node creation to allow override of defaults.

In addition to this, if this is to go ahead, I propose:

  • Add setting on user edit page to allow users with above permission to alter settings (much in the same way that users are able to change settings for how they receive mail in contrib (subscriptions module I think) HTML / plaintext. See example below (obviously settings would be extended to include perhaps node edit and other things)

overlay_settings.png

These additional options at least allow users who are not partial to using overlay in comments to opt out.

rli’s picture

Yes, I agree with giving user options to disable overlay, as we already have this option in user/*/edit page.

But if we want to separate the settings for node and comment, I think we also need to do this to all of the modules that have admin page. In this case I suppose there would be a list of overlay settings in the page, which may make user confused?

andypost’s picture

Once we introduce settings per-user then should be sensible global defaults
Otoh for none-mobile visitors I'd prefer to use modal dialog to edit comments and there's issue for confirmations #1842036: [META] Convert all confirm forms to use modal dialog

andypost’s picture

Now we have no overlay in core, so probably issue could be closed #2088121: Remove Overlay

g_miric’s picture

Or we could use ajax modal dialog.

andypost’s picture

sure, for delete it makes sense but comment-edit seems better to have a separate page

swentel’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

Yeah. Overlay is gone, the confirm delete can go in #1842036: [META] Convert all confirm forms to use modal dialog