Rename Organization diagram to Groups

Signed-off-by: Kévin Gomez <kevin.gomez@voiapp.io>
This commit is contained in:
Kévin Gomez
2021-05-05 14:22:33 +02:00
parent 0b033d07b7
commit d67645ca05
4 changed files with 11 additions and 11 deletions
@@ -16,7 +16,7 @@
import { TabbedLayout } from '@backstage/core';
import React from 'react';
import { DomainExplorerContent } from '../DomainExplorerContent';
import { OrganizationExplorerContent } from '../OrganizationExplorerContent';
import { GroupsExplorerContent } from '../GroupsExplorerContent';
import { ToolExplorerContent } from '../ToolExplorerContent';
export const ExploreTabs = () => (
@@ -24,8 +24,8 @@ export const ExploreTabs = () => (
<TabbedLayout.Route path="domains" title="Domains">
<DomainExplorerContent />
</TabbedLayout.Route>
<TabbedLayout.Route path="organization" title="Organization">
<OrganizationExplorerContent />
<TabbedLayout.Route path="groups" title="Groups">
<GroupsExplorerContent />
</TabbedLayout.Route>
<TabbedLayout.Route path="tools" title="Tools">
<ToolExplorerContent />
@@ -105,9 +105,9 @@ function RenderNode(props: DependencyGraphTypes.RenderNodeProps<any>) {
}
/**
* Dynamically generates a diagram of an organization.
* Dynamically generates a diagram of groups registered in the catalog.
*/
export function OrganizationDiagram() {
export function GroupsDiagram() {
const nodes = new Array<{ id: string; kind: string; name: string }>();
const edges = new Array<{ from: string; to: string; label: string }>();
@@ -15,16 +15,16 @@
*/
import { Content, ContentHeader, SupportButton } from '@backstage/core';
import React from 'react';
import { OrganizationDiagram } from './OrganizationDiagram';
import { GroupsDiagram } from './GroupsDiagram';
export const OrganizationExplorerContent = () => {
export const GroupsExplorerContent = () => {
return (
<Content noPadding>
<ContentHeader title="Organization">
<SupportButton>Explore your organization.</SupportButton>
<ContentHeader title="Groups">
<SupportButton>Explore your groups.</SupportButton>
</ContentHeader>
<OrganizationDiagram />
<GroupsDiagram />
</Content>
);
};
@@ -13,4 +13,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { OrganizationExplorerContent } from './OrganizationExplorerContent';
export { GroupsExplorerContent } from './GroupsExplorerContent';