How command-shift/command_shift works
command_shift is a web app for managing a care facility’s nurse roster, bed census, shift assignments, and patient-bed notes. Administrators issue commands in the admin client; it requests roster and bed data or submits changes and assignments to the Express server. The server routes requests to nurse, bed, cookie, and session handlers; nurse records are stored in MongoDB. Assignment results are displayed to administrators, while a separate nurse client and assignment-retrieval routes support the nurse-facing workflow. The nurse client’s request behavior is not shown in the sampled source, so its connection is marked unverified.
Main entry points: server.js Express routes · app.jsx Admin command app · glossaryClick.jsx Glossary toggle · assign.jsx Assignment view
Components 18
Admin client
- Admin command app
Client/Admin_client/app.jsx - Command input
Client/Admin_client/Components/input.jsx - Glossary toggle
Client/Admin_client/Components/glossaryClick.jsx - Command glossary
Client/Admin_client/Components/glossary.jsx - Nurse selector
Client/Admin_client/Components/nurses.jsx - Census display
Client/Admin_client/Components/display.jsx - Assignment view
Client/Admin_client/Components/assign.jsx - Bed run view
Client/Admin_client/Components/run.jsx
Server API
- Express routes
Server/server.js - Bed operations
Server/Bed/BedCtrl.js - Bed model
Server/Bed/BedMdl.js
Nurse records
- Nurse operations
Server/Nurse/nurseCtrl.js - Nurse records
Server/Nurse/nurseMdl.js
Nurse access
- Cookie handling
Server/Cookie/CookieCtrl.js - Session handling
Server/Session/SessionCtrl.js - Session model
Server/Session/SessionMdl.js - Nurse client
Client/Nurse_client/app.jsx
Other components
- MongoDB
Connections 16
- Admin command app → Command input: renders
Client/Admin_client/app.jsx - Admin command app → Glossary toggle: renders
Client/Admin_client/app.jsx - Glossary toggle → Command glossary: renders
Client/Admin_client/Components/glossaryClick.jsx - Admin command app → Nurse selector: renders
Client/Admin_client/app.jsx - Admin command app → Census display: renders
Client/Admin_client/app.jsx - Admin command app → Assignment view: renders
Client/Admin_client/app.jsx - Assignment view → Bed run view: renders
Client/Admin_client/Components/assign.jsx - Admin command app → Express routes: requests
Client/Admin_client/app.jsx - Express routes → Nurse operations: routes nurse requests
Server/server.js - Express routes → Bed operations: routes bed requests
Server/server.js - Express routes → Cookie handling: invokes
Server/server.js - Express routes → Session handling: invokes
Server/server.js - Nurse operations → Nurse records: queries and updates
Server/Nurse/nurseCtrl.js - Nurse records → MongoDB: connects
Server/Nurse/nurseMdl.js - Express routes → Nurse client: serves nurse page
Server/server.js - Nurse client → Express routes: requests assignments