Added two new columns to the classifications table: confidence_rating and confidence_reasoning
Created two stimulus controllers to deal with dynamic UI changes:
filter_controller.js to handle the automatic filtering of incident types based on the user input in the search bar (which loads data from the server0
classify_controller.js to handle the rest of the incident type selection (which mostly happens on the client until the form is submitted)
I originally had 4 controllers but it was honestly pretty confusing so I refactored the code to end up with 2 that match the two main components of the page (the search + filtering and the selection steps)
I don't have too much to describe here since it's mostly UI changes (HTML & JS)
Overview
This PR contains the finalized UI for the call type classifications.
Type of change
Related tickets
Fixes part of #10
Changes
classifications
table:confidence_rating
andconfidence_reasoning
filter_controller.js
to handle the automatic filtering of incident types based on the user input in the search bar (which loads data from the server0classify_controller.js
to handle the rest of the incident type selection (which mostly happens on the client until the form is submitted)Notes
Here's a demo:
https://www.dropbox.com/s/npqjb4od5vxnpp4/classification_Demo.mkv?dl=0
Coming soon in Part 3
In the last part, I will be focusing on adding the data set completion and the categorization rules:
I will also be adding tests for the whole flow: