Skip to content

feat: add feeling lucky button#87

Open
trueberryless wants to merge 2 commits into
e18e:mainfrom
trueberryless:feat/feeling-lucky
Open

feat: add feeling lucky button#87
trueberryless wants to merge 2 commits into
e18e:mainfrom
trueberryless:feat/feeling-lucky

Conversation

@trueberryless

Copy link
Copy Markdown
Contributor

Description

This PR adds a "I'm feeling lucky" link to the index page, which picks a truly random package afterNavigate so browser back navigations are also handled correctly every time the page is displayed again.

I chose to do it truly random for now instead of pseudo random, alto I noticed that lodash packages do naturally get picked more often because we have a lot of individual replacements for it. If users report in the future that they would expect a more "balanced" randomness, we can always improve it to apply some negative weights to packages that have similar names.

While implementing the new link (it's not a button for accessibility reasons), I decided to redesign the landing page a little bit:

image

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.

"I'm feeling lucky" feature

1 participant