gcollazo / ember-cli-addon-search

This project is no longer maintained please visit Ember Observer

Home Page:https://emberobserver.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copy install command to clipboard

Dhaulagiri opened this issue · comments

When I'm browsing the site I often care a lot more about visiting the addon's github repo than I do the npm page. If this is a common feeling I was going to add some sort of link to the github repo, maybe next to the Travis status badge? If we were to add this link, we could use one of the github buttons, or I could just build more simple links.

Thoughts?

The thing is that not all packages are on GitHub because it's not a requirement. I also worry about overcrowding the UI.

In a past conversation we talked about maybe having a details pane for each module, something the user could toggle to reveal more information.

What other details were you thinking of surfacing on the details pane?

Some ideas to discuss:

  • Travis Badge
  • Version number
  • License
  • Categories with links (see #2)
  • Readme file
  • Repo url (Github, Bitbucket, others)
  • Install command npm install --save-dev ember-cli-showdown

maybe all the optional things like travis + gh belong in a "more" section

Making the install command that @gcollazo had mentioned a button to copy to clipboard would be a timesaver.

@sivakumar-kailasam I've been playing with that recently (using ember-cli-zero-clipboard) and noticed that the solution needs to take into account users without flash player installed. That means detecting Flash (swfobject) and having some sort of alternate UI for when the user doesn't have flash. I found two examples of how people are dealing with this.

I'm starting to think that we should take the Bit.ly without Flash Player approach.

Bit.ly with Flash Player
Chrome with Flash

Bit.ly without Flash Player
Firefox without Flash

GitHub with Flash
Chrome with Flash

GitHub without Flash
Firefox without Flash

Yep the non-flash approach sounds great.

@eluciano11 Will be working on this soon. Here's the current design.

screen_shot_2015-06-24_at_5 32 13_pm

Just noticed this feature while writing my issue. 👍

Thanks @eluciano11 for the contribution.

No problem.