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: background colors and FormPage #2977

Merged
merged 1 commit into from Jun 23, 2023

Conversation

deboer-tim
Copy link
Collaborator

@deboer-tim deboer-tim commented Jun 22, 2023

What does this PR do?

There are 3 pages that have lighter content backgrounds: RunImage, DeployPodToKube, and Help. After fixing the header and scrollbars globally, these screens look odd because the lighter background doesn't cover the entire content area when the screen is large.

I thought these screens were incorrect compared to the others, but after checking with @mairin these three are actually more recent designs. The intention is for all 'task pages' (Pull Image, Build Image, etc) to have the same lighter background, and be similar to the Details pages with breadcrumbs, close button, and potentially icons or other things in the future.

The only fix for the background color is to customize NavPage's content background - or just define these as a new FormPage component. Since I was going to create this component anyway I added some basic features: the same breadcrumb and close button as we have in the details pages.

So to sum up this:

  • fix: Fixes the problem with incomplete background color.
  • chore: Defines common FormPage for these pages.
  • feat: Adds breadcrumb and close button to these pages, matching what we have in the Details pages.

Future work (follow-up PRs):

  • Switch the other task pages over.
  • Wait for full design and add icons or other features.

Screenshot/screencast of this PR

Screenshot 2023-06-22 at 11 55 29 AM

What issues does this PR fix or reference?

Fixes #2976.

How to test this PR?

Open these three pages and confirm consistent look and feel, scrolling, and background color when the screen is large.

@deboer-tim deboer-tim requested review from a team and benoitf as code owners June 22, 2023 18:46
@deboer-tim deboer-tim requested review from jeffmaury and lstocchi and removed request for a team June 22, 2023 18:46
@benoitf
Copy link
Collaborator

benoitf commented Jun 22, 2023

I'm unsure about the name TaskPage as we have a TaskBar and Task* components. I think it might be confusing to know what is doing what (not saying we should not have a separate component but the name Task looks problematic)

@deboer-tim
Copy link
Collaborator Author

Good point. Most of them are ‘task creation pages’ but the Help page doesn’t really fit.

Not sure what else to use though. Don’t like WizardPage. FormPage? Anyone else have an idea?

@mairin
Copy link
Member

mairin commented Jun 23, 2023

Good point. Most of them are ‘task creation pages’ but the Help page doesn’t really fit.

Not sure what else to use though. Don’t like WizardPage. FormPage? Anyone else have an idea?

ActionPage?
ActionForm?

@mairin
Copy link
Member

mairin commented Jun 23, 2023

Actually Action* would be a nice parallelism with the buttons that lead to these pages were they to be called... ActionButtons 😉

@benoitf
Copy link
Collaborator

benoitf commented Jun 23, 2023

ActionPage or FormPage works for me as well (it's not mixing with Tasks that are separate concept)
ActionForm is changing the **Page files but could work as well

There are 3 pages that have lighter content backgrounds: RunImage, DeployPodToKube,
and Help. After fixing the header and scrollbars globally, these screens look odd
because the lighter background doesn't cover the entire content area when the screen
is large.

I thought these screens were incorrect compared to the others, but after checking
with @mairin these three are actually more recent designs. The intention is for all
'task pages' (Pull Image, Build Image, etc) to have the same lighter background, and
be similar to the Details pages with breadcrumbs, close button, and potentially icons
or other things in the future.

The only fix for the background color is to customize NavPage's content background -
or just define these as a new FormPage component. Since I was going to create this
component anyway I added some basic features: the same breadcrumb and close button as
we have in the details pages.

So to sum up this:
- fix: Fixes the problem with incomplete background color.
- chore: Defines common FormPage for these pages.
- feat: Adds breadcrumb and close button to these pages, matching what we have in
  the Details pages.

Future work (follow-up PRs):
- Switch the other task pages over.
- Wait for full design and add icons or other features.

Fixes containers#2976.

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

I would rather stick with *Page since we already have NavPage and SettingsPage. While it's ok if Help doesn't fit the pattern I felt like FormPage was better (these are generally forms, to provide details for an action?) so I've updated the commit. If anyone feels strongly otherwise I can rename again.

@deboer-tim deboer-tim merged commit fe18540 into containers:main Jun 23, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.2.0 milestone Jun 23, 2023
@benoitf benoitf changed the title feat: background colors and TaskPage feat: background colors and FormPage Jun 23, 2023
@deboer-tim deboer-tim deleted the task-page branch June 26, 2023 13:15
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.

Odd scrolling of lighter backgrounds on task pages
4 participants