<<<<<<< HEAD
This project is a React and TypeScript application built with Vite. It allows you to upload a CSV inventory file and calculates the optimal UPS (Units Per Sheet) distribution across a given number of printing plates. The app includes a login screen, dark mode support, and a PDF export of the results.
- Node.js >= 18
- npm (comes with Node.js)
Install dependencies and start the development server:
npm install
npm run devThe application will be available at http://localhost:5173 by default.
To create a production build:
npm run buildPreview the production build:
npm run previewDefault accounts are defined in src/services/auth.ts:
- Admin:
horizon/HS@Ratio@123!@# - User:
azeem/azeem321
A sample CSV file is provided in public/sample.csv. Use this file to test the upload and optimization workflow.
- User Profiles — logged-in users can view their name, role and last login in the header and log out at any time.
- Optimization Suggestions — the results view now displays tips to help reduce waste.
- Advanced Analytics — an additional waste percentage chart provides deeper insight into plate efficiency.
Run ESLint to check code quality (ensure dependencies are installed with npm install first):
npm run lint70c6d5a15af68d1de414bb5d018ad1fb765a06ee