Giter VIP home page Giter VIP logo

perspective-editor's Introduction

title
Perspective Editor

Pimcore Perspective Editor

This bundle provides an editor for Pimcore to manage custom views and perspectives.

Features in a Nutshell

  • Possibility to add, remove or edit custom views.
  • Possibility to add, remove or edit perspectives.
  • Configuration directly in the user interface.

Execution Sample Perspective Editor

Execution Sample View Editor

Documentation Overview

perspective-editor's People

Contributors

aashan10 avatar aryaantony92 avatar blackbitdevs avatar bluvulture avatar brusch avatar corepex avatar dvesh3 avatar fashxp avatar kingjia90 avatar lukmzig avatar mcassier31 avatar mcop1 avatar niklasbr avatar patkul0 avatar robertst7 avatar roland4432 avatar samyemad avatar vmalyk avatar weisswurstkanone avatar wisconaut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

perspective-editor's Issues

[Bug]: Various issues on Perspective Editor

Expected behavior

We should create views and be able to add them on the left or right panel in the perspective editor.

Actual behavior

image

I can only add documents, no asset, objects or custom views. Everytime I try, I get the message seen in the image.

Steps to reproduce

Env used : Pimcore 10.2.1
I installed the Perspective editor plugin (no other plugin installed, just present but not installed).
No complex code has been added.

I tried to install this pluging twice, I checked the files permissions.. can't find the issue... Is it a bug ? I never tried this plugin before...
I can't reproduce it on the demo.pimcore.com system as perspective configuration is read-only for the user superuser.

image

[Bug]: Not possible to add classes

Expected behavior

Not possible to add classes in perspectives editor

Actual behavior

Like mentioned here: pimcore/pimcore#10463

its currently not possible to add classes via perspectives editor, so we can not create a working perspective

Steps to reproduce

  • Open Perspective Editor
  • No option available to add classes

[Bug]: View Editor switching back to a previously opened object view throws JS error

Expected behavior

Having multiple views of type object defined, selecting any of them sould display the view's settings without JS errors.
Also, settings must not be lost.

Actual behavior

Having a view of type object open, selecting another view from the list and going back to previous one, a JS error is thrown:
"Uncaught TypeError: classes.join is not a function"

Any selections in the MultiSelect menu "Allow Objects" are lost (no classes are selected).

The error happens here:

Ext.getCmp('allowed_object_classes').setValue(classes.join(","));

Logging the "classes" var at this point shows that on returning to a previously opened view classes parameter already is a string, as opposed to the first call where it was an array:

image

Steps to reproduce

  • Set up at least two views, at least one of them of type object
  • Select the object type view
  • Select another view
  • Select the same object view as before

JS error thrown in console, "Allowed Objects" select is empty.

[Bug]: Not possible to open perspectives editor

Expected behavior

It's possible to open Perspectives Editor

Actual behavior

It's not possible to open Perspectives Editor.

Steps to reproduce

  1. Go to demo.pimcore.com/admin
  2. Try to open Perspectives Editor
  3. Getting an Error: Attempted to call an undefined method named "getCustomViewConfig" of class "Pimcore\Tool".

image

Add to Packagist

Can you please add this bundle to Packagist so that one can install it via Composer without explicitly adding this repo in the repositories section of the composer.json?

Toolbar settings not working

generated structure looks like

            'extras' => [
                'hidden' => 0,
                'glossary' => 1,
                'redirects' => 1,
                'translations' => 1,
                'recyclebin' => 1,
                'plugins' => 1,
                'notesEvents' => 1,
                'applicationlog' => 1,
                'gdpr_data_extractor' => 1,
                'emails' => 1,
                'maintenance' => 1,
                'systemtools' => [
                    'hidden' => 1,
                    'phpinfo' => 1,
                    'opcache' => 1,
                    'requirements' => 1,
                    'serverinfo' => 1,
                    'database' => 1,
                    'fileexplorer' => 1
                ]
            ],

but it should be like

            'extras' => [
                'hidden' => 0,
                'items' => [
                    'glossary' => 1,
                    'redirects' => 1,
                    'translations' => 1,
                    'recyclebin' => 1,
                    'plugins' => 1,
                    'notesEvents' => 1,
                    'applicationlog' => 1,
                    'gdpr_data_extractor' => 1,
                    'emails' => 1,
                    'maintenance' => 1,
                    'systemtools' => [
                        'hidden' => 1,
                        'phpinfo' => 1,
                        'opcache' => 1,
                        'requirements' => 1,
                        'serverinfo' => 1,
                        'database' => 1,
                        'fileexplorer' => 1
                    ]
                ]

            ],

[Bug]: Dashboard problems when saving and displaying in the sidebar, forbidden portlets not stored

Expected behavior

File > Dashboard should be saving correctly and displaying only the existing and correct dashboard.
Forbidden Portlets should be saved and reloadable.

Actual behavior

In this case there's an hidden/unnamed dashboard as in the picture
image

The forbidden dashboards (which should be renamed forbidden Portlets?) is not saving/loading the checked value
image

Steps to reproduce

Just add some new dashboard and eventually flag some checkbox in the Forbidden Dashboards and save.

Then if you reopen the editor, you see that the dashboard name is changed to "Root" and in the "File > Dashboard" it appears wrongly as empty element. The forbidden dashboards is also not properly saved(?), so anything you flagged is not there anymore.

Toolbar support shortcut config

support configs like:

        'toolbar' => [
            'file' => TRUE,
            'extras' => FALSE,
            'marketing' => 0,
            'settings' => 0,
            'search' => 1,
            'ecommerce' => 1
        ]

[Improvement]: Save functionality

Improvement description

When clicking on the save button, every perspective or custom view is saved to the configured write target. Even if nothing has changed at all.

  1. Save only changed perspectives or custom views to the configured write target
  2. Adapt the GUI to reflect other configuration GUIs in pimcore, like Datahub / GraphQL
    2.1 e.g. add Tabs

[Improvement]: Add hidden field

Expected behavior

Having a checkbox "hidden" correspondaing to the yaml option hidding.

Actual behavior

The is no such checkbox on the GUI

Steps to reproduce

On the Pimcore demo, open the DAM perspective:

image

On the yaml config:

image

Thanks.

[Bug]: renaming perspective deletes configuration

Expected behavior

When renaming a perspective, the file name gets updated.

Actual behavior

The file is deleted.

Steps to reproduce

Just renamed a perspective from Matomo to matomo, as I wanted to stick to naming conventions (based on the default perspective). This effectively deleted the file.

Perspective files are not portable

  1. Take a Database dump from Env 1
  2. Import said database to Env 2 (and clear caches)
  3. Adjust perspectives using this editor
  4. Commit and deploy the updated configuration file in Env 1.

Result:
All perspectives and views are blank in Env 1.

Tested in Pimcore 6.8.11 and 6.9.1 on PHP 7.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.