Skip to content

chore: add disclaimer that to test VM, have to add ssh key #1685

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cdrage
Copy link
Contributor

@cdrage cdrage commented May 28, 2025

chore: add disclaimer that to test, have to add ssh key

What does this PR do?

  • Adds a small disclaimer that only appears on mac or linux that you
    should add your SSH key + do output as raw or qcow2
  • For this PR, I also did an alternative way of doing tests since I did
    not want to copy / paste and only be changing one thing. So in this PR
    the tests are "table-based".

Screenshot / video of UI

Screenshot 2025-05-28 at 11 41 35 AM

What issues does this PR fix or reference?

Closes #1569

How to test this PR?

  1. pnpm watch
  2. See that the disclaimer is shwon on the build page.

Signed-off-by: Charlie Drage [email protected]

@cdrage cdrage requested a review from a team as a code owner May 28, 2025 20:33
@cdrage cdrage requested review from benoitf, feloy and SoniaSandler and removed request for a team May 28, 2025 20:33
<!-- If on Linux, warn that during the build, credentials will be asked in order to run an escalated privileged build prompt -->
{#if isLinux}
<p class="text-sm text-[var(--pd-content-text)] pt-1">
<p class="text-sm text-[var(--pd-content-text)] m-0 pt-0">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI, I changed the margin as well as the padding so it looks nicer. The default (from text-sm) was adding too much spacing.

@cdrage cdrage changed the title chore: add disclaimer that to test, have to add ssh key chore: add disclaimer that to test VM, have to add ssh key May 28, 2025
Copy link
Contributor

@deboer-tim deboer-tim left a comment

Choose a reason for hiding this comment

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

PR check (missing type) needs to be fixed.

I'd personally prefer the text was above (before) the button, but precedent already set with the existing Linux text. Nice update.



// The below mocks are the same across all tests.
const setupPlatformMocks = (isMac: boolean, isWindows: boolean, isLinux: boolean) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: const setupPlatformMocks = (platform: string) => {
and
vi.mocked(bootcClient.isMac).mockResolvedValue(platform == 'macOS'); ...
and
{ platform: 'macOS', shouldShow: true }, ...
seems simpler?

### What does this PR do?

* Adds a small disclaimer that only appears on mac or linux that you
  should add your SSH key + do output as raw or qcow2
* For this PR, I also did an alternative way of doing tests since I did
  not want to copy / paste and only be changing one thing. So in this PR
  the tests are "table-based".

### 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#1569

### How to test this PR?

<!-- Please explain steps to reproduce -->

1. pnpm watch
2. See that the disclaimer is shwon on the build page.

Signed-off-by: Charlie Drage <[email protected]>
@cdrage
Copy link
Contributor Author

cdrage commented May 29, 2025

Fixed and changes incorporated regarding the test as well as placement of the disclaimer!

Screenshot 2025-05-29 at 3 01 40 PM

@cdrage cdrage requested a review from deboer-tim June 4, 2025 20:48
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.

Add disclaimer on Build page that to use VM features, need to provide username and ssh key.
2 participants