-
Notifications
You must be signed in to change notification settings - Fork 105
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
Sort libraries by GitHub stars #1209
Conversation
Preview this PR: https://custom-elements-everywhere.com/preview/preview/preview/1209/ |
Related to #1140 |
@@ -116,7 +116,8 @@ limitations under the License. | |||
<div class="level-item has-text-centered"> | |||
<div> | |||
<p class="heading">Library</p> | |||
<h3 class="title">{{fullName}} <span class="library-version">{{results.libraryVersion}}</span></h3> | |||
<h3 class="title"><a href="{{repo.html_url}}">{{fullName}}</a> <span | |||
class="library-version">{{results.libraryVersion}}</span></h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit and non actionable here. I wonder if there is some way to shorten this or link this to the github version. For example this is very long on React experimental.
Maybe even truncate it with css?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Really great improvement!
I went through the repo links and checked them manually. The list feels more intuitive as you scroll down now.
Edit: The preview feature makes it so nice to review these changes.
@@ -119,6 +122,14 @@ async function runTests() { | |||
return failed; | |||
} | |||
|
|||
async function fetchMetadata(library) { | |||
const repoMeta = (await (await fetch(`https://api.github.com/repos/${library.packageJson.library_repo}`)).json()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL!
Also, since we now need a GH repo for every library, make the name a link to the repo
f9d370d
to
de27398
Compare
Also, since we now need a GH repo for every library, make the name a link to the repo
On the plus side, this means that the info a person is most likely to be curious about will be right at the top
On the minus side, if the library they want to know about isn't near the top, they'll pretty much have to ctrl-f to find it / know whether we have an entry for it or not