Skip to content
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: switch more pages to formpage #3162

Merged
merged 2 commits into from
Jul 11, 2023
Merged

Conversation

deboer-tim
Copy link
Collaborator

What does this PR do?

Changes almost all of the remaining pages to FormPages, using the existing icons that are used in the actions to open the form and the form button:

  • Build image
  • Pull image
  • Play Kube YAML
  • Create Pod from containers

Adds a new 'actions' slot for the PullImage page's Manage registries button. Adds 'missing' pull image action to the button to match other pages. Makes Kube play icon resizable so that a larger form can be used in the header.

Svelte has no API to test slots directly (see below), so a FormPageSpec component is added solely to be able to test that the icon/actions/content slots work correctly. The actions section is also tested by confirming the pull image registry button.

testing-library/svelte-testing-library#48 https://stackoverflow.com/questions/60771586/testing-svelte-components-that-use-slots

Screenshot/screencast of this PR

Screenshot 2023-07-10 at 9 10 21 AM Screenshot 2023-07-10 at 9 10 38 AM Screenshot 2023-07-10 at 9 10 53 AM Screenshot 2023-07-10 at 9 11 07 AM

What issues does this PR fix or reference?

N/A, updated design.

How to test this PR?

Go to all four pages to confirm new/consistent design.

Changes almost all of the remaining pages to FormPages, using the existing icons
that are used in the actions to open the form and the form button:
- Build image
- Pull image
- Play Kube YAML
- Create Pod from containers

Adds a new 'actions' slot for the PullImage page's Manage registries button.
Adds 'missing' pull image action to the button to match other pages.
Makes Kube play icon resizable so that a larger form can be used in the header.

Svelte has no API to test slots directly (see below), so a FormPageSpec component is
added solely to be able to test that the icon/actions/content slots work correctly.
The actions section is also tested by confirming the pull image registry button.

testing-library/svelte-testing-library#48
https://stackoverflow.com/questions/60771586/testing-svelte-components-that-use-slots

Signed-off-by: Tim deBoer <git@tdeboer.ca>
@deboer-tim deboer-tim requested review from a team and benoitf as code owners July 10, 2023 13:13
@deboer-tim deboer-tim requested review from jeffmaury and cdrage and removed request for a team July 10, 2023 13:13
deboer-tim added a commit to deboer-tim/desktop that referenced this pull request Jul 10, 2023
Troubleshooting is the one remaining page (after PR containers#3162) that wasn't a FormPage.
This switches it over, and does some minimal styling to keep it consistent with
other pages. Also fixed some minor formatting issues to make the section headers
and spacing consistent.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
Mairin clarified the design - the header should essentially be two rows:
- breadcrumb row with breadcrumb, page name, and close action
- titlebar with actions on the right

i.e. the top row is only for navigation, the second row gives the title
and actions for the page. The only real impact is that the 'Manage repos'
button on the Pull Image page will move from the top line to under the X.

The same change is intended to be made to the DetailsPage, but we need to
decide how to deal with the container CPU/memory use first.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
@deboer-tim
Copy link
Collaborator Author

New commit changed location of the Manage Registries button as per clarification from Mairin:
Screenshot 2023-07-10 at 1 46 41 PM

Copy link
Contributor

@jeffmaury jeffmaury left a comment

Choose a reason for hiding this comment

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

LGTM

@deboer-tim deboer-tim merged commit 37bf524 into containers:main Jul 11, 2023
8 checks passed
deboer-tim added a commit that referenced this pull request Jul 11, 2023
Troubleshooting is the one remaining page (after PR #3162) that wasn't a FormPage.
This switches it over, and does some minimal styling to keep it consistent with
other pages. Also fixed some minor formatting issues to make the section headers
and spacing consistent.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
@podman-desktop-bot podman-desktop-bot added this to the 1.2.0 milestone Jul 11, 2023
@deboer-tim deboer-tim deleted the form-pages branch February 5, 2024 22:18
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.

None yet

3 participants