Spaces:
Running
Running
Ctrl+K
π Project Summary: Employee Work & Payroll Management Web App π° OVERVIEW You will build a full-featured web app for a reputed company that: Allows Employees to post their workflow updates. Enables HR to monitor workflows, verify employees, and manage payments. Grants Admin full control over employees and HRs, including salaries and permissions. π§© CORE REQUIREMENTS β
GitHub Client-side: Minimum 20 meaningful commits Server-side: Minimum 12 meaningful commits β
README.md Include: Project name Admin login credentials (email/password) Live site URL At least 10 bullet points describing your app's features β
Responsiveness Must work perfectly on mobile, tablet, and desktop Responsive dashboard too β
Private Routes After refresh, user should stay logged in and not redirected to login β
Security Use .env to hide Firebase config and MongoDB credentials β
No Dummy Text No Lorem Ipsum β use relevant/real text β
Notifications Use SweetAlert / Toast / Notification (no alert()) Show notifications on: login, signup, CRUD operations β
Data Fetching Use TanStack Query (React Query) for all GET requests π₯ AUTHENTICATION & ROLES π Email/Password Authentication (Required) Roles: Employee, HR (Admin cannot register from frontend) Use Dropdown to select role during registration (required) Show field-level errors for password issues: Less than 6 characters No capital letter No special character π Login Errors Handle and show Firebase errors for wrong email/password π User Data Collection (Stored in DB) bank_account_no, salary, designation, photo (via imgbb upload) π Social Login (Google/GitHub) Users registering via social login will be Employee by default Assign default/random values for other fields π§ ROUTES STRUCTURE π Public Routes / (Home): Banner, Services, Testimonials + 2 more relevant sections /contact-us: Dummy address + contact form /login, /register: Toggle between them π Navbar Logo, Conditional Login/Register or User Photo + Logout Nav Items: Dashboard (Private), Contact Us π Dashboard Routes (Role-Based Private Routes) π· For Employee: /dashboard/work-sheet Form + Table to submit daily tasks (task type, hours, date) Tasks: Sales, Support, Content, Paper-work, etc. Features: Add/Edit/Delete (modal based), Live UI update without page reload /dashboard/payment-history Table: Monthly payment history (month/year, amount, txn id) Implement pagination or infinite scroll (5+ entries) π§βπΌ For HR: /dashboard/employee-list Table with all employees: Name, Email, Verified β
/β (toggle), Bank Account, Salary, Pay (modal), Details Only verified employees can be paid Clicking "Pay" opens modal to request salary payment (sent to Admin) Verified toggle also updates DB /dashboard/details/:slug View single employee details (name, photo, designation, etc.) Dynamic Bar Chart: Salary vs. Month & Year from DB /dashboard/progress View all submitted tasks by employees Filter by employee name or month (optional: π© Green feature) π For Admin: /dashboard/all-employee-list View all verified users (including HR) Features: Promote to HR Fire user (disable future login) Adjust Salary (Only increase) π¦ Blue feature Table view β Card view toggle (π¦ Blue) /dashboard/payroll View payment requests from HR Fields: Employee name, salary, month/year, payment date, Pay button Once Paid: Payment date updates Button disables UI updates instantly β
Prevent duplicate payment for same month/year (π¨ Yellow) β Contact Us Page Static company address Form: email + message Messages are visible to Admin π Role-based Security with JWT Use JWT token (email, role embedded) Backend middleware must verify: Admin: for promoting/firing/changing salary HR: for payment Employee: for work submissions π Optional & Challenge Features Color Meaning π© Green Extra filters for HR (progress page) π¦ Blue Toggle between table and card view, only allow salary increase π¨ Yellow Prevent duplicate payments & integrate payment gateway - Initial Deployment
df5b5ea verified