forge
Explore
Log in

Don't you dare go Hollow

🗂️ relocate student marks to YÖNETİM sidebar section and refine categories

Browse files at this commit

0edd44dccdf69a41b573fef974881c885a1671d0Burak BoduroğluParent: 78d424b
  • refactor
    • 🗂️ relocate student marks to YÖNETİM sidebar section and refine categories
Show full message
refactor: 🗂️ relocate student marks to YÖNETİM sidebar section and refine categories
- move teacher student marks lookup (/management/student-marks) out of general Education group and into YÖNETİM Reports section
- update Notes group icon to IconNote for visual consistency
- ensure clean categorization between general learning tools and staff management tools
- verify production build passes with zero errors
src/components/layout/side-nav.tsxmodified+11 -11
@@ -68,7 +68,6 @@ const NAV_GROUPS: NavGroup[] = [
68 { to: "/events", labelKey: "nav.events", Icon: IconCalendar },68 { to: "/events", labelKey: "nav.events", Icon: IconCalendar },
69 { to: "/calendar", labelKey: "nav.calendar", Icon: IconCalendarDays },69 { to: "/calendar", labelKey: "nav.calendar", Icon: IconCalendarDays },
70 { to: "/marks", labelKey: "nav.marks", Icon: IconChart, exactRole: "student" },70 { to: "/marks", labelKey: "nav.marks", Icon: IconChart, exactRole: "student" },
71- { to: "/management/student-marks", labelKey: "nav.studentMarks", Icon: IconChart, minRole: "teacher" },
72 { to: "/attendance", labelKey: "nav.attendance", Icon: IconClipboardCheck, exactRole: "student" },71 { to: "/attendance", labelKey: "nav.attendance", Icon: IconClipboardCheck, exactRole: "student" },
73 { to: "/pomodoro", labelKey: "nav.pomodoro", Icon: IconClock, exactRole: "student" },72 { to: "/pomodoro", labelKey: "nav.pomodoro", Icon: IconClock, exactRole: "student" },
74 ],73 ],
@@ -85,32 +84,33 @@ const NAV_GROUPS: NavGroup[] = [
85 {84 {
86 id: "grades",85 id: "grades",
87 labelKey: "nav.group.grades",86 labelKey: "nav.group.grades",
88- Icon: IconChart,87+ Icon: IconNote,
89 items: [88 items: [
90 { to: "/notes", labelKey: "nav.notes", Icon: IconNote },89 { to: "/notes", labelKey: "nav.notes", Icon: IconNote },
91 ],90 ],
92 },91 },
92+ {
93+ id: "community",
94+ labelKey: "nav.group.community",
95+ Icon: IconGlobe,
96+ items: [
97+ { to: "/messages", labelKey: "nav.messages", Icon: IconMessage },
98+ { to: "/questions", labelKey: "nav.questions", Icon: IconHelpCircle },
99+ ],
100+ },
93 {101 {
94 id: "reports",102 id: "reports",
95 labelKey: "nav.group.reports",103 labelKey: "nav.group.reports",
96 Icon: IconReportAnalytics,104 Icon: IconReportAnalytics,
97 minRole: "teacher",105 minRole: "teacher",
98 items: [106 items: [
107+ { to: "/management/student-marks", labelKey: "nav.studentMarks", Icon: IconChart, minRole: "teacher" },
99 { to: "/management/student-attendance", labelKey: "nav.studentAttendance", Icon: IconClipboardCheck, minRole: "teacher" },108 { to: "/management/student-attendance", labelKey: "nav.studentAttendance", Icon: IconClipboardCheck, minRole: "teacher" },
100 { to: "/management/pomodoros", labelKey: "nav.studentPomodoro", Icon: IconClock, minRole: "teacher" },109 { to: "/management/pomodoros", labelKey: "nav.studentPomodoro", Icon: IconClock, minRole: "teacher" },
101 { to: "/work", labelKey: "nav.work", Icon: IconBriefcase, minRole: "teacher", maxRole: "manager" },110 { to: "/work", labelKey: "nav.work", Icon: IconBriefcase, minRole: "teacher", maxRole: "manager" },
102 { to: "/management/staff-work", labelKey: "nav.staffWork", Icon: IconBriefcase, minRole: "manager" },111 { to: "/management/staff-work", labelKey: "nav.staffWork", Icon: IconBriefcase, minRole: "manager" },
103 ],112 ],
104 },113 },
105- {
106- id: "community",
107- labelKey: "nav.group.community",
108- Icon: IconGlobe,
109- items: [
110- { to: "/messages", labelKey: "nav.messages", Icon: IconMessage },
111- { to: "/questions", labelKey: "nav.questions", Icon: IconHelpCircle },
112- ],
113- },
114 {114 {
115 id: "settings",115 id: "settings",
116 labelKey: "nav.group.settings",116 labelKey: "nav.group.settings",