Orgs: Add future deprecation notice (#24502)

* Orgs: Fist draft of orgs deprecation infobox

* adds warning about potentially deprecating orgs (#24512)

* Updates

* Fixed ts issue

Co-authored-by: Carl Bergquist <carl@grafana.com>
This commit is contained in:
Torkel Ödegaard
2020-05-14 12:16:26 +02:00
committed by GitHub
parent 85ae144a87
commit 2f22781cd8
4 changed files with 47 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import { getNavModel } from 'app/core/selectors/navModel';
import Page from 'app/core/components/Page/Page';
import { useSelector } from 'react-redux';
import { StoreState } from 'app/types/store';
import { LinkButton } from '@grafana/ui';
import { LinkButton, InfoBox, VerticalGroup } from '@grafana/ui';
import { getBackendSrv } from '@grafana/runtime';
import { AdminOrgsTable } from './AdminOrgsTable';
import useAsyncFn from 'react-use/lib/useAsyncFn';
@@ -29,6 +29,21 @@ export const AdminListOrgsPages: FC = () => {
<Page.Contents>
<>
<div className="page-action-bar">
<InfoBox branded>
<VerticalGroup spacing="xs">
<p>
Fewer than 1% of Grafana installations use organizations, and we think that most of those would have a
better experience with Teams instead. As such, we are considering de-emphasizing and eventually
deprecating Organizations in a future Grafana release. If you would like to provide feedback or
describe your need, please do so{' '}
<a className="external-link" href="https://github.com/grafana/grafana/issues/24588">
here
</a>
.{' '}
</p>
</VerticalGroup>
</InfoBox>
<div className="page-action-bar__spacer"></div>
<LinkButton icon="plus" href="org/new">
New org