Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harmonize dialogs by adding apply, cancel, and reset buttons #265

Merged
merged 38 commits into from
Mar 30, 2020

Conversation

sgratzl
Copy link
Member

@sgratzl sgratzl commented Mar 18, 2020

closes #229, #272, #277

prerequisites:

  • branch is up-to-date with the branch to be merged with, i.e. develop
  • build is successful
  • code is cleaned up and formatted
  • tested with Firefox 52, Firefox 57+, Chrome 64+, MS Edge 16+

Summary

unifies the dialogs as described in the issue

@sgratzl sgratzl requested a review from thinkh March 18, 2020 15:37
This was linked to issues Mar 20, 2020
@sgratzl sgratzl added this to Needs review in lineup Mar 20, 2020
@thinkh thinkh added lineup: v4 All issues related to LineUp v4 type: feature New feature or request labels Mar 20, 2020
@thinkh
Copy link
Member

thinkh commented Mar 20, 2020

Thanks for the first implementation. I ran a first quick test and it looks already very promising. I found a couple of things that needs to be addressed.

  1. It looks like the live preview for filter and visualization dialogs are disabled. For the filter dialog the live preview works for the filters in the side panel, but it does not for the column filter. Can we enable the live preview for the filter dialogs (including the categorical filter dialog) and visualization by default? I think as a rule of thumb, all dialogs that had no cancel/reset/apply button before should have a live preview now, but in order to confirm the change the user must click on the apply button.

lineup-disabled-live-preview

  1. When I open a sub-dialog from the more menu, change something and apply the changes, the list of more values remains open. In previous LineUp versions the dialog and the more menu were closed on apply.

lineup-close-more-menu

@sgratzl
Copy link
Member Author

sgratzl commented Mar 20, 2020

re 1: done

re 2: when I try https://lineup.js.org/app_develop/#soccer it behaves the same. just clicking outside will close all dialogs. A proper dialog ending (cancel, apply) won't close the more dialog

Copy link
Member

@thinkh thinkh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Thanks, that looks already better. I have just a minor typo in the last commit.

  2. You are right. Then let's keep it like this for now. I will discuss this behavior with the others, if we want to change it.

src/config.ts Outdated Show resolved Hide resolved
@sgratzl sgratzl marked this pull request as ready for review March 25, 2020 08:49
@sgratzl
Copy link
Member Author

sgratzl commented Mar 26, 2020

. Alternatively, would it be possible to add further events when user (a) opens a dialog and (b) applies the changes? With that event combination we should be able to filter out the live preview events.

which instance should trigger those events? it cannot be part of any model (column, ranking, data provider) since it is purely UI related

@thinkh
Copy link
Member

thinkh commented Mar 26, 2020

which instance should trigger those events? it cannot be part of any model (column, ranking, data provider) since it is purely UI related

What about the LineUp instance itself? Alternatively you could add a dedicated event dispatcher for UI-releated events.

@sgratzl sgratzl linked an issue Mar 30, 2020 that may be closed by this pull request
@sgratzl sgratzl requested a review from thinkh March 30, 2020 12:28
demo/dialog.html Outdated Show resolved Hide resolved
@thinkh
Copy link
Member

thinkh commented Mar 30, 2020

Thanks for fixing #277 and implementing the events. With this addition we should be able to filter out the live preview events. In general it works now very smooth. While testing I just found two bugs:

1. Reset does not work for missing value rows in categorical column filter

  1. Filter missing values of categorical column
  2. Confirm dialog
  3. Open filter dialog again and click reset

Nothing happens. As I user, I would expect that the checkbox is unchecked on reset.

lineup-reset-categorical-filter

2. Cannot filter missing values in numbers column

  1. Open the missing.html demo
  2. Open the filter dialog for the numbers column

There are no missing value rows found, even though there are clearly some in the dataset. As I user, I would expect that the checkbox works and I can filter out missing values rows.

grafik

@sgratzl
Copy link
Member Author

sgratzl commented Mar 30, 2020

done

Copy link
Member

@thinkh thinkh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that looks good now. Thanks for implementing and unifying all of the dialogs which is a huge usability improvement! I'm going to merge the PR. If we find further bugs, we will open separate issues for it.

@thinkh thinkh merged commit 2fcc3d6 into lineup-v4 Mar 30, 2020
lineup automation moved this from Needs review to Done Mar 30, 2020
@thinkh thinkh deleted the sgratzl/dialogs branch March 30, 2020 19:54
thinkh added a commit to datavisyn/tdp_core that referenced this pull request Apr 1, 2020
thinkh added a commit to datavisyn/tdp_core that referenced this pull request Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lineup: v4 All issues related to LineUp v4 type: feature New feature or request
Projects
No open projects
lineup
  
Done
2 participants