Giter Site home page Giter Site logo

shkoliar / magento-grid-colors Goto Github PK

View Code? Open in Web Editor NEW
62.0 6.0 12.0 22 KB

Magento 2 Grid Colors module for colorizing admin grids. Supports saving of states with the help of grid's bookmarks.

License: MIT License

PHP 1.70% JavaScript 67.93% HTML 11.50% Less 18.87%
magento magento2 magento-2 magento2-module magento2-extension magento-extension magento-module magento-sales magento-grid colors

magento-grid-colors's Introduction

Magento 2 Grid Colors

Overview

The module adds extra coloring features to admin grids at the Sales section. With help of this module, it is possible to define row color based on any column value which has pre-defined set of values. All coloring is applied dynamically and color configuration can be saved via Grid Bookmarks menu same as columns and filters configuration. Colorize grids with ease and preview results instantly!

Demo

Click on the image to watch the youtube video. Cmd + Click for macOS or Crtl + Click for Windows to open video in a new tab.

Watch the video

Installation

To install the Magento 2 Grid Colors module, simply run the command below:

composer require shkoliar/magento-grid-colors

To enable the module:

bin/magento module:enable Shkoliar_GridColors

Usage

After the module is installed and enabled, look for a new Colors element at Grid Actions section of Orders, Invoices, Shipments or Credit Memos pages of Sales section. To save the state of configured colors use Grid Bookmarks (Views) menu.

magento-grid-colors's People

Contributors

gtlt avatar shkoliar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

magento-grid-colors's Issues

Problem on Magento 2.3.5

Hi there,

I've just installed this extension on a Magento 2 development site running on Magento 2.3.5

When I first installed it, it seemed to work, but since I've done a full deployment to production mode the sales order grid just doesn't appear even though the page says that there are x number of rows. I get the following javascript error: TypeError: undefined is not an object (evaluating 'mode.template'). When I swap back to developer mode, I still get the same problem.

I've tried to debug the code and was wondering if it may be a clash with the Magento_AsynchronousOperations module which seems to extend the grid listing component itself.

Do you know if this extension has been tested on Magento 2.3.5 with the Magento_AsynchronousOperations module enabled ?

Any help would be much appreciated.

Kind regards

Mark

Filters set on Default View not being displayed upon page reload

Greetings!

As the title is self explanatory, I will proceed with my findings from the brief investigation I had so far.

I believe that the issue stems from inside shkoliar/magento-grid-colors/view/adminhtml/web/js/grid/controls/colors.js, more specifically this part:

            storageConfig: {
                namespace: 'current',
                provider: 'ns = ${ $.ns }, index = bookmarks'
            }

As when this part is refactored to:

            storageConfig: {
                name: '${ $.name }_storage',
                provider: 'ns = ${ $.ns }, index = bookmarks'
            },

selected filters on Default View do get correctly rendered and applied upon reload, but the issue with this approach seems to be that this:

Screenshot from 2021-11-15 17-34-34

no longer appears upon color selection, but it does appear after filter selection, so if someone doesn't need any filters applied on their custom grid view, just colors, they won't have the option to save the colors to their custom grid view, as it seems like colors aren't getting saved upon selection (not sure why, but I assumed that this should be the case, to behave in the same way upon filter selection), only when the 'Save View as' is clicked.

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.