Skip to content

Designing Create Quadlet page #424

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
axel7083 opened this issue Mar 21, 2025 · 7 comments · May be fixed by #536
Open

Designing Create Quadlet page #424

axel7083 opened this issue Mar 21, 2025 · 7 comments · May be fixed by #536
Assignees

Comments

@axel7083
Copy link
Contributor

Description

Today we can generate a Quadlet from an existing resource (E.g. container, image). However, user may want to create more complex Quadlets, and having a multi-file editors is something that may be interesting.

Inspiration

I was thinking adding a Create Quadlet button on the list page

Image

Create Page

The general idea would be to have several tabs, with a default Home. Here is a mockup

Image

I want to take some inspiration from the AI Lab recipes and Bootc template. Quadlets alone are not valuable, but working together, is where they are the best, therefore I want to provide some kind of template on the Home tab, that user can explore

Some screenshots from AI Lab and Bootc

Image

Image

@axel7083
Copy link
Contributor Author

axel7083 commented Mar 21, 2025

Here is some experiment I started, when opening the Quadlet Create page, we get on a page with a Template tab, when selecting from the template, the template page disappear, and the tabs are replaced by the content of the templates.

Demo

Screencast.From.2025-03-21.17-20-37.mp4

A template is defined by a name, a description and a list of files. A file is defined as a name and content.

Enhancement ideas

Instead of having the Template tab, we could ask the user when clicking on create, if we want to create from a template of scratch (empty file).

Image

Having a similar dialog that the Create on the Containers page.

The Tab component is pretty limited.. I cannot add context action (delete, rename). I may need to create a custom component.

@cdrage
Copy link
Contributor

cdrage commented Mar 24, 2025

Here is some experiment I started, when opening the Quadlet Create page, we get on a page with a Template tab, when selecting from the template, the template page disappear, and the tabs are replaced by the content of the templates.

Demo

Screencast.From.2025-03-21.17-20-37.mp4
A template is defined by a name, a description and a list of files. A file is defined as a name and content.

Enhancement ideas

Instead of having the Template tab, we could ask the user when clicking on create, if we want to create from a template of scratch (empty file).

Image

Having a similar dialog that the Create on the Containers page.

The Tab component is pretty limited.. I cannot add context action (delete, rename). I may need to create a custom component.

I love the new redesign and it's intuitive.

The only thing I'm confused on that wasn't shown on the video is if you press the "X" / close on the top right while editing.

I would expect a dialog comes up to save it or something?

@axel7083
Copy link
Contributor Author

axel7083 commented Mar 25, 2025

cc @cdrage here is another POC, with different design, and actions. More trying to be an editor

podman-qualdet-template-system.mp4

ℹ the branch POC https://github.com/axel7083/extension-podman-quadlet/tree/feature/projects

@deboer-tim
Copy link

This is cool and I like the ability to edit multiple files, but feels a little rough around the edges to me, e.g.:

  • I'm assuming the b9* hex code is just a dev artifact and we could have a better title.
  • not sure what the edit icon on each tab does?
  • adding icons to the tabs makes it harder to tell those are 'pages' and where they separate. removing the edit icon and moving the delete icon close might be enough? or maybe the tabs need a little redesign to work like this.
  • the add file button really stands out and seems a little out of place ... but if it wasn't purple does it blend in too much?
  • top right toolbar buttons are normally 'global actions' everywhere else, form buttons are normally at the bottom right.
  • I don't know what Lock icon does?

Don't take this list to be negative :) just need to figure out the right UI pattern for this.

@axel7083
Copy link
Contributor Author

Don't take this list to be negative :) just need to figure out the right UI pattern for this.

I don't !! I'm glad you are helping ! I'm POC-ing a lot with this, so thanks for the details list.

Will keep you updated with the next iteration!

@axel7083
Copy link
Contributor Author

I was having fun with the svelte playground today, and here is what they editor look likes

Image

You can edit filename by clicking on them, (not the most intuitive I would say)

Image

I like a lot the <file +> icon

@axel7083
Copy link
Contributor Author

axel7083 commented Apr 16, 2025

not sure what the edit icon on each tab does?

@deboer-tim yeah, we don't have a tree to see the content of the folder, so using the tabs is kinda the best I could found out

top right toolbar buttons are normally 'global actions' everywhere else, form buttons are normally at the bottom right.

I moved down the Load Into Machine action, but kept the provider selection at the top, (this is mandatory I need this value..)

Here is the updated, simplified version

Screencast.From.2025-04-16.17-47-25.mp4

For the tabs, I could add a File icon, to better indicate the difference with the traditional tabs in Podman Desktop

Here is an example

Image

current branch for the POC https://github.com/axel7083/extension-podman-quadlet/tree/feature/create-page

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 a pull request may close this issue.

3 participants