help me add details to the original PRD that gives clear guidance and alignment to the…
- User
help me add details to the original PRD that gives clear guidance and alignment to the developer who will implement this project. do not create the code, just the PRD. include tree structure and all documentation provided (with both example code and responses) those are important context. Here is the document: # Project Overview
You will be building a wep app that manages employee scheduling through a multi-step process. It begins with data input via CSV import or manual entry, including employee details and preferences. Users select applicable house and regulatory rules from rules.ts. An initial 31-day schedule is generated using a local algorithm, considering employee data and selected rules. The system then validates the schedule against rules and preferences, presenting results with violation indicators. An AI-powered refinement function using GPT-4o-mini can apply user-specified adjustments. Both initial and refined schedules generate reports detailing rule/preference violations. Users can make final manual adjustments before approving and exporting the schedule. The system ensures no hard-coded employee rules, relying on general instructions and the rules in rules.ts for schedule creation.
You will be using: NextJS/ TS, Tailwind, schadcn, Lucid icon
# Current Folder Structure
├───.env.local ├───.eslintrc.json ├───.gitignore ├───app │ ├───api │ │ └───refine-schedule.ts │ ├───Card.tsx │ ├───favicon.ico │ ├───fonts │ │ ├───GeistMonoVF.woff │ │ └───GeistVF.woff │ ├───globals.css │ ├───layout.tsx │ ├───Modal.tsx │ ├───page.tsx │ ├───ruleChecker.ts │ ├───rules.ts │ ├───SchedulerOverview.tsx │ ├───types.ts │ └───utils.ts ├───directorytree.js ├───foldertree.bat ├───next-env.d.ts ├───next.config.mjs ├───package-lock.json ├───package.json ├───postcss.config.mjs ├───public │ ├───banner.png │ ├───house.png │ ├───main.png │ ├───old_main.png │ ├───reg.png │ └───train_logo.png ├───README.md ├───tree.ps1 ├───tree.txt └───tsconfig.json
# How the App is supposed to work
-
Data Input Import employee data from a CSV file or Manually enter employee data into the system. Data includes work status, shift preferences, and special conditions. CSV Format: Emp_number, LDT,status, Name, Surname, DOB, family Ilness, Sex, Pregnant, PREF_day, PREF_night PREF_no_weekends
-
Rule Selection Select applicable house rules (company policies). Select applicable regulatory rules (legal requirements). These rules guide the scheduling process and are stored in rules.ts Both sets of rules must be used to ensure no employees are scheduled in a way that violates there special atributes
-
Initial Schedule Generation The system generates an initial schedule using a local algorithm. This schedule considers the imported or entered employee (which also contains shift preferences) data and the selected rules.
-
- Assistant
- User
can you now put the document in proper markdown format
- Assistant