*

Tango

  • ****
  • 214 posts
Admin UI usability issue
« on: September 22, 2021, 02:59:05 PM »
Plugin Version: Osclass Pay Payment Plugin 3.0.0

The problem:
The Osclass Pay plugin offers a great deal of features for the admin, but these come at a cost which is the abundance of settings and menus you have to go thru, every time you want to see/adjust something.
Now here comes the issue. After you finish setting up everything, you just want to view the sections you're interested in the most, like eCommerce - Item Orders, Item Data and Quantities etc.
There's no need for you to see the Product Selling Settings or the Help or the Plugin Setup each and every time.

The solution:
Split every class="mb-head" into sections (widget-boxes) and add the amazing Collapse button to them.
It's the same as you did in the Osclass v4.4.0 Dashboard - see screenshot

Basically it should look like this (screenshot) and the option Collapse/Open should be stored in a cookie, so you don't have to do it every time you access the settings.
I hope this will get implemented as it would improve the entire workflow by 1000%.

Thanks!

*

MB Themes

Re: Admin UI usability issue
« Reply #1 on: September 22, 2021, 06:12:50 PM »
Thanks for feedback.
Yes it is doable but quite a load of work.
Anyway will put it on list ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Tango

  • ****
  • 214 posts
Re: Admin UI usability issue
« Reply #2 on: September 23, 2021, 04:29:57 PM »
Minor correction: Or maybe store the setting in the database and not the cookie.

Something like:
Code: [Select]
$comm->query(sprintf("INSERT INTO %st_osp_settings VALUES ('osp', 'admindash_widgets_collapsed', '', 'STRING')", DB_TABLE_PREFIX));
     
Code: [Select]
case 'osp_widget':
        $collapse = Params::getParam('collapse');
        $widget_id = Params::getParam('widgetId');
        $data = osc_get_preference('admindash_widgets_collapsed', 'osclass');
       
        $data = array_filter(explode(',', $data));

        if($collapse == 1) {
          $data[] = $widget_id;
        } else {
          if (($key = array_search($widget_id, $data)) !== false) {
            unset($data[$key]);
          }
        }
       
        $data = array_map('trim', array_unique(array_filter($data)));
        $data = implode(',', $data);
       
        osc_set_preference('admindash_widgets_collapsed', $data);
        echo $data;
       
        break;
      default:
        echo json_encode(array('error' => __('no action defined')));
        break;

Code: [Select]
function osc_admin_widget_collapsed($id) {
  $collapsed_widgets = explode(',', osc_get_preference('admindash_widgets_collapsed', 'osclass'));
 
  if(in_array($id, $collapsed_widgets)) {
    return true;
  }
 
  return false;
}

Code: [Select]
<i class="fa fa-caret-<?php echo (osc_admin_widget_collapsed('glance') ? 'down' 'up'); ?> collapse" title="<?php echo osc_esc_html(__('Collapse')); ?>"></i>

*

Tango

  • ****
  • 214 posts
Re: Admin UI usability issue
« Reply #3 on: September 23, 2021, 05:16:06 PM »
Also related to this, I found a kinda' nasty issue.

On our install, we have a plugin that restricts access based on user roles.
We can create as many roles as we want, and give admin users access only to certain sections of the backend/plugins.

However, in Pay Plugin eCommerce section you have the following warning:
Keep in mind that all payments for products goes to your account. Users allowed to sell products should be your colleagues!

The problem here is that both the eCommerce settings and the Item Orders are on the same page.
So "a colleague" that might become crazy, will have access to the entire eCommerce section (settings, sellers, item data etc.) and he can proceed to mess up everything in there.

My advice would be to separate the Item Orders from the eCommerce settings like in the attached screenshot.
This new menu should appear only when Enable Product Selling is active.
This way you can have employees that only manage orders from customers and don't have access to the other eCommerce settings.

Thanks!

*

MB Themes

Re: Admin UI usability issue
« Reply #4 on: September 24, 2021, 01:12:32 PM »
@Tango
Thanks for feedback, it make sense from this point of view ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots