-
Notifications
You must be signed in to change notification settings - Fork 10
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 ability to create image from snapshot #1663
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There's a somewhat larger track of work here which is making the image creation form match the designs. Currently it's completely upload centric whereas the designs show being able to pick a source (upload, snapshot, and potentially URL). I haven't decided if I'm going to take that piece of work on or defer it for later. |
@@ -313,6 +314,12 @@ export const routes = createRoutesFromElements( | |||
element={<CreateSnapshotSideModalForm />} | |||
handle={{ crumb: 'New snapshot' }} | |||
/> | |||
<Route | |||
path="snapshots/:snapshot/image-new" |
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.
The path here is a little odd. I've patterned it after the other create endpoints though it doesn't necessarily need to be image-new
. It could be something like create-image
. There's really just no precedent for that.
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.
I think this is the most reasonable choice.
Fixes #1456
This PR enables creating an image from a snapshot in the snapshots list page.
Tasks
Follow-up
There's some remaining work to be done here, but after thinking about it a bit I've decided to pull it out of this PR to contain the scope. When creating an image from the image list page instead of an action that says
Upload image
it should sayNew image
(similarly to how projects, instances, etc are listed). We should then add an image source selector to mirror the API which should offer a choice between snapshot and upload.(Note the designs show disk which isn't valid in this case)