[{"data":1,"prerenderedAt":14668},["ShallowReactive",2],{"blog-\u002Fblog\u002F2026\u002F07\u002Fdefect-and-quality-monitoring":3,"featureCatalog":13740,"changelog-titles":14133,"blog-all-for-related":14667},{"id":4,"title":5,"authors":6,"body":8,"cta":13716,"date":13720,"description":13721,"extension":13722,"features":13723,"image":13724,"lastUpdated":13723,"meta":13725,"navigation":8376,"path":13730,"release":13723,"seo":13731,"sitemap":13732,"stem":13733,"subtitle":13734,"tags":13735,"tldr":13738,"video":13723,"__hash__":13739},"blog\u002Fblog\u002F2026\u002F07\u002Fdefect-and-quality-monitoring.md","Build a Defect Tracking and Quality Monitoring Dashboard",[7],"sumit-shinde",{"type":9,"value":10,"toc":13697},"minimark",[11,15,25,28,37,40,45,48,104,115,119,122,142,146,153,164,8249,8252,8257,8263,8396,8427,8431,8434,8449,8459,8935,8938,8992,9001,9009,9013,9020,9031,9399,9408,9417,9420,10587,10596,10607,10620,10625,10628,10632,10639,10642,10646,10649,10681,10687,10696,10700,10707,10727,10742,10744,13444,13453,13457,13479,13482,13491,13495,13525,13528,13537,13541,13561,13564,13573,13577,13611,13614,13623,13627,13646,13649,13658,13661,13665,13671,13682,13694],[12,13,14],"p",{},"Every production line produces defects. On their own they're easy to wave off, a bit of scrap here, an hour of rework there. But add them up and the cost is real, and that's the part most teams never see. The defects are sitting in a spreadsheet nobody sorts, or locked inside a quality system you can't get a live view out of. So the recurring problems stay invisible until someone runs a report, and by then the bad batch has already shipped.",[12,16,17,22],{},[18,19],"img",{"alt":20,"src":21},"The finished defect tracking dashboard showing stat cards, Pareto chart, and trend line","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Fflowfuse-defect-monitoring-dashboard.png",[23,24,20],"em",{},[12,26,27],{},"In this tutorial, you'll build a defect tracking and quality monitoring dashboard using FlowFuse in about 30 minutes. It reads defects from a database, calculates the KPIs a quality engineer actually looks at, and renders them live, filtered by line, shift, and date range.",[12,29,30,31,36],{},"You can interact with the live demo here: ",[32,33,35],"a",{"href":34},"https:\u002F\u002Fdefect-monitoring-dashboard.flowfuse.cloud\u002Fdashboard\u002Fdefects","Try the Quality Monitoring Dashboard",".",[12,38,39],{},"By the end, you'll have a foundation you can extend into broader production monitoring or OEE tracking, or a plant-wide quality report.",[41,42,44],"h2",{"id":43},"what-youll-need","What You'll Need",[12,46,47],{},"Before you start building, make sure you have the following ready:",[49,50,51,66,72],"ul",{},[52,53,54,58,59,65],"li",{},[55,56,57],"strong",{},"A FlowFuse account."," ",[32,60,64],{"href":61,"rel":62},"https:\u002F\u002Fapp.flowfuse.com\u002Faccount\u002Fcreate",[63],"nofollow","Sign up"," for FlowFuse Cloud, or use a self-hosted instance.",[52,67,68,71],{},[55,69,70],{},"A FlowFuse instance up and running."," If you don't have one yet, create a new instance from your FlowFuse Platform.",[52,73,74,77,78,82,83,86,87,86,90,93,94,97,98,103],{},[55,75,76],{},"FlowFuse Dashboard installed."," This tutorial uses ",[79,80,81],"code",{},"@flowfuse\u002Fnode-red-dashboard"," nodes (",[79,84,85],{},"ui-text",", ",[79,88,89],{},"ui-chart",[79,91,92],{},"ui-table",", and ",[79,95,96],{},"ui-template",") to build the interface. If it is not already installed, add it from the Node-RED Palette Manager. If you are new to FlowFuse Dashboard, follow the ",[32,99,102],{"href":100,"rel":101},"https:\u002F\u002Fdashboard.flowfuse.com\u002Fgetting-started.html",[63],"Getting Started guide"," to become familiar with the basics before continuing.",[105,106,107],"blockquote",{},[12,108,109,110,114],{},"Note: ",[32,111,113],{"href":112},"\u002Fdocs\u002Fuser\u002Fff-tables\u002F","FlowFuse Tables"," is currently in beta and available to Enterprise tier teams on FlowFuse Cloud, as well as Enterprise licensed self hosted teams running on Kubernetes. If you're on a different tier, you can follow along using any external database instead, Postgres, MySQL, or whatever you already have, with the standard database nodes from the palette. The SQL and flow logic in this tutorial will work the same either way.",[41,116,118],{"id":117},"how-the-application-works","How the Application Works",[12,120,121],{},"This dashboard is a read layer. It doesn't capture defects itself; it sits on top of a table of them and turns that table into something a supervisor can read at a glance:",[49,123,124,130,136],{},[52,125,126,129],{},[55,127,128],{},"Defects live in one table."," Each defect is a row: where it happened, what it was, how severe, its root cause, how it was handled, and what it cost. Something else fills this table: an operator logging defects from a form, or automatic events arriving over MQTT. For the tutorial, a simulator stands in for that source.",[52,131,132,135],{},[55,133,134],{},"One query calculates everything."," A single query filters the table once and computes every KPI on the dashboard in one pass, then splits the result across every card, chart, and table, so the whole dashboard updates from a single source of truth.",[52,137,138,141],{},[55,139,140],{},"The header drives it all."," Line, shift, and date-range dropdowns live in the dashboard header. Change any one and every widget recalculates together.",[41,143,145],{"id":144},"importing-the-simulator","Importing the Simulator",[12,147,148,149,152],{},"You need a table and data in it before the dashboard can show anything. Rather than build that by hand, import the simulator flow; it creates the ",[79,150,151],{},"defects"," table and fills it for you.",[12,154,155,156,159,160,163],{},"It gives you two generators. A ",[55,157,158],{},"historical seed"," fills about six months of defects, so the charts have something to show right away. A ",[55,161,162],{},"live feed"," then inserts a fresh defect every few seconds, so the dashboard keeps updating on its own while you build.",[165,166,168],"render-flow",{":height":167},"300",[169,170,175],"pre",{"className":171,"code":172,"language":173,"meta":174,"style":174},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[{\"id\":\"fc4cfab8a41f3bdb\",\"type\":\"group\",\"z\":\"7f9feb3283fbb929\",\"name\":\"Data Simulation\",\"style\":{\"label\":true},\"nodes\":[\"7ff2fe3d22e543d8\",\"77f9a234e079a6dd\",\"e9c9fbed2e767b9f\",\"23504c3b0f35db82\",\"475645219af52b5e\",\"d978f663921063a7\",\"d2facb93da0e58db\",\"1188c4b2256949a3\"],\"x\":34,\"y\":219,\"w\":812,\"h\":142},{\"id\":\"7ff2fe3d22e543d8\",\"type\":\"debug\",\"z\":\"7f9feb3283fbb929\",\"g\":\"fc4cfab8a41f3bdb\",\"name\":\"Result\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"payload\",\"targetType\":\"msg\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":750,\"y\":260,\"wires\":[]},{\"id\":\"77f9a234e079a6dd\",\"type\":\"inject\",\"z\":\"7f9feb3283fbb929\",\"g\":\"fc4cfab8a41f3bdb\",\"name\":\"\",\"props\":[],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"x\":130,\"y\":260,\"wires\":[[\"e9c9fbed2e767b9f\"]]},{\"id\":\"e9c9fbed2e767b9f\",\"type\":\"function\",\"z\":\"7f9feb3283fbb929\",\"g\":\"fc4cfab8a41f3bdb\",\"name\":\"Historical Seed\",\"func\":\"\u002F\u002F ============================================================\\n\u002F\u002F SHARED GENERATOR LOGIC (v4 — full station coverage + EV-specific defect)\\n\u002F\u002F ============================================================\\n\\n\u002F\u002F ---- Helper: weighted random pick ------------------------------\\nfunction weightedPick(items, weights) {\\n    const r = Math.random();\\n    let cumulative = 0;\\n    for (let i = 0; i \u003C items.length; i++) {\\n        cumulative += weights[i];\\n        if (r \u003C= cumulative) return items[i];\\n    }\\n    return items[items.length - 1];\\n}\\n\\n\u002F\u002F ---- Convert an ARRAY of records into column-wise arrays, for a\\n\u002F\u002F single bulk INSERT ... SELECT * FROM UNNEST(...) query -----------\\nfunction recordsToColumnParams(records) {\\n    const cols = [\\n        \\\"defect_id\\\", \\\"date\\\", \\\"line\\\", \\\"station\\\", \\\"shift\\\", \\\"sku\\\",\\n        \\\"defect_type\\\", \\\"defect_category\\\", \\\"severity\\\", \\\"detected_stage\\\",\\n        \\\"root_cause\\\", \\\"disposition\\\", \\\"status\\\", \\\"cost_impact\\\", \\\"resolution_hours\\\"\\n    ];\\n    return cols.map(col => records.map(r => r[col]));\\n}\\n\\n\\n\u002F\u002F ---- Unique defect_id (no context store needed) ----------------\\nfunction nextDefectId() {\\n    const rand = Math.floor(Math.random() * 46656).toString(36).padStart(3, \\\"0\\\");\\n    return \\\"DEF-\\\" + Date.now().toString(36).toUpperCase() + \\\"-\\\" + rand.toUpperCase();\\n}\\n\\n\u002F\u002F ---- Assembly lines: NOT equal — SUV Line has an aging robot cell\\nconst LINES = [\\\"Sedan Line\\\", \\\"SUV Line\\\", \\\"EV Line\\\"];\\nconst LINE_WEIGHTS = [0.30, 0.45, 0.25];   \u002F\u002F SUV Line skewed higher\\n\\n\u002F\u002F ---- Shifts: Night skewed higher (fatigue\u002Fless supervision) -----\\nconst SHIFTS = [\\\"Morning\\\", \\\"Evening\\\", \\\"Night\\\"];\\nconst SHIFT_WEIGHTS = [0.30, 0.25, 0.45];\\n\\n\u002F\u002F ---- Trims: EV is the newest variant, has early teething defects --\\nconst SKUS = [\\\"Base Trim\\\", \\\"Sport Trim\\\", \\\"Premium Trim\\\", \\\"EV Trim\\\"];\\nconst SKU_WEIGHTS = [0.20, 0.20, 0.25, 0.35]; \u002F\u002F EV = newest, higher defect rate\\n\\n\u002F\u002F ---- Defect types: Pareto-shaped (80\u002F20 rule), each with a home\\n\u002F\u002F shop, plausible root causes, and where it typically gets caught.\\n\u002F\u002F Now covers ALL 5 stations (Chassis & Powertrain and Trim were\\n\u002F\u002F previously listed as stations but had zero defect types assigned).\\nconst DEFECT_TYPES = [\\n    {\\n        name: \\\"Weld Crack\\\", category: \\\"Body\u002FWeld\\\", station: \\\"Body Shop\\\", weight: 0.24,\\n        causes: [\\\"Robot\u002FTooling Wear\\\", \\\"Operator Error\\\", \\\"Calibration Drift\\\", \\\"Process Deviation\\\"],\\n        causeWeights: [0.40, 0.30, 0.20, 0.10],\\n        stageWeights: [0.05, 0.35, 0.50, 0.10]\\n    },\\n    {\\n        name: \\\"Paint Defect\\\", category: \\\"Paint\u002FSurface\\\", station: \\\"Paint Shop\\\", weight: 0.19,\\n        causes: [\\\"Operator Error\\\", \\\"Process Deviation\\\", \\\"Environmental Factor\\\", \\\"Robot\u002FTooling Wear\\\"],\\n        causeWeights: [0.35, 0.30, 0.20, 0.15],\\n        stageWeights: [0.05, 0.25, 0.55, 0.15]\\n    },\\n    {\\n        name: \\\"Panel Gap Deviation\\\", category: \\\"Dimensional\\\", station: \\\"Body Shop\\\", weight: 0.13,\\n        causes: [\\\"Calibration Drift\\\", \\\"Robot\u002FTooling Wear\\\", \\\"Process Deviation\\\", \\\"Supplier Material Defect\\\"],\\n        causeWeights: [0.40, 0.30, 0.20, 0.10],\\n        stageWeights: [0.25, 0.45, 0.28, 0.02]\\n    },\\n    {\\n        name: \\\"Door Misalignment\\\", category: \\\"Assembly\\\", station: \\\"Final Assembly\\\", weight: 0.10,\\n        causes: [\\\"Operator Error\\\", \\\"Process Deviation\\\", \\\"Robot\u002FTooling Wear\\\"],\\n        causeWeights: [0.35, 0.35, 0.30],\\n        stageWeights: [0.05, 0.35, 0.55, 0.05]\\n    },\\n    {\\n        name: \\\"Paint Contamination\\\", category: \\\"Material\\\", station: \\\"Paint Shop\\\", weight: 0.09,\\n        causes: [\\\"Supplier Material Defect\\\", \\\"Environmental Factor\\\", \\\"Process Deviation\\\"],\\n        causeWeights: [0.50, 0.30, 0.20],\\n        stageWeights: [0.40, 0.35, 0.20, 0.05]\\n    },\\n    {\\n        name: \\\"Fluid Leak\\\", category: \\\"Powertrain\\\", station: \\\"Chassis & Powertrain\\\", weight: 0.08,\\n        causes: [\\\"Robot\u002FTooling Wear\\\", \\\"Process Deviation\\\", \\\"Supplier Material Defect\\\"],\\n        causeWeights: [0.40, 0.35, 0.25],\\n        stageWeights: [0.10, 0.40, 0.40, 0.10]\\n    },\\n    {\\n        name: \\\"Missing Fastener\\\", category: \\\"Assembly\\\", station: \\\"Final Assembly\\\", weight: 0.06,\\n        causes: [\\\"Operator Error\\\", \\\"Process Deviation\\\"],\\n        causeWeights: [0.60, 0.40],\\n        stageWeights: [0.05, 0.30, 0.60, 0.05]\\n    },\\n    {\\n        name: \\\"Interior Trim Defect\\\", category: \\\"Trim\\\", station: \\\"Trim\\\", weight: 0.05,\\n        causes: [\\\"Operator Error\\\", \\\"Supplier Material Defect\\\", \\\"Process Deviation\\\"],\\n        causeWeights: [0.45, 0.30, 0.25],\\n        stageWeights: [0.10, 0.30, 0.55, 0.05]\\n    },\\n    {\\n        name: \\\"Transport Damage\\\", category: \\\"Logistics\\\", station: \\\"Final Assembly\\\", weight: 0.04,\\n        causes: [\\\"Process Deviation\\\", \\\"Operator Error\\\", \\\"Environmental Factor\\\"],\\n        causeWeights: [0.50, 0.30, 0.20],\\n        stageWeights: [0.05, 0.15, 0.50, 0.30] \u002F\u002F often only found at dealer\u002Fyard, not on-line\\n    },\\n    {\\n        \u002F\u002F EV-EXCLUSIVE: only EV Trim vehicles physically have a high-voltage\\n        \u002F\u002F battery\u002Fcharging system, so this defect type is deterministically\\n        \u002F\u002F forced to EV Trim in generateOneDefect() below — not just skewed\\n        \u002F\u002F toward it. Rare fleet-wide, but gives the \\\"EV teething defects\\\"\\n        \u002F\u002F story an actual distinct failure mode instead of just a higher\\n        \u002F\u002F rate of the same generic defects.\\n        name: \\\"HV Battery\u002FCharging Fault\\\", category: \\\"Electrical\\\", station: \\\"Chassis & Powertrain\\\", weight: 0.02,\\n        causes: [\\\"Supplier Material Defect\\\", \\\"Process Deviation\\\", \\\"Calibration Drift\\\"],\\n        causeWeights: [0.45, 0.30, 0.25],\\n        stageWeights: [0.20, 0.30, 0.35, 0.15]\\n    }\\n];\\nconst DEFECT_TYPE_WEIGHTS = DEFECT_TYPES.map(d => d.weight);\\n\\nconst STATIONS = [\\\"Body Shop\\\", \\\"Paint Shop\\\", \\\"Chassis & Powertrain\\\", \\\"Trim\\\", \\\"Final Assembly\\\"];\\n\\n\u002F\u002F ---- Severity: most defects are Minor ----------------------------\\nconst SEVERITIES = [\\\"Critical\\\", \\\"Major\\\", \\\"Minor\\\"];\\nconst SEVERITY_WEIGHTS = [0.15, 0.35, 0.50];\\n\\n\u002F\u002F ---- Detected stage: driven per-defect-type (see stageWeights above)\\nconst STAGES = [\\\"Incoming\\\", \\\"In-Process\\\", \\\"Final QC\\\", \\\"Field Return\\\"];\\n\\n\u002F\u002F ---- Disposition: correlated with severity, not independent -----\\nconst DISPOSITION_BY_SEVERITY = {\\n    Critical: { items: [\\\"Scrap\\\", \\\"Rework\\\", \\\"Use-as-is\\\"], weights: [0.60, 0.35, 0.05] },\\n    Major: { items: [\\\"Scrap\\\", \\\"Rework\\\", \\\"Use-as-is\\\"], weights: [0.25, 0.55, 0.20] },\\n    Minor: { items: [\\\"Scrap\\\", \\\"Rework\\\", \\\"Use-as-is\\\"], weights: [0.05, 0.35, 0.60] }\\n};\\n\\n\u002F\u002F ---- Cost: driven primarily by DISPOSITION, not just severity —\\n\u002F\u002F Scrap means full material loss, Rework is labor-only, Use-as-is is\\n\u002F\u002F near-zero (paperwork\u002Finspection). Severity still scales the range\\n\u002F\u002F within each disposition.\\nconst COST_RANGES = {\\n    Scrap: { Critical: [800, 2000], Major: [400, 1000], Minor: [150, 400] },\\n    Rework: { Critical: [300, 800], Major: [150, 500], Minor: [50, 200] },\\n    \\\"Use-as-is\\\": { Critical: [50, 150], Major: [20, 80], Minor: [5, 40] }\\n};\\n\\n\u002F\u002F ---- Delay likelihood: tied to ROOT CAUSE, not a flat rate — a\\n\u002F\u002F supplier reorder (Supplier Material Defect) or an infrastructure\\n\u002F\u002F fix (Environmental Factor) realistically takes far longer to close\\n\u002F\u002F out than an operator simply redoing the work.\\nconst DELAY_PROB_BY_CAUSE = {\\n    \\\"Robot\u002FTooling Wear\\\": 0.12,\\n    \\\"Operator Error\\\": 0.05,\\n    \\\"Calibration Drift\\\": 0.08,\\n    \\\"Process Deviation\\\": 0.07,\\n    \\\"Supplier Material Defect\\\": 0.30,\\n    \\\"Environmental Factor\\\": 0.15\\n};\\n\\n\u002F\u002F ---- Status: correlated with how OLD the defect is --------------\\nfunction pickStatusForAge(ageDays) {\\n    if (ageDays > 90) {\\n        return weightedPick(\\n            [\\\"Verified\\\", \\\"Resolved\\\", \\\"Corrective Action\\\"],\\n            [0.85, 0.10, 0.05]\\n        );\\n    } else if (ageDays > 30) {\\n        return weightedPick(\\n            [\\\"Verified\\\", \\\"Resolved\\\", \\\"Corrective Action\\\", \\\"RCA\\\", \\\"Detected\\\"],\\n            [0.50, 0.25, 0.15, 0.07, 0.03]\\n        );\\n    } else if (ageDays > 7) {\\n        return weightedPick(\\n            [\\\"Corrective Action\\\", \\\"RCA\\\", \\\"Resolved\\\", \\\"Detected\\\", \\\"Verified\\\"],\\n            [0.35, 0.30, 0.20, 0.10, 0.05]\\n        );\\n    } else {\\n        return weightedPick(\\n            [\\\"Detected\\\", \\\"RCA\\\", \\\"Corrective Action\\\", \\\"Resolved\\\"],\\n            [0.50, 0.30, 0.15, 0.05]\\n        );\\n    }\\n}\\n\\n\u002F\u002F ---- Day-of-week + \\\"bad batch\\\" seasonal bump ---------------------\\nfunction dayOfWeekMultiplier(date) {\\n    const day = date.getDay();\\n    if (day === 1) return 1.3;\\n    if (day === 0 || day === 6) return 1.15;\\n    return 1.0;\\n}\\nconst BAD_BATCH_AGE_MIN = 95;\\nconst BAD_BATCH_AGE_MAX = 110;\\n\\n\u002F\u002F ---- Core generator: builds ONE defect record --------------------\\nfunction generateOneDefect(forcedDate, ageDays) {\\n    if (ageDays === undefined || ageDays === null) ageDays = 0;\\n\\n    let defectTypeObj;\\n    if (ageDays >= BAD_BATCH_AGE_MIN && ageDays \u003C= BAD_BATCH_AGE_MAX && Math.random() \u003C 0.45) {\\n        \u002F\u002F Simulated bad batch of primer\u002Fpaint material from a supplier\\n        defectTypeObj = DEFECT_TYPES.find(d => d.name === \\\"Paint Contamination\\\");\\n    } else {\\n        defectTypeObj = weightedPick(DEFECT_TYPES, DEFECT_TYPE_WEIGHTS);\\n    }\\n\\n    const station = Math.random() \u003C 0.8\\n        ? defectTypeObj.station\\n        : STATIONS[Math.floor(Math.random() * STATIONS.length)];\\n\\n    const rootCause = weightedPick(defectTypeObj.causes, defectTypeObj.causeWeights);\\n    const severity = weightedPick(SEVERITIES, SEVERITY_WEIGHTS);\\n\\n    const dispoTable = DISPOSITION_BY_SEVERITY[severity];\\n    const disposition = weightedPick(dispoTable.items, dispoTable.weights);\\n\\n    const status = pickStatusForAge(ageDays);\\n\\n    \u002F\u002F Detected stage comes from THIS defect type's own distribution\\n    \u002F\u002F (e.g. Paint Contamination is caught early via incoming material\\n    \u002F\u002F inspection; Transport Damage is often only found at the dealer)\\n    const stage = weightedPick(STAGES, defectTypeObj.stageWeights);\\n    const stageCostMultiplier = stage === \\\"Field Return\\\" ? 2.2 : 1.0;\\n\\n    \u002F\u002F Cost driven by disposition + severity (see COST_RANGES above),\\n    \u002F\u002F not just severity alone — a Scrapped part costs far more than\\n    \u002F\u002F a Use-as-is one, even at the same severity.\\n    const [costMin, costMax] = COST_RANGES[disposition][severity];\\n    const cost = (costMin + Math.random() * (costMax - costMin)) * stageCostMultiplier;\\n\\n    const resolutionHoursBase = severity === \\\"Critical\\\" ? 2 + Math.random() * 10\\n        : severity === \\\"Major\\\" ? 6 + Math.random() * 24\\n            : 12 + Math.random() * 48;\\n\\n    \u002F\u002F Delay probability comes from the ROOT CAUSE (see\\n    \u002F\u002F DELAY_PROB_BY_CAUSE above) instead of a flat rate for everyone —\\n    \u002F\u002F e.g. waiting on a supplier reorder takes far longer than an\\n    \u002F\u002F operator simply redoing the work.\\n    const delayProb = DELAY_PROB_BY_CAUSE[rootCause] ?? 0.10;\\n    const isDelayed = Math.random() \u003C delayProb;\\n    const resolutionHours = isDelayed\\n        ? resolutionHoursBase * (3 + Math.random() * 3)\\n        : resolutionHoursBase;\\n\\n    \u002F\u002F Trim\u002FSKU: HV Battery\u002FCharging Fault is EV-EXCLUSIVE — only EV Trim\\n    \u002F\u002F vehicles physically have a high-voltage battery\u002Fcharging system,\\n    \u002F\u002F so this is deterministic, not just weighted probability.\\n    const sku = defectTypeObj.name === \\\"HV Battery\u002FCharging Fault\\\"\\n        ? \\\"EV Trim\\\"\\n        : weightedPick(SKUS, SKU_WEIGHTS);\\n\\n    return {\\n        defect_id: nextDefectId(),\\n        date: forcedDate,\\n        line: weightedPick(LINES, LINE_WEIGHTS),\\n        station: station,\\n        shift: weightedPick(SHIFTS, SHIFT_WEIGHTS),\\n        sku: sku,\\n        defect_type: defectTypeObj.name,\\n        defect_category: defectTypeObj.category,\\n        severity: severity,\\n        detected_stage: stage,\\n        root_cause: rootCause,\\n        disposition: disposition,\\n        status: status,\\n        cost_impact: Math.round(cost * 100) \u002F 100,\\n        resolution_hours: Math.round(resolutionHours * 10) \u002F 10\\n    };\\n}\\n\\n\u002F\u002F ============================================================\\n\u002F\u002F FUNCTION NODE 1: HISTORICAL SEED (v2 — realistic correlations)\\n\u002F\u002F Wire: [Inject: manual]\\n\u002F\u002F        -> [THIS Function node]\\n\u002F\u002F        -> [postgresql\u002FFlowFuse Tables node: bulk UNNEST INSERT]\\n\u002F\u002F ============================================================\\n\\nconst DAYS_BACK = 180;          \u002F\u002F ~6 months of history\\nconst RECORDS_PER_DAY_AVG = 7;  \u002F\u002F baseline volume (~1260 records before multipliers)\\n\\nconst records = [];\\nconst today = new Date();\\n\\nfor (let ageDays = DAYS_BACK; ageDays >= 0; ageDays--) {\\n    const day = new Date(today);\\n    day.setDate(day.getDate() - ageDays);\\n    const dateStr = day.toISOString().slice(0, 10);\\n\\n    const dowMultiplier = dayOfWeekMultiplier(day);\\n    const countToday = Math.max(0, Math.round(\\n        (RECORDS_PER_DAY_AVG + (Math.random() - 0.5) * 4) * dowMultiplier\\n    ));\\n\\n    for (let i = 0; i \u003C countToday; i++) {\\n        records.push(generateOneDefect(dateStr, ageDays));\\n    }\\n}\\n\\nnode.log(`Generated ${records.length} historical defect records (with realistic skew).`);\\n\\nmsg.params = recordsToColumnParams(records); \u002F\u002F FlowFuse Tables node reads params from msg.params\\nreturn msg;\",\"outputs\":1,\"timeout\":0,\"noerr\":0,\"initialize\":\"\",\"finalize\":\"\",\"libs\":[],\"x\":340,\"y\":260,\"wires\":[[\"d2facb93da0e58db\"]]},{\"id\":\"23504c3b0f35db82\",\"type\":\"inject\",\"z\":\"7f9feb3283fbb929\",\"g\":\"fc4cfab8a41f3bdb\",\"name\":\"\",\"props\":[],\"repeat\":\"5\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"x\":130,\"y\":320,\"wires\":[[\"475645219af52b5e\"]]},{\"id\":\"475645219af52b5e\",\"type\":\"function\",\"z\":\"7f9feb3283fbb929\",\"g\":\"fc4cfab8a41f3bdb\",\"name\":\"Live Feed\",\"func\":\"\u002F\u002F ============================================================\\n\u002F\u002F SHARED GENERATOR LOGIC (v4 — full station coverage + EV-specific defect)\\n\u002F\u002F ============================================================\\n\\n\u002F\u002F ---- Helper: weighted random pick ------------------------------\\nfunction weightedPick(items, weights) {\\n    const r = Math.random();\\n    let cumulative = 0;\\n    for (let i = 0; i \u003C items.length; i++) {\\n        cumulative += weights[i];\\n        if (r \u003C= cumulative) return items[i];\\n    }\\n    return items[items.length - 1];\\n}\\n\\n\u002F\u002F ---- Convert a record object into the flat params array Postgres\\n\u002F\u002F node needs, in the exact column order of the INSERT query ------\\nfunction recordToParams(r) {\\n    return [\\n        r.defect_id, r.date, r.line, r.station, r.shift, r.sku,\\n        r.defect_type, r.defect_category, r.severity, r.detected_stage,\\n        r.root_cause, r.disposition, r.status, r.cost_impact, r.resolution_hours\\n    ];\\n}\\n\\n\\n\u002F\u002F ---- Unique defect_id (no context store needed) ----------------\\nfunction nextDefectId() {\\n    const rand = Math.floor(Math.random() * 46656).toString(36).padStart(3, \\\"0\\\");\\n    return \\\"DEF-\\\" + Date.now().toString(36).toUpperCase() + \\\"-\\\" + rand.toUpperCase();\\n}\\n\\n\u002F\u002F ---- Assembly lines: NOT equal — SUV Line has an aging robot cell\\nconst LINES         = [\\\"Sedan Line\\\", \\\"SUV Line\\\", \\\"EV Line\\\"];\\nconst LINE_WEIGHTS   = [0.30,          0.45,       0.25];   \u002F\u002F SUV Line skewed higher\\n\\n\u002F\u002F ---- Shifts: Night skewed higher (fatigue\u002Fless supervision) -----\\nconst SHIFTS         = [\\\"Morning\\\", \\\"Evening\\\", \\\"Night\\\"];\\nconst SHIFT_WEIGHTS  = [0.30,       0.25,      0.45];\\n\\n\u002F\u002F ---- Trims: EV is the newest variant, has early teething defects --\\nconst SKUS           = [\\\"Base Trim\\\", \\\"Sport Trim\\\", \\\"Premium Trim\\\", \\\"EV Trim\\\"];\\nconst SKU_WEIGHTS    = [0.20,          0.20,          0.25,           0.35]; \u002F\u002F EV = newest, higher defect rate\\n\\n\u002F\u002F ---- Defect types: Pareto-shaped (80\u002F20 rule), each with a home\\n\u002F\u002F shop, plausible root causes, and where it typically gets caught.\\n\u002F\u002F Now covers ALL 5 stations (Chassis & Powertrain and Trim were\\n\u002F\u002F previously listed as stations but had zero defect types assigned).\\nconst DEFECT_TYPES = [\\n    {\\n        name: \\\"Weld Crack\\\", category: \\\"Body\u002FWeld\\\", station: \\\"Body Shop\\\", weight: 0.24,\\n        causes: [\\\"Robot\u002FTooling Wear\\\", \\\"Operator Error\\\", \\\"Calibration Drift\\\", \\\"Process Deviation\\\"],\\n        causeWeights: [0.40, 0.30, 0.20, 0.10],\\n        stageWeights: [0.05, 0.35, 0.50, 0.10]\\n    },\\n    {\\n        name: \\\"Paint Defect\\\", category: \\\"Paint\u002FSurface\\\", station: \\\"Paint Shop\\\", weight: 0.19,\\n        causes: [\\\"Operator Error\\\", \\\"Process Deviation\\\", \\\"Environmental Factor\\\", \\\"Robot\u002FTooling Wear\\\"],\\n        causeWeights: [0.35, 0.30, 0.20, 0.15],\\n        stageWeights: [0.05, 0.25, 0.55, 0.15]\\n    },\\n    {\\n        name: \\\"Panel Gap Deviation\\\", category: \\\"Dimensional\\\", station: \\\"Body Shop\\\", weight: 0.13,\\n        causes: [\\\"Calibration Drift\\\", \\\"Robot\u002FTooling Wear\\\", \\\"Process Deviation\\\", \\\"Supplier Material Defect\\\"],\\n        causeWeights: [0.40, 0.30, 0.20, 0.10],\\n        stageWeights: [0.25, 0.45, 0.28, 0.02]\\n    },\\n    {\\n        name: \\\"Door Misalignment\\\", category: \\\"Assembly\\\", station: \\\"Final Assembly\\\", weight: 0.10,\\n        causes: [\\\"Operator Error\\\", \\\"Process Deviation\\\", \\\"Robot\u002FTooling Wear\\\"],\\n        causeWeights: [0.35, 0.35, 0.30],\\n        stageWeights: [0.05, 0.35, 0.55, 0.05]\\n    },\\n    {\\n        name: \\\"Paint Contamination\\\", category: \\\"Material\\\", station: \\\"Paint Shop\\\", weight: 0.09,\\n        causes: [\\\"Supplier Material Defect\\\", \\\"Environmental Factor\\\", \\\"Process Deviation\\\"],\\n        causeWeights: [0.50, 0.30, 0.20],\\n        stageWeights: [0.40, 0.35, 0.20, 0.05]\\n    },\\n    {\\n        name: \\\"Fluid Leak\\\", category: \\\"Powertrain\\\", station: \\\"Chassis & Powertrain\\\", weight: 0.08,\\n        causes: [\\\"Robot\u002FTooling Wear\\\", \\\"Process Deviation\\\", \\\"Supplier Material Defect\\\"],\\n        causeWeights: [0.40, 0.35, 0.25],\\n        stageWeights: [0.10, 0.40, 0.40, 0.10]\\n    },\\n    {\\n        name: \\\"Missing Fastener\\\", category: \\\"Assembly\\\", station: \\\"Final Assembly\\\", weight: 0.06,\\n        causes: [\\\"Operator Error\\\", \\\"Process Deviation\\\"],\\n        causeWeights: [0.60, 0.40],\\n        stageWeights: [0.05, 0.30, 0.60, 0.05]\\n    },\\n    {\\n        name: \\\"Interior Trim Defect\\\", category: \\\"Trim\\\", station: \\\"Trim\\\", weight: 0.05,\\n        causes: [\\\"Operator Error\\\", \\\"Supplier Material Defect\\\", \\\"Process Deviation\\\"],\\n        causeWeights: [0.45, 0.30, 0.25],\\n        stageWeights: [0.10, 0.30, 0.55, 0.05]\\n    },\\n    {\\n        name: \\\"Transport Damage\\\", category: \\\"Logistics\\\", station: \\\"Final Assembly\\\", weight: 0.04,\\n        causes: [\\\"Process Deviation\\\", \\\"Operator Error\\\", \\\"Environmental Factor\\\"],\\n        causeWeights: [0.50, 0.30, 0.20],\\n        stageWeights: [0.05, 0.15, 0.50, 0.30] \u002F\u002F often only found at dealer\u002Fyard, not on-line\\n    },\\n    {\\n        \u002F\u002F EV-EXCLUSIVE: only EV Trim vehicles physically have a high-voltage\\n        \u002F\u002F battery\u002Fcharging system, so this defect type is deterministically\\n        \u002F\u002F forced to EV Trim in generateOneDefect() below — not just skewed\\n        \u002F\u002F toward it. Rare fleet-wide, but gives the \\\"EV teething defects\\\"\\n        \u002F\u002F story an actual distinct failure mode instead of just a higher\\n        \u002F\u002F rate of the same generic defects.\\n        name: \\\"HV Battery\u002FCharging Fault\\\", category: \\\"Electrical\\\", station: \\\"Chassis & Powertrain\\\", weight: 0.02,\\n        causes: [\\\"Supplier Material Defect\\\", \\\"Process Deviation\\\", \\\"Calibration Drift\\\"],\\n        causeWeights: [0.45, 0.30, 0.25],\\n        stageWeights: [0.20, 0.30, 0.35, 0.15]\\n    }\\n];\\nconst DEFECT_TYPE_WEIGHTS = DEFECT_TYPES.map(d => d.weight);\\n\\nconst STATIONS = [\\\"Body Shop\\\", \\\"Paint Shop\\\", \\\"Chassis & Powertrain\\\", \\\"Trim\\\", \\\"Final Assembly\\\"];\\n\\n\u002F\u002F ---- Severity: most defects are Minor ----------------------------\\nconst SEVERITIES      = [\\\"Critical\\\", \\\"Major\\\", \\\"Minor\\\"];\\nconst SEVERITY_WEIGHTS = [0.15, 0.35, 0.50];\\n\\n\u002F\u002F ---- Detected stage: driven per-defect-type (see stageWeights above)\\nconst STAGES = [\\\"Incoming\\\", \\\"In-Process\\\", \\\"Final QC\\\", \\\"Field Return\\\"];\\n\\n\u002F\u002F ---- Disposition: correlated with severity, not independent -----\\nconst DISPOSITION_BY_SEVERITY = {\\n    Critical: { items: [\\\"Scrap\\\", \\\"Rework\\\", \\\"Use-as-is\\\"], weights: [0.60, 0.35, 0.05] },\\n    Major:    { items: [\\\"Scrap\\\", \\\"Rework\\\", \\\"Use-as-is\\\"], weights: [0.25, 0.55, 0.20] },\\n    Minor:    { items: [\\\"Scrap\\\", \\\"Rework\\\", \\\"Use-as-is\\\"], weights: [0.05, 0.35, 0.60] }\\n};\\n\\n\u002F\u002F ---- Cost: driven primarily by DISPOSITION, not just severity —\\n\u002F\u002F Scrap means full material loss, Rework is labor-only, Use-as-is is\\n\u002F\u002F near-zero (paperwork\u002Finspection). Severity still scales the range\\n\u002F\u002F within each disposition.\\nconst COST_RANGES = {\\n    Scrap:        { Critical: [800, 2000], Major: [400, 1000], Minor: [150, 400] },\\n    Rework:       { Critical: [300, 800],  Major: [150, 500],  Minor: [50, 200] },\\n    \\\"Use-as-is\\\":  { Critical: [50, 150],   Major: [20, 80],    Minor: [5, 40] }\\n};\\n\\n\u002F\u002F ---- Delay likelihood: tied to ROOT CAUSE, not a flat rate — a\\n\u002F\u002F supplier reorder (Supplier Material Defect) or an infrastructure\\n\u002F\u002F fix (Environmental Factor) realistically takes far longer to close\\n\u002F\u002F out than an operator simply redoing the work.\\nconst DELAY_PROB_BY_CAUSE = {\\n    \\\"Robot\u002FTooling Wear\\\": 0.12,\\n    \\\"Operator Error\\\": 0.05,\\n    \\\"Calibration Drift\\\": 0.08,\\n    \\\"Process Deviation\\\": 0.07,\\n    \\\"Supplier Material Defect\\\": 0.30,\\n    \\\"Environmental Factor\\\": 0.15\\n};\\n\\n\u002F\u002F ---- Status: correlated with how OLD the defect is --------------\\nfunction pickStatusForAge(ageDays) {\\n    if (ageDays > 90) {\\n        return weightedPick(\\n            [\\\"Verified\\\", \\\"Resolved\\\", \\\"Corrective Action\\\"],\\n            [0.85, 0.10, 0.05]\\n        );\\n    } else if (ageDays > 30) {\\n        return weightedPick(\\n            [\\\"Verified\\\", \\\"Resolved\\\", \\\"Corrective Action\\\", \\\"RCA\\\", \\\"Detected\\\"],\\n            [0.50, 0.25, 0.15, 0.07, 0.03]\\n        );\\n    } else if (ageDays > 7) {\\n        return weightedPick(\\n            [\\\"Corrective Action\\\", \\\"RCA\\\", \\\"Resolved\\\", \\\"Detected\\\", \\\"Verified\\\"],\\n            [0.35, 0.30, 0.20, 0.10, 0.05]\\n        );\\n    } else {\\n        return weightedPick(\\n            [\\\"Detected\\\", \\\"RCA\\\", \\\"Corrective Action\\\", \\\"Resolved\\\"],\\n            [0.50, 0.30, 0.15, 0.05]\\n        );\\n    }\\n}\\n\\n\u002F\u002F ---- Day-of-week + \\\"bad batch\\\" seasonal bump ---------------------\\nfunction dayOfWeekMultiplier(date) {\\n    const day = date.getDay();\\n    if (day === 1) return 1.3;\\n    if (day === 0 || day === 6) return 1.15;\\n    return 1.0;\\n}\\nconst BAD_BATCH_AGE_MIN = 95;\\nconst BAD_BATCH_AGE_MAX = 110;\\n\\n\u002F\u002F ---- Core generator: builds ONE defect record --------------------\\nfunction generateOneDefect(forcedDate, ageDays) {\\n    if (ageDays === undefined || ageDays === null) ageDays = 0;\\n\\n    let defectTypeObj;\\n    if (ageDays >= BAD_BATCH_AGE_MIN && ageDays \u003C= BAD_BATCH_AGE_MAX && Math.random() \u003C 0.45) {\\n        \u002F\u002F Simulated bad batch of primer\u002Fpaint material from a supplier\\n        defectTypeObj = DEFECT_TYPES.find(d => d.name === \\\"Paint Contamination\\\");\\n    } else {\\n        defectTypeObj = weightedPick(DEFECT_TYPES, DEFECT_TYPE_WEIGHTS);\\n    }\\n\\n    const station = Math.random() \u003C 0.8\\n        ? defectTypeObj.station\\n        : STATIONS[Math.floor(Math.random() * STATIONS.length)];\\n\\n    const rootCause = weightedPick(defectTypeObj.causes, defectTypeObj.causeWeights);\\n    const severity = weightedPick(SEVERITIES, SEVERITY_WEIGHTS);\\n\\n    const dispoTable = DISPOSITION_BY_SEVERITY[severity];\\n    const disposition = weightedPick(dispoTable.items, dispoTable.weights);\\n\\n    const status = pickStatusForAge(ageDays);\\n\\n    \u002F\u002F Detected stage comes from THIS defect type's own distribution\\n    \u002F\u002F (e.g. Paint Contamination is caught early via incoming material\\n    \u002F\u002F inspection; Transport Damage is often only found at the dealer)\\n    const stage = weightedPick(STAGES, defectTypeObj.stageWeights);\\n    const stageCostMultiplier = stage === \\\"Field Return\\\" ? 2.2 : 1.0;\\n\\n    \u002F\u002F Cost driven by disposition + severity (see COST_RANGES above),\\n    \u002F\u002F not just severity alone — a Scrapped part costs far more than\\n    \u002F\u002F a Use-as-is one, even at the same severity.\\n    const [costMin, costMax] = COST_RANGES[disposition][severity];\\n    const cost = (costMin + Math.random() * (costMax - costMin)) * stageCostMultiplier;\\n\\n    const resolutionHoursBase = severity === \\\"Critical\\\" ? 2 + Math.random() * 10\\n                              : severity === \\\"Major\\\"    ? 6 + Math.random() * 24\\n                              :                            12 + Math.random() * 48;\\n\\n    \u002F\u002F Delay probability comes from the ROOT CAUSE (see\\n    \u002F\u002F DELAY_PROB_BY_CAUSE above) instead of a flat rate for everyone —\\n    \u002F\u002F e.g. waiting on a supplier reorder takes far longer than an\\n    \u002F\u002F operator simply redoing the work.\\n    const delayProb = DELAY_PROB_BY_CAUSE[rootCause] ?? 0.10;\\n    const isDelayed = Math.random() \u003C delayProb;\\n    const resolutionHours = isDelayed\\n        ? resolutionHoursBase * (3 + Math.random() * 3)\\n        : resolutionHoursBase;\\n\\n    \u002F\u002F Trim\u002FSKU: HV Battery\u002FCharging Fault is EV-EXCLUSIVE — only EV Trim\\n    \u002F\u002F vehicles physically have a high-voltage battery\u002Fcharging system,\\n    \u002F\u002F so this is deterministic, not just weighted probability.\\n    const sku = defectTypeObj.name === \\\"HV Battery\u002FCharging Fault\\\"\\n        ? \\\"EV Trim\\\"\\n        : weightedPick(SKUS, SKU_WEIGHTS);\\n\\n    return {\\n        defect_id: nextDefectId(),\\n        date: forcedDate,\\n        line: weightedPick(LINES, LINE_WEIGHTS),\\n        station: station,\\n        shift: weightedPick(SHIFTS, SHIFT_WEIGHTS),\\n        sku: sku,\\n        defect_type: defectTypeObj.name,\\n        defect_category: defectTypeObj.category,\\n        severity: severity,\\n        detected_stage: stage,\\n        root_cause: rootCause,\\n        disposition: disposition,\\n        status: status,\\n        cost_impact: Math.round(cost * 100) \u002F 100,\\n        resolution_hours: Math.round(resolutionHours * 10) \u002F 10\\n    };\\n}\\n\\n\u002F\u002F ============================================================\\n\u002F\u002F FUNCTION NODE 2: LIVE FEED (v2 — realistic correlations)\\n\u002F\u002F Wire: [Inject: repeat every 20s]\\n\u002F\u002F        -> [THIS Function node]\\n\u002F\u002F        -> [postgresql\u002FFlowFuse Tables node: single row INSERT]\\n\u002F\u002F        -> (optional) [Switch: msg.critical === true] -> [ui_notification]\\n\u002F\u002F ============================================================\\n\\nconst todayStr = new Date().toISOString().slice(0, 10);\\nconst record = generateOneDefect(todayStr, 0); \u002F\u002F ageDays=0: fresh, mostly \\\"Detected\\\"\\n\\nmsg.critical = (record.severity === \\\"Critical\\\");\\nmsg.params = recordToParams(record); \u002F\u002F FlowFuse Tables node reads params from msg.params\\n\\nreturn msg;\",\"outputs\":1,\"timeout\":0,\"noerr\":0,\"initialize\":\"\",\"finalize\":\"\",\"libs\":[],\"x\":320,\"y\":320,\"wires\":[[\"1188c4b2256949a3\"]]},{\"id\":\"d978f663921063a7\",\"type\":\"debug\",\"z\":\"7f9feb3283fbb929\",\"g\":\"fc4cfab8a41f3bdb\",\"name\":\"Result\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"payload\",\"targetType\":\"msg\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":750,\"y\":320,\"wires\":[]},{\"id\":\"d2facb93da0e58db\",\"type\":\"tables-query\",\"z\":\"7f9feb3283fbb929\",\"g\":\"fc4cfab8a41f3bdb\",\"name\":\"Insert Historical Records\",\"query\":\"-- BULK INSERT for historical seed (single query, no Split node needed)\\n-- Use this in the postgresql node wired directly after the\\n-- \\\"historical seed\\\" Function node.\\n--\\n-- msg.payload must be an array of 15 arrays (column-wise), which is\\n-- exactly what recordsToColumnParams() in function-shared-logic.js\\n-- produces: [ [all defect_ids], [all dates], [all lines], ... ]\\n\\nINSERT INTO defects (\\n    defect_id, date, line, station, shift, sku,\\n    defect_type, defect_category, severity, detected_stage,\\n    root_cause, disposition, status, cost_impact, resolution_hours\\n)\\nSELECT * FROM UNNEST(\\n    $1::varchar[],  $2::date[],     $3::varchar[],  $4::varchar[],\\n    $5::varchar[],  $6::varchar[],  $7::varchar[],  $8::varchar[],\\n    $9::varchar[],  $10::varchar[], $11::varchar[], $12::varchar[],\\n    $13::varchar[], $14::numeric[], $15::numeric[]\\n)\\nON CONFLICT (defect_id) DO NOTHING;\\n\\n-- ------------------------------------------------------------\\n-- LIVE FEED still uses the simple single-row query below,\\n-- unchanged, fed by function-live-feed.js (one param-array per msg):\\n--\\n-- INSERT INTO defects (\\n--     defect_id, date, line, station, shift, sku,\\n--     defect_type, defect_category, severity, detected_stage,\\n--     root_cause, disposition, status, cost_impact, resolution_hours\\n-- )\\n-- VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)\\n-- ON CONFLICT (defect_id) DO NOTHING;\",\"split\":false,\"rowsPerMsg\":1,\"x\":570,\"y\":260,\"wires\":[[\"7ff2fe3d22e543d8\"]]},{\"id\":\"1188c4b2256949a3\",\"type\":\"tables-query\",\"z\":\"7f9feb3283fbb929\",\"g\":\"fc4cfab8a41f3bdb\",\"name\":\"Insert Live Record\",\"query\":\"INSERT INTO defects (\\n    defect_id, date, line, station, shift, sku,\\n    defect_type, defect_category, severity, detected_stage,\\n    root_cause, disposition, status, cost_impact, resolution_hours\\n)\\nVALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)\\nON CONFLICT (defect_id) DO NOTHING;\",\"split\":false,\"rowsPerMsg\":1,\"x\":550,\"y\":320,\"wires\":[[\"d978f663921063a7\"]]},{\"id\":\"d1c5372e4c488212\",\"type\":\"group\",\"z\":\"7f9feb3283fbb929\",\"name\":\"Create Defect Table\",\"style\":{\"label\":true},\"nodes\":[\"f4a14ba58c9e129d\",\"a08e0258f5c5242e\",\"83e51297506816b4\"],\"x\":34,\"y\":19,\"w\":812,\"h\":82},{\"id\":\"f4a14ba58c9e129d\",\"type\":\"inject\",\"z\":\"7f9feb3283fbb929\",\"g\":\"d1c5372e4c488212\",\"name\":\"\",\"props\":[],\"repeat\":\"\",\"crontab\":\"\",\"once\":true,\"onceDelay\":0.1,\"topic\":\"\",\"x\":130,\"y\":60,\"wires\":[[\"a08e0258f5c5242e\"]]},{\"id\":\"a08e0258f5c5242e\",\"type\":\"tables-query\",\"z\":\"7f9feb3283fbb929\",\"g\":\"d1c5372e4c488212\",\"name\":\"Create Defect Table\",\"query\":\"CREATE TABLE IF NOT EXISTS defects (\\n    defect_id         VARCHAR(20) PRIMARY KEY,\\n    date              DATE NOT NULL,\\n    line              VARCHAR(20),\\n    station           VARCHAR(30),\\n    shift             VARCHAR(20),\\n    sku               VARCHAR(20),\\n    defect_type       VARCHAR(50),\\n    defect_category   VARCHAR(30),\\n    severity          VARCHAR(10),\\n    detected_stage    VARCHAR(20),\\n    root_cause        VARCHAR(50),\\n    disposition       VARCHAR(20),\\n    status            VARCHAR(20),\\n    cost_impact       NUMERIC(10,2),\\n    resolution_hours  NUMERIC(6,1)\\n);\\n\\nCREATE INDEX IF NOT EXISTS idx_defects_date ON defects(date);\\nCREATE INDEX IF NOT EXISTS idx_defects_line ON defects(line);\\nCREATE INDEX IF NOT EXISTS idx_defects_shift ON defects(shift);\",\"split\":false,\"rowsPerMsg\":1,\"x\":350,\"y\":60,\"wires\":[[\"83e51297506816b4\"]]},{\"id\":\"83e51297506816b4\",\"type\":\"debug\",\"z\":\"7f9feb3283fbb929\",\"g\":\"d1c5372e4c488212\",\"name\":\"Result\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"payload\",\"targetType\":\"msg\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":750,\"y\":60,\"wires\":[]},{\"id\":\"78a99932f3724e3e\",\"type\":\"group\",\"z\":\"7f9feb3283fbb929\",\"name\":\"Delete All Records\",\"style\":{\"label\":true},\"nodes\":[\"1c3ce2ba4a766cee\",\"e38d9a6684c6b3bb\",\"c0c78694aa023826\"],\"x\":34,\"y\":119,\"w\":812,\"h\":82},{\"id\":\"1c3ce2ba4a766cee\",\"type\":\"inject\",\"z\":\"7f9feb3283fbb929\",\"d\":true,\"g\":\"78a99932f3724e3e\",\"name\":\"\",\"props\":[],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"x\":130,\"y\":160,\"wires\":[[\"e38d9a6684c6b3bb\"]]},{\"id\":\"e38d9a6684c6b3bb\",\"type\":\"tables-query\",\"z\":\"7f9feb3283fbb929\",\"g\":\"78a99932f3724e3e\",\"name\":\"Delete All Records\",\"query\":\"DELETE FROM defects;\",\"split\":false,\"rowsPerMsg\":1,\"x\":350,\"y\":160,\"wires\":[[\"c0c78694aa023826\"]]},{\"id\":\"c0c78694aa023826\",\"type\":\"debug\",\"z\":\"7f9feb3283fbb929\",\"g\":\"78a99932f3724e3e\",\"name\":\"Result\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"payload\",\"targetType\":\"msg\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":750,\"y\":160,\"wires\":[]},{\"id\":\"d7a304ca96634e82\",\"type\":\"global-config\",\"env\":[],\"modules\":{\"@flowfuse\u002Fnr-tables-nodes\":\"0.2.2\"}}]\n","json","",[79,176,177],{"__ignoreMap":174},[178,179,182,186,189,193,195,198,200,204,206,209,211,214,216,218,220,223,225,227,229,232,234,236,238,241,243,245,247,250,252,254,256,259,261,263,265,268,270,273,275,279,281,284,286,289,291,294,296,299,301,303,305,308,310,312,314,317,319,321,323,326,328,330,332,335,337,339,341,344,346,348,350,353,355,357,359,362,364,367,369,372,374,376,380,382,384,387,389,391,394,396,398,401,403,405,408,410,412,415,417,419,422,425,427,429,431,433,435,437,439,441,443,445,447,449,451,454,456,458,460,462,464,466,468,470,472,474,476,479,481,483,485,487,489,491,493,495,497,499,501,504,506,508,510,513,515,518,520,523,525,527,529,532,534,537,539,542,544,546,548,551,553,555,557,560,562,564,566,569,571,573,575,578,580,582,584,587,589,591,594,596,598,601,603,605,607,610,612,614,616,618,620,622,625,627,629,631,633,635,638,640,642,645,647,650,652,654,656,658,660,662,664,666,668,670,672,674,676,679,681,683,685,687,689,691,693,695,697,699,701,703,705,707,709,711,713,715,717,719,721,723,725,727,729,732,734,737,739,742,744,746,748,750,752,755,757,759,761,763,765,768,770,772,774,777,779,781,784,786,788,791,793,795,797,799,801,803,805,807,810,812,814,816,818,820,822,824,826,828,830,833,835,837,839,842,844,846,848,850,852,854,856,858,860,862,864,866,868,871,873,875,877,879,881,883,885,887,889,891,893,895,897,899,901,903,905,907,909,911,913,915,917,920,922,924,926,929,931,933,935,938,942,945,947,949,952,955,957,960,962,965,967,970,972,975,977,980,982,985,987,990,992,995,997,1000,1002,1005,1007,1010,1012,1015,1017,1020,1022,1025,1028,1031,1033,1035,1038,1040,1042,1044,1046,1048,1050,1052,1055,1057,1059,1061,1064,1066,1068,1070,1073,1075,1077,1079,1081,1084,1086,1088,1090,1093,1095,1097,1099,1102,1104,1106,1108,1111,1113,1115,1117,1119,1122,1124,1126,1128,1131,1133,1135,1137,1140,1142,1144,1146,1149,1151,1153,1155,1158,1161,1164,1166,1169,1171,1173,1176,1179,1181,1184,1186,1189,1191,1194,1196,1199,1201,1204,1206,1209,1211,1214,1216,1219,1221,1224,1226,1228,1230,1233,1235,1238,1240,1243,1245,1247,1249,1252,1254,1256,1258,1261,1263,1266,1268,1271,1273,1276,1278,1281,1283,1286,1288,1290,1292,1295,1297,1299,1301,1304,1306,1308,1310,1313,1315,1318,1320,1323,1325,1328,1330,1332,1334,1337,1339,1341,1343,1346,1348,1350,1352,1355,1357,1359,1361,1364,1366,1369,1371,1374,1376,1379,1381,1384,1386,1389,1391,1394,1396,1399,1401,1404,1406,1409,1411,1414,1416,1419,1421,1424,1426,1429,1431,1434,1436,1439,1441,1443,1445,1448,1450,1452,1454,1457,1459,1461,1463,1466,1468,1470,1472,1475,1477,1480,1482,1485,1487,1489,1491,1493,1495,1498,1500,1502,1504,1507,1509,1511,1513,1516,1518,1521,1523,1525,1527,1529,1531,1533,1535,1537,1539,1541,1543,1546,1548,1550,1552,1554,1556,1558,1560,1563,1565,1568,1570,1572,1574,1576,1578,1580,1582,1585,1587,1589,1591,1594,1596,1598,1600,1602,1604,1607,1609,1611,1613,1615,1617,1619,1621,1623,1625,1627,1629,1631,1633,1635,1637,1640,1642,1644,1646,1648,1650,1653,1655,1657,1659,1661,1663,1665,1667,1670,1672,1674,1676,1679,1681,1683,1685,1688,1690,1693,1695,1697,1699,1701,1703,1705,1707,1709,1711,1713,1715,1717,1719,1721,1723,1726,1728,1731,1733,1735,1737,1739,1741,1743,1745,1748,1750,1752,1754,1757,1759,1761,1763,1765,1767,1770,1772,1774,1776,1778,1780,1782,1784,1786,1788,1790,1792,1794,1796,1798,1800,1803,1805,1808,1810,1812,1814,1816,1818,1820,1822,1825,1827,1829,1831,1834,1836,1838,1840,1843,1845,1848,1850,1852,1854,1856,1858,1860,1862,1864,1866,1868,1870,1872,1874,1876,1878,1881,1883,1886,1888,1890,1892,1894,1896,1898,1900,1903,1905,1907,1909,1911,1913,1915,1917,1919,1921,1924,1926,1928,1930,1932,1934,1936,1938,1940,1942,1944,1946,1949,1951,1954,1956,1958,1960,1962,1964,1966,1968,1971,1973,1975,1977,1980,1982,1984,1986,1988,1990,1993,1995,1997,1999,2001,2003,2005,2007,2009,2011,2013,2015,2017,2019,2021,2023,2026,2028,2031,2033,2035,2037,2039,2041,2043,2045,2048,2050,2052,2054,2057,2059,2061,2063,2065,2067,2070,2072,2074,2076,2078,2080,2082,2084,2086,2088,2090,2092,2094,2096,2098,2100,2102,2104,2107,2109,2111,2113,2115,2117,2120,2122,2125,2127,2130,2132,2135,2137,2140,2142,2145,2147,2150,2152,2154,2156,2159,2161,2163,2165,2168,2170,2172,2174,2176,2178,2181,2183,2185,2187,2189,2191,2193,2195,2197,2199,2201,2203,2205,2207,2209,2211,2213,2215,2218,2220,2222,2224,2226,2228,2231,2233,2236,2238,2240,2242,2244,2246,2248,2250,2252,2254,2256,2258,2260,2262,2264,2266,2268,2270,2272,2274,2276,2278,2281,2283,2286,2288,2291,2293,2295,2297,2300,2302,2304,2306,2309,2311,2313,2315,2318,2320,2323,2325,2328,2330,2333,2335,2337,2339,2342,2344,2346,2348,2351,2353,2355,2357,2360,2362,2364,2366,2369,2371,2374,2376,2379,2381,2384,2386,2388,2390,2393,2395,2397,2399,2402,2404,2407,2409,2412,2414,2416,2418,2420,2422,2424,2426,2428,2430,2432,2434,2437,2439,2442,2444,2446,2448,2450,2452,2454,2456,2458,2460,2462,2464,2467,2469,2472,2474,2477,2479,2482,2484,2487,2489,2492,2494,2497,2499,2502,2504,2507,2509,2512,2514,2516,2519,2521,2523,2525,2528,2530,2533,2535,2538,2540,2543,2545,2548,2550,2552,2554,2556,2559,2561,2563,2565,2567,2570,2572,2574,2576,2578,2581,2583,2585,2587,2589,2592,2594,2596,2598,2600,2603,2605,2607,2609,2611,2614,2616,2618,2620,2623,2625,2628,2630,2633,2635,2638,2640,2643,2645,2648,2650,2652,2654,2657,2659,2661,2663,2666,2668,2670,2672,2675,2677,2680,2682,2685,2687,2689,2691,2693,2695,2697,2699,2701,2703,2705,2707,2709,2711,2713,2715,2717,2719,2722,2724,2726,2728,2731,2733,2735,2737,2740,2742,2744,2746,2749,2751,2753,2755,2757,2759,2761,2763,2765,2767,2769,2771,2773,2775,2777,2779,2781,2783,2785,2787,2789,2791,2793,2795,2797,2799,2802,2804,2806,2808,2811,2813,2815,2817,2819,2821,2823,2825,2827,2829,2831,2833,2835,2837,2839,2841,2843,2845,2847,2849,2851,2853,2856,2858,2860,2862,2864,2866,2868,2870,2873,2875,2878,2880,2883,2885,2888,2890,2893,2895,2898,2900,2903,2905,2908,2910,2912,2914,2917,2919,2922,2924,2927,2929,2932,2934,2937,2939,2942,2944,2947,2949,2952,2954,2957,2959,2961,2963,2965,2967,2969,2971,2974,2976,2978,2980,2983,2985,2988,2990,2993,2995,2998,3000,3003,3005,3008,3010,3013,3015,3018,3020,3023,3025,3028,3030,3033,3035,3038,3040,3043,3045,3047,3049,3052,3054,3057,3059,3062,3064,3067,3069,3072,3074,3077,3079,3082,3084,3086,3088,3091,3093,3096,3098,3100,3102,3105,3107,3110,3112,3115,3117,3120,3122,3125,3127,3130,3132,3135,3137,3140,3142,3145,3147,3150,3152,3155,3157,3160,3162,3165,3167,3170,3172,3175,3177,3179,3181,3184,3186,3188,3190,3193,3195,3198,3200,3203,3205,3208,3210,3213,3215,3218,3220,3223,3225,3228,3230,3233,3235,3238,3240,3243,3245,3248,3250,3253,3255,3258,3260,3263,3265,3268,3270,3273,3275,3278,3280,3282,3284,3286,3288,3291,3293,3296,3298,3301,3303,3306,3308,3310,3312,3315,3317,3320,3322,3325,3327,3330,3332,3335,3337,3340,3342,3345,3347,3350,3352,3355,3357,3360,3362,3365,3367,3370,3372,3375,3377,3380,3382,3384,3386,3388,3390,3393,3395,3398,3400,3403,3405,3407,3409,3412,3414,3416,3419,3421,3423,3426,3428,3430,3432,3434,3436,3439,3441,3443,3445,3447,3449,3452,3454,3456,3458,3460,3462,3465,3467,3469,3471,3473,3475,3478,3480,3482,3484,3486,3488,3490,3493,3495,3497,3499,3501,3503,3505,3507,3509,3511,3513,3515,3517,3519,3521,3523,3525,3527,3529,3531,3533,3535,3537,3539,3541,3543,3545,3547,3549,3551,3553,3555,3557,3559,3561,3563,3565,3567,3569,3571,3573,3575,3577,3579,3581,3583,3585,3587,3589,3591,3593,3595,3597,3599,3601,3603,3605,3607,3609,3611,3613,3615,3617,3620,3622,3624,3626,3628,3630,3632,3634,3636,3638,3640,3642,3644,3646,3648,3650,3652,3654,3656,3658,3660,3662,3664,3666,3668,3670,3672,3674,3676,3678,3680,3682,3684,3686,3688,3691,3693,3695,3697,3699,3701,3703,3705,3707,3709,3711,3713,3715,3717,3719,3721,3723,3725,3727,3729,3731,3733,3735,3737,3739,3741,3743,3745,3747,3749,3751,3753,3755,3757,3759,3761,3763,3765,3767,3769,3771,3773,3775,3777,3779,3781,3783,3786,3788,3790,3792,3794,3796,3798,3800,3802,3804,3806,3808,3810,3812,3814,3816,3818,3820,3822,3824,3826,3828,3830,3832,3834,3836,3838,3840,3842,3844,3846,3848,3850,3852,3855,3857,3860,3862,3865,3867,3870,3872,3875,3877,3880,3882,3885,3887,3889,3891,3893,3895,3897,3899,3901,3903,3905,3907,3909,3911,3913,3915,3917,3919,3921,3923,3925,3927,3929,3931,3933,3935,3937,3939,3941,3943,3946,3948,3950,3952,3954,3956,3958,3960,3962,3964,3966,3968,3970,3972,3975,3977,3979,3981,3984,3986,3988,3990,3992,3994,3996,3998,4000,4002,4004,4006,4008,4010,4013,4015,4017,4019,4022,4024,4026,4028,4030,4032,4034,4036,4038,4040,4042,4044,4046,4048,4050,4052,4054,4056,4059,4061,4063,4065,4067,4069,4071,4073,4075,4077,4079,4081,4083,4085,4087,4089,4091,4093,4095,4097,4099,4101,4103,4105,4107,4109,4111,4113,4115,4117,4119,4121,4123,4125,4127,4129,4131,4133,4135,4137,4139,4141,4143,4145,4147,4149,4151,4153,4155,4157,4159,4161,4163,4165,4167,4169,4171,4173,4175,4177,4179,4181,4183,4185,4187,4189,4191,4193,4195,4197,4199,4201,4203,4205,4207,4209,4211,4213,4215,4217,4219,4221,4223,4225,4227,4229,4231,4233,4235,4237,4239,4241,4243,4245,4247,4249,4251,4253,4255,4257,4259,4261,4263,4265,4267,4269,4271,4273,4275,4277,4279,4281,4283,4285,4287,4289,4291,4293,4295,4297,4299,4301,4303,4305,4307,4309,4311,4313,4315,4317,4319,4321,4323,4325,4327,4329,4331,4333,4335,4337,4339,4341,4343,4345,4347,4349,4351,4353,4355,4357,4359,4361,4363,4365,4367,4369,4371,4373,4375,4377,4379,4381,4383,4385,4387,4389,4391,4393,4395,4397,4399,4401,4403,4405,4407,4409,4411,4413,4415,4417,4419,4421,4423,4425,4427,4429,4431,4433,4435,4437,4439,4441,4443,4445,4447,4449,4451,4453,4455,4457,4459,4461,4463,4465,4467,4469,4471,4473,4475,4477,4479,4481,4483,4485,4487,4489,4491,4493,4495,4497,4499,4501,4503,4505,4507,4509,4511,4513,4515,4517,4519,4521,4523,4525,4527,4529,4531,4533,4535,4537,4539,4541,4543,4545,4547,4549,4551,4553,4555,4557,4559,4561,4563,4565,4567,4569,4571,4573,4575,4577,4579,4581,4583,4585,4587,4589,4591,4593,4595,4597,4599,4601,4603,4605,4607,4609,4611,4613,4615,4617,4619,4621,4623,4625,4627,4629,4631,4633,4635,4637,4639,4641,4643,4645,4647,4649,4651,4653,4655,4657,4659,4661,4663,4665,4667,4669,4671,4673,4675,4677,4679,4681,4683,4685,4687,4689,4691,4693,4695,4697,4699,4701,4703,4705,4707,4709,4711,4713,4715,4717,4719,4721,4723,4725,4727,4729,4731,4733,4735,4737,4739,4741,4743,4745,4747,4749,4751,4753,4755,4757,4759,4761,4763,4765,4767,4769,4771,4773,4775,4777,4779,4781,4783,4785,4787,4789,4791,4793,4795,4797,4799,4801,4803,4805,4807,4809,4811,4813,4815,4817,4819,4821,4823,4825,4827,4829,4831,4833,4835,4837,4839,4841,4843,4845,4847,4849,4851,4853,4855,4857,4859,4861,4863,4865,4867,4869,4871,4873,4875,4877,4879,4881,4883,4885,4887,4889,4891,4893,4895,4897,4899,4901,4904,4906,4908,4910,4912,4914,4916,4918,4920,4922,4924,4926,4928,4930,4932,4934,4936,4938,4940,4942,4944,4946,4948,4950,4952,4954,4956,4958,4960,4962,4964,4966,4968,4970,4972,4974,4976,4978,4980,4982,4984,4986,4988,4990,4992,4994,4996,4998,5000,5002,5004,5006,5008,5010,5013,5015,5017,5019,5021,5023,5025,5027,5029,5031,5033,5035,5037,5039,5042,5044,5046,5048,5050,5052,5054,5056,5058,5060,5062,5064,5066,5068,5070,5072,5074,5076,5078,5080,5082,5084,5086,5088,5090,5092,5095,5097,5100,5102,5104,5106,5108,5111,5113,5115,5117,5119,5121,5123,5125,5127,5129,5131,5133,5135,5137,5139,5141,5143,5145,5147,5149,5151,5153,5155,5157,5159,5161,5163,5165,5167,5169,5171,5173,5175,5177,5179,5181,5183,5185,5187,5189,5191,5193,5195,5197,5199,5201,5203,5205,5207,5209,5211,5213,5215,5217,5219,5221,5223,5225,5227,5229,5231,5233,5235,5237,5239,5241,5243,5245,5247,5249,5251,5253,5255,5257,5259,5261,5263,5265,5267,5269,5271,5273,5275,5277,5279,5281,5283,5285,5287,5289,5291,5293,5295,5297,5299,5301,5303,5305,5307,5309,5311,5313,5315,5317,5319,5321,5323,5325,5327,5329,5331,5333,5335,5337,5339,5341,5343,5345,5347,5349,5351,5353,5355,5357,5359,5361,5363,5365,5367,5369,5371,5373,5375,5377,5379,5381,5383,5385,5387,5389,5391,5393,5395,5397,5399,5401,5403,5405,5407,5409,5411,5413,5415,5417,5419,5421,5423,5425,5427,5429,5431,5433,5435,5437,5439,5441,5443,5445,5447,5449,5451,5453,5455,5457,5459,5461,5463,5465,5467,5469,5471,5473,5475,5477,5479,5481,5483,5485,5487,5489,5491,5493,5495,5497,5499,5501,5503,5505,5507,5509,5511,5513,5515,5517,5519,5521,5523,5525,5527,5529,5531,5533,5535,5537,5539,5541,5543,5545,5547,5549,5551,5553,5555,5557,5559,5561,5563,5565,5567,5569,5571,5573,5575,5577,5579,5581,5583,5585,5587,5589,5591,5593,5595,5597,5599,5601,5603,5605,5607,5609,5611,5613,5615,5617,5620,5622,5624,5626,5629,5631,5634,5636,5638,5640,5642,5644,5646,5648,5650,5652,5654,5656,5658,5660,5662,5664,5666,5668,5670,5672,5674,5676,5678,5680,5682,5684,5686,5688,5690,5692,5694,5696,5698,5700,5702,5704,5706,5708,5710,5712,5714,5716,5718,5720,5722,5724,5726,5728,5730,5732,5734,5736,5738,5740,5742,5744,5746,5748,5750,5752,5754,5756,5758,5760,5762,5764,5766,5768,5770,5772,5774,5776,5778,5780,5783,5785,5788,5790,5792,5794,5797,5799,5802,5804,5806,5808,5811,5813,5816,5818,5820,5823,5826,5828,5830,5832,5834,5836,5839,5841,5843,5845,5847,5849,5851,5853,5855,5857,5859,5861,5863,5865,5867,5869,5871,5873,5875,5877,5879,5881,5883,5885,5887,5889,5891,5893,5895,5897,5899,5901,5903,5905,5907,5909,5911,5913,5915,5917,5919,5921,5923,5925,5927,5929,5931,5933,5935,5937,5939,5941,5943,5945,5947,5949,5951,5953,5955,5957,5959,5961,5963,5965,5967,5969,5971,5973,5975,5977,5979,5981,5983,5985,5987,5989,5991,5993,5995,5997,5999,6001,6003,6005,6007,6009,6011,6013,6015,6017,6019,6021,6023,6025,6027,6029,6031,6033,6035,6037,6039,6041,6043,6045,6047,6049,6051,6053,6055,6057,6059,6061,6063,6065,6067,6069,6071,6073,6075,6077,6079,6081,6083,6085,6087,6089,6091,6093,6095,6097,6099,6101,6103,6105,6107,6109,6111,6113,6115,6117,6119,6121,6123,6125,6127,6129,6131,6133,6135,6137,6139,6141,6143,6145,6147,6149,6151,6153,6155,6157,6159,6161,6163,6165,6167,6169,6171,6173,6175,6177,6179,6181,6183,6185,6188,6190,6192,6194,6196,6198,6200,6202,6204,6206,6208,6210,6212,6214,6216,6218,6220,6222,6224,6226,6228,6230,6232,6234,6237,6239,6241,6243,6246,6248,6250,6252,6255,6257,6260,6262,6265,6267,6269,6271,6274,6276,6279,6281,6284,6286,6289,6291,6294,6296,6299,6301,6304,6306,6309,6311,6314,6316,6319,6321,6324,6326,6329,6331,6334,6336,6339,6341,6344,6346,6348,6350,6353,6355,6358,6360,6363,6365,6368,6370,6372,6374,6377,6379,6382,6384,6387,6389,6392,6394,6397,6399,6402,6404,6407,6409,6411,6413,6416,6418,6420,6422,6425,6427,6429,6431,6433,6435,6437,6439,6441,6444,6446,6448,6450,6452,6454,6456,6458,6460,6462,6464,6466,6468,6470,6472,6474,6476,6478,6480,6482,6484,6486,6488,6490,6492,6494,6496,6498,6500,6502,6504,6506,6508,6510,6512,6514,6516,6518,6520,6522,6524,6526,6528,6530,6532,6534,6536,6538,6540,6542,6544,6546,6548,6551,6553,6555,6557,6559,6561,6563,6565,6567,6569,6571,6573,6575,6577,6579,6581,6583,6585,6588,6590,6592,6594,6596,6598,6600,6602,6604,6606,6608,6610,6612,6614,6616,6618,6620,6622,6624,6627,6629,6631,6633,6635,6637,6639,6641,6643,6645,6647,6649,6651,6653,6655,6657,6659,6661,6663,6665,6667,6670,6672,6674,6676,6678,6680,6682,6684,6686,6688,6690,6692,6694,6696,6698,6700,6702,6704,6706,6708,6710,6712,6714,6716,6719,6721,6723,6725,6727,6729,6731,6733,6735,6737,6739,6741,6743,6745,6747,6749,6752,6754,6756,6758,6761,6763,6765,6767,6770,6772,6774,6776,6778,6780,6782,6784,6786,6788,6790,6792,6794,6797,6799,6801,6803,6805,6807,6809,6811,6813,6815,6817,6819,6822,6824,6826,6828,6830,6832,6834,6836,6838,6840,6842,6844,6846,6848,6850,6852,6854,6856,6858,6860,6862,6864,6866,6868,6870,6872,6874,6876,6878,6880,6882,6884,6886,6888,6890,6892,6894,6896,6898,6900,6902,6904,6906,6908,6910,6912,6914,6916,6918,6920,6922,6924,6926,6928,6930,6932,6934,6936,6938,6940,6942,6944,6946,6948,6950,6952,6954,6956,6958,6960,6962,6964,6966,6968,6970,6972,6974,6976,6978,6980,6982,6984,6987,6989,6991,6993,6995,6997,6999,7001,7003,7005,7007,7009,7011,7013,7015,7017,7019,7021,7023,7025,7027,7029,7031,7033,7035,7037,7039,7041,7043,7045,7047,7049,7051,7053,7055,7057,7059,7061,7063,7065,7067,7069,7071,7073,7075,7077,7079,7081,7083,7085,7087,7089,7091,7093,7095,7098,7100,7103,7105,7108,7110,7113,7115,7118,7120,7123,7125,7128,7130,7133,7135,7138,7140,7143,7145,7148,7150,7153,7155,7158,7160,7163,7165,7168,7170,7173,7175,7177,7179,7182,7184,7187,7189,7192,7194,7196,7198,7200,7202,7204,7206,7208,7210,7212,7214,7216,7218,7220,7222,7224,7227,7229,7231,7233,7235,7237,7239,7241,7243,7245,7247,7249,7251,7253,7255,7257,7259,7261,7263,7265,7267,7269,7271,7273,7275,7277,7279,7281,7283,7285,7287,7289,7291,7293,7295,7297,7299,7301,7303,7305,7307,7309,7311,7313,7315,7317,7319,7321,7323,7325,7327,7329,7331,7333,7335,7337,7339,7341,7343,7345,7347,7349,7351,7353,7355,7357,7359,7361,7363,7365,7367,7369,7371,7373,7375,7377,7379,7381,7383,7385,7387,7389,7391,7393,7395,7397,7399,7401,7403,7405,7407,7409,7411,7413,7415,7417,7419,7421,7423,7425,7427,7429,7431,7433,7435,7437,7439,7441,7443,7445,7447,7449,7451,7453,7455,7457,7459,7461,7463,7465,7467,7469,7471,7474,7476,7478,7480,7482,7484,7486,7488,7490,7492,7494,7496,7498,7500,7502,7504,7506,7508,7510,7512,7514,7516,7518,7520,7523,7525,7527,7529,7531,7533,7535,7537,7539,7541,7543,7545,7547,7549,7551,7553,7556,7558,7560,7562,7565,7567,7569,7571,7574,7576,7578,7580,7582,7584,7586,7588,7590,7592,7594,7596,7598,7601,7603,7605,7607,7609,7611,7613,7615,7617,7619,7621,7623,7625,7627,7629,7631,7633,7635,7637,7639,7641,7643,7645,7647,7649,7651,7653,7655,7657,7659,7661,7663,7665,7667,7669,7671,7673,7675,7677,7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,7829,7831,7833,7835,7837,7839,7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,7936,7938,7940,7942,7944,7946,7948,7950,7952,7954,7956,7958,7960,7962,7964,7966,7968,7970,7972,7974,7976,7978,7980,7982,7984,7986,7988,7990,7992,7994,7996,7998,8000,8002,8004,8006,8008,8010,8012,8014,8016,8018,8020,8022,8024,8026,8028,8030,8032,8034,8036,8038,8040,8042,8044,8046,8048,8050,8052,8054,8056,8058,8060,8062,8064,8066,8068,8070,8072,8074,8076,8078,8080,8082,8084,8086,8088,8090,8092,8094,8096,8098,8100,8102,8104,8106,8108,8110,8112,8114,8116,8118,8120,8122,8124,8126,8128,8130,8132,8134,8136,8138,8140,8142,8144,8146,8148,8150,8152,8154,8156,8158,8160,8162,8164,8166,8168,8170,8172,8174,8176,8178,8180,8182,8184,8186,8188,8191,8193,8195,8197,8199,8201,8203,8205,8208,8210,8212,8214,8217,8219,8221,8223,8226,8228,8230,8232,8235,8237,8239,8241,8244,8246],"span",{"class":180,"line":181},"line",1,[178,183,185],{"class":184},"sMK4o","[{",[178,187,188],{"class":184},"\"",[178,190,192],{"class":191},"spNyl","id",[178,194,188],{"class":184},[178,196,197],{"class":184},":",[178,199,188],{"class":184},[178,201,203],{"class":202},"sfazB","fc4cfab8a41f3bdb",[178,205,188],{"class":184},[178,207,208],{"class":184},",",[178,210,188],{"class":184},[178,212,213],{"class":191},"type",[178,215,188],{"class":184},[178,217,197],{"class":184},[178,219,188],{"class":184},[178,221,222],{"class":202},"group",[178,224,188],{"class":184},[178,226,208],{"class":184},[178,228,188],{"class":184},[178,230,231],{"class":191},"z",[178,233,188],{"class":184},[178,235,197],{"class":184},[178,237,188],{"class":184},[178,239,240],{"class":202},"7f9feb3283fbb929",[178,242,188],{"class":184},[178,244,208],{"class":184},[178,246,188],{"class":184},[178,248,249],{"class":191},"name",[178,251,188],{"class":184},[178,253,197],{"class":184},[178,255,188],{"class":184},[178,257,258],{"class":202},"Data Simulation",[178,260,188],{"class":184},[178,262,208],{"class":184},[178,264,188],{"class":184},[178,266,267],{"class":191},"style",[178,269,188],{"class":184},[178,271,272],{"class":184},":{",[178,274,188],{"class":184},[178,276,278],{"class":277},"sBMFI","label",[178,280,188],{"class":184},[178,282,283],{"class":184},":true},",[178,285,188],{"class":184},[178,287,288],{"class":191},"nodes",[178,290,188],{"class":184},[178,292,293],{"class":184},":[",[178,295,188],{"class":184},[178,297,298],{"class":202},"7ff2fe3d22e543d8",[178,300,188],{"class":184},[178,302,208],{"class":184},[178,304,188],{"class":184},[178,306,307],{"class":202},"77f9a234e079a6dd",[178,309,188],{"class":184},[178,311,208],{"class":184},[178,313,188],{"class":184},[178,315,316],{"class":202},"e9c9fbed2e767b9f",[178,318,188],{"class":184},[178,320,208],{"class":184},[178,322,188],{"class":184},[178,324,325],{"class":202},"23504c3b0f35db82",[178,327,188],{"class":184},[178,329,208],{"class":184},[178,331,188],{"class":184},[178,333,334],{"class":202},"475645219af52b5e",[178,336,188],{"class":184},[178,338,208],{"class":184},[178,340,188],{"class":184},[178,342,343],{"class":202},"d978f663921063a7",[178,345,188],{"class":184},[178,347,208],{"class":184},[178,349,188],{"class":184},[178,351,352],{"class":202},"d2facb93da0e58db",[178,354,188],{"class":184},[178,356,208],{"class":184},[178,358,188],{"class":184},[178,360,361],{"class":202},"1188c4b2256949a3",[178,363,188],{"class":184},[178,365,366],{"class":184},"],",[178,368,188],{"class":184},[178,370,371],{"class":191},"x",[178,373,188],{"class":184},[178,375,197],{"class":184},[178,377,379],{"class":378},"sbssI","34",[178,381,208],{"class":184},[178,383,188],{"class":184},[178,385,386],{"class":191},"y",[178,388,188],{"class":184},[178,390,197],{"class":184},[178,392,393],{"class":378},"219",[178,395,208],{"class":184},[178,397,188],{"class":184},[178,399,400],{"class":191},"w",[178,402,188],{"class":184},[178,404,197],{"class":184},[178,406,407],{"class":378},"812",[178,409,208],{"class":184},[178,411,188],{"class":184},[178,413,414],{"class":191},"h",[178,416,188],{"class":184},[178,418,197],{"class":184},[178,420,421],{"class":378},"142",[178,423,424],{"class":184},"},{",[178,426,188],{"class":184},[178,428,192],{"class":191},[178,430,188],{"class":184},[178,432,197],{"class":184},[178,434,188],{"class":184},[178,436,298],{"class":202},[178,438,188],{"class":184},[178,440,208],{"class":184},[178,442,188],{"class":184},[178,444,213],{"class":191},[178,446,188],{"class":184},[178,448,197],{"class":184},[178,450,188],{"class":184},[178,452,453],{"class":202},"debug",[178,455,188],{"class":184},[178,457,208],{"class":184},[178,459,188],{"class":184},[178,461,231],{"class":191},[178,463,188],{"class":184},[178,465,197],{"class":184},[178,467,188],{"class":184},[178,469,240],{"class":202},[178,471,188],{"class":184},[178,473,208],{"class":184},[178,475,188],{"class":184},[178,477,478],{"class":191},"g",[178,480,188],{"class":184},[178,482,197],{"class":184},[178,484,188],{"class":184},[178,486,203],{"class":202},[178,488,188],{"class":184},[178,490,208],{"class":184},[178,492,188],{"class":184},[178,494,249],{"class":191},[178,496,188],{"class":184},[178,498,197],{"class":184},[178,500,188],{"class":184},[178,502,503],{"class":202},"Result",[178,505,188],{"class":184},[178,507,208],{"class":184},[178,509,188],{"class":184},[178,511,512],{"class":191},"active",[178,514,188],{"class":184},[178,516,517],{"class":184},":true,",[178,519,188],{"class":184},[178,521,522],{"class":191},"tosidebar",[178,524,188],{"class":184},[178,526,517],{"class":184},[178,528,188],{"class":184},[178,530,531],{"class":191},"console",[178,533,188],{"class":184},[178,535,536],{"class":184},":false,",[178,538,188],{"class":184},[178,540,541],{"class":191},"tostatus",[178,543,188],{"class":184},[178,545,536],{"class":184},[178,547,188],{"class":184},[178,549,550],{"class":191},"complete",[178,552,188],{"class":184},[178,554,197],{"class":184},[178,556,188],{"class":184},[178,558,559],{"class":202},"payload",[178,561,188],{"class":184},[178,563,208],{"class":184},[178,565,188],{"class":184},[178,567,568],{"class":191},"targetType",[178,570,188],{"class":184},[178,572,197],{"class":184},[178,574,188],{"class":184},[178,576,577],{"class":202},"msg",[178,579,188],{"class":184},[178,581,208],{"class":184},[178,583,188],{"class":184},[178,585,586],{"class":191},"statusVal",[178,588,188],{"class":184},[178,590,197],{"class":184},[178,592,593],{"class":184},"\"\"",[178,595,208],{"class":184},[178,597,188],{"class":184},[178,599,600],{"class":191},"statusType",[178,602,188],{"class":184},[178,604,197],{"class":184},[178,606,188],{"class":184},[178,608,609],{"class":202},"auto",[178,611,188],{"class":184},[178,613,208],{"class":184},[178,615,188],{"class":184},[178,617,371],{"class":191},[178,619,188],{"class":184},[178,621,197],{"class":184},[178,623,624],{"class":378},"750",[178,626,208],{"class":184},[178,628,188],{"class":184},[178,630,386],{"class":191},[178,632,188],{"class":184},[178,634,197],{"class":184},[178,636,637],{"class":378},"260",[178,639,208],{"class":184},[178,641,188],{"class":184},[178,643,644],{"class":191},"wires",[178,646,188],{"class":184},[178,648,649],{"class":184},":[]},{",[178,651,188],{"class":184},[178,653,192],{"class":191},[178,655,188],{"class":184},[178,657,197],{"class":184},[178,659,188],{"class":184},[178,661,307],{"class":202},[178,663,188],{"class":184},[178,665,208],{"class":184},[178,667,188],{"class":184},[178,669,213],{"class":191},[178,671,188],{"class":184},[178,673,197],{"class":184},[178,675,188],{"class":184},[178,677,678],{"class":202},"inject",[178,680,188],{"class":184},[178,682,208],{"class":184},[178,684,188],{"class":184},[178,686,231],{"class":191},[178,688,188],{"class":184},[178,690,197],{"class":184},[178,692,188],{"class":184},[178,694,240],{"class":202},[178,696,188],{"class":184},[178,698,208],{"class":184},[178,700,188],{"class":184},[178,702,478],{"class":191},[178,704,188],{"class":184},[178,706,197],{"class":184},[178,708,188],{"class":184},[178,710,203],{"class":202},[178,712,188],{"class":184},[178,714,208],{"class":184},[178,716,188],{"class":184},[178,718,249],{"class":191},[178,720,188],{"class":184},[178,722,197],{"class":184},[178,724,593],{"class":184},[178,726,208],{"class":184},[178,728,188],{"class":184},[178,730,731],{"class":191},"props",[178,733,188],{"class":184},[178,735,736],{"class":184},":[],",[178,738,188],{"class":184},[178,740,741],{"class":191},"repeat",[178,743,188],{"class":184},[178,745,197],{"class":184},[178,747,593],{"class":184},[178,749,208],{"class":184},[178,751,188],{"class":184},[178,753,754],{"class":191},"crontab",[178,756,188],{"class":184},[178,758,197],{"class":184},[178,760,593],{"class":184},[178,762,208],{"class":184},[178,764,188],{"class":184},[178,766,767],{"class":191},"once",[178,769,188],{"class":184},[178,771,536],{"class":184},[178,773,188],{"class":184},[178,775,776],{"class":191},"onceDelay",[178,778,188],{"class":184},[178,780,197],{"class":184},[178,782,783],{"class":378},"0.1",[178,785,208],{"class":184},[178,787,188],{"class":184},[178,789,790],{"class":191},"topic",[178,792,188],{"class":184},[178,794,197],{"class":184},[178,796,593],{"class":184},[178,798,208],{"class":184},[178,800,188],{"class":184},[178,802,371],{"class":191},[178,804,188],{"class":184},[178,806,197],{"class":184},[178,808,809],{"class":378},"130",[178,811,208],{"class":184},[178,813,188],{"class":184},[178,815,386],{"class":191},[178,817,188],{"class":184},[178,819,197],{"class":184},[178,821,637],{"class":378},[178,823,208],{"class":184},[178,825,188],{"class":184},[178,827,644],{"class":191},[178,829,188],{"class":184},[178,831,832],{"class":184},":[[",[178,834,188],{"class":184},[178,836,316],{"class":202},[178,838,188],{"class":184},[178,840,841],{"class":184},"]]},{",[178,843,188],{"class":184},[178,845,192],{"class":191},[178,847,188],{"class":184},[178,849,197],{"class":184},[178,851,188],{"class":184},[178,853,316],{"class":202},[178,855,188],{"class":184},[178,857,208],{"class":184},[178,859,188],{"class":184},[178,861,213],{"class":191},[178,863,188],{"class":184},[178,865,197],{"class":184},[178,867,188],{"class":184},[178,869,870],{"class":202},"function",[178,872,188],{"class":184},[178,874,208],{"class":184},[178,876,188],{"class":184},[178,878,231],{"class":191},[178,880,188],{"class":184},[178,882,197],{"class":184},[178,884,188],{"class":184},[178,886,240],{"class":202},[178,888,188],{"class":184},[178,890,208],{"class":184},[178,892,188],{"class":184},[178,894,478],{"class":191},[178,896,188],{"class":184},[178,898,197],{"class":184},[178,900,188],{"class":184},[178,902,203],{"class":202},[178,904,188],{"class":184},[178,906,208],{"class":184},[178,908,188],{"class":184},[178,910,249],{"class":191},[178,912,188],{"class":184},[178,914,197],{"class":184},[178,916,188],{"class":184},[178,918,919],{"class":202},"Historical Seed",[178,921,188],{"class":184},[178,923,208],{"class":184},[178,925,188],{"class":184},[178,927,928],{"class":191},"func",[178,930,188],{"class":184},[178,932,197],{"class":184},[178,934,188],{"class":184},[178,936,937],{"class":202},"\u002F\u002F ============================================================",[178,939,941],{"class":940},"sTEyZ","\\n",[178,943,944],{"class":202},"\u002F\u002F SHARED GENERATOR LOGIC (v4 — full station coverage + EV-specific defect)",[178,946,941],{"class":940},[178,948,937],{"class":202},[178,950,951],{"class":940},"\\n\\n",[178,953,954],{"class":202},"\u002F\u002F ---- Helper: weighted random pick ------------------------------",[178,956,941],{"class":940},[178,958,959],{"class":202},"function weightedPick(items, weights) {",[178,961,941],{"class":940},[178,963,964],{"class":202},"    const r = Math.random();",[178,966,941],{"class":940},[178,968,969],{"class":202},"    let cumulative = 0;",[178,971,941],{"class":940},[178,973,974],{"class":202},"    for (let i = 0; i \u003C items.length; i++) {",[178,976,941],{"class":940},[178,978,979],{"class":202},"        cumulative += weights[i];",[178,981,941],{"class":940},[178,983,984],{"class":202},"        if (r \u003C= cumulative) return items[i];",[178,986,941],{"class":940},[178,988,989],{"class":202},"    }",[178,991,941],{"class":940},[178,993,994],{"class":202},"    return items[items.length - 1];",[178,996,941],{"class":940},[178,998,999],{"class":202},"}",[178,1001,951],{"class":940},[178,1003,1004],{"class":202},"\u002F\u002F ---- Convert an ARRAY of records into column-wise arrays, for a",[178,1006,941],{"class":940},[178,1008,1009],{"class":202},"\u002F\u002F single bulk INSERT ... SELECT * FROM UNNEST(...) query -----------",[178,1011,941],{"class":940},[178,1013,1014],{"class":202},"function recordsToColumnParams(records) {",[178,1016,941],{"class":940},[178,1018,1019],{"class":202},"    const cols = [",[178,1021,941],{"class":940},[178,1023,1024],{"class":940},"        \\\"",[178,1026,1027],{"class":202},"defect_id",[178,1029,1030],{"class":940},"\\\"",[178,1032,86],{"class":202},[178,1034,1030],{"class":940},[178,1036,1037],{"class":202},"date",[178,1039,1030],{"class":940},[178,1041,86],{"class":202},[178,1043,1030],{"class":940},[178,1045,180],{"class":202},[178,1047,1030],{"class":940},[178,1049,86],{"class":202},[178,1051,1030],{"class":940},[178,1053,1054],{"class":202},"station",[178,1056,1030],{"class":940},[178,1058,86],{"class":202},[178,1060,1030],{"class":940},[178,1062,1063],{"class":202},"shift",[178,1065,1030],{"class":940},[178,1067,86],{"class":202},[178,1069,1030],{"class":940},[178,1071,1072],{"class":202},"sku",[178,1074,1030],{"class":940},[178,1076,208],{"class":202},[178,1078,941],{"class":940},[178,1080,1024],{"class":940},[178,1082,1083],{"class":202},"defect_type",[178,1085,1030],{"class":940},[178,1087,86],{"class":202},[178,1089,1030],{"class":940},[178,1091,1092],{"class":202},"defect_category",[178,1094,1030],{"class":940},[178,1096,86],{"class":202},[178,1098,1030],{"class":940},[178,1100,1101],{"class":202},"severity",[178,1103,1030],{"class":940},[178,1105,86],{"class":202},[178,1107,1030],{"class":940},[178,1109,1110],{"class":202},"detected_stage",[178,1112,1030],{"class":940},[178,1114,208],{"class":202},[178,1116,941],{"class":940},[178,1118,1024],{"class":940},[178,1120,1121],{"class":202},"root_cause",[178,1123,1030],{"class":940},[178,1125,86],{"class":202},[178,1127,1030],{"class":940},[178,1129,1130],{"class":202},"disposition",[178,1132,1030],{"class":940},[178,1134,86],{"class":202},[178,1136,1030],{"class":940},[178,1138,1139],{"class":202},"status",[178,1141,1030],{"class":940},[178,1143,86],{"class":202},[178,1145,1030],{"class":940},[178,1147,1148],{"class":202},"cost_impact",[178,1150,1030],{"class":940},[178,1152,86],{"class":202},[178,1154,1030],{"class":940},[178,1156,1157],{"class":202},"resolution_hours",[178,1159,1160],{"class":940},"\\\"\\n",[178,1162,1163],{"class":202},"    ];",[178,1165,941],{"class":940},[178,1167,1168],{"class":202},"    return cols.map(col => records.map(r => r[col]));",[178,1170,941],{"class":940},[178,1172,999],{"class":202},[178,1174,1175],{"class":940},"\\n\\n\\n",[178,1177,1178],{"class":202},"\u002F\u002F ---- Unique defect_id (no context store needed) ----------------",[178,1180,941],{"class":940},[178,1182,1183],{"class":202},"function nextDefectId() {",[178,1185,941],{"class":940},[178,1187,1188],{"class":202},"    const rand = Math.floor(Math.random() * 46656).toString(36).padStart(3, ",[178,1190,1030],{"class":940},[178,1192,1193],{"class":202},"0",[178,1195,1030],{"class":940},[178,1197,1198],{"class":202},");",[178,1200,941],{"class":940},[178,1202,1203],{"class":202},"    return ",[178,1205,1030],{"class":940},[178,1207,1208],{"class":202},"DEF-",[178,1210,1030],{"class":940},[178,1212,1213],{"class":202}," + Date.now().toString(36).toUpperCase() + ",[178,1215,1030],{"class":940},[178,1217,1218],{"class":202},"-",[178,1220,1030],{"class":940},[178,1222,1223],{"class":202}," + rand.toUpperCase();",[178,1225,941],{"class":940},[178,1227,999],{"class":202},[178,1229,951],{"class":940},[178,1231,1232],{"class":202},"\u002F\u002F ---- Assembly lines: NOT equal — SUV Line has an aging robot cell",[178,1234,941],{"class":940},[178,1236,1237],{"class":202},"const LINES = [",[178,1239,1030],{"class":940},[178,1241,1242],{"class":202},"Sedan Line",[178,1244,1030],{"class":940},[178,1246,86],{"class":202},[178,1248,1030],{"class":940},[178,1250,1251],{"class":202},"SUV Line",[178,1253,1030],{"class":940},[178,1255,86],{"class":202},[178,1257,1030],{"class":940},[178,1259,1260],{"class":202},"EV Line",[178,1262,1030],{"class":940},[178,1264,1265],{"class":202},"];",[178,1267,941],{"class":940},[178,1269,1270],{"class":202},"const LINE_WEIGHTS = [0.30, 0.45, 0.25];   \u002F\u002F SUV Line skewed higher",[178,1272,951],{"class":940},[178,1274,1275],{"class":202},"\u002F\u002F ---- Shifts: Night skewed higher (fatigue\u002Fless supervision) -----",[178,1277,941],{"class":940},[178,1279,1280],{"class":202},"const SHIFTS = [",[178,1282,1030],{"class":940},[178,1284,1285],{"class":202},"Morning",[178,1287,1030],{"class":940},[178,1289,86],{"class":202},[178,1291,1030],{"class":940},[178,1293,1294],{"class":202},"Evening",[178,1296,1030],{"class":940},[178,1298,86],{"class":202},[178,1300,1030],{"class":940},[178,1302,1303],{"class":202},"Night",[178,1305,1030],{"class":940},[178,1307,1265],{"class":202},[178,1309,941],{"class":940},[178,1311,1312],{"class":202},"const SHIFT_WEIGHTS = [0.30, 0.25, 0.45];",[178,1314,951],{"class":940},[178,1316,1317],{"class":202},"\u002F\u002F ---- Trims: EV is the newest variant, has early teething defects --",[178,1319,941],{"class":940},[178,1321,1322],{"class":202},"const SKUS = [",[178,1324,1030],{"class":940},[178,1326,1327],{"class":202},"Base Trim",[178,1329,1030],{"class":940},[178,1331,86],{"class":202},[178,1333,1030],{"class":940},[178,1335,1336],{"class":202},"Sport Trim",[178,1338,1030],{"class":940},[178,1340,86],{"class":202},[178,1342,1030],{"class":940},[178,1344,1345],{"class":202},"Premium Trim",[178,1347,1030],{"class":940},[178,1349,86],{"class":202},[178,1351,1030],{"class":940},[178,1353,1354],{"class":202},"EV Trim",[178,1356,1030],{"class":940},[178,1358,1265],{"class":202},[178,1360,941],{"class":940},[178,1362,1363],{"class":202},"const SKU_WEIGHTS = [0.20, 0.20, 0.25, 0.35]; \u002F\u002F EV = newest, higher defect rate",[178,1365,951],{"class":940},[178,1367,1368],{"class":202},"\u002F\u002F ---- Defect types: Pareto-shaped (80\u002F20 rule), each with a home",[178,1370,941],{"class":940},[178,1372,1373],{"class":202},"\u002F\u002F shop, plausible root causes, and where it typically gets caught.",[178,1375,941],{"class":940},[178,1377,1378],{"class":202},"\u002F\u002F Now covers ALL 5 stations (Chassis & Powertrain and Trim were",[178,1380,941],{"class":940},[178,1382,1383],{"class":202},"\u002F\u002F previously listed as stations but had zero defect types assigned).",[178,1385,941],{"class":940},[178,1387,1388],{"class":202},"const DEFECT_TYPES = [",[178,1390,941],{"class":940},[178,1392,1393],{"class":202},"    {",[178,1395,941],{"class":940},[178,1397,1398],{"class":202},"        name: ",[178,1400,1030],{"class":940},[178,1402,1403],{"class":202},"Weld Crack",[178,1405,1030],{"class":940},[178,1407,1408],{"class":202},", category: ",[178,1410,1030],{"class":940},[178,1412,1413],{"class":202},"Body\u002FWeld",[178,1415,1030],{"class":940},[178,1417,1418],{"class":202},", station: ",[178,1420,1030],{"class":940},[178,1422,1423],{"class":202},"Body Shop",[178,1425,1030],{"class":940},[178,1427,1428],{"class":202},", weight: 0.24,",[178,1430,941],{"class":940},[178,1432,1433],{"class":202},"        causes: [",[178,1435,1030],{"class":940},[178,1437,1438],{"class":202},"Robot\u002FTooling Wear",[178,1440,1030],{"class":940},[178,1442,86],{"class":202},[178,1444,1030],{"class":940},[178,1446,1447],{"class":202},"Operator Error",[178,1449,1030],{"class":940},[178,1451,86],{"class":202},[178,1453,1030],{"class":940},[178,1455,1456],{"class":202},"Calibration Drift",[178,1458,1030],{"class":940},[178,1460,86],{"class":202},[178,1462,1030],{"class":940},[178,1464,1465],{"class":202},"Process Deviation",[178,1467,1030],{"class":940},[178,1469,366],{"class":202},[178,1471,941],{"class":940},[178,1473,1474],{"class":202},"        causeWeights: [0.40, 0.30, 0.20, 0.10],",[178,1476,941],{"class":940},[178,1478,1479],{"class":202},"        stageWeights: [0.05, 0.35, 0.50, 0.10]",[178,1481,941],{"class":940},[178,1483,1484],{"class":202},"    },",[178,1486,941],{"class":940},[178,1488,1393],{"class":202},[178,1490,941],{"class":940},[178,1492,1398],{"class":202},[178,1494,1030],{"class":940},[178,1496,1497],{"class":202},"Paint Defect",[178,1499,1030],{"class":940},[178,1501,1408],{"class":202},[178,1503,1030],{"class":940},[178,1505,1506],{"class":202},"Paint\u002FSurface",[178,1508,1030],{"class":940},[178,1510,1418],{"class":202},[178,1512,1030],{"class":940},[178,1514,1515],{"class":202},"Paint Shop",[178,1517,1030],{"class":940},[178,1519,1520],{"class":202},", weight: 0.19,",[178,1522,941],{"class":940},[178,1524,1433],{"class":202},[178,1526,1030],{"class":940},[178,1528,1447],{"class":202},[178,1530,1030],{"class":940},[178,1532,86],{"class":202},[178,1534,1030],{"class":940},[178,1536,1465],{"class":202},[178,1538,1030],{"class":940},[178,1540,86],{"class":202},[178,1542,1030],{"class":940},[178,1544,1545],{"class":202},"Environmental Factor",[178,1547,1030],{"class":940},[178,1549,86],{"class":202},[178,1551,1030],{"class":940},[178,1553,1438],{"class":202},[178,1555,1030],{"class":940},[178,1557,366],{"class":202},[178,1559,941],{"class":940},[178,1561,1562],{"class":202},"        causeWeights: [0.35, 0.30, 0.20, 0.15],",[178,1564,941],{"class":940},[178,1566,1567],{"class":202},"        stageWeights: [0.05, 0.25, 0.55, 0.15]",[178,1569,941],{"class":940},[178,1571,1484],{"class":202},[178,1573,941],{"class":940},[178,1575,1393],{"class":202},[178,1577,941],{"class":940},[178,1579,1398],{"class":202},[178,1581,1030],{"class":940},[178,1583,1584],{"class":202},"Panel Gap Deviation",[178,1586,1030],{"class":940},[178,1588,1408],{"class":202},[178,1590,1030],{"class":940},[178,1592,1593],{"class":202},"Dimensional",[178,1595,1030],{"class":940},[178,1597,1418],{"class":202},[178,1599,1030],{"class":940},[178,1601,1423],{"class":202},[178,1603,1030],{"class":940},[178,1605,1606],{"class":202},", weight: 0.13,",[178,1608,941],{"class":940},[178,1610,1433],{"class":202},[178,1612,1030],{"class":940},[178,1614,1456],{"class":202},[178,1616,1030],{"class":940},[178,1618,86],{"class":202},[178,1620,1030],{"class":940},[178,1622,1438],{"class":202},[178,1624,1030],{"class":940},[178,1626,86],{"class":202},[178,1628,1030],{"class":940},[178,1630,1465],{"class":202},[178,1632,1030],{"class":940},[178,1634,86],{"class":202},[178,1636,1030],{"class":940},[178,1638,1639],{"class":202},"Supplier Material Defect",[178,1641,1030],{"class":940},[178,1643,366],{"class":202},[178,1645,941],{"class":940},[178,1647,1474],{"class":202},[178,1649,941],{"class":940},[178,1651,1652],{"class":202},"        stageWeights: [0.25, 0.45, 0.28, 0.02]",[178,1654,941],{"class":940},[178,1656,1484],{"class":202},[178,1658,941],{"class":940},[178,1660,1393],{"class":202},[178,1662,941],{"class":940},[178,1664,1398],{"class":202},[178,1666,1030],{"class":940},[178,1668,1669],{"class":202},"Door Misalignment",[178,1671,1030],{"class":940},[178,1673,1408],{"class":202},[178,1675,1030],{"class":940},[178,1677,1678],{"class":202},"Assembly",[178,1680,1030],{"class":940},[178,1682,1418],{"class":202},[178,1684,1030],{"class":940},[178,1686,1687],{"class":202},"Final Assembly",[178,1689,1030],{"class":940},[178,1691,1692],{"class":202},", weight: 0.10,",[178,1694,941],{"class":940},[178,1696,1433],{"class":202},[178,1698,1030],{"class":940},[178,1700,1447],{"class":202},[178,1702,1030],{"class":940},[178,1704,86],{"class":202},[178,1706,1030],{"class":940},[178,1708,1465],{"class":202},[178,1710,1030],{"class":940},[178,1712,86],{"class":202},[178,1714,1030],{"class":940},[178,1716,1438],{"class":202},[178,1718,1030],{"class":940},[178,1720,366],{"class":202},[178,1722,941],{"class":940},[178,1724,1725],{"class":202},"        causeWeights: [0.35, 0.35, 0.30],",[178,1727,941],{"class":940},[178,1729,1730],{"class":202},"        stageWeights: [0.05, 0.35, 0.55, 0.05]",[178,1732,941],{"class":940},[178,1734,1484],{"class":202},[178,1736,941],{"class":940},[178,1738,1393],{"class":202},[178,1740,941],{"class":940},[178,1742,1398],{"class":202},[178,1744,1030],{"class":940},[178,1746,1747],{"class":202},"Paint Contamination",[178,1749,1030],{"class":940},[178,1751,1408],{"class":202},[178,1753,1030],{"class":940},[178,1755,1756],{"class":202},"Material",[178,1758,1030],{"class":940},[178,1760,1418],{"class":202},[178,1762,1030],{"class":940},[178,1764,1515],{"class":202},[178,1766,1030],{"class":940},[178,1768,1769],{"class":202},", weight: 0.09,",[178,1771,941],{"class":940},[178,1773,1433],{"class":202},[178,1775,1030],{"class":940},[178,1777,1639],{"class":202},[178,1779,1030],{"class":940},[178,1781,86],{"class":202},[178,1783,1030],{"class":940},[178,1785,1545],{"class":202},[178,1787,1030],{"class":940},[178,1789,86],{"class":202},[178,1791,1030],{"class":940},[178,1793,1465],{"class":202},[178,1795,1030],{"class":940},[178,1797,366],{"class":202},[178,1799,941],{"class":940},[178,1801,1802],{"class":202},"        causeWeights: [0.50, 0.30, 0.20],",[178,1804,941],{"class":940},[178,1806,1807],{"class":202},"        stageWeights: [0.40, 0.35, 0.20, 0.05]",[178,1809,941],{"class":940},[178,1811,1484],{"class":202},[178,1813,941],{"class":940},[178,1815,1393],{"class":202},[178,1817,941],{"class":940},[178,1819,1398],{"class":202},[178,1821,1030],{"class":940},[178,1823,1824],{"class":202},"Fluid Leak",[178,1826,1030],{"class":940},[178,1828,1408],{"class":202},[178,1830,1030],{"class":940},[178,1832,1833],{"class":202},"Powertrain",[178,1835,1030],{"class":940},[178,1837,1418],{"class":202},[178,1839,1030],{"class":940},[178,1841,1842],{"class":202},"Chassis & Powertrain",[178,1844,1030],{"class":940},[178,1846,1847],{"class":202},", weight: 0.08,",[178,1849,941],{"class":940},[178,1851,1433],{"class":202},[178,1853,1030],{"class":940},[178,1855,1438],{"class":202},[178,1857,1030],{"class":940},[178,1859,86],{"class":202},[178,1861,1030],{"class":940},[178,1863,1465],{"class":202},[178,1865,1030],{"class":940},[178,1867,86],{"class":202},[178,1869,1030],{"class":940},[178,1871,1639],{"class":202},[178,1873,1030],{"class":940},[178,1875,366],{"class":202},[178,1877,941],{"class":940},[178,1879,1880],{"class":202},"        causeWeights: [0.40, 0.35, 0.25],",[178,1882,941],{"class":940},[178,1884,1885],{"class":202},"        stageWeights: [0.10, 0.40, 0.40, 0.10]",[178,1887,941],{"class":940},[178,1889,1484],{"class":202},[178,1891,941],{"class":940},[178,1893,1393],{"class":202},[178,1895,941],{"class":940},[178,1897,1398],{"class":202},[178,1899,1030],{"class":940},[178,1901,1902],{"class":202},"Missing Fastener",[178,1904,1030],{"class":940},[178,1906,1408],{"class":202},[178,1908,1030],{"class":940},[178,1910,1678],{"class":202},[178,1912,1030],{"class":940},[178,1914,1418],{"class":202},[178,1916,1030],{"class":940},[178,1918,1687],{"class":202},[178,1920,1030],{"class":940},[178,1922,1923],{"class":202},", weight: 0.06,",[178,1925,941],{"class":940},[178,1927,1433],{"class":202},[178,1929,1030],{"class":940},[178,1931,1447],{"class":202},[178,1933,1030],{"class":940},[178,1935,86],{"class":202},[178,1937,1030],{"class":940},[178,1939,1465],{"class":202},[178,1941,1030],{"class":940},[178,1943,366],{"class":202},[178,1945,941],{"class":940},[178,1947,1948],{"class":202},"        causeWeights: [0.60, 0.40],",[178,1950,941],{"class":940},[178,1952,1953],{"class":202},"        stageWeights: [0.05, 0.30, 0.60, 0.05]",[178,1955,941],{"class":940},[178,1957,1484],{"class":202},[178,1959,941],{"class":940},[178,1961,1393],{"class":202},[178,1963,941],{"class":940},[178,1965,1398],{"class":202},[178,1967,1030],{"class":940},[178,1969,1970],{"class":202},"Interior Trim Defect",[178,1972,1030],{"class":940},[178,1974,1408],{"class":202},[178,1976,1030],{"class":940},[178,1978,1979],{"class":202},"Trim",[178,1981,1030],{"class":940},[178,1983,1418],{"class":202},[178,1985,1030],{"class":940},[178,1987,1979],{"class":202},[178,1989,1030],{"class":940},[178,1991,1992],{"class":202},", weight: 0.05,",[178,1994,941],{"class":940},[178,1996,1433],{"class":202},[178,1998,1030],{"class":940},[178,2000,1447],{"class":202},[178,2002,1030],{"class":940},[178,2004,86],{"class":202},[178,2006,1030],{"class":940},[178,2008,1639],{"class":202},[178,2010,1030],{"class":940},[178,2012,86],{"class":202},[178,2014,1030],{"class":940},[178,2016,1465],{"class":202},[178,2018,1030],{"class":940},[178,2020,366],{"class":202},[178,2022,941],{"class":940},[178,2024,2025],{"class":202},"        causeWeights: [0.45, 0.30, 0.25],",[178,2027,941],{"class":940},[178,2029,2030],{"class":202},"        stageWeights: [0.10, 0.30, 0.55, 0.05]",[178,2032,941],{"class":940},[178,2034,1484],{"class":202},[178,2036,941],{"class":940},[178,2038,1393],{"class":202},[178,2040,941],{"class":940},[178,2042,1398],{"class":202},[178,2044,1030],{"class":940},[178,2046,2047],{"class":202},"Transport Damage",[178,2049,1030],{"class":940},[178,2051,1408],{"class":202},[178,2053,1030],{"class":940},[178,2055,2056],{"class":202},"Logistics",[178,2058,1030],{"class":940},[178,2060,1418],{"class":202},[178,2062,1030],{"class":940},[178,2064,1687],{"class":202},[178,2066,1030],{"class":940},[178,2068,2069],{"class":202},", weight: 0.04,",[178,2071,941],{"class":940},[178,2073,1433],{"class":202},[178,2075,1030],{"class":940},[178,2077,1465],{"class":202},[178,2079,1030],{"class":940},[178,2081,86],{"class":202},[178,2083,1030],{"class":940},[178,2085,1447],{"class":202},[178,2087,1030],{"class":940},[178,2089,86],{"class":202},[178,2091,1030],{"class":940},[178,2093,1545],{"class":202},[178,2095,1030],{"class":940},[178,2097,366],{"class":202},[178,2099,941],{"class":940},[178,2101,1802],{"class":202},[178,2103,941],{"class":940},[178,2105,2106],{"class":202},"        stageWeights: [0.05, 0.15, 0.50, 0.30] \u002F\u002F often only found at dealer\u002Fyard, not on-line",[178,2108,941],{"class":940},[178,2110,1484],{"class":202},[178,2112,941],{"class":940},[178,2114,1393],{"class":202},[178,2116,941],{"class":940},[178,2118,2119],{"class":202},"        \u002F\u002F EV-EXCLUSIVE: only EV Trim vehicles physically have a high-voltage",[178,2121,941],{"class":940},[178,2123,2124],{"class":202},"        \u002F\u002F battery\u002Fcharging system, so this defect type is deterministically",[178,2126,941],{"class":940},[178,2128,2129],{"class":202},"        \u002F\u002F forced to EV Trim in generateOneDefect() below — not just skewed",[178,2131,941],{"class":940},[178,2133,2134],{"class":202},"        \u002F\u002F toward it. Rare fleet-wide, but gives the ",[178,2136,1030],{"class":940},[178,2138,2139],{"class":202},"EV teething defects",[178,2141,1160],{"class":940},[178,2143,2144],{"class":202},"        \u002F\u002F story an actual distinct failure mode instead of just a higher",[178,2146,941],{"class":940},[178,2148,2149],{"class":202},"        \u002F\u002F rate of the same generic defects.",[178,2151,941],{"class":940},[178,2153,1398],{"class":202},[178,2155,1030],{"class":940},[178,2157,2158],{"class":202},"HV Battery\u002FCharging Fault",[178,2160,1030],{"class":940},[178,2162,1408],{"class":202},[178,2164,1030],{"class":940},[178,2166,2167],{"class":202},"Electrical",[178,2169,1030],{"class":940},[178,2171,1418],{"class":202},[178,2173,1030],{"class":940},[178,2175,1842],{"class":202},[178,2177,1030],{"class":940},[178,2179,2180],{"class":202},", weight: 0.02,",[178,2182,941],{"class":940},[178,2184,1433],{"class":202},[178,2186,1030],{"class":940},[178,2188,1639],{"class":202},[178,2190,1030],{"class":940},[178,2192,86],{"class":202},[178,2194,1030],{"class":940},[178,2196,1465],{"class":202},[178,2198,1030],{"class":940},[178,2200,86],{"class":202},[178,2202,1030],{"class":940},[178,2204,1456],{"class":202},[178,2206,1030],{"class":940},[178,2208,366],{"class":202},[178,2210,941],{"class":940},[178,2212,2025],{"class":202},[178,2214,941],{"class":940},[178,2216,2217],{"class":202},"        stageWeights: [0.20, 0.30, 0.35, 0.15]",[178,2219,941],{"class":940},[178,2221,989],{"class":202},[178,2223,941],{"class":940},[178,2225,1265],{"class":202},[178,2227,941],{"class":940},[178,2229,2230],{"class":202},"const DEFECT_TYPE_WEIGHTS = DEFECT_TYPES.map(d => d.weight);",[178,2232,951],{"class":940},[178,2234,2235],{"class":202},"const STATIONS = [",[178,2237,1030],{"class":940},[178,2239,1423],{"class":202},[178,2241,1030],{"class":940},[178,2243,86],{"class":202},[178,2245,1030],{"class":940},[178,2247,1515],{"class":202},[178,2249,1030],{"class":940},[178,2251,86],{"class":202},[178,2253,1030],{"class":940},[178,2255,1842],{"class":202},[178,2257,1030],{"class":940},[178,2259,86],{"class":202},[178,2261,1030],{"class":940},[178,2263,1979],{"class":202},[178,2265,1030],{"class":940},[178,2267,86],{"class":202},[178,2269,1030],{"class":940},[178,2271,1687],{"class":202},[178,2273,1030],{"class":940},[178,2275,1265],{"class":202},[178,2277,951],{"class":940},[178,2279,2280],{"class":202},"\u002F\u002F ---- Severity: most defects are Minor ----------------------------",[178,2282,941],{"class":940},[178,2284,2285],{"class":202},"const SEVERITIES = [",[178,2287,1030],{"class":940},[178,2289,2290],{"class":202},"Critical",[178,2292,1030],{"class":940},[178,2294,86],{"class":202},[178,2296,1030],{"class":940},[178,2298,2299],{"class":202},"Major",[178,2301,1030],{"class":940},[178,2303,86],{"class":202},[178,2305,1030],{"class":940},[178,2307,2308],{"class":202},"Minor",[178,2310,1030],{"class":940},[178,2312,1265],{"class":202},[178,2314,941],{"class":940},[178,2316,2317],{"class":202},"const SEVERITY_WEIGHTS = [0.15, 0.35, 0.50];",[178,2319,951],{"class":940},[178,2321,2322],{"class":202},"\u002F\u002F ---- Detected stage: driven per-defect-type (see stageWeights above)",[178,2324,941],{"class":940},[178,2326,2327],{"class":202},"const STAGES = [",[178,2329,1030],{"class":940},[178,2331,2332],{"class":202},"Incoming",[178,2334,1030],{"class":940},[178,2336,86],{"class":202},[178,2338,1030],{"class":940},[178,2340,2341],{"class":202},"In-Process",[178,2343,1030],{"class":940},[178,2345,86],{"class":202},[178,2347,1030],{"class":940},[178,2349,2350],{"class":202},"Final QC",[178,2352,1030],{"class":940},[178,2354,86],{"class":202},[178,2356,1030],{"class":940},[178,2358,2359],{"class":202},"Field Return",[178,2361,1030],{"class":940},[178,2363,1265],{"class":202},[178,2365,951],{"class":940},[178,2367,2368],{"class":202},"\u002F\u002F ---- Disposition: correlated with severity, not independent -----",[178,2370,941],{"class":940},[178,2372,2373],{"class":202},"const DISPOSITION_BY_SEVERITY = {",[178,2375,941],{"class":940},[178,2377,2378],{"class":202},"    Critical: { items: [",[178,2380,1030],{"class":940},[178,2382,2383],{"class":202},"Scrap",[178,2385,1030],{"class":940},[178,2387,86],{"class":202},[178,2389,1030],{"class":940},[178,2391,2392],{"class":202},"Rework",[178,2394,1030],{"class":940},[178,2396,86],{"class":202},[178,2398,1030],{"class":940},[178,2400,2401],{"class":202},"Use-as-is",[178,2403,1030],{"class":940},[178,2405,2406],{"class":202},"], weights: [0.60, 0.35, 0.05] },",[178,2408,941],{"class":940},[178,2410,2411],{"class":202},"    Major: { items: [",[178,2413,1030],{"class":940},[178,2415,2383],{"class":202},[178,2417,1030],{"class":940},[178,2419,86],{"class":202},[178,2421,1030],{"class":940},[178,2423,2392],{"class":202},[178,2425,1030],{"class":940},[178,2427,86],{"class":202},[178,2429,1030],{"class":940},[178,2431,2401],{"class":202},[178,2433,1030],{"class":940},[178,2435,2436],{"class":202},"], weights: [0.25, 0.55, 0.20] },",[178,2438,941],{"class":940},[178,2440,2441],{"class":202},"    Minor: { items: [",[178,2443,1030],{"class":940},[178,2445,2383],{"class":202},[178,2447,1030],{"class":940},[178,2449,86],{"class":202},[178,2451,1030],{"class":940},[178,2453,2392],{"class":202},[178,2455,1030],{"class":940},[178,2457,86],{"class":202},[178,2459,1030],{"class":940},[178,2461,2401],{"class":202},[178,2463,1030],{"class":940},[178,2465,2466],{"class":202},"], weights: [0.05, 0.35, 0.60] }",[178,2468,941],{"class":940},[178,2470,2471],{"class":202},"};",[178,2473,951],{"class":940},[178,2475,2476],{"class":202},"\u002F\u002F ---- Cost: driven primarily by DISPOSITION, not just severity —",[178,2478,941],{"class":940},[178,2480,2481],{"class":202},"\u002F\u002F Scrap means full material loss, Rework is labor-only, Use-as-is is",[178,2483,941],{"class":940},[178,2485,2486],{"class":202},"\u002F\u002F near-zero (paperwork\u002Finspection). Severity still scales the range",[178,2488,941],{"class":940},[178,2490,2491],{"class":202},"\u002F\u002F within each disposition.",[178,2493,941],{"class":940},[178,2495,2496],{"class":202},"const COST_RANGES = {",[178,2498,941],{"class":940},[178,2500,2501],{"class":202},"    Scrap: { Critical: [800, 2000], Major: [400, 1000], Minor: [150, 400] },",[178,2503,941],{"class":940},[178,2505,2506],{"class":202},"    Rework: { Critical: [300, 800], Major: [150, 500], Minor: [50, 200] },",[178,2508,941],{"class":940},[178,2510,2511],{"class":940},"    \\\"",[178,2513,2401],{"class":202},[178,2515,1030],{"class":940},[178,2517,2518],{"class":202},": { Critical: [50, 150], Major: [20, 80], Minor: [5, 40] }",[178,2520,941],{"class":940},[178,2522,2471],{"class":202},[178,2524,951],{"class":940},[178,2526,2527],{"class":202},"\u002F\u002F ---- Delay likelihood: tied to ROOT CAUSE, not a flat rate — a",[178,2529,941],{"class":940},[178,2531,2532],{"class":202},"\u002F\u002F supplier reorder (Supplier Material Defect) or an infrastructure",[178,2534,941],{"class":940},[178,2536,2537],{"class":202},"\u002F\u002F fix (Environmental Factor) realistically takes far longer to close",[178,2539,941],{"class":940},[178,2541,2542],{"class":202},"\u002F\u002F out than an operator simply redoing the work.",[178,2544,941],{"class":940},[178,2546,2547],{"class":202},"const DELAY_PROB_BY_CAUSE = {",[178,2549,941],{"class":940},[178,2551,2511],{"class":940},[178,2553,1438],{"class":202},[178,2555,1030],{"class":940},[178,2557,2558],{"class":202},": 0.12,",[178,2560,941],{"class":940},[178,2562,2511],{"class":940},[178,2564,1447],{"class":202},[178,2566,1030],{"class":940},[178,2568,2569],{"class":202},": 0.05,",[178,2571,941],{"class":940},[178,2573,2511],{"class":940},[178,2575,1456],{"class":202},[178,2577,1030],{"class":940},[178,2579,2580],{"class":202},": 0.08,",[178,2582,941],{"class":940},[178,2584,2511],{"class":940},[178,2586,1465],{"class":202},[178,2588,1030],{"class":940},[178,2590,2591],{"class":202},": 0.07,",[178,2593,941],{"class":940},[178,2595,2511],{"class":940},[178,2597,1639],{"class":202},[178,2599,1030],{"class":940},[178,2601,2602],{"class":202},": 0.30,",[178,2604,941],{"class":940},[178,2606,2511],{"class":940},[178,2608,1545],{"class":202},[178,2610,1030],{"class":940},[178,2612,2613],{"class":202},": 0.15",[178,2615,941],{"class":940},[178,2617,2471],{"class":202},[178,2619,951],{"class":940},[178,2621,2622],{"class":202},"\u002F\u002F ---- Status: correlated with how OLD the defect is --------------",[178,2624,941],{"class":940},[178,2626,2627],{"class":202},"function pickStatusForAge(ageDays) {",[178,2629,941],{"class":940},[178,2631,2632],{"class":202},"    if (ageDays > 90) {",[178,2634,941],{"class":940},[178,2636,2637],{"class":202},"        return weightedPick(",[178,2639,941],{"class":940},[178,2641,2642],{"class":202},"            [",[178,2644,1030],{"class":940},[178,2646,2647],{"class":202},"Verified",[178,2649,1030],{"class":940},[178,2651,86],{"class":202},[178,2653,1030],{"class":940},[178,2655,2656],{"class":202},"Resolved",[178,2658,1030],{"class":940},[178,2660,86],{"class":202},[178,2662,1030],{"class":940},[178,2664,2665],{"class":202},"Corrective Action",[178,2667,1030],{"class":940},[178,2669,366],{"class":202},[178,2671,941],{"class":940},[178,2673,2674],{"class":202},"            [0.85, 0.10, 0.05]",[178,2676,941],{"class":940},[178,2678,2679],{"class":202},"        );",[178,2681,941],{"class":940},[178,2683,2684],{"class":202},"    } else if (ageDays > 30) {",[178,2686,941],{"class":940},[178,2688,2637],{"class":202},[178,2690,941],{"class":940},[178,2692,2642],{"class":202},[178,2694,1030],{"class":940},[178,2696,2647],{"class":202},[178,2698,1030],{"class":940},[178,2700,86],{"class":202},[178,2702,1030],{"class":940},[178,2704,2656],{"class":202},[178,2706,1030],{"class":940},[178,2708,86],{"class":202},[178,2710,1030],{"class":940},[178,2712,2665],{"class":202},[178,2714,1030],{"class":940},[178,2716,86],{"class":202},[178,2718,1030],{"class":940},[178,2720,2721],{"class":202},"RCA",[178,2723,1030],{"class":940},[178,2725,86],{"class":202},[178,2727,1030],{"class":940},[178,2729,2730],{"class":202},"Detected",[178,2732,1030],{"class":940},[178,2734,366],{"class":202},[178,2736,941],{"class":940},[178,2738,2739],{"class":202},"            [0.50, 0.25, 0.15, 0.07, 0.03]",[178,2741,941],{"class":940},[178,2743,2679],{"class":202},[178,2745,941],{"class":940},[178,2747,2748],{"class":202},"    } else if (ageDays > 7) {",[178,2750,941],{"class":940},[178,2752,2637],{"class":202},[178,2754,941],{"class":940},[178,2756,2642],{"class":202},[178,2758,1030],{"class":940},[178,2760,2665],{"class":202},[178,2762,1030],{"class":940},[178,2764,86],{"class":202},[178,2766,1030],{"class":940},[178,2768,2721],{"class":202},[178,2770,1030],{"class":940},[178,2772,86],{"class":202},[178,2774,1030],{"class":940},[178,2776,2656],{"class":202},[178,2778,1030],{"class":940},[178,2780,86],{"class":202},[178,2782,1030],{"class":940},[178,2784,2730],{"class":202},[178,2786,1030],{"class":940},[178,2788,86],{"class":202},[178,2790,1030],{"class":940},[178,2792,2647],{"class":202},[178,2794,1030],{"class":940},[178,2796,366],{"class":202},[178,2798,941],{"class":940},[178,2800,2801],{"class":202},"            [0.35, 0.30, 0.20, 0.10, 0.05]",[178,2803,941],{"class":940},[178,2805,2679],{"class":202},[178,2807,941],{"class":940},[178,2809,2810],{"class":202},"    } else {",[178,2812,941],{"class":940},[178,2814,2637],{"class":202},[178,2816,941],{"class":940},[178,2818,2642],{"class":202},[178,2820,1030],{"class":940},[178,2822,2730],{"class":202},[178,2824,1030],{"class":940},[178,2826,86],{"class":202},[178,2828,1030],{"class":940},[178,2830,2721],{"class":202},[178,2832,1030],{"class":940},[178,2834,86],{"class":202},[178,2836,1030],{"class":940},[178,2838,2665],{"class":202},[178,2840,1030],{"class":940},[178,2842,86],{"class":202},[178,2844,1030],{"class":940},[178,2846,2656],{"class":202},[178,2848,1030],{"class":940},[178,2850,366],{"class":202},[178,2852,941],{"class":940},[178,2854,2855],{"class":202},"            [0.50, 0.30, 0.15, 0.05]",[178,2857,941],{"class":940},[178,2859,2679],{"class":202},[178,2861,941],{"class":940},[178,2863,989],{"class":202},[178,2865,941],{"class":940},[178,2867,999],{"class":202},[178,2869,951],{"class":940},[178,2871,2872],{"class":202},"\u002F\u002F ---- Day-of-week + ",[178,2874,1030],{"class":940},[178,2876,2877],{"class":202},"bad batch",[178,2879,1030],{"class":940},[178,2881,2882],{"class":202}," seasonal bump ---------------------",[178,2884,941],{"class":940},[178,2886,2887],{"class":202},"function dayOfWeekMultiplier(date) {",[178,2889,941],{"class":940},[178,2891,2892],{"class":202},"    const day = date.getDay();",[178,2894,941],{"class":940},[178,2896,2897],{"class":202},"    if (day === 1) return 1.3;",[178,2899,941],{"class":940},[178,2901,2902],{"class":202},"    if (day === 0 || day === 6) return 1.15;",[178,2904,941],{"class":940},[178,2906,2907],{"class":202},"    return 1.0;",[178,2909,941],{"class":940},[178,2911,999],{"class":202},[178,2913,941],{"class":940},[178,2915,2916],{"class":202},"const BAD_BATCH_AGE_MIN = 95;",[178,2918,941],{"class":940},[178,2920,2921],{"class":202},"const BAD_BATCH_AGE_MAX = 110;",[178,2923,951],{"class":940},[178,2925,2926],{"class":202},"\u002F\u002F ---- Core generator: builds ONE defect record --------------------",[178,2928,941],{"class":940},[178,2930,2931],{"class":202},"function generateOneDefect(forcedDate, ageDays) {",[178,2933,941],{"class":940},[178,2935,2936],{"class":202},"    if (ageDays === undefined || ageDays === null) ageDays = 0;",[178,2938,951],{"class":940},[178,2940,2941],{"class":202},"    let defectTypeObj;",[178,2943,941],{"class":940},[178,2945,2946],{"class":202},"    if (ageDays >= BAD_BATCH_AGE_MIN && ageDays \u003C= BAD_BATCH_AGE_MAX && Math.random() \u003C 0.45) {",[178,2948,941],{"class":940},[178,2950,2951],{"class":202},"        \u002F\u002F Simulated bad batch of primer\u002Fpaint material from a supplier",[178,2953,941],{"class":940},[178,2955,2956],{"class":202},"        defectTypeObj = DEFECT_TYPES.find(d => d.name === ",[178,2958,1030],{"class":940},[178,2960,1747],{"class":202},[178,2962,1030],{"class":940},[178,2964,1198],{"class":202},[178,2966,941],{"class":940},[178,2968,2810],{"class":202},[178,2970,941],{"class":940},[178,2972,2973],{"class":202},"        defectTypeObj = weightedPick(DEFECT_TYPES, DEFECT_TYPE_WEIGHTS);",[178,2975,941],{"class":940},[178,2977,989],{"class":202},[178,2979,951],{"class":940},[178,2981,2982],{"class":202},"    const station = Math.random() \u003C 0.8",[178,2984,941],{"class":940},[178,2986,2987],{"class":202},"        ? defectTypeObj.station",[178,2989,941],{"class":940},[178,2991,2992],{"class":202},"        : STATIONS[Math.floor(Math.random() * STATIONS.length)];",[178,2994,951],{"class":940},[178,2996,2997],{"class":202},"    const rootCause = weightedPick(defectTypeObj.causes, defectTypeObj.causeWeights);",[178,2999,941],{"class":940},[178,3001,3002],{"class":202},"    const severity = weightedPick(SEVERITIES, SEVERITY_WEIGHTS);",[178,3004,951],{"class":940},[178,3006,3007],{"class":202},"    const dispoTable = DISPOSITION_BY_SEVERITY[severity];",[178,3009,941],{"class":940},[178,3011,3012],{"class":202},"    const disposition = weightedPick(dispoTable.items, dispoTable.weights);",[178,3014,951],{"class":940},[178,3016,3017],{"class":202},"    const status = pickStatusForAge(ageDays);",[178,3019,951],{"class":940},[178,3021,3022],{"class":202},"    \u002F\u002F Detected stage comes from THIS defect type's own distribution",[178,3024,941],{"class":940},[178,3026,3027],{"class":202},"    \u002F\u002F (e.g. Paint Contamination is caught early via incoming material",[178,3029,941],{"class":940},[178,3031,3032],{"class":202},"    \u002F\u002F inspection; Transport Damage is often only found at the dealer)",[178,3034,941],{"class":940},[178,3036,3037],{"class":202},"    const stage = weightedPick(STAGES, defectTypeObj.stageWeights);",[178,3039,941],{"class":940},[178,3041,3042],{"class":202},"    const stageCostMultiplier = stage === ",[178,3044,1030],{"class":940},[178,3046,2359],{"class":202},[178,3048,1030],{"class":940},[178,3050,3051],{"class":202}," ? 2.2 : 1.0;",[178,3053,951],{"class":940},[178,3055,3056],{"class":202},"    \u002F\u002F Cost driven by disposition + severity (see COST_RANGES above),",[178,3058,941],{"class":940},[178,3060,3061],{"class":202},"    \u002F\u002F not just severity alone — a Scrapped part costs far more than",[178,3063,941],{"class":940},[178,3065,3066],{"class":202},"    \u002F\u002F a Use-as-is one, even at the same severity.",[178,3068,941],{"class":940},[178,3070,3071],{"class":202},"    const [costMin, costMax] = COST_RANGES[disposition][severity];",[178,3073,941],{"class":940},[178,3075,3076],{"class":202},"    const cost = (costMin + Math.random() * (costMax - costMin)) * stageCostMultiplier;",[178,3078,951],{"class":940},[178,3080,3081],{"class":202},"    const resolutionHoursBase = severity === ",[178,3083,1030],{"class":940},[178,3085,2290],{"class":202},[178,3087,1030],{"class":940},[178,3089,3090],{"class":202}," ? 2 + Math.random() * 10",[178,3092,941],{"class":940},[178,3094,3095],{"class":202},"        : severity === ",[178,3097,1030],{"class":940},[178,3099,2299],{"class":202},[178,3101,1030],{"class":940},[178,3103,3104],{"class":202}," ? 6 + Math.random() * 24",[178,3106,941],{"class":940},[178,3108,3109],{"class":202},"            : 12 + Math.random() * 48;",[178,3111,951],{"class":940},[178,3113,3114],{"class":202},"    \u002F\u002F Delay probability comes from the ROOT CAUSE (see",[178,3116,941],{"class":940},[178,3118,3119],{"class":202},"    \u002F\u002F DELAY_PROB_BY_CAUSE above) instead of a flat rate for everyone —",[178,3121,941],{"class":940},[178,3123,3124],{"class":202},"    \u002F\u002F e.g. waiting on a supplier reorder takes far longer than an",[178,3126,941],{"class":940},[178,3128,3129],{"class":202},"    \u002F\u002F operator simply redoing the work.",[178,3131,941],{"class":940},[178,3133,3134],{"class":202},"    const delayProb = DELAY_PROB_BY_CAUSE[rootCause] ?? 0.10;",[178,3136,941],{"class":940},[178,3138,3139],{"class":202},"    const isDelayed = Math.random() \u003C delayProb;",[178,3141,941],{"class":940},[178,3143,3144],{"class":202},"    const resolutionHours = isDelayed",[178,3146,941],{"class":940},[178,3148,3149],{"class":202},"        ? resolutionHoursBase * (3 + Math.random() * 3)",[178,3151,941],{"class":940},[178,3153,3154],{"class":202},"        : resolutionHoursBase;",[178,3156,951],{"class":940},[178,3158,3159],{"class":202},"    \u002F\u002F Trim\u002FSKU: HV Battery\u002FCharging Fault is EV-EXCLUSIVE — only EV Trim",[178,3161,941],{"class":940},[178,3163,3164],{"class":202},"    \u002F\u002F vehicles physically have a high-voltage battery\u002Fcharging system,",[178,3166,941],{"class":940},[178,3168,3169],{"class":202},"    \u002F\u002F so this is deterministic, not just weighted probability.",[178,3171,941],{"class":940},[178,3173,3174],{"class":202},"    const sku = defectTypeObj.name === ",[178,3176,1030],{"class":940},[178,3178,2158],{"class":202},[178,3180,1160],{"class":940},[178,3182,3183],{"class":202},"        ? ",[178,3185,1030],{"class":940},[178,3187,1354],{"class":202},[178,3189,1160],{"class":940},[178,3191,3192],{"class":202},"        : weightedPick(SKUS, SKU_WEIGHTS);",[178,3194,951],{"class":940},[178,3196,3197],{"class":202},"    return {",[178,3199,941],{"class":940},[178,3201,3202],{"class":202},"        defect_id: nextDefectId(),",[178,3204,941],{"class":940},[178,3206,3207],{"class":202},"        date: forcedDate,",[178,3209,941],{"class":940},[178,3211,3212],{"class":202},"        line: weightedPick(LINES, LINE_WEIGHTS),",[178,3214,941],{"class":940},[178,3216,3217],{"class":202},"        station: station,",[178,3219,941],{"class":940},[178,3221,3222],{"class":202},"        shift: weightedPick(SHIFTS, SHIFT_WEIGHTS),",[178,3224,941],{"class":940},[178,3226,3227],{"class":202},"        sku: sku,",[178,3229,941],{"class":940},[178,3231,3232],{"class":202},"        defect_type: defectTypeObj.name,",[178,3234,941],{"class":940},[178,3236,3237],{"class":202},"        defect_category: defectTypeObj.category,",[178,3239,941],{"class":940},[178,3241,3242],{"class":202},"        severity: severity,",[178,3244,941],{"class":940},[178,3246,3247],{"class":202},"        detected_stage: stage,",[178,3249,941],{"class":940},[178,3251,3252],{"class":202},"        root_cause: rootCause,",[178,3254,941],{"class":940},[178,3256,3257],{"class":202},"        disposition: disposition,",[178,3259,941],{"class":940},[178,3261,3262],{"class":202},"        status: status,",[178,3264,941],{"class":940},[178,3266,3267],{"class":202},"        cost_impact: Math.round(cost * 100) \u002F 100,",[178,3269,941],{"class":940},[178,3271,3272],{"class":202},"        resolution_hours: Math.round(resolutionHours * 10) \u002F 10",[178,3274,941],{"class":940},[178,3276,3277],{"class":202},"    };",[178,3279,941],{"class":940},[178,3281,999],{"class":202},[178,3283,951],{"class":940},[178,3285,937],{"class":202},[178,3287,941],{"class":940},[178,3289,3290],{"class":202},"\u002F\u002F FUNCTION NODE 1: HISTORICAL SEED (v2 — realistic correlations)",[178,3292,941],{"class":940},[178,3294,3295],{"class":202},"\u002F\u002F Wire: [Inject: manual]",[178,3297,941],{"class":940},[178,3299,3300],{"class":202},"\u002F\u002F        -> [THIS Function node]",[178,3302,941],{"class":940},[178,3304,3305],{"class":202},"\u002F\u002F        -> [postgresql\u002FFlowFuse Tables node: bulk UNNEST INSERT]",[178,3307,941],{"class":940},[178,3309,937],{"class":202},[178,3311,951],{"class":940},[178,3313,3314],{"class":202},"const DAYS_BACK = 180;          \u002F\u002F ~6 months of history",[178,3316,941],{"class":940},[178,3318,3319],{"class":202},"const RECORDS_PER_DAY_AVG = 7;  \u002F\u002F baseline volume (~1260 records before multipliers)",[178,3321,951],{"class":940},[178,3323,3324],{"class":202},"const records = [];",[178,3326,941],{"class":940},[178,3328,3329],{"class":202},"const today = new Date();",[178,3331,951],{"class":940},[178,3333,3334],{"class":202},"for (let ageDays = DAYS_BACK; ageDays >= 0; ageDays--) {",[178,3336,941],{"class":940},[178,3338,3339],{"class":202},"    const day = new Date(today);",[178,3341,941],{"class":940},[178,3343,3344],{"class":202},"    day.setDate(day.getDate() - ageDays);",[178,3346,941],{"class":940},[178,3348,3349],{"class":202},"    const dateStr = day.toISOString().slice(0, 10);",[178,3351,951],{"class":940},[178,3353,3354],{"class":202},"    const dowMultiplier = dayOfWeekMultiplier(day);",[178,3356,941],{"class":940},[178,3358,3359],{"class":202},"    const countToday = Math.max(0, Math.round(",[178,3361,941],{"class":940},[178,3363,3364],{"class":202},"        (RECORDS_PER_DAY_AVG + (Math.random() - 0.5) * 4) * dowMultiplier",[178,3366,941],{"class":940},[178,3368,3369],{"class":202},"    ));",[178,3371,951],{"class":940},[178,3373,3374],{"class":202},"    for (let i = 0; i \u003C countToday; i++) {",[178,3376,941],{"class":940},[178,3378,3379],{"class":202},"        records.push(generateOneDefect(dateStr, ageDays));",[178,3381,941],{"class":940},[178,3383,989],{"class":202},[178,3385,941],{"class":940},[178,3387,999],{"class":202},[178,3389,951],{"class":940},[178,3391,3392],{"class":202},"node.log(`Generated ${records.length} historical defect records (with realistic skew).`);",[178,3394,951],{"class":940},[178,3396,3397],{"class":202},"msg.params = recordsToColumnParams(records); \u002F\u002F FlowFuse Tables node reads params from msg.params",[178,3399,941],{"class":940},[178,3401,3402],{"class":202},"return msg;",[178,3404,188],{"class":184},[178,3406,208],{"class":184},[178,3408,188],{"class":184},[178,3410,3411],{"class":191},"outputs",[178,3413,188],{"class":184},[178,3415,197],{"class":184},[178,3417,3418],{"class":378},"1",[178,3420,208],{"class":184},[178,3422,188],{"class":184},[178,3424,3425],{"class":191},"timeout",[178,3427,188],{"class":184},[178,3429,197],{"class":184},[178,3431,1193],{"class":378},[178,3433,208],{"class":184},[178,3435,188],{"class":184},[178,3437,3438],{"class":191},"noerr",[178,3440,188],{"class":184},[178,3442,197],{"class":184},[178,3444,1193],{"class":378},[178,3446,208],{"class":184},[178,3448,188],{"class":184},[178,3450,3451],{"class":191},"initialize",[178,3453,188],{"class":184},[178,3455,197],{"class":184},[178,3457,593],{"class":184},[178,3459,208],{"class":184},[178,3461,188],{"class":184},[178,3463,3464],{"class":191},"finalize",[178,3466,188],{"class":184},[178,3468,197],{"class":184},[178,3470,593],{"class":184},[178,3472,208],{"class":184},[178,3474,188],{"class":184},[178,3476,3477],{"class":191},"libs",[178,3479,188],{"class":184},[178,3481,736],{"class":184},[178,3483,188],{"class":184},[178,3485,371],{"class":191},[178,3487,188],{"class":184},[178,3489,197],{"class":184},[178,3491,3492],{"class":378},"340",[178,3494,208],{"class":184},[178,3496,188],{"class":184},[178,3498,386],{"class":191},[178,3500,188],{"class":184},[178,3502,197],{"class":184},[178,3504,637],{"class":378},[178,3506,208],{"class":184},[178,3508,188],{"class":184},[178,3510,644],{"class":191},[178,3512,188],{"class":184},[178,3514,832],{"class":184},[178,3516,188],{"class":184},[178,3518,352],{"class":202},[178,3520,188],{"class":184},[178,3522,841],{"class":184},[178,3524,188],{"class":184},[178,3526,192],{"class":191},[178,3528,188],{"class":184},[178,3530,197],{"class":184},[178,3532,188],{"class":184},[178,3534,325],{"class":202},[178,3536,188],{"class":184},[178,3538,208],{"class":184},[178,3540,188],{"class":184},[178,3542,213],{"class":191},[178,3544,188],{"class":184},[178,3546,197],{"class":184},[178,3548,188],{"class":184},[178,3550,678],{"class":202},[178,3552,188],{"class":184},[178,3554,208],{"class":184},[178,3556,188],{"class":184},[178,3558,231],{"class":191},[178,3560,188],{"class":184},[178,3562,197],{"class":184},[178,3564,188],{"class":184},[178,3566,240],{"class":202},[178,3568,188],{"class":184},[178,3570,208],{"class":184},[178,3572,188],{"class":184},[178,3574,478],{"class":191},[178,3576,188],{"class":184},[178,3578,197],{"class":184},[178,3580,188],{"class":184},[178,3582,203],{"class":202},[178,3584,188],{"class":184},[178,3586,208],{"class":184},[178,3588,188],{"class":184},[178,3590,249],{"class":191},[178,3592,188],{"class":184},[178,3594,197],{"class":184},[178,3596,593],{"class":184},[178,3598,208],{"class":184},[178,3600,188],{"class":184},[178,3602,731],{"class":191},[178,3604,188],{"class":184},[178,3606,736],{"class":184},[178,3608,188],{"class":184},[178,3610,741],{"class":191},[178,3612,188],{"class":184},[178,3614,197],{"class":184},[178,3616,188],{"class":184},[178,3618,3619],{"class":202},"5",[178,3621,188],{"class":184},[178,3623,208],{"class":184},[178,3625,188],{"class":184},[178,3627,754],{"class":191},[178,3629,188],{"class":184},[178,3631,197],{"class":184},[178,3633,593],{"class":184},[178,3635,208],{"class":184},[178,3637,188],{"class":184},[178,3639,767],{"class":191},[178,3641,188],{"class":184},[178,3643,536],{"class":184},[178,3645,188],{"class":184},[178,3647,776],{"class":191},[178,3649,188],{"class":184},[178,3651,197],{"class":184},[178,3653,783],{"class":378},[178,3655,208],{"class":184},[178,3657,188],{"class":184},[178,3659,790],{"class":191},[178,3661,188],{"class":184},[178,3663,197],{"class":184},[178,3665,593],{"class":184},[178,3667,208],{"class":184},[178,3669,188],{"class":184},[178,3671,371],{"class":191},[178,3673,188],{"class":184},[178,3675,197],{"class":184},[178,3677,809],{"class":378},[178,3679,208],{"class":184},[178,3681,188],{"class":184},[178,3683,386],{"class":191},[178,3685,188],{"class":184},[178,3687,197],{"class":184},[178,3689,3690],{"class":378},"320",[178,3692,208],{"class":184},[178,3694,188],{"class":184},[178,3696,644],{"class":191},[178,3698,188],{"class":184},[178,3700,832],{"class":184},[178,3702,188],{"class":184},[178,3704,334],{"class":202},[178,3706,188],{"class":184},[178,3708,841],{"class":184},[178,3710,188],{"class":184},[178,3712,192],{"class":191},[178,3714,188],{"class":184},[178,3716,197],{"class":184},[178,3718,188],{"class":184},[178,3720,334],{"class":202},[178,3722,188],{"class":184},[178,3724,208],{"class":184},[178,3726,188],{"class":184},[178,3728,213],{"class":191},[178,3730,188],{"class":184},[178,3732,197],{"class":184},[178,3734,188],{"class":184},[178,3736,870],{"class":202},[178,3738,188],{"class":184},[178,3740,208],{"class":184},[178,3742,188],{"class":184},[178,3744,231],{"class":191},[178,3746,188],{"class":184},[178,3748,197],{"class":184},[178,3750,188],{"class":184},[178,3752,240],{"class":202},[178,3754,188],{"class":184},[178,3756,208],{"class":184},[178,3758,188],{"class":184},[178,3760,478],{"class":191},[178,3762,188],{"class":184},[178,3764,197],{"class":184},[178,3766,188],{"class":184},[178,3768,203],{"class":202},[178,3770,188],{"class":184},[178,3772,208],{"class":184},[178,3774,188],{"class":184},[178,3776,249],{"class":191},[178,3778,188],{"class":184},[178,3780,197],{"class":184},[178,3782,188],{"class":184},[178,3784,3785],{"class":202},"Live Feed",[178,3787,188],{"class":184},[178,3789,208],{"class":184},[178,3791,188],{"class":184},[178,3793,928],{"class":191},[178,3795,188],{"class":184},[178,3797,197],{"class":184},[178,3799,188],{"class":184},[178,3801,937],{"class":202},[178,3803,941],{"class":940},[178,3805,944],{"class":202},[178,3807,941],{"class":940},[178,3809,937],{"class":202},[178,3811,951],{"class":940},[178,3813,954],{"class":202},[178,3815,941],{"class":940},[178,3817,959],{"class":202},[178,3819,941],{"class":940},[178,3821,964],{"class":202},[178,3823,941],{"class":940},[178,3825,969],{"class":202},[178,3827,941],{"class":940},[178,3829,974],{"class":202},[178,3831,941],{"class":940},[178,3833,979],{"class":202},[178,3835,941],{"class":940},[178,3837,984],{"class":202},[178,3839,941],{"class":940},[178,3841,989],{"class":202},[178,3843,941],{"class":940},[178,3845,994],{"class":202},[178,3847,941],{"class":940},[178,3849,999],{"class":202},[178,3851,951],{"class":940},[178,3853,3854],{"class":202},"\u002F\u002F ---- Convert a record object into the flat params array Postgres",[178,3856,941],{"class":940},[178,3858,3859],{"class":202},"\u002F\u002F node needs, in the exact column order of the INSERT query ------",[178,3861,941],{"class":940},[178,3863,3864],{"class":202},"function recordToParams(r) {",[178,3866,941],{"class":940},[178,3868,3869],{"class":202},"    return [",[178,3871,941],{"class":940},[178,3873,3874],{"class":202},"        r.defect_id, r.date, r.line, r.station, r.shift, r.sku,",[178,3876,941],{"class":940},[178,3878,3879],{"class":202},"        r.defect_type, r.defect_category, r.severity, r.detected_stage,",[178,3881,941],{"class":940},[178,3883,3884],{"class":202},"        r.root_cause, r.disposition, r.status, r.cost_impact, r.resolution_hours",[178,3886,941],{"class":940},[178,3888,1163],{"class":202},[178,3890,941],{"class":940},[178,3892,999],{"class":202},[178,3894,1175],{"class":940},[178,3896,1178],{"class":202},[178,3898,941],{"class":940},[178,3900,1183],{"class":202},[178,3902,941],{"class":940},[178,3904,1188],{"class":202},[178,3906,1030],{"class":940},[178,3908,1193],{"class":202},[178,3910,1030],{"class":940},[178,3912,1198],{"class":202},[178,3914,941],{"class":940},[178,3916,1203],{"class":202},[178,3918,1030],{"class":940},[178,3920,1208],{"class":202},[178,3922,1030],{"class":940},[178,3924,1213],{"class":202},[178,3926,1030],{"class":940},[178,3928,1218],{"class":202},[178,3930,1030],{"class":940},[178,3932,1223],{"class":202},[178,3934,941],{"class":940},[178,3936,999],{"class":202},[178,3938,951],{"class":940},[178,3940,1232],{"class":202},[178,3942,941],{"class":940},[178,3944,3945],{"class":202},"const LINES         = [",[178,3947,1030],{"class":940},[178,3949,1242],{"class":202},[178,3951,1030],{"class":940},[178,3953,86],{"class":202},[178,3955,1030],{"class":940},[178,3957,1251],{"class":202},[178,3959,1030],{"class":940},[178,3961,86],{"class":202},[178,3963,1030],{"class":940},[178,3965,1260],{"class":202},[178,3967,1030],{"class":940},[178,3969,1265],{"class":202},[178,3971,941],{"class":940},[178,3973,3974],{"class":202},"const LINE_WEIGHTS   = [0.30,          0.45,       0.25];   \u002F\u002F SUV Line skewed higher",[178,3976,951],{"class":940},[178,3978,1275],{"class":202},[178,3980,941],{"class":940},[178,3982,3983],{"class":202},"const SHIFTS         = [",[178,3985,1030],{"class":940},[178,3987,1285],{"class":202},[178,3989,1030],{"class":940},[178,3991,86],{"class":202},[178,3993,1030],{"class":940},[178,3995,1294],{"class":202},[178,3997,1030],{"class":940},[178,3999,86],{"class":202},[178,4001,1030],{"class":940},[178,4003,1303],{"class":202},[178,4005,1030],{"class":940},[178,4007,1265],{"class":202},[178,4009,941],{"class":940},[178,4011,4012],{"class":202},"const SHIFT_WEIGHTS  = [0.30,       0.25,      0.45];",[178,4014,951],{"class":940},[178,4016,1317],{"class":202},[178,4018,941],{"class":940},[178,4020,4021],{"class":202},"const SKUS           = [",[178,4023,1030],{"class":940},[178,4025,1327],{"class":202},[178,4027,1030],{"class":940},[178,4029,86],{"class":202},[178,4031,1030],{"class":940},[178,4033,1336],{"class":202},[178,4035,1030],{"class":940},[178,4037,86],{"class":202},[178,4039,1030],{"class":940},[178,4041,1345],{"class":202},[178,4043,1030],{"class":940},[178,4045,86],{"class":202},[178,4047,1030],{"class":940},[178,4049,1354],{"class":202},[178,4051,1030],{"class":940},[178,4053,1265],{"class":202},[178,4055,941],{"class":940},[178,4057,4058],{"class":202},"const SKU_WEIGHTS    = [0.20,          0.20,          0.25,           0.35]; \u002F\u002F EV = newest, higher defect rate",[178,4060,951],{"class":940},[178,4062,1368],{"class":202},[178,4064,941],{"class":940},[178,4066,1373],{"class":202},[178,4068,941],{"class":940},[178,4070,1378],{"class":202},[178,4072,941],{"class":940},[178,4074,1383],{"class":202},[178,4076,941],{"class":940},[178,4078,1388],{"class":202},[178,4080,941],{"class":940},[178,4082,1393],{"class":202},[178,4084,941],{"class":940},[178,4086,1398],{"class":202},[178,4088,1030],{"class":940},[178,4090,1403],{"class":202},[178,4092,1030],{"class":940},[178,4094,1408],{"class":202},[178,4096,1030],{"class":940},[178,4098,1413],{"class":202},[178,4100,1030],{"class":940},[178,4102,1418],{"class":202},[178,4104,1030],{"class":940},[178,4106,1423],{"class":202},[178,4108,1030],{"class":940},[178,4110,1428],{"class":202},[178,4112,941],{"class":940},[178,4114,1433],{"class":202},[178,4116,1030],{"class":940},[178,4118,1438],{"class":202},[178,4120,1030],{"class":940},[178,4122,86],{"class":202},[178,4124,1030],{"class":940},[178,4126,1447],{"class":202},[178,4128,1030],{"class":940},[178,4130,86],{"class":202},[178,4132,1030],{"class":940},[178,4134,1456],{"class":202},[178,4136,1030],{"class":940},[178,4138,86],{"class":202},[178,4140,1030],{"class":940},[178,4142,1465],{"class":202},[178,4144,1030],{"class":940},[178,4146,366],{"class":202},[178,4148,941],{"class":940},[178,4150,1474],{"class":202},[178,4152,941],{"class":940},[178,4154,1479],{"class":202},[178,4156,941],{"class":940},[178,4158,1484],{"class":202},[178,4160,941],{"class":940},[178,4162,1393],{"class":202},[178,4164,941],{"class":940},[178,4166,1398],{"class":202},[178,4168,1030],{"class":940},[178,4170,1497],{"class":202},[178,4172,1030],{"class":940},[178,4174,1408],{"class":202},[178,4176,1030],{"class":940},[178,4178,1506],{"class":202},[178,4180,1030],{"class":940},[178,4182,1418],{"class":202},[178,4184,1030],{"class":940},[178,4186,1515],{"class":202},[178,4188,1030],{"class":940},[178,4190,1520],{"class":202},[178,4192,941],{"class":940},[178,4194,1433],{"class":202},[178,4196,1030],{"class":940},[178,4198,1447],{"class":202},[178,4200,1030],{"class":940},[178,4202,86],{"class":202},[178,4204,1030],{"class":940},[178,4206,1465],{"class":202},[178,4208,1030],{"class":940},[178,4210,86],{"class":202},[178,4212,1030],{"class":940},[178,4214,1545],{"class":202},[178,4216,1030],{"class":940},[178,4218,86],{"class":202},[178,4220,1030],{"class":940},[178,4222,1438],{"class":202},[178,4224,1030],{"class":940},[178,4226,366],{"class":202},[178,4228,941],{"class":940},[178,4230,1562],{"class":202},[178,4232,941],{"class":940},[178,4234,1567],{"class":202},[178,4236,941],{"class":940},[178,4238,1484],{"class":202},[178,4240,941],{"class":940},[178,4242,1393],{"class":202},[178,4244,941],{"class":940},[178,4246,1398],{"class":202},[178,4248,1030],{"class":940},[178,4250,1584],{"class":202},[178,4252,1030],{"class":940},[178,4254,1408],{"class":202},[178,4256,1030],{"class":940},[178,4258,1593],{"class":202},[178,4260,1030],{"class":940},[178,4262,1418],{"class":202},[178,4264,1030],{"class":940},[178,4266,1423],{"class":202},[178,4268,1030],{"class":940},[178,4270,1606],{"class":202},[178,4272,941],{"class":940},[178,4274,1433],{"class":202},[178,4276,1030],{"class":940},[178,4278,1456],{"class":202},[178,4280,1030],{"class":940},[178,4282,86],{"class":202},[178,4284,1030],{"class":940},[178,4286,1438],{"class":202},[178,4288,1030],{"class":940},[178,4290,86],{"class":202},[178,4292,1030],{"class":940},[178,4294,1465],{"class":202},[178,4296,1030],{"class":940},[178,4298,86],{"class":202},[178,4300,1030],{"class":940},[178,4302,1639],{"class":202},[178,4304,1030],{"class":940},[178,4306,366],{"class":202},[178,4308,941],{"class":940},[178,4310,1474],{"class":202},[178,4312,941],{"class":940},[178,4314,1652],{"class":202},[178,4316,941],{"class":940},[178,4318,1484],{"class":202},[178,4320,941],{"class":940},[178,4322,1393],{"class":202},[178,4324,941],{"class":940},[178,4326,1398],{"class":202},[178,4328,1030],{"class":940},[178,4330,1669],{"class":202},[178,4332,1030],{"class":940},[178,4334,1408],{"class":202},[178,4336,1030],{"class":940},[178,4338,1678],{"class":202},[178,4340,1030],{"class":940},[178,4342,1418],{"class":202},[178,4344,1030],{"class":940},[178,4346,1687],{"class":202},[178,4348,1030],{"class":940},[178,4350,1692],{"class":202},[178,4352,941],{"class":940},[178,4354,1433],{"class":202},[178,4356,1030],{"class":940},[178,4358,1447],{"class":202},[178,4360,1030],{"class":940},[178,4362,86],{"class":202},[178,4364,1030],{"class":940},[178,4366,1465],{"class":202},[178,4368,1030],{"class":940},[178,4370,86],{"class":202},[178,4372,1030],{"class":940},[178,4374,1438],{"class":202},[178,4376,1030],{"class":940},[178,4378,366],{"class":202},[178,4380,941],{"class":940},[178,4382,1725],{"class":202},[178,4384,941],{"class":940},[178,4386,1730],{"class":202},[178,4388,941],{"class":940},[178,4390,1484],{"class":202},[178,4392,941],{"class":940},[178,4394,1393],{"class":202},[178,4396,941],{"class":940},[178,4398,1398],{"class":202},[178,4400,1030],{"class":940},[178,4402,1747],{"class":202},[178,4404,1030],{"class":940},[178,4406,1408],{"class":202},[178,4408,1030],{"class":940},[178,4410,1756],{"class":202},[178,4412,1030],{"class":940},[178,4414,1418],{"class":202},[178,4416,1030],{"class":940},[178,4418,1515],{"class":202},[178,4420,1030],{"class":940},[178,4422,1769],{"class":202},[178,4424,941],{"class":940},[178,4426,1433],{"class":202},[178,4428,1030],{"class":940},[178,4430,1639],{"class":202},[178,4432,1030],{"class":940},[178,4434,86],{"class":202},[178,4436,1030],{"class":940},[178,4438,1545],{"class":202},[178,4440,1030],{"class":940},[178,4442,86],{"class":202},[178,4444,1030],{"class":940},[178,4446,1465],{"class":202},[178,4448,1030],{"class":940},[178,4450,366],{"class":202},[178,4452,941],{"class":940},[178,4454,1802],{"class":202},[178,4456,941],{"class":940},[178,4458,1807],{"class":202},[178,4460,941],{"class":940},[178,4462,1484],{"class":202},[178,4464,941],{"class":940},[178,4466,1393],{"class":202},[178,4468,941],{"class":940},[178,4470,1398],{"class":202},[178,4472,1030],{"class":940},[178,4474,1824],{"class":202},[178,4476,1030],{"class":940},[178,4478,1408],{"class":202},[178,4480,1030],{"class":940},[178,4482,1833],{"class":202},[178,4484,1030],{"class":940},[178,4486,1418],{"class":202},[178,4488,1030],{"class":940},[178,4490,1842],{"class":202},[178,4492,1030],{"class":940},[178,4494,1847],{"class":202},[178,4496,941],{"class":940},[178,4498,1433],{"class":202},[178,4500,1030],{"class":940},[178,4502,1438],{"class":202},[178,4504,1030],{"class":940},[178,4506,86],{"class":202},[178,4508,1030],{"class":940},[178,4510,1465],{"class":202},[178,4512,1030],{"class":940},[178,4514,86],{"class":202},[178,4516,1030],{"class":940},[178,4518,1639],{"class":202},[178,4520,1030],{"class":940},[178,4522,366],{"class":202},[178,4524,941],{"class":940},[178,4526,1880],{"class":202},[178,4528,941],{"class":940},[178,4530,1885],{"class":202},[178,4532,941],{"class":940},[178,4534,1484],{"class":202},[178,4536,941],{"class":940},[178,4538,1393],{"class":202},[178,4540,941],{"class":940},[178,4542,1398],{"class":202},[178,4544,1030],{"class":940},[178,4546,1902],{"class":202},[178,4548,1030],{"class":940},[178,4550,1408],{"class":202},[178,4552,1030],{"class":940},[178,4554,1678],{"class":202},[178,4556,1030],{"class":940},[178,4558,1418],{"class":202},[178,4560,1030],{"class":940},[178,4562,1687],{"class":202},[178,4564,1030],{"class":940},[178,4566,1923],{"class":202},[178,4568,941],{"class":940},[178,4570,1433],{"class":202},[178,4572,1030],{"class":940},[178,4574,1447],{"class":202},[178,4576,1030],{"class":940},[178,4578,86],{"class":202},[178,4580,1030],{"class":940},[178,4582,1465],{"class":202},[178,4584,1030],{"class":940},[178,4586,366],{"class":202},[178,4588,941],{"class":940},[178,4590,1948],{"class":202},[178,4592,941],{"class":940},[178,4594,1953],{"class":202},[178,4596,941],{"class":940},[178,4598,1484],{"class":202},[178,4600,941],{"class":940},[178,4602,1393],{"class":202},[178,4604,941],{"class":940},[178,4606,1398],{"class":202},[178,4608,1030],{"class":940},[178,4610,1970],{"class":202},[178,4612,1030],{"class":940},[178,4614,1408],{"class":202},[178,4616,1030],{"class":940},[178,4618,1979],{"class":202},[178,4620,1030],{"class":940},[178,4622,1418],{"class":202},[178,4624,1030],{"class":940},[178,4626,1979],{"class":202},[178,4628,1030],{"class":940},[178,4630,1992],{"class":202},[178,4632,941],{"class":940},[178,4634,1433],{"class":202},[178,4636,1030],{"class":940},[178,4638,1447],{"class":202},[178,4640,1030],{"class":940},[178,4642,86],{"class":202},[178,4644,1030],{"class":940},[178,4646,1639],{"class":202},[178,4648,1030],{"class":940},[178,4650,86],{"class":202},[178,4652,1030],{"class":940},[178,4654,1465],{"class":202},[178,4656,1030],{"class":940},[178,4658,366],{"class":202},[178,4660,941],{"class":940},[178,4662,2025],{"class":202},[178,4664,941],{"class":940},[178,4666,2030],{"class":202},[178,4668,941],{"class":940},[178,4670,1484],{"class":202},[178,4672,941],{"class":940},[178,4674,1393],{"class":202},[178,4676,941],{"class":940},[178,4678,1398],{"class":202},[178,4680,1030],{"class":940},[178,4682,2047],{"class":202},[178,4684,1030],{"class":940},[178,4686,1408],{"class":202},[178,4688,1030],{"class":940},[178,4690,2056],{"class":202},[178,4692,1030],{"class":940},[178,4694,1418],{"class":202},[178,4696,1030],{"class":940},[178,4698,1687],{"class":202},[178,4700,1030],{"class":940},[178,4702,2069],{"class":202},[178,4704,941],{"class":940},[178,4706,1433],{"class":202},[178,4708,1030],{"class":940},[178,4710,1465],{"class":202},[178,4712,1030],{"class":940},[178,4714,86],{"class":202},[178,4716,1030],{"class":940},[178,4718,1447],{"class":202},[178,4720,1030],{"class":940},[178,4722,86],{"class":202},[178,4724,1030],{"class":940},[178,4726,1545],{"class":202},[178,4728,1030],{"class":940},[178,4730,366],{"class":202},[178,4732,941],{"class":940},[178,4734,1802],{"class":202},[178,4736,941],{"class":940},[178,4738,2106],{"class":202},[178,4740,941],{"class":940},[178,4742,1484],{"class":202},[178,4744,941],{"class":940},[178,4746,1393],{"class":202},[178,4748,941],{"class":940},[178,4750,2119],{"class":202},[178,4752,941],{"class":940},[178,4754,2124],{"class":202},[178,4756,941],{"class":940},[178,4758,2129],{"class":202},[178,4760,941],{"class":940},[178,4762,2134],{"class":202},[178,4764,1030],{"class":940},[178,4766,2139],{"class":202},[178,4768,1160],{"class":940},[178,4770,2144],{"class":202},[178,4772,941],{"class":940},[178,4774,2149],{"class":202},[178,4776,941],{"class":940},[178,4778,1398],{"class":202},[178,4780,1030],{"class":940},[178,4782,2158],{"class":202},[178,4784,1030],{"class":940},[178,4786,1408],{"class":202},[178,4788,1030],{"class":940},[178,4790,2167],{"class":202},[178,4792,1030],{"class":940},[178,4794,1418],{"class":202},[178,4796,1030],{"class":940},[178,4798,1842],{"class":202},[178,4800,1030],{"class":940},[178,4802,2180],{"class":202},[178,4804,941],{"class":940},[178,4806,1433],{"class":202},[178,4808,1030],{"class":940},[178,4810,1639],{"class":202},[178,4812,1030],{"class":940},[178,4814,86],{"class":202},[178,4816,1030],{"class":940},[178,4818,1465],{"class":202},[178,4820,1030],{"class":940},[178,4822,86],{"class":202},[178,4824,1030],{"class":940},[178,4826,1456],{"class":202},[178,4828,1030],{"class":940},[178,4830,366],{"class":202},[178,4832,941],{"class":940},[178,4834,2025],{"class":202},[178,4836,941],{"class":940},[178,4838,2217],{"class":202},[178,4840,941],{"class":940},[178,4842,989],{"class":202},[178,4844,941],{"class":940},[178,4846,1265],{"class":202},[178,4848,941],{"class":940},[178,4850,2230],{"class":202},[178,4852,951],{"class":940},[178,4854,2235],{"class":202},[178,4856,1030],{"class":940},[178,4858,1423],{"class":202},[178,4860,1030],{"class":940},[178,4862,86],{"class":202},[178,4864,1030],{"class":940},[178,4866,1515],{"class":202},[178,4868,1030],{"class":940},[178,4870,86],{"class":202},[178,4872,1030],{"class":940},[178,4874,1842],{"class":202},[178,4876,1030],{"class":940},[178,4878,86],{"class":202},[178,4880,1030],{"class":940},[178,4882,1979],{"class":202},[178,4884,1030],{"class":940},[178,4886,86],{"class":202},[178,4888,1030],{"class":940},[178,4890,1687],{"class":202},[178,4892,1030],{"class":940},[178,4894,1265],{"class":202},[178,4896,951],{"class":940},[178,4898,2280],{"class":202},[178,4900,941],{"class":940},[178,4902,4903],{"class":202},"const SEVERITIES      = [",[178,4905,1030],{"class":940},[178,4907,2290],{"class":202},[178,4909,1030],{"class":940},[178,4911,86],{"class":202},[178,4913,1030],{"class":940},[178,4915,2299],{"class":202},[178,4917,1030],{"class":940},[178,4919,86],{"class":202},[178,4921,1030],{"class":940},[178,4923,2308],{"class":202},[178,4925,1030],{"class":940},[178,4927,1265],{"class":202},[178,4929,941],{"class":940},[178,4931,2317],{"class":202},[178,4933,951],{"class":940},[178,4935,2322],{"class":202},[178,4937,941],{"class":940},[178,4939,2327],{"class":202},[178,4941,1030],{"class":940},[178,4943,2332],{"class":202},[178,4945,1030],{"class":940},[178,4947,86],{"class":202},[178,4949,1030],{"class":940},[178,4951,2341],{"class":202},[178,4953,1030],{"class":940},[178,4955,86],{"class":202},[178,4957,1030],{"class":940},[178,4959,2350],{"class":202},[178,4961,1030],{"class":940},[178,4963,86],{"class":202},[178,4965,1030],{"class":940},[178,4967,2359],{"class":202},[178,4969,1030],{"class":940},[178,4971,1265],{"class":202},[178,4973,951],{"class":940},[178,4975,2368],{"class":202},[178,4977,941],{"class":940},[178,4979,2373],{"class":202},[178,4981,941],{"class":940},[178,4983,2378],{"class":202},[178,4985,1030],{"class":940},[178,4987,2383],{"class":202},[178,4989,1030],{"class":940},[178,4991,86],{"class":202},[178,4993,1030],{"class":940},[178,4995,2392],{"class":202},[178,4997,1030],{"class":940},[178,4999,86],{"class":202},[178,5001,1030],{"class":940},[178,5003,2401],{"class":202},[178,5005,1030],{"class":940},[178,5007,2406],{"class":202},[178,5009,941],{"class":940},[178,5011,5012],{"class":202},"    Major:    { items: [",[178,5014,1030],{"class":940},[178,5016,2383],{"class":202},[178,5018,1030],{"class":940},[178,5020,86],{"class":202},[178,5022,1030],{"class":940},[178,5024,2392],{"class":202},[178,5026,1030],{"class":940},[178,5028,86],{"class":202},[178,5030,1030],{"class":940},[178,5032,2401],{"class":202},[178,5034,1030],{"class":940},[178,5036,2436],{"class":202},[178,5038,941],{"class":940},[178,5040,5041],{"class":202},"    Minor:    { items: [",[178,5043,1030],{"class":940},[178,5045,2383],{"class":202},[178,5047,1030],{"class":940},[178,5049,86],{"class":202},[178,5051,1030],{"class":940},[178,5053,2392],{"class":202},[178,5055,1030],{"class":940},[178,5057,86],{"class":202},[178,5059,1030],{"class":940},[178,5061,2401],{"class":202},[178,5063,1030],{"class":940},[178,5065,2466],{"class":202},[178,5067,941],{"class":940},[178,5069,2471],{"class":202},[178,5071,951],{"class":940},[178,5073,2476],{"class":202},[178,5075,941],{"class":940},[178,5077,2481],{"class":202},[178,5079,941],{"class":940},[178,5081,2486],{"class":202},[178,5083,941],{"class":940},[178,5085,2491],{"class":202},[178,5087,941],{"class":940},[178,5089,2496],{"class":202},[178,5091,941],{"class":940},[178,5093,5094],{"class":202},"    Scrap:        { Critical: [800, 2000], Major: [400, 1000], Minor: [150, 400] },",[178,5096,941],{"class":940},[178,5098,5099],{"class":202},"    Rework:       { Critical: [300, 800],  Major: [150, 500],  Minor: [50, 200] },",[178,5101,941],{"class":940},[178,5103,2511],{"class":940},[178,5105,2401],{"class":202},[178,5107,1030],{"class":940},[178,5109,5110],{"class":202},":  { Critical: [50, 150],   Major: [20, 80],    Minor: [5, 40] }",[178,5112,941],{"class":940},[178,5114,2471],{"class":202},[178,5116,951],{"class":940},[178,5118,2527],{"class":202},[178,5120,941],{"class":940},[178,5122,2532],{"class":202},[178,5124,941],{"class":940},[178,5126,2537],{"class":202},[178,5128,941],{"class":940},[178,5130,2542],{"class":202},[178,5132,941],{"class":940},[178,5134,2547],{"class":202},[178,5136,941],{"class":940},[178,5138,2511],{"class":940},[178,5140,1438],{"class":202},[178,5142,1030],{"class":940},[178,5144,2558],{"class":202},[178,5146,941],{"class":940},[178,5148,2511],{"class":940},[178,5150,1447],{"class":202},[178,5152,1030],{"class":940},[178,5154,2569],{"class":202},[178,5156,941],{"class":940},[178,5158,2511],{"class":940},[178,5160,1456],{"class":202},[178,5162,1030],{"class":940},[178,5164,2580],{"class":202},[178,5166,941],{"class":940},[178,5168,2511],{"class":940},[178,5170,1465],{"class":202},[178,5172,1030],{"class":940},[178,5174,2591],{"class":202},[178,5176,941],{"class":940},[178,5178,2511],{"class":940},[178,5180,1639],{"class":202},[178,5182,1030],{"class":940},[178,5184,2602],{"class":202},[178,5186,941],{"class":940},[178,5188,2511],{"class":940},[178,5190,1545],{"class":202},[178,5192,1030],{"class":940},[178,5194,2613],{"class":202},[178,5196,941],{"class":940},[178,5198,2471],{"class":202},[178,5200,951],{"class":940},[178,5202,2622],{"class":202},[178,5204,941],{"class":940},[178,5206,2627],{"class":202},[178,5208,941],{"class":940},[178,5210,2632],{"class":202},[178,5212,941],{"class":940},[178,5214,2637],{"class":202},[178,5216,941],{"class":940},[178,5218,2642],{"class":202},[178,5220,1030],{"class":940},[178,5222,2647],{"class":202},[178,5224,1030],{"class":940},[178,5226,86],{"class":202},[178,5228,1030],{"class":940},[178,5230,2656],{"class":202},[178,5232,1030],{"class":940},[178,5234,86],{"class":202},[178,5236,1030],{"class":940},[178,5238,2665],{"class":202},[178,5240,1030],{"class":940},[178,5242,366],{"class":202},[178,5244,941],{"class":940},[178,5246,2674],{"class":202},[178,5248,941],{"class":940},[178,5250,2679],{"class":202},[178,5252,941],{"class":940},[178,5254,2684],{"class":202},[178,5256,941],{"class":940},[178,5258,2637],{"class":202},[178,5260,941],{"class":940},[178,5262,2642],{"class":202},[178,5264,1030],{"class":940},[178,5266,2647],{"class":202},[178,5268,1030],{"class":940},[178,5270,86],{"class":202},[178,5272,1030],{"class":940},[178,5274,2656],{"class":202},[178,5276,1030],{"class":940},[178,5278,86],{"class":202},[178,5280,1030],{"class":940},[178,5282,2665],{"class":202},[178,5284,1030],{"class":940},[178,5286,86],{"class":202},[178,5288,1030],{"class":940},[178,5290,2721],{"class":202},[178,5292,1030],{"class":940},[178,5294,86],{"class":202},[178,5296,1030],{"class":940},[178,5298,2730],{"class":202},[178,5300,1030],{"class":940},[178,5302,366],{"class":202},[178,5304,941],{"class":940},[178,5306,2739],{"class":202},[178,5308,941],{"class":940},[178,5310,2679],{"class":202},[178,5312,941],{"class":940},[178,5314,2748],{"class":202},[178,5316,941],{"class":940},[178,5318,2637],{"class":202},[178,5320,941],{"class":940},[178,5322,2642],{"class":202},[178,5324,1030],{"class":940},[178,5326,2665],{"class":202},[178,5328,1030],{"class":940},[178,5330,86],{"class":202},[178,5332,1030],{"class":940},[178,5334,2721],{"class":202},[178,5336,1030],{"class":940},[178,5338,86],{"class":202},[178,5340,1030],{"class":940},[178,5342,2656],{"class":202},[178,5344,1030],{"class":940},[178,5346,86],{"class":202},[178,5348,1030],{"class":940},[178,5350,2730],{"class":202},[178,5352,1030],{"class":940},[178,5354,86],{"class":202},[178,5356,1030],{"class":940},[178,5358,2647],{"class":202},[178,5360,1030],{"class":940},[178,5362,366],{"class":202},[178,5364,941],{"class":940},[178,5366,2801],{"class":202},[178,5368,941],{"class":940},[178,5370,2679],{"class":202},[178,5372,941],{"class":940},[178,5374,2810],{"class":202},[178,5376,941],{"class":940},[178,5378,2637],{"class":202},[178,5380,941],{"class":940},[178,5382,2642],{"class":202},[178,5384,1030],{"class":940},[178,5386,2730],{"class":202},[178,5388,1030],{"class":940},[178,5390,86],{"class":202},[178,5392,1030],{"class":940},[178,5394,2721],{"class":202},[178,5396,1030],{"class":940},[178,5398,86],{"class":202},[178,5400,1030],{"class":940},[178,5402,2665],{"class":202},[178,5404,1030],{"class":940},[178,5406,86],{"class":202},[178,5408,1030],{"class":940},[178,5410,2656],{"class":202},[178,5412,1030],{"class":940},[178,5414,366],{"class":202},[178,5416,941],{"class":940},[178,5418,2855],{"class":202},[178,5420,941],{"class":940},[178,5422,2679],{"class":202},[178,5424,941],{"class":940},[178,5426,989],{"class":202},[178,5428,941],{"class":940},[178,5430,999],{"class":202},[178,5432,951],{"class":940},[178,5434,2872],{"class":202},[178,5436,1030],{"class":940},[178,5438,2877],{"class":202},[178,5440,1030],{"class":940},[178,5442,2882],{"class":202},[178,5444,941],{"class":940},[178,5446,2887],{"class":202},[178,5448,941],{"class":940},[178,5450,2892],{"class":202},[178,5452,941],{"class":940},[178,5454,2897],{"class":202},[178,5456,941],{"class":940},[178,5458,2902],{"class":202},[178,5460,941],{"class":940},[178,5462,2907],{"class":202},[178,5464,941],{"class":940},[178,5466,999],{"class":202},[178,5468,941],{"class":940},[178,5470,2916],{"class":202},[178,5472,941],{"class":940},[178,5474,2921],{"class":202},[178,5476,951],{"class":940},[178,5478,2926],{"class":202},[178,5480,941],{"class":940},[178,5482,2931],{"class":202},[178,5484,941],{"class":940},[178,5486,2936],{"class":202},[178,5488,951],{"class":940},[178,5490,2941],{"class":202},[178,5492,941],{"class":940},[178,5494,2946],{"class":202},[178,5496,941],{"class":940},[178,5498,2951],{"class":202},[178,5500,941],{"class":940},[178,5502,2956],{"class":202},[178,5504,1030],{"class":940},[178,5506,1747],{"class":202},[178,5508,1030],{"class":940},[178,5510,1198],{"class":202},[178,5512,941],{"class":940},[178,5514,2810],{"class":202},[178,5516,941],{"class":940},[178,5518,2973],{"class":202},[178,5520,941],{"class":940},[178,5522,989],{"class":202},[178,5524,951],{"class":940},[178,5526,2982],{"class":202},[178,5528,941],{"class":940},[178,5530,2987],{"class":202},[178,5532,941],{"class":940},[178,5534,2992],{"class":202},[178,5536,951],{"class":940},[178,5538,2997],{"class":202},[178,5540,941],{"class":940},[178,5542,3002],{"class":202},[178,5544,951],{"class":940},[178,5546,3007],{"class":202},[178,5548,941],{"class":940},[178,5550,3012],{"class":202},[178,5552,951],{"class":940},[178,5554,3017],{"class":202},[178,5556,951],{"class":940},[178,5558,3022],{"class":202},[178,5560,941],{"class":940},[178,5562,3027],{"class":202},[178,5564,941],{"class":940},[178,5566,3032],{"class":202},[178,5568,941],{"class":940},[178,5570,3037],{"class":202},[178,5572,941],{"class":940},[178,5574,3042],{"class":202},[178,5576,1030],{"class":940},[178,5578,2359],{"class":202},[178,5580,1030],{"class":940},[178,5582,3051],{"class":202},[178,5584,951],{"class":940},[178,5586,3056],{"class":202},[178,5588,941],{"class":940},[178,5590,3061],{"class":202},[178,5592,941],{"class":940},[178,5594,3066],{"class":202},[178,5596,941],{"class":940},[178,5598,3071],{"class":202},[178,5600,941],{"class":940},[178,5602,3076],{"class":202},[178,5604,951],{"class":940},[178,5606,3081],{"class":202},[178,5608,1030],{"class":940},[178,5610,2290],{"class":202},[178,5612,1030],{"class":940},[178,5614,3090],{"class":202},[178,5616,941],{"class":940},[178,5618,5619],{"class":202},"                              : severity === ",[178,5621,1030],{"class":940},[178,5623,2299],{"class":202},[178,5625,1030],{"class":940},[178,5627,5628],{"class":202},"    ? 6 + Math.random() * 24",[178,5630,941],{"class":940},[178,5632,5633],{"class":202},"                              :                            12 + Math.random() * 48;",[178,5635,951],{"class":940},[178,5637,3114],{"class":202},[178,5639,941],{"class":940},[178,5641,3119],{"class":202},[178,5643,941],{"class":940},[178,5645,3124],{"class":202},[178,5647,941],{"class":940},[178,5649,3129],{"class":202},[178,5651,941],{"class":940},[178,5653,3134],{"class":202},[178,5655,941],{"class":940},[178,5657,3139],{"class":202},[178,5659,941],{"class":940},[178,5661,3144],{"class":202},[178,5663,941],{"class":940},[178,5665,3149],{"class":202},[178,5667,941],{"class":940},[178,5669,3154],{"class":202},[178,5671,951],{"class":940},[178,5673,3159],{"class":202},[178,5675,941],{"class":940},[178,5677,3164],{"class":202},[178,5679,941],{"class":940},[178,5681,3169],{"class":202},[178,5683,941],{"class":940},[178,5685,3174],{"class":202},[178,5687,1030],{"class":940},[178,5689,2158],{"class":202},[178,5691,1160],{"class":940},[178,5693,3183],{"class":202},[178,5695,1030],{"class":940},[178,5697,1354],{"class":202},[178,5699,1160],{"class":940},[178,5701,3192],{"class":202},[178,5703,951],{"class":940},[178,5705,3197],{"class":202},[178,5707,941],{"class":940},[178,5709,3202],{"class":202},[178,5711,941],{"class":940},[178,5713,3207],{"class":202},[178,5715,941],{"class":940},[178,5717,3212],{"class":202},[178,5719,941],{"class":940},[178,5721,3217],{"class":202},[178,5723,941],{"class":940},[178,5725,3222],{"class":202},[178,5727,941],{"class":940},[178,5729,3227],{"class":202},[178,5731,941],{"class":940},[178,5733,3232],{"class":202},[178,5735,941],{"class":940},[178,5737,3237],{"class":202},[178,5739,941],{"class":940},[178,5741,3242],{"class":202},[178,5743,941],{"class":940},[178,5745,3247],{"class":202},[178,5747,941],{"class":940},[178,5749,3252],{"class":202},[178,5751,941],{"class":940},[178,5753,3257],{"class":202},[178,5755,941],{"class":940},[178,5757,3262],{"class":202},[178,5759,941],{"class":940},[178,5761,3267],{"class":202},[178,5763,941],{"class":940},[178,5765,3272],{"class":202},[178,5767,941],{"class":940},[178,5769,3277],{"class":202},[178,5771,941],{"class":940},[178,5773,999],{"class":202},[178,5775,951],{"class":940},[178,5777,937],{"class":202},[178,5779,941],{"class":940},[178,5781,5782],{"class":202},"\u002F\u002F FUNCTION NODE 2: LIVE FEED (v2 — realistic correlations)",[178,5784,941],{"class":940},[178,5786,5787],{"class":202},"\u002F\u002F Wire: [Inject: repeat every 20s]",[178,5789,941],{"class":940},[178,5791,3300],{"class":202},[178,5793,941],{"class":940},[178,5795,5796],{"class":202},"\u002F\u002F        -> [postgresql\u002FFlowFuse Tables node: single row INSERT]",[178,5798,941],{"class":940},[178,5800,5801],{"class":202},"\u002F\u002F        -> (optional) [Switch: msg.critical === true] -> [ui_notification]",[178,5803,941],{"class":940},[178,5805,937],{"class":202},[178,5807,951],{"class":940},[178,5809,5810],{"class":202},"const todayStr = new Date().toISOString().slice(0, 10);",[178,5812,941],{"class":940},[178,5814,5815],{"class":202},"const record = generateOneDefect(todayStr, 0); \u002F\u002F ageDays=0: fresh, mostly ",[178,5817,1030],{"class":940},[178,5819,2730],{"class":202},[178,5821,5822],{"class":940},"\\\"\\n\\n",[178,5824,5825],{"class":202},"msg.critical = (record.severity === ",[178,5827,1030],{"class":940},[178,5829,2290],{"class":202},[178,5831,1030],{"class":940},[178,5833,1198],{"class":202},[178,5835,941],{"class":940},[178,5837,5838],{"class":202},"msg.params = recordToParams(record); \u002F\u002F FlowFuse Tables node reads params from msg.params",[178,5840,951],{"class":940},[178,5842,3402],{"class":202},[178,5844,188],{"class":184},[178,5846,208],{"class":184},[178,5848,188],{"class":184},[178,5850,3411],{"class":191},[178,5852,188],{"class":184},[178,5854,197],{"class":184},[178,5856,3418],{"class":378},[178,5858,208],{"class":184},[178,5860,188],{"class":184},[178,5862,3425],{"class":191},[178,5864,188],{"class":184},[178,5866,197],{"class":184},[178,5868,1193],{"class":378},[178,5870,208],{"class":184},[178,5872,188],{"class":184},[178,5874,3438],{"class":191},[178,5876,188],{"class":184},[178,5878,197],{"class":184},[178,5880,1193],{"class":378},[178,5882,208],{"class":184},[178,5884,188],{"class":184},[178,5886,3451],{"class":191},[178,5888,188],{"class":184},[178,5890,197],{"class":184},[178,5892,593],{"class":184},[178,5894,208],{"class":184},[178,5896,188],{"class":184},[178,5898,3464],{"class":191},[178,5900,188],{"class":184},[178,5902,197],{"class":184},[178,5904,593],{"class":184},[178,5906,208],{"class":184},[178,5908,188],{"class":184},[178,5910,3477],{"class":191},[178,5912,188],{"class":184},[178,5914,736],{"class":184},[178,5916,188],{"class":184},[178,5918,371],{"class":191},[178,5920,188],{"class":184},[178,5922,197],{"class":184},[178,5924,3690],{"class":378},[178,5926,208],{"class":184},[178,5928,188],{"class":184},[178,5930,386],{"class":191},[178,5932,188],{"class":184},[178,5934,197],{"class":184},[178,5936,3690],{"class":378},[178,5938,208],{"class":184},[178,5940,188],{"class":184},[178,5942,644],{"class":191},[178,5944,188],{"class":184},[178,5946,832],{"class":184},[178,5948,188],{"class":184},[178,5950,361],{"class":202},[178,5952,188],{"class":184},[178,5954,841],{"class":184},[178,5956,188],{"class":184},[178,5958,192],{"class":191},[178,5960,188],{"class":184},[178,5962,197],{"class":184},[178,5964,188],{"class":184},[178,5966,343],{"class":202},[178,5968,188],{"class":184},[178,5970,208],{"class":184},[178,5972,188],{"class":184},[178,5974,213],{"class":191},[178,5976,188],{"class":184},[178,5978,197],{"class":184},[178,5980,188],{"class":184},[178,5982,453],{"class":202},[178,5984,188],{"class":184},[178,5986,208],{"class":184},[178,5988,188],{"class":184},[178,5990,231],{"class":191},[178,5992,188],{"class":184},[178,5994,197],{"class":184},[178,5996,188],{"class":184},[178,5998,240],{"class":202},[178,6000,188],{"class":184},[178,6002,208],{"class":184},[178,6004,188],{"class":184},[178,6006,478],{"class":191},[178,6008,188],{"class":184},[178,6010,197],{"class":184},[178,6012,188],{"class":184},[178,6014,203],{"class":202},[178,6016,188],{"class":184},[178,6018,208],{"class":184},[178,6020,188],{"class":184},[178,6022,249],{"class":191},[178,6024,188],{"class":184},[178,6026,197],{"class":184},[178,6028,188],{"class":184},[178,6030,503],{"class":202},[178,6032,188],{"class":184},[178,6034,208],{"class":184},[178,6036,188],{"class":184},[178,6038,512],{"class":191},[178,6040,188],{"class":184},[178,6042,517],{"class":184},[178,6044,188],{"class":184},[178,6046,522],{"class":191},[178,6048,188],{"class":184},[178,6050,517],{"class":184},[178,6052,188],{"class":184},[178,6054,531],{"class":191},[178,6056,188],{"class":184},[178,6058,536],{"class":184},[178,6060,188],{"class":184},[178,6062,541],{"class":191},[178,6064,188],{"class":184},[178,6066,536],{"class":184},[178,6068,188],{"class":184},[178,6070,550],{"class":191},[178,6072,188],{"class":184},[178,6074,197],{"class":184},[178,6076,188],{"class":184},[178,6078,559],{"class":202},[178,6080,188],{"class":184},[178,6082,208],{"class":184},[178,6084,188],{"class":184},[178,6086,568],{"class":191},[178,6088,188],{"class":184},[178,6090,197],{"class":184},[178,6092,188],{"class":184},[178,6094,577],{"class":202},[178,6096,188],{"class":184},[178,6098,208],{"class":184},[178,6100,188],{"class":184},[178,6102,586],{"class":191},[178,6104,188],{"class":184},[178,6106,197],{"class":184},[178,6108,593],{"class":184},[178,6110,208],{"class":184},[178,6112,188],{"class":184},[178,6114,600],{"class":191},[178,6116,188],{"class":184},[178,6118,197],{"class":184},[178,6120,188],{"class":184},[178,6122,609],{"class":202},[178,6124,188],{"class":184},[178,6126,208],{"class":184},[178,6128,188],{"class":184},[178,6130,371],{"class":191},[178,6132,188],{"class":184},[178,6134,197],{"class":184},[178,6136,624],{"class":378},[178,6138,208],{"class":184},[178,6140,188],{"class":184},[178,6142,386],{"class":191},[178,6144,188],{"class":184},[178,6146,197],{"class":184},[178,6148,3690],{"class":378},[178,6150,208],{"class":184},[178,6152,188],{"class":184},[178,6154,644],{"class":191},[178,6156,188],{"class":184},[178,6158,649],{"class":184},[178,6160,188],{"class":184},[178,6162,192],{"class":191},[178,6164,188],{"class":184},[178,6166,197],{"class":184},[178,6168,188],{"class":184},[178,6170,352],{"class":202},[178,6172,188],{"class":184},[178,6174,208],{"class":184},[178,6176,188],{"class":184},[178,6178,213],{"class":191},[178,6180,188],{"class":184},[178,6182,197],{"class":184},[178,6184,188],{"class":184},[178,6186,6187],{"class":202},"tables-query",[178,6189,188],{"class":184},[178,6191,208],{"class":184},[178,6193,188],{"class":184},[178,6195,231],{"class":191},[178,6197,188],{"class":184},[178,6199,197],{"class":184},[178,6201,188],{"class":184},[178,6203,240],{"class":202},[178,6205,188],{"class":184},[178,6207,208],{"class":184},[178,6209,188],{"class":184},[178,6211,478],{"class":191},[178,6213,188],{"class":184},[178,6215,197],{"class":184},[178,6217,188],{"class":184},[178,6219,203],{"class":202},[178,6221,188],{"class":184},[178,6223,208],{"class":184},[178,6225,188],{"class":184},[178,6227,249],{"class":191},[178,6229,188],{"class":184},[178,6231,197],{"class":184},[178,6233,188],{"class":184},[178,6235,6236],{"class":202},"Insert Historical Records",[178,6238,188],{"class":184},[178,6240,208],{"class":184},[178,6242,188],{"class":184},[178,6244,6245],{"class":191},"query",[178,6247,188],{"class":184},[178,6249,197],{"class":184},[178,6251,188],{"class":184},[178,6253,6254],{"class":202},"-- BULK INSERT for historical seed (single query, no Split node needed)",[178,6256,941],{"class":940},[178,6258,6259],{"class":202},"-- Use this in the postgresql node wired directly after the",[178,6261,941],{"class":940},[178,6263,6264],{"class":202},"-- ",[178,6266,1030],{"class":940},[178,6268,158],{"class":202},[178,6270,1030],{"class":940},[178,6272,6273],{"class":202}," Function node.",[178,6275,941],{"class":940},[178,6277,6278],{"class":202},"--",[178,6280,941],{"class":940},[178,6282,6283],{"class":202},"-- msg.payload must be an array of 15 arrays (column-wise), which is",[178,6285,941],{"class":940},[178,6287,6288],{"class":202},"-- exactly what recordsToColumnParams() in function-shared-logic.js",[178,6290,941],{"class":940},[178,6292,6293],{"class":202},"-- produces: [ [all defect_ids], [all dates], [all lines], ... ]",[178,6295,951],{"class":940},[178,6297,6298],{"class":202},"INSERT INTO defects (",[178,6300,941],{"class":940},[178,6302,6303],{"class":202},"    defect_id, date, line, station, shift, sku,",[178,6305,941],{"class":940},[178,6307,6308],{"class":202},"    defect_type, defect_category, severity, detected_stage,",[178,6310,941],{"class":940},[178,6312,6313],{"class":202},"    root_cause, disposition, status, cost_impact, resolution_hours",[178,6315,941],{"class":940},[178,6317,6318],{"class":202},")",[178,6320,941],{"class":940},[178,6322,6323],{"class":202},"SELECT * FROM UNNEST(",[178,6325,941],{"class":940},[178,6327,6328],{"class":202},"    $1::varchar[],  $2::date[],     $3::varchar[],  $4::varchar[],",[178,6330,941],{"class":940},[178,6332,6333],{"class":202},"    $5::varchar[],  $6::varchar[],  $7::varchar[],  $8::varchar[],",[178,6335,941],{"class":940},[178,6337,6338],{"class":202},"    $9::varchar[],  $10::varchar[], $11::varchar[], $12::varchar[],",[178,6340,941],{"class":940},[178,6342,6343],{"class":202},"    $13::varchar[], $14::numeric[], $15::numeric[]",[178,6345,941],{"class":940},[178,6347,6318],{"class":202},[178,6349,941],{"class":940},[178,6351,6352],{"class":202},"ON CONFLICT (defect_id) DO NOTHING;",[178,6354,951],{"class":940},[178,6356,6357],{"class":202},"-- ------------------------------------------------------------",[178,6359,941],{"class":940},[178,6361,6362],{"class":202},"-- LIVE FEED still uses the simple single-row query below,",[178,6364,941],{"class":940},[178,6366,6367],{"class":202},"-- unchanged, fed by function-live-feed.js (one param-array per msg):",[178,6369,941],{"class":940},[178,6371,6278],{"class":202},[178,6373,941],{"class":940},[178,6375,6376],{"class":202},"-- INSERT INTO defects (",[178,6378,941],{"class":940},[178,6380,6381],{"class":202},"--     defect_id, date, line, station, shift, sku,",[178,6383,941],{"class":940},[178,6385,6386],{"class":202},"--     defect_type, defect_category, severity, detected_stage,",[178,6388,941],{"class":940},[178,6390,6391],{"class":202},"--     root_cause, disposition, status, cost_impact, resolution_hours",[178,6393,941],{"class":940},[178,6395,6396],{"class":202},"-- )",[178,6398,941],{"class":940},[178,6400,6401],{"class":202},"-- VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)",[178,6403,941],{"class":940},[178,6405,6406],{"class":202},"-- ON CONFLICT (defect_id) DO NOTHING;",[178,6408,188],{"class":184},[178,6410,208],{"class":184},[178,6412,188],{"class":184},[178,6414,6415],{"class":191},"split",[178,6417,188],{"class":184},[178,6419,536],{"class":184},[178,6421,188],{"class":184},[178,6423,6424],{"class":191},"rowsPerMsg",[178,6426,188],{"class":184},[178,6428,197],{"class":184},[178,6430,3418],{"class":378},[178,6432,208],{"class":184},[178,6434,188],{"class":184},[178,6436,371],{"class":191},[178,6438,188],{"class":184},[178,6440,197],{"class":184},[178,6442,6443],{"class":378},"570",[178,6445,208],{"class":184},[178,6447,188],{"class":184},[178,6449,386],{"class":191},[178,6451,188],{"class":184},[178,6453,197],{"class":184},[178,6455,637],{"class":378},[178,6457,208],{"class":184},[178,6459,188],{"class":184},[178,6461,644],{"class":191},[178,6463,188],{"class":184},[178,6465,832],{"class":184},[178,6467,188],{"class":184},[178,6469,298],{"class":202},[178,6471,188],{"class":184},[178,6473,841],{"class":184},[178,6475,188],{"class":184},[178,6477,192],{"class":191},[178,6479,188],{"class":184},[178,6481,197],{"class":184},[178,6483,188],{"class":184},[178,6485,361],{"class":202},[178,6487,188],{"class":184},[178,6489,208],{"class":184},[178,6491,188],{"class":184},[178,6493,213],{"class":191},[178,6495,188],{"class":184},[178,6497,197],{"class":184},[178,6499,188],{"class":184},[178,6501,6187],{"class":202},[178,6503,188],{"class":184},[178,6505,208],{"class":184},[178,6507,188],{"class":184},[178,6509,231],{"class":191},[178,6511,188],{"class":184},[178,6513,197],{"class":184},[178,6515,188],{"class":184},[178,6517,240],{"class":202},[178,6519,188],{"class":184},[178,6521,208],{"class":184},[178,6523,188],{"class":184},[178,6525,478],{"class":191},[178,6527,188],{"class":184},[178,6529,197],{"class":184},[178,6531,188],{"class":184},[178,6533,203],{"class":202},[178,6535,188],{"class":184},[178,6537,208],{"class":184},[178,6539,188],{"class":184},[178,6541,249],{"class":191},[178,6543,188],{"class":184},[178,6545,197],{"class":184},[178,6547,188],{"class":184},[178,6549,6550],{"class":202},"Insert Live Record",[178,6552,188],{"class":184},[178,6554,208],{"class":184},[178,6556,188],{"class":184},[178,6558,6245],{"class":191},[178,6560,188],{"class":184},[178,6562,197],{"class":184},[178,6564,188],{"class":184},[178,6566,6298],{"class":202},[178,6568,941],{"class":940},[178,6570,6303],{"class":202},[178,6572,941],{"class":940},[178,6574,6308],{"class":202},[178,6576,941],{"class":940},[178,6578,6313],{"class":202},[178,6580,941],{"class":940},[178,6582,6318],{"class":202},[178,6584,941],{"class":940},[178,6586,6587],{"class":202},"VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)",[178,6589,941],{"class":940},[178,6591,6352],{"class":202},[178,6593,188],{"class":184},[178,6595,208],{"class":184},[178,6597,188],{"class":184},[178,6599,6415],{"class":191},[178,6601,188],{"class":184},[178,6603,536],{"class":184},[178,6605,188],{"class":184},[178,6607,6424],{"class":191},[178,6609,188],{"class":184},[178,6611,197],{"class":184},[178,6613,3418],{"class":378},[178,6615,208],{"class":184},[178,6617,188],{"class":184},[178,6619,371],{"class":191},[178,6621,188],{"class":184},[178,6623,197],{"class":184},[178,6625,6626],{"class":378},"550",[178,6628,208],{"class":184},[178,6630,188],{"class":184},[178,6632,386],{"class":191},[178,6634,188],{"class":184},[178,6636,197],{"class":184},[178,6638,3690],{"class":378},[178,6640,208],{"class":184},[178,6642,188],{"class":184},[178,6644,644],{"class":191},[178,6646,188],{"class":184},[178,6648,832],{"class":184},[178,6650,188],{"class":184},[178,6652,343],{"class":202},[178,6654,188],{"class":184},[178,6656,841],{"class":184},[178,6658,188],{"class":184},[178,6660,192],{"class":191},[178,6662,188],{"class":184},[178,6664,197],{"class":184},[178,6666,188],{"class":184},[178,6668,6669],{"class":202},"d1c5372e4c488212",[178,6671,188],{"class":184},[178,6673,208],{"class":184},[178,6675,188],{"class":184},[178,6677,213],{"class":191},[178,6679,188],{"class":184},[178,6681,197],{"class":184},[178,6683,188],{"class":184},[178,6685,222],{"class":202},[178,6687,188],{"class":184},[178,6689,208],{"class":184},[178,6691,188],{"class":184},[178,6693,231],{"class":191},[178,6695,188],{"class":184},[178,6697,197],{"class":184},[178,6699,188],{"class":184},[178,6701,240],{"class":202},[178,6703,188],{"class":184},[178,6705,208],{"class":184},[178,6707,188],{"class":184},[178,6709,249],{"class":191},[178,6711,188],{"class":184},[178,6713,197],{"class":184},[178,6715,188],{"class":184},[178,6717,6718],{"class":202},"Create Defect Table",[178,6720,188],{"class":184},[178,6722,208],{"class":184},[178,6724,188],{"class":184},[178,6726,267],{"class":191},[178,6728,188],{"class":184},[178,6730,272],{"class":184},[178,6732,188],{"class":184},[178,6734,278],{"class":277},[178,6736,188],{"class":184},[178,6738,283],{"class":184},[178,6740,188],{"class":184},[178,6742,288],{"class":191},[178,6744,188],{"class":184},[178,6746,293],{"class":184},[178,6748,188],{"class":184},[178,6750,6751],{"class":202},"f4a14ba58c9e129d",[178,6753,188],{"class":184},[178,6755,208],{"class":184},[178,6757,188],{"class":184},[178,6759,6760],{"class":202},"a08e0258f5c5242e",[178,6762,188],{"class":184},[178,6764,208],{"class":184},[178,6766,188],{"class":184},[178,6768,6769],{"class":202},"83e51297506816b4",[178,6771,188],{"class":184},[178,6773,366],{"class":184},[178,6775,188],{"class":184},[178,6777,371],{"class":191},[178,6779,188],{"class":184},[178,6781,197],{"class":184},[178,6783,379],{"class":378},[178,6785,208],{"class":184},[178,6787,188],{"class":184},[178,6789,386],{"class":191},[178,6791,188],{"class":184},[178,6793,197],{"class":184},[178,6795,6796],{"class":378},"19",[178,6798,208],{"class":184},[178,6800,188],{"class":184},[178,6802,400],{"class":191},[178,6804,188],{"class":184},[178,6806,197],{"class":184},[178,6808,407],{"class":378},[178,6810,208],{"class":184},[178,6812,188],{"class":184},[178,6814,414],{"class":191},[178,6816,188],{"class":184},[178,6818,197],{"class":184},[178,6820,6821],{"class":378},"82",[178,6823,424],{"class":184},[178,6825,188],{"class":184},[178,6827,192],{"class":191},[178,6829,188],{"class":184},[178,6831,197],{"class":184},[178,6833,188],{"class":184},[178,6835,6751],{"class":202},[178,6837,188],{"class":184},[178,6839,208],{"class":184},[178,6841,188],{"class":184},[178,6843,213],{"class":191},[178,6845,188],{"class":184},[178,6847,197],{"class":184},[178,6849,188],{"class":184},[178,6851,678],{"class":202},[178,6853,188],{"class":184},[178,6855,208],{"class":184},[178,6857,188],{"class":184},[178,6859,231],{"class":191},[178,6861,188],{"class":184},[178,6863,197],{"class":184},[178,6865,188],{"class":184},[178,6867,240],{"class":202},[178,6869,188],{"class":184},[178,6871,208],{"class":184},[178,6873,188],{"class":184},[178,6875,478],{"class":191},[178,6877,188],{"class":184},[178,6879,197],{"class":184},[178,6881,188],{"class":184},[178,6883,6669],{"class":202},[178,6885,188],{"class":184},[178,6887,208],{"class":184},[178,6889,188],{"class":184},[178,6891,249],{"class":191},[178,6893,188],{"class":184},[178,6895,197],{"class":184},[178,6897,593],{"class":184},[178,6899,208],{"class":184},[178,6901,188],{"class":184},[178,6903,731],{"class":191},[178,6905,188],{"class":184},[178,6907,736],{"class":184},[178,6909,188],{"class":184},[178,6911,741],{"class":191},[178,6913,188],{"class":184},[178,6915,197],{"class":184},[178,6917,593],{"class":184},[178,6919,208],{"class":184},[178,6921,188],{"class":184},[178,6923,754],{"class":191},[178,6925,188],{"class":184},[178,6927,197],{"class":184},[178,6929,593],{"class":184},[178,6931,208],{"class":184},[178,6933,188],{"class":184},[178,6935,767],{"class":191},[178,6937,188],{"class":184},[178,6939,517],{"class":184},[178,6941,188],{"class":184},[178,6943,776],{"class":191},[178,6945,188],{"class":184},[178,6947,197],{"class":184},[178,6949,783],{"class":378},[178,6951,208],{"class":184},[178,6953,188],{"class":184},[178,6955,790],{"class":191},[178,6957,188],{"class":184},[178,6959,197],{"class":184},[178,6961,593],{"class":184},[178,6963,208],{"class":184},[178,6965,188],{"class":184},[178,6967,371],{"class":191},[178,6969,188],{"class":184},[178,6971,197],{"class":184},[178,6973,809],{"class":378},[178,6975,208],{"class":184},[178,6977,188],{"class":184},[178,6979,386],{"class":191},[178,6981,188],{"class":184},[178,6983,197],{"class":184},[178,6985,6986],{"class":378},"60",[178,6988,208],{"class":184},[178,6990,188],{"class":184},[178,6992,644],{"class":191},[178,6994,188],{"class":184},[178,6996,832],{"class":184},[178,6998,188],{"class":184},[178,7000,6760],{"class":202},[178,7002,188],{"class":184},[178,7004,841],{"class":184},[178,7006,188],{"class":184},[178,7008,192],{"class":191},[178,7010,188],{"class":184},[178,7012,197],{"class":184},[178,7014,188],{"class":184},[178,7016,6760],{"class":202},[178,7018,188],{"class":184},[178,7020,208],{"class":184},[178,7022,188],{"class":184},[178,7024,213],{"class":191},[178,7026,188],{"class":184},[178,7028,197],{"class":184},[178,7030,188],{"class":184},[178,7032,6187],{"class":202},[178,7034,188],{"class":184},[178,7036,208],{"class":184},[178,7038,188],{"class":184},[178,7040,231],{"class":191},[178,7042,188],{"class":184},[178,7044,197],{"class":184},[178,7046,188],{"class":184},[178,7048,240],{"class":202},[178,7050,188],{"class":184},[178,7052,208],{"class":184},[178,7054,188],{"class":184},[178,7056,478],{"class":191},[178,7058,188],{"class":184},[178,7060,197],{"class":184},[178,7062,188],{"class":184},[178,7064,6669],{"class":202},[178,7066,188],{"class":184},[178,7068,208],{"class":184},[178,7070,188],{"class":184},[178,7072,249],{"class":191},[178,7074,188],{"class":184},[178,7076,197],{"class":184},[178,7078,188],{"class":184},[178,7080,6718],{"class":202},[178,7082,188],{"class":184},[178,7084,208],{"class":184},[178,7086,188],{"class":184},[178,7088,6245],{"class":191},[178,7090,188],{"class":184},[178,7092,197],{"class":184},[178,7094,188],{"class":184},[178,7096,7097],{"class":202},"CREATE TABLE IF NOT EXISTS defects (",[178,7099,941],{"class":940},[178,7101,7102],{"class":202},"    defect_id         VARCHAR(20) PRIMARY KEY,",[178,7104,941],{"class":940},[178,7106,7107],{"class":202},"    date              DATE NOT NULL,",[178,7109,941],{"class":940},[178,7111,7112],{"class":202},"    line              VARCHAR(20),",[178,7114,941],{"class":940},[178,7116,7117],{"class":202},"    station           VARCHAR(30),",[178,7119,941],{"class":940},[178,7121,7122],{"class":202},"    shift             VARCHAR(20),",[178,7124,941],{"class":940},[178,7126,7127],{"class":202},"    sku               VARCHAR(20),",[178,7129,941],{"class":940},[178,7131,7132],{"class":202},"    defect_type       VARCHAR(50),",[178,7134,941],{"class":940},[178,7136,7137],{"class":202},"    defect_category   VARCHAR(30),",[178,7139,941],{"class":940},[178,7141,7142],{"class":202},"    severity          VARCHAR(10),",[178,7144,941],{"class":940},[178,7146,7147],{"class":202},"    detected_stage    VARCHAR(20),",[178,7149,941],{"class":940},[178,7151,7152],{"class":202},"    root_cause        VARCHAR(50),",[178,7154,941],{"class":940},[178,7156,7157],{"class":202},"    disposition       VARCHAR(20),",[178,7159,941],{"class":940},[178,7161,7162],{"class":202},"    status            VARCHAR(20),",[178,7164,941],{"class":940},[178,7166,7167],{"class":202},"    cost_impact       NUMERIC(10,2),",[178,7169,941],{"class":940},[178,7171,7172],{"class":202},"    resolution_hours  NUMERIC(6,1)",[178,7174,941],{"class":940},[178,7176,1198],{"class":202},[178,7178,951],{"class":940},[178,7180,7181],{"class":202},"CREATE INDEX IF NOT EXISTS idx_defects_date ON defects(date);",[178,7183,941],{"class":940},[178,7185,7186],{"class":202},"CREATE INDEX IF NOT EXISTS idx_defects_line ON defects(line);",[178,7188,941],{"class":940},[178,7190,7191],{"class":202},"CREATE INDEX IF NOT EXISTS idx_defects_shift ON defects(shift);",[178,7193,188],{"class":184},[178,7195,208],{"class":184},[178,7197,188],{"class":184},[178,7199,6415],{"class":191},[178,7201,188],{"class":184},[178,7203,536],{"class":184},[178,7205,188],{"class":184},[178,7207,6424],{"class":191},[178,7209,188],{"class":184},[178,7211,197],{"class":184},[178,7213,3418],{"class":378},[178,7215,208],{"class":184},[178,7217,188],{"class":184},[178,7219,371],{"class":191},[178,7221,188],{"class":184},[178,7223,197],{"class":184},[178,7225,7226],{"class":378},"350",[178,7228,208],{"class":184},[178,7230,188],{"class":184},[178,7232,386],{"class":191},[178,7234,188],{"class":184},[178,7236,197],{"class":184},[178,7238,6986],{"class":378},[178,7240,208],{"class":184},[178,7242,188],{"class":184},[178,7244,644],{"class":191},[178,7246,188],{"class":184},[178,7248,832],{"class":184},[178,7250,188],{"class":184},[178,7252,6769],{"class":202},[178,7254,188],{"class":184},[178,7256,841],{"class":184},[178,7258,188],{"class":184},[178,7260,192],{"class":191},[178,7262,188],{"class":184},[178,7264,197],{"class":184},[178,7266,188],{"class":184},[178,7268,6769],{"class":202},[178,7270,188],{"class":184},[178,7272,208],{"class":184},[178,7274,188],{"class":184},[178,7276,213],{"class":191},[178,7278,188],{"class":184},[178,7280,197],{"class":184},[178,7282,188],{"class":184},[178,7284,453],{"class":202},[178,7286,188],{"class":184},[178,7288,208],{"class":184},[178,7290,188],{"class":184},[178,7292,231],{"class":191},[178,7294,188],{"class":184},[178,7296,197],{"class":184},[178,7298,188],{"class":184},[178,7300,240],{"class":202},[178,7302,188],{"class":184},[178,7304,208],{"class":184},[178,7306,188],{"class":184},[178,7308,478],{"class":191},[178,7310,188],{"class":184},[178,7312,197],{"class":184},[178,7314,188],{"class":184},[178,7316,6669],{"class":202},[178,7318,188],{"class":184},[178,7320,208],{"class":184},[178,7322,188],{"class":184},[178,7324,249],{"class":191},[178,7326,188],{"class":184},[178,7328,197],{"class":184},[178,7330,188],{"class":184},[178,7332,503],{"class":202},[178,7334,188],{"class":184},[178,7336,208],{"class":184},[178,7338,188],{"class":184},[178,7340,512],{"class":191},[178,7342,188],{"class":184},[178,7344,517],{"class":184},[178,7346,188],{"class":184},[178,7348,522],{"class":191},[178,7350,188],{"class":184},[178,7352,517],{"class":184},[178,7354,188],{"class":184},[178,7356,531],{"class":191},[178,7358,188],{"class":184},[178,7360,536],{"class":184},[178,7362,188],{"class":184},[178,7364,541],{"class":191},[178,7366,188],{"class":184},[178,7368,536],{"class":184},[178,7370,188],{"class":184},[178,7372,550],{"class":191},[178,7374,188],{"class":184},[178,7376,197],{"class":184},[178,7378,188],{"class":184},[178,7380,559],{"class":202},[178,7382,188],{"class":184},[178,7384,208],{"class":184},[178,7386,188],{"class":184},[178,7388,568],{"class":191},[178,7390,188],{"class":184},[178,7392,197],{"class":184},[178,7394,188],{"class":184},[178,7396,577],{"class":202},[178,7398,188],{"class":184},[178,7400,208],{"class":184},[178,7402,188],{"class":184},[178,7404,586],{"class":191},[178,7406,188],{"class":184},[178,7408,197],{"class":184},[178,7410,593],{"class":184},[178,7412,208],{"class":184},[178,7414,188],{"class":184},[178,7416,600],{"class":191},[178,7418,188],{"class":184},[178,7420,197],{"class":184},[178,7422,188],{"class":184},[178,7424,609],{"class":202},[178,7426,188],{"class":184},[178,7428,208],{"class":184},[178,7430,188],{"class":184},[178,7432,371],{"class":191},[178,7434,188],{"class":184},[178,7436,197],{"class":184},[178,7438,624],{"class":378},[178,7440,208],{"class":184},[178,7442,188],{"class":184},[178,7444,386],{"class":191},[178,7446,188],{"class":184},[178,7448,197],{"class":184},[178,7450,6986],{"class":378},[178,7452,208],{"class":184},[178,7454,188],{"class":184},[178,7456,644],{"class":191},[178,7458,188],{"class":184},[178,7460,649],{"class":184},[178,7462,188],{"class":184},[178,7464,192],{"class":191},[178,7466,188],{"class":184},[178,7468,197],{"class":184},[178,7470,188],{"class":184},[178,7472,7473],{"class":202},"78a99932f3724e3e",[178,7475,188],{"class":184},[178,7477,208],{"class":184},[178,7479,188],{"class":184},[178,7481,213],{"class":191},[178,7483,188],{"class":184},[178,7485,197],{"class":184},[178,7487,188],{"class":184},[178,7489,222],{"class":202},[178,7491,188],{"class":184},[178,7493,208],{"class":184},[178,7495,188],{"class":184},[178,7497,231],{"class":191},[178,7499,188],{"class":184},[178,7501,197],{"class":184},[178,7503,188],{"class":184},[178,7505,240],{"class":202},[178,7507,188],{"class":184},[178,7509,208],{"class":184},[178,7511,188],{"class":184},[178,7513,249],{"class":191},[178,7515,188],{"class":184},[178,7517,197],{"class":184},[178,7519,188],{"class":184},[178,7521,7522],{"class":202},"Delete All Records",[178,7524,188],{"class":184},[178,7526,208],{"class":184},[178,7528,188],{"class":184},[178,7530,267],{"class":191},[178,7532,188],{"class":184},[178,7534,272],{"class":184},[178,7536,188],{"class":184},[178,7538,278],{"class":277},[178,7540,188],{"class":184},[178,7542,283],{"class":184},[178,7544,188],{"class":184},[178,7546,288],{"class":191},[178,7548,188],{"class":184},[178,7550,293],{"class":184},[178,7552,188],{"class":184},[178,7554,7555],{"class":202},"1c3ce2ba4a766cee",[178,7557,188],{"class":184},[178,7559,208],{"class":184},[178,7561,188],{"class":184},[178,7563,7564],{"class":202},"e38d9a6684c6b3bb",[178,7566,188],{"class":184},[178,7568,208],{"class":184},[178,7570,188],{"class":184},[178,7572,7573],{"class":202},"c0c78694aa023826",[178,7575,188],{"class":184},[178,7577,366],{"class":184},[178,7579,188],{"class":184},[178,7581,371],{"class":191},[178,7583,188],{"class":184},[178,7585,197],{"class":184},[178,7587,379],{"class":378},[178,7589,208],{"class":184},[178,7591,188],{"class":184},[178,7593,386],{"class":191},[178,7595,188],{"class":184},[178,7597,197],{"class":184},[178,7599,7600],{"class":378},"119",[178,7602,208],{"class":184},[178,7604,188],{"class":184},[178,7606,400],{"class":191},[178,7608,188],{"class":184},[178,7610,197],{"class":184},[178,7612,407],{"class":378},[178,7614,208],{"class":184},[178,7616,188],{"class":184},[178,7618,414],{"class":191},[178,7620,188],{"class":184},[178,7622,197],{"class":184},[178,7624,6821],{"class":378},[178,7626,424],{"class":184},[178,7628,188],{"class":184},[178,7630,192],{"class":191},[178,7632,188],{"class":184},[178,7634,197],{"class":184},[178,7636,188],{"class":184},[178,7638,7555],{"class":202},[178,7640,188],{"class":184},[178,7642,208],{"class":184},[178,7644,188],{"class":184},[178,7646,213],{"class":191},[178,7648,188],{"class":184},[178,7650,197],{"class":184},[178,7652,188],{"class":184},[178,7654,678],{"class":202},[178,7656,188],{"class":184},[178,7658,208],{"class":184},[178,7660,188],{"class":184},[178,7662,231],{"class":191},[178,7664,188],{"class":184},[178,7666,197],{"class":184},[178,7668,188],{"class":184},[178,7670,240],{"class":202},[178,7672,188],{"class":184},[178,7674,208],{"class":184},[178,7676,188],{"class":184},[178,7678,7679],{"class":191},"d",[178,7681,188],{"class":184},[178,7683,517],{"class":184},[178,7685,188],{"class":184},[178,7687,478],{"class":191},[178,7689,188],{"class":184},[178,7691,197],{"class":184},[178,7693,188],{"class":184},[178,7695,7473],{"class":202},[178,7697,188],{"class":184},[178,7699,208],{"class":184},[178,7701,188],{"class":184},[178,7703,249],{"class":191},[178,7705,188],{"class":184},[178,7707,197],{"class":184},[178,7709,593],{"class":184},[178,7711,208],{"class":184},[178,7713,188],{"class":184},[178,7715,731],{"class":191},[178,7717,188],{"class":184},[178,7719,736],{"class":184},[178,7721,188],{"class":184},[178,7723,741],{"class":191},[178,7725,188],{"class":184},[178,7727,197],{"class":184},[178,7729,593],{"class":184},[178,7731,208],{"class":184},[178,7733,188],{"class":184},[178,7735,754],{"class":191},[178,7737,188],{"class":184},[178,7739,197],{"class":184},[178,7741,593],{"class":184},[178,7743,208],{"class":184},[178,7745,188],{"class":184},[178,7747,767],{"class":191},[178,7749,188],{"class":184},[178,7751,536],{"class":184},[178,7753,188],{"class":184},[178,7755,776],{"class":191},[178,7757,188],{"class":184},[178,7759,197],{"class":184},[178,7761,783],{"class":378},[178,7763,208],{"class":184},[178,7765,188],{"class":184},[178,7767,790],{"class":191},[178,7769,188],{"class":184},[178,7771,197],{"class":184},[178,7773,593],{"class":184},[178,7775,208],{"class":184},[178,7777,188],{"class":184},[178,7779,371],{"class":191},[178,7781,188],{"class":184},[178,7783,197],{"class":184},[178,7785,809],{"class":378},[178,7787,208],{"class":184},[178,7789,188],{"class":184},[178,7791,386],{"class":191},[178,7793,188],{"class":184},[178,7795,197],{"class":184},[178,7797,7798],{"class":378},"160",[178,7800,208],{"class":184},[178,7802,188],{"class":184},[178,7804,644],{"class":191},[178,7806,188],{"class":184},[178,7808,832],{"class":184},[178,7810,188],{"class":184},[178,7812,7564],{"class":202},[178,7814,188],{"class":184},[178,7816,841],{"class":184},[178,7818,188],{"class":184},[178,7820,192],{"class":191},[178,7822,188],{"class":184},[178,7824,197],{"class":184},[178,7826,188],{"class":184},[178,7828,7564],{"class":202},[178,7830,188],{"class":184},[178,7832,208],{"class":184},[178,7834,188],{"class":184},[178,7836,213],{"class":191},[178,7838,188],{"class":184},[178,7840,197],{"class":184},[178,7842,188],{"class":184},[178,7844,6187],{"class":202},[178,7846,188],{"class":184},[178,7848,208],{"class":184},[178,7850,188],{"class":184},[178,7852,231],{"class":191},[178,7854,188],{"class":184},[178,7856,197],{"class":184},[178,7858,188],{"class":184},[178,7860,240],{"class":202},[178,7862,188],{"class":184},[178,7864,208],{"class":184},[178,7866,188],{"class":184},[178,7868,478],{"class":191},[178,7870,188],{"class":184},[178,7872,197],{"class":184},[178,7874,188],{"class":184},[178,7876,7473],{"class":202},[178,7878,188],{"class":184},[178,7880,208],{"class":184},[178,7882,188],{"class":184},[178,7884,249],{"class":191},[178,7886,188],{"class":184},[178,7888,197],{"class":184},[178,7890,188],{"class":184},[178,7892,7522],{"class":202},[178,7894,188],{"class":184},[178,7896,208],{"class":184},[178,7898,188],{"class":184},[178,7900,6245],{"class":191},[178,7902,188],{"class":184},[178,7904,197],{"class":184},[178,7906,188],{"class":184},[178,7908,7909],{"class":202},"DELETE FROM defects;",[178,7911,188],{"class":184},[178,7913,208],{"class":184},[178,7915,188],{"class":184},[178,7917,6415],{"class":191},[178,7919,188],{"class":184},[178,7921,536],{"class":184},[178,7923,188],{"class":184},[178,7925,6424],{"class":191},[178,7927,188],{"class":184},[178,7929,197],{"class":184},[178,7931,3418],{"class":378},[178,7933,208],{"class":184},[178,7935,188],{"class":184},[178,7937,371],{"class":191},[178,7939,188],{"class":184},[178,7941,197],{"class":184},[178,7943,7226],{"class":378},[178,7945,208],{"class":184},[178,7947,188],{"class":184},[178,7949,386],{"class":191},[178,7951,188],{"class":184},[178,7953,197],{"class":184},[178,7955,7798],{"class":378},[178,7957,208],{"class":184},[178,7959,188],{"class":184},[178,7961,644],{"class":191},[178,7963,188],{"class":184},[178,7965,832],{"class":184},[178,7967,188],{"class":184},[178,7969,7573],{"class":202},[178,7971,188],{"class":184},[178,7973,841],{"class":184},[178,7975,188],{"class":184},[178,7977,192],{"class":191},[178,7979,188],{"class":184},[178,7981,197],{"class":184},[178,7983,188],{"class":184},[178,7985,7573],{"class":202},[178,7987,188],{"class":184},[178,7989,208],{"class":184},[178,7991,188],{"class":184},[178,7993,213],{"class":191},[178,7995,188],{"class":184},[178,7997,197],{"class":184},[178,7999,188],{"class":184},[178,8001,453],{"class":202},[178,8003,188],{"class":184},[178,8005,208],{"class":184},[178,8007,188],{"class":184},[178,8009,231],{"class":191},[178,8011,188],{"class":184},[178,8013,197],{"class":184},[178,8015,188],{"class":184},[178,8017,240],{"class":202},[178,8019,188],{"class":184},[178,8021,208],{"class":184},[178,8023,188],{"class":184},[178,8025,478],{"class":191},[178,8027,188],{"class":184},[178,8029,197],{"class":184},[178,8031,188],{"class":184},[178,8033,7473],{"class":202},[178,8035,188],{"class":184},[178,8037,208],{"class":184},[178,8039,188],{"class":184},[178,8041,249],{"class":191},[178,8043,188],{"class":184},[178,8045,197],{"class":184},[178,8047,188],{"class":184},[178,8049,503],{"class":202},[178,8051,188],{"class":184},[178,8053,208],{"class":184},[178,8055,188],{"class":184},[178,8057,512],{"class":191},[178,8059,188],{"class":184},[178,8061,517],{"class":184},[178,8063,188],{"class":184},[178,8065,522],{"class":191},[178,8067,188],{"class":184},[178,8069,517],{"class":184},[178,8071,188],{"class":184},[178,8073,531],{"class":191},[178,8075,188],{"class":184},[178,8077,536],{"class":184},[178,8079,188],{"class":184},[178,8081,541],{"class":191},[178,8083,188],{"class":184},[178,8085,536],{"class":184},[178,8087,188],{"class":184},[178,8089,550],{"class":191},[178,8091,188],{"class":184},[178,8093,197],{"class":184},[178,8095,188],{"class":184},[178,8097,559],{"class":202},[178,8099,188],{"class":184},[178,8101,208],{"class":184},[178,8103,188],{"class":184},[178,8105,568],{"class":191},[178,8107,188],{"class":184},[178,8109,197],{"class":184},[178,8111,188],{"class":184},[178,8113,577],{"class":202},[178,8115,188],{"class":184},[178,8117,208],{"class":184},[178,8119,188],{"class":184},[178,8121,586],{"class":191},[178,8123,188],{"class":184},[178,8125,197],{"class":184},[178,8127,593],{"class":184},[178,8129,208],{"class":184},[178,8131,188],{"class":184},[178,8133,600],{"class":191},[178,8135,188],{"class":184},[178,8137,197],{"class":184},[178,8139,188],{"class":184},[178,8141,609],{"class":202},[178,8143,188],{"class":184},[178,8145,208],{"class":184},[178,8147,188],{"class":184},[178,8149,371],{"class":191},[178,8151,188],{"class":184},[178,8153,197],{"class":184},[178,8155,624],{"class":378},[178,8157,208],{"class":184},[178,8159,188],{"class":184},[178,8161,386],{"class":191},[178,8163,188],{"class":184},[178,8165,197],{"class":184},[178,8167,7798],{"class":378},[178,8169,208],{"class":184},[178,8171,188],{"class":184},[178,8173,644],{"class":191},[178,8175,188],{"class":184},[178,8177,649],{"class":184},[178,8179,188],{"class":184},[178,8181,192],{"class":191},[178,8183,188],{"class":184},[178,8185,197],{"class":184},[178,8187,188],{"class":184},[178,8189,8190],{"class":202},"d7a304ca96634e82",[178,8192,188],{"class":184},[178,8194,208],{"class":184},[178,8196,188],{"class":184},[178,8198,213],{"class":191},[178,8200,188],{"class":184},[178,8202,197],{"class":184},[178,8204,188],{"class":184},[178,8206,8207],{"class":202},"global-config",[178,8209,188],{"class":184},[178,8211,208],{"class":184},[178,8213,188],{"class":184},[178,8215,8216],{"class":191},"env",[178,8218,188],{"class":184},[178,8220,736],{"class":184},[178,8222,188],{"class":184},[178,8224,8225],{"class":191},"modules",[178,8227,188],{"class":184},[178,8229,272],{"class":184},[178,8231,188],{"class":184},[178,8233,8234],{"class":277},"@flowfuse\u002Fnr-tables-nodes",[178,8236,188],{"class":184},[178,8238,197],{"class":184},[178,8240,188],{"class":184},[178,8242,8243],{"class":202},"0.2.2",[178,8245,188],{"class":184},[178,8247,8248],{"class":184},"}}]\n",[12,8250,8251],{},"Both run automatically on deploy: no buttons to click. The table is created first, the historical seed lands a few seconds later, and the live feed takes over from there. Within moments your table holds over a thousand records and keeps growing.",[8253,8254,8256],"h3",{"id":8255},"the-schema-it-creates","The schema it creates",[12,8258,8259,8260,8262],{},"You don't run this yourself; the import handles it. But it's the contract the whole dashboard depends on, so it's worth knowing what the ",[79,8261,151],{}," table looks like, especially if you later point the dashboard at your own database:",[169,8264,8268],{"className":8265,"code":8266,"language":8267,"meta":174,"style":174},"language-sql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","CREATE TABLE IF NOT EXISTS defects (\n    defect_id         VARCHAR(20) PRIMARY KEY,\n    date              DATE NOT NULL,\n    line              VARCHAR(20),\n    station           VARCHAR(30),\n    shift             VARCHAR(20),\n    sku               VARCHAR(20),\n    defect_type       VARCHAR(50),\n    defect_category   VARCHAR(30),\n    severity          VARCHAR(10),\n    detected_stage    VARCHAR(20),\n    root_cause        VARCHAR(50),\n    disposition       VARCHAR(20),\n    status            VARCHAR(20),\n    cost_impact       NUMERIC(10,2),\n    resolution_hours  NUMERIC(6,1)\n);\n\nCREATE INDEX IF NOT EXISTS idx_defects_date ON defects(date);\nCREATE INDEX IF NOT EXISTS idx_defects_line ON defects(line);\nCREATE INDEX IF NOT EXISTS idx_defects_shift ON defects(shift);\n","sql",[79,8269,8270,8275,8281,8287,8293,8299,8305,8311,8317,8323,8329,8335,8341,8347,8353,8359,8365,8371,8378,8384,8390],{"__ignoreMap":174},[178,8271,8272],{"class":180,"line":181},[178,8273,8274],{},"CREATE TABLE IF NOT EXISTS defects (\n",[178,8276,8278],{"class":180,"line":8277},2,[178,8279,8280],{},"    defect_id         VARCHAR(20) PRIMARY KEY,\n",[178,8282,8284],{"class":180,"line":8283},3,[178,8285,8286],{},"    date              DATE NOT NULL,\n",[178,8288,8290],{"class":180,"line":8289},4,[178,8291,8292],{},"    line              VARCHAR(20),\n",[178,8294,8296],{"class":180,"line":8295},5,[178,8297,8298],{},"    station           VARCHAR(30),\n",[178,8300,8302],{"class":180,"line":8301},6,[178,8303,8304],{},"    shift             VARCHAR(20),\n",[178,8306,8308],{"class":180,"line":8307},7,[178,8309,8310],{},"    sku               VARCHAR(20),\n",[178,8312,8314],{"class":180,"line":8313},8,[178,8315,8316],{},"    defect_type       VARCHAR(50),\n",[178,8318,8320],{"class":180,"line":8319},9,[178,8321,8322],{},"    defect_category   VARCHAR(30),\n",[178,8324,8326],{"class":180,"line":8325},10,[178,8327,8328],{},"    severity          VARCHAR(10),\n",[178,8330,8332],{"class":180,"line":8331},11,[178,8333,8334],{},"    detected_stage    VARCHAR(20),\n",[178,8336,8338],{"class":180,"line":8337},12,[178,8339,8340],{},"    root_cause        VARCHAR(50),\n",[178,8342,8344],{"class":180,"line":8343},13,[178,8345,8346],{},"    disposition       VARCHAR(20),\n",[178,8348,8350],{"class":180,"line":8349},14,[178,8351,8352],{},"    status            VARCHAR(20),\n",[178,8354,8356],{"class":180,"line":8355},15,[178,8357,8358],{},"    cost_impact       NUMERIC(10,2),\n",[178,8360,8362],{"class":180,"line":8361},16,[178,8363,8364],{},"    resolution_hours  NUMERIC(6,1)\n",[178,8366,8368],{"class":180,"line":8367},17,[178,8369,8370],{},");\n",[178,8372,8374],{"class":180,"line":8373},18,[178,8375,8377],{"emptyLinePlaceholder":8376},true,"\n",[178,8379,8381],{"class":180,"line":8380},19,[178,8382,8383],{},"CREATE INDEX IF NOT EXISTS idx_defects_date ON defects(date);\n",[178,8385,8387],{"class":180,"line":8386},20,[178,8388,8389],{},"CREATE INDEX IF NOT EXISTS idx_defects_line ON defects(line);\n",[178,8391,8393],{"class":180,"line":8392},21,[178,8394,8395],{},"CREATE INDEX IF NOT EXISTS idx_defects_shift ON defects(shift);\n",[12,8397,8398,8399,86,8401,86,8403,86,8405,8407,8408,86,8410,86,8412,8414,8415,86,8417,86,8419,8421,8422,86,8424,8426],{},"Each row is one defect. The columns group into where it happened (",[79,8400,180],{},[79,8402,1054],{},[79,8404,1063],{},[79,8406,1072],{},"), what it was (",[79,8409,1083],{},[79,8411,1101],{},[79,8413,1110],{},"), how it was handled (",[79,8416,1121],{},[79,8418,1130],{},[79,8420,1139],{},"), and what it cost (",[79,8423,1148],{},[79,8425,1157],{},"). The three indexes cover the columns the dashboard filters by, so queries stay fast as the table grows.",[41,8428,8430],{"id":8429},"building-the-query","Building the Query",[12,8432,8433],{},"Running one query per widget means a dozen database trips on every refresh. This dashboard runs a single query instead. It returns one row where each field holds one widget's data, and every widget reads just its own field.",[12,8435,8436,8437,8440,8441,8444,8445,8448],{},"Two CTEs at the top do the filtering. ",[79,8438,8439],{},"filtered_all"," applies all three filters: line, shift, and date range. ",[79,8442,8443],{},"filtered_line_and_shift"," skips the date filter, so the live ticker always shows the latest defects. After that, one ",[79,8446,8447],{},"json_agg"," block builds the data for each widget:",[105,8450,8451],{},[12,8452,8453,8454,8458],{},"Tip: You don't have to write SQL yourself. Use ",[32,8455,8457],{"href":8456},"\u002Fblog\u002F2025\u002F09\u002Fai-assistant-flowfuse-tables\u002F","FlowFuse Expert"," and describe the interface in plain English. It will generate the ui-template code for you.",[169,8460,8462],{"className":8265,"code":8461,"language":8267,"meta":174,"style":174},"WITH\n  filtered_all AS ( -- full 3-filter set, used by almost every widget\n    SELECT * FROM defects\n    WHERE ($line = 'All' OR line = $line)\n      AND ($shift = 'All' OR shift = $shift)\n      AND date >= CURRENT_DATE - ($daysback || ' days')::interval\n  ),\n  filtered_line_and_shift AS ( -- ticker: \"right now\" view, ignores the date filter\n    SELECT * FROM defects\n    WHERE ($line = 'All' OR line = $line) AND ($shift = 'All' OR shift = $shift)\n  )\nSELECT\n  -- stat cards + cost of poor quality (one pass over the filtered rows)\n  (SELECT json_agg(t) FROM (\n    SELECT\n      COUNT(*) FILTER (WHERE status IN ('Resolved','Verified'))     AS closed_count,\n      COUNT(*) FILTER (WHERE status NOT IN ('Resolved','Verified')) AS open_count,\n      COUNT(*)                    AS total_count,\n      ROUND(SUM(cost_impact), 2)  AS total_copq\n    FROM filtered_all\n  ) t) AS stat_cards_and_copq,\n\n  -- average resolution time + SLA breach per severity\n  -- (SLA targets: Critical 24h, Major 72h, Minor 168h)\n  (SELECT json_agg(t) FROM (\n    SELECT severity,\n      ROUND(AVG(resolution_hours), 1) AS avg_resolution_hours,\n      COUNT(*)                        AS resolved_count,\n      COUNT(*) FILTER (WHERE resolution_hours >\n        CASE severity WHEN 'Critical' THEN 24 WHEN 'Major' THEN 72 ELSE 168 END) AS sla_breached_count,\n      ROUND(100.0 * COUNT(*) FILTER (WHERE resolution_hours >\n        CASE severity WHEN 'Critical' THEN 24 WHEN 'Major' THEN 72 ELSE 168 END)\n        \u002F NULLIF(COUNT(*), 0), 1) AS sla_breach_pct\n    FROM filtered_all WHERE status IN ('Resolved', 'Verified')\n    GROUP BY severity\n    ORDER BY CASE severity WHEN 'Critical' THEN 1 WHEN 'Major' THEN 2 ELSE 3 END\n  ) t) AS avg_resolution_and_sla,\n\n  -- Pareto: defect-type counts with a cumulative % (window functions)\n  (SELECT json_agg(t) FROM (\n    SELECT defect_type, COUNT(*) AS defect_count,\n      ROUND(100.0 * COUNT(*) \u002F SUM(COUNT(*)) OVER (), 1) AS pct_of_total,\n      ROUND(SUM(COUNT(*)) OVER (ORDER BY COUNT(*) DESC) * 100.0\n            \u002F SUM(COUNT(*)) OVER (), 1) AS cumulative_pct\n    FROM filtered_all GROUP BY defect_type ORDER BY defect_count DESC\n  ) t) AS pareto,\n\n  -- daily trend\n  (SELECT json_agg(t) FROM (\n    SELECT date, COUNT(*) AS defect_count\n    FROM filtered_all GROUP BY date ORDER BY date\n  ) t) AS trend,\n\n  -- disposition breakdown\n  (SELECT json_agg(t) FROM (\n    SELECT disposition, COUNT(*) AS defect_count, ROUND(SUM(cost_impact), 2) AS total_cost\n    FROM filtered_all GROUP BY disposition ORDER BY defect_count DESC\n  ) t) AS disposition,\n\n  -- severity breakdown\n  (SELECT json_agg(t) FROM (\n    SELECT severity, COUNT(*) AS defect_count\n    FROM filtered_all GROUP BY severity\n    ORDER BY CASE severity WHEN 'Critical' THEN 1 WHEN 'Major' THEN 2 ELSE 3 END\n  ) t) AS severity,\n\n  -- root-cause breakdown\n  (SELECT json_agg(t) FROM (\n    SELECT root_cause, COUNT(*) AS defect_count\n    FROM filtered_all GROUP BY root_cause ORDER BY defect_count DESC\n  ) t) AS root_cause,\n\n  -- status funnel, ordered by workflow stage\n  (SELECT json_agg(t) FROM (\n    SELECT status, COUNT(*) AS defect_count\n    FROM filtered_all GROUP BY status\n    ORDER BY CASE status WHEN 'Detected' THEN 1 WHEN 'RCA' THEN 2 WHEN 'Corrective Action' THEN 3\n      WHEN 'Resolved' THEN 4 WHEN 'Verified' THEN 5 END\n  ) t) AS status_funnel,\n\n  -- most recent 20 defects, for the live ticker\n  (SELECT json_agg(t) FROM (\n    SELECT defect_id, date, line, station, defect_type, severity, status, cost_impact\n    FROM filtered_line_and_shift ORDER BY defect_id DESC LIMIT 20\n  ) t) AS ticker;\n",[79,8463,8464,8469,8474,8479,8484,8489,8494,8499,8504,8508,8513,8518,8523,8528,8533,8538,8543,8548,8553,8558,8563,8568,8573,8579,8585,8590,8596,8602,8608,8614,8620,8626,8632,8638,8644,8650,8656,8662,8667,8673,8678,8684,8690,8696,8702,8708,8714,8719,8725,8730,8736,8742,8748,8753,8759,8764,8770,8776,8782,8787,8793,8798,8804,8810,8815,8821,8826,8832,8837,8843,8849,8855,8860,8866,8871,8877,8883,8889,8895,8901,8906,8912,8917,8923,8929],{"__ignoreMap":174},[178,8465,8466],{"class":180,"line":181},[178,8467,8468],{},"WITH\n",[178,8470,8471],{"class":180,"line":8277},[178,8472,8473],{},"  filtered_all AS ( -- full 3-filter set, used by almost every widget\n",[178,8475,8476],{"class":180,"line":8283},[178,8477,8478],{},"    SELECT * FROM defects\n",[178,8480,8481],{"class":180,"line":8289},[178,8482,8483],{},"    WHERE ($line = 'All' OR line = $line)\n",[178,8485,8486],{"class":180,"line":8295},[178,8487,8488],{},"      AND ($shift = 'All' OR shift = $shift)\n",[178,8490,8491],{"class":180,"line":8301},[178,8492,8493],{},"      AND date >= CURRENT_DATE - ($daysback || ' days')::interval\n",[178,8495,8496],{"class":180,"line":8307},[178,8497,8498],{},"  ),\n",[178,8500,8501],{"class":180,"line":8313},[178,8502,8503],{},"  filtered_line_and_shift AS ( -- ticker: \"right now\" view, ignores the date filter\n",[178,8505,8506],{"class":180,"line":8319},[178,8507,8478],{},[178,8509,8510],{"class":180,"line":8325},[178,8511,8512],{},"    WHERE ($line = 'All' OR line = $line) AND ($shift = 'All' OR shift = $shift)\n",[178,8514,8515],{"class":180,"line":8331},[178,8516,8517],{},"  )\n",[178,8519,8520],{"class":180,"line":8337},[178,8521,8522],{},"SELECT\n",[178,8524,8525],{"class":180,"line":8343},[178,8526,8527],{},"  -- stat cards + cost of poor quality (one pass over the filtered rows)\n",[178,8529,8530],{"class":180,"line":8349},[178,8531,8532],{},"  (SELECT json_agg(t) FROM (\n",[178,8534,8535],{"class":180,"line":8355},[178,8536,8537],{},"    SELECT\n",[178,8539,8540],{"class":180,"line":8361},[178,8541,8542],{},"      COUNT(*) FILTER (WHERE status IN ('Resolved','Verified'))     AS closed_count,\n",[178,8544,8545],{"class":180,"line":8367},[178,8546,8547],{},"      COUNT(*) FILTER (WHERE status NOT IN ('Resolved','Verified')) AS open_count,\n",[178,8549,8550],{"class":180,"line":8373},[178,8551,8552],{},"      COUNT(*)                    AS total_count,\n",[178,8554,8555],{"class":180,"line":8380},[178,8556,8557],{},"      ROUND(SUM(cost_impact), 2)  AS total_copq\n",[178,8559,8560],{"class":180,"line":8386},[178,8561,8562],{},"    FROM filtered_all\n",[178,8564,8565],{"class":180,"line":8392},[178,8566,8567],{},"  ) t) AS stat_cards_and_copq,\n",[178,8569,8571],{"class":180,"line":8570},22,[178,8572,8377],{"emptyLinePlaceholder":8376},[178,8574,8576],{"class":180,"line":8575},23,[178,8577,8578],{},"  -- average resolution time + SLA breach per severity\n",[178,8580,8582],{"class":180,"line":8581},24,[178,8583,8584],{},"  -- (SLA targets: Critical 24h, Major 72h, Minor 168h)\n",[178,8586,8588],{"class":180,"line":8587},25,[178,8589,8532],{},[178,8591,8593],{"class":180,"line":8592},26,[178,8594,8595],{},"    SELECT severity,\n",[178,8597,8599],{"class":180,"line":8598},27,[178,8600,8601],{},"      ROUND(AVG(resolution_hours), 1) AS avg_resolution_hours,\n",[178,8603,8605],{"class":180,"line":8604},28,[178,8606,8607],{},"      COUNT(*)                        AS resolved_count,\n",[178,8609,8611],{"class":180,"line":8610},29,[178,8612,8613],{},"      COUNT(*) FILTER (WHERE resolution_hours >\n",[178,8615,8617],{"class":180,"line":8616},30,[178,8618,8619],{},"        CASE severity WHEN 'Critical' THEN 24 WHEN 'Major' THEN 72 ELSE 168 END) AS sla_breached_count,\n",[178,8621,8623],{"class":180,"line":8622},31,[178,8624,8625],{},"      ROUND(100.0 * COUNT(*) FILTER (WHERE resolution_hours >\n",[178,8627,8629],{"class":180,"line":8628},32,[178,8630,8631],{},"        CASE severity WHEN 'Critical' THEN 24 WHEN 'Major' THEN 72 ELSE 168 END)\n",[178,8633,8635],{"class":180,"line":8634},33,[178,8636,8637],{},"        \u002F NULLIF(COUNT(*), 0), 1) AS sla_breach_pct\n",[178,8639,8641],{"class":180,"line":8640},34,[178,8642,8643],{},"    FROM filtered_all WHERE status IN ('Resolved', 'Verified')\n",[178,8645,8647],{"class":180,"line":8646},35,[178,8648,8649],{},"    GROUP BY severity\n",[178,8651,8653],{"class":180,"line":8652},36,[178,8654,8655],{},"    ORDER BY CASE severity WHEN 'Critical' THEN 1 WHEN 'Major' THEN 2 ELSE 3 END\n",[178,8657,8659],{"class":180,"line":8658},37,[178,8660,8661],{},"  ) t) AS avg_resolution_and_sla,\n",[178,8663,8665],{"class":180,"line":8664},38,[178,8666,8377],{"emptyLinePlaceholder":8376},[178,8668,8670],{"class":180,"line":8669},39,[178,8671,8672],{},"  -- Pareto: defect-type counts with a cumulative % (window functions)\n",[178,8674,8676],{"class":180,"line":8675},40,[178,8677,8532],{},[178,8679,8681],{"class":180,"line":8680},41,[178,8682,8683],{},"    SELECT defect_type, COUNT(*) AS defect_count,\n",[178,8685,8687],{"class":180,"line":8686},42,[178,8688,8689],{},"      ROUND(100.0 * COUNT(*) \u002F SUM(COUNT(*)) OVER (), 1) AS pct_of_total,\n",[178,8691,8693],{"class":180,"line":8692},43,[178,8694,8695],{},"      ROUND(SUM(COUNT(*)) OVER (ORDER BY COUNT(*) DESC) * 100.0\n",[178,8697,8699],{"class":180,"line":8698},44,[178,8700,8701],{},"            \u002F SUM(COUNT(*)) OVER (), 1) AS cumulative_pct\n",[178,8703,8705],{"class":180,"line":8704},45,[178,8706,8707],{},"    FROM filtered_all GROUP BY defect_type ORDER BY defect_count DESC\n",[178,8709,8711],{"class":180,"line":8710},46,[178,8712,8713],{},"  ) t) AS pareto,\n",[178,8715,8717],{"class":180,"line":8716},47,[178,8718,8377],{"emptyLinePlaceholder":8376},[178,8720,8722],{"class":180,"line":8721},48,[178,8723,8724],{},"  -- daily trend\n",[178,8726,8728],{"class":180,"line":8727},49,[178,8729,8532],{},[178,8731,8733],{"class":180,"line":8732},50,[178,8734,8735],{},"    SELECT date, COUNT(*) AS defect_count\n",[178,8737,8739],{"class":180,"line":8738},51,[178,8740,8741],{},"    FROM filtered_all GROUP BY date ORDER BY date\n",[178,8743,8745],{"class":180,"line":8744},52,[178,8746,8747],{},"  ) t) AS trend,\n",[178,8749,8751],{"class":180,"line":8750},53,[178,8752,8377],{"emptyLinePlaceholder":8376},[178,8754,8756],{"class":180,"line":8755},54,[178,8757,8758],{},"  -- disposition breakdown\n",[178,8760,8762],{"class":180,"line":8761},55,[178,8763,8532],{},[178,8765,8767],{"class":180,"line":8766},56,[178,8768,8769],{},"    SELECT disposition, COUNT(*) AS defect_count, ROUND(SUM(cost_impact), 2) AS total_cost\n",[178,8771,8773],{"class":180,"line":8772},57,[178,8774,8775],{},"    FROM filtered_all GROUP BY disposition ORDER BY defect_count DESC\n",[178,8777,8779],{"class":180,"line":8778},58,[178,8780,8781],{},"  ) t) AS disposition,\n",[178,8783,8785],{"class":180,"line":8784},59,[178,8786,8377],{"emptyLinePlaceholder":8376},[178,8788,8790],{"class":180,"line":8789},60,[178,8791,8792],{},"  -- severity breakdown\n",[178,8794,8796],{"class":180,"line":8795},61,[178,8797,8532],{},[178,8799,8801],{"class":180,"line":8800},62,[178,8802,8803],{},"    SELECT severity, COUNT(*) AS defect_count\n",[178,8805,8807],{"class":180,"line":8806},63,[178,8808,8809],{},"    FROM filtered_all GROUP BY severity\n",[178,8811,8813],{"class":180,"line":8812},64,[178,8814,8655],{},[178,8816,8818],{"class":180,"line":8817},65,[178,8819,8820],{},"  ) t) AS severity,\n",[178,8822,8824],{"class":180,"line":8823},66,[178,8825,8377],{"emptyLinePlaceholder":8376},[178,8827,8829],{"class":180,"line":8828},67,[178,8830,8831],{},"  -- root-cause breakdown\n",[178,8833,8835],{"class":180,"line":8834},68,[178,8836,8532],{},[178,8838,8840],{"class":180,"line":8839},69,[178,8841,8842],{},"    SELECT root_cause, COUNT(*) AS defect_count\n",[178,8844,8846],{"class":180,"line":8845},70,[178,8847,8848],{},"    FROM filtered_all GROUP BY root_cause ORDER BY defect_count DESC\n",[178,8850,8852],{"class":180,"line":8851},71,[178,8853,8854],{},"  ) t) AS root_cause,\n",[178,8856,8858],{"class":180,"line":8857},72,[178,8859,8377],{"emptyLinePlaceholder":8376},[178,8861,8863],{"class":180,"line":8862},73,[178,8864,8865],{},"  -- status funnel, ordered by workflow stage\n",[178,8867,8869],{"class":180,"line":8868},74,[178,8870,8532],{},[178,8872,8874],{"class":180,"line":8873},75,[178,8875,8876],{},"    SELECT status, COUNT(*) AS defect_count\n",[178,8878,8880],{"class":180,"line":8879},76,[178,8881,8882],{},"    FROM filtered_all GROUP BY status\n",[178,8884,8886],{"class":180,"line":8885},77,[178,8887,8888],{},"    ORDER BY CASE status WHEN 'Detected' THEN 1 WHEN 'RCA' THEN 2 WHEN 'Corrective Action' THEN 3\n",[178,8890,8892],{"class":180,"line":8891},78,[178,8893,8894],{},"      WHEN 'Resolved' THEN 4 WHEN 'Verified' THEN 5 END\n",[178,8896,8898],{"class":180,"line":8897},79,[178,8899,8900],{},"  ) t) AS status_funnel,\n",[178,8902,8904],{"class":180,"line":8903},80,[178,8905,8377],{"emptyLinePlaceholder":8376},[178,8907,8909],{"class":180,"line":8908},81,[178,8910,8911],{},"  -- most recent 20 defects, for the live ticker\n",[178,8913,8915],{"class":180,"line":8914},82,[178,8916,8532],{},[178,8918,8920],{"class":180,"line":8919},83,[178,8921,8922],{},"    SELECT defect_id, date, line, station, defect_type, severity, status, cost_impact\n",[178,8924,8926],{"class":180,"line":8925},84,[178,8927,8928],{},"    FROM filtered_line_and_shift ORDER BY defect_id DESC LIMIT 20\n",[178,8930,8932],{"class":180,"line":8931},85,[178,8933,8934],{},"  ) t) AS ticker;\n",[12,8936,8937],{},"With the query written, wire it up so it runs on a timer and its result reaches every widget.",[8939,8940,8941],"ol",{},[52,8942,8943,8944,86,8947,93,8950,8953,8954],{},"Add a change node before the Query node and name it \"Set Params\". This maps the saved filters onto the ",[79,8945,8946],{},"$line",[79,8948,8949],{},"$shift",[79,8951,8952],{},"$daysback"," parameters the SQL reads. Set four rules, in order:",[49,8955,8956,8967,8976,8984],{},[52,8957,8958,8959,8962,8963,8966],{},"Set ",[79,8960,8961],{},"queryParameters"," to ",[79,8964,8965],{},"{}"," (JSON): starts clean so stale values don't linger.",[52,8968,8958,8969,8962,8972,8975],{},[79,8970,8971],{},"queryParameters.line",[79,8973,8974],{},"filters.line"," (global persistent).",[52,8977,8958,8978,8962,8981,8975],{},[79,8979,8980],{},"queryParameters.shift",[79,8982,8983],{},"filters.shift",[52,8985,8958,8986,8962,8989,8975],{},[79,8987,8988],{},"queryParameters.daysback",[79,8990,8991],{},"filters.dateRange",[12,8993,8994,8998],{},[18,8995],{"alt":8996,"src":8997},"Screenshot: Set Params change node with its four rules","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Fset-params-change-node.png",[23,8999,9000],{},"The \"Set Params\" change node open in the edit panel, all four rules visible.",[8939,9002,9003,9006],{},[52,9004,9005],{},"Add an inject node named \"Poll Data\" and set it to repeat every 10 to 30 seconds. Wire it into \"Set Params\"; this re-runs the query on a timer so the dashboard keeps up as new defects arrive. Also add a link in node here, named \"Refresh Trigger,\" and connect it to the \"Set Params\" change node; this will let the filter flow you build next trigger a refresh as well.",[52,9007,9008],{},"After the Query node, add a single link out node and name it \"KPI Result\". Each widget you build next will connect a link in node to it, so the one result broadcasts to every widget at once.",[41,9010,9012],{"id":9011},"adding-the-filters","Adding the Filters",[12,9014,9015,9016,9019],{},"The filters go in the dashboard header rather than a widget group, since they control the whole page, not one chart. Each selection saves to the global ",[79,9017,9018],{},"filters"," object that \"Set Params\" reads before every query run.",[8939,9021,9022,9025],{},[52,9023,9024],{},"Add a ui-event node. It fires on page load, so a fresh browser session starts with the dropdowns populated.",[52,9026,9027,9028,9030],{},"Add a change node named \"Set Filters\". Set ",[79,9029,559],{}," to one JSON object containing your filter options. For this tutorial it looks like the following, but update it to match your table:",[169,9032,9034],{"className":171,"code":9033,"language":173,"meta":174,"style":174},"{\n    \"line\": \"SUV Line\",\n    \"shift\": \"Night\",\n    \"dateRange\": 30,\n    \"lineOptions\": [\n        \"All\",\n        \"Sedan Line\",\n        \"SUV Line\",\n        \"EV Line\"\n    ],\n    \"shiftOptions\": [\n        \"All\",\n        \"Morning\",\n        \"Evening\",\n        \"Night\"\n    ],\n    \"dateRangeOptions\": [\n        {\n            \"label\": \"Last 7 days\",\n            \"value\": 7\n        },\n        {\n            \"label\": \"Last 30 days\",\n            \"value\": 30\n        },\n        {\n            \"label\": \"Last 90 days\",\n            \"value\": 90\n        },\n        {\n            \"label\": \"All time\",\n            \"value\": 100000\n        }\n    ]\n}\n",[79,9035,9036,9041,9062,9080,9096,9110,9122,9132,9142,9151,9156,9169,9179,9189,9199,9207,9211,9224,9229,9249,9263,9268,9272,9291,9304,9308,9312,9331,9344,9348,9352,9371,9384,9389,9394],{"__ignoreMap":174},[178,9037,9038],{"class":180,"line":181},[178,9039,9040],{"class":184},"{\n",[178,9042,9043,9046,9048,9050,9052,9055,9057,9059],{"class":180,"line":8277},[178,9044,9045],{"class":184},"    \"",[178,9047,180],{"class":191},[178,9049,188],{"class":184},[178,9051,197],{"class":184},[178,9053,9054],{"class":184}," \"",[178,9056,1251],{"class":202},[178,9058,188],{"class":184},[178,9060,9061],{"class":184},",\n",[178,9063,9064,9066,9068,9070,9072,9074,9076,9078],{"class":180,"line":8283},[178,9065,9045],{"class":184},[178,9067,1063],{"class":191},[178,9069,188],{"class":184},[178,9071,197],{"class":184},[178,9073,9054],{"class":184},[178,9075,1303],{"class":202},[178,9077,188],{"class":184},[178,9079,9061],{"class":184},[178,9081,9082,9084,9087,9089,9091,9094],{"class":180,"line":8289},[178,9083,9045],{"class":184},[178,9085,9086],{"class":191},"dateRange",[178,9088,188],{"class":184},[178,9090,197],{"class":184},[178,9092,9093],{"class":378}," 30",[178,9095,9061],{"class":184},[178,9097,9098,9100,9103,9105,9107],{"class":180,"line":8295},[178,9099,9045],{"class":184},[178,9101,9102],{"class":191},"lineOptions",[178,9104,188],{"class":184},[178,9106,197],{"class":184},[178,9108,9109],{"class":184}," [\n",[178,9111,9112,9115,9118,9120],{"class":180,"line":8301},[178,9113,9114],{"class":184},"        \"",[178,9116,9117],{"class":202},"All",[178,9119,188],{"class":184},[178,9121,9061],{"class":184},[178,9123,9124,9126,9128,9130],{"class":180,"line":8307},[178,9125,9114],{"class":184},[178,9127,1242],{"class":202},[178,9129,188],{"class":184},[178,9131,9061],{"class":184},[178,9133,9134,9136,9138,9140],{"class":180,"line":8313},[178,9135,9114],{"class":184},[178,9137,1251],{"class":202},[178,9139,188],{"class":184},[178,9141,9061],{"class":184},[178,9143,9144,9146,9148],{"class":180,"line":8319},[178,9145,9114],{"class":184},[178,9147,1260],{"class":202},[178,9149,9150],{"class":184},"\"\n",[178,9152,9153],{"class":180,"line":8325},[178,9154,9155],{"class":184},"    ],\n",[178,9157,9158,9160,9163,9165,9167],{"class":180,"line":8331},[178,9159,9045],{"class":184},[178,9161,9162],{"class":191},"shiftOptions",[178,9164,188],{"class":184},[178,9166,197],{"class":184},[178,9168,9109],{"class":184},[178,9170,9171,9173,9175,9177],{"class":180,"line":8337},[178,9172,9114],{"class":184},[178,9174,9117],{"class":202},[178,9176,188],{"class":184},[178,9178,9061],{"class":184},[178,9180,9181,9183,9185,9187],{"class":180,"line":8343},[178,9182,9114],{"class":184},[178,9184,1285],{"class":202},[178,9186,188],{"class":184},[178,9188,9061],{"class":184},[178,9190,9191,9193,9195,9197],{"class":180,"line":8349},[178,9192,9114],{"class":184},[178,9194,1294],{"class":202},[178,9196,188],{"class":184},[178,9198,9061],{"class":184},[178,9200,9201,9203,9205],{"class":180,"line":8355},[178,9202,9114],{"class":184},[178,9204,1303],{"class":202},[178,9206,9150],{"class":184},[178,9208,9209],{"class":180,"line":8361},[178,9210,9155],{"class":184},[178,9212,9213,9215,9218,9220,9222],{"class":180,"line":8367},[178,9214,9045],{"class":184},[178,9216,9217],{"class":191},"dateRangeOptions",[178,9219,188],{"class":184},[178,9221,197],{"class":184},[178,9223,9109],{"class":184},[178,9225,9226],{"class":180,"line":8373},[178,9227,9228],{"class":184},"        {\n",[178,9230,9231,9234,9236,9238,9240,9242,9245,9247],{"class":180,"line":8380},[178,9232,9233],{"class":184},"            \"",[178,9235,278],{"class":277},[178,9237,188],{"class":184},[178,9239,197],{"class":184},[178,9241,9054],{"class":184},[178,9243,9244],{"class":202},"Last 7 days",[178,9246,188],{"class":184},[178,9248,9061],{"class":184},[178,9250,9251,9253,9256,9258,9260],{"class":180,"line":8386},[178,9252,9233],{"class":184},[178,9254,9255],{"class":277},"value",[178,9257,188],{"class":184},[178,9259,197],{"class":184},[178,9261,9262],{"class":378}," 7\n",[178,9264,9265],{"class":180,"line":8392},[178,9266,9267],{"class":184},"        },\n",[178,9269,9270],{"class":180,"line":8570},[178,9271,9228],{"class":184},[178,9273,9274,9276,9278,9280,9282,9284,9287,9289],{"class":180,"line":8575},[178,9275,9233],{"class":184},[178,9277,278],{"class":277},[178,9279,188],{"class":184},[178,9281,197],{"class":184},[178,9283,9054],{"class":184},[178,9285,9286],{"class":202},"Last 30 days",[178,9288,188],{"class":184},[178,9290,9061],{"class":184},[178,9292,9293,9295,9297,9299,9301],{"class":180,"line":8581},[178,9294,9233],{"class":184},[178,9296,9255],{"class":277},[178,9298,188],{"class":184},[178,9300,197],{"class":184},[178,9302,9303],{"class":378}," 30\n",[178,9305,9306],{"class":180,"line":8587},[178,9307,9267],{"class":184},[178,9309,9310],{"class":180,"line":8592},[178,9311,9228],{"class":184},[178,9313,9314,9316,9318,9320,9322,9324,9327,9329],{"class":180,"line":8598},[178,9315,9233],{"class":184},[178,9317,278],{"class":277},[178,9319,188],{"class":184},[178,9321,197],{"class":184},[178,9323,9054],{"class":184},[178,9325,9326],{"class":202},"Last 90 days",[178,9328,188],{"class":184},[178,9330,9061],{"class":184},[178,9332,9333,9335,9337,9339,9341],{"class":180,"line":8604},[178,9334,9233],{"class":184},[178,9336,9255],{"class":277},[178,9338,188],{"class":184},[178,9340,197],{"class":184},[178,9342,9343],{"class":378}," 90\n",[178,9345,9346],{"class":180,"line":8610},[178,9347,9267],{"class":184},[178,9349,9350],{"class":180,"line":8616},[178,9351,9228],{"class":184},[178,9353,9354,9356,9358,9360,9362,9364,9367,9369],{"class":180,"line":8622},[178,9355,9233],{"class":184},[178,9357,278],{"class":277},[178,9359,188],{"class":184},[178,9361,197],{"class":184},[178,9363,9054],{"class":184},[178,9365,9366],{"class":202},"All time",[178,9368,188],{"class":184},[178,9370,9061],{"class":184},[178,9372,9373,9375,9377,9379,9381],{"class":180,"line":8628},[178,9374,9233],{"class":184},[178,9376,9255],{"class":277},[178,9378,188],{"class":184},[178,9380,197],{"class":184},[178,9382,9383],{"class":378}," 100000\n",[178,9385,9386],{"class":180,"line":8634},[178,9387,9388],{"class":184},"        }\n",[178,9390,9391],{"class":180,"line":8640},[178,9392,9393],{"class":184},"    ]\n",[178,9395,9396],{"class":180,"line":8646},[178,9397,9398],{"class":184},"}\n",[8939,9400,9401],{"start":8283},[52,9402,9403,9404,9407],{},"Add a ui-template node named \"Header Filters\". Set its type to \"Widget\" (UI scoped) and select your UI. Ask ",[32,9405,8457],{"href":9406},"\u002Fdocs\u002Fuser\u002Fexpert\u002Fnode-red-embedded-ai\u002F#css-and-html-generation-for-flowfuse-dashboard"," to build it:",[105,9409,9410],{},[12,9411,9412,9413,9416],{},"Create a ui-template with three header dropdowns, Line, Shift, and Date Range, wrapped in ",[79,9414,9415],{},"\u003CTeleport defer to=\"#app-bar-actions\">"," so they render in the header bar and survive a reload. msg.payload has the selections (line, shift, dateRange) and options (lineOptions, shiftOptions, dateRangeOptions). Line\u002FShift options are strings; dateRangeOptions items are {label, value} objects, so bind label as text and value as the value, not the whole object. On any change, and on load, send {line, shift, dateRange} downstream.",[12,9418,9419],{},"Below is the template it produced for us, import it directly if you prefer:",[165,9421,9422],{":height":167},[169,9423,9425],{"className":171,"code":9424,"language":173,"meta":174,"style":174},"[{\"id\":\"cb03d95bcad4cbd8\",\"type\":\"ui-template\",\"z\":\"b069d8356c10f58e\",\"g\":\"6a002542e7c91e0e\",\"group\":\"\",\"page\":\"\",\"ui\":\"6481b1c613ec9a93\",\"name\":\"App Header Filters\",\"order\":1,\"width\":0,\"height\":0,\"head\":\"\",\"format\":\"\u003Ctemplate>\\n    \u003C!-- Filter dropdowns, teleported into the dashboard header -->\\n    \u003CTeleport v-if=\\\"mounted\\\" to=\\\"#app-bar-actions\\\">\\n        \u003Cdiv class=\\\"filter-bar\\\">\\n            \u003Cv-select :model-value=\\\"line\\\" @update:model-value=\\\"val => { line = val; onFilterChange(); }\\\"\\n                :items=\\\"lineOptions\\\" label=\\\"Line\\\" density=\\\"compact\\\" variant=\\\"solo\\\" hide-details\\n                style=\\\"min-width: 120px\\\">\u003C\u002Fv-select>\\n\\n            \u003Cv-select :model-value=\\\"shift\\\" @update:model-value=\\\"val => { shift = val; onFilterChange(); }\\\"\\n                :items=\\\"shiftOptions\\\" label=\\\"Shift\\\" density=\\\"compact\\\" variant=\\\"solo\\\" hide-details\\n                style=\\\"min-width: 120px\\\">\u003C\u002Fv-select>\\n\\n            \u003Cv-select :model-value=\\\"dateRange\\\" @update:model-value=\\\"val => { dateRange = val; onFilterChange(); }\\\"\\n                :items=\\\"dateRangeOptions\\\" item-title=\\\"label\\\" item-value=\\\"value\\\" label=\\\"Date Range\\\" density=\\\"compact\\\"\\n                variant=\\\"solo\\\" hide-details style=\\\"min-width: 160px\\\">\u003C\u002Fv-select>\\n        \u003C\u002Fdiv>\\n    \u003C\u002FTeleport>\\n\u003C\u002Ftemplate>\\n\\n\u003Cscript>\\n    export default {\\n    data() {\\n        return {\\n            mounted: false,\\n\\n            \u002F\u002F Selected values\\n            line: 'All',\\n            shift: 'All',\\n            dateRange: 30,\\n\\n            \u002F\u002F Available options\\n            lineOptions: [],\\n            shiftOptions: [],\\n            dateRangeOptions: []\\n        }\\n    },\\n\\n    mounted() {\\n        \u002F\u002F Wait until the dashboard header exists before teleporting.\\n        this.mounted = true;\\n    },\\n\\n    watch: {\\n        msg: {\\n            immediate: true,\\n            deep: true,\\n            handler(msg) {\\n                if (!msg?.payload) return;\\n\\n                \u002F\u002F Selected values\\n                this.line = msg.payload.line ?? this.line;\\n                this.shift = msg.payload.shift ?? this.shift;\\n                this.dateRange = msg.payload.dateRange ?? this.dateRange;\\n\\n                \u002F\u002F Dropdown options\\n                this.lineOptions = msg.payload.lineOptions ?? this.lineOptions;\\n                this.shiftOptions = msg.payload.shiftOptions ?? this.shiftOptions;\\n                this.dateRangeOptions = msg.payload.dateRangeOptions ?? this.dateRangeOptions;\\n\\n                \u002F\u002F Send initial state downstream\\n                this.onFilterChange();\\n            }\\n        }\\n    },\\n\\n    methods: {\\n        onFilterChange() {\\n            this.send({\\n                payload: {\\n                    line: this.line,\\n                    shift: this.shift,\\n                    dateRange: this.dateRange\\n                }\\n            });\\n        }\\n    }\\n}\\n\u003C\u002Fscript>\\n\\n\u003Cstyle>\\n    .filter-bar {\\n        display: flex;\\n        gap: 12px;\\n        align-items: center;\\n        padding-right: 12px;\\n    }\\n\u003C\u002Fstyle>\",\"storeOutMessages\":true,\"passthru\":true,\"resendOnRefresh\":true,\"templateScope\":\"widget:ui\",\"className\":\"\",\"x\":450,\"y\":140,\"wires\":[[\"e958c99e3f1ecb94\"]]},{\"id\":\"6481b1c613ec9a93\",\"type\":\"ui-base\",\"name\":\"My Dashboard\",\"path\":\"\u002Fdashboard\",\"appIcon\":\"\",\"includeClientData\":true,\"acceptsClientConfig\":[\"ui-notification\",\"ui-control\"],\"showPathInSidebar\":false,\"headerContent\":\"page\",\"navigationStyle\":\"default\",\"titleBarStyle\":\"default\",\"showReconnectNotification\":true,\"notificationDisplayTime\":1,\"showDisconnectNotification\":true,\"allowInstall\":false},{\"id\":\"18db5e6eeee7d1d9\",\"type\":\"global-config\",\"env\":[],\"modules\":{\"@flowfuse\u002Fnode-red-dashboard\":\"1.30.2\"}}]\n",[79,9426,9427],{"__ignoreMap":174},[178,9428,9429,9431,9433,9435,9437,9439,9441,9444,9446,9448,9450,9452,9454,9456,9458,9460,9462,9464,9466,9468,9470,9472,9474,9477,9479,9481,9483,9485,9487,9489,9491,9494,9496,9498,9500,9502,9504,9506,9508,9510,9512,9515,9517,9519,9521,9523,9525,9528,9530,9532,9534,9537,9539,9541,9543,9545,9547,9549,9551,9554,9556,9558,9560,9563,9565,9567,9569,9571,9573,9576,9578,9580,9582,9584,9586,9589,9591,9593,9595,9597,9599,9602,9604,9606,9608,9610,9612,9615,9617,9619,9621,9624,9626,9629,9631,9634,9636,9639,9641,9644,9646,9649,9651,9654,9656,9659,9661,9664,9666,9668,9670,9673,9675,9677,9679,9682,9684,9687,9689,9692,9694,9696,9698,9701,9703,9706,9708,9711,9713,9716,9718,9721,9723,9726,9728,9731,9733,9736,9738,9741,9743,9746,9748,9750,9752,9754,9756,9758,9760,9763,9765,9767,9769,9771,9773,9775,9777,9780,9782,9784,9786,9788,9790,9792,9794,9796,9798,9800,9802,9804,9806,9808,9810,9812,9814,9816,9818,9820,9822,9824,9826,9829,9831,9833,9835,9837,9839,9842,9844,9846,9848,9851,9853,9855,9857,9859,9861,9864,9866,9868,9870,9872,9874,9877,9879,9881,9883,9886,9888,9891,9893,9895,9897,9900,9902,9905,9907,9910,9912,9915,9917,9920,9922,9925,9927,9930,9932,9935,9937,9940,9942,9945,9947,9950,9952,9955,9957,9960,9962,9965,9967,9970,9972,9975,9977,9980,9982,9984,9986,9989,9991,9994,9996,9999,10001,10003,10005,10008,10010,10013,10015,10018,10020,10023,10025,10028,10030,10033,10035,10038,10040,10043,10045,10048,10050,10053,10055,10058,10060,10063,10065,10068,10070,10073,10075,10078,10080,10083,10085,10088,10090,10092,10094,10096,10098,10101,10103,10106,10108,10111,10113,10116,10118,10121,10123,10126,10128,10131,10133,10136,10138,10141,10143,10145,10147,10149,10151,10153,10155,10158,10160,10163,10165,10168,10170,10173,10175,10178,10180,10183,10185,10188,10190,10192,10194,10197,10199,10201,10203,10206,10208,10210,10212,10215,10217,10219,10221,10224,10226,10228,10230,10233,10235,10237,10239,10242,10244,10246,10248,10251,10253,10255,10257,10259,10261,10263,10265,10267,10270,10272,10274,10276,10278,10280,10283,10285,10287,10289,10291,10293,10295,10298,10300,10302,10304,10306,10308,10310,10312,10314,10316,10318,10320,10322,10324,10326,10328,10331,10333,10335,10337,10339,10341,10343,10345,10348,10350,10352,10354,10357,10359,10361,10363,10366,10368,10370,10372,10375,10377,10379,10381,10383,10385,10388,10390,10392,10394,10397,10399,10401,10403,10406,10408,10410,10412,10415,10417,10419,10421,10424,10426,10428,10430,10433,10435,10437,10439,10441,10443,10445,10447,10450,10452,10454,10456,10459,10461,10463,10465,10468,10470,10472,10474,10476,10478,10480,10482,10485,10487,10489,10491,10494,10496,10498,10500,10502,10504,10507,10509,10511,10513,10516,10518,10521,10523,10525,10527,10529,10531,10534,10536,10538,10540,10542,10544,10546,10548,10550,10552,10554,10556,10558,10560,10562,10564,10566,10568,10570,10572,10574,10576,10578,10580,10583,10585],{"class":180,"line":181},[178,9430,185],{"class":184},[178,9432,188],{"class":184},[178,9434,192],{"class":191},[178,9436,188],{"class":184},[178,9438,197],{"class":184},[178,9440,188],{"class":184},[178,9442,9443],{"class":202},"cb03d95bcad4cbd8",[178,9445,188],{"class":184},[178,9447,208],{"class":184},[178,9449,188],{"class":184},[178,9451,213],{"class":191},[178,9453,188],{"class":184},[178,9455,197],{"class":184},[178,9457,188],{"class":184},[178,9459,96],{"class":202},[178,9461,188],{"class":184},[178,9463,208],{"class":184},[178,9465,188],{"class":184},[178,9467,231],{"class":191},[178,9469,188],{"class":184},[178,9471,197],{"class":184},[178,9473,188],{"class":184},[178,9475,9476],{"class":202},"b069d8356c10f58e",[178,9478,188],{"class":184},[178,9480,208],{"class":184},[178,9482,188],{"class":184},[178,9484,478],{"class":191},[178,9486,188],{"class":184},[178,9488,197],{"class":184},[178,9490,188],{"class":184},[178,9492,9493],{"class":202},"6a002542e7c91e0e",[178,9495,188],{"class":184},[178,9497,208],{"class":184},[178,9499,188],{"class":184},[178,9501,222],{"class":191},[178,9503,188],{"class":184},[178,9505,197],{"class":184},[178,9507,593],{"class":184},[178,9509,208],{"class":184},[178,9511,188],{"class":184},[178,9513,9514],{"class":191},"page",[178,9516,188],{"class":184},[178,9518,197],{"class":184},[178,9520,593],{"class":184},[178,9522,208],{"class":184},[178,9524,188],{"class":184},[178,9526,9527],{"class":191},"ui",[178,9529,188],{"class":184},[178,9531,197],{"class":184},[178,9533,188],{"class":184},[178,9535,9536],{"class":202},"6481b1c613ec9a93",[178,9538,188],{"class":184},[178,9540,208],{"class":184},[178,9542,188],{"class":184},[178,9544,249],{"class":191},[178,9546,188],{"class":184},[178,9548,197],{"class":184},[178,9550,188],{"class":184},[178,9552,9553],{"class":202},"App Header Filters",[178,9555,188],{"class":184},[178,9557,208],{"class":184},[178,9559,188],{"class":184},[178,9561,9562],{"class":191},"order",[178,9564,188],{"class":184},[178,9566,197],{"class":184},[178,9568,3418],{"class":378},[178,9570,208],{"class":184},[178,9572,188],{"class":184},[178,9574,9575],{"class":191},"width",[178,9577,188],{"class":184},[178,9579,197],{"class":184},[178,9581,1193],{"class":378},[178,9583,208],{"class":184},[178,9585,188],{"class":184},[178,9587,9588],{"class":191},"height",[178,9590,188],{"class":184},[178,9592,197],{"class":184},[178,9594,1193],{"class":378},[178,9596,208],{"class":184},[178,9598,188],{"class":184},[178,9600,9601],{"class":191},"head",[178,9603,188],{"class":184},[178,9605,197],{"class":184},[178,9607,593],{"class":184},[178,9609,208],{"class":184},[178,9611,188],{"class":184},[178,9613,9614],{"class":191},"format",[178,9616,188],{"class":184},[178,9618,197],{"class":184},[178,9620,188],{"class":184},[178,9622,9623],{"class":202},"\u003Ctemplate>",[178,9625,941],{"class":940},[178,9627,9628],{"class":202},"    \u003C!-- Filter dropdowns, teleported into the dashboard header -->",[178,9630,941],{"class":940},[178,9632,9633],{"class":202},"    \u003CTeleport v-if=",[178,9635,1030],{"class":940},[178,9637,9638],{"class":202},"mounted",[178,9640,1030],{"class":940},[178,9642,9643],{"class":202}," to=",[178,9645,1030],{"class":940},[178,9647,9648],{"class":202},"#app-bar-actions",[178,9650,1030],{"class":940},[178,9652,9653],{"class":202},">",[178,9655,941],{"class":940},[178,9657,9658],{"class":202},"        \u003Cdiv class=",[178,9660,1030],{"class":940},[178,9662,9663],{"class":202},"filter-bar",[178,9665,1030],{"class":940},[178,9667,9653],{"class":202},[178,9669,941],{"class":940},[178,9671,9672],{"class":202},"            \u003Cv-select :model-value=",[178,9674,1030],{"class":940},[178,9676,180],{"class":202},[178,9678,1030],{"class":940},[178,9680,9681],{"class":202}," @update:model-value=",[178,9683,1030],{"class":940},[178,9685,9686],{"class":202},"val => { line = val; onFilterChange(); }",[178,9688,1160],{"class":940},[178,9690,9691],{"class":202},"                :items=",[178,9693,1030],{"class":940},[178,9695,9102],{"class":202},[178,9697,1030],{"class":940},[178,9699,9700],{"class":202}," label=",[178,9702,1030],{"class":940},[178,9704,9705],{"class":202},"Line",[178,9707,1030],{"class":940},[178,9709,9710],{"class":202}," density=",[178,9712,1030],{"class":940},[178,9714,9715],{"class":202},"compact",[178,9717,1030],{"class":940},[178,9719,9720],{"class":202}," variant=",[178,9722,1030],{"class":940},[178,9724,9725],{"class":202},"solo",[178,9727,1030],{"class":940},[178,9729,9730],{"class":202}," hide-details",[178,9732,941],{"class":940},[178,9734,9735],{"class":202},"                style=",[178,9737,1030],{"class":940},[178,9739,9740],{"class":202},"min-width: 120px",[178,9742,1030],{"class":940},[178,9744,9745],{"class":202},">\u003C\u002Fv-select>",[178,9747,951],{"class":940},[178,9749,9672],{"class":202},[178,9751,1030],{"class":940},[178,9753,1063],{"class":202},[178,9755,1030],{"class":940},[178,9757,9681],{"class":202},[178,9759,1030],{"class":940},[178,9761,9762],{"class":202},"val => { shift = val; onFilterChange(); }",[178,9764,1160],{"class":940},[178,9766,9691],{"class":202},[178,9768,1030],{"class":940},[178,9770,9162],{"class":202},[178,9772,1030],{"class":940},[178,9774,9700],{"class":202},[178,9776,1030],{"class":940},[178,9778,9779],{"class":202},"Shift",[178,9781,1030],{"class":940},[178,9783,9710],{"class":202},[178,9785,1030],{"class":940},[178,9787,9715],{"class":202},[178,9789,1030],{"class":940},[178,9791,9720],{"class":202},[178,9793,1030],{"class":940},[178,9795,9725],{"class":202},[178,9797,1030],{"class":940},[178,9799,9730],{"class":202},[178,9801,941],{"class":940},[178,9803,9735],{"class":202},[178,9805,1030],{"class":940},[178,9807,9740],{"class":202},[178,9809,1030],{"class":940},[178,9811,9745],{"class":202},[178,9813,951],{"class":940},[178,9815,9672],{"class":202},[178,9817,1030],{"class":940},[178,9819,9086],{"class":202},[178,9821,1030],{"class":940},[178,9823,9681],{"class":202},[178,9825,1030],{"class":940},[178,9827,9828],{"class":202},"val => { dateRange = val; onFilterChange(); }",[178,9830,1160],{"class":940},[178,9832,9691],{"class":202},[178,9834,1030],{"class":940},[178,9836,9217],{"class":202},[178,9838,1030],{"class":940},[178,9840,9841],{"class":202}," item-title=",[178,9843,1030],{"class":940},[178,9845,278],{"class":202},[178,9847,1030],{"class":940},[178,9849,9850],{"class":202}," item-value=",[178,9852,1030],{"class":940},[178,9854,9255],{"class":202},[178,9856,1030],{"class":940},[178,9858,9700],{"class":202},[178,9860,1030],{"class":940},[178,9862,9863],{"class":202},"Date Range",[178,9865,1030],{"class":940},[178,9867,9710],{"class":202},[178,9869,1030],{"class":940},[178,9871,9715],{"class":202},[178,9873,1160],{"class":940},[178,9875,9876],{"class":202},"                variant=",[178,9878,1030],{"class":940},[178,9880,9725],{"class":202},[178,9882,1030],{"class":940},[178,9884,9885],{"class":202}," hide-details style=",[178,9887,1030],{"class":940},[178,9889,9890],{"class":202},"min-width: 160px",[178,9892,1030],{"class":940},[178,9894,9745],{"class":202},[178,9896,941],{"class":940},[178,9898,9899],{"class":202},"        \u003C\u002Fdiv>",[178,9901,941],{"class":940},[178,9903,9904],{"class":202},"    \u003C\u002FTeleport>",[178,9906,941],{"class":940},[178,9908,9909],{"class":202},"\u003C\u002Ftemplate>",[178,9911,951],{"class":940},[178,9913,9914],{"class":202},"\u003Cscript>",[178,9916,941],{"class":940},[178,9918,9919],{"class":202},"    export default {",[178,9921,941],{"class":940},[178,9923,9924],{"class":202},"    data() {",[178,9926,941],{"class":940},[178,9928,9929],{"class":202},"        return {",[178,9931,941],{"class":940},[178,9933,9934],{"class":202},"            mounted: false,",[178,9936,951],{"class":940},[178,9938,9939],{"class":202},"            \u002F\u002F Selected values",[178,9941,941],{"class":940},[178,9943,9944],{"class":202},"            line: 'All',",[178,9946,941],{"class":940},[178,9948,9949],{"class":202},"            shift: 'All',",[178,9951,941],{"class":940},[178,9953,9954],{"class":202},"            dateRange: 30,",[178,9956,951],{"class":940},[178,9958,9959],{"class":202},"            \u002F\u002F Available options",[178,9961,941],{"class":940},[178,9963,9964],{"class":202},"            lineOptions: [],",[178,9966,941],{"class":940},[178,9968,9969],{"class":202},"            shiftOptions: [],",[178,9971,941],{"class":940},[178,9973,9974],{"class":202},"            dateRangeOptions: []",[178,9976,941],{"class":940},[178,9978,9979],{"class":202},"        }",[178,9981,941],{"class":940},[178,9983,1484],{"class":202},[178,9985,951],{"class":940},[178,9987,9988],{"class":202},"    mounted() {",[178,9990,941],{"class":940},[178,9992,9993],{"class":202},"        \u002F\u002F Wait until the dashboard header exists before teleporting.",[178,9995,941],{"class":940},[178,9997,9998],{"class":202},"        this.mounted = true;",[178,10000,941],{"class":940},[178,10002,1484],{"class":202},[178,10004,951],{"class":940},[178,10006,10007],{"class":202},"    watch: {",[178,10009,941],{"class":940},[178,10011,10012],{"class":202},"        msg: {",[178,10014,941],{"class":940},[178,10016,10017],{"class":202},"            immediate: true,",[178,10019,941],{"class":940},[178,10021,10022],{"class":202},"            deep: true,",[178,10024,941],{"class":940},[178,10026,10027],{"class":202},"            handler(msg) {",[178,10029,941],{"class":940},[178,10031,10032],{"class":202},"                if (!msg?.payload) return;",[178,10034,951],{"class":940},[178,10036,10037],{"class":202},"                \u002F\u002F Selected values",[178,10039,941],{"class":940},[178,10041,10042],{"class":202},"                this.line = msg.payload.line ?? this.line;",[178,10044,941],{"class":940},[178,10046,10047],{"class":202},"                this.shift = msg.payload.shift ?? this.shift;",[178,10049,941],{"class":940},[178,10051,10052],{"class":202},"                this.dateRange = msg.payload.dateRange ?? this.dateRange;",[178,10054,951],{"class":940},[178,10056,10057],{"class":202},"                \u002F\u002F Dropdown options",[178,10059,941],{"class":940},[178,10061,10062],{"class":202},"                this.lineOptions = msg.payload.lineOptions ?? this.lineOptions;",[178,10064,941],{"class":940},[178,10066,10067],{"class":202},"                this.shiftOptions = msg.payload.shiftOptions ?? this.shiftOptions;",[178,10069,941],{"class":940},[178,10071,10072],{"class":202},"                this.dateRangeOptions = msg.payload.dateRangeOptions ?? this.dateRangeOptions;",[178,10074,951],{"class":940},[178,10076,10077],{"class":202},"                \u002F\u002F Send initial state downstream",[178,10079,941],{"class":940},[178,10081,10082],{"class":202},"                this.onFilterChange();",[178,10084,941],{"class":940},[178,10086,10087],{"class":202},"            }",[178,10089,941],{"class":940},[178,10091,9979],{"class":202},[178,10093,941],{"class":940},[178,10095,1484],{"class":202},[178,10097,951],{"class":940},[178,10099,10100],{"class":202},"    methods: {",[178,10102,941],{"class":940},[178,10104,10105],{"class":202},"        onFilterChange() {",[178,10107,941],{"class":940},[178,10109,10110],{"class":202},"            this.send({",[178,10112,941],{"class":940},[178,10114,10115],{"class":202},"                payload: {",[178,10117,941],{"class":940},[178,10119,10120],{"class":202},"                    line: this.line,",[178,10122,941],{"class":940},[178,10124,10125],{"class":202},"                    shift: this.shift,",[178,10127,941],{"class":940},[178,10129,10130],{"class":202},"                    dateRange: this.dateRange",[178,10132,941],{"class":940},[178,10134,10135],{"class":202},"                }",[178,10137,941],{"class":940},[178,10139,10140],{"class":202},"            });",[178,10142,941],{"class":940},[178,10144,9979],{"class":202},[178,10146,941],{"class":940},[178,10148,989],{"class":202},[178,10150,941],{"class":940},[178,10152,999],{"class":202},[178,10154,941],{"class":940},[178,10156,10157],{"class":202},"\u003C\u002Fscript>",[178,10159,951],{"class":940},[178,10161,10162],{"class":202},"\u003Cstyle>",[178,10164,941],{"class":940},[178,10166,10167],{"class":202},"    .filter-bar {",[178,10169,941],{"class":940},[178,10171,10172],{"class":202},"        display: flex;",[178,10174,941],{"class":940},[178,10176,10177],{"class":202},"        gap: 12px;",[178,10179,941],{"class":940},[178,10181,10182],{"class":202},"        align-items: center;",[178,10184,941],{"class":940},[178,10186,10187],{"class":202},"        padding-right: 12px;",[178,10189,941],{"class":940},[178,10191,989],{"class":202},[178,10193,941],{"class":940},[178,10195,10196],{"class":202},"\u003C\u002Fstyle>",[178,10198,188],{"class":184},[178,10200,208],{"class":184},[178,10202,188],{"class":184},[178,10204,10205],{"class":191},"storeOutMessages",[178,10207,188],{"class":184},[178,10209,517],{"class":184},[178,10211,188],{"class":184},[178,10213,10214],{"class":191},"passthru",[178,10216,188],{"class":184},[178,10218,517],{"class":184},[178,10220,188],{"class":184},[178,10222,10223],{"class":191},"resendOnRefresh",[178,10225,188],{"class":184},[178,10227,517],{"class":184},[178,10229,188],{"class":184},[178,10231,10232],{"class":191},"templateScope",[178,10234,188],{"class":184},[178,10236,197],{"class":184},[178,10238,188],{"class":184},[178,10240,10241],{"class":202},"widget:ui",[178,10243,188],{"class":184},[178,10245,208],{"class":184},[178,10247,188],{"class":184},[178,10249,10250],{"class":191},"className",[178,10252,188],{"class":184},[178,10254,197],{"class":184},[178,10256,593],{"class":184},[178,10258,208],{"class":184},[178,10260,188],{"class":184},[178,10262,371],{"class":191},[178,10264,188],{"class":184},[178,10266,197],{"class":184},[178,10268,10269],{"class":378},"450",[178,10271,208],{"class":184},[178,10273,188],{"class":184},[178,10275,386],{"class":191},[178,10277,188],{"class":184},[178,10279,197],{"class":184},[178,10281,10282],{"class":378},"140",[178,10284,208],{"class":184},[178,10286,188],{"class":184},[178,10288,644],{"class":191},[178,10290,188],{"class":184},[178,10292,832],{"class":184},[178,10294,188],{"class":184},[178,10296,10297],{"class":202},"e958c99e3f1ecb94",[178,10299,188],{"class":184},[178,10301,841],{"class":184},[178,10303,188],{"class":184},[178,10305,192],{"class":191},[178,10307,188],{"class":184},[178,10309,197],{"class":184},[178,10311,188],{"class":184},[178,10313,9536],{"class":202},[178,10315,188],{"class":184},[178,10317,208],{"class":184},[178,10319,188],{"class":184},[178,10321,213],{"class":191},[178,10323,188],{"class":184},[178,10325,197],{"class":184},[178,10327,188],{"class":184},[178,10329,10330],{"class":202},"ui-base",[178,10332,188],{"class":184},[178,10334,208],{"class":184},[178,10336,188],{"class":184},[178,10338,249],{"class":191},[178,10340,188],{"class":184},[178,10342,197],{"class":184},[178,10344,188],{"class":184},[178,10346,10347],{"class":202},"My Dashboard",[178,10349,188],{"class":184},[178,10351,208],{"class":184},[178,10353,188],{"class":184},[178,10355,10356],{"class":191},"path",[178,10358,188],{"class":184},[178,10360,197],{"class":184},[178,10362,188],{"class":184},[178,10364,10365],{"class":202},"\u002Fdashboard",[178,10367,188],{"class":184},[178,10369,208],{"class":184},[178,10371,188],{"class":184},[178,10373,10374],{"class":191},"appIcon",[178,10376,188],{"class":184},[178,10378,197],{"class":184},[178,10380,593],{"class":184},[178,10382,208],{"class":184},[178,10384,188],{"class":184},[178,10386,10387],{"class":191},"includeClientData",[178,10389,188],{"class":184},[178,10391,517],{"class":184},[178,10393,188],{"class":184},[178,10395,10396],{"class":191},"acceptsClientConfig",[178,10398,188],{"class":184},[178,10400,293],{"class":184},[178,10402,188],{"class":184},[178,10404,10405],{"class":202},"ui-notification",[178,10407,188],{"class":184},[178,10409,208],{"class":184},[178,10411,188],{"class":184},[178,10413,10414],{"class":202},"ui-control",[178,10416,188],{"class":184},[178,10418,366],{"class":184},[178,10420,188],{"class":184},[178,10422,10423],{"class":191},"showPathInSidebar",[178,10425,188],{"class":184},[178,10427,536],{"class":184},[178,10429,188],{"class":184},[178,10431,10432],{"class":191},"headerContent",[178,10434,188],{"class":184},[178,10436,197],{"class":184},[178,10438,188],{"class":184},[178,10440,9514],{"class":202},[178,10442,188],{"class":184},[178,10444,208],{"class":184},[178,10446,188],{"class":184},[178,10448,10449],{"class":191},"navigationStyle",[178,10451,188],{"class":184},[178,10453,197],{"class":184},[178,10455,188],{"class":184},[178,10457,10458],{"class":202},"default",[178,10460,188],{"class":184},[178,10462,208],{"class":184},[178,10464,188],{"class":184},[178,10466,10467],{"class":191},"titleBarStyle",[178,10469,188],{"class":184},[178,10471,197],{"class":184},[178,10473,188],{"class":184},[178,10475,10458],{"class":202},[178,10477,188],{"class":184},[178,10479,208],{"class":184},[178,10481,188],{"class":184},[178,10483,10484],{"class":191},"showReconnectNotification",[178,10486,188],{"class":184},[178,10488,517],{"class":184},[178,10490,188],{"class":184},[178,10492,10493],{"class":191},"notificationDisplayTime",[178,10495,188],{"class":184},[178,10497,197],{"class":184},[178,10499,3418],{"class":378},[178,10501,208],{"class":184},[178,10503,188],{"class":184},[178,10505,10506],{"class":191},"showDisconnectNotification",[178,10508,188],{"class":184},[178,10510,517],{"class":184},[178,10512,188],{"class":184},[178,10514,10515],{"class":191},"allowInstall",[178,10517,188],{"class":184},[178,10519,10520],{"class":184},":false},{",[178,10522,188],{"class":184},[178,10524,192],{"class":191},[178,10526,188],{"class":184},[178,10528,197],{"class":184},[178,10530,188],{"class":184},[178,10532,10533],{"class":202},"18db5e6eeee7d1d9",[178,10535,188],{"class":184},[178,10537,208],{"class":184},[178,10539,188],{"class":184},[178,10541,213],{"class":191},[178,10543,188],{"class":184},[178,10545,197],{"class":184},[178,10547,188],{"class":184},[178,10549,8207],{"class":202},[178,10551,188],{"class":184},[178,10553,208],{"class":184},[178,10555,188],{"class":184},[178,10557,8216],{"class":191},[178,10559,188],{"class":184},[178,10561,736],{"class":184},[178,10563,188],{"class":184},[178,10565,8225],{"class":191},[178,10567,188],{"class":184},[178,10569,272],{"class":184},[178,10571,188],{"class":184},[178,10573,81],{"class":277},[178,10575,188],{"class":184},[178,10577,197],{"class":184},[178,10579,188],{"class":184},[178,10581,10582],{"class":202},"1.30.2",[178,10584,188],{"class":184},[178,10586,8248],{"class":184},[12,10588,10589,10593],{},[18,10590],{"alt":10591,"src":10592},"Screenshot: the three header dropdowns (Line, Shift, and Date Range) rendered in the dashboard header","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Fdashboard-header-filter.png",[23,10594,10595],{},"The finished header filters. Capture the Line, Shift, and Date Range dropdowns in the live dashboard header.",[8939,10597,10598],{"start":8289},[52,10599,10600,10601,8962,10603,10606],{},"Add a change node named \"Save Filters\" that sets the persistent global ",[79,10602,9018],{},[79,10604,10605],{},"msg.payload",", and connect its input to the \"Header Filters\" ui-template node.",[12,10608,10609,10613],{},[18,10610],{"alt":10611,"src":10612},"The Save Filters change node configured to set the global filters object to msg.payload","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Fstore-filters.png",[23,10614,10615,10616,8962,10618,36],{},"The \"Save Filters\" change node, setting the persistent global ",[79,10617,9018],{},[79,10619,10605],{},[8939,10621,10622],{"start":8295},[52,10623,10624],{},"Next, add a link out node, connect its input to the \"Save Filters\" change node, and connect its output to the \"Refresh Trigger\" link in node you added earlier.",[12,10626,10627],{},"Deploy, and the dropdowns appear in the header. Change one and the next query pass redraws every widget against it.",[41,10629,10631],{"id":10630},"building-the-widgets","Building the Widgets",[12,10633,10634,10635,10638],{},"Everything the dashboard shows comes from the \"KPI Result\" broadcast, so every widget follows the same wiring: a ",[55,10636,10637],{},"link in"," node connected to \"KPI Result\", a change node that extracts that widget's field, and the display node.",[12,10640,10641],{},"Before adding widgets, create a page for the dashboard (ours is \"Assembly Quality Monitor\") and a ui-group for each widget. The group is what positions and sizes a widget on the grid.",[8253,10643,10645],{"id":10644},"stat-cards","Stat cards",[12,10647,10648],{},"Start with the four numbers a supervisor checks first: total defects, open, closed, and cost of poor quality.",[8939,10650,10651,10654,10663,10666],{},[52,10652,10653],{},"Add a link in node and connect it to \"KPI Result\".",[52,10655,10656,10657,8962,10659,10662],{},"Add a change node named \"Extract KPI Summary\" with one rule: set ",[79,10658,10605],{},[79,10660,10661],{},"msg.payload[0].stat_cards_and_copq"," (msg). Wire the link in to it.",[52,10664,10665],{},"Add four ui-text nodes, one in each of the four top groups (Total Defects, Open, Closed, Cost of Poor Quality). Wire the change node to all four.",[52,10667,10668,10669,86,10672,86,10675,86,10678,36],{},"In each ui-text node, set the value to the matching field: ",[79,10670,10671],{},"msg.payload[0].total_count",[79,10673,10674],{},"msg.payload[0].open_count",[79,10676,10677],{},"msg.payload[0].closed_count",[79,10679,10680],{},"msg.payload[0].total_copq",[12,10682,10683,10684,10686],{},"Open counts everything not yet Resolved or Verified; the cost figure sums ",[79,10685,1148],{}," across the current filter, so it moves the moment you switch line or shift.",[12,10688,10689,10693],{},[18,10690],{"alt":10691,"src":10692},"Screenshot: the four stat cards: Total Defects, Open, Closed, and Cost of Poor Quality","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Fstat-cards.png",[23,10694,10695],{},"The four stat cards populated with seeded data.",[8253,10697,10699],{"id":10698},"pareto-chart","Pareto chart",[12,10701,10702,10703,10706],{},"The ",[32,10704,10699],{"href":10705},"\u002Fblog\u002F2025\u002F08\u002Fpareto-chart-manufacturing-guide\u002F"," ranks defect types by count and overlays a cumulative-percentage line with an 80% marker. It is the fastest way to see which few defect types cause most of the pain. The built-in ui-chart can't combine bars and a line, so this one is a ui-template that draws the SVG itself.",[8939,10708,10709,10712,10721],{},[52,10710,10711],{},"Add a link in node connected to \"KPI Result\".",[52,10713,10714,10715,8962,10717,10720],{},"Add a change node named \"Extract Pareto Data\": set ",[79,10716,10605],{},[79,10718,10719],{},"msg.payload[0].pareto"," (msg).",[52,10722,10723,10724,10726],{},"Add a ui-template node in the Pareto group. Ask ",[32,10725,8457],{"href":9406}," to generate it:",[105,10728,10729],{},[12,10730,10731,10732,10734,10735,10738,10739,10741],{},"Create a Vue ui-template that renders a Pareto chart as responsive inline SVG. ",[79,10733,10605],{}," is an array of ",[79,10736,10737],{},"{defect_type, defect_count, cumulative_pct}",", sorted by count descending. Draw a bar per defect type with its count above and a word-wrapped label below, a cumulative-percentage line with dots over the bars, a dashed threshold line at 80%, and a small legend. Derive the rows from ",[79,10740,10605],{}," reactively so the chart redraws on every new message.",[12,10743,9419],{},[165,10745,10746],{":height":167},[169,10747,10749],{"className":171,"code":10748,"language":173,"meta":174,"style":174},"[{\"id\":\"fef40951758bc433\",\"type\":\"ui-template\",\"z\":\"b069d8356c10f58e\",\"g\":\"54e9382e7013c157\",\"group\":\"867ef11afa029061\",\"page\":\"\",\"ui\":\"\",\"name\":\"Custom Pareto Chart\",\"order\":1,\"width\":0,\"height\":0,\"head\":\"\",\"format\":\"\u003Ctemplate>\\n    \u003Cdiv class=\\\"pareto-container\\\">\\n        \u003Csvg :viewBox=\\\"`0 0 ${svgWidth} ${svgHeight}`\\\" preserveAspectRatio=\\\"xMidYMid meet\\\">\\n            \u003C!-- Bars -->\\n            \u003Cg v-for=\\\"(row, i) in rows\\\" :key=\\\"'bar-' + row.defect_type\\\">\\n                \u003Crect\\n                    :x=\\\"barX(i)\\\"\\n                    :y=\\\"barY(row.defect_count)\\\"\\n                    :width=\\\"barWidth\\\"\\n                    :height=\\\"barHeight(row.defect_count)\\\"\\n                    fill=\\\"#CEBA8C\\\"\\n                    rx=\\\"3\\\"\\n                \u002F>\\n                \u003Ctext\\n                    :x=\\\"barX(i) + barWidth \u002F 2\\\"\\n                    :y=\\\"barY(row.defect_count) - 8\\\"\\n                    text-anchor=\\\"middle\\\"\\n                    class=\\\"bar-label-value\\\"\\n                >{{ row.defect_count }}\u003C\u002Ftext>\\n                \u003Ctext\\n                    :x=\\\"barX(i) + barWidth \u002F 2\\\"\\n                    :y=\\\"chartAreaHeight + 16\\\"\\n                    text-anchor=\\\"middle\\\"\\n                    class=\\\"axis-label\\\"\\n                >\\n                    \u003Ctspan\\n                        v-for=\\\"(line, li) in wrapLabel(row.defect_type)\\\"\\n                        :key=\\\"li\\\"\\n                        :x=\\\"barX(i) + barWidth \u002F 2\\\"\\n                        :dy=\\\"li === 0 ? 0 : 12\\\"\\n                    >{{ line }}\u003C\u002Ftspan>\\n                \u003C\u002Ftext>\\n            \u003C\u002Fg>\\n\\n            \u003C!-- 80% threshold dashed line -->\\n            \u003Cline\\n                :x1=\\\"padding.left\\\" :x2=\\\"svgWidth - padding.right\\\"\\n                :y1=\\\"pctToY(80)\\\" :y2=\\\"pctToY(80)\\\"\\n                stroke=\\\"#74A086\\\" stroke-width=\\\"1.5\\\" stroke-dasharray=\\\"5,4\\\"\\n            \u002F>\\n            \u003Ctext :x=\\\"svgWidth - padding.right\\\" :y=\\\"pctToY(80) - 6\\\" text-anchor=\\\"end\\\" class=\\\"threshold-label\\\">80%\u003C\u002Ftext>\\n\\n            \u003C!-- Cumulative % line -->\\n            \u003Cpolyline\\n                :points=\\\"cumulativeLinePoints\\\"\\n                fill=\\\"none\\\"\\n                stroke=\\\"#C28181\\\"\\n                stroke-width=\\\"2.5\\\"\\n            \u002F>\\n            \u003Ccircle\\n                v-for=\\\"(row, i) in rows\\\"\\n                :key=\\\"'pt-' + row.defect_type\\\"\\n                :cx=\\\"barX(i) + barWidth \u002F 2\\\"\\n                :cy=\\\"pctToY(row.cumulative_pct)\\\"\\n                r=\\\"3.5\\\"\\n                fill=\\\"#C28181\\\"\\n            \u002F>\\n        \u003C\u002Fsvg>\\n\\n        \u003Cdiv class=\\\"legend\\\">\\n            \u003Cspan class=\\\"legend-item\\\">\u003Cspan class=\\\"swatch\\\" style=\\\"background:#CEBA8C\\\">\u003C\u002Fspan>Defect Count\u003C\u002Fspan>\\n            \u003Cspan class=\\\"legend-item\\\">\u003Cspan class=\\\"swatch\\\" style=\\\"background:#C28181\\\">\u003C\u002Fspan>Cumulative %\u003C\u002Fspan>\\n            \u003Cspan class=\\\"legend-item\\\">\u003Cspan class=\\\"swatch dash\\\" style=\\\"border-color:#74A086\\\">\u003C\u002Fspan>80% Threshold\u003C\u002Fspan>\\n        \u003C\u002Fdiv>\\n    \u003C\u002Fdiv>\\n\u003C\u002Ftemplate>\\n\\n\u003Cscript>\\nexport default {\\n    data() {\\n        return {\\n            svgWidth: 600,\\n            svgHeight: 260,\\n            padding: { top: 20, right: 40, bottom: 62, left: 10 }\\n        }\\n    },\\n    computed: {\\n        \u002F\u002F Per the docs: `msg` is a built-in variable, automatically\\n        \u002F\u002F assigned whenever this ui-template node receives a message\\n        \u002F\u002F from Node-RED. Deriving `rows` from it directly (rather than\\n        \u002F\u002F manually managing a socket listener) means Vue's reactivity\\n        \u002F\u002F handles updates for us — any change to `msg` recomputes `rows`\\n        \u002F\u002F and re-renders the SVG automatically.\\n        rows() {\\n            const payload = this.msg?.payload;\\n            return Array.isArray(payload) ? payload : [];\\n        },\\n        chartAreaHeight() {\\n            return this.svgHeight - this.padding.bottom;\\n        },\\n        maxCount() {\\n            return Math.max(1, ...this.rows.map(r => r.defect_count));\\n        },\\n        barWidth() {\\n            const usableWidth = this.svgWidth - this.padding.left - this.padding.right;\\n            const n = this.rows.length || 1;\\n            return Math.min(60, (usableWidth \u002F n) * 0.6);\\n        },\\n        cumulativeLinePoints() {\\n            return this.rows\\n                .map((row, i) => `${this.barX(i) + this.barWidth \u002F 2},${this.pctToY(row.cumulative_pct)}`)\\n                .join(' ');\\n        }\\n    },\\n    watch: {\\n        \u002F\u002F Debug aid only — doesn't drive the chart (the `rows` computed\\n        \u002F\u002F property does that). Open the browser console (F12) to confirm\\n        \u002F\u002F messages are actually arriving and check the field names match\\n        \u002F\u002F (defect_type, defect_count, cumulative_pct).\\n        msg: function () {\\n            console.log('[Pareto widget] msg updated:', this.msg);\\n        }\\n    },\\n    methods: {\\n        barX(i) {\\n            const usableWidth = this.svgWidth - this.padding.left - this.padding.right;\\n            const n = this.rows.length || 1;\\n            const slot = usableWidth \u002F n;\\n            return this.padding.left + i * slot + (slot - this.barWidth) \u002F 2;\\n        },\\n        barY(count) {\\n            const usableHeight = this.chartAreaHeight - this.padding.top;\\n            return this.chartAreaHeight - (count \u002F this.maxCount) * usableHeight;\\n        },\\n        barHeight(count) {\\n            const usableHeight = this.chartAreaHeight - this.padding.top;\\n            return (count \u002F this.maxCount) * usableHeight;\\n        },\\n        pctToY(pct) {\\n            const usableHeight = this.chartAreaHeight - this.padding.top;\\n            return this.chartAreaHeight - (pct \u002F 100) * usableHeight;\\n        },\\n        wrapLabel(label) {\\n            \u002F\u002F Greedy word-wrap: fits as many words as possible per line\\n            \u002F\u002F (targeting ~11 chars\u002Fline) instead of truncating with \\\"…\\\".\\n            const words = label.split(' ');\\n            const maxCharsPerLine = 11;\\n            const lines = [];\\n            let currentLine = '';\\n\\n            words.forEach(word => {\\n                const candidate = currentLine ? `${currentLine} ${word}` : word;\\n                if (candidate.length > maxCharsPerLine && currentLine) {\\n                    lines.push(currentLine);\\n                    currentLine = word;\\n                } else {\\n                    currentLine = candidate;\\n                }\\n            });\\n            if (currentLine) lines.push(currentLine);\\n\\n            return lines;\\n        }\\n    }\\n}\\n\u003C\u002Fscript>\\n\\n\u003Cstyle>\\n.pareto-container {\\n    width: 100%;\\n}\\n.pareto-container svg {\\n    width: 100%;\\n    height: 260px;\\n}\\n.bar-label-value {\\n    font-size: 11px;\\n    fill: #B6BBC1;\\n    font-family: sans-serif;\\n}\\n.axis-label {\\n    font-size: 10px;\\n    fill: #B6BBC1;\\n    font-family: sans-serif;\\n}\\n.threshold-label {\\n    font-size: 10px;\\n    fill: #74A086;\\n    font-family: sans-serif;\\n}\\n.legend {\\n    display: flex;\\n    gap: 16px;\\n    justify-content: center;\\n    margin-top: 6px;\\n    font-size: 12px;\\n    color: #B6BBC1;\\n}\\n.legend-item {\\n    display: flex;\\n    align-items: center;\\n    gap: 6px;\\n}\\n.swatch {\\n    width: 10px;\\n    height: 10px;\\n    border-radius: 2px;\\n    display: inline-block;\\n}\\n.swatch.dash {\\n    background: transparent;\\n    border-top: 2px dashed;\\n    height: 0;\\n}\\n\u003C\u002Fstyle>\",\"storeOutMessages\":true,\"passthru\":true,\"resendOnRefresh\":true,\"templateScope\":\"local\",\"className\":\"\",\"x\":620,\"y\":640,\"wires\":[[]]},{\"id\":\"867ef11afa029061\",\"type\":\"ui-group\",\"d\":true,\"name\":\"Pareto Chart\",\"page\":\"e7cfd3329956406b\",\"width\":\"4\",\"height\":\"2\",\"order\":5,\"showTitle\":false,\"className\":\"\",\"visible\":\"true\",\"disabled\":\"false\",\"groupType\":\"default\"},{\"id\":\"e7cfd3329956406b\",\"type\":\"ui-page\",\"name\":\"Assembly Quality Monitor\",\"ui\":\"6481b1c613ec9a93\",\"path\":\"\u002Fdefects\",\"icon\":\"home\",\"layout\":\"grid\",\"theme\":\"faac104f34962f3e\",\"breakpoints\":[{\"name\":\"Default\",\"px\":\"0\",\"cols\":\"3\"},{\"name\":\"Tablet\",\"px\":\"576\",\"cols\":\"6\"},{\"name\":\"Small Desktop\",\"px\":\"768\",\"cols\":\"9\"},{\"name\":\"Desktop\",\"px\":\"1024\",\"cols\":\"12\"}],\"order\":1,\"className\":\"\",\"visible\":\"true\",\"disabled\":\"false\"},{\"id\":\"6481b1c613ec9a93\",\"type\":\"ui-base\",\"name\":\"My Dashboard\",\"path\":\"\u002Fdashboard\",\"appIcon\":\"\",\"includeClientData\":true,\"acceptsClientConfig\":[\"ui-notification\",\"ui-control\"],\"showPathInSidebar\":false,\"headerContent\":\"page\",\"navigationStyle\":\"default\",\"titleBarStyle\":\"default\",\"showReconnectNotification\":true,\"notificationDisplayTime\":1,\"showDisconnectNotification\":true,\"allowInstall\":false},{\"id\":\"faac104f34962f3e\",\"type\":\"ui-theme\",\"name\":\"Default Theme\",\"colors\":{\"surface\":\"#2e3134\",\"primary\":\"#5a96d6\",\"bgPage\":\"#383b3f\",\"groupBg\":\"#454950\",\"groupOutline\":\"#585d63\"},\"sizes\":{\"density\":\"default\",\"pagePadding\":\"12px\",\"groupGap\":\"12px\",\"groupBorderRadius\":\"4px\",\"widgetGap\":\"12px\"}},{\"id\":\"7c924e25db7a85a3\",\"type\":\"global-config\",\"env\":[],\"modules\":{\"@flowfuse\u002Fnode-red-dashboard\":\"1.30.2\"}}]\n",[79,10750,10751],{"__ignoreMap":174},[178,10752,10753,10755,10757,10759,10761,10763,10765,10768,10770,10772,10774,10776,10778,10780,10782,10784,10786,10788,10790,10792,10794,10796,10798,10800,10802,10804,10806,10808,10810,10812,10814,10817,10819,10821,10823,10825,10827,10829,10831,10834,10836,10838,10840,10842,10844,10846,10848,10850,10852,10854,10856,10858,10860,10862,10864,10866,10868,10870,10872,10875,10877,10879,10881,10883,10885,10887,10889,10891,10893,10895,10897,10899,10901,10903,10905,10907,10909,10911,10913,10915,10917,10919,10921,10923,10925,10927,10929,10931,10933,10935,10937,10939,10941,10944,10946,10949,10951,10953,10955,10958,10960,10963,10965,10968,10970,10973,10975,10977,10979,10982,10984,10987,10989,10992,10994,10997,10999,11002,11004,11006,11008,11011,11013,11016,11018,11021,11023,11026,11028,11031,11033,11036,11038,11041,11043,11046,11048,11051,11053,11056,11058,11061,11063,11066,11068,11071,11073,11076,11078,11081,11083,11085,11087,11090,11092,11094,11096,11099,11101,11104,11106,11109,11111,11114,11116,11119,11121,11124,11126,11128,11130,11132,11134,11136,11138,11140,11142,11145,11147,11149,11151,11153,11155,11157,11159,11162,11164,11167,11169,11172,11174,11177,11179,11182,11184,11187,11189,11191,11193,11196,11198,11200,11202,11205,11207,11210,11212,11215,11217,11220,11222,11225,11227,11230,11232,11235,11237,11240,11242,11245,11247,11250,11252,11255,11257,11260,11262,11265,11267,11270,11272,11274,11276,11279,11281,11284,11286,11289,11291,11294,11296,11299,11301,11304,11306,11309,11311,11314,11316,11318,11320,11323,11325,11328,11330,11333,11335,11338,11340,11343,11345,11348,11350,11353,11355,11358,11360,11363,11365,11368,11370,11373,11375,11378,11380,11383,11385,11387,11389,11392,11394,11397,11399,11402,11404,11406,11408,11411,11413,11416,11418,11420,11422,11425,11427,11430,11432,11435,11437,11439,11441,11444,11446,11449,11451,11454,11456,11459,11461,11463,11465,11467,11469,11471,11473,11476,11478,11480,11482,11485,11487,11489,11491,11494,11496,11499,11501,11504,11506,11509,11511,11514,11516,11519,11521,11524,11526,11528,11530,11532,11534,11536,11538,11540,11542,11544,11546,11549,11551,11554,11556,11558,11560,11562,11564,11566,11568,11571,11573,11575,11577,11580,11582,11585,11587,11589,11591,11594,11596,11598,11600,11602,11604,11607,11609,11611,11613,11615,11617,11620,11622,11625,11627,11630,11632,11634,11636,11638,11640,11643,11645,11648,11650,11653,11655,11658,11660,11663,11665,11668,11670,11673,11675,11678,11680,11683,11685,11688,11690,11693,11695,11698,11700,11703,11705,11707,11709,11712,11714,11717,11719,11721,11723,11726,11728,11731,11733,11736,11738,11741,11743,11745,11747,11750,11752,11755,11757,11760,11762,11765,11767,11769,11771,11773,11775,11777,11779,11782,11784,11787,11789,11792,11794,11797,11799,11802,11804,11807,11809,11811,11813,11815,11817,11819,11821,11824,11826,11828,11830,11832,11834,11837,11839,11842,11844,11846,11848,11851,11853,11856,11858,11861,11863,11865,11867,11870,11872,11874,11876,11879,11881,11883,11885,11888,11890,11892,11894,11897,11899,11901,11903,11906,11908,11911,11913,11916,11918,11921,11923,11925,11927,11930,11932,11935,11937,11940,11942,11945,11947,11950,11952,11955,11957,11960,11962,11965,11967,11970,11972,11975,11977,11980,11982,11984,11986,11988,11990,11993,11995,11998,12000,12002,12004,12006,12008,12010,12012,12014,12016,12018,12020,12023,12025,12028,12030,12032,12034,12037,12039,12041,12043,12046,12048,12050,12052,12055,12057,12060,12062,12065,12067,12070,12072,12074,12076,12079,12081,12084,12086,12088,12090,12092,12094,12096,12098,12101,12103,12105,12107,12110,12112,12114,12116,12118,12120,12123,12125,12128,12130,12133,12135,12138,12140,12143,12145,12148,12150,12153,12155,12157,12159,12162,12164,12166,12168,12171,12173,12176,12178,12180,12182,12185,12187,12190,12192,12195,12197,12200,12202,12205,12207,12209,12211,12214,12216,12219,12221,12224,12226,12229,12231,12233,12235,12237,12239,12241,12243,12245,12247,12249,12251,12253,12255,12257,12259,12261,12263,12265,12267,12269,12271,12273,12275,12278,12280,12282,12284,12286,12288,12290,12292,12294,12296,12298,12300,12302,12305,12307,12309,12311,12313,12315,12318,12320,12322,12324,12326,12329,12331,12333,12335,12337,12339,12341,12343,12345,12347,12349,12351,12353,12355,12358,12360,12362,12364,12366,12368,12370,12372,12374,12376,12378,12380,12383,12385,12387,12389,12391,12393,12395,12397,12400,12402,12404,12406,12408,12410,12412,12414,12417,12419,12421,12423,12425,12427,12429,12431,12434,12436,12438,12440,12442,12444,12446,12448,12450,12452,12455,12457,12459,12461,12463,12465,12467,12469,12471,12473,12476,12478,12480,12482,12485,12487,12489,12491,12494,12496,12498,12500,12503,12505,12507,12509,12512,12514,12516,12518,12520,12522,12524,12526,12528,12530,12532,12534,12536,12538,12540,12542,12544,12546,12548,12550,12553,12555,12557,12559,12561,12563,12565,12567,12570,12572,12574,12576,12578,12580,12582,12584,12586,12588,12590,12592,12594,12596,12598,12600,12603,12605,12607,12609,12612,12614,12616,12618,12621,12623,12625,12627,12630,12632,12634,12636,12639,12641,12643,12645,12648,12650,12652,12654,12657,12659,12661,12663,12666,12668,12671,12673,12675,12677,12679,12681,12684,12686,12688,12690,12693,12695,12697,12699,12701,12703,12705,12707,12710,12712,12714,12716,12718,12720,12722,12724,12726,12728,12730,12732,12735,12737,12739,12741,12743,12745,12747,12749,12752,12754,12756,12758,12760,12762,12764,12766,12769,12771,12773,12775,12777,12779,12781,12783,12786,12788,12790,12792,12794,12796,12798,12800,12803,12805,12807,12809,12811,12813,12815,12817,12820,12822,12824,12826,12828,12830,12832,12834,12837,12839,12841,12843,12845,12847,12849,12851,12854,12856,12858,12860,12862,12864,12866,12868,12871,12873,12876,12878,12880,12882,12884,12886,12888,12890,12892,12894,12896,12898,12900,12902,12904,12906,12908,12910,12912,12914,12916,12918,12920,12922,12924,12926,12928,12930,12932,12934,12936,12938,12940,12942,12944,12946,12948,12950,12952,12954,12956,12958,12960,12962,12964,12966,12968,12970,12972,12974,12976,12978,12980,12982,12984,12986,12988,12990,12992,12994,12996,12998,13000,13002,13004,13006,13008,13010,13012,13014,13016,13018,13020,13022,13024,13026,13028,13030,13032,13034,13036,13038,13040,13042,13044,13046,13048,13050,13052,13054,13056,13058,13060,13062,13064,13066,13068,13070,13072,13074,13076,13078,13080,13082,13084,13086,13088,13090,13092,13094,13096,13098,13100,13102,13104,13106,13108,13110,13112,13114,13116,13118,13120,13122,13124,13126,13128,13130,13132,13134,13136,13138,13140,13142,13144,13146,13148,13150,13152,13154,13156,13158,13161,13163,13165,13167,13169,13171,13173,13175,13178,13180,13182,13184,13187,13189,13191,13193,13196,13198,13200,13202,13205,13207,13209,13211,13214,13216,13218,13220,13223,13225,13227,13229,13232,13234,13236,13238,13241,13243,13245,13247,13250,13252,13254,13256,13259,13261,13263,13265,13268,13270,13272,13274,13277,13279,13282,13284,13287,13289,13291,13293,13296,13298,13300,13302,13304,13306,13308,13310,13313,13315,13317,13319,13322,13324,13326,13328,13331,13333,13335,13337,13339,13341,13343,13345,13348,13350,13352,13354,13357,13359,13361,13363,13366,13368,13370,13372,13374,13376,13379,13381,13383,13385,13387,13389,13392,13394,13396,13398,13400,13402,13404,13406,13408,13410,13412,13414,13416,13418,13420,13422,13424,13426,13428,13430,13432,13434,13436,13438,13440,13442],{"class":180,"line":181},[178,10754,185],{"class":184},[178,10756,188],{"class":184},[178,10758,192],{"class":191},[178,10760,188],{"class":184},[178,10762,197],{"class":184},[178,10764,188],{"class":184},[178,10766,10767],{"class":202},"fef40951758bc433",[178,10769,188],{"class":184},[178,10771,208],{"class":184},[178,10773,188],{"class":184},[178,10775,213],{"class":191},[178,10777,188],{"class":184},[178,10779,197],{"class":184},[178,10781,188],{"class":184},[178,10783,96],{"class":202},[178,10785,188],{"class":184},[178,10787,208],{"class":184},[178,10789,188],{"class":184},[178,10791,231],{"class":191},[178,10793,188],{"class":184},[178,10795,197],{"class":184},[178,10797,188],{"class":184},[178,10799,9476],{"class":202},[178,10801,188],{"class":184},[178,10803,208],{"class":184},[178,10805,188],{"class":184},[178,10807,478],{"class":191},[178,10809,188],{"class":184},[178,10811,197],{"class":184},[178,10813,188],{"class":184},[178,10815,10816],{"class":202},"54e9382e7013c157",[178,10818,188],{"class":184},[178,10820,208],{"class":184},[178,10822,188],{"class":184},[178,10824,222],{"class":191},[178,10826,188],{"class":184},[178,10828,197],{"class":184},[178,10830,188],{"class":184},[178,10832,10833],{"class":202},"867ef11afa029061",[178,10835,188],{"class":184},[178,10837,208],{"class":184},[178,10839,188],{"class":184},[178,10841,9514],{"class":191},[178,10843,188],{"class":184},[178,10845,197],{"class":184},[178,10847,593],{"class":184},[178,10849,208],{"class":184},[178,10851,188],{"class":184},[178,10853,9527],{"class":191},[178,10855,188],{"class":184},[178,10857,197],{"class":184},[178,10859,593],{"class":184},[178,10861,208],{"class":184},[178,10863,188],{"class":184},[178,10865,249],{"class":191},[178,10867,188],{"class":184},[178,10869,197],{"class":184},[178,10871,188],{"class":184},[178,10873,10874],{"class":202},"Custom Pareto Chart",[178,10876,188],{"class":184},[178,10878,208],{"class":184},[178,10880,188],{"class":184},[178,10882,9562],{"class":191},[178,10884,188],{"class":184},[178,10886,197],{"class":184},[178,10888,3418],{"class":378},[178,10890,208],{"class":184},[178,10892,188],{"class":184},[178,10894,9575],{"class":191},[178,10896,188],{"class":184},[178,10898,197],{"class":184},[178,10900,1193],{"class":378},[178,10902,208],{"class":184},[178,10904,188],{"class":184},[178,10906,9588],{"class":191},[178,10908,188],{"class":184},[178,10910,197],{"class":184},[178,10912,1193],{"class":378},[178,10914,208],{"class":184},[178,10916,188],{"class":184},[178,10918,9601],{"class":191},[178,10920,188],{"class":184},[178,10922,197],{"class":184},[178,10924,593],{"class":184},[178,10926,208],{"class":184},[178,10928,188],{"class":184},[178,10930,9614],{"class":191},[178,10932,188],{"class":184},[178,10934,197],{"class":184},[178,10936,188],{"class":184},[178,10938,9623],{"class":202},[178,10940,941],{"class":940},[178,10942,10943],{"class":202},"    \u003Cdiv class=",[178,10945,1030],{"class":940},[178,10947,10948],{"class":202},"pareto-container",[178,10950,1030],{"class":940},[178,10952,9653],{"class":202},[178,10954,941],{"class":940},[178,10956,10957],{"class":202},"        \u003Csvg :viewBox=",[178,10959,1030],{"class":940},[178,10961,10962],{"class":202},"`0 0 ${svgWidth} ${svgHeight}`",[178,10964,1030],{"class":940},[178,10966,10967],{"class":202}," preserveAspectRatio=",[178,10969,1030],{"class":940},[178,10971,10972],{"class":202},"xMidYMid meet",[178,10974,1030],{"class":940},[178,10976,9653],{"class":202},[178,10978,941],{"class":940},[178,10980,10981],{"class":202},"            \u003C!-- Bars -->",[178,10983,941],{"class":940},[178,10985,10986],{"class":202},"            \u003Cg v-for=",[178,10988,1030],{"class":940},[178,10990,10991],{"class":202},"(row, i) in rows",[178,10993,1030],{"class":940},[178,10995,10996],{"class":202}," :key=",[178,10998,1030],{"class":940},[178,11000,11001],{"class":202},"'bar-' + row.defect_type",[178,11003,1030],{"class":940},[178,11005,9653],{"class":202},[178,11007,941],{"class":940},[178,11009,11010],{"class":202},"                \u003Crect",[178,11012,941],{"class":940},[178,11014,11015],{"class":202},"                    :x=",[178,11017,1030],{"class":940},[178,11019,11020],{"class":202},"barX(i)",[178,11022,1160],{"class":940},[178,11024,11025],{"class":202},"                    :y=",[178,11027,1030],{"class":940},[178,11029,11030],{"class":202},"barY(row.defect_count)",[178,11032,1160],{"class":940},[178,11034,11035],{"class":202},"                    :width=",[178,11037,1030],{"class":940},[178,11039,11040],{"class":202},"barWidth",[178,11042,1160],{"class":940},[178,11044,11045],{"class":202},"                    :height=",[178,11047,1030],{"class":940},[178,11049,11050],{"class":202},"barHeight(row.defect_count)",[178,11052,1160],{"class":940},[178,11054,11055],{"class":202},"                    fill=",[178,11057,1030],{"class":940},[178,11059,11060],{"class":202},"#CEBA8C",[178,11062,1160],{"class":940},[178,11064,11065],{"class":202},"                    rx=",[178,11067,1030],{"class":940},[178,11069,11070],{"class":202},"3",[178,11072,1160],{"class":940},[178,11074,11075],{"class":202},"                \u002F>",[178,11077,941],{"class":940},[178,11079,11080],{"class":202},"                \u003Ctext",[178,11082,941],{"class":940},[178,11084,11015],{"class":202},[178,11086,1030],{"class":940},[178,11088,11089],{"class":202},"barX(i) + barWidth \u002F 2",[178,11091,1160],{"class":940},[178,11093,11025],{"class":202},[178,11095,1030],{"class":940},[178,11097,11098],{"class":202},"barY(row.defect_count) - 8",[178,11100,1160],{"class":940},[178,11102,11103],{"class":202},"                    text-anchor=",[178,11105,1030],{"class":940},[178,11107,11108],{"class":202},"middle",[178,11110,1160],{"class":940},[178,11112,11113],{"class":202},"                    class=",[178,11115,1030],{"class":940},[178,11117,11118],{"class":202},"bar-label-value",[178,11120,1160],{"class":940},[178,11122,11123],{"class":202},"                >{{ row.defect_count }}\u003C\u002Ftext>",[178,11125,941],{"class":940},[178,11127,11080],{"class":202},[178,11129,941],{"class":940},[178,11131,11015],{"class":202},[178,11133,1030],{"class":940},[178,11135,11089],{"class":202},[178,11137,1160],{"class":940},[178,11139,11025],{"class":202},[178,11141,1030],{"class":940},[178,11143,11144],{"class":202},"chartAreaHeight + 16",[178,11146,1160],{"class":940},[178,11148,11103],{"class":202},[178,11150,1030],{"class":940},[178,11152,11108],{"class":202},[178,11154,1160],{"class":940},[178,11156,11113],{"class":202},[178,11158,1030],{"class":940},[178,11160,11161],{"class":202},"axis-label",[178,11163,1160],{"class":940},[178,11165,11166],{"class":202},"                >",[178,11168,941],{"class":940},[178,11170,11171],{"class":202},"                    \u003Ctspan",[178,11173,941],{"class":940},[178,11175,11176],{"class":202},"                        v-for=",[178,11178,1030],{"class":940},[178,11180,11181],{"class":202},"(line, li) in wrapLabel(row.defect_type)",[178,11183,1160],{"class":940},[178,11185,11186],{"class":202},"                        :key=",[178,11188,1030],{"class":940},[178,11190,52],{"class":202},[178,11192,1160],{"class":940},[178,11194,11195],{"class":202},"                        :x=",[178,11197,1030],{"class":940},[178,11199,11089],{"class":202},[178,11201,1160],{"class":940},[178,11203,11204],{"class":202},"                        :dy=",[178,11206,1030],{"class":940},[178,11208,11209],{"class":202},"li === 0 ? 0 : 12",[178,11211,1160],{"class":940},[178,11213,11214],{"class":202},"                    >{{ line }}\u003C\u002Ftspan>",[178,11216,941],{"class":940},[178,11218,11219],{"class":202},"                \u003C\u002Ftext>",[178,11221,941],{"class":940},[178,11223,11224],{"class":202},"            \u003C\u002Fg>",[178,11226,951],{"class":940},[178,11228,11229],{"class":202},"            \u003C!-- 80% threshold dashed line -->",[178,11231,941],{"class":940},[178,11233,11234],{"class":202},"            \u003Cline",[178,11236,941],{"class":940},[178,11238,11239],{"class":202},"                :x1=",[178,11241,1030],{"class":940},[178,11243,11244],{"class":202},"padding.left",[178,11246,1030],{"class":940},[178,11248,11249],{"class":202}," :x2=",[178,11251,1030],{"class":940},[178,11253,11254],{"class":202},"svgWidth - padding.right",[178,11256,1160],{"class":940},[178,11258,11259],{"class":202},"                :y1=",[178,11261,1030],{"class":940},[178,11263,11264],{"class":202},"pctToY(80)",[178,11266,1030],{"class":940},[178,11268,11269],{"class":202}," :y2=",[178,11271,1030],{"class":940},[178,11273,11264],{"class":202},[178,11275,1160],{"class":940},[178,11277,11278],{"class":202},"                stroke=",[178,11280,1030],{"class":940},[178,11282,11283],{"class":202},"#74A086",[178,11285,1030],{"class":940},[178,11287,11288],{"class":202}," stroke-width=",[178,11290,1030],{"class":940},[178,11292,11293],{"class":202},"1.5",[178,11295,1030],{"class":940},[178,11297,11298],{"class":202}," stroke-dasharray=",[178,11300,1030],{"class":940},[178,11302,11303],{"class":202},"5,4",[178,11305,1160],{"class":940},[178,11307,11308],{"class":202},"            \u002F>",[178,11310,941],{"class":940},[178,11312,11313],{"class":202},"            \u003Ctext :x=",[178,11315,1030],{"class":940},[178,11317,11254],{"class":202},[178,11319,1030],{"class":940},[178,11321,11322],{"class":202}," :y=",[178,11324,1030],{"class":940},[178,11326,11327],{"class":202},"pctToY(80) - 6",[178,11329,1030],{"class":940},[178,11331,11332],{"class":202}," text-anchor=",[178,11334,1030],{"class":940},[178,11336,11337],{"class":202},"end",[178,11339,1030],{"class":940},[178,11341,11342],{"class":202}," class=",[178,11344,1030],{"class":940},[178,11346,11347],{"class":202},"threshold-label",[178,11349,1030],{"class":940},[178,11351,11352],{"class":202},">80%\u003C\u002Ftext>",[178,11354,951],{"class":940},[178,11356,11357],{"class":202},"            \u003C!-- Cumulative % line -->",[178,11359,941],{"class":940},[178,11361,11362],{"class":202},"            \u003Cpolyline",[178,11364,941],{"class":940},[178,11366,11367],{"class":202},"                :points=",[178,11369,1030],{"class":940},[178,11371,11372],{"class":202},"cumulativeLinePoints",[178,11374,1160],{"class":940},[178,11376,11377],{"class":202},"                fill=",[178,11379,1030],{"class":940},[178,11381,11382],{"class":202},"none",[178,11384,1160],{"class":940},[178,11386,11278],{"class":202},[178,11388,1030],{"class":940},[178,11390,11391],{"class":202},"#C28181",[178,11393,1160],{"class":940},[178,11395,11396],{"class":202},"                stroke-width=",[178,11398,1030],{"class":940},[178,11400,11401],{"class":202},"2.5",[178,11403,1160],{"class":940},[178,11405,11308],{"class":202},[178,11407,941],{"class":940},[178,11409,11410],{"class":202},"            \u003Ccircle",[178,11412,941],{"class":940},[178,11414,11415],{"class":202},"                v-for=",[178,11417,1030],{"class":940},[178,11419,10991],{"class":202},[178,11421,1160],{"class":940},[178,11423,11424],{"class":202},"                :key=",[178,11426,1030],{"class":940},[178,11428,11429],{"class":202},"'pt-' + row.defect_type",[178,11431,1160],{"class":940},[178,11433,11434],{"class":202},"                :cx=",[178,11436,1030],{"class":940},[178,11438,11089],{"class":202},[178,11440,1160],{"class":940},[178,11442,11443],{"class":202},"                :cy=",[178,11445,1030],{"class":940},[178,11447,11448],{"class":202},"pctToY(row.cumulative_pct)",[178,11450,1160],{"class":940},[178,11452,11453],{"class":202},"                r=",[178,11455,1030],{"class":940},[178,11457,11458],{"class":202},"3.5",[178,11460,1160],{"class":940},[178,11462,11377],{"class":202},[178,11464,1030],{"class":940},[178,11466,11391],{"class":202},[178,11468,1160],{"class":940},[178,11470,11308],{"class":202},[178,11472,941],{"class":940},[178,11474,11475],{"class":202},"        \u003C\u002Fsvg>",[178,11477,951],{"class":940},[178,11479,9658],{"class":202},[178,11481,1030],{"class":940},[178,11483,11484],{"class":202},"legend",[178,11486,1030],{"class":940},[178,11488,9653],{"class":202},[178,11490,941],{"class":940},[178,11492,11493],{"class":202},"            \u003Cspan class=",[178,11495,1030],{"class":940},[178,11497,11498],{"class":202},"legend-item",[178,11500,1030],{"class":940},[178,11502,11503],{"class":202},">\u003Cspan class=",[178,11505,1030],{"class":940},[178,11507,11508],{"class":202},"swatch",[178,11510,1030],{"class":940},[178,11512,11513],{"class":202}," style=",[178,11515,1030],{"class":940},[178,11517,11518],{"class":202},"background:#CEBA8C",[178,11520,1030],{"class":940},[178,11522,11523],{"class":202},">\u003C\u002Fspan>Defect Count\u003C\u002Fspan>",[178,11525,941],{"class":940},[178,11527,11493],{"class":202},[178,11529,1030],{"class":940},[178,11531,11498],{"class":202},[178,11533,1030],{"class":940},[178,11535,11503],{"class":202},[178,11537,1030],{"class":940},[178,11539,11508],{"class":202},[178,11541,1030],{"class":940},[178,11543,11513],{"class":202},[178,11545,1030],{"class":940},[178,11547,11548],{"class":202},"background:#C28181",[178,11550,1030],{"class":940},[178,11552,11553],{"class":202},">\u003C\u002Fspan>Cumulative %\u003C\u002Fspan>",[178,11555,941],{"class":940},[178,11557,11493],{"class":202},[178,11559,1030],{"class":940},[178,11561,11498],{"class":202},[178,11563,1030],{"class":940},[178,11565,11503],{"class":202},[178,11567,1030],{"class":940},[178,11569,11570],{"class":202},"swatch dash",[178,11572,1030],{"class":940},[178,11574,11513],{"class":202},[178,11576,1030],{"class":940},[178,11578,11579],{"class":202},"border-color:#74A086",[178,11581,1030],{"class":940},[178,11583,11584],{"class":202},">\u003C\u002Fspan>80% Threshold\u003C\u002Fspan>",[178,11586,941],{"class":940},[178,11588,9899],{"class":202},[178,11590,941],{"class":940},[178,11592,11593],{"class":202},"    \u003C\u002Fdiv>",[178,11595,941],{"class":940},[178,11597,9909],{"class":202},[178,11599,951],{"class":940},[178,11601,9914],{"class":202},[178,11603,941],{"class":940},[178,11605,11606],{"class":202},"export default {",[178,11608,941],{"class":940},[178,11610,9924],{"class":202},[178,11612,941],{"class":940},[178,11614,9929],{"class":202},[178,11616,941],{"class":940},[178,11618,11619],{"class":202},"            svgWidth: 600,",[178,11621,941],{"class":940},[178,11623,11624],{"class":202},"            svgHeight: 260,",[178,11626,941],{"class":940},[178,11628,11629],{"class":202},"            padding: { top: 20, right: 40, bottom: 62, left: 10 }",[178,11631,941],{"class":940},[178,11633,9979],{"class":202},[178,11635,941],{"class":940},[178,11637,1484],{"class":202},[178,11639,941],{"class":940},[178,11641,11642],{"class":202},"    computed: {",[178,11644,941],{"class":940},[178,11646,11647],{"class":202},"        \u002F\u002F Per the docs: `msg` is a built-in variable, automatically",[178,11649,941],{"class":940},[178,11651,11652],{"class":202},"        \u002F\u002F assigned whenever this ui-template node receives a message",[178,11654,941],{"class":940},[178,11656,11657],{"class":202},"        \u002F\u002F from Node-RED. Deriving `rows` from it directly (rather than",[178,11659,941],{"class":940},[178,11661,11662],{"class":202},"        \u002F\u002F manually managing a socket listener) means Vue's reactivity",[178,11664,941],{"class":940},[178,11666,11667],{"class":202},"        \u002F\u002F handles updates for us — any change to `msg` recomputes `rows`",[178,11669,941],{"class":940},[178,11671,11672],{"class":202},"        \u002F\u002F and re-renders the SVG automatically.",[178,11674,941],{"class":940},[178,11676,11677],{"class":202},"        rows() {",[178,11679,941],{"class":940},[178,11681,11682],{"class":202},"            const payload = this.msg?.payload;",[178,11684,941],{"class":940},[178,11686,11687],{"class":202},"            return Array.isArray(payload) ? payload : [];",[178,11689,941],{"class":940},[178,11691,11692],{"class":202},"        },",[178,11694,941],{"class":940},[178,11696,11697],{"class":202},"        chartAreaHeight() {",[178,11699,941],{"class":940},[178,11701,11702],{"class":202},"            return this.svgHeight - this.padding.bottom;",[178,11704,941],{"class":940},[178,11706,11692],{"class":202},[178,11708,941],{"class":940},[178,11710,11711],{"class":202},"        maxCount() {",[178,11713,941],{"class":940},[178,11715,11716],{"class":202},"            return Math.max(1, ...this.rows.map(r => r.defect_count));",[178,11718,941],{"class":940},[178,11720,11692],{"class":202},[178,11722,941],{"class":940},[178,11724,11725],{"class":202},"        barWidth() {",[178,11727,941],{"class":940},[178,11729,11730],{"class":202},"            const usableWidth = this.svgWidth - this.padding.left - this.padding.right;",[178,11732,941],{"class":940},[178,11734,11735],{"class":202},"            const n = this.rows.length || 1;",[178,11737,941],{"class":940},[178,11739,11740],{"class":202},"            return Math.min(60, (usableWidth \u002F n) * 0.6);",[178,11742,941],{"class":940},[178,11744,11692],{"class":202},[178,11746,941],{"class":940},[178,11748,11749],{"class":202},"        cumulativeLinePoints() {",[178,11751,941],{"class":940},[178,11753,11754],{"class":202},"            return this.rows",[178,11756,941],{"class":940},[178,11758,11759],{"class":202},"                .map((row, i) => `${this.barX(i) + this.barWidth \u002F 2},${this.pctToY(row.cumulative_pct)}`)",[178,11761,941],{"class":940},[178,11763,11764],{"class":202},"                .join(' ');",[178,11766,941],{"class":940},[178,11768,9979],{"class":202},[178,11770,941],{"class":940},[178,11772,1484],{"class":202},[178,11774,941],{"class":940},[178,11776,10007],{"class":202},[178,11778,941],{"class":940},[178,11780,11781],{"class":202},"        \u002F\u002F Debug aid only — doesn't drive the chart (the `rows` computed",[178,11783,941],{"class":940},[178,11785,11786],{"class":202},"        \u002F\u002F property does that). Open the browser console (F12) to confirm",[178,11788,941],{"class":940},[178,11790,11791],{"class":202},"        \u002F\u002F messages are actually arriving and check the field names match",[178,11793,941],{"class":940},[178,11795,11796],{"class":202},"        \u002F\u002F (defect_type, defect_count, cumulative_pct).",[178,11798,941],{"class":940},[178,11800,11801],{"class":202},"        msg: function () {",[178,11803,941],{"class":940},[178,11805,11806],{"class":202},"            console.log('[Pareto widget] msg updated:', this.msg);",[178,11808,941],{"class":940},[178,11810,9979],{"class":202},[178,11812,941],{"class":940},[178,11814,1484],{"class":202},[178,11816,941],{"class":940},[178,11818,10100],{"class":202},[178,11820,941],{"class":940},[178,11822,11823],{"class":202},"        barX(i) {",[178,11825,941],{"class":940},[178,11827,11730],{"class":202},[178,11829,941],{"class":940},[178,11831,11735],{"class":202},[178,11833,941],{"class":940},[178,11835,11836],{"class":202},"            const slot = usableWidth \u002F n;",[178,11838,941],{"class":940},[178,11840,11841],{"class":202},"            return this.padding.left + i * slot + (slot - this.barWidth) \u002F 2;",[178,11843,941],{"class":940},[178,11845,11692],{"class":202},[178,11847,941],{"class":940},[178,11849,11850],{"class":202},"        barY(count) {",[178,11852,941],{"class":940},[178,11854,11855],{"class":202},"            const usableHeight = this.chartAreaHeight - this.padding.top;",[178,11857,941],{"class":940},[178,11859,11860],{"class":202},"            return this.chartAreaHeight - (count \u002F this.maxCount) * usableHeight;",[178,11862,941],{"class":940},[178,11864,11692],{"class":202},[178,11866,941],{"class":940},[178,11868,11869],{"class":202},"        barHeight(count) {",[178,11871,941],{"class":940},[178,11873,11855],{"class":202},[178,11875,941],{"class":940},[178,11877,11878],{"class":202},"            return (count \u002F this.maxCount) * usableHeight;",[178,11880,941],{"class":940},[178,11882,11692],{"class":202},[178,11884,941],{"class":940},[178,11886,11887],{"class":202},"        pctToY(pct) {",[178,11889,941],{"class":940},[178,11891,11855],{"class":202},[178,11893,941],{"class":940},[178,11895,11896],{"class":202},"            return this.chartAreaHeight - (pct \u002F 100) * usableHeight;",[178,11898,941],{"class":940},[178,11900,11692],{"class":202},[178,11902,941],{"class":940},[178,11904,11905],{"class":202},"        wrapLabel(label) {",[178,11907,941],{"class":940},[178,11909,11910],{"class":202},"            \u002F\u002F Greedy word-wrap: fits as many words as possible per line",[178,11912,941],{"class":940},[178,11914,11915],{"class":202},"            \u002F\u002F (targeting ~11 chars\u002Fline) instead of truncating with ",[178,11917,1030],{"class":940},[178,11919,11920],{"class":202},"…",[178,11922,1030],{"class":940},[178,11924,36],{"class":202},[178,11926,941],{"class":940},[178,11928,11929],{"class":202},"            const words = label.split(' ');",[178,11931,941],{"class":940},[178,11933,11934],{"class":202},"            const maxCharsPerLine = 11;",[178,11936,941],{"class":940},[178,11938,11939],{"class":202},"            const lines = [];",[178,11941,941],{"class":940},[178,11943,11944],{"class":202},"            let currentLine = '';",[178,11946,951],{"class":940},[178,11948,11949],{"class":202},"            words.forEach(word => {",[178,11951,941],{"class":940},[178,11953,11954],{"class":202},"                const candidate = currentLine ? `${currentLine} ${word}` : word;",[178,11956,941],{"class":940},[178,11958,11959],{"class":202},"                if (candidate.length > maxCharsPerLine && currentLine) {",[178,11961,941],{"class":940},[178,11963,11964],{"class":202},"                    lines.push(currentLine);",[178,11966,941],{"class":940},[178,11968,11969],{"class":202},"                    currentLine = word;",[178,11971,941],{"class":940},[178,11973,11974],{"class":202},"                } else {",[178,11976,941],{"class":940},[178,11978,11979],{"class":202},"                    currentLine = candidate;",[178,11981,941],{"class":940},[178,11983,10135],{"class":202},[178,11985,941],{"class":940},[178,11987,10140],{"class":202},[178,11989,941],{"class":940},[178,11991,11992],{"class":202},"            if (currentLine) lines.push(currentLine);",[178,11994,951],{"class":940},[178,11996,11997],{"class":202},"            return lines;",[178,11999,941],{"class":940},[178,12001,9979],{"class":202},[178,12003,941],{"class":940},[178,12005,989],{"class":202},[178,12007,941],{"class":940},[178,12009,999],{"class":202},[178,12011,941],{"class":940},[178,12013,10157],{"class":202},[178,12015,951],{"class":940},[178,12017,10162],{"class":202},[178,12019,941],{"class":940},[178,12021,12022],{"class":202},".pareto-container {",[178,12024,941],{"class":940},[178,12026,12027],{"class":202},"    width: 100%;",[178,12029,941],{"class":940},[178,12031,999],{"class":202},[178,12033,941],{"class":940},[178,12035,12036],{"class":202},".pareto-container svg {",[178,12038,941],{"class":940},[178,12040,12027],{"class":202},[178,12042,941],{"class":940},[178,12044,12045],{"class":202},"    height: 260px;",[178,12047,941],{"class":940},[178,12049,999],{"class":202},[178,12051,941],{"class":940},[178,12053,12054],{"class":202},".bar-label-value {",[178,12056,941],{"class":940},[178,12058,12059],{"class":202},"    font-size: 11px;",[178,12061,941],{"class":940},[178,12063,12064],{"class":202},"    fill: #B6BBC1;",[178,12066,941],{"class":940},[178,12068,12069],{"class":202},"    font-family: sans-serif;",[178,12071,941],{"class":940},[178,12073,999],{"class":202},[178,12075,941],{"class":940},[178,12077,12078],{"class":202},".axis-label {",[178,12080,941],{"class":940},[178,12082,12083],{"class":202},"    font-size: 10px;",[178,12085,941],{"class":940},[178,12087,12064],{"class":202},[178,12089,941],{"class":940},[178,12091,12069],{"class":202},[178,12093,941],{"class":940},[178,12095,999],{"class":202},[178,12097,941],{"class":940},[178,12099,12100],{"class":202},".threshold-label {",[178,12102,941],{"class":940},[178,12104,12083],{"class":202},[178,12106,941],{"class":940},[178,12108,12109],{"class":202},"    fill: #74A086;",[178,12111,941],{"class":940},[178,12113,12069],{"class":202},[178,12115,941],{"class":940},[178,12117,999],{"class":202},[178,12119,941],{"class":940},[178,12121,12122],{"class":202},".legend {",[178,12124,941],{"class":940},[178,12126,12127],{"class":202},"    display: flex;",[178,12129,941],{"class":940},[178,12131,12132],{"class":202},"    gap: 16px;",[178,12134,941],{"class":940},[178,12136,12137],{"class":202},"    justify-content: center;",[178,12139,941],{"class":940},[178,12141,12142],{"class":202},"    margin-top: 6px;",[178,12144,941],{"class":940},[178,12146,12147],{"class":202},"    font-size: 12px;",[178,12149,941],{"class":940},[178,12151,12152],{"class":202},"    color: #B6BBC1;",[178,12154,941],{"class":940},[178,12156,999],{"class":202},[178,12158,941],{"class":940},[178,12160,12161],{"class":202},".legend-item {",[178,12163,941],{"class":940},[178,12165,12127],{"class":202},[178,12167,941],{"class":940},[178,12169,12170],{"class":202},"    align-items: center;",[178,12172,941],{"class":940},[178,12174,12175],{"class":202},"    gap: 6px;",[178,12177,941],{"class":940},[178,12179,999],{"class":202},[178,12181,941],{"class":940},[178,12183,12184],{"class":202},".swatch {",[178,12186,941],{"class":940},[178,12188,12189],{"class":202},"    width: 10px;",[178,12191,941],{"class":940},[178,12193,12194],{"class":202},"    height: 10px;",[178,12196,941],{"class":940},[178,12198,12199],{"class":202},"    border-radius: 2px;",[178,12201,941],{"class":940},[178,12203,12204],{"class":202},"    display: inline-block;",[178,12206,941],{"class":940},[178,12208,999],{"class":202},[178,12210,941],{"class":940},[178,12212,12213],{"class":202},".swatch.dash {",[178,12215,941],{"class":940},[178,12217,12218],{"class":202},"    background: transparent;",[178,12220,941],{"class":940},[178,12222,12223],{"class":202},"    border-top: 2px dashed;",[178,12225,941],{"class":940},[178,12227,12228],{"class":202},"    height: 0;",[178,12230,941],{"class":940},[178,12232,999],{"class":202},[178,12234,941],{"class":940},[178,12236,10196],{"class":202},[178,12238,188],{"class":184},[178,12240,208],{"class":184},[178,12242,188],{"class":184},[178,12244,10205],{"class":191},[178,12246,188],{"class":184},[178,12248,517],{"class":184},[178,12250,188],{"class":184},[178,12252,10214],{"class":191},[178,12254,188],{"class":184},[178,12256,517],{"class":184},[178,12258,188],{"class":184},[178,12260,10223],{"class":191},[178,12262,188],{"class":184},[178,12264,517],{"class":184},[178,12266,188],{"class":184},[178,12268,10232],{"class":191},[178,12270,188],{"class":184},[178,12272,197],{"class":184},[178,12274,188],{"class":184},[178,12276,12277],{"class":202},"local",[178,12279,188],{"class":184},[178,12281,208],{"class":184},[178,12283,188],{"class":184},[178,12285,10250],{"class":191},[178,12287,188],{"class":184},[178,12289,197],{"class":184},[178,12291,593],{"class":184},[178,12293,208],{"class":184},[178,12295,188],{"class":184},[178,12297,371],{"class":191},[178,12299,188],{"class":184},[178,12301,197],{"class":184},[178,12303,12304],{"class":378},"620",[178,12306,208],{"class":184},[178,12308,188],{"class":184},[178,12310,386],{"class":191},[178,12312,188],{"class":184},[178,12314,197],{"class":184},[178,12316,12317],{"class":378},"640",[178,12319,208],{"class":184},[178,12321,188],{"class":184},[178,12323,644],{"class":191},[178,12325,188],{"class":184},[178,12327,12328],{"class":184},":[[]]},{",[178,12330,188],{"class":184},[178,12332,192],{"class":191},[178,12334,188],{"class":184},[178,12336,197],{"class":184},[178,12338,188],{"class":184},[178,12340,10833],{"class":202},[178,12342,188],{"class":184},[178,12344,208],{"class":184},[178,12346,188],{"class":184},[178,12348,213],{"class":191},[178,12350,188],{"class":184},[178,12352,197],{"class":184},[178,12354,188],{"class":184},[178,12356,12357],{"class":202},"ui-group",[178,12359,188],{"class":184},[178,12361,208],{"class":184},[178,12363,188],{"class":184},[178,12365,7679],{"class":191},[178,12367,188],{"class":184},[178,12369,517],{"class":184},[178,12371,188],{"class":184},[178,12373,249],{"class":191},[178,12375,188],{"class":184},[178,12377,197],{"class":184},[178,12379,188],{"class":184},[178,12381,12382],{"class":202},"Pareto Chart",[178,12384,188],{"class":184},[178,12386,208],{"class":184},[178,12388,188],{"class":184},[178,12390,9514],{"class":191},[178,12392,188],{"class":184},[178,12394,197],{"class":184},[178,12396,188],{"class":184},[178,12398,12399],{"class":202},"e7cfd3329956406b",[178,12401,188],{"class":184},[178,12403,208],{"class":184},[178,12405,188],{"class":184},[178,12407,9575],{"class":191},[178,12409,188],{"class":184},[178,12411,197],{"class":184},[178,12413,188],{"class":184},[178,12415,12416],{"class":202},"4",[178,12418,188],{"class":184},[178,12420,208],{"class":184},[178,12422,188],{"class":184},[178,12424,9588],{"class":191},[178,12426,188],{"class":184},[178,12428,197],{"class":184},[178,12430,188],{"class":184},[178,12432,12433],{"class":202},"2",[178,12435,188],{"class":184},[178,12437,208],{"class":184},[178,12439,188],{"class":184},[178,12441,9562],{"class":191},[178,12443,188],{"class":184},[178,12445,197],{"class":184},[178,12447,3619],{"class":378},[178,12449,208],{"class":184},[178,12451,188],{"class":184},[178,12453,12454],{"class":191},"showTitle",[178,12456,188],{"class":184},[178,12458,536],{"class":184},[178,12460,188],{"class":184},[178,12462,10250],{"class":191},[178,12464,188],{"class":184},[178,12466,197],{"class":184},[178,12468,593],{"class":184},[178,12470,208],{"class":184},[178,12472,188],{"class":184},[178,12474,12475],{"class":191},"visible",[178,12477,188],{"class":184},[178,12479,197],{"class":184},[178,12481,188],{"class":184},[178,12483,12484],{"class":202},"true",[178,12486,188],{"class":184},[178,12488,208],{"class":184},[178,12490,188],{"class":184},[178,12492,12493],{"class":191},"disabled",[178,12495,188],{"class":184},[178,12497,197],{"class":184},[178,12499,188],{"class":184},[178,12501,12502],{"class":202},"false",[178,12504,188],{"class":184},[178,12506,208],{"class":184},[178,12508,188],{"class":184},[178,12510,12511],{"class":191},"groupType",[178,12513,188],{"class":184},[178,12515,197],{"class":184},[178,12517,188],{"class":184},[178,12519,10458],{"class":202},[178,12521,188],{"class":184},[178,12523,424],{"class":184},[178,12525,188],{"class":184},[178,12527,192],{"class":191},[178,12529,188],{"class":184},[178,12531,197],{"class":184},[178,12533,188],{"class":184},[178,12535,12399],{"class":202},[178,12537,188],{"class":184},[178,12539,208],{"class":184},[178,12541,188],{"class":184},[178,12543,213],{"class":191},[178,12545,188],{"class":184},[178,12547,197],{"class":184},[178,12549,188],{"class":184},[178,12551,12552],{"class":202},"ui-page",[178,12554,188],{"class":184},[178,12556,208],{"class":184},[178,12558,188],{"class":184},[178,12560,249],{"class":191},[178,12562,188],{"class":184},[178,12564,197],{"class":184},[178,12566,188],{"class":184},[178,12568,12569],{"class":202},"Assembly Quality Monitor",[178,12571,188],{"class":184},[178,12573,208],{"class":184},[178,12575,188],{"class":184},[178,12577,9527],{"class":191},[178,12579,188],{"class":184},[178,12581,197],{"class":184},[178,12583,188],{"class":184},[178,12585,9536],{"class":202},[178,12587,188],{"class":184},[178,12589,208],{"class":184},[178,12591,188],{"class":184},[178,12593,10356],{"class":191},[178,12595,188],{"class":184},[178,12597,197],{"class":184},[178,12599,188],{"class":184},[178,12601,12602],{"class":202},"\u002Fdefects",[178,12604,188],{"class":184},[178,12606,208],{"class":184},[178,12608,188],{"class":184},[178,12610,12611],{"class":191},"icon",[178,12613,188],{"class":184},[178,12615,197],{"class":184},[178,12617,188],{"class":184},[178,12619,12620],{"class":202},"home",[178,12622,188],{"class":184},[178,12624,208],{"class":184},[178,12626,188],{"class":184},[178,12628,12629],{"class":191},"layout",[178,12631,188],{"class":184},[178,12633,197],{"class":184},[178,12635,188],{"class":184},[178,12637,12638],{"class":202},"grid",[178,12640,188],{"class":184},[178,12642,208],{"class":184},[178,12644,188],{"class":184},[178,12646,12647],{"class":191},"theme",[178,12649,188],{"class":184},[178,12651,197],{"class":184},[178,12653,188],{"class":184},[178,12655,12656],{"class":202},"faac104f34962f3e",[178,12658,188],{"class":184},[178,12660,208],{"class":184},[178,12662,188],{"class":184},[178,12664,12665],{"class":191},"breakpoints",[178,12667,188],{"class":184},[178,12669,12670],{"class":184},":[{",[178,12672,188],{"class":184},[178,12674,249],{"class":277},[178,12676,188],{"class":184},[178,12678,197],{"class":184},[178,12680,188],{"class":184},[178,12682,12683],{"class":202},"Default",[178,12685,188],{"class":184},[178,12687,208],{"class":184},[178,12689,188],{"class":184},[178,12691,12692],{"class":277},"px",[178,12694,188],{"class":184},[178,12696,197],{"class":184},[178,12698,188],{"class":184},[178,12700,1193],{"class":202},[178,12702,188],{"class":184},[178,12704,208],{"class":184},[178,12706,188],{"class":184},[178,12708,12709],{"class":277},"cols",[178,12711,188],{"class":184},[178,12713,197],{"class":184},[178,12715,188],{"class":184},[178,12717,11070],{"class":202},[178,12719,188],{"class":184},[178,12721,424],{"class":184},[178,12723,188],{"class":184},[178,12725,249],{"class":277},[178,12727,188],{"class":184},[178,12729,197],{"class":184},[178,12731,188],{"class":184},[178,12733,12734],{"class":202},"Tablet",[178,12736,188],{"class":184},[178,12738,208],{"class":184},[178,12740,188],{"class":184},[178,12742,12692],{"class":277},[178,12744,188],{"class":184},[178,12746,197],{"class":184},[178,12748,188],{"class":184},[178,12750,12751],{"class":202},"576",[178,12753,188],{"class":184},[178,12755,208],{"class":184},[178,12757,188],{"class":184},[178,12759,12709],{"class":277},[178,12761,188],{"class":184},[178,12763,197],{"class":184},[178,12765,188],{"class":184},[178,12767,12768],{"class":202},"6",[178,12770,188],{"class":184},[178,12772,424],{"class":184},[178,12774,188],{"class":184},[178,12776,249],{"class":277},[178,12778,188],{"class":184},[178,12780,197],{"class":184},[178,12782,188],{"class":184},[178,12784,12785],{"class":202},"Small Desktop",[178,12787,188],{"class":184},[178,12789,208],{"class":184},[178,12791,188],{"class":184},[178,12793,12692],{"class":277},[178,12795,188],{"class":184},[178,12797,197],{"class":184},[178,12799,188],{"class":184},[178,12801,12802],{"class":202},"768",[178,12804,188],{"class":184},[178,12806,208],{"class":184},[178,12808,188],{"class":184},[178,12810,12709],{"class":277},[178,12812,188],{"class":184},[178,12814,197],{"class":184},[178,12816,188],{"class":184},[178,12818,12819],{"class":202},"9",[178,12821,188],{"class":184},[178,12823,424],{"class":184},[178,12825,188],{"class":184},[178,12827,249],{"class":277},[178,12829,188],{"class":184},[178,12831,197],{"class":184},[178,12833,188],{"class":184},[178,12835,12836],{"class":202},"Desktop",[178,12838,188],{"class":184},[178,12840,208],{"class":184},[178,12842,188],{"class":184},[178,12844,12692],{"class":277},[178,12846,188],{"class":184},[178,12848,197],{"class":184},[178,12850,188],{"class":184},[178,12852,12853],{"class":202},"1024",[178,12855,188],{"class":184},[178,12857,208],{"class":184},[178,12859,188],{"class":184},[178,12861,12709],{"class":277},[178,12863,188],{"class":184},[178,12865,197],{"class":184},[178,12867,188],{"class":184},[178,12869,12870],{"class":202},"12",[178,12872,188],{"class":184},[178,12874,12875],{"class":184},"}],",[178,12877,188],{"class":184},[178,12879,9562],{"class":191},[178,12881,188],{"class":184},[178,12883,197],{"class":184},[178,12885,3418],{"class":378},[178,12887,208],{"class":184},[178,12889,188],{"class":184},[178,12891,10250],{"class":191},[178,12893,188],{"class":184},[178,12895,197],{"class":184},[178,12897,593],{"class":184},[178,12899,208],{"class":184},[178,12901,188],{"class":184},[178,12903,12475],{"class":191},[178,12905,188],{"class":184},[178,12907,197],{"class":184},[178,12909,188],{"class":184},[178,12911,12484],{"class":202},[178,12913,188],{"class":184},[178,12915,208],{"class":184},[178,12917,188],{"class":184},[178,12919,12493],{"class":191},[178,12921,188],{"class":184},[178,12923,197],{"class":184},[178,12925,188],{"class":184},[178,12927,12502],{"class":202},[178,12929,188],{"class":184},[178,12931,424],{"class":184},[178,12933,188],{"class":184},[178,12935,192],{"class":191},[178,12937,188],{"class":184},[178,12939,197],{"class":184},[178,12941,188],{"class":184},[178,12943,9536],{"class":202},[178,12945,188],{"class":184},[178,12947,208],{"class":184},[178,12949,188],{"class":184},[178,12951,213],{"class":191},[178,12953,188],{"class":184},[178,12955,197],{"class":184},[178,12957,188],{"class":184},[178,12959,10330],{"class":202},[178,12961,188],{"class":184},[178,12963,208],{"class":184},[178,12965,188],{"class":184},[178,12967,249],{"class":191},[178,12969,188],{"class":184},[178,12971,197],{"class":184},[178,12973,188],{"class":184},[178,12975,10347],{"class":202},[178,12977,188],{"class":184},[178,12979,208],{"class":184},[178,12981,188],{"class":184},[178,12983,10356],{"class":191},[178,12985,188],{"class":184},[178,12987,197],{"class":184},[178,12989,188],{"class":184},[178,12991,10365],{"class":202},[178,12993,188],{"class":184},[178,12995,208],{"class":184},[178,12997,188],{"class":184},[178,12999,10374],{"class":191},[178,13001,188],{"class":184},[178,13003,197],{"class":184},[178,13005,593],{"class":184},[178,13007,208],{"class":184},[178,13009,188],{"class":184},[178,13011,10387],{"class":191},[178,13013,188],{"class":184},[178,13015,517],{"class":184},[178,13017,188],{"class":184},[178,13019,10396],{"class":191},[178,13021,188],{"class":184},[178,13023,293],{"class":184},[178,13025,188],{"class":184},[178,13027,10405],{"class":202},[178,13029,188],{"class":184},[178,13031,208],{"class":184},[178,13033,188],{"class":184},[178,13035,10414],{"class":202},[178,13037,188],{"class":184},[178,13039,366],{"class":184},[178,13041,188],{"class":184},[178,13043,10423],{"class":191},[178,13045,188],{"class":184},[178,13047,536],{"class":184},[178,13049,188],{"class":184},[178,13051,10432],{"class":191},[178,13053,188],{"class":184},[178,13055,197],{"class":184},[178,13057,188],{"class":184},[178,13059,9514],{"class":202},[178,13061,188],{"class":184},[178,13063,208],{"class":184},[178,13065,188],{"class":184},[178,13067,10449],{"class":191},[178,13069,188],{"class":184},[178,13071,197],{"class":184},[178,13073,188],{"class":184},[178,13075,10458],{"class":202},[178,13077,188],{"class":184},[178,13079,208],{"class":184},[178,13081,188],{"class":184},[178,13083,10467],{"class":191},[178,13085,188],{"class":184},[178,13087,197],{"class":184},[178,13089,188],{"class":184},[178,13091,10458],{"class":202},[178,13093,188],{"class":184},[178,13095,208],{"class":184},[178,13097,188],{"class":184},[178,13099,10484],{"class":191},[178,13101,188],{"class":184},[178,13103,517],{"class":184},[178,13105,188],{"class":184},[178,13107,10493],{"class":191},[178,13109,188],{"class":184},[178,13111,197],{"class":184},[178,13113,3418],{"class":378},[178,13115,208],{"class":184},[178,13117,188],{"class":184},[178,13119,10506],{"class":191},[178,13121,188],{"class":184},[178,13123,517],{"class":184},[178,13125,188],{"class":184},[178,13127,10515],{"class":191},[178,13129,188],{"class":184},[178,13131,10520],{"class":184},[178,13133,188],{"class":184},[178,13135,192],{"class":191},[178,13137,188],{"class":184},[178,13139,197],{"class":184},[178,13141,188],{"class":184},[178,13143,12656],{"class":202},[178,13145,188],{"class":184},[178,13147,208],{"class":184},[178,13149,188],{"class":184},[178,13151,213],{"class":191},[178,13153,188],{"class":184},[178,13155,197],{"class":184},[178,13157,188],{"class":184},[178,13159,13160],{"class":202},"ui-theme",[178,13162,188],{"class":184},[178,13164,208],{"class":184},[178,13166,188],{"class":184},[178,13168,249],{"class":191},[178,13170,188],{"class":184},[178,13172,197],{"class":184},[178,13174,188],{"class":184},[178,13176,13177],{"class":202},"Default Theme",[178,13179,188],{"class":184},[178,13181,208],{"class":184},[178,13183,188],{"class":184},[178,13185,13186],{"class":191},"colors",[178,13188,188],{"class":184},[178,13190,272],{"class":184},[178,13192,188],{"class":184},[178,13194,13195],{"class":277},"surface",[178,13197,188],{"class":184},[178,13199,197],{"class":184},[178,13201,188],{"class":184},[178,13203,13204],{"class":202},"#2e3134",[178,13206,188],{"class":184},[178,13208,208],{"class":184},[178,13210,188],{"class":184},[178,13212,13213],{"class":277},"primary",[178,13215,188],{"class":184},[178,13217,197],{"class":184},[178,13219,188],{"class":184},[178,13221,13222],{"class":202},"#5a96d6",[178,13224,188],{"class":184},[178,13226,208],{"class":184},[178,13228,188],{"class":184},[178,13230,13231],{"class":277},"bgPage",[178,13233,188],{"class":184},[178,13235,197],{"class":184},[178,13237,188],{"class":184},[178,13239,13240],{"class":202},"#383b3f",[178,13242,188],{"class":184},[178,13244,208],{"class":184},[178,13246,188],{"class":184},[178,13248,13249],{"class":277},"groupBg",[178,13251,188],{"class":184},[178,13253,197],{"class":184},[178,13255,188],{"class":184},[178,13257,13258],{"class":202},"#454950",[178,13260,188],{"class":184},[178,13262,208],{"class":184},[178,13264,188],{"class":184},[178,13266,13267],{"class":277},"groupOutline",[178,13269,188],{"class":184},[178,13271,197],{"class":184},[178,13273,188],{"class":184},[178,13275,13276],{"class":202},"#585d63",[178,13278,188],{"class":184},[178,13280,13281],{"class":184},"},",[178,13283,188],{"class":184},[178,13285,13286],{"class":191},"sizes",[178,13288,188],{"class":184},[178,13290,272],{"class":184},[178,13292,188],{"class":184},[178,13294,13295],{"class":277},"density",[178,13297,188],{"class":184},[178,13299,197],{"class":184},[178,13301,188],{"class":184},[178,13303,10458],{"class":202},[178,13305,188],{"class":184},[178,13307,208],{"class":184},[178,13309,188],{"class":184},[178,13311,13312],{"class":277},"pagePadding",[178,13314,188],{"class":184},[178,13316,197],{"class":184},[178,13318,188],{"class":184},[178,13320,13321],{"class":202},"12px",[178,13323,188],{"class":184},[178,13325,208],{"class":184},[178,13327,188],{"class":184},[178,13329,13330],{"class":277},"groupGap",[178,13332,188],{"class":184},[178,13334,197],{"class":184},[178,13336,188],{"class":184},[178,13338,13321],{"class":202},[178,13340,188],{"class":184},[178,13342,208],{"class":184},[178,13344,188],{"class":184},[178,13346,13347],{"class":277},"groupBorderRadius",[178,13349,188],{"class":184},[178,13351,197],{"class":184},[178,13353,188],{"class":184},[178,13355,13356],{"class":202},"4px",[178,13358,188],{"class":184},[178,13360,208],{"class":184},[178,13362,188],{"class":184},[178,13364,13365],{"class":277},"widgetGap",[178,13367,188],{"class":184},[178,13369,197],{"class":184},[178,13371,188],{"class":184},[178,13373,13321],{"class":202},[178,13375,188],{"class":184},[178,13377,13378],{"class":184},"}},{",[178,13380,188],{"class":184},[178,13382,192],{"class":191},[178,13384,188],{"class":184},[178,13386,197],{"class":184},[178,13388,188],{"class":184},[178,13390,13391],{"class":202},"7c924e25db7a85a3",[178,13393,188],{"class":184},[178,13395,208],{"class":184},[178,13397,188],{"class":184},[178,13399,213],{"class":191},[178,13401,188],{"class":184},[178,13403,197],{"class":184},[178,13405,188],{"class":184},[178,13407,8207],{"class":202},[178,13409,188],{"class":184},[178,13411,208],{"class":184},[178,13413,188],{"class":184},[178,13415,8216],{"class":191},[178,13417,188],{"class":184},[178,13419,736],{"class":184},[178,13421,188],{"class":184},[178,13423,8225],{"class":191},[178,13425,188],{"class":184},[178,13427,272],{"class":184},[178,13429,188],{"class":184},[178,13431,81],{"class":277},[178,13433,188],{"class":184},[178,13435,197],{"class":184},[178,13437,188],{"class":184},[178,13439,10582],{"class":202},[178,13441,188],{"class":184},[178,13443,8248],{"class":184},[12,13445,13446,13450],{},[18,13447],{"alt":13448,"src":13449},"Screenshot: the Pareto chart with bars per defect type and the cumulative-percentage line crossing the 80% marker","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Fpareto-chart-added.png",[23,13451,13452],{},"The rendered Pareto chart. Make sure the cumulative line and the dashed 80% threshold are both visible.",[8253,13454,13456],{"id":13455},"root-cause","Root cause",[8939,13458,13459,13461,13469],{},[52,13460,10711],{},[52,13462,13463,13464,8962,13466,10720],{},"Add a change node named \"Extract Root Cause Data\": set ",[79,13465,10605],{},[79,13467,13468],{},"msg.payload[0].root_cause",[52,13470,13471,13472,13474,13475,13478],{},"Add a ui-chart node in the Root Cause group, chart type Bar, ",[79,13473,1121],{}," on the x-axis, ",[79,13476,13477],{},"defect_count"," on the y.",[12,13480,13481],{},"The query sorts it most-common-first, so the chart reads left to right as a priority list.",[12,13483,13484,13488],{},[18,13485],{"alt":13486,"src":13487},"Screenshot: the Root Cause bar chart, sorted most-common-first","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Froot-cause-added.png",[23,13489,13490],{},"The root cause bar chart, bars descending left to right.",[8253,13492,13494],{"id":13493},"severity-and-disposition","Severity and disposition",[8939,13496,13497,13500,13514],{},[52,13498,13499],{},"Add two link in nodes connected to \"KPI Result\", one per chart.",[52,13501,13502,13503,8962,13505,13508,13509,8962,13511,36],{},"Add two change nodes: \"Extract Severity Data\" sets ",[79,13504,10605],{},[79,13506,13507],{},"msg.payload[0].severity","; \"Extract Disposition Data\" sets ",[79,13510,559],{},[79,13512,13513],{},"payload[0].disposition",[52,13515,13516,13517,13519,13520,13522,13523,36],{},"Add two ui-chart nodes in their groups, chart type Pie. For each, set the label to the category column (",[79,13518,1101],{}," \u002F ",[79,13521,1130],{},") and the value to ",[79,13524,13477],{},[12,13526,13527],{},"Severity shows how serious the mix is; disposition shows what it's costing you: Scrap, Rework, or Use-as-is.",[12,13529,13530,13534],{},[18,13531],{"alt":13532,"src":13533},"Screenshot: the Severity and Disposition pie charts side by side","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Fseverity-and-disposition-added.png",[23,13535,13536],{},"The two pie charts. Capture Severity and Disposition together.",[8253,13538,13540],{"id":13539},"defects-per-day","Defects per day",[8939,13542,13543,13545,13553],{},[52,13544,10711],{},[52,13546,13547,13548,8962,13550,10720],{},"Add a change node named \"Extract Trend Data\": set ",[79,13549,10605],{},[79,13551,13552],{},"msg.payload[0].trend",[52,13554,13555,13556,13558,13559,36],{},"Add a ui-chart node in the Defects Per Day group. Set the chart type to Line, the x-axis property to ",[79,13557,1037],{}," (type: time), and the y-axis property to ",[79,13560,13477],{},[12,13562,13563],{},"This is where a bad week, or a bad batch, shows up as a bump you can point at.",[12,13565,13566,13570],{},[18,13567],{"alt":13568,"src":13569},"Screenshot: the Defects Per Day line chart showing daily counts over the selected date range","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Fdefect-day-added.png",[23,13571,13572],{},"The daily trend line chart. A date range showing a visible bump makes the point best.",[8253,13574,13576],{"id":13575},"resolution-time-and-sla","Resolution time and SLA",[8939,13578,13579,13581,13589],{},[52,13580,10711],{},[52,13582,13583,13584,8962,13586,10720],{},"Add a change node named \"Extract Resolution & SLA Data\": set ",[79,13585,10605],{},[79,13587,13588],{},"msg.payload[0].avg_resolution_and_sla",[52,13590,13591,13592,13594,13595,13598,13599,13602,13603,13606,13607,13610],{},"Add a ui-table node in the Average Resolution group. Turn off auto-columns and configure five: Severity (",[79,13593,1101],{},"), Hours (",[79,13596,13597],{},"avg_resolution_hours","), Resolved (",[79,13600,13601],{},"resolved_count","), SLA Breached (",[79,13604,13605],{},"sla_breached_count","), SLA % (",[79,13608,13609],{},"sla_breach_pct",").",[12,13612,13613],{},"This is the widget that answers whether defects are being closed fast enough, not just how many exist.",[12,13615,13616,13620],{},[18,13617],{"alt":13618,"src":13619},"Screenshot: the Average Resolution & SLA table with its five columns per severity","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Favg-resolution-added.png",[23,13621,13622],{},"The resolution\u002FSLA table, all five columns per severity row.",[8253,13624,13626],{"id":13625},"status-funnel","Status funnel",[8939,13628,13629,13631,13639],{},[52,13630,10711],{},[52,13632,13633,13634,8962,13636,10720],{},"Add a change node named \"Extract Status Funnel Data\": set ",[79,13635,559],{},[79,13637,13638],{},"payload[0].status_funnel",[52,13640,13641,13642,13474,13644,13478],{},"Add a ui-chart node in the Status Funnel group, chart type Bar, ",[79,13643,1139],{},[79,13645,13477],{},[12,13647,13648],{},"The query orders it by workflow stage (Detected, RCA, Corrective Action, Resolved, Verified), so a pile-up at any stage is visible at a glance.",[12,13650,13651,13655],{},[18,13652],{"alt":13653,"src":13654},"Screenshot: the Status Funnel bar chart, ordered by workflow stage","\u002Fblog\u002F2026\u002F07\u002Fimages\u002Fstatus-funnel.png",[23,13656,13657],{},"The status funnel bar chart, bars in workflow order.",[12,13659,13660],{},"Deploy and open the dashboard. Every widget populates from the seeded data at once. Change a filter in the header and the whole page recalculates together; leave the live feed running and the numbers keep ticking.",[41,13662,13664],{"id":13663},"what-next","What Next",[12,13666,13667,13668,13670],{},"You've built a working quality dashboard: a ",[79,13669,151],{}," table, a single query that computes every KPI in one pass, and a page of stat cards, a Pareto chart, trend and breakdown charts, an SLA table, and a status funnel, all filtering live by line, shift, and date.",[12,13672,13673,13674,13676,13677,13681],{},"Right now it runs on the simulator, but that was only ever a stand-in for your real data. To go live, remove the simulator flow and point the query at your own ",[79,13675,151],{}," table. Everything downstream keeps working, because the dashboard only ever reads from that one query. Your defects don't live in PostgreSQL? That's fine too. FlowFuse connects to MySQL, MongoDB, InfluxDB, and more, as our ",[32,13678,13680],{"href":13679},"\u002Fnode-red\u002Fdatabase\u002F","database integration guides"," show.",[12,13683,13684,13685,13689,13690,36],{},"That's the real point. FlowFuse lets you build the exact application your floor needs quickly, without deep engineering knowledge or writing code, wired to the systems you already run instead of forcing your process to fit a fixed tool. This tutorial happened to build defect tracking, but the same approach covers the full range of ",[32,13686,13688],{"href":13687},"\u002Fblog\u002F2026\u002F08\u002Fmanufacturing-dashboard-examples\u002F","manufacturing dashboards",", production monitoring, OEE, and the wider quality picture. See how manufacturers are already putting it to work on our ",[32,13691,13693],{"href":13692},"\u002Findustries\u002Fautomotive\u002F","automotive solutions page",[267,13695,13696],{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":174,"searchDepth":8289,"depth":8289,"links":13698},[13699,13700,13701,13704,13705,13706,13715],{"id":43,"depth":8277,"text":44},{"id":117,"depth":8277,"text":118},{"id":144,"depth":8277,"text":145,"children":13702},[13703],{"id":8255,"depth":8283,"text":8256},{"id":8429,"depth":8277,"text":8430},{"id":9011,"depth":8277,"text":9012},{"id":10630,"depth":8277,"text":10631,"children":13707},[13708,13709,13710,13711,13712,13713,13714],{"id":10644,"depth":8283,"text":10645},{"id":10698,"depth":8283,"text":10699},{"id":13455,"depth":8283,"text":13456},{"id":13493,"depth":8283,"text":13494},{"id":13539,"depth":8283,"text":13540},{"id":13575,"depth":8283,"text":13576},{"id":13625,"depth":8283,"text":13626},{"id":13663,"depth":8277,"text":13664},{"type":13717,"title":13718,"description":13719},"contact","See What Your Team Can Build","See it live with our team, and the variety of applications you can build without coding expertise, then scale them across your plant in a single click.","2026-07-16","Build a FlowFuse dashboard that tracks production defects, ranks them with a Pareto chart, surfaces root causes, and totals your cost of poor quality, filtered live by line, shift, and date","md",null,"\u002Fblog\u002F2026\u002F07\u002Fimages\u002Fdefect-monitoring-dashboard.png",{"excerpt":13726},{"type":9,"value":13727},[13728],[12,13729,14],{},"\u002Fblog\u002F2026\u002F07\u002Fdefect-and-quality-monitoring",{"title":5,"description":13721},{"loc":13730},"blog\u002F2026\u002F07\u002Fdefect-and-quality-monitoring","See which defects happen most, why, and what they cost you",[13736,13737],"flowfuse","quality","This tutorial builds a defect tracking and quality monitoring dashboard in FlowFuse. Defects live in one table, a single query computes every KPI in one pass, and the dashboard renders stat cards, a Pareto chart, trend and breakdown charts, an SLA table, and a status funnel, all filtering live by line, shift, and date range.","byKxGtxtzKemG1xiq0Dn1yUyQicnrGz5cL9qRzZGvTg",{"id":13741,"extension":13742,"meta":13743,"sections":13744,"stem":14131,"__hash__":14132},"featureCatalog\u002Ffeature-catalog.yml","yml",{},[13745,13796,13895,13957,14034,14113],{"id":13746,"title":13747,"features":13748},"ai-automation","AI & Automation",[13749,13759,13769,13779,13785,13791],{"id":13750,"title":13751,"description":13752,"docsLink":13753,"changelog":13754,"tiers":13758},"flowfuse-expert-ai","FlowFuse Expert AI","Build industrial apps with agents, and query the state of the factory with an agent. Adapt your current hardware and machines so agentic work can be done against them, without ripping and replacing what's already on the plant floor.","\u002Fdocs\u002Fuser\u002Fexpert\u002F",[13755],{"url":13756,"release":13757},"\u002Fchangelog\u002F2026\u002F02\u002Fff-expert-update-banner\u002F","2.28",{"edge":8376,"hub":8376,"fleet":8376},{"id":13760,"title":13761,"description":13762,"docsLink":13763,"changelog":13764,"subfeature":8376,"showOnPricing":13767,"tiers":13768},"flowfuse-expert-support-mode","Support Mode","Chat-based assistance for FlowFuse and Node-RED, including Node-RED instance management through natural language.","\u002Fdocs\u002Fuser\u002Fexpert\u002Fchat\u002F#support-mode",[13765],{"url":13766,"release":13757},"\u002Fchangelog\u002F2026\u002F02\u002Fff-expert-debug-log-context\u002F",false,{"edge":8376,"hub":8376,"fleet":8376},{"id":13770,"title":13771,"description":13772,"docsLink":13773,"changelog":13774,"subfeature":8376,"showOnPricing":13767,"tiers":13778},"flowfuse-expert-application-building","Application Building","Describe what you want to build and FlowFuse Expert assembles it on your workspace, adding tabs, wiring nodes, and configuring properties.","\u002Fdocs\u002Fuser\u002Fexpert\u002Fchat\u002F",[13775],{"url":13776,"release":13777},"\u002Fchangelog\u002F2026\u002F05\u002Fexpert-application-building\u002F","2.30",{"edge":8376,"hub":8376,"fleet":8376},{"id":13780,"title":13781,"description":13782,"docsLink":13783,"subfeature":8376,"beta":8376,"showOnPricing":13767,"tiers":13784},"flowfuse-expert-insights-mode","Insights Mode","Connects FlowFuse Expert to MCP servers in your Node-RED instances, enabling real-time data queries and actions through a single chat interface.","\u002Fdocs\u002Fuser\u002Fexpert\u002Fchat\u002F#insights-mode",{"edge":8376,"hub":8376,"fleet":8376},{"id":13786,"title":13787,"description":13788,"docsLink":13789,"tiers":13790},"mcp-servers","Agentic Operations","Expose your Node-RED flows as tools an AI agent can call directly, so agents can query the state of the factory or trigger actions without custom integration work.","\u002Fnode-red\u002Fflowfuse\u002Fmcp\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13792,"title":13793,"description":13794,"tiers":13795},"onnx-integration","ONNX Integration","Run trained machine learning models directly in your flows, including on edge hardware, without sending data out to an external inference service.",{"edge":8376,"hub":8376,"fleet":8376},{"id":13797,"title":13798,"features":13799},"build","Build",[13800,13806,13812,13820,13826,13832,13836,13842,13848,13856,13862,13866,13870,13879,13887],{"id":13801,"title":13802,"description":13803,"docsLink":13804,"tiers":13805},"edge-development","Edge Development","Develop and test Node-RED flows directly on edge devices with a remote editor proxy.","\u002Fdocs\u002Fdevice-agent\u002Fquickstart\u002F",{"edge":8376,"hub":13767,"fleet":8376},{"id":13807,"title":13808,"description":13809,"docsLink":13810,"tiers":13811},"private-npm-registry","Custom Node-RED Nodes","Create and manage your own private npm registry for Node-RED nodes, so you can share custom nodes across your team and devices without publishing them publicly.","\u002Fdocs\u002Fuser\u002Fcustom-npm-packages\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13813,"title":113,"description":13814,"docsLink":112,"changelog":13815,"tiers":13819},"flowfuse-tables","A managed PostgreSQL database for every application, so you can store and query structured data without standing up and maintaining your own database.",[13816],{"url":13817,"release":13818},"\u002Fchangelog\u002F2026\u002F07\u002Fexpert-tables-automation\u002F","2.33",{"edge":8376,"hub":8376,"fleet":8376},{"id":13821,"title":13822,"description":13823,"docsLink":13824,"tiers":13825},"persistent-files","File Storage","Store and retrieve files from your Node-RED flows, with automatic replication and backup across your devices and hosted instances.","\u002Fdocs\u002Finstall\u002Ffile-storage\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13827,"title":13828,"description":13829,"docsLink":13830,"showOnPricing":13767,"tiers":13831},"persistent-context","Persistent Context","In-memory values defined in a Node-RED flow persist across project restarts and upgrades.","\u002Fdocs\u002Fuser\u002Fpersistent-context\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13833,"title":13834,"showOnPricing":13767,"tiers":13835},"static-assets","Static Assets",{"edge":8376,"hub":8376,"fleet":8376},{"id":13837,"title":13838,"description":13839,"docsLink":13840,"tiers":13841},"team-library","Team Library","Set up standard nodes and flows that can be shared with all team members across your organisation.","\u002Fdocs\u002Fuser\u002Fshared-library\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13843,"title":13844,"description":13845,"docsLink":13846,"tiers":13847},"personalised-multi-user-dashboards","Personalised Multi-User Dashboards","Build applications that provide unique data to each logged-in user using personalised multi-user dashboards.","https:\u002F\u002Fdashboard.flowfuse.com\u002Fuser\u002Fmulti-tenancy.html",{"edge":8376,"hub":8376,"fleet":8376},{"id":13849,"title":13850,"description":13851,"changelog":13852,"subfeature":8376,"showOnPricing":13767,"tiers":13855},"dashboards-view","Dashboards View","Browse and open every dashboard across your team from a dedicated Dashboards view, at both team and application level, without leaving FlowFuse.",[13853],{"url":13854,"release":13818},"\u002Fchangelog\u002F2026\u002F07\u002Fteam-and-application-dashboards\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13857,"title":13858,"description":13859,"docsLink":13860,"tiers":13861},"blueprints-converge","Blueprints","Ready-made starting points for your apps, from cross-team Converge templates to OT and IT specific blueprints.","\u002Fdocs\u002Fuser\u002Fconcepts\u002F#blueprint",{"edge":8376,"hub":8376,"fleet":8376},{"id":13863,"title":13864,"subfeature":8376,"showOnPricing":13767,"tiers":13865},"blueprints-ot-apps","Blueprints - OT APPS",{"edge":8376,"hub":13767,"fleet":8376},{"id":13867,"title":13868,"subfeature":8376,"showOnPricing":13767,"tiers":13869},"blueprints-it-apps","Blueprints - IT APPS",{"edge":13767,"hub":8376,"fleet":13767},{"id":13871,"title":13872,"description":13873,"changelog":13874,"showOnPricing":13767,"tiers":13878},"immersive-editor-snapshots","Snapshot Details in Immersive Editor","View and manage snapshot details directly inside the immersive editor without leaving your editing session.",[13875],{"url":13876,"release":13877},"\u002Fchangelog\u002F2026\u002F03\u002Fsnapshot-detail-modal-immersive-editor\u002F","2.29",{"edge":8376,"hub":8376,"fleet":8376},{"id":13880,"title":13881,"description":13882,"changelog":13883,"showOnPricing":13767,"tiers":13886},"immersive-editor-drawer","Customisable Immersive Editor Drawer","Pin, move, resize, or full-screen the immersive editor drawer. Your preferences are remembered between sessions.",[13884],{"url":13885,"release":13777},"\u002Fchangelog\u002F2026\u002F04\u002Fimmersive-editor-drawer\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13888,"title":13889,"description":13890,"changelog":13891,"showOnPricing":13767,"tiers":13894},"embedded-editor-tab-title","Embedded Editor Browser Tab Title","The browser tab title updates to reflect the active Node-RED canvas tab when working in the embedded editor.",[13892],{"url":13893,"release":13877},"\u002Fchangelog\u002F2026\u002F03\u002Fembedded-editor-tab-title\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13896,"title":13897,"features":13898},"deploy","Deploy",[13899,13905,13914,13920,13926,13932,13938,13944,13949],{"id":13900,"title":13901,"description":13902,"docsLink":13903,"tiers":13904},"hosted-instances","Cloud Instances","Run Node-RED instances managed and hosted by FlowFuse.","\u002Fdocs\u002Fuser\u002Fintroduction\u002F#creating-a-node-red-instance",{"edge":8376,"hub":8376,"fleet":8376},{"id":13906,"title":13907,"description":13908,"docsLink":13909,"changelog":13910,"tiers":13913},"edge-devices","Edge Instances","Deploy and mange your Node-RED instances on edge PLCs and gateways, with full visibility and control from the cloud.","\u002Fdocs\u002Fdevice-agent\u002Fintroduction\u002F",[13911],{"url":13912,"release":13757},"\u002Fchangelog\u002F2026\u002F02\u002Fdevice-agent-nodejs-options\u002F",{"edge":8376,"hub":13767,"fleet":8376},{"id":13915,"title":13916,"description":13917,"docsLink":13918,"tiers":13919},"custom-hostnames","Custom Hostnames","Access your Node-RED application via your own domain name.","\u002Fdocs\u002Fuser\u002Fcustom-hostnames\u002F",{"edge":13767,"hub":8376,"fleet":13767},{"id":13921,"title":13922,"description":13923,"docsLink":13924,"tiers":13925},"mqtt-broker","MQTT Broker","Manage and create MQTT clients to transport data for efficient messaging and communication within your applications.","\u002Fdocs\u002Fuser\u002Fteambroker\u002F",{"edge":8376,"hub":13767,"fleet":8376},{"id":13927,"title":13928,"description":13929,"docsLink":13930,"showOnPricing":13767,"tiers":13931},"project-nodes","Project Nodes aka seamless project comms","FlowFuse Project Nodes enable the passing of data and messages between your Node-RED projects.","\u002Fdocs\u002Fuser\u002Fprojectnodes\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13933,"title":13934,"description":13935,"docsLink":13936,"tiers":13937},"devops-pipelines","DevOps Pipelines","Set up different environments for development, testing, and production Node-RED instances to support a full software delivery lifecycle.","\u002Fdocs\u002Fuser\u002Fdevops-pipelines\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13939,"title":13940,"description":13941,"docsLink":13942,"tiers":13943},"git-integration","Git Integration","Back up your flows to a remote Git repository through a DevOps Pipeline. Supports GitHub and Azure DevOps repositories.","\u002Fdocs\u002Fuser\u002Fdevops-pipelines\u002F#git-repository-stage",{"edge":13767,"hub":8376,"fleet":13767},{"id":13945,"title":13946,"description":13947,"docsLink":13942,"subfeature":8376,"showOnPricing":13767,"tiers":13948},"git-integration-github","GitHub","Push and pull snapshots to GitHub repositories through DevOps Pipeline Git Stages.",{"edge":13767,"hub":8376,"fleet":13767},{"id":13950,"title":13951,"description":13952,"docsLink":13942,"changelog":13953,"subfeature":8376,"showOnPricing":13767,"tiers":13956},"git-integration-azure","Azure DevOps","Push and pull snapshots to Azure DevOps repositories through DevOps Pipeline Git Stages.",[13954],{"url":13955,"release":13877},"\u002Fchangelog\u002F2026\u002F03\u002Fazure-dev-ops-gitops\u002F",{"edge":13767,"hub":8376,"fleet":13767},{"id":13958,"title":13959,"features":13960},"operate-maintain","Operate & Maintain",[13961,13967,13973,13978,13986,13990,13994,13999,14005,14011,14016,14022,14026,14030],{"id":13962,"title":13963,"description":13964,"docsLink":13965,"tiers":13966},"snapshots","Snapshots & Version History","Automatic snapshots on remote devices and hosted instances, plus a full version history timeline so you can roll back to any prior state.","\u002Fdocs\u002Fuser\u002Fsnapshots\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13968,"title":13969,"description":13970,"docsLink":13971,"subfeature":8376,"showOnPricing":13767,"tiers":13972},"auto-snapshot-remote","Auto Snapshot (Remote)","Automatically capture a snapshot every time a remote instance is deployed, so you always have a recoverable history of what was running on each device.","\u002Fdocs\u002Fuser\u002Fsnapshots\u002F#auto-snapshots",{"edge":8376,"hub":8376,"fleet":8376},{"id":13974,"title":13975,"description":13976,"docsLink":13971,"subfeature":8376,"showOnPricing":13767,"tiers":13977},"auto-snapshot-hosted","Auto Snapshot (Hosted)","Automatically capture a snapshot every time a hosted instance is deployed, so you always have a recoverable history of what was running.",{"edge":8376,"hub":8376,"fleet":8376},{"id":13979,"title":13980,"description":13981,"changelog":13982,"subfeature":8376,"showOnPricing":13767,"tiers":13985},"snapshot-comparison","Snapshot Comparison","Compare two snapshots side-by-side with a navigable diff view. Step through every changed, added, or deleted node and see property and code diffs.",[13983],{"url":13984,"release":13877},"\u002Fchangelog\u002F2026\u002F04\u002Fsnapshot-diff-viewer\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":13987,"title":13988,"subfeature":8376,"showOnPricing":13767,"tiers":13989},"version-history-timeline","Version History Timeline",{"edge":8376,"hub":8376,"fleet":8376},{"id":13991,"title":13992,"tiers":13993},"unlimited-workflow-executions","Unlimited Workflow Executions",{"edge":8376,"hub":8376,"fleet":8376},{"id":13995,"title":13996,"description":13997,"tiers":13998},"device-fleet-updates","Device Fleet Updates","Connect to edge devices to quickly assess and update logic. Debug one device and roll out improvements to your fleet in minutes, securely without requiring full device access for your whole organisation.",{"edge":8376,"hub":13767,"fleet":8376},{"id":14000,"title":14001,"description":14002,"docsLink":14003,"tiers":14004},"device-group-management","Device Group Management","Logically group devices assigned to an application and integrate device groups into your DevOps Pipeline for coordinated fleet updates.","\u002Fdocs\u002Fuser\u002Fdevice-groups\u002F",{"edge":8376,"hub":13767,"fleet":8376},{"id":14006,"title":14007,"description":14008,"docsLink":14009,"tiers":14010},"high-availability","High Availability","Leverage horizontal scaling for reliable and scalable processing of your data through Node-RED.","\u002Fdocs\u002Fuser\u002Fhigh-availability\u002F",{"edge":13767,"hub":8376,"fleet":13767},{"id":14012,"title":14013,"description":14014,"tiers":14015},"performance-monitoring","Performance Monitoring & Alerts","Track CPU, memory, and event loop performance across your instances and devices, with email alerts when something needs your attention.",{"edge":8376,"hub":8376,"fleet":8376},{"id":14017,"title":14018,"description":14019,"docsLink":14020,"subfeature":8376,"showOnPricing":13767,"tiers":14021},"instance-monitoring","Instance Monitoring","Enable alerts to be sent via email when your Node-RED instances encounter issues.","\u002Fdocs\u002Fuser\u002Finstance-settings\u002F#alerts",{"edge":8376,"hub":8376,"fleet":8376},{"id":14023,"title":14024,"subfeature":8376,"showOnPricing":13767,"tiers":14025},"email-alerts","Email Alerts",{"edge":8376,"hub":8376,"fleet":8376},{"id":14027,"title":14028,"showOnPricing":13767,"tiers":14029},"api-debug-length-limit","API\u002FDebug Length Limit",{"edge":8376,"hub":8376,"fleet":8376},{"id":14031,"title":14032,"tiers":14033},"protected-instances","Protected Instances",{"edge":13767,"hub":8376,"fleet":13767},{"id":14035,"title":14036,"features":14037},"govern-secure","Govern and Secure",[14038,14047,14053,14059,14064,14070,14076,14082,14090,14096,14102,14108],{"id":14039,"title":14040,"description":14041,"docsLink":14042,"changelog":14043,"tiers":14046},"single-sign-on","Single Sign-On (SSO)","Configure FlowFuse to work with your own SSO provider, allowing users to access FlowFuse with a single set of login credentials.","\u002Fdocs\u002Fadmin\u002Fsso\u002F",[14044],{"url":14045,"release":13818},"\u002Fchangelog\u002F2026\u002F07\u002Fapplication-sso-groups\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":14048,"title":14049,"description":14050,"docsLink":14051,"tiers":14052},"two-factor-authentication","Two-Factor Authentication","Two-factor authentication adds an extra layer of security to your FlowFuse account.","\u002Fdocs\u002Fuser\u002Fuser-settings\u002F#two-factor-authentication",{"edge":8376,"hub":8376,"fleet":8376},{"id":14054,"title":14055,"description":14056,"docsLink":14057,"tiers":14058},"certified-nodes-it","Certified Nodes - IT","IT certified node bundle includes: Redis, MQTT, HTTP Request, AI nodes (Gemini, Claude, ChatGPT, Ollama), MCP Server","\u002Fblog\u002F2025\u002F07\u002Fcertified-nodes-v2\u002F",{"edge":13767,"hub":8376,"fleet":8376},{"id":14060,"title":14061,"description":14062,"tiers":14063},"certified-nodes-ot","Certified OT Connections - OPC-UA, Modbus, etc.","OT certified node bundle includes: OPC-UA, Modbus TCP & RTU, RTSP, EtherNet\u002FIP, AI nodes (Gemini, Claude, ChatGPT, Ollama), MCP Server",{"edge":8376,"hub":13767,"fleet":13767},{"id":14065,"title":14066,"description":14067,"docsLink":14068,"tiers":14069},"audit-log","Audit Log","Keep track of everything going on in your Node-RED instances and FlowFuse. Audit Logs provide details on what actions have taken place, when they happened, and who did them.","\u002Fdocs\u002Fuser\u002Flogs\u002F#audit-log",{"edge":8376,"hub":8376,"fleet":8376},{"id":14071,"title":14072,"description":14073,"docsLink":14074,"tiers":14075},"role-based-access-control","Role-Based Access Control","Control who can do what at both the team and application level, from viewers to admins.","\u002Fdocs\u002Fuser\u002Frole-based-access-control\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":14077,"title":14078,"description":14079,"docsLink":14080,"subfeature":8376,"showOnPricing":13767,"tiers":14081},"application-level-rbac","Application-Level RBAC","Fine-grained access control per application, allowing team members to have different permission levels across different applications without requiring separate teams.","\u002Fdocs\u002Fuser\u002Frole-based-access-control\u002F#application-level-rbac",{"edge":8376,"hub":8376,"fleet":8376},{"id":14083,"title":14084,"description":14085,"changelog":14086,"subfeature":8376,"showOnPricing":13767,"tiers":14089},"scoped-personal-access-tokens","Scoped Personal Access Tokens","Restrict a Personal Access Token to specific teams, limit it to read-only operations, or control whether it carries admin privileges.",[14087],{"url":14088,"release":13818},"\u002Fchangelog\u002F2026\u002F07\u002Fscoped-pats\u002F",{"edge":8376,"hub":8376,"fleet":8376},{"id":14091,"title":14092,"description":14093,"docsLink":14094,"showOnPricing":13767,"tiers":14095},"team-members","Team Members","Invite multiple team members to collaborate on the same Node-RED flows.","\u002Fdocs\u002Fuser\u002Fteam\u002F#teams",{"edge":8376,"hub":8376,"fleet":8376},{"id":14097,"title":14098,"description":14099,"docsLink":14100,"showOnPricing":13767,"tiers":14101},"endpoint-security","Endpoint Security","Secure HTTP endpoints for hosted Node-RED instances using FlowFuse credentials.","\u002Fdocs\u002Fuser\u002Finstance-settings\u002F#security",{"edge":8376,"hub":8376,"fleet":8376},{"id":14103,"title":14104,"description":14105,"docsLink":14106,"tiers":14107},"baa-for-hipaa","BAA for HIPAA","FlowFuse can sign a Business Associate Agreement to ensure proper safeguarding of protected health information handled on your behalf.","\u002Fhandbook\u002Fsales\u002Fsubscription-agreement-1.5\u002F",{"edge":13767,"hub":8376,"fleet":13767},{"id":14109,"title":14110,"description":14111,"tiers":14112},"sbom","Software Bill of Materials","A complete list of all software components used in your Node-RED instances and hosted applications, including version numbers and license information.",{"edge":13767,"hub":8376,"fleet":13767},{"id":14114,"title":14115,"features":14116},"support","Support",[14117,14122,14126],{"id":14118,"title":14119,"docsLink":14120,"tiers":14121},"installation-support","Installation Support","\u002Fdocs\u002Finstall\u002Fintroduction\u002F#do-you-need-help-installation-service",{"edge":8376,"hub":8376,"fleet":8376},{"id":14123,"title":14124,"showOnPricing":13767,"tiers":14125},"live-chat-support","Live Chat Support",{"edge":8376,"hub":8376,"fleet":8376},{"id":14127,"title":14128,"docsLink":14129,"tiers":14130},"enterprise-support","Enterprise Support","\u002Fdocs\u002Fpremium-support\u002F",{"edge":8376,"hub":8376,"fleet":8376},"feature-catalog","0AnkhTIPCECCwP9NmbTWP5HvRYx4FTSao4lG93-HaWM",[14134,14137,14140,14143,14146,14149,14151,14154,14157,14160,14163,14165,14168,14171,14174,14177,14180,14183,14186,14189,14192,14195,14198,14201,14204,14207,14210,14213,14216,14219,14222,14225,14228,14231,14234,14237,14240,14243,14246,14249,14252,14255,14258,14261,14264,14267,14270,14273,14276,14278,14281,14284,14287,14290,14293,14296,14299,14301,14304,14307,14310,14313,14316,14318,14321,14324,14327,14330,14333,14336,14339,14342,14345,14348,14350,14353,14356,14359,14362,14365,14368,14371,14374,14377,14380,14383,14386,14389,14392,14394,14397,14400,14403,14406,14409,14412,14415,14418,14421,14424,14427,14430,14433,14436,14439,14442,14445,14448,14450,14453,14456,14459,14462,14465,14468,14471,14473,14476,14479,14482,14485,14488,14491,14494,14497,14500,14503,14506,14509,14512,14515,14518,14521,14524,14527,14530,14533,14536,14539,14542,14545,14548,14551,14554,14557,14560,14563,14566,14569,14572,14575,14578,14581,14584,14587,14590,14593,14596,14599,14602,14605,14608,14611,14614,14617,14620,14623,14625,14628,14631,14634,14637,14640,14643,14646,14649,14652,14655,14658,14661,14664],{"path":14135,"title":14136},"\u002Fchangelog\u002F2023\u002F09\u002Fcustom-node-support","Custom Node Support",{"path":14138,"title":14139},"\u002Fchangelog\u002F2023\u002F09\u002Fdevops-actions","DevOps Pipeline with action selection",{"path":14141,"title":14142},"\u002Fchangelog\u002F2023\u002F09\u002Fintroduction-enterprise-tier","Introducing the Enterprise Tier",{"path":14144,"title":14145},"\u002Fchangelog\u002F2023\u002F09\u002Fpipeline-api","API Endpoint for DevOps Pipeline",{"path":14147,"title":14148},"\u002Fchangelog\u002F2023\u002F09\u002Fsnapshots-devices","Usability improvements to Device Management",{"path":14150,"title":13858},"\u002Fchangelog\u002F2023\u002F10\u002Fblueprints",{"path":14152,"title":14153},"\u002Fchangelog\u002F2023\u002F10\u002Fcertified-nodes","Certified Nodes",{"path":14155,"title":14156},"\u002Fchangelog\u002F2023\u002F10\u002Fdevice-snapshot-selection","Enhanced Snapshot Selection",{"path":14158,"title":14159},"\u002Fchangelog\u002F2023\u002F10\u002Fpath-bug-fix","Device Agent path bug fix",{"path":14161,"title":14162},"\u002Fchangelog\u002F2023\u002F10\u002Fresource-alerts","Resource Monitoring in Audit Log",{"path":14164,"title":14049},"\u002Fchangelog\u002F2023\u002F11\u002F2fa",{"path":14166,"title":14167},"\u002Fchangelog\u002F2023\u002F11\u002Fdefault-editor","Device Editor enabled by default",{"path":14169,"title":14170},"\u002Fchangelog\u002F2023\u002F11\u002Fdevices-in-pipelines","Devices in DevOps Pipelines",{"path":14172,"title":14173},"\u002Fchangelog\u002F2023\u002F11\u002Fproject-nodes-devices","Project Nodes for Devices",{"path":14175,"title":14176},"\u002Fchangelog\u002F2023\u002F12\u002Fbilling","No Credit Card required for billing",{"path":14178,"title":14179},"\u002Fchangelog\u002F2023\u002F12\u002Fblueprint-selection","Blueprint Selection Update",{"path":14181,"title":14182},"\u002Fchangelog\u002F2023\u002F12\u002Fdevice-groups","Device Groups",{"path":14184,"title":14185},"\u002Fchangelog\u002F2023\u002F12\u002Femail-alerting-node-red-crash","Email Alerts for Audit Log Events",{"path":14187,"title":14188},"\u002Fchangelog\u002F2023\u002F12\u002Fnode-red-updated","Node-RED 3.1.3 now available",{"path":14190,"title":14191},"\u002Fchangelog\u002F2024\u002F01\u002Fdevice-audit-log","Introducing the Device Auditlog Feature",{"path":14193,"title":14194},"\u002Fchangelog\u002F2024\u002F01\u002Fdevice-groups-snapshot","Device Groups - Automatic snapshot assignment",{"path":14196,"title":14197},"\u002Fchangelog\u002F2024\u002F01\u002Ffleet-mode","Renaming \"Default Device Mode\" to \"Fleet Mode\"",{"path":14199,"title":14200},"\u002Fchangelog\u002F2024\u002F01\u002Fhelm-v2","Helm Chart v2.0",{"path":14202,"title":14203},"\u002Fchangelog\u002F2024\u002F01\u002Fnew-blueprints","New Blueprints added",{"path":14205,"title":14206},"\u002Fchangelog\u002F2024\u002F01\u002Fsecurity-updates","Security Updates",{"path":14208,"title":14209},"\u002Fchangelog\u002F2024\u002F01\u002Fsso-team-membership","Managing Team Membership via SSO",{"path":14211,"title":14212},"\u002Fchangelog\u002F2024\u002F01\u002Fstreamlined-device-assignment","Streamlined Device assignment",{"path":14214,"title":14215},"\u002Fchangelog\u002F2024\u002F02\u002Fdevice-auto-snapshot","Device Auto Snapshots",{"path":14217,"title":14218},"\u002Fchangelog\u002F2024\u002F02\u002Fdevice-instance-audit-logs","Device Instance Audit Logging",{"path":14220,"title":14221},"\u002Fchangelog\u002F2024\u002F02\u002Fdevice-onboarding-improvements","Device Onboarding Improvements",{"path":14223,"title":14224},"\u002Fchangelog\u002F2024\u002F02\u002Fdevice-pricing-change","Pricing change for Devices",{"path":14226,"title":14227},"\u002Fchangelog\u002F2024\u002F02\u002Finstance-auto-snapshots","Instance Auto Snapshots",{"path":14229,"title":14230},"\u002Fchangelog\u002F2024\u002F02\u002Fpostgresql-upgrade","PostgreSQL Version update",{"path":14232,"title":14233},"\u002Fchangelog\u002F2024\u002F03\u002Fbearer-token-authentication","Bearer Token Authentication for Node-RED Instances",{"path":14235,"title":14236},"\u002Fchangelog\u002F2024\u002F03\u002Finstance-protection-mode","Instance Protection Mode",{"path":14238,"title":14239},"\u002Fchangelog\u002F2024\u002F03\u002Flimits-debug-payload","Configure HTTP Payload and Debug Message size",{"path":14241,"title":14242},"\u002Fchangelog\u002F2024\u002F03\u002Frestart-devices-remotly","Remote Device Restart",{"path":14244,"title":14245},"\u002Fchangelog\u002F2024\u002F04\u002Fcustom-nodes-on-devices","Custom Nodes Support on Devices",{"path":14247,"title":14248},"\u002Fchangelog\u002F2024\u002F04\u002Fdevice-auto-snapshot","Direct Dashboard Access",{"path":14250,"title":14251},"\u002Fchangelog\u002F2024\u002F04\u002Fimproving-device-groups","Improving Device Groups",{"path":14253,"title":14254},"\u002Fchangelog\u002F2024\u002F04\u002Fpricing-change","Pricing change Enterprise & Teams Tier",{"path":14256,"title":14257},"\u002Fchangelog\u002F2024\u002F04\u002Ftougher-rate-limiting","Tougher Rate Limiting on Public Routes",{"path":14259,"title":14260},"\u002Fchangelog\u002F2024\u002F05\u002Finstance-healthcheck","Customizing instance health-check settings",{"path":14262,"title":14263},"\u002Fchangelog\u002F2024\u002F05\u002Flibrary-blueprints","Blueprints added to Library",{"path":14265,"title":14266},"\u002Fchangelog\u002F2024\u002F05\u002Flibrary-flowviewer","Team Library - Flow Viewer",{"path":14268,"title":14269},"\u002Fchangelog\u002F2024\u002F05\u002Fmanaging-node-red-version-on-devices","Managing Node-RED versions on Devices",{"path":14271,"title":14272},"\u002Fchangelog\u002F2024\u002F05\u002Fsnapshot-improvements","Snapshot Improvements",{"path":14274,"title":14275},"\u002Fchangelog\u002F2024\u002F05\u002Fsnapshot-improvements-pt3","Snapshot Upload",{"path":14277,"title":14275},"\u002Fchangelog\u002F2024\u002F05\u002Fsnapshot-upload",{"path":14279,"title":14280},"\u002Fchangelog\u002F2024\u002F06\u002Fdevice-agent-proxy-support","Running the Device Agent behind an HTTP proxy",{"path":14282,"title":14283},"\u002Fchangelog\u002F2024\u002F06\u002Flibrary-blueprints","Custom hostnames for your instances",{"path":14285,"title":14286},"\u002Fchangelog\u002F2024\u002F06\u002Fmultiline-env-vars","Multi-line Environment Variables",{"path":14288,"title":14289},"\u002Fchangelog\u002F2024\u002F06\u002Fsnapshot-flow-compare","Compare Snapshots flows",{"path":14291,"title":14292},"\u002Fchangelog\u002F2024\u002F07\u002Fapplications-search","Applications Search",{"path":14294,"title":14295},"\u002Fchangelog\u002F2024\u002F07\u002Fdevice-group-clear-snapshot","Device Groups Snapshots",{"path":14297,"title":14298},"\u002Fchangelog\u002F2024\u002F07\u002Fdevice-management-bulk-delete","Managing devices",{"path":14300,"title":14298},"\u002Fchangelog\u002F2024\u002F07\u002Fdevice-management-bulk-move",{"path":14302,"title":14303},"\u002Fchangelog\u002F2024\u002F07\u002Fedit-snapshots","Edit Snapshots",{"path":14305,"title":14306},"\u002Fchangelog\u002F2024\u002F07\u002Fflowfuse-assistant","The FlowFuse Expert",{"path":14308,"title":14309},"\u002Fchangelog\u002F2024\u002F07\u002Fflowfuse-assistant-json","FlowFuse Expert Writes JSON",{"path":14311,"title":14312},"\u002Fchangelog\u002F2024\u002F07\u002Fimmersive-editor","Immersive Editor Experience",{"path":14314,"title":14315},"\u002Fchangelog\u002F2024\u002F07\u002Fnotifications-inbox","Notifications Inbox",{"path":14317,"title":14315},"\u002Fchangelog\u002F2024\u002F07\u002Fnotifications-update",{"path":14319,"title":14320},"\u002Fchangelog\u002F2024\u002F07\u002Fpersistent-storage","Persistent Storage on FlowFuse Cloud",{"path":14322,"title":14323},"\u002Fchangelog\u002F2024\u002F07\u002Fsso","Single Sign On Updates",{"path":14325,"title":14326},"\u002Fchangelog\u002F2024\u002F08\u002Fbill-of-materials","Bill of Materials",{"path":14328,"title":14329},"\u002Fchangelog\u002F2024\u002F08\u002Fenterprise-license-update","Enforcing Enterprise Restrictions",{"path":14331,"title":14332},"\u002Fchangelog\u002F2024\u002F08\u002Fldap-sso-groups","LDAP Single Sign On Updates",{"path":14334,"title":14335},"\u002Fchangelog\u002F2024\u002F08\u002Fstatic-file-service-navigation-visibility","Static File Service Navigation and Visibility",{"path":14337,"title":14338},"\u002Fchangelog\u002F2024\u002F10\u002Fdevice-group-env-vars","Environment Variables for your Device Groups",{"path":14340,"title":14341},"\u002Fchangelog\u002F2024\u002F10\u002Fmqtt-service","MQTT Broker Service",{"path":14343,"title":14344},"\u002Fchangelog\u002F2024\u002F10\u002Fnotifications-bulk-actions","Managing Notifications",{"path":14346,"title":14347},"\u002Fchangelog\u002F2024\u002F10\u002Fsnapshot-download-upload-options","Snapshot Upload and Download Improvements",{"path":14349,"title":13988},"\u002Fchangelog\u002F2024\u002F10\u002Fversion-history-timeline",{"path":14351,"title":14352},"\u002Fchangelog\u002F2024\u002F11\u002Faudit-log-hierarchy","Audit logs show hierarchical events",{"path":14354,"title":14355},"\u002Fchangelog\u002F2024\u002F11\u002Fdevice-agent-release","Device Agent 3.0 released",{"path":14357,"title":14358},"\u002Fchangelog\u002F2024\u002F11\u002Fmqtt-topic-hierarchy","MQTT Topic Hierarchy view",{"path":14360,"title":14361},"\u002Fchangelog\u002F2024\u002F11\u002Fteam-search","Team-wide search",{"path":14363,"title":14364},"\u002Fchangelog\u002F2024\u002F12\u002Fdashboad-iframe","Allow Dashboards to be embedded in iFrames",{"path":14366,"title":14367},"\u002Fchangelog\u002F2024\u002F12\u002Fdevice-editor-cache","Device Editor Access Speed Up",{"path":14369,"title":14370},"\u002Fchangelog\u002F2024\u002F12\u002Fteam-bom-timeline","Team BOM and Pipeline Views",{"path":14372,"title":14373},"\u002Fchangelog\u002F2025\u002F01\u002Ffree-tier-onboarding","New Onboarding Tour for Free Tier Users",{"path":14375,"title":14376},"\u002Fchangelog\u002F2025\u002F01\u002Fhidden-env-vars","Hidden Environment Variables",{"path":14378,"title":14379},"\u002Fchangelog\u002F2025\u002F01\u002Fimproved-diagnostics","Improved Diagnostics",{"path":14381,"title":14382},"\u002Fchangelog\u002F2025\u002F01\u002Fteam-level-groups","Team level view of Groups",{"path":14384,"title":14385},"\u002Fchangelog\u002F2025\u002F02\u002Fadditional-device-version-history-events","New Remote Instances Version History Events",{"path":14387,"title":14388},"\u002Fchangelog\u002F2025\u002F02\u002Fbroker-error-feedback","Improved Broker Connection Feedback",{"path":14390,"title":14391},"\u002Fchangelog\u002F2025\u002F02\u002Fdevice-agent-updates","FlowFuse User Authentication on Remote Instances",{"path":14393,"title":13988},"\u002Fchangelog\u002F2025\u002F02\u002Fdevice-version-history-timeline",{"path":14395,"title":14396},"\u002Fchangelog\u002F2025\u002F02\u002Fexternal-brokers","External MQTT Brokers",{"path":14398,"title":14399},"\u002Fchangelog\u002F2025\u002F02\u002Fmqtt-schema-suggestions","MQTT Smart Schema Suggestions",{"path":14401,"title":14402},"\u002Fchangelog\u002F2025\u002F02\u002Fresend-and-extend-team-invitation-expiration","Re-send Team Invitations",{"path":14404,"title":14405},"\u002Fchangelog\u002F2025\u002F02\u002Fschema-docs","Personalized Schema Documentation",{"path":14407,"title":14408},"\u002Fchangelog\u002F2025\u002F02\u002Ftopic-hierarchy-search","Search & Filter for Topic Hierarchy List",{"path":14410,"title":14411},"\u002Fchangelog\u002F2025\u002F03\u002Fcontainer-tags","Changes to tags for flowfuse\u002Fnode-red",{"path":14413,"title":14414},"\u002Fchangelog\u002F2025\u002F03\u002Fdevice-groups","Multiple Device Groups in a pipeline",{"path":14416,"title":14417},"\u002Fchangelog\u002F2025\u002F03\u002Fdevice-local-login","Local Login for Remote Instances",{"path":14419,"title":14420},"\u002Fchangelog\u002F2025\u002F03\u002Ffree-tier","Free Tier now more accessible to all",{"path":14422,"title":14423},"\u002Fchangelog\u002F2025\u002F03\u002Fresource-notifications","Resource Alerts",{"path":14425,"title":14426},"\u002Fchangelog\u002F2025\u002F03\u002Fsnapshot-filter","Filtering Snapshots",{"path":14428,"title":14429},"\u002Fchangelog\u002F2025\u002F03\u002Fteam-npm-registry","NPM Package Hosting",{"path":14431,"title":14432},"\u002Fchangelog\u002F2025\u002F03\u002Ftopic-deletion","MQTT Topic Management",{"path":14434,"title":14435},"\u002Fchangelog\u002F2025\u002F04\u002Fdevice-provisioning","Remote Instance Provisioning",{"path":14437,"title":14438},"\u002Fchangelog\u002F2025\u002F04\u002Fgit-integration","Git Integration with Pipelines",{"path":14440,"title":14441},"\u002Fchangelog\u002F2025\u002F04\u002Finstance-log-browsing","Better Node-RED log handling",{"path":14443,"title":14444},"\u002Fchangelog\u002F2025\u002F05\u002Fimport-node-red-flows","Import Node-RED Flows During Remote Instance Setup",{"path":14446,"title":14447},"\u002Fchangelog\u002F2025\u002F06\u002Fflowfuse-assistant","FlowFuse Expert just got smarter",{"path":14449,"title":14447},"\u002Fchangelog\u002F2025\u002F06\u002Fflowfuse-assistant-2",{"path":14451,"title":14452},"\u002Fchangelog\u002F2025\u002F06\u002Fgit-integration","Pulling snapshots from Git with Pipelines",{"path":14454,"title":14455},"\u002Fchangelog\u002F2025\u002F06\u002Finstance-performance-memory","Memory Metrics in Instance Performance View",{"path":14457,"title":14458},"\u002Fchangelog\u002F2025\u002F06\u002Fnew-home-page","Introducing the New Home Page Experience",{"path":14460,"title":14461},"\u002Fchangelog\u002F2025\u002F06\u002Fteam-performance","Team Performance Feature",{"path":14463,"title":14464},"\u002Fchangelog\u002F2025\u002F06\u002Fteam-performance-view","Instance Performance View",{"path":14466,"title":14467},"\u002Fchangelog\u002F2025\u002F06\u002Fui-refresh","Navigation UI Refresh",{"path":14469,"title":14470},"\u002Fchangelog\u002F2025\u002F07\u002Fbrowse-node-red-flows","Browse for Node-RED Flows During Remote Instance Setup",{"path":14472,"title":113},"\u002Fchangelog\u002F2025\u002F07\u002Fflowfuse-tables",{"path":14474,"title":14475},"\u002Fchangelog\u002F2025\u002F07\u002Fimport-blueprints","Import blueprints directly into your existing instances",{"path":14477,"title":14478},"\u002Fchangelog\u002F2025\u002F07\u002Fsimplified-applications-overview","Simplified Applications Page with Summary Tiles",{"path":14480,"title":14481},"\u002Fchangelog\u002F2025\u002F07\u002Fsmart-suggestions","Smart Suggestions",{"path":14483,"title":14484},"\u002Fchangelog\u002F2025\u002F07\u002Fteam-to-pro-plan-rename","Team Plan Renamed to Pro Plan",{"path":14486,"title":14487},"\u002Fchangelog\u002F2025\u002F08\u002Fai-generated-snapshot-descriptions-hosted","Generate snapshot descriptions with AI",{"path":14489,"title":14490},"\u002Fchangelog\u002F2025\u002F08\u002Fai-generated-snapshot-descriptions-remote","AI Snapshot Descriptions Now Work with Remote Instances",{"path":14492,"title":14493},"\u002Fchangelog\u002F2025\u002F08\u002Fdevice-performance","FlowFuse Remote Instance Performance Data",{"path":14495,"title":14496},"\u002Fchangelog\u002F2025\u002F08\u002Fdirect-sso","Direct SSO Login",{"path":14498,"title":14499},"\u002Fchangelog\u002F2025\u002F08\u002Fflowfuse-assistant","FlowFuse Expert documents your flows",{"path":14501,"title":14502},"\u002Fchangelog\u002F2025\u002F08\u002Fflowfuse-mqtt","FlowFuse MQTT",{"path":14504,"title":14505},"\u002Fchangelog\u002F2025\u002F08\u002Fhttp-cors","Configure HTTP CORS",{"path":14507,"title":14508},"\u002Fchangelog\u002F2025\u002F08\u002Fsubflow-export","Export SubFlow as Node-RED module",{"path":14510,"title":14511},"\u002Fchangelog\u002F2025\u002F08\u002Ftables-assistant","FlowFuse Tables with a little help from the Assistant",{"path":14513,"title":14514},"\u002Fchangelog\u002F2025\u002F09\u002Fexpose-saml-groups-to-dashboard","Allow SSO groups to be shared with the Node-RED Dashboard",{"path":14516,"title":14517},"\u002Fchangelog\u002F2025\u002F09\u002Finline-assist","FlowFuse Expert can help you write code",{"path":14519,"title":14520},"\u002Fchangelog\u002F2025\u002F09\u002Fretiring-flowforge-device-agent","No more @flowforge\u002Fflowforge-device-agent releases",{"path":14522,"title":14523},"\u002Fchangelog\u002F2025\u002F09\u002Frevised-instance-snapshot-ui","Streamlined Snapshot Management",{"path":14525,"title":14526},"\u002Fchangelog\u002F2025\u002F09\u002Fteam-broker-async-api","Capture Async API data from FlowFuse Team Broker",{"path":14528,"title":14529},"\u002Fchangelog\u002F2025\u002F10\u002Fapplication-level-rbac","Application-level access control for Enterprise teams",{"path":14531,"title":14532},"\u002Fchangelog\u002F2025\u002F10\u002Fbulk-device-group-assignment","Easier Access to Bulk Device Group Management",{"path":14534,"title":14535},"\u002Fchangelog\u002F2025\u002F10\u002Fduplicate-instances-across-applications","Duplicate Instances Across Different Applications",{"path":14537,"title":14538},"\u002Fchangelog\u002F2025\u002F10\u002Fimport-flows-on-instance-creation","Import flows during instance creation",{"path":14540,"title":14541},"\u002Fchangelog\u002F2025\u002F10\u002Fmcp-nodes","FlowFuse MCP Server Nodes",{"path":14543,"title":14544},"\u002Fchangelog\u002F2025\u002F10\u002Fonnx-nodes","FlowFuse AI Nodes",{"path":14546,"title":14547},"\u002Fchangelog\u002F2025\u002F10\u002Fsettings-page-device-group-management","Device Group Management from Settings Page",{"path":14549,"title":14550},"\u002Fchangelog\u002F2025\u002F11\u002Fff-expert-update","FlowFuse Expert Update",{"path":14552,"title":14553},"\u002Fchangelog\u002F2025\u002F11\u002Fminimum-nodejs-version","Node.js v20 Minimum Version Requirement",{"path":14555,"title":14556},"\u002Fchangelog\u002F2025\u002F11\u002Fsso-session","SSO control over Session life",{"path":14558,"title":14559},"\u002Fchangelog\u002F2025\u002F12\u002Fff-expert-mcp-insights","FlowFuse Expert: Now with MCP-Powered Insights",{"path":14561,"title":14562},"\u002Fchangelog\u002F2025\u002F12\u002Fscheduled-maintenance","Scheduled Maintenance Mode",{"path":14564,"title":14565},"\u002Fchangelog\u002F2026\u002F01\u002Fdevice-agent-containers","Device Agent Docker Containers updated",{"path":14567,"title":14568},"\u002Fchangelog\u002F2026\u002F01\u002Fff-expert-manage-palette","FlowFuse Expert: Enhanced Palette Integration",{"path":14570,"title":14571},"\u002Fchangelog\u002F2026\u002F01\u002Fff-expert-nr-actions","FlowFuse Expert: Integration with Node-RED",{"path":14573,"title":14574},"\u002Fchangelog\u002F2026\u002F01\u002Fff-expert-palette-queries","FlowFuse Expert: Palette Queries",{"path":14576,"title":14577},"\u002Fchangelog\u002F2026\u002F01\u002Fff-expert-select-flows","FlowFuse Expert: Ask about your flows",{"path":14579,"title":14580},"\u002Fchangelog\u002F2026\u002F01\u002Fmcp-rbacs","FlowFuse Expert: MCP-Powered Insights with RBACs",{"path":14582,"title":14583},"\u002Fchangelog\u002F2026\u002F01\u002Fmcp-security","FlowFuse Expert: MCP-Powered Insights",{"path":14585,"title":14586},"\u002Fchangelog\u002F2026\u002F02\u002Fdevice-agent-nodejs-options","Set Node.js Options for Remote Instances",{"path":14588,"title":14589},"\u002Fchangelog\u002F2026\u002F02\u002Fff-expert-debug-log-context","FlowFuse Expert: Helping you make sense of your debug log",{"path":14591,"title":14592},"\u002Fchangelog\u002F2026\u002F02\u002Fff-expert-update-banner","FlowFuse Expert: Never Miss an Update",{"path":14594,"title":14595},"\u002Fchangelog\u002F2026\u002F02\u002Fha-instance-rolling-restart","HA Hosted Instance Rolling Restart",{"path":14597,"title":14598},"\u002Fchangelog\u002F2026\u002F02\u002Fremote-instances-immersive-editor","Immersive Mode for Remote Instances",{"path":14600,"title":14601},"\u002Fchangelog\u002F2026\u002F02\u002Frestoring-snapshots-to-remote-instances","Restoring snapshots to developer-mode Remote Instances",{"path":14603,"title":14604},"\u002Fchangelog\u002F2026\u002F03\u002Fazure-dev-ops-gitops","Azure DevOps Pipeline support",{"path":14606,"title":14607},"\u002Fchangelog\u002F2026\u002F03\u002Fdeveloper-mode-in-immersive-editor","Developer Mode Now Accessible from the Immersive Editor",{"path":14609,"title":14610},"\u002Fchangelog\u002F2026\u002F03\u002Fembedded-editor-tab-title","Embedded Editor Now Shows Active Tab",{"path":14612,"title":14613},"\u002Fchangelog\u002F2026\u002F03\u002Fmarch-scheduled-maintenance","Updated: Upcoming Scheduled Server Maintenance on March 28th, 2026",{"path":14615,"title":14616},"\u002Fchangelog\u002F2026\u002F03\u002Fsnapshot-detail-modal-immersive-editor","View Snapshot Details in the Immersive Editor",{"path":14618,"title":14619},"\u002Fchangelog\u002F2026\u002F04\u002Fexpert-action-links","FlowFuse expert action links",{"path":14621,"title":14622},"\u002Fchangelog\u002F2026\u002F04\u002Fhosted-instance-url-env-var","Hosted Instances know their own URL",{"path":14624,"title":13881},"\u002Fchangelog\u002F2026\u002F04\u002Fimmersive-editor-drawer",{"path":14626,"title":14627},"\u002Fchangelog\u002F2026\u002F04\u002Fsnapshot-diff-viewer","Richer snapshot comparison view",{"path":14629,"title":14630},"\u002Fchangelog\u002F2026\u002F05\u002Fai-opt-out","AI Feature Opt-Out for Teams",{"path":14632,"title":14633},"\u002Fchangelog\u002F2026\u002F05\u002Fexpert-application-building","FlowFuse Expert Builds Your Application",{"path":14635,"title":14636},"\u002Fchangelog\u002F2026\u002F05\u002Fsingle-sso-provider","Single SSO provider for all users",{"path":14638,"title":14639},"\u002Fchangelog\u002F2026\u002F06\u002Fdark-mode","Dark Mode",{"path":14641,"title":14642},"\u002Fchangelog\u002F2026\u002F06\u002Fdevice-agent-v4-released","Device Agent v4 released",{"path":14644,"title":14645},"\u002Fchangelog\u002F2026\u002F06\u002Fgeneric-git-server-support","Connect Pipelines to Any Git Server",{"path":14647,"title":14648},"\u002Fchangelog\u002F2026\u002F06\u002Fjuly-scheduled-maintenance","Updated: Upcoming Scheduled Server Maintenance on July 11th, 2026",{"path":14650,"title":14651},"\u002Fchangelog\u002F2026\u002F07\u002Fapplication-sso-groups","Application Roles from SSO Groups",{"path":14653,"title":14654},"\u002Fchangelog\u002F2026\u002F07\u002Fdevice-agent-onboarding","Getting started with FlowFuse straight from the terminal",{"path":14656,"title":14657},"\u002Fchangelog\u002F2026\u002F07\u002Fexpert-enhancements","FlowFuse Expert Enhancements",{"path":14659,"title":14660},"\u002Fchangelog\u002F2026\u002F07\u002Fexpert-tables-automation","FlowFuse Expert Can Now Work With Your Tables",{"path":14662,"title":14663},"\u002Fchangelog\u002F2026\u002F07\u002Fscoped-pats","Team Scoped Personal Access Tokens",{"path":14665,"title":14666},"\u002Fchangelog\u002F2026\u002F07\u002Fteam-and-application-dashboards","A Dedicated Home for Your Dashboards",[],1786105902493]