The employee list is the main view of the Work Schedule Organizer. When the app loads, it fetches employee data fromDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/y-broad/workschedule/llms.txt
Use this file to discover all available pages before exploring further.
public/employees.json, sorts everyone alphabetically by name, and renders a responsive grid of cards — one per employee. Each card shows the employee’s contact details alongside a set of checkboxes that reflect their weekly schedule.
Employee cards
Each card is rendered by theEmployee component (src/employee.jsx). It destructures the employee’s name, phone, and email fields, as well as each day from the nested workdays object, then renders them as a labelled list of checkboxes.
The workday checkboxes on each card are read-only. They reflect the stored schedule and cannot be toggled directly in the list view.
Loading employees on startup
Employee data is fetched once when the app mounts. TheuseEffect hook in App.jsx makes a GET request to /employees.json, parses the response, sorts the result alphabetically, and stores it in React state.
sortEmployees, which uses String.prototype.localeCompare for locale-aware alphabetical ordering:
Sample employee record
Each entry inemployees.json follows this shape:
Responsive grid layout
The.employees container uses a CSS grid with auto-fit and minmax(240px, 1fr) column sizing. Cards automatically reflow to fill the available width — from a single-column view on narrow screens to multiple columns on wider displays — without any JavaScript involved.