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

Add a route to open Blueprint Gallery via URL #2031

Open
bph opened this issue Nov 26, 2024 · 4 comments
Open

Add a route to open Blueprint Gallery via URL #2031

bph opened this issue Nov 26, 2024 · 4 comments
Labels

Comments

@bph
Copy link
Collaborator

bph commented Nov 26, 2024

The Blueprint Gallery on GitHub feeds into the Playground app/site with a separate menu link in the darker navigation section.
It would be much more meaningful to introduce people to the various examples in the Gallery if we could point to a playground.wordpress.net/blueprint-gallery or playground.wordpress.net?page=blueprintgallery instead of the GitHub space.

@zaerl
Copy link
Collaborator

zaerl commented Dec 3, 2024

Hi @bph. Do you mean the "Blueprint Gallery" menu item on the left?
Image

I think all the links in the Blueprint context that bring the user to https://github.com/WordPress/blueprints/blob/trunk/GALLERY.md or https://github.com/WordPress/blueprints/blob/trunk/GALLERY.md immediately or after a couple of clicks are ok. You don't need to have a root page to handle this. What do you think @adamziel?

@zaerl zaerl moved this from Inbox to Needs Triage/Our Reply in Playground Board Dec 3, 2024
@bph
Copy link
Collaborator Author

bph commented Dec 3, 2024

Yes, that particular menu item should have its own URL, so when the URL is share in context a click brings up a Playground instance with the blueprint gallery open.

Here is a use case:
Someone writes an article on how blueprints work and how one can browse a list of examples. The easiest way for the reader would be to follow the link to the Playground instance with the Blueprints Gallery open and she can immediately click on each scenario and load the site with the blueprint.

This entrance is a much nicer entrance to explore the Blueprints Gallery.
Image

GitHub is for many non-developers a scary place and this page of the Gallery.md is not particular appealing.

Image

It's all about discoverability. And most of the time people learn from other people's writing rather then go and look at GitHub repos.

What do you think? @zaerl

@zaerl
Copy link
Collaborator

zaerl commented Dec 17, 2024

@bph I think this makes sense and will show the final user a more polished context. We should change the used Github bots to update the new page. It's a great idea, but perhaps there are better ones to be handled right now, given our current priorities.

@adamziel
Copy link
Collaborator

@zaerl this would involve displaying that panel based on a query param instead of a piece of redux state. It could be an easy win – would you be interested in exploring this?

@adamziel adamziel moved this from Needs Triage/Our Reply to Needs Reply in Playground Board Dec 18, 2024
@adamziel adamziel moved this from Needs Reply to Backlog in Playground Board Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

3 participants