Repository navigation
Add AAO engine, recommendations, and dispatch quality checks - #2
Open
ByteBand1t wants to merge 1 commit into
Open
ByteBand1t wants to merge 1 commit into
ByteBand1t wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
src/lib/aaoRules.tscontaining a configurable mapping of incident keywords to requiredVehicleType[](examples:NOTF,NOTF NA,FEU K,FEU,FEUY).src/store/dispatch-store.tswithgetRecommendedVehicles(incidentId),dispatchRecommended(incidentId), andvalidateDispatch(incidentId)plus aDispatchQualitytype and a smallcountTypeshelper to compare assigned vs recommended types.1or2, assigns them (sets status to3), and appends radio-log entries; the action skips unavailable units without failing.src/components/incidents/incident-detail.tsx) to add an "AAO Recommendations" section that shows recommended types, available matching vehicle instances, aDispatch Recommendedbutton, and a dispatch quality badge.prisma/seed.tsand in-memory seeds) to include incidents forNOTF,FEU K, andFEUYand to add vehicles including anELWand an unavailable unit to exercise filtering.Testing
npm run lintwhich failed in this environment withnext: not foundbecause project dependencies are not installed.npm installwhich failed due to a403 Forbiddenresponse from the npm registry in this environment, so dependency installation and further automated checks were blocked.Codex Task