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 Open in IDX buttons to astro.new #80

Merged
merged 4 commits into from
Nov 25, 2024
Merged

Add Open in IDX buttons to astro.new #80

merged 4 commits into from
Nov 25, 2024

Conversation

delucis
Copy link
Member

@delucis delucis commented Nov 23, 2024

This PR adds an “Open in IDX” button to each template’s card on astro.new.

This works the same way our other services do: you can open a named template using ?on=idx in the URL, e.g. https://astro.new/basics?on=idx, and uses the templates added in #79. (To test you’ll need the deploy preview URL for now, e.g. https://deploy-preview-80--astro-new.netlify.app/basics?on=idx or click a link in the preview,)

The button looks like this:

Open in IDX button

Clicking this takes you to IDX’s new workspace modal:

New workspace modal, using the astro.new template and options to set the worskpace name and choose the template

The workspace name and the template drop-down are set based on the template selected on astro.new. Users can change these if they want, but don’t need to: they can just click “Create” to get started.

Copy link

netlify bot commented Nov 23, 2024

Deploy Preview for astro-new ready!

Name Link
🔨 Latest commit 7fd3a8c
🔍 Latest deploy log https://app.netlify.com/sites/astro-new/deploys/67420a455cc22a000820e65e
😎 Deploy Preview https://deploy-preview-80--astro-new.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The buttons look great (Chrome) and the link works perfectly well for me!

@delucis delucis merged commit 7f1e260 into main Nov 25, 2024
5 checks passed
@delucis delucis deleted the chris/open-in-idx branch November 25, 2024 09:56
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