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