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

Empty Filter vs. Default Value in Window Filtering #762

Closed
metas-mk opened this issue May 18, 2017 · 7 comments
Closed

Empty Filter vs. Default Value in Window Filtering #762

metas-mk opened this issue May 18, 2017 · 7 comments

Comments

@metas-mk
Copy link
Member

Is this a bug or feature request?

Feature Request.

What is the current behavior?

When using Window Filters, then the initial behavior is that Flags are considered as null/ not set. As soon as you click a Flag filter then results are Filtered by FlagValue = 'Y'. When clicking off, everything is filtered by FlagValue = 'N' and the user has no single possibility to reset to null to not consider anymore.

Which are the steps to reproduce?

Try Filtering in Product Price Window.

What is the expected or desired behavior?

Similar to ID Fields one should be able to switch off/ nullify the filter with some kind of 'X' (x in a circle) to empty the filtering criteria without resetting the whole window filter.

Thread started in other repo, please check discussion here first: metasfresh/metasfresh-webui-api-legacy#143

image

@metas-mk metas-mk added this to the 2017-22 milestone May 18, 2017
@cadavre
Copy link
Contributor

cadavre commented May 18, 2017

So right now we have:
Checked – Yes
Not checked – No
and no possibility to set "don't filter by this field", right?

@teosarca
Copy link
Member

@cadavre true

damianprzygodzki added a commit that referenced this issue May 22, 2017
@damianprzygodzki damianprzygodzki self-assigned this May 22, 2017
@cadavre
Copy link
Contributor

cadavre commented May 23, 2017

My proposition #1 to keep checkboxes is to introduce new state. Also change circle 'x' into simple text link which clears the filters (and id 100% obvious to user that THIS filter is active and can be cleared).
zrzut ekranu 2017-05-23 o 16 33 56

This basically adds new state with green, double-weight border which means "filtering with 'No' value". Eventually we could add title="" attribute to show system tooltip to explain.

@metas-mk
Copy link
Member Author

@cadavre very nice solution. I like it. That would also then affect the main view and then shown as "Filtered with no" if the content of the flag is "N", right?

@cadavre
Copy link
Contributor

cadavre commented May 23, 2017

In main view I would leave states as they are now, because of two reasons:

  1. It would simply look strange in document view when checkbox would glow with green with no purpose. (Remember that main idle state color in UI is this grayish blue like in "Not filtered by".)
  2. Yes/No for user is now (and always for checkbox!) indicated with "tick" inside of checkbox – it is actually responsible for making value 1 or 0 for this field. Different border color, on the other hand, means in metasfresh UI that particular field has some different state (like "is mandatory" or "is not valid") – I'd love to stick to that unified assumption.

To clear the doubts – no, I don't think "No" and "Not filtered by" would be mismatched by users – especially when there is "(clear)" which also pretty clearly indicated that filter is "on".

@metas-lc metas-lc self-assigned this May 23, 2017
@metas-lc
Copy link

metas-lc commented May 23, 2017

IT

  1. Open Bill Candidates

  2. go to filter, select default and select a checkbox multiple times
    => notice it has 3 states: Y (with x), N (with x) and Empty (without x), the last one means is neither Y or N
    => default state is Empty without x OK
    OK

  3. set Komplett Abgerechnet eff on Y, apply
    => invoice candidates are filtered for complete eff OK

  4. go back to filters
    => notice that all checkboxes have x. NOK because it gets you confused that is N instead of empty

  5. press apply
    => same results (even if they have x they have the empty value)

  6. Testcase for "visibility" that after you open the filter again, the ones with x are in fact empty:

  • filter for: Auftrag 0863, Freigabe zur Fakturierung Y, Komplett Abgerechnet eff. Y
    => you have 2 results
  • clear filter, and filter for Auftrag 0863, Komplett Abgerechnet eff. Y
    => 2 results
  • open the filter again - notice that Freigabe zur Fakturierung is N (don't change), apply
    => 2 results
  • open the filter again, set Freigabe zur Fakturierung to N, apply
    => no results

pics for opening the filter again: (note that filters are still the same, even if you see x!)

filters1

filter2

more, please also try with Komplett Abgerechnet eff. N => it becomes empty when you open the filters again

damianprzygodzki added a commit that referenced this issue May 24, 2017
metas-ts added a commit to metasfresh/metasfresh that referenced this issue May 25, 2017
[#409](metasfresh/metasfresh-webui-api-legacy#409) backend: change view attributes endpoint location
[#1639](#1635) cannot complete distribution order
[#760](metasfresh/metasfresh-webui-frontend-legacy#760) Fix the texts displayed while loading
[#787](metasfresh/metasfresh-webui-frontend-legacy#787) window endpoint: change "attribute" to "field"
 [#763](metasfresh/metasfresh-webui-frontend-legacy#763) grid: right click on a cell and zoom into
 * [#1617](#1617) Check if imported esr file is v11 file
* [#1615](#1615) Address lines is cut off on shipment jasper document
* [#1591](#1591) Password Field is missing in user window in WebUI
* [#1586](#1586) New Window for OrgType in WebUI
* [#1584](#1584) New Window for Org in WebUI
* [#1585](#1585) New Window Client in WebUI
* [#762](metasfresh/metasfresh-webui-frontend-legacy#762) Empty Filter vs. Default Value in Window Filtering
* [#778](metasfresh/metasfresh-webui-frontend-legacy#778) Yellow pulse effect w/o data change
* [#407](metasfresh/metasfresh-webui-api-legacy#407) View filtering by virtual SQL column not working
* [#412](metasfresh/metasfresh-webui-api-legacy#412) Provide API for sorting included tab
* [#411](metasfresh/metasfresh-webui-api-legacy#411) Provide "size" to layout element
* [#396](metasfresh/metasfresh-webui-api-legacy#396) Vendor Return Actions in WebUI
* [#772](metasfresh/metasfresh-webui-frontend-legacy#772) automatic Column sizing not showing all text although space would be available
* [#774](metasfresh/metasfresh-webui-frontend-legacy#774) Fix invalid "GET /window/{windowId}/{tabId} call
* [#764](metasfresh/metasfresh-webui-frontend-legacy#764) Long text boxes shall have a border around
* [#769](metasfresh/metasfresh-webui-frontend-legacy#769) Honor tab stale flag also when editing in advanced mode
* [#767](metasfresh/metasfresh-webui-frontend-legacy#767) Got same notification several times
^* [#766](metasfresh/metasfresh-webui-frontend-legacy#766) issue panel doesn't open
* [#765](metasfresh/metasfresh-webui-frontend-legacy#765) Date + Time Info in Notification window
[#378](metasfresh/metasfresh-webui-api-legacy#378) Document changes: provide the validStatus and saveStatus only when changed
* [#405](metasfresh/metasfresh-webui-api-legacy#405) Backend shall provide JSON document fields indexed by field's name
* [#1560](#1560) Add description fields to invoice window
* [#1577](#1577) Introduce /test/ping/notifications server troubleshooting endpoint

me-45
@metas-lc
Copy link

IT
retested: works fine.

  • checkbox is on Y -> fill with green and "(clear)" right near
  • checkbox is on N -> green margin and "(clear)" right near
  • checkbox is empty -> grey, "(clear)" is hidden
  • if you press on clear the button becomes grey and it hides
    OK

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

6 participants