Add regrouping and subcategory for ES.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"productName": "ImEX RPS",
|
||||
"author": "ImEX Systems Inc. <support@thinkimex.com>",
|
||||
"description": "ImEX RPS",
|
||||
"version": "1.4.2-beta.7",
|
||||
"version": "1.4.2-alpha.17",
|
||||
"main": "electron/main.js",
|
||||
"homepage": "./",
|
||||
"dependencies": {
|
||||
|
||||
@@ -39,16 +39,19 @@ export function EstimateScrubberResults({ bodyshop, jobid, job, esResults }) {
|
||||
// Group filtered items by category
|
||||
const groupedItems = filteredItems.length
|
||||
? _.groupBy(
|
||||
filteredItems.filter((item) => item.Category !== "Display Group"),
|
||||
"Category"
|
||||
filteredItems.filter((item) => item.SubCategory !== "In Main Display Group - Table Level"),
|
||||
"SubCategory"
|
||||
)
|
||||
: {};
|
||||
|
||||
// Define category colors and priorities
|
||||
const categoryConfig = {
|
||||
"Association Items": { color: "blue", priority: 1, icon: "🔗" },
|
||||
"Guidelines Items": { color: "orange", priority: 2, icon: "📋" }
|
||||
//"Display Group": { color: "green", priority: 3, icon: "📊" }
|
||||
"Administrative Items": { color: "blue", priority: 1, icon: "📎" },
|
||||
"Rates Issues": { color: "blue", priority: 2, icon: "💵" },
|
||||
"MPI Guidelines Items": { color: "blue", priority: 3, icon: "📋" },
|
||||
"Estimator Recommendations": { color: "blue", priority: 4, icon: "✅" },
|
||||
"Estimate Parts Found": { color: "blue", priority: 5, icon: "🔧" },
|
||||
"All Parts Found": { color: "blue", priority: 6, icon: "🔧" }
|
||||
};
|
||||
|
||||
// Sort categories by priority
|
||||
|
||||
Reference in New Issue
Block a user