[release-12.0.1] Provisioning: Add banner with more feature info (#104146)

Provisioning: Add banner with more feature info (#104111)

* Provisioning: Add experimental feature banner

* translations

(cherry picked from commit d85d730d9c)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
pull/104176/head
grafana-delivery-bot[bot] 3 months ago committed by GitHub
parent 9eb36ac222
commit e94d5f0119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 30
      public/app/features/provisioning/GettingStarted/GettingStartedPage.tsx
  2. 3
      public/locales/en-US/grafana.json

@ -1,8 +1,10 @@
import { Box, Text, TextLink } from '@grafana/ui';
import { Repository } from 'app/api/clients/provisioning';
import { Page } from 'app/core/components/Page/Page';
import { t } from 'app/core/internationalization';
import { t, Trans } from 'app/core/internationalization';
import GettingStarted from './GettingStarted';
interface Props {
items: Repository[];
}
@ -20,8 +22,34 @@ export default function GettingStartedPage({ items }: Props) {
}}
>
<Page.Contents>
<Banner />
<GettingStarted items={items} />
</Page.Contents>
</Page>
);
}
function Banner() {
return (
<Box
display="flex"
backgroundColor={'info'}
borderRadius="default"
paddingY={2}
paddingX={2}
marginBottom={3}
alignItems="stretch"
>
<Text>
<Trans i18nKey={'provisioning.banner.message'}>
This feature is currently under active development. For the best experience and latest improvements, we
recommend using the{' '}
<TextLink href={'https://grafana.com/grafana/download/nightly'} external>
nightly build
</TextLink>{' '}
of Grafana.
</Trans>
</Text>
</Box>
);
}

@ -6441,6 +6441,9 @@
}
},
"provisioning": {
"banner": {
"message": "This feature is currently under active development. For the best experience and latest improvements, we recommend using the <2>nightly build</2> of Grafana."
},
"bootstrap-step": {
"description-clear-repository-connection": "Add a clear name for this repository connection",
"empty": "Empty",

Loading…
Cancel
Save