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

Make logo clickable #248

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

ZitaNemeckova
Copy link
Member

Fix-Issue: AAH-162

@@ -223,7 +223,11 @@ class App extends React.Component<RouteComponentProps, IState> {

const Header = (
<PageHeader
logo={<SmallLogo alt='Galaxy Logo'></SmallLogo>}
logo={
<a href={'/'}>
Copy link
Member

Choose a reason for hiding this comment

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

Why not Link?

Also, unrelated, but we should change Galaxy Logo to use the APPLICATION_NAME

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed :)

@newswangerd newswangerd added the backport-4.2 This PR should be backported to stable-4.2 (1.2) label Nov 18, 2020
Fix-Issue: AAH-162
@ZitaNemeckova ZitaNemeckova merged commit d9d90d0 into ansible:master Nov 19, 2020
@ZitaNemeckova ZitaNemeckova deleted the logo_clickable branch November 19, 2020 13:40
patchback bot pushed a commit that referenced this pull request Nov 19, 2020
Fix-Issue: AAH-162
(cherry picked from commit d9d90d0)
newswangerd pushed a commit that referenced this pull request Nov 19, 2020
Fix-Issue: AAH-162
(cherry picked from commit d9d90d0)

Co-authored-by: ZitaNemeckova <znemecko@redhat.com>
himdel added a commit to himdel/ansible-hub-ui that referenced this pull request Mar 8, 2021
Introduced in ansible#248, PageHeader wraps logo in `a` by default and the logo became a Link, leading to `a > a > img`

We can override the upper `a` using `logoComponent` (https://www.patternfly.org/v4/components/page#pageheader), doing that.
ZitaNemeckova pushed a commit that referenced this pull request Mar 9, 2021
)

* Delete modal - create a shared delete modal, use for users, groups

using title + titleVariant instead of a custom modal header fixes the font size and icon alignment,
lowercasing the second word (Delete user => Delete group)
and adding a description with the name in bold

* gitignore/prettierignore vim swap files

otherwise, `git commit` fails when a file is being edited, because prettier fails with

    [error] No parser could be inferred for file: src/containers/group-management/.group-detail.tsx.swp

* group-detail: add a Delete button, similar to User detail

also behaves the same way, alerts and redirects to group list after success

* group-detail: use DeleteModal to confirm user removal from group

* group-detail: list affected users when deleting group

wip: deal with more users, list screen

* group-detail: fix Users tab count, sort

default sort pretended to be username but the list was unsorted until the sort order was changed
and there was only 1 page because the count came from results length, limited by page size

* group-detail: show max 10 users, just the count on more

* Fix `<a> cannot appear as a descendant of <a>` warning

Introduced in #248, PageHeader wraps logo in `a` by default and the logo became a Link, leading to `a > a > img`

We can override the upper `a` using `logoComponent` (https://www.patternfly.org/v4/components/page#pageheader), doing that.

* DeleteGroupModal: move delete group modal logic from group-detail to own modal, use from group-list

* users: use UserType[] instead of any[]
@ZitaNemeckova ZitaNemeckova added the backported-4.2 This PR has been backported to stable-4.2 (1.2) label Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4.2 This PR should be backported to stable-4.2 (1.2) backported-4.2 This PR has been backported to stable-4.2 (1.2)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants