Skip to content

Commit

Permalink
Merge pull request ceph#52897 from cloudbehl/navigation-improvements
Browse files Browse the repository at this point in the history
mgr/dashboard: Left navigation improvements

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: ivoalmeida <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
  • Loading branch information
nizamial09 committed Oct 18, 2023
2 parents 0787262 + 7a54ba3 commit 72ea37a
Show file tree
Hide file tree
Showing 7 changed files with 277 additions and 164 deletions.
57 changes: 38 additions & 19 deletions src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,18 @@ export class NavigationPageHelper extends PageHelper {
};

navigations = [
{ menu: 'NFS', component: 'cd-error' },
{
menu: 'Object Gateway',
submenus: [
{ menu: 'Gateways', component: 'cd-rgw-daemon-list' },
{ menu: 'Users', component: 'cd-rgw-user-list' },
{ menu: 'Buckets', component: 'cd-rgw-bucket-list' }
]
},
{ menu: 'Dashboard', component: 'cd-dashboard' },
{
menu: 'Cluster',
submenus: [
{ menu: 'Pools', component: 'cd-pool-list' },
{ menu: 'Hosts', component: 'cd-hosts' },
{ menu: 'Physical Disks', component: 'cd-error' },
{ menu: 'Monitors', component: 'cd-monitor' },
{ menu: 'Services', component: 'cd-error' },
{ menu: 'OSDs', component: 'cd-osd-list' },
{ menu: 'Configuration', component: 'cd-configuration' },
{ menu: 'Physical Disks', component: 'cd-error' },
{ menu: 'CRUSH map', component: 'cd-crushmap' },
{ menu: 'Manager Modules', component: 'cd-mgr-module-list' },
{ menu: 'Ceph Users', component: 'cd-crud-table' },
{ menu: 'Logs', component: 'cd-logs' },
{ menu: 'Alerts', component: 'cd-prometheus-tabs' }
{ menu: 'Monitors', component: 'cd-monitor' }
]
},
{ menu: 'Pools', component: 'cd-pool-list' },
{
menu: 'Block',
submenus: [
Expand All @@ -41,7 +26,41 @@ export class NavigationPageHelper extends PageHelper {
{ menu: 'iSCSI', component: 'cd-iscsi' }
]
},
{ menu: 'File Systems', component: 'cd-cephfs-list' }
{
menu: 'Object',
submenus: [
{ menu: 'Overview', component: 'cd-rgw-overview-dashboard' },
{ menu: 'Buckets', component: 'cd-rgw-bucket-list' },
{ menu: 'Users', component: 'cd-rgw-user-list' },
{ menu: 'Multi-site', component: 'cd-rgw-multisite-details' },
{ menu: 'Gateways', component: 'cd-rgw-daemon-list' },
{ menu: 'NFS', component: 'cd-error' }
]
},
{
menu: 'File',
submenus: [
{ menu: 'File Systems', component: 'cd-cephfs-list' },
{ menu: 'NFS', component: 'cd-error' }
]
},
{
menu: 'Observability',
submenus: [
{ menu: 'Logs', component: 'cd-logs' },
{ menu: 'Alerts', component: 'cd-prometheus-tabs' }
]
},
{
menu: 'Administration',
submenus: [
{ menu: 'Services', component: 'cd-error' },
{ menu: 'Upgrade', component: 'cd-error' },
{ menu: 'Ceph Users', component: 'cd-crud-table' },
{ menu: 'Manager Modules', component: 'cd-mgr-module-list' },
{ menu: 'Configuration', component: 'cd-configuration' }
]
}
];

getVerticalMenu() {
Expand Down
26 changes: 13 additions & 13 deletions src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,31 +124,31 @@ const routes: Routes = [
path: 'ceph-users',
component: CRUDTableComponent,
data: {
breadcrumbs: 'Cluster/Ceph Users',
breadcrumbs: 'Administration/Ceph Users',
resource: 'api.cluster.user@1.0'
}
},
{
path: 'cluster/user/create',
component: CrudFormComponent,
data: {
breadcrumbs: 'Cluster/Ceph Users/Create',
breadcrumbs: 'Administration/Ceph Users/Create',
resource: 'api.cluster.user@1.0'
}
},
{
path: 'cluster/user/import',
component: CrudFormComponent,
data: {
breadcrumbs: 'Cluster/Ceph Users/Import',
breadcrumbs: 'Administration/Ceph Users/Import',
resource: 'api.cluster.user@1.0'
}
},
{
path: 'cluster/user/edit',
component: CrudFormComponent,
data: {
breadcrumbs: 'Cluster/Ceph Users/Edit',
breadcrumbs: 'Administration/Ceph Users/Edit',
resource: 'api.cluster.user@1.0'
}
},
Expand All @@ -169,7 +169,7 @@ const routes: Routes = [
section_info: 'Orchestrator',
header: 'Orchestrator is not available'
},
breadcrumbs: 'Cluster/Services'
breadcrumbs: 'Administration/Services'
},
children: [
{
Expand Down Expand Up @@ -213,7 +213,7 @@ const routes: Routes = [
},
{
path: 'configuration',
data: { breadcrumbs: 'Cluster/Configuration' },
data: { breadcrumbs: 'Administration/Configuration' },
children: [
{ path: '', component: ConfigurationComponent },
{
Expand All @@ -231,7 +231,7 @@ const routes: Routes = [
{
path: 'logs',
component: LogsComponent,
data: { breadcrumbs: 'Cluster/Logs' }
data: { breadcrumbs: 'Observability/Logs' }
},
{
path: 'telemetry',
Expand All @@ -240,7 +240,7 @@ const routes: Routes = [
},
{
path: 'monitoring',
data: { breadcrumbs: 'Cluster/Alerts' },
data: { breadcrumbs: 'Observability/Alerts' },
children: [
{ path: '', redirectTo: 'active-alerts', pathMatch: 'full' },
{
Expand Down Expand Up @@ -297,7 +297,7 @@ const routes: Routes = [
section_info: 'Orchestrator',
header: 'Orchestrator is not available'
},
breadcrumbs: 'Cluster/Upgrade'
breadcrumbs: 'Administration/Upgrade'
},
children: [
{
Expand All @@ -321,7 +321,7 @@ const routes: Routes = [
// Mgr modules
{
path: 'mgr-modules',
data: { breadcrumbs: 'Cluster/Manager Modules' },
data: { breadcrumbs: 'Administrator/Manager Modules' },
children: [
{
path: '',
Expand All @@ -339,7 +339,7 @@ const routes: Routes = [
// Pools
{
path: 'pool',
data: { breadcrumbs: 'Pools' },
data: { breadcrumbs: 'Cluster/Pools' },
loadChildren: () => import('./ceph/pool/pool.module').then((m) => m.RoutedPoolModule)
},
// Block
Expand All @@ -352,7 +352,7 @@ const routes: Routes = [
{
path: 'cephfs',
canActivate: [FeatureTogglesGuardService],
data: { breadcrumbs: 'File Systems' },
data: { breadcrumbs: 'File/File Systems' },
children: [
{ path: '', component: CephfsListComponent },
{
Expand Down Expand Up @@ -380,7 +380,7 @@ const routes: Routes = [
header: 'The Object Gateway Service is not configured'
},
breadcrumbs: true,
text: 'Object Gateway',
text: 'Object',
path: null
},
loadChildren: () => import('./ceph/rgw/rgw.module').then((m) => m.RoutedRgwModule)
Expand Down
Loading

0 comments on commit 72ea37a

Please sign in to comment.