Skip to content

Commit

Permalink
[RHOAIENG-5080] Update order of tabs on project page
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-phillips-18 committed Apr 3, 2024
1 parent 42c0f11 commit 5808fdd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions frontend/src/pages/projects/screens/detail/ProjectDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ const ProjectDetails: React.FC = () => {
sections={[
{ id: ProjectSectionID.OVERVIEW, title: 'Overview', component: <ProjectOverview /> },
{ id: ProjectSectionID.WORKBENCHES, title: 'Workbenches', component: <NotebookList /> },
{
id: ProjectSectionID.CLUSTER_STORAGES,
title: 'Cluster storage',
component: <StorageList />,
},
{
id: ProjectSectionID.DATA_CONNECTIONS,
title: 'Data connections',
component: <DataConnectionsList />,
},
...(pipelinesEnabled
? [
{
Expand All @@ -69,6 +59,16 @@ const ProjectDetails: React.FC = () => {
},
]
: []),
{
id: ProjectSectionID.CLUSTER_STORAGES,
title: 'Cluster storage',
component: <StorageList />,
},
{
id: ProjectSectionID.DATA_CONNECTIONS,
title: 'Data connections',
component: <DataConnectionsList />,
},
...(projectSharingEnabled
? [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ const ConfigurationSection: React.FC = () => {
>
<InfoGalleryItem
sectionType={SectionType.setup}
title="Permissions"
imgSrc={typedObjectImage(ProjectObjectType.group)}
description="Add users and groups to share access to your project."
imgSrc={typedObjectImage(ProjectObjectType.clusterStorage)}
title="Cluster storage"
description="To save your project data, you can add cluster storage and optionally connect the storage to a workbench."
isOpen={open}
onClick={() =>
navigate(
`/projects/${currentProject.metadata.name}?section=${ProjectSectionID.PERMISSIONS}`,
`/projects/${currentProject.metadata.name}?section=${ProjectSectionID.CLUSTER_STORAGES}`,
)
}
/>
Expand All @@ -59,13 +59,13 @@ const ConfigurationSection: React.FC = () => {
/>
<InfoGalleryItem
sectionType={SectionType.setup}
imgSrc={typedObjectImage(ProjectObjectType.clusterStorage)}
title="Cluster storage"
description="To save your project data, you can add cluster storage and optionally connect the storage to a workbench."
title="Permissions"
imgSrc={typedObjectImage(ProjectObjectType.group)}
description="Add users and groups to share access to your project."
isOpen={open}
onClick={() =>
navigate(
`/projects/${currentProject.metadata.name}?section=${ProjectSectionID.CLUSTER_STORAGES}`,
`/projects/${currentProject.metadata.name}?section=${ProjectSectionID.PERMISSIONS}`,
)
}
/>
Expand Down

0 comments on commit 5808fdd

Please sign in to comment.