From 145cdbfbf26dab852995a8aad18aeaf6ee29e290 Mon Sep 17 00:00:00 2001 From: ayush00git Date: Mon, 17 Aug 2026 22:50:33 +0530 Subject: [PATCH 1/2] fix(ui): rename user type from faculty -> employee --- app/src/components/CommentBox.tsx | 2 +- app/src/components/layout/Footer.tsx | 2 +- app/src/components/layout/Navbar.tsx | 8 ++++---- app/src/pages/Landing.tsx | 4 ++-- app/src/pages/admin/AEPostView.tsx | 4 ++-- app/src/pages/admin/AdminPostView.tsx | 2 +- app/src/pages/admin/JEPostView.tsx | 4 ++-- app/src/pages/admin/XENPostView.tsx | 4 ++-- app/src/pages/auth/CentreHeadLogin.tsx | 2 +- app/src/pages/auth/CentreHeadSignup.tsx | 4 ++-- app/src/pages/auth/FacultyForgotPassword.tsx | 2 +- app/src/pages/auth/FacultyLogin.tsx | 4 ++-- app/src/pages/auth/FacultySignup.tsx | 4 ++-- app/src/pages/auth/StaffLogin.tsx | 2 +- app/src/pages/auth/WardenLogin.tsx | 2 +- app/src/pages/auth/WardenSignup.tsx | 4 ++-- app/src/pages/post/FacultyPost.tsx | 4 ++-- app/src/pages/profile/Profile.tsx | 2 +- 18 files changed, 30 insertions(+), 30 deletions(-) diff --git a/app/src/components/CommentBox.tsx b/app/src/components/CommentBox.tsx index 3504b96..30d00ad 100644 --- a/app/src/components/CommentBox.tsx +++ b/app/src/components/CommentBox.tsx @@ -35,7 +35,7 @@ function getRoleConfig(role: string) { const norm = (role || '').toLowerCase(); if (norm.includes('faculty')) { return { - label: 'Faculty', + label: 'Employee', badgeClass: 'bg-violet-50/80 text-violet-700 border-violet-100', }; } diff --git a/app/src/components/layout/Footer.tsx b/app/src/components/layout/Footer.tsx index 44a85cd..e5ce15f 100644 --- a/app/src/components/layout/Footer.tsx +++ b/app/src/components/layout/Footer.tsx @@ -54,7 +54,7 @@ export function Footer() { {!isAuth && lodgeOpen && (
- Faculty / Staff Login + Employee / Staff Login Warden Login Centre Head Login
diff --git a/app/src/components/layout/Navbar.tsx b/app/src/components/layout/Navbar.tsx index 7042a3b..bfc3954 100644 --- a/app/src/components/layout/Navbar.tsx +++ b/app/src/components/layout/Navbar.tsx @@ -41,7 +41,7 @@ export function Navbar() { Lodge Complaint
- Faculty + Employee Warden Centre Head
@@ -99,7 +99,7 @@ export function Navbar() {
- Faculty / Staff Login + Employee / Staff Login Warden Login Centre Head Login
@@ -181,7 +181,7 @@ export function Navbar() { {loginDropdownOpen && (
- Faculty / Staff Login + Employee / Staff Login Warden Login Centre Head Login Admin Staff Login @@ -201,7 +201,7 @@ export function Navbar() { {lodgeOpen && (
- Faculty + Employee Warden Centre Head
diff --git a/app/src/pages/Landing.tsx b/app/src/pages/Landing.tsx index 0abf420..85b60e2 100644 --- a/app/src/pages/Landing.tsx +++ b/app/src/pages/Landing.tsx @@ -71,7 +71,7 @@ export function Landing() { }`} > - Login as Faculty + Login as Employee Login as Warden @@ -96,7 +96,7 @@ export function Landing() { }`} > - Signup as Faculty / Staff + Signup as Employee / Staff Signup as Warden diff --git a/app/src/pages/admin/AEPostView.tsx b/app/src/pages/admin/AEPostView.tsx index 008d9a4..3e5647b 100644 --- a/app/src/pages/admin/AEPostView.tsx +++ b/app/src/pages/admin/AEPostView.tsx @@ -262,7 +262,7 @@ export function AEPostView() {

- Complaints assigned at the AE level — Faculty, Warden, and Centre Head. + Complaints assigned at the AE level — Employee, Warden, and Centre Head.

@@ -297,7 +297,7 @@ export function AEPostView() { {/* Tiles — stacked vertically, full-width */}
} role="faculty" posts={facultyPosts.filter(matchesFilter)} diff --git a/app/src/pages/admin/AdminPostView.tsx b/app/src/pages/admin/AdminPostView.tsx index 889a73d..ee4bd3a 100644 --- a/app/src/pages/admin/AdminPostView.tsx +++ b/app/src/pages/admin/AdminPostView.tsx @@ -655,7 +655,7 @@ export function AdminPostView() { const comments = post.comments ?? []; - const roleLabel = isFaculty ? 'Faculty' : isWarden ? 'Warden' : 'Centre Head'; + const roleLabel = isFaculty ? 'Employee' : isWarden ? 'Warden' : 'Centre Head'; const RoleIcon = isFaculty ? GraduationCap : isWarden ? BedDouble : Building2; const statusCls = STATUS_STYLES[post.status.toLowerCase()] ?? 'bg-gray-100 text-gray-700 border-gray-200'; const statusDot = STATUS_DOT[post.status.toLowerCase()] ?? 'bg-gray-400'; diff --git a/app/src/pages/admin/JEPostView.tsx b/app/src/pages/admin/JEPostView.tsx index 1e1c155..c928fdc 100644 --- a/app/src/pages/admin/JEPostView.tsx +++ b/app/src/pages/admin/JEPostView.tsx @@ -263,7 +263,7 @@ export function JEPostView() {

- Complaints assigned at the JE level — Faculty, Warden, and Centre Head. + Complaints assigned at the JE level — Employee, Warden, and Centre Head.

@@ -295,7 +295,7 @@ export function JEPostView() { {/* Sections — each a responsive card grid */}
} role="faculty" posts={byFilter(faculty)} diff --git a/app/src/pages/admin/XENPostView.tsx b/app/src/pages/admin/XENPostView.tsx index e786a83..c77f356 100644 --- a/app/src/pages/admin/XENPostView.tsx +++ b/app/src/pages/admin/XENPostView.tsx @@ -260,7 +260,7 @@ export function XENPostView() {

- Incoming complaints routed through the XEN pipeline — Faculty, Warden, and Centre Head. + Incoming complaints routed through the XEN pipeline — Employee, Warden, and Centre Head.

@@ -294,7 +294,7 @@ export function XENPostView() { {/* Tiles — stacked vertically, full-width */}
} role="faculty" posts={applyFilter(facultyPosts)} diff --git a/app/src/pages/auth/CentreHeadLogin.tsx b/app/src/pages/auth/CentreHeadLogin.tsx index 55f5f69..2db6541 100644 --- a/app/src/pages/auth/CentreHeadLogin.tsx +++ b/app/src/pages/auth/CentreHeadLogin.tsx @@ -150,7 +150,7 @@ export function CentreHeadLogin() {

Other Roles

- Login as Faculty + Login as Employee Login as Warden diff --git a/app/src/pages/auth/CentreHeadSignup.tsx b/app/src/pages/auth/CentreHeadSignup.tsx index 074054b..4c2e3a4 100644 --- a/app/src/pages/auth/CentreHeadSignup.tsx +++ b/app/src/pages/auth/CentreHeadSignup.tsx @@ -232,7 +232,7 @@ export function CentreHeadSignup() {

Other Roles

- Register as Faculty + Register as Employee Register as Warden
@@ -275,7 +275,7 @@ export function CentreHeadSignup() {

Other Roles

- Register as Faculty + Register as Employee Register as Warden
diff --git a/app/src/pages/auth/FacultyForgotPassword.tsx b/app/src/pages/auth/FacultyForgotPassword.tsx index c1f47bd..99051ad 100644 --- a/app/src/pages/auth/FacultyForgotPassword.tsx +++ b/app/src/pages/auth/FacultyForgotPassword.tsx @@ -82,7 +82,7 @@ export function FacultyForgotPassword() { value={email} onChange={e => setEmail(e.target.value)} className={inputCls} - placeholder="faculty@nith.ac.in" + placeholder="employee@nith.ac.in" required />
diff --git a/app/src/pages/auth/FacultyLogin.tsx b/app/src/pages/auth/FacultyLogin.tsx index 7600629..a2890fe 100644 --- a/app/src/pages/auth/FacultyLogin.tsx +++ b/app/src/pages/auth/FacultyLogin.tsx @@ -56,7 +56,7 @@ export function FacultyLogin() { {/* Header strip */}
-

Faculty Login

+

Employee Login

Access your complaint dashboard.

@@ -93,7 +93,7 @@ export function FacultyLogin() { value={email} onChange={e => setEmail(e.target.value)} className={inputCls} - placeholder="faculty@nith.ac.in" + placeholder="employee@nith.ac.in" required />
diff --git a/app/src/pages/auth/FacultySignup.tsx b/app/src/pages/auth/FacultySignup.tsx index d2786a0..5d0c51f 100644 --- a/app/src/pages/auth/FacultySignup.tsx +++ b/app/src/pages/auth/FacultySignup.tsx @@ -71,7 +71,7 @@ export function FacultySignup() { {/* Page header strip */}
-

Faculty Registration

+

Employee Registration

Register to lodge and track Construction Cell complaints.

@@ -254,7 +254,7 @@ export function FacultySignup() { className={`inline-flex items-center gap-2 bg-[#16a34a] hover:bg-[#15803d] text-white font-semibold py-2.5 px-8 rounded-lg transition-colors duration-200 text-sm active:scale-[0.98] ${loading ? 'opacity-70 cursor-not-allowed' : 'cursor-pointer'}`} > {loading && } - {loading ? 'Registering…' : 'Register as Faculty'} + {loading ? 'Registering…' : 'Register as Employee'} Other Roles
- Login as Faculty + Login as Employee Login as Warden diff --git a/app/src/pages/auth/WardenLogin.tsx b/app/src/pages/auth/WardenLogin.tsx index 69e9992..6159a8a 100644 --- a/app/src/pages/auth/WardenLogin.tsx +++ b/app/src/pages/auth/WardenLogin.tsx @@ -150,7 +150,7 @@ export function WardenLogin() {

Other Roles

- Login as Faculty + Login as Employee Login as Centre Head diff --git a/app/src/pages/auth/WardenSignup.tsx b/app/src/pages/auth/WardenSignup.tsx index 766fc81..ac9511c 100644 --- a/app/src/pages/auth/WardenSignup.tsx +++ b/app/src/pages/auth/WardenSignup.tsx @@ -232,7 +232,7 @@ export function WardenSignup() {

Other Roles

- Register as Faculty + Register as Employee Register as Centre Head
@@ -275,7 +275,7 @@ export function WardenSignup() {

Other Roles

- Register as Faculty + Register as Employee Register as Centre Head
diff --git a/app/src/pages/post/FacultyPost.tsx b/app/src/pages/post/FacultyPost.tsx index 977d7d6..9670cf0 100644 --- a/app/src/pages/post/FacultyPost.tsx +++ b/app/src/pages/post/FacultyPost.tsx @@ -71,7 +71,7 @@ export function FacultyPost() { {/* Header strip */}
-

Submit a Faculty Complaint

+

Submit an Employee Complaint

Lodge a residential or departmental maintenance complaint.

@@ -205,7 +205,7 @@ export function FacultyPost() {

Complaint Areas

- Faculty may file for residential quarters and departmental buildings only. + Employees may file for residential quarters and departmental buildings only.

diff --git a/app/src/pages/profile/Profile.tsx b/app/src/pages/profile/Profile.tsx index d8f59e2..93f2110 100644 --- a/app/src/pages/profile/Profile.tsx +++ b/app/src/pages/profile/Profile.tsx @@ -123,7 +123,7 @@ export function Profile() { let roleLabel = 'User'; let registerRoute = '/'; let role: Role = 'centrehead'; - if (isFaculty) { roleLabel = 'Faculty Member'; registerRoute = '/faculty/posts'; role = 'faculty'; } + if (isFaculty) { roleLabel = 'Employee'; registerRoute = '/faculty/posts'; role = 'faculty'; } else if (isWarden) { roleLabel = 'Hostel Warden'; registerRoute = '/warden/posts'; role = 'warden'; } else if (isCentreHead) { roleLabel = 'Centre Head'; registerRoute = '/centre-head/posts'; role = 'centrehead'; } From 0522d7aa29a6e740f2b91a215f81a31db7a2ba51 Mon Sep 17 00:00:00 2001 From: ayush00git Date: Mon, 17 Aug 2026 22:59:32 +0530 Subject: [PATCH 2/2] removed that staff shi text --- app/src/components/layout/Footer.tsx | 2 +- app/src/components/layout/Navbar.tsx | 4 ++-- app/src/pages/Landing.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/components/layout/Footer.tsx b/app/src/components/layout/Footer.tsx index e5ce15f..ee8a7e6 100644 --- a/app/src/components/layout/Footer.tsx +++ b/app/src/components/layout/Footer.tsx @@ -54,7 +54,7 @@ export function Footer() { {!isAuth && lodgeOpen && (
- Employee / Staff Login + Employee Login Warden Login Centre Head Login
diff --git a/app/src/components/layout/Navbar.tsx b/app/src/components/layout/Navbar.tsx index bfc3954..298c470 100644 --- a/app/src/components/layout/Navbar.tsx +++ b/app/src/components/layout/Navbar.tsx @@ -99,7 +99,7 @@ export function Navbar() {
- Employee / Staff Login + Employee Login Warden Login Centre Head Login
@@ -181,7 +181,7 @@ export function Navbar() { {loginDropdownOpen && (
- Employee / Staff Login + Employee Login Warden Login Centre Head Login Admin Staff Login diff --git a/app/src/pages/Landing.tsx b/app/src/pages/Landing.tsx index 85b60e2..4b0abb2 100644 --- a/app/src/pages/Landing.tsx +++ b/app/src/pages/Landing.tsx @@ -96,7 +96,7 @@ export function Landing() { }`} > - Signup as Employee / Staff + Signup as Employee Signup as Warden