58 lines
1.9 KiB
JSON
58 lines
1.9 KiB
JSON
{
|
|
"entity": "Equipment",
|
|
"resource": "equipment",
|
|
"files": {
|
|
"list": {
|
|
"path": "client/src/resources/equipment/EquipmentList.tsx",
|
|
"must_contain": [
|
|
"List",
|
|
"FilterButton",
|
|
"TextField",
|
|
"inventoryNumber"
|
|
],
|
|
"must_match_regex": [
|
|
"SelectArrayInput",
|
|
"source=\"status\""
|
|
],
|
|
"comment": "Equipment list must expose filter UI directly and keep enum filters."
|
|
},
|
|
"create": {
|
|
"path": "client/src/resources/equipment/EquipmentCreate.tsx",
|
|
"must_contain": [
|
|
"Create",
|
|
"SimpleForm",
|
|
"SelectInput"
|
|
],
|
|
"must_match_regex": [
|
|
"NumberInput[\\s\\S]{0,300}source=\"totalEngineHours\"|source=\"totalEngineHours\"[\\s\\S]{0,300}NumberInput",
|
|
"DateInput[\\s\\S]{0,300}source=\"dateOfInspection\"|source=\"dateOfInspection\"[\\s\\S]{0,300}DateInput",
|
|
"SelectInput[\\s\\S]{0,300}source=\"status\"|source=\"status\"[\\s\\S]{0,300}SelectInput"
|
|
],
|
|
"comment": "Equipment create form must keep type-correct inputs for enum, date, and decimal/number fields."
|
|
},
|
|
"edit": {
|
|
"path": "client/src/resources/equipment/EquipmentEdit.tsx",
|
|
"must_contain": [
|
|
"Edit",
|
|
"SimpleForm",
|
|
"SelectInput"
|
|
],
|
|
"must_match_regex": [
|
|
"NumberInput[\\s\\S]{0,300}source=\"totalEngineHours\"|source=\"totalEngineHours\"[\\s\\S]{0,300}NumberInput",
|
|
"DateInput[\\s\\S]{0,300}source=\"dateOfInspection\"|source=\"dateOfInspection\"[\\s\\S]{0,300}DateInput"
|
|
],
|
|
"comment": "Equipment edit form must keep the same type-correctness guarantees as create."
|
|
},
|
|
"show": {
|
|
"path": "client/src/resources/equipment/EquipmentShow.tsx",
|
|
"must_contain": [
|
|
"Show",
|
|
"SimpleShowLayout",
|
|
"TextField",
|
|
"inventoryNumber"
|
|
],
|
|
"comment": "Show must display key fields including inventoryNumber."
|
|
}
|
|
}
|
|
}
|