Merge pull request 'feat: update sidebar navigation labels and structure for better clarity' (#37) from feat/order-sidebar-menu into dev

Reviewed-on: itm/siakad-itm#37
This commit is contained in:
pangestu 2026-08-25 20:39:59 +08:00
commit 5901f8e649

View File

@ -3,8 +3,7 @@ import type { Icon } from '@tabler/icons-react';
import { import {
IconGridDots, IconGridDots,
IconHelp, IconHelp,
IconMessageDots, IconMessageDots
IconUsers,
} from '@tabler/icons-react'; } from '@tabler/icons-react';
import { import {
BookOpen, BookOpen,
@ -30,8 +29,8 @@ import {
import * as React from 'react'; import * as React from 'react';
import AppLogoIcon from '@/components/app-logo-icon'; import AppLogoIcon from '@/components/app-logo-icon';
import { NavMain } from '@/components/nav-main';
import type { NavGroup, NavItem } from '@/components/nav-main'; import type { NavGroup, NavItem } from '@/components/nav-main';
import { NavMain } from '@/components/nav-main';
import { NavSecondary } from '@/components/nav-secondary'; import { NavSecondary } from '@/components/nav-secondary';
import { import {
Sidebar, Sidebar,
@ -72,6 +71,26 @@ const data: {
url: '#', url: '#',
icon: IconGridDots, icon: IconGridDots,
}, },
{
label: 'Pengguna',
items: [
{
name: 'Administrator',
url: administratorsRoute.url(),
icon: User,
},
{
name: 'Dosen',
url: lecturersRoute.url(),
icon: Users,
},
{
name: 'Mahasiswa',
url: studentsRoute.url(),
icon: GraduationCap,
},
],
},
{ {
label: 'Master', label: 'Master',
items: [ items: [
@ -87,21 +106,6 @@ const data: {
}, },
], ],
}, },
{
label: 'Kelola',
items: [
{
name: 'Mata Kuliah',
url: coursesRoute.url(),
icon: BookOpen,
},
{
name: 'Kelas Mata Kuliah',
url: courseClassesRoute.url(),
icon: School,
},
],
},
{ {
label: 'Kelas', label: 'Kelas',
items: [ items: [
@ -133,12 +137,17 @@ const data: {
], ],
}, },
{ {
label: 'Keuangan', label: 'Kelola',
items: [ items: [
{ {
name: 'Tagihan', name: 'Mata Kuliah',
url: tuitionInvoicesRoute.url(), url: coursesRoute.url(),
icon: Receipt, icon: BookOpen,
},
{
name: 'Kelas Mata Kuliah',
url: courseClassesRoute.url(),
icon: School,
}, },
], ],
}, },
@ -152,6 +161,16 @@ const data: {
}, },
], ],
}, },
{
label: 'Keuangan',
items: [
{
name: 'Tagihan',
url: tuitionInvoicesRoute.url(),
icon: Receipt,
},
],
},
{ {
label: 'Layanan', label: 'Layanan',
items: [ items: [
@ -167,26 +186,6 @@ const data: {
}, },
], ],
}, },
{
label: 'Pengguna',
items: [
{
name: 'Administrator',
url: administratorsRoute.url(),
icon: User,
},
{
name: 'Dosen',
url: lecturersRoute.url(),
icon: Users,
},
{
name: 'Mahasiswa',
url: studentsRoute.url(),
icon: GraduationCap,
},
],
},
{ {
label: 'Pengaturan', label: 'Pengaturan',
items: [ items: [