Rename Organization diagram to Groups
Signed-off-by: Kévin Gomez <kevin.gomez@voiapp.io>
This commit is contained in:
@@ -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 />
|
||||
|
||||
+2
-2
@@ -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 }>();
|
||||
|
||||
+5
-5
@@ -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>
|
||||
);
|
||||
};
|
||||
+1
-1
@@ -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';
|
||||
Reference in New Issue
Block a user