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

UX: Keep selection synced with note visibility #1528

Merged
merged 2 commits into from
Feb 19, 2018

Conversation

Redsandro
Copy link
Contributor

@Redsandro Redsandro commented Feb 10, 2018

This PR fixes two UX bugs:

  1. The visible note should always be selected or part of a selection.
  2. When navigating from a set to a superset or vice-versa, the visible (selected) note should not change if it's part of both sets.

Previously, it was confusing to follow what's going on, because the selection and note visibility were not synced. This demonstrates the old behavior. Play close attention to the note in view on the right, and the selection in the note list:

peek 2018-02-10 01-23 wrong

With this PR, the selected note will remain selected as long as it's part of the subset (e.g. when searching or changing storage), and if not, when the first note is automatically viewed (old behavior) the selection will be updated to match:

peek 2018-02-10 01-20

@kazup01 kazup01 added the awaiting review ❇️ Pull request is awaiting a review. label Feb 11, 2018
@Redsandro
Copy link
Contributor Author

I forgot the case where someone creates a new note and fixed it in this PR. This closes #1507.

@Redsandro
Copy link
Contributor Author

Hey @kazup01, got any update on the review process? This PR is really nice to have. I notice when I switch laptops (one with this PR applied and one with vanilla Boostnote).

@kazup01
Copy link
Member

kazup01 commented Feb 19, 2018

Hi @Redsandro , yeah this PR is awesome. We have many tasks now, so wait a while please.
Thanks!

@sosukesuzuki sosukesuzuki self-requested a review February 19, 2018 05:49
Copy link
Member

@sosukesuzuki sosukesuzuki left a comment

Choose a reason for hiding this comment

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

LGTM:+1:

@kazup01 kazup01 merged commit 466844f into BoostIO:master Feb 19, 2018
@kazup01
Copy link
Member

kazup01 commented Feb 19, 2018

Merged. Thank you for your contribution and waiting @Redsandro :)

@kazup01 kazup01 added next release (v0.9.1) and removed awaiting review ❇️ Pull request is awaiting a review. next release (v0.10.0) labels Feb 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants