Update README.md
1 file changed+7−4
README.md+7−4View file
| @@ -4,10 +4,13 @@ A comprehensive web application for managing freelance timesheets, contracts, in | ||
| ## Features | ||
| -### 1. Unified Persona & Role Switcher | ||
| -- **Freelancer Mode**: Switch effortlessly between freelancers (Charlie Dupont, Dana Lee, Alice Martin, Alex Dupont, or custom personas). | ||
| -- **Project Admin Mode**: Switch between administrators (Sarah Jenkins, Bob Vance, Alice Martin, or custom personas). | ||
| -- Instant reactive data synchronization between views. | ||
| +### 1. Real Authentication & User Session Management | ||
| +- **Full Auth Flow**: Modern accessible Login & Register modals supporting email, password, full name, and role selection ('freelancer' or 'admin'). | ||
| +- **Backend API Integration**: Connects with `/api/auth/login`, `/api/auth/register`, and `/api/auth/me` with automatic session verification and graceful offline fallback. | ||
| +- **Bearer Token Authorization**: Automatically attaches `Authorization: Bearer <token>` to all backend API calls. | ||
| +- **Top Navigation User Profile**: Replaces static personas with a live User Profile widget showing user name, email, avatar initials, role badge, and a Logout button. | ||
| +- **1-Click Demo Accounts**: Instant testing helper for pre-configured Admin (Sarah Jenkins) and Freelancer (Charlie Dupont) sessions with real API authentication. | ||
| +- **Role-Based Permission Enforcement**: Freelancers only access Freelancer views (My Timesheets, My Projects), while Administrators access Project Admin views (Validation Queue, Projects) and can preview the Freelancer view. | ||
| ### 2. Freelancer Interface | ||
| - **Timesheet Entry**: | ||