-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: adds welcome page & pull / build buttons #241
Conversation
Very simple welcome page that incorporates all that was talked about this week. Let me know with regards to the design what to improve and then I can add / modify the tests. TODOs after this PR:
|
This is very good! |
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.
Looking really good. Needs to be rebased and I suggested a few tweaks in wording, but if those were done I'd rather merge and have follow-up PRs for things like keeping some form of this open (vs more commits here).
packages/backend/src/api-impl.ts
Outdated
async generateUniqueBuildID(name: string): Promise<string> { | ||
return this.history.getUnusedHistoryName(name); | ||
} | ||
|
||
// Pull an image from the registry | ||
async pullImage(imageName: string): Promise<void> { |
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.
Can rebase on main now to pick this up.
<svelte:component this="{BootcSelkie}" size="120" /> | ||
</div> | ||
|
||
<h1 class="text-xl pb-4">Welcome to the Bootable Containers image builder!</h1> |
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.
We're going to have more discussion on which terms to use after this PR, but for now I'd prefer to drop 'the' and 'image builder', i.e. "Welcome to Bootable Containers" and be the intro to bootable containers and not limit ourselves to only building images.
|
||
<p class="text-gray-700 pb-1 max-w-xl"> | ||
Create your first disk image by {imageExists ? 'building' : 'pulling'} the <Link | ||
externalRef="{`https://${exampleImage}`}">example image</Link |
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.
"example container image"? Feels like we should keep being really clear about container images vs disk images.
7b1402b
to
ae83d39
Compare
### What does this PR do? * Updates the welcome / empty screen page so there is no more empty descriptions * Adds a build / pull button for a test iamge * Added API for opening an eternal link * If pulling for more than 5 seconds, show a warning ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes podman-desktop#150 ### How to test this PR? <!-- Please explain steps to reproduce --> Go to the welcome page with no builds, click on the pull / build buttons. Signed-off-by: Charlie Drage <[email protected]>
Updated to also now preselect the image when going to the build page: Screen.Recording.2024-03-28.at.4.05.26.PM.mov |
feat: adds welcome page & pull / build buttons
What does this PR do?
descriptions
Screenshot / video of UI
Screen.Recording.2024-03-27.at.7.19.12.PM.mov
What issues does this PR fix or reference?
Closes #150
How to test this PR?
Go to the welcome page with no builds, click on the pull / build
buttons.
Signed-off-by: Charlie Drage [email protected]