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

czo experiment: Require keyboard to turn on blue box. #20961

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

showell
Copy link
Contributor

@showell showell commented Jan 28, 2022

No description provided.

@alya
Copy link
Contributor

alya commented Jan 28, 2022

I played around with this in the dev environment, and once turned on, the blue box currently doesn't disappear as often as I was imagining. In particular, it sticks around after:

  • A random click outside of the message feed (e.g. below the messages or to the side)
  • Changing views with n

This is roughly based on issue zulip#20934.

If you click to enter a new narrow, we always disable
the blue box.

If you narrow with most keyboard shortcuts, notably the `n`
key, then we will not disable the blue box. (There are
some exceptions, like the `A` key, that I don't handle,
because they unleash some non-trivial codepaths that are
outside the scope of a quick experiment to debug.)

To enable the blue box, you can hit either up arrow
or down arrow once, and then subsequent clicks will
start navigating up or down.

You can also use other navigation keys like page-up,
and they will immediately navigate you, as well as turning
on the blue box.

If you click on any part of the app that doesn't already
have a click handler, that will disable the blue box
for you.
@showell
Copy link
Contributor Author

showell commented Jan 28, 2022

The build failures here are for node tests, and that shouldn't block a deployment here. These changes were tested off of main, not the czo branch, so you will probably want to pull the other UI-experiment changes off of czo first. I am not sure there are actual conflicts, though.

@alya
Copy link
Contributor

alya commented Jan 28, 2022

I played with the updated version -- looks good to me!

@zulipbot
Copy link
Member

Heads up @showell, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main branch and resolve your pull request's merge conflicts accordingly.

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

Successfully merging this pull request may close these issues.

None yet

3 participants