Skip to content

Commit 21bba88

Browse files
authored
Merge pull request #1929 from cityofaustin/chia/25932-hit-and-run-flag
Crash details page: add hit and run flag to the Units table
2 parents 2efd292 + 8384d87 commit 21bba88

5 files changed

Lines changed: 11 additions & 1 deletion

File tree

database/metadata/databases/default/tables/public_units.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ select_permissions:
109109
- veh_damage_direction_of_force2_id
110110
- veh_damage_severity1_id
111111
- veh_damage_severity2_id
112+
- veh_hnr_fl
112113
- veh_make_id
113114
- veh_mod_id
114115
- veh_mod_year
@@ -149,6 +150,7 @@ select_permissions:
149150
- veh_damage_direction_of_force2_id
150151
- veh_damage_severity1_id
151152
- veh_damage_severity2_id
153+
- veh_hnr_fl
152154
- veh_make_id
153155
- veh_mod_id
154156
- veh_mod_year
@@ -189,6 +191,7 @@ select_permissions:
189191
- veh_damage_direction_of_force2_id
190192
- veh_damage_severity1_id
191193
- veh_damage_severity2_id
194+
- veh_hnr_fl
192195
- veh_make_id
193196
- veh_mod_id
194197
- veh_mod_year
@@ -229,7 +232,6 @@ update_permissions:
229232
- veh_damage_direction_of_force2_id
230233
- veh_damage_severity1_id
231234
- veh_damage_severity2_id
232-
- veh_hnr_fl
233235
- veh_make_id
234236
- veh_mod_id
235237
- veh_mod_year

editor/configs/unitColumns.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ export const ALL_UNIT_COLUMNS = {
8585
labelColumnName: "label",
8686
},
8787
},
88+
veh_hnr_fl: {
89+
path: "veh_hnr_fl",
90+
label: "Hit and run",
91+
inputType: "yes_no",
92+
},
8893
contrib_factr: {
8994
path: "contrib_factr.label",
9095
label: "Contributing factors",

editor/configs/unitRelatedRecordTable.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ export const unitRelatedRecordCols = [
99
ALL_UNIT_COLUMNS.veh_mod,
1010
ALL_UNIT_COLUMNS.trvl_dir,
1111
ALL_UNIT_COLUMNS.movt,
12+
ALL_UNIT_COLUMNS.veh_hnr_fl,
1213
ALL_UNIT_COLUMNS.contrib_factr,
1314
];

editor/queries/crash.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export const GET_CRASH = gql`
135135
id
136136
label
137137
}
138+
veh_hnr_fl
138139
movement_id
139140
movt {
140141
id

editor/types/unit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export type Unit = {
1919
unit_desc_id: number | null;
2020
trvl_dir: LookupTableOption | null;
2121
veh_trvl_dir_id: number | null;
22+
veh_hnr_fl: boolean | null;
2223
movt: LookupTableOption | null;
2324
movement_id: number | null;
2425
};

0 commit comments

Comments
 (0)