Skip to content

Commit

Permalink
Add banner linking discussions on beta galaxy (#4128)
Browse files Browse the repository at this point in the history
* Add banner linking discussions on beta galaxy

Issue: AAH-1893

* use Banner

* add feature flag check

using ai_deny_index to mean community
  • Loading branch information
himdel authored Aug 21, 2023
1 parent 6153089 commit b7d4b56
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/1893.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
beta-galaxy: add banner linking discussions
17 changes: 17 additions & 0 deletions src/loaders/standalone/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Trans, t } from '@lingui/macro';
import {
Banner,
DropdownItem,
DropdownSeparator,
Page,
Expand Down Expand Up @@ -168,6 +169,22 @@ export const StandaloneLayout = ({

return (
<Page isManagedSidebar={true} header={Header} sidebar={Sidebar}>
{featureFlags?.ai_deny_index ? (
<Banner>
<Trans>
Thanks for trying out the new and improved Beta Galaxy, please share
your feedback on{' '}
<a
href='https://github.com/ansible/galaxy_ng/discussions'
target='_blank'
rel='noreferrer'
>
github.com/ansible/galaxy_ng/discussions
</a>
.
</Trans>
</Banner>
) : null}
{children}
{aboutModalVisible && aboutModal}
</Page>
Expand Down

0 comments on commit b7d4b56

Please sign in to comment.