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

chore: add close button to troubleshooting and help page #4457

Merged

Conversation

jannikbertram
Copy link
Contributor

@jannikbertram jannikbertram commented Oct 20, 2023

What does this PR do?

  • Add an X button to pages which don't have breadcrumbs

Screenshot/screencast of this PR

image image

What issues does this PR fix or reference?

Closes #2878

How to test this PR?

Visit the "Troubleshooting" and "Help" page

@jannikbertram jannikbertram requested review from benoitf and a team as code owners October 20, 2023 18:15
@jannikbertram jannikbertram requested review from jeffmaury and feloy and removed request for a team October 20, 2023 18:15
@jannikbertram jannikbertram force-pushed the help-troubleshooting-breadcrumbs branch from d1e685c to 628561d Compare October 20, 2023 18:16
@deboer-tim
Copy link
Collaborator

@mairin The original design was no breadcrumbs on these two pages, but it sounds like it's throwing people off. Thoughts?

@jannikbertram If we do go down this route we should remove the property entirely instead of setting it true everywhere, and likely rename Home to Dashboard since I assume that's where it goes 'back' to.

@jannikbertram
Copy link
Contributor Author

Another option would be to only include the ❌ icon and remove the breadcrumbs.
I just thought I propose this obvious approach first.
Just let me know which design is preferred

@mairin
Copy link
Member

mairin commented Oct 22, 2023

@deboer-tim @jannikbertram Help and Troubleshooting didn't have breadcrumbs because they sort of belong to the status bar... Neither has a presence on the dashboard (not that they shouldn't, they just don't) so semantically linking back to the Dashboard as a parent in a breadcrumb feels weird.

I do think the X in the upper right is a good idea and may have even been in the original design. I really like how you have it going to the last previously-viewed screen when the user hits the X.

I would say let's try a light touch first and just do the X, and try to side step the 🤯-ness of the breadcrumbs for now?

@jannikbertram
Copy link
Contributor Author

jannikbertram commented Oct 22, 2023

Thanks for clarifying this @mairin. I added a new commit and updated the PR description.

This is how it looks when you use the X button together with actions and breadcrumbs:

image

I'm not sure if it should be possible like this. I feel like this really is about small details, so please let me know if you want this to behave differently. I can keep updating this until we find a consistent solution

@deboer-tim
Copy link
Collaborator

That looks odd to me. I don't think this PR should change the location of the close button on all the other pages (it should remain on the 'breadcrumb bar'), only add a close button to the ones that don't have breadcrumbs.

@jannikbertram jannikbertram force-pushed the help-troubleshooting-breadcrumbs branch 3 times, most recently from 26979c6 to bc0c70f Compare October 22, 2023 20:53
@jannikbertram
Copy link
Contributor Author

I updated the PR again

only add a close button to the ones that don't have breadcrumbs.

now it simply does this ☝️

@mairin
Copy link
Member

mairin commented Oct 22, 2023

@jannikbertram this looks great to me, just tested it out :)

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.

Fix unit tests

@jannikbertram jannikbertram force-pushed the help-troubleshooting-breadcrumbs branch from bc0c70f to 03129d7 Compare October 23, 2023 18:23
@jannikbertram jannikbertram changed the title chore: add breadcrumbs on troubleshooting and help page chore: add close button on troubleshooting and help page Oct 23, 2023
@jannikbertram jannikbertram changed the title chore: add close button on troubleshooting and help page chore: add close button to troubleshooting and help page Oct 23, 2023
Signed-off-by: Jannik Bertram <jb@allgravy.com>
Signed-off-by: Jannik Bertram <jb@allgravy.com>
Signed-off-by: Jannik Bertram <jb@allgravy.com>
Signed-off-by: Jannik Bertram <jb@allgravy.com>
@jannikbertram jannikbertram force-pushed the help-troubleshooting-breadcrumbs branch from ff7ead8 to ce9a424 Compare October 24, 2023 14:41
@jannikbertram
Copy link
Contributor Author

@jeffmaury can you trigger the unit tests again? They should be working now

Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

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

thanks @jannikbertram for your contribution

Copy link
Collaborator

@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.

LGTM. @jeffmaury, assuming you're 👍🏼 now.

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. Thanks @jannikbertram for this

@jeffmaury jeffmaury merged commit ecc3b71 into containers:main Oct 25, 2023
9 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.6.0 milestone Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Help screen does not the option to "x" out of it
6 participants