Create README.md

Ryan Danenberg committed commitb78a77ad6301fa79aca24a58cfaa013218510a7b Browse files
1 file changed+54−0
README.mdAdded+54−0View file
@@ -0,0 +1,54 @@
+# Freelance Timesheets & Validation System
+
+A comprehensive web application for managing freelance timesheets, contracts, invoices, and administrative validation workflows.
+
+## 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.
+
+### 2. Freelancer Interface
+- **Timesheet Entry**:
+ - Interactive project & month selector.
+ - Automatic calculation and display of the assignment date range.
+ - Visual differentiation of active contract dates vs. outside-contract dates.
+ - Day-by-day table/grid: Worked checkbox toggle, Task details input, and Meeting minutes duration.
+ - Real-time metrics: Total Days Worked, Total Meeting Hours, Estimated Earnings.
+ - Mandatory Base64 Invoice Attachment: Supports uploading PDF or image files, plus an instant "Generate Sample PDF Invoice" button for rapid testing.
+ - Timesheet submission workflow: Validates mandatory invoice, marks submitted, and securely locks timesheet against edits.
+- **My Projects**:
+ - Overview of all assigned client projects with start and end dates, daily rates, and direct links to enter timesheets.
+- **Submitted Months History**:
+ - Summary table of all monthly timesheets.
+ - Status badges: `Draft`, `Submitted` (Pending Admin Review), `Validated` (Approved), and `Refused`.
+ - Preview and download attached invoices (Base64 PDF / image viewer).
+ - Prominent display of Admin Rejection Notes for refused submissions.
+ - **Edit & Resubmit** action for refused months that re-enables editing to adjust days, update notes, replace invoice, and resubmit.
+
+### 3. Project Admin Interface
+- **Projects & Assignments Tab**:
+ - Complete list of projects with administrator contacts and status.
+ - Assigned freelancers per project with active Start Date and End Date.
+ - "Edit Dates" modal to modify contract periods.
+ - "Add Freelancer" modal to assign existing or new freelancers with date ranges and daily rates.
+ - "Remove Freelancer" workflow with confirmation.
+ - "Add New Project" modal to create new projects.
+- **Timesheet Validation Queue**:
+ - Real-time queue of all submitted timesheets with status filters (Pending Review, Validated, Refused, All).
+ - Detailed inspection modal:
+ - Complete summary of days worked, meeting hours, daily rate, total payout.
+ - Full day-by-day breakdown of tasks and meeting durations.
+ - Invoice inspection with inline Base64 viewer and direct download.
+ - **Validate Month** action: Approves timesheet.
+ - **Refuse Month** action: Prompts for rejection feedback notes, marks refused, and instantly unlocks the timesheet on the freelancer's side for re-editing.
+
+### 4. Data Persistence & Kallax API Integration
+- Initial seed data matching Kallax tables:
+ - `projects`
+ - `assignments`
+ - `timesheets`
+ - `timesheet_days`
+- Automatic bidirectional sync with Kallax REST endpoints and persistent client-side `localStorage` fallback.
+- Modern, clean UI built with Tailwind CSS, responsive tables, cards, modals, and toast alerts.