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

* Provisioning: Add experimental feature banner

* translations
pull/103958/head^2
Alex Khomenko 3 months ago committed by GitHub
parent 18a870d7ca
commit d85d730d9c
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 { Repository } from 'app/api/clients/provisioning';
import { Page } from 'app/core/components/Page/Page'; 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'; import GettingStarted from './GettingStarted';
interface Props { interface Props {
items: Repository[]; items: Repository[];
} }
@ -20,8 +22,34 @@ export default function GettingStartedPage({ items }: Props) {
}} }}
> >
<Page.Contents> <Page.Contents>
<Banner />
<GettingStarted items={items} /> <GettingStarted items={items} />
</Page.Contents> </Page.Contents>
</Page> </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>
);
}

@ -6938,6 +6938,9 @@
} }
}, },
"provisioning": { "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": { "bootstrap-step": {
"description-clear-repository-connection": "Add a clear name for this repository connection", "description-clear-repository-connection": "Add a clear name for this repository connection",
"empty": "Empty", "empty": "Empty",

Loading…
Cancel
Save