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

Sort libraries by GitHub stars #1209

Merged
merged 1 commit into from
Feb 11, 2022
Merged

Sort libraries by GitHub stars #1209

merged 1 commit into from
Feb 11, 2022

Conversation

rictic
Copy link
Contributor

@rictic rictic commented Jan 7, 2022

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2022

@rictic
Copy link
Contributor Author

rictic commented Jan 7, 2022

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>
Copy link
Collaborator

@AndrewJakubowicz AndrewJakubowicz Jan 7, 2022

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?

Copy link
Collaborator

@AndrewJakubowicz AndrewJakubowicz left a 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());
Copy link
Collaborator

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
@rictic rictic merged commit 846b8b7 into main Feb 11, 2022
@rictic rictic deleted the sort-by-stars branch February 11, 2022 17:55
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.

2 participants