Introduction


Welcome to the Web Development challenge! Your chief task revolves around creating a user-friendly web application for our Cleaning Crews at Westworld park. The web app should facilitate tracking, managing, and efficient resolution of incidents that occur during park operations.

<aside> ℹ️ Explore the Starter Kit

</aside>

Objectives:


  1. Incident Tracking System: As a centerpiece of your application, implement a custom map using leaflet.js to showcase real-time updates about incidents.

    Each incident should be displayed as a distinctive marker on the map, and a click on it should reveal vital details like incident type, severity level, and nearest point of interest.

  2. Incident Claim System: To promote coordination among crew members, the application should allow a crew to 'claim' an incident. Once an incident is claimed, it should be indicated on the map, signaling other crews that the incident is being addressed.

  3. Incident Management Workflow: Implement specific logic within your application to ensure proper incident reporting flow.

  4. Incident Report Filing: Upon resolution, the crew should be able to submit a detailed report about the incident through the application. The report should carry information about the incident, how it was addressed, the time taken for resolution, and issues encountered during the process. This information will help generate informative analytics.

  5. View and Filter Options: It should offer users the ability to filter and sort incidents based on their status i.e., unclaimed, claimed, and resolved. Also, allow the crews to view only their claimed incidents for better individual task management.

  6. User-Friendly Interface: Keeping our end-users in mind, the application should be designed to be intuitive, easy to navigate and operate -- even for the least tech-savvy among the cleaning crews.

  7. Responsiveness: The application should be responsive, automatically adjusting the layout depending on the screen size and orientation. The hovercrafts come equipped with data terminals of varying sizes, and the crews should be able to use the application efficiently on all of them.

<aside> ℹ️ Read more about how Cleaning Crews work: Cleaning Crew Shift Journey

</aside>

Bonus Challenge - Implementing an API


Delos Park's Artificial Intelligence (AI) collects and compiles incident data in real-time. As an extra challenge, you can create an API endpoint within your application to facilitate the direct addition of incident reports.

  1. JSON API for Incident Reports: Develop a JSON API endpoint that accepts POST requests. This endpoint should be capable of receiving incident report data in JSON format, validating it, and subsequently adding it to the existing database of incidents. The data format should align with the existing incident_reports.json structure.
  2. Integration with Delos AI: By providing an API for the Delos AI to send data to, the application can be updated instantly when a new incident occurs. Implementing this feature will make your incident management application more dynamic, allowing crews to react to incidents as soon as they occur.

Remember, the aim is to optimize operations, improve collaboration, and ensure quick responses to incidents. This tool is crucial to maintain the enchantment of Westworld for every visitor.