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

Adding a pattern can be user-friendly improved. #584

Closed
trebmuh opened this issue Apr 5, 2018 · 9 comments
Closed

Adding a pattern can be user-friendly improved. #584

trebmuh opened this issue Apr 5, 2018 · 9 comments

Comments

@trebmuh
Copy link
Member

trebmuh commented Apr 5, 2018

issue reported on linuxmao.org (in French)

Hydrogen version * : 0.97 & 1.0.0-beta1
Operating system + version : LibraZiK-2 (Debian 9), but I'm pretty sure that is the case for every OS & version
Audio driver + version : not useful here


When loading a pattern, the pattern is added on the last place in the list, ie: after the last current pattern, which isn't user-friendly since it can gives the impression that nothing happened for a bunch of the usual workflows. The user needs then to scroll down on the patterns list to see the newly added pattern.

I think there are different ways of dealing with that from a GUI point of view and I'm sharing a few of those which are popping up in my head right now here:

  • still adding the pattern below the last pattern in the list but "jumps" automatically to this one
  • adding the pattern next to the current selected one
  • adding the pattern in the middle of the actual view

Thought?

@trebmuh trebmuh added this to the 1.0 milestone Apr 5, 2018
@pvint
Copy link
Contributor

pvint commented Apr 5, 2018

This is a good idea.

I like the first two options you suggested, but I think the third ("adding the pattern in the middle of the view") might seem a bit odd.
The best option to me would be "Add after the currently selected pattern", as it would seem intuitive to me, and it gives the user the option of choosing where it would go.

@trebmuh
Copy link
Member Author

trebmuh commented Apr 6, 2018

The best option to me would be "Add after the currently selected pattern", as it would seem intuitive to me, and it gives the user the option of choosing where it would go.

I agree, totally.

Is a mix of 2) and 1) possible? Such as: "add after the currently selected pattern and jumps automatically to this new pattern in case of the view wasn't on it"?

@pvint pvint mentioned this issue Apr 7, 2018
pvint added a commit that referenced this issue Apr 7, 2018
* Adding a pattern now adds after the currently selected pattern (issue #584)
@pvint
Copy link
Contributor

pvint commented Apr 7, 2018

I changed this so that the newly added pattern is inserted after the currently selected pattern (and is selected). Since this is a minor change I went ahead and merged it.

The only thing I don't like is that if you have the last pattern selected when you add, the view doesn't scroll to show the new pattern (it is still the active pattern though). Minor, but it would be nice to sort that out too.

@trebmuh
Copy link
Member Author

trebmuh commented Apr 9, 2018

Nice !
Tested from a fresh build, it works fine. Thanks @pvint !

@jeremyz
Copy link
Member

jeremyz commented Apr 10, 2018

@pvint, because of a very bad separation of GUI and lower level code in this project,
you missed the case of adding an empty pattern.

17be8d2 b3121d0 a6a7048 (and now we have undo for free !)

scroll the scrollbar to the newly added pattern still needs to be done

if only GUI code could use a properly desinged lower API instead of reimplementing over and over everywhere ;)

@pvint
Copy link
Contributor

pvint commented Apr 14, 2018

@jeremyz Good catch, and thanks for fixing it up! Now it's done, and as an added bonus I learned something. :)

@mauser
Copy link
Member

mauser commented Jul 6, 2018

Hi!
@trebmuh : Can this issue be closed?

@jeremyz
Copy link
Member

jeremyz commented Jul 9, 2018

Hello,
@mauser : scrolling to the newly added pattern still needs to be done.

jeremyz added a commit that referenced this issue Jul 18, 2018
protect against looping event
prepare the road to complete #584,
(update vertical position on add/remove pattern)
jeremyz added a commit that referenced this issue Jul 18, 2018
protect against looping event
prepare the road to complete #584,
(update vertical position on add/remove pattern)
jeremyz added a commit that referenced this issue Jul 18, 2018
protect against looping event
prepare the road to complete #584,
(update vertical position on add/remove pattern)
@jeremyz
Copy link
Member

jeremyz commented Jul 18, 2018

Hahahaha, I know, I'm a bit anal sometimes ... and tired too.

theGreatWhiteShark pushed a commit to theGreatWhiteShark/hydrogen that referenced this issue Aug 12, 2018
protect against looping event
prepare the road to complete hydrogen-music#584,
(update vertical position on add/remove pattern)
theGreatWhiteShark pushed a commit to theGreatWhiteShark/hydrogen that referenced this issue Aug 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants