Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Color Indicator Widget functionality #1603

Closed
metas-mk opened this issue Feb 16, 2018 · 5 comments
Closed

Color Indicator Widget functionality #1603

metas-mk opened this issue Feb 16, 2018 · 5 comments

Comments

@metas-mk
Copy link
Member

Is this a bug or feature request?

Feature Request

What is the current behavior?

Currently, it is not possible to have a color indicator Field in metasfresh, e.g. a field with a colored background or a field with content that is just a small green, yellow or red circle (nice to have).

Which are the steps to reproduce?

Open, try and see.

What is the expected or desired behavior?

Following scenario:

  • Possibility to add a property to a field that has the background color/ text color. This way we can still use everything else like the filter, sorting without changes.
  • A nice to have solution would be a new widget, that just shows the color information as a circle. In such cases, we would also need the possibility to sort by color and filter by color.
@teosarca
Copy link
Member

teosarca commented Apr 11, 2018

update:
Introduced widgetType:Color.
The value is a string which has the standard hex color format, e.g. #aabbcc.

For now, let's just have a minimal implementation:

  • render it as a circle filled with value's color.
  • no color picker needed for now
  • no filtering by color needed for now

@teosarca
Copy link
Member

Prepared a test case: https://w101.metasfresh.com:8443/window/143/1000616
image

To prepare this test case i did:

  • created a new sales order and a new sales order line
  • checked which is the order ID, tab ID and the line ID
  • patched the order line:
curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' -d '[ \ 
   { \ 
     "op": "replace", \ 
     "path": "NoPriceConditionsColor_ID", \ 
     "value": "#FFAABB" \ 
   } \ 
 ]' 'http://w101.metasfresh.com:8081/rest/api/window/143/1000616/187/1001035?advanced=false'

(by using swagger: http://w101.metasfresh.com:8081/swagger-ui.html#!/window-rest-controller/patchIncludedDocumentUsingPATCH)

siemiatj added a commit that referenced this issue Apr 25, 2018
metas-mk added a commit to metasfresh/metasfresh that referenced this issue Apr 26, 2018
Adds new Issue
metasfresh/metasfresh-webui-frontend-legacy#1603
Color Indicator Widget functionality
@metas-rc metas-rc self-assigned this Apr 26, 2018
@metas-rc
Copy link
Member

Results of IT

Tested on webui

OK: if pricing conditions are required and there are no pricing conditions for an order line, the color is set to a small circle of the color I defined in the sys config.

image

@metas-ts
Copy link
Member

hi @metas-mk @metas-rc @teosarca how does configuring this feature work?
How does one define the color and when it is set?
Can someone please add some screenshots?

@metas-rc
Copy link
Member

metas-rc commented May 3, 2018

These are the colors that are currently available in our app dictionary:

image

In order to start this feature, we will have to set a color name (It must be a correct name from the AD_Color table) in the following sys config:

image

Example: I want the color to be red:

image

I created an orderline with no schema break.
On my local, it looks like this:

image

A while ago I tested it on our testing system and I made several lines with different colors, by changing the sys config over and over. . It looked like this:

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants