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

By default sidebar should be hidden. #32

Closed
sylvia43 opened this issue May 14, 2014 · 17 comments
Closed

By default sidebar should be hidden. #32

sylvia43 opened this issue May 14, 2014 · 17 comments
Milestone

Comments

@sylvia43
Copy link

It's extremely annoying to have the sidebar pop up any time I open a new tab. Should it be closed by default? Or at least give the user an option to have it closed by default?

@badboy
Copy link

badboy commented May 14, 2014

👍 for closed-by-default

@athaeryn
Copy link
Contributor

I agree, even just as an option this would be nice.

@RasmusWL
Copy link

👍

2 similar comments
@shsu
Copy link

shsu commented May 14, 2014

👍

@achikin
Copy link

achikin commented May 14, 2014

+1

@sylvia43
Copy link
Author

@achikin You have to do :+1: to make a 👍.

@athaeryn
Copy link
Contributor

Looks like this has already been brought up and is being worked on: #15

@sylvia43
Copy link
Author

Oh oops... I missed that...

@johnduhart
Copy link

Please! 👍

@sylvia43
Copy link
Author

This bothers me a ton
image

@buunguyen
Copy link
Collaborator

Haha, folks, I get it. Let me clarify the current behavior and the change I'm making.

Currently the tree automatically pop outs when:

  1. First time navigating to GitHub after installing the extension
  2. When it's previously expanded
  3. When API limit is hit or you're accessing a private repo, it pops out to ask for access token [1]

I think 1 is necessary because if not showing it by default after installing, I'm sure many people will wonder where the extension is.

Number 2, I sort of sitting on the fence. I personally just want it expanded until I explicitly close it - that's how I work with IDEs, I always want to see the tree. But I can see others might not want so.

I think a good solution is having an option, something like "Collapse by default". Not a big change but requires thought on the UI. (Anyone wants to submit a pull for this?)

Another option is implementing a key-binding that allow one to quickly toggle the state. This is a simpler change and useful regardless (it's requested in another thread), so I'll give this higher priority.

As for the number 3, I think it's a bad idea and I'll turn remove this behavior.

Let me know what you think.

[1] there's a bug that Octotree thinks you're accessing a private repo while in fact it's not even a repo. (Unfortunately, I currently know of no good way to tell between the two, as GitHub API returns 404 in both cases.) For example when navigating to /blog/some-post, it thinks you're accessing a repo name some-post by user blog. This particular bug with blog was fixed although there could be more corner cases.

@sylvia43
Copy link
Author

1: Good idea, maybe also add a little arrow to show how to close it "Click to close."
2: I disagree with this one, but maybe you could add a checkbox "Open by default."
3: I disagree with this one completely. If the user wants it open they can open it and enter a token.

@mkeeter
Copy link

mkeeter commented May 14, 2014

👍 for making it not pop out for private repos: I use a bunch of private repos at work and don't want to give octotree an access token, so having it constantly pop up is obnoxious.

@buunguyen
Copy link
Collaborator

Ok, everyone, I'm convinced. It will be closed by default, if you want it open, click the button or press a short key. I'm in the middle of a bunch of other things, so if somebody want to implement the keybinding, please go ahead, I can totally use a pull request here.

@buunguyen
Copy link
Collaborator

Fixed. Now it only shows the first time after installation, then will never automatically pop out. You either click the toggle button or press cmd+b or ctrl+b.

If you can pull latest, give it a try and let me know your feedback as to this new behavior works better or not, I really appreciate it. I want this to be thoroughly tried before pushing to Chrome Store as this changes the way people use Octotree.

I do have a concern for first time users. They install the extension, navigate to GitHub, the tree shows (nice!); before they have a chance to learn about the toggle button, they navigate to another page, never to see the Octotree again. I have grown a few gray hairs thinking about this scenario. What do you think?

In the mean time, reopen the issue, until I feel very comfortable that the current behavior is desirable and welcome by existing/new users.

@buunguyen buunguyen reopened this May 18, 2014
@sylvia43
Copy link
Author

The arrow is there, and you could add a pop-up message...

@buunguyen buunguyen added this to the 1.2.0 milestone May 19, 2014
@buunguyen
Copy link
Collaborator

I guess we could do something like that until the setting pane is implemented. Add an issue here: #84. This thread is closed now.

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

No branches or pull requests

9 participants