Skip to content

feat(frontend/forms): auto select container engines#1089

Merged
axel7083 merged 3 commits into
podman-desktop:mainfrom
axel7083:feature/frontend/forms/auto-select-container-engine
Dec 26, 2025
Merged

feat(frontend/forms): auto select container engines#1089
axel7083 merged 3 commits into
podman-desktop:mainfrom
axel7083:feature/frontend/forms/auto-select-container-engine

Conversation

@axel7083
Copy link
Copy Markdown
Collaborator

@axel7083 axel7083 commented Dec 23, 2025

Description

Today, the Generate Quadlet form has a Container Engine select, but this one is undefined by default but is required. This is not ideal, as we should auto select the first one for the user to ease the form usage.

💡 Since we auto select the first container engine, we need to remove the clearable option in the forms, so the first commit 989c460 is here to add this feature, and the second commit b863824 is here to use this new exposed clearable props.

⚠️ The svelte-select library is not compatible with Svelte5 so the packages/frontend/src/lib/select/Select.svelte cannot be migrated to Svelte5 :( (Upstream issue rob-balfre/svelte-select#716)

Screenshots

Screencast.From.2025-12-23.14-49-21.mp4

Related issues

Fixes #1016

Testing

  • Unit tests have been added

@axel7083 axel7083 requested a review from a team as a code owner December 23, 2025 13:54
@axel7083 axel7083 requested review from benoitf, bmahabirbu and simonrey1 and removed request for a team December 23, 2025 13:54
@coderabbitai

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor

@simonrey1 simonrey1 left a comment

Choose a reason for hiding this comment

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

LGTM
For Quadlet Generate form it seems to work on my Mac: the podman engine is auto selected.
I tried to access Quadlet Compose form through command and interface but no luck.

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
@axel7083 axel7083 force-pushed the feature/frontend/forms/auto-select-container-engine branch from b863824 to 3be6564 Compare December 26, 2025 10:41
@axel7083
Copy link
Copy Markdown
Collaborator Author

Funny enough, there were 10 lines of code to select the container engine, but now this is not needed! So removing those lines.

@axel7083
Copy link
Copy Markdown
Collaborator Author

I tried to access Quadlet Compose form through command and interface but no luck.

The compose form is kinda hidden because it lack so many features. You can check https://github.com/podman-desktop/extension-podman-quadlet?tab=readme-ov-file#compose to see how to access it.

@axel7083 axel7083 merged commit 69533af into podman-desktop:main Dec 26, 2025
11 checks passed
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.

On the Generate Quadlet form, autoselect Environment

2 participants