diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 34d9405bf5..dc0c81e2a0 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -15,7 +15,7 @@ "@tanstack/react-query": "^5.101.0", "@tanstack/react-table": "^8.21.3", "@xyflow/react": "^12.11.3", - "axios": "^1.7.7", + "axios": "^1.20.0", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "date-fns": "^4.4.0", @@ -23,10 +23,8 @@ "echarts-for-react": "^3.0.6", "i18next": "^26.3.1", "i18next-browser-languagedetector": "^8.2.1", - "js-yaml": "^4.1.0", "leaflet": "^1.9.4", "lucide-react": "^0.468.0", - "mermaid": "^11.15.0", "prismjs": "^1.30.0", "react": "^19.0.0", "react-day-picker": "^10.0.1", @@ -34,7 +32,7 @@ "react-grid-layout": "^2.2.3", "react-i18next": "^17.0.8", "react-leaflet": "^5.0.0", - "react-router-dom": "^7.1.1", + "react-router-dom": "^7.18.4", "sonner": "^2.0.7", "tailwind-merge": "^2.6.0" }, @@ -51,17 +49,19 @@ "@types/react-dom": "^19.0.2", "@types/react-grid-layout": "^2.1.0", "@vitejs/plugin-react": "^6.0.2", - "@vitest/ui": "^4.1.4", + "@vitest/ui": "^4.1.12", "eslint": "^9.17.0", "eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-react-refresh": "^0.4.16", "globals": "^15.14.0", + "js-yaml": "^4.3.2", "jsdom": "^29.0.2", + "mermaid": "^11.17.2", "tailwindcss": "^4.0.0", "typescript": "~5.6.2", "typescript-eslint": "^8.18.2", "vite": "^8.0.16", - "vitest": "^4.1.4" + "vitest": "^4.1.12" } }, "node_modules/@adobe/css-tools": { @@ -74,6 +74,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-1.1.0.tgz", "integrity": "sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==", + "dev": true, "dependencies": { "package-manager-detector": "^1.3.0", "tinyexec": "^1.0.1" @@ -165,7 +166,8 @@ "node_modules/@braintree/sanitize-url": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.2.tgz", - "integrity": "sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==" + "integrity": "sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==", + "dev": true }, "node_modules/@bramus/specificity": { "version": "2.4.2", @@ -182,7 +184,9 @@ "node_modules/@chevrotain/types": { "version": "11.1.2", "resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-11.1.2.tgz", - "integrity": "sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw==" + "integrity": "sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw==", + "dev": true, + "license": "Apache-2.0" }, "node_modules/@csstools/color-helpers": { "version": "6.0.2", @@ -622,12 +626,14 @@ "node_modules/@iconify/types": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", - "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==" + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==", + "dev": true }, "node_modules/@iconify/utils": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-3.1.3.tgz", "integrity": "sha512-LPKOXPn/zV+zis1oOfGWogaXVpqUybF3ZS6SCZIsz8vg0ivVp9+fVqyYB7xq0aiST/VhUQYGO1qo6uoYSiEJqw==", + "dev": true, "dependencies": { "@antfu/install-pkg": "^1.1.0", "@iconify/types": "^2.0.0", @@ -680,11 +686,13 @@ } }, "node_modules/@mermaid-js/parser": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-1.1.1.tgz", - "integrity": "sha512-VuHdsYMK1bT6X2JbcAaWAhugTRvRBRyuZgd+c22swUeI9g/ntaxF7CY7dYarhZovofCbUNO0G7JesfmNtjYOCw==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-1.2.1.tgz", + "integrity": "sha512-n12NohV3mrUyUL2o93IgG/ifeW9FTyeJn3zDxkhwa8MJ9Fxg3HQMlA3RiGmD/3UnJvheztkjjQAjA2T4LmUcpw==", + "dev": true, + "license": "MIT", "dependencies": { - "@chevrotain/types": "~11.1.1" + "@chevrotain/types": "~11.1.2" } }, "node_modules/@napi-rs/wasm-runtime": { @@ -1717,7 +1725,8 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@tailwindcss/node": { "version": "4.2.4", @@ -2207,6 +2216,7 @@ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", "dev": true, + "license": "MIT", "dependencies": { "@types/deep-eql": "*", "assertion-error": "^2.0.1" @@ -2216,6 +2226,7 @@ "version": "7.4.3", "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==", + "dev": true, "dependencies": { "@types/d3-array": "*", "@types/d3-axis": "*", @@ -2252,12 +2263,14 @@ "node_modules/@types/d3-array": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", - "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==" + "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==", + "dev": true }, "node_modules/@types/d3-axis": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz", "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==", + "dev": true, "dependencies": { "@types/d3-selection": "*" } @@ -2266,6 +2279,7 @@ "version": "3.0.6", "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz", "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==", + "dev": true, "dependencies": { "@types/d3-selection": "*" } @@ -2273,7 +2287,8 @@ "node_modules/@types/d3-chord": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", - "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==" + "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==", + "dev": true }, "node_modules/@types/d3-color": { "version": "3.1.3", @@ -2284,6 +2299,7 @@ "version": "3.0.6", "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz", "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==", + "dev": true, "dependencies": { "@types/d3-array": "*", "@types/geojson": "*" @@ -2292,12 +2308,14 @@ "node_modules/@types/d3-delaunay": { "version": "6.0.4", "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", - "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==" + "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==", + "dev": true }, "node_modules/@types/d3-dispatch": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz", - "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==" + "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==", + "dev": true }, "node_modules/@types/d3-drag": { "version": "3.0.7", @@ -2310,17 +2328,20 @@ "node_modules/@types/d3-dsv": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", - "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==" + "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", + "dev": true }, "node_modules/@types/d3-ease": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", - "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==" + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", + "dev": true }, "node_modules/@types/d3-fetch": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz", "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==", + "dev": true, "dependencies": { "@types/d3-dsv": "*" } @@ -2328,17 +2349,20 @@ "node_modules/@types/d3-force": { "version": "3.0.10", "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", - "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==" + "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==", + "dev": true }, "node_modules/@types/d3-format": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", - "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==" + "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==", + "dev": true }, "node_modules/@types/d3-geo": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz", "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==", + "dev": true, "dependencies": { "@types/geojson": "*" } @@ -2346,7 +2370,8 @@ "node_modules/@types/d3-hierarchy": { "version": "3.1.7", "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", - "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==" + "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==", + "dev": true }, "node_modules/@types/d3-interpolate": { "version": "3.0.4", @@ -2359,27 +2384,32 @@ "node_modules/@types/d3-path": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", - "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==" + "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", + "dev": true }, "node_modules/@types/d3-polygon": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", - "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==" + "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==", + "dev": true }, "node_modules/@types/d3-quadtree": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", - "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==" + "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==", + "dev": true }, "node_modules/@types/d3-random": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz", - "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==" + "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==", + "dev": true }, "node_modules/@types/d3-scale": { "version": "4.0.9", "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", + "dev": true, "dependencies": { "@types/d3-time": "*" } @@ -2387,7 +2417,8 @@ "node_modules/@types/d3-scale-chromatic": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", - "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==" + "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==", + "dev": true }, "node_modules/@types/d3-selection": { "version": "3.0.11", @@ -2398,6 +2429,7 @@ "version": "3.1.8", "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz", "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==", + "dev": true, "dependencies": { "@types/d3-path": "*" } @@ -2405,17 +2437,20 @@ "node_modules/@types/d3-time": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", - "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==" + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", + "dev": true }, "node_modules/@types/d3-time-format": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", - "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==" + "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==", + "dev": true }, "node_modules/@types/d3-timer": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", - "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==" + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", + "dev": true }, "node_modules/@types/d3-transition": { "version": "3.0.9", @@ -2438,7 +2473,8 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/estree": { "version": "1.0.8", @@ -2449,7 +2485,8 @@ "node_modules/@types/geojson": { "version": "7946.0.16", "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", - "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==" + "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", + "dev": true }, "node_modules/@types/json-schema": { "version": "7.0.15", @@ -2515,6 +2552,7 @@ "version": "2.0.7", "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "dev": true, "optional": true }, "node_modules/@typescript-eslint/eslint-plugin": { @@ -2800,6 +2838,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/@upsetjs/venn.js/-/venn.js-2.0.0.tgz", "integrity": "sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==", + "dev": true, "optionalDependencies": { "d3-selection": "^3.0.0", "d3-transition": "^3.0.1" @@ -2832,15 +2871,16 @@ } }, "node_modules/@vitest/expect": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.5.tgz", - "integrity": "sha512-PWBaRY5JoKuRnHlUHfpV/KohFylaDZTupcXN1H9vYryNLOnitSw60Mw9IAE2r67NbwwzBw/Cc/8q9BK3kIX8Kw==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.12.tgz", + "integrity": "sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==", "dev": true, + "license": "MIT", "dependencies": { "@standard-schema/spec": "^1.1.0", "@types/chai": "^5.2.2", - "@vitest/spy": "4.1.5", - "@vitest/utils": "4.1.5", + "@vitest/spy": "4.1.12", + "@vitest/utils": "4.1.12", "chai": "^6.2.2", "tinyrainbow": "^3.1.0" }, @@ -2849,12 +2889,13 @@ } }, "node_modules/@vitest/mocker": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.5.tgz", - "integrity": "sha512-/x2EmFC4mT4NNzqvC3fmesuV97w5FC903KPmey4gsnJiMQ3Be1IlDKVaDaG8iqaLFHqJ2FVEkxZk5VmeLjIItw==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.12.tgz", + "integrity": "sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==", "dev": true, + "license": "MIT", "dependencies": { - "@vitest/spy": "4.1.5", + "@vitest/spy": "4.1.12", "estree-walker": "^3.0.3", "magic-string": "^0.30.21" }, @@ -2875,10 +2916,11 @@ } }, "node_modules/@vitest/pretty-format": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.5.tgz", - "integrity": "sha512-7I3q6l5qr03dVfMX2wCo9FxwSJbPdwKjy2uu/YPpU3wfHvIL4QHwVRp57OfGrDFeUJ8/8QdfBKIV12FTtLn00g==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.12.tgz", + "integrity": "sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==", "dev": true, + "license": "MIT", "dependencies": { "tinyrainbow": "^3.1.0" }, @@ -2887,12 +2929,13 @@ } }, "node_modules/@vitest/runner": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.5.tgz", - "integrity": "sha512-2D+o7Pr82IEO46YPpoA/YU0neeyr6FTerQb5Ro7BUnBuv6NQtT/kmVnczngiMEBhzgqz2UZYl5gArejsyERDSQ==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.12.tgz", + "integrity": "sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==", "dev": true, + "license": "MIT", "dependencies": { - "@vitest/utils": "4.1.5", + "@vitest/utils": "4.1.12", "pathe": "^2.0.3" }, "funding": { @@ -2900,13 +2943,14 @@ } }, "node_modules/@vitest/snapshot": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.5.tgz", - "integrity": "sha512-zypXEt4KH/XgKGPUz4eC2AvErYx0My5hfL8oDb1HzGFpEk1P62bxSohdyOmvz+d9UJwanI68MKwr2EquOaOgMQ==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.12.tgz", + "integrity": "sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==", "dev": true, + "license": "MIT", "dependencies": { - "@vitest/pretty-format": "4.1.5", - "@vitest/utils": "4.1.5", + "@vitest/pretty-format": "4.1.12", + "@vitest/utils": "4.1.12", "magic-string": "^0.30.21", "pathe": "^2.0.3" }, @@ -2915,21 +2959,23 @@ } }, "node_modules/@vitest/spy": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.5.tgz", - "integrity": "sha512-2lNOsh6+R2Idnf1TCZqSwYlKN2E/iDlD8sgU59kYVl+OMDmvldO1VDk39smRfpUNwYpNRVn3w4YfuC7KfbBnkQ==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.12.tgz", + "integrity": "sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==", "dev": true, + "license": "MIT", "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/ui": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@vitest/ui/-/ui-4.1.5.tgz", - "integrity": "sha512-3Z9HNFiV0IF1fk0JPiK+7kE1GcaIPefQQIBYur6PM5yFIq6agys3uqP/0t966e1wXfmjbRCHDe7qW236Xjwnag==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@vitest/ui/-/ui-4.1.12.tgz", + "integrity": "sha512-eYUTHtsp52Fu6YGUw9T9173bba7YUr9j/Xj9CdhUaOb8AppLKcknHUaiZQeqJ8MiJ8C2VyKiZuUGSKdvPIKQKA==", "dev": true, + "license": "MIT", "dependencies": { - "@vitest/utils": "4.1.5", + "@vitest/utils": "4.1.12", "fflate": "^0.8.2", "flatted": "^3.4.2", "pathe": "^2.0.3", @@ -2941,16 +2987,17 @@ "url": "https://opencollective.com/vitest" }, "peerDependencies": { - "vitest": "4.1.5" + "vitest": "4.1.12" } }, "node_modules/@vitest/utils": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.5.tgz", - "integrity": "sha512-76wdkrmfXfqGjueGgnb45ITPyUi1ycZ4IHgC2bhPDUfWHklY/q3MdLOAB+TF1e6xfl8NxNY0ZYaPCFNWSsw3Ug==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.12.tgz", + "integrity": "sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==", "dev": true, + "license": "MIT", "dependencies": { - "@vitest/pretty-format": "4.1.5", + "@vitest/pretty-format": "4.1.12", "convert-source-map": "^2.0.0", "tinyrainbow": "^3.1.0" }, @@ -3078,7 +3125,8 @@ "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "node_modules/aria-hidden": { "version": "1.2.6", @@ -3105,6 +3153,7 @@ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", "dev": true, + "license": "MIT", "engines": { "node": ">=12" } @@ -3115,13 +3164,13 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.18.0.tgz", - "integrity": "sha512-E32NzpYKp++W7XRe52rHiXV2ehxmh3wbdgO7MHeFM+vqxLBYHzt0ElkiImtOBxtOmyp0yoC8C6uESVV84Y2/hw==", + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.20.0.tgz", + "integrity": "sha512-r8aOh8j9cGKpgQAqpzrUHnSIc6a59Y3Xf/cv8sy1DrHCkZHzQGEuoq1tARk6qSyDdtQGSDgpb9kFlruzPvrgwg==", "license": "MIT", "dependencies": { "follow-redirects": "^1.16.0", - "form-data": "^4.0.5", + "form-data": "^4.0.6", "https-proxy-agent": "^5.0.1", "proxy-from-env": "^2.1.0" } @@ -3173,10 +3222,11 @@ } }, "node_modules/chai": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", - "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.3.0.tgz", + "integrity": "sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==", "dev": true, + "license": "MIT", "engines": { "node": ">=18" } @@ -3255,6 +3305,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, "engines": { "node": ">= 10" } @@ -3269,7 +3320,8 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/cookie": { "version": "1.1.1", @@ -3288,6 +3340,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-1.0.3.tgz", "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==", + "dev": true, "dependencies": { "layout-base": "^1.0.0" } @@ -3335,6 +3388,7 @@ "version": "3.34.0", "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.34.0.tgz", "integrity": "sha512-62rNSrioXw93uliKFBwjukeQyeWwH2PqDrTac31r2P6464u3AUvTk0xS4LVvT251g7IgkFunrI48ZEZGjywSOg==", + "dev": true, "engines": { "node": ">=0.10" } @@ -3343,6 +3397,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz", "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==", + "dev": true, "dependencies": { "cose-base": "^1.0.0" }, @@ -3354,6 +3409,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/cytoscape-fcose/-/cytoscape-fcose-2.2.0.tgz", "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==", + "dev": true, "dependencies": { "cose-base": "^2.2.0" }, @@ -3365,6 +3421,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-2.2.0.tgz", "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==", + "dev": true, "dependencies": { "layout-base": "^2.0.0" } @@ -3372,12 +3429,14 @@ "node_modules/cytoscape-fcose/node_modules/layout-base": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz", - "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==" + "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==", + "dev": true }, "node_modules/d3": { "version": "7.9.0", "resolved": "https://registry.npmjs.org/d3/-/d3-7.9.0.tgz", "integrity": "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==", + "dev": true, "dependencies": { "d3-array": "3", "d3-axis": "3", @@ -3418,6 +3477,7 @@ "version": "3.2.4", "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "dev": true, "dependencies": { "internmap": "1 - 2" }, @@ -3429,6 +3489,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz", "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==", + "dev": true, "engines": { "node": ">=12" } @@ -3437,6 +3498,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz", "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==", + "dev": true, "dependencies": { "d3-dispatch": "1 - 3", "d3-drag": "2 - 3", @@ -3452,6 +3514,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz", "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==", + "dev": true, "dependencies": { "d3-path": "1 - 3" }, @@ -3471,6 +3534,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz", "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==", + "dev": true, "dependencies": { "d3-array": "^3.2.0" }, @@ -3482,6 +3546,7 @@ "version": "6.0.4", "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.4.tgz", "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==", + "dev": true, "dependencies": { "delaunator": "5" }, @@ -3513,6 +3578,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", + "dev": true, "dependencies": { "commander": "7", "iconv-lite": "0.6", @@ -3545,6 +3611,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", + "dev": true, "dependencies": { "d3-dsv": "1 - 3" }, @@ -3556,6 +3623,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz", "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==", + "dev": true, "dependencies": { "d3-dispatch": "1 - 3", "d3-quadtree": "1 - 3", @@ -3569,6 +3637,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", + "dev": true, "engines": { "node": ">=12" } @@ -3577,6 +3646,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.1.tgz", "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==", + "dev": true, "dependencies": { "d3-array": "2.5.0 - 3" }, @@ -3588,6 +3658,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz", "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==", + "dev": true, "engines": { "node": ">=12" } @@ -3607,6 +3678,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "dev": true, "engines": { "node": ">=12" } @@ -3615,6 +3687,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz", "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==", + "dev": true, "engines": { "node": ">=12" } @@ -3623,6 +3696,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz", "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==", + "dev": true, "engines": { "node": ">=12" } @@ -3631,6 +3705,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz", "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==", + "dev": true, "engines": { "node": ">=12" } @@ -3639,6 +3714,7 @@ "version": "0.12.3", "resolved": "https://registry.npmjs.org/d3-sankey/-/d3-sankey-0.12.3.tgz", "integrity": "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==", + "dev": true, "dependencies": { "d3-array": "1 - 2", "d3-shape": "^1.2.0" @@ -3648,6 +3724,7 @@ "version": "2.12.1", "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz", "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==", + "dev": true, "dependencies": { "internmap": "^1.0.0" } @@ -3655,12 +3732,14 @@ "node_modules/d3-sankey/node_modules/d3-path": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", - "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==" + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==", + "dev": true }, "node_modules/d3-sankey/node_modules/d3-shape": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", + "dev": true, "dependencies": { "d3-path": "1" } @@ -3668,12 +3747,14 @@ "node_modules/d3-sankey/node_modules/internmap": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", - "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==" + "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==", + "dev": true }, "node_modules/d3-scale": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "dev": true, "dependencies": { "d3-array": "2.10.0 - 3", "d3-format": "1 - 3", @@ -3689,6 +3770,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==", + "dev": true, "dependencies": { "d3-color": "1 - 3", "d3-interpolate": "1 - 3" @@ -3709,6 +3791,7 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "dev": true, "dependencies": { "d3-path": "^3.1.0" }, @@ -3720,6 +3803,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "dev": true, "dependencies": { "d3-array": "2 - 3" }, @@ -3731,6 +3815,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "dev": true, "dependencies": { "d3-time": "1 - 3" }, @@ -3783,6 +3868,7 @@ "version": "7.0.14", "resolved": "https://registry.npmjs.org/dagre-d3-es/-/dagre-d3-es-7.0.14.tgz", "integrity": "sha512-P4rFMVq9ESWqmOgK+dlXvOtLwYg0i7u0HBGJER0LZDJT2VHIPAMZ/riPxqJceWMStH5+E61QxFra9kIS3AqdMg==", + "dev": true, "dependencies": { "d3": "^7.9.0", "lodash-es": "^4.17.21" @@ -3814,7 +3900,8 @@ "node_modules/dayjs": { "version": "1.11.21", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.21.tgz", - "integrity": "sha512-98IT+HOahAisibz/yjKbzuOBwYcjJ7BCLPzARyHiyEBmRz4fatF+KPJszEHXsGYjUG234aH/cOjW1wwTbKUZlA==" + "integrity": "sha512-98IT+HOahAisibz/yjKbzuOBwYcjJ7BCLPzARyHiyEBmRz4fatF+KPJszEHXsGYjUG234aH/cOjW1wwTbKUZlA==", + "dev": true }, "node_modules/debug": { "version": "4.4.3", @@ -3848,6 +3935,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.1.0.tgz", "integrity": "sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==", + "dev": true, "dependencies": { "robust-predicates": "^3.0.2" } @@ -3895,6 +3983,7 @@ "version": "3.4.9", "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.9.tgz", "integrity": "sha512-4dPSRMRDqHvs0V4YDFCsaIZo4if5u0xM+llyxiM2fwuZFdKArUBAF3VtI2+n8NKg9P870WMdYk0UhqQNoWXbfQ==", + "dev": true, "optionalDependencies": { "@types/trusted-types": "^2.0.7" } @@ -3981,10 +4070,11 @@ } }, "node_modules/es-module-lexer": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.1.0.tgz", - "integrity": "sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==", - "dev": true + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", + "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", + "dev": true, + "license": "MIT" }, "node_modules/es-object-atoms": { "version": "1.1.2", @@ -4014,7 +4104,8 @@ "node_modules/es-toolkit": { "version": "1.47.0", "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.47.0.tgz", - "integrity": "sha512-n1GuoD0WEQZMBk5tttoZSqwgyLx01oqa5XsBmCHwPyNe1S9jPBEmtR2pSgp2kJuWE3ciFZ6yRHmY4pM4C3OOkw==" + "integrity": "sha512-n1GuoD0WEQZMBk5tttoZSqwgyLx01oqa5XsBmCHwPyNe1S9jPBEmtR2pSgp2kJuWE3ciFZ6yRHmY4pM4C3OOkw==", + "dev": true }, "node_modules/escape-string-regexp": { "version": "4.0.0", @@ -4191,6 +4282,7 @@ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", "dev": true, + "license": "MIT", "dependencies": { "@types/estree": "^1.0.0" } @@ -4205,10 +4297,11 @@ } }, "node_modules/expect-type": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz", - "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", + "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=12.0.0" } @@ -4235,6 +4328,16 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, + "node_modules/fastdom": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fastdom/-/fastdom-1.0.12.tgz", + "integrity": "sha512-LB+xjSTEbjHE1cWsxu+tN2Xqr1kpi+V9aADI7sVM5ZMaXyYGPHULQMzpJMYqOTULK/73pUkWVzzObFRBkPr+hg==", + "dev": true, + "license": "MIT", + "dependencies": { + "strictdom": "^1.0.1" + } + }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -4450,7 +4553,8 @@ "node_modules/hachure-fill": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/hachure-fill/-/hachure-fill-0.5.2.tgz", - "integrity": "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==" + "integrity": "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==", + "dev": true }, "node_modules/has-flag": { "version": "4.0.0", @@ -4569,6 +4673,7 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -4605,6 +4710,7 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", + "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -4632,6 +4738,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "dev": true, "engines": { "node": ">=12" } @@ -4684,9 +4791,10 @@ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "node_modules/js-yaml": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz", - "integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", + "dev": true, "funding": [ { "type": "github", @@ -4697,6 +4805,7 @@ "url": "https://github.com/sponsors/nodeca" } ], + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -4775,6 +4884,7 @@ "version": "0.16.47", "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz", "integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==", + "dev": true, "funding": [ "https://opencollective.com/katex", "https://github.com/sponsors/katex" @@ -4790,6 +4900,7 @@ "version": "8.3.0", "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true, "engines": { "node": ">= 12" } @@ -4806,12 +4917,14 @@ "node_modules/khroma": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz", - "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==" + "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==", + "dev": true }, "node_modules/layout-base": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", - "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==" + "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==", + "dev": true }, "node_modules/leaflet": { "version": "1.9.4", @@ -5099,7 +5212,8 @@ "node_modules/lodash-es": { "version": "4.18.1", "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.18.1.tgz", - "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==" + "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==", + "dev": true }, "node_modules/lodash.merge": { "version": "4.6.2", @@ -5150,6 +5264,7 @@ "version": "16.4.2", "resolved": "https://registry.npmjs.org/marked/-/marked-16.4.2.tgz", "integrity": "sha512-TI3V8YYWvkVf3KJe1dRkpnjs68JUPyEa5vjKrp1XEEJUAOaQc+Qj+L1qWbPd0SJuAdQkFU0h73sXXqwDYxsiDA==", + "dev": true, "bin": { "marked": "bin/marked.js" }, @@ -5172,25 +5287,28 @@ "dev": true }, "node_modules/mermaid": { - "version": "11.15.0", - "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-11.15.0.tgz", - "integrity": "sha512-pTMbcf3rWdtLiYGpmoTjHEpeY8seiy6sR+9nD7LOs8KfUbHE4lOUAprTRqRAcWSQ6MQpdX+YEsxShtGsINtPtw==", + "version": "11.17.2", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-11.17.2.tgz", + "integrity": "sha512-V6K3C8EBdEsPFZXSKMJe6ppQOENxuHARr9GvHX4hh47lAbhMRD9qf4oEK7LoaRQxULMa80/qt5gHO73aCleBBg==", + "dev": true, + "license": "MIT", "dependencies": { - "@braintree/sanitize-url": "^7.1.1", + "@braintree/sanitize-url": "^7.1.2", "@iconify/utils": "^3.0.2", - "@mermaid-js/parser": "^1.1.1", + "@mermaid-js/parser": "^1.2.1", "@types/d3": "^7.4.3", "@upsetjs/venn.js": "^2.0.0", - "cytoscape": "^3.33.1", + "cytoscape": "^3.34.0", "cytoscape-cose-bilkent": "^4.1.0", "cytoscape-fcose": "^2.2.0", "d3": "^7.9.0", "d3-sankey": "^0.12.3", "dagre-d3-es": "7.0.14", - "dayjs": "^1.11.19", - "dompurify": "^3.3.1", + "dayjs": "^1.11.21", + "dompurify": "^3.3.3", "es-toolkit": "^1.45.1", - "katex": "^0.16.25", + "fastdom": "1.0.12", + "katex": "^0.16.47", "khroma": "^2.1.0", "marked": "^16.3.0", "roughjs": "^4.6.6", @@ -5286,14 +5404,18 @@ } }, "node_modules/obug": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz", - "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/obug/-/obug-2.2.1.tgz", + "integrity": "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==", "dev": true, "funding": [ "https://github.com/sponsors/sxzz", "https://opencollective.com/debug" - ] + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } }, "node_modules/optionator": { "version": "0.9.4", @@ -5345,7 +5467,8 @@ "node_modules/package-manager-detector": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.6.0.tgz", - "integrity": "sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==" + "integrity": "sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==", + "dev": true }, "node_modules/parent-module": { "version": "1.0.1", @@ -5374,7 +5497,8 @@ "node_modules/path-data-parser": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/path-data-parser/-/path-data-parser-0.1.0.tgz", - "integrity": "sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==" + "integrity": "sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==", + "dev": true }, "node_modules/path-exists": { "version": "4.0.0", @@ -5398,7 +5522,8 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/picocolors": { "version": "1.1.1", @@ -5421,12 +5546,14 @@ "node_modules/points-on-curve": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/points-on-curve/-/points-on-curve-0.2.0.tgz", - "integrity": "sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==" + "integrity": "sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==", + "dev": true }, "node_modules/points-on-path": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/points-on-path/-/points-on-path-0.2.1.tgz", "integrity": "sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==", + "dev": true, "dependencies": { "path-data-parser": "0.1.0", "points-on-curve": "0.2.0" @@ -5722,9 +5849,9 @@ } }, "node_modules/react-router": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.17.0.tgz", - "integrity": "sha512-FDELK7rTMlCHO5+reyXsPlmfr7N1F91lPHsWYfMEGQm/KQ+F4JFM8jGoeQDmDvdTs93Fw9aSilH+uKRb4/jXvQ==", + "version": "7.18.4", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.4.tgz", + "integrity": "sha512-PUPQcMhMGRAslLcvtlPz/kmzBEWPhLdgLFrL7pLNepBL6dX0lWj4WD2cUYVgYCuT3jxvghYFg81cDTj44DhetQ==", "license": "MIT", "dependencies": { "cookie": "^1.0.1", @@ -5744,12 +5871,12 @@ } }, "node_modules/react-router-dom": { - "version": "7.17.0", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.17.0.tgz", - "integrity": "sha512-fyU2yjGups/hE6Xz0I5ZYbVL8Gx29eCjgpHaRaTaVU+OOAdfRX05KsvyRm0GO8YQwOkhpU3MurW1jyMUJn+zSw==", + "version": "7.18.4", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.4.tgz", + "integrity": "sha512-yrfmJHIpDG7taCpqKjT1G5B6q3O2K+RN8/fgNf0lTjCwiPbQ0ei6vXX9ZjQR+7ld8Tr7Z5xmyMnZ8YJrphWQUw==", "license": "MIT", "dependencies": { - "react-router": "7.17.0" + "react-router": "7.18.4" }, "engines": { "node": ">=20.0.0" @@ -5819,7 +5946,8 @@ "node_modules/robust-predicates": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", - "integrity": "sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==" + "integrity": "sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==", + "dev": true }, "node_modules/rolldown": { "version": "1.0.3", @@ -5859,6 +5987,7 @@ "version": "4.6.6", "resolved": "https://registry.npmjs.org/roughjs/-/roughjs-4.6.6.tgz", "integrity": "sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==", + "dev": true, "dependencies": { "hachure-fill": "^0.5.2", "path-data-parser": "^0.1.0", @@ -5869,12 +5998,14 @@ "node_modules/rw": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", - "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==" + "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==", + "dev": true }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true }, "node_modules/saxes": { "version": "6.0.0", @@ -5894,9 +6025,9 @@ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==" }, "node_modules/set-cookie-parser": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz", - "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==", + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.3.tgz", + "integrity": "sha512-irZHtTqurLna57KQG/s+fzOwv/J6XSH4cs8M/vsrY3uCaQ3S6+QJguAH0WdN47SXlk82voMZ4naWMQf8fdEoIg==", "license": "MIT" }, "node_modules/shebang-command": { @@ -5924,7 +6055,8 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/sirv": { "version": "3.0.2", @@ -5967,13 +6099,22 @@ "version": "0.0.2", "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/std-env": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.1.0.tgz", - "integrity": "sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==", - "dev": true + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.3.0.tgz", + "integrity": "sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==", + "dev": true, + "license": "MIT" + }, + "node_modules/strictdom": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strictdom/-/strictdom-1.0.1.tgz", + "integrity": "sha512-cEmp9QeXXRmjj/rVp9oyiqcvyocWab/HaoN4+bwFeZ7QzykJD6L3yD4v12K1x0tHpqRqVpJevN3gW7kyM39Bqg==", + "dev": true, + "license": "MIT" }, "node_modules/strip-indent": { "version": "3.0.0", @@ -6002,7 +6143,8 @@ "node_modules/stylis": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.4.0.tgz", - "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==" + "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==", + "dev": true }, "node_modules/supports-color": { "version": "7.2.0", @@ -6054,12 +6196,14 @@ "version": "2.9.0", "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/tinyexec": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.2.4.tgz", "integrity": "sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==", + "dev": true, "engines": { "node": ">=18" } @@ -6082,10 +6226,11 @@ } }, "node_modules/tinyrainbow": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz", - "integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.2.0.tgz", + "integrity": "sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==", "dev": true, + "license": "MIT", "engines": { "node": ">=14.0.0" } @@ -6157,6 +6302,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.3.0.tgz", "integrity": "sha512-JfJeIHke7y2egdGGgRAvpCwYFUsHlM2gPcrVOxFkznt/4uzQ7HFmvE63iFHVLBJNDuyDOQgijDK/tXH/f6Msjg==", + "dev": true, "engines": { "node": ">=6.10" } @@ -6291,6 +6437,7 @@ "version": "14.0.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.0.tgz", "integrity": "sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==", + "dev": true, "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" @@ -6378,18 +6525,19 @@ } }, "node_modules/vitest": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.5.tgz", - "integrity": "sha512-9Xx1v3/ih3m9hN+SbfkUyy0JAs72ap3r7joc87XL6jwF0jGg6mFBvQ1SrwaX+h8BlkX6Hz9shdd1uo6AF+ZGpg==", - "dev": true, - "dependencies": { - "@vitest/expect": "4.1.5", - "@vitest/mocker": "4.1.5", - "@vitest/pretty-format": "4.1.5", - "@vitest/runner": "4.1.5", - "@vitest/snapshot": "4.1.5", - "@vitest/spy": "4.1.5", - "@vitest/utils": "4.1.5", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.12.tgz", + "integrity": "sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/expect": "4.1.12", + "@vitest/mocker": "4.1.12", + "@vitest/pretty-format": "4.1.12", + "@vitest/runner": "4.1.12", + "@vitest/snapshot": "4.1.12", + "@vitest/spy": "4.1.12", + "@vitest/utils": "4.1.12", "es-module-lexer": "^2.0.0", "expect-type": "^1.3.0", "magic-string": "^0.30.21", @@ -6417,12 +6565,12 @@ "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", - "@vitest/browser-playwright": "4.1.5", - "@vitest/browser-preview": "4.1.5", - "@vitest/browser-webdriverio": "4.1.5", - "@vitest/coverage-istanbul": "4.1.5", - "@vitest/coverage-v8": "4.1.5", - "@vitest/ui": "4.1.5", + "@vitest/browser-playwright": "4.1.12", + "@vitest/browser-preview": "4.1.12", + "@vitest/browser-webdriverio": "^4.1.11", + "@vitest/coverage-istanbul": "4.1.12", + "@vitest/coverage-v8": "4.1.12", + "@vitest/ui": "4.1.12", "happy-dom": "*", "jsdom": "*", "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" @@ -6538,6 +6686,7 @@ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", "dev": true, + "license": "MIT", "dependencies": { "siginfo": "^2.0.0", "stackback": "0.0.2" diff --git a/frontend/public/integrations/apache.svg b/frontend/public/integrations/apache.svg new file mode 100644 index 0000000000..67e5117b99 --- /dev/null +++ b/frontend/public/integrations/apache.svg @@ -0,0 +1 @@ + diff --git a/frontend/public/integrations/apache2.svg b/frontend/public/integrations/apache2.svg new file mode 100644 index 0000000000..d63bdb2254 --- /dev/null +++ b/frontend/public/integrations/apache2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/elasticsearch.svg b/frontend/public/integrations/elasticsearch.svg new file mode 100644 index 0000000000..b95507cd54 --- /dev/null +++ b/frontend/public/integrations/elasticsearch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/haproxy.svg b/frontend/public/integrations/haproxy.svg new file mode 100644 index 0000000000..765645e6e6 --- /dev/null +++ b/frontend/public/integrations/haproxy.svg @@ -0,0 +1,325 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/public/integrations/iis.svg b/frontend/public/integrations/iis.svg new file mode 100644 index 0000000000..b7ea7b8794 --- /dev/null +++ b/frontend/public/integrations/iis.svg @@ -0,0 +1,7 @@ + + + + + Svg Vector Icons : http://www.onlinewebfonts.com/icon + + \ No newline at end of file diff --git a/frontend/public/integrations/kafka.svg b/frontend/public/integrations/kafka.svg new file mode 100644 index 0000000000..75c2ea3ccc --- /dev/null +++ b/frontend/public/integrations/kafka.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/kibana.svg b/frontend/public/integrations/kibana.svg new file mode 100644 index 0000000000..2d39728940 --- /dev/null +++ b/frontend/public/integrations/kibana.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/logstash.svg b/frontend/public/integrations/logstash.svg new file mode 100644 index 0000000000..cf718cd088 --- /dev/null +++ b/frontend/public/integrations/logstash.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/mongodb.svg b/frontend/public/integrations/mongodb.svg new file mode 100644 index 0000000000..764ccf588f --- /dev/null +++ b/frontend/public/integrations/mongodb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/mysql.svg b/frontend/public/integrations/mysql.svg new file mode 100644 index 0000000000..8611de93e2 --- /dev/null +++ b/frontend/public/integrations/mysql.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/nats.svg b/frontend/public/integrations/nats.svg new file mode 100644 index 0000000000..d71a2196e4 --- /dev/null +++ b/frontend/public/integrations/nats.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/nginx.svg b/frontend/public/integrations/nginx.svg new file mode 100644 index 0000000000..88157c47c6 --- /dev/null +++ b/frontend/public/integrations/nginx.svg @@ -0,0 +1,38 @@ + + + + + + + + + diff --git a/frontend/public/integrations/osquery.svg b/frontend/public/integrations/osquery.svg new file mode 100644 index 0000000000..e7b26557b3 --- /dev/null +++ b/frontend/public/integrations/osquery.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/postgresql.svg b/frontend/public/integrations/postgresql.svg new file mode 100644 index 0000000000..4a770c14d6 --- /dev/null +++ b/frontend/public/integrations/postgresql.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/redis.svg b/frontend/public/integrations/redis.svg new file mode 100644 index 0000000000..313e8bc7f7 --- /dev/null +++ b/frontend/public/integrations/redis.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/syslog.svg b/frontend/public/integrations/syslog.svg new file mode 100644 index 0000000000..61560fd4cf --- /dev/null +++ b/frontend/public/integrations/syslog.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/integrations/traefik.svg b/frontend/public/integrations/traefik.svg new file mode 100644 index 0000000000..1ffc36b7e2 --- /dev/null +++ b/frontend/public/integrations/traefik.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/src/features/alerts/pages/AlertsPage.tsx b/frontend/src/features/alerts/pages/AlertsPage.tsx index 44c6693926..8294d2f3c9 100644 --- a/frontend/src/features/alerts/pages/AlertsPage.tsx +++ b/frontend/src/features/alerts/pages/AlertsPage.tsx @@ -52,11 +52,32 @@ import type { AlertTag } from '../types/alert.types' function readSeed(location: ReturnType): { filters: CustomFilter[] range: TimeRange + queryFilters?: FilterType[] } | null { const state = location.state as { + dashboardSearch?: { filters: FilterType[]; range: TimeRange } socaiFilters?: (FilterType & { label?: string })[] socaiTime?: string } | null + if (state?.dashboardSearch) { + return { + filters: state.dashboardSearch.filters + .filter((filter) => filter.field !== TS) + .map((filter) => ({ + field: filter.field, + label: filter.field, + operator: + filter.operator === 'IS_ONE_OF_TERMS' + ? 'IS' + : filter.operator === 'IS_NOT_ONE_OF_TERMS' + ? 'IS_NOT' + : filter.operator, + value: Array.isArray(filter.value) ? filter.value.join(', ') : String(filter.value ?? ''), + })), + range: state.dashboardSearch.range, + queryFilters: state.dashboardSearch.filters, + } + } if (!state?.socaiFilters?.length) return null // @timestamp filters drive the dedicated time picker, not the custom filter bar. @@ -99,7 +120,16 @@ export function AlertsPage() { const [search, setSearch] = useState('') const [debounced, setDebounced] = useState('') const [tagFilter, setTagFilter] = useState([]) - const [customFilters, setCustomFilters] = useState(() => seeded?.filters ?? []) + const [dashboardSeedFilters, setDashboardSeedFilters] = useState( + () => seeded?.queryFilters ?? null, + ) + const [customFilters, setCustomFiltersState] = useState(() => seeded?.filters ?? []) + const setCustomFilters = ( + next: CustomFilter[] | ((previous: CustomFilter[]) => CustomFilter[]), + ) => { + setDashboardSeedFilters(null) + setCustomFiltersState(next) + } const [page, setPage] = useState(0) const [pageSize] = useState(50) @@ -168,18 +198,26 @@ export function AlertsPage() { // Scope filters (time + search). `parentId IS ''` hides deduplicated // child "echoes" — they roll up under their parent (matches the legacy default). const scopeFilters = useMemo(() => { - const f: FilterType[] = [{ field: 'parentId', operator: 'IS', value: '' }] + const f: FilterType[] = dashboardSeedFilters + ? [] + : [{ field: 'parentId', operator: 'IS', value: '' }] const abs = resolveRange(range) if (abs.from) f.push({ field: TS, operator: 'IS_BETWEEN', value: [abs.from, abs.to] }) - if (debounced) f.push({ field: 'name', operator: 'CONTAIN', value: debounced }) + if (dashboardSeedFilters) { + f.push(...dashboardSeedFilters) + } else if (debounced) { + f.push({ field: 'name', operator: 'CONTAIN', value: debounced }) + } // Tag selector: match alerts carrying ANY of the chosen tags (OR semantics). if (tagFilter.length) f.push({ field: 'tags', operator: 'IS_ONE_OF', value: tagFilter }) - for (const cf of customFilters) { - const needsValue = FILTER_OPS.find((o) => o.id === cf.operator)?.needsValue ?? true - f.push({ field: cf.field, operator: cf.operator, value: needsValue ? cf.value : undefined }) + if (!dashboardSeedFilters) { + for (const cf of customFilters) { + const needsValue = FILTER_OPS.find((o) => o.id === cf.operator)?.needsValue ?? true + f.push({ field: cf.field, operator: cf.operator, value: needsValue ? cf.value : undefined }) + } } return f - }, [range.from, range.to, debounced, tagFilter, customFilters]) + }, [range.from, range.to, debounced, tagFilter, customFilters, dashboardSeedFilters]) // List filters add the tab (status) + severity refinement. const listFilters = useMemo(() => { diff --git a/frontend/src/features/dashboard/components/DashboardGrid.tsx b/frontend/src/features/dashboard/components/DashboardGrid.tsx index e618703dc5..828cd29777 100644 --- a/frontend/src/features/dashboard/components/DashboardGrid.tsx +++ b/frontend/src/features/dashboard/components/DashboardGrid.tsx @@ -90,7 +90,14 @@ export function DashboardGrid({ onRemove={viz ? () => onRemoveItem?.(viz.id) : undefined} > {viz ? ( - + ) : (
{t('dashboards.grid.missingVisualization')} diff --git a/frontend/src/features/dashboard/components/EChartsRenderer.tsx b/frontend/src/features/dashboard/components/EChartsRenderer.tsx index 5262b2b196..6bb823cfa1 100644 --- a/frontend/src/features/dashboard/components/EChartsRenderer.tsx +++ b/frontend/src/features/dashboard/components/EChartsRenderer.tsx @@ -5,7 +5,18 @@ import { UTM_THEME_LIGHT, } from '@/features/dashboard/utils/echarts-theme' -export function EChartsRenderer({ option }: { option: Record }) { +export interface ChartClickEvent { + dataIndex?: number + seriesName?: string +} + +export function EChartsRenderer({ + option, + onMarkClick, +}: { + option: Record + onMarkClick?: (event: ChartClickEvent) => void +}) { const { theme } = useThemeContext() return ( }) theme={theme === 'dark' ? UTM_THEME_DARK : UTM_THEME_LIGHT} notMerge lazyUpdate + onEvents={ + onMarkClick + ? { + click: (event: ChartClickEvent) => onMarkClick(event), + } + : undefined + } style={{ height: '100%', width: '100%' }} /> ) diff --git a/frontend/src/features/dashboard/components/VisualizationEditor.tsx b/frontend/src/features/dashboard/components/VisualizationEditor.tsx index 46dc4ccb01..8e9d470d8d 100644 --- a/frontend/src/features/dashboard/components/VisualizationEditor.tsx +++ b/frontend/src/features/dashboard/components/VisualizationEditor.tsx @@ -266,7 +266,7 @@ function QuestionPanel({ onChange: (updater: (b: BuilderState) => BuilderState) => void }) { const { t } = useTranslation() - const plots = chart === 'time' || chart === 'category' + const plots = chart === 'time' || chart === 'category' || builder.chartType === 'table' return ( <> @@ -315,7 +315,11 @@ function QuestionPanel({ {plots && (
- {t('dashboards.editor.breakdown.title')} + + {builder.chartType === 'table' + ? t('dashboards.editor.breakdown.topValuesTable') + : t('dashboards.editor.breakdown.title')} + onChange((b) => ({ ...b, breakdown }))} @@ -337,19 +341,21 @@ function QuestionPanel({ {t('dashboards.editor.breakdown.splitHint')}

- ) : ( + ) : chart === 'category' ? ( onChange((b) => ({ ...b, dimension: next }))} /> - )} + ) : null} - onChange((b) => ({ ...b, limit }))} - /> + {(chart === 'time' || chart === 'category') && ( + onChange((b) => ({ ...b, limit }))} + /> + )}
)} diff --git a/frontend/src/features/dashboard/components/WidgetRenderer.tsx b/frontend/src/features/dashboard/components/WidgetRenderer.tsx index ecd2d46691..eb1c1f3d75 100644 --- a/frontend/src/features/dashboard/components/WidgetRenderer.tsx +++ b/frontend/src/features/dashboard/components/WidgetRenderer.tsx @@ -1,5 +1,6 @@ import { useMemo } from 'react' import { useTranslation } from 'react-i18next' +import { useNavigate } from 'react-router-dom' import { AlertTriangle, Loader2 } from 'lucide-react' import { EChartsRenderer } from '@/features/dashboard/components/EChartsRenderer' import { MetricRenderer } from '@/features/dashboard/components/renderers/MetricRenderer' @@ -9,7 +10,9 @@ import { TextRenderer } from '@/features/dashboard/components/renderers/TextRend import { useVisualizationData } from '@/features/dashboard/hooks/useVisualizationData' import { defaultChartSkeleton, mergeRowsIntoOption, parseChartConfig } from '@/features/dashboard/utils/echarts' import { parseBuilderConfig } from '@/features/dashboard/utils/builder-config' -import { parseSpec, specIsComplete } from '@/features/dashboard/utils/spec' +import { normalizeSpecDataType, parseSpec, specIsComplete } from '@/features/dashboard/utils/spec' +import { resolveRangeToISO } from '@/features/dashboard/utils/datemath' +import { termFilter, timeBucketRange, widgetBaseFilters } from '@/features/dashboard/utils/click-through' import { getChartTypeMeta, type ChartRenderer } from '@/features/dashboard/constants' import type { FilterType, Visualization } from '@/features/dashboard/types' import type { TimeRange } from '@/shared/components/ui/time-range-picker' @@ -19,13 +22,18 @@ export function WidgetRenderer({ time, filters, refreshMs, + interactive = true, + title, }: { visualization: Visualization time: TimeRange filters?: FilterType[] refreshMs?: number | null + interactive?: boolean + title?: string }) { const { t } = useTranslation() + const navigate = useNavigate() const parsed = useMemo(() => parseChartConfig(visualization.config), [visualization.config]) const builderParsed = useMemo( @@ -36,9 +44,40 @@ export function WidgetRenderer({ ? getChartTypeMeta(builderParsed.builder.chartType).renderer : 'echarts' - const spec = useMemo(() => parseSpec(visualization.spec), [visualization.spec]) + const spec = useMemo(() => { + const parsedSpec = parseSpec(visualization.spec) + return parsedSpec ? normalizeSpecDataType(parsedSpec) : null + }, [visualization.spec]) const answerable = spec != null && specIsComplete(spec) const query = useVisualizationData(answerable ? visualization : null, time, filters, refreshMs ?? null) + const rows = query.data?.rows ?? [] + const clickBase = useMemo(() => { + if (!spec) return null + const { fromISO, toISO } = resolveRangeToISO(time.from, time.to) + return { + dataset: spec.dataset, + dataType: spec.dataType, + filters: widgetBaseFilters(spec, filters), + range: { from: fromISO, to: toISO, interval: time.interval }, + } + }, [spec, filters, time.from, time.to, time.interval]) + + const openSearch = ( + additionalFilters: FilterType[] = [], + range = clickBase?.range + ) => { + if (!clickBase) return + const seed = { + ...clickBase, + filters: [...clickBase.filters, ...additionalFilters], + ...(range ? { range } : {}), + } + if (spec?.dataset === 'alerts') { + navigate('/threat-management/alerts', { state: { dashboardSearch: seed } }) + return + } + navigate('/log-explorer', { state: { dashboardSearch: seed } }) + } if (renderer === 'echarts' && (parsed.error || !parsed.option)) { return ( @@ -69,8 +108,6 @@ export function WidgetRenderer({ ) } - const rows = query.data?.rows ?? [] - if (!answerable) { return } @@ -84,10 +121,38 @@ export function WidgetRenderer({ } if (renderer === 'table') { - return + const topValues = spec?.chart === 'category' && builderParsed.builder?.chartType === 'table' + return ( + { + if (topValues && spec?.dimension) { + const selected = termFilter(spec.dimension, row[spec.dimension]) + if (selected) openSearch([selected]) + } else if (row.id != null) { + openSearch([{ field: 'id', operator: 'IS_ONE_OF_TERMS', value: [row.id] }]) + } else { + const rowFilters = Object.entries(row) + .filter(([field, value]) => field !== 'count' && value != null) + .map(([field, value]) => ({ + field, + operator: 'IS_ONE_OF_TERMS' as const, + value: [value], + })) + openSearch(rowFilters) + } + } + : undefined + } + /> + ) } if (renderer === 'metric') { - return + return openSearch() : undefined} /> } if (renderer === 'region_map') { return @@ -99,7 +164,45 @@ export function WidgetRenderer({ const skeleton = defaultChartSkeleton(builderParsed.builder?.chartType, spec?.chart) const baseOption = { ...skeleton, ...builderParsed.option } const option = parsed.option ? mergeRowsIntoOption(baseOption, rows) : parsed.option! - return + return ( + { + if (dataIndex == null || dataIndex < 0 || dataIndex >= rows.length || !spec) return + const row = rows[dataIndex] + if (spec.chart === 'category' && spec.dimension && row[spec.dimension] != null) { + const selected = termFilter(spec.dimension, row[spec.dimension]) + if (selected) openSearch([selected]) + return + } + + if (spec.chart === 'time') { + const splitFilters = + spec.dimension && seriesName + ? [{ field: spec.dimension, operator: 'IS_ONE_OF_TERMS' as const, value: [seriesName] }] + : [] + const adjacent = rows[dataIndex + 1]?.at ?? rows[dataIndex - 1]?.at + const inferredDuration = + typeof row.at === 'string' && typeof adjacent === 'string' + ? Math.abs( + new Date(adjacent.replace(' ', 'T')).getTime() - + new Date(row.at.replace(' ', 'T')).getTime(), + ) + : undefined + const bucket = timeBucketRange(row.at, spec.interval, inferredDuration) + const timeFilters = + bucket?.from && bucket.to + ? [{ field: '@timestamp', operator: 'IS_BETWEEN' as const, value: [bucket.from, bucket.to] }] + : [] + openSearch([...splitFilters, ...timeFilters]) + } + } + : undefined + } + /> + ) } function ErrorPanel({ diff --git a/frontend/src/features/dashboard/components/renderers/MetricRenderer.tsx b/frontend/src/features/dashboard/components/renderers/MetricRenderer.tsx index 9bb28b1d4a..290e4d8186 100644 --- a/frontend/src/features/dashboard/components/renderers/MetricRenderer.tsx +++ b/frontend/src/features/dashboard/components/renderers/MetricRenderer.tsx @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next' import type { Row } from '@/features/dashboard/types' -export function MetricRenderer({ rows }: { rows: Row[] }) { +export function MetricRenderer({ rows, onClick }: { rows: Row[]; onClick?: () => void }) { const { t } = useTranslation() if (rows.length === 0) { return ( @@ -25,7 +25,19 @@ export function MetricRenderer({ rows }: { rows: Row[] }) { } return ( -
+
{ + if (event.key === 'Enter' || event.key === ' ') onClick() + } + : undefined + } + role={onClick ? 'button' : undefined} + tabIndex={onClick ? 0 : undefined} + > {formatValue(value)}
) diff --git a/frontend/src/features/dashboard/components/renderers/TableRenderer.tsx b/frontend/src/features/dashboard/components/renderers/TableRenderer.tsx index 8be518161f..97b2f0f342 100644 --- a/frontend/src/features/dashboard/components/renderers/TableRenderer.tsx +++ b/frontend/src/features/dashboard/components/renderers/TableRenderer.tsx @@ -7,20 +7,46 @@ import type { Row } from '@/features/dashboard/types' const TH = 'whitespace-nowrap px-3 py-2 text-left align-middle font-medium' const TD = 'whitespace-nowrap px-3 py-2 align-middle text-xs text-foreground/90' -export function TableRenderer({ rows }: { rows: Row[] }) { +export function TableRenderer({ + rows, + dimension, + label, + onRowClick, +}: { + rows: Row[] + dimension?: string + label?: string + onRowClick?: (row: Row) => void +}) { const { t } = useTranslation() - const fields = useMemo(() => (rows.length === 0 ? [] : Object.keys(rows[0])), [rows]) + const fields = useMemo( + () => (rows.length === 0 ? [] : Object.keys(rows[0]).filter((field) => field !== 'id')), + [rows], + ) const columns = useMemo[]>( () => fields.map((field) => ({ id: field, - header: field, + header: + field === dimension + ? label || readableField(field) + : field === 'count' + ? t('dashboards.widget.count') + : readableField(field), size: 160, minSize: 60, - meta: { headerClassName: TH, cellClassName: TD, cellProps: (row) => ({ title: formatCell(row[field]) }) }, - cell: ({ row }) => {formatCell(row.original[field])}, + meta: { + headerClassName: field === 'count' ? `${TH} text-right` : TH, + cellClassName: field === 'count' ? `${TD} text-right tabular-nums` : TD, + cellProps: (row) => ({ title: formatCell(row[field]) }), + }, + cell: ({ row }) => ( + + {formatCell(row.original[field], field === 'count')} + + ), })), - [fields], + [fields, dimension, label, t], ) if (rows.length === 0) { @@ -39,17 +65,25 @@ export function TableRenderer({ rows }: { rows: Row[] }) { key={fields.join('|')} columns={columns} data={rows} + onRowClick={onRowClick ? (row) => onRowClick(row) : undefined} flexColumnId={fields[fields.length - 1]} storageKey={`dashboard-table-sizing:${fields.join('|')}`} headerClassName="bg-card" - rowClassName={() => 'last:border-b-0'} + rowClassName={() => `last:border-b-0 ${onRowClick ? 'cursor-pointer' : ''}`} />
) } -function formatCell(value: unknown): string { +function readableField(field: string): string { + return (field.split('.').pop() ?? field) + .replace(/([a-z0-9])([A-Z])/g, '$1 $2') + .replace(/[_-]+/g, ' ') +} + +function formatCell(value: unknown, numeric = false): string { if (value == null) return '—' + if (numeric && typeof value === 'number') return value.toLocaleString() if (typeof value === 'object') { try { return JSON.stringify(value) diff --git a/frontend/src/features/dashboard/hooks/useVisualizationData.ts b/frontend/src/features/dashboard/hooks/useVisualizationData.ts index a846121c5e..e970ebdf2e 100644 --- a/frontend/src/features/dashboard/hooks/useVisualizationData.ts +++ b/frontend/src/features/dashboard/hooks/useVisualizationData.ts @@ -4,6 +4,7 @@ import { createQueryService } from '@/features/dashboard/service/query.service' import { resolveRangeToISO } from '@/features/dashboard/utils/datemath' import { filterTypesToSpec, + normalizeSpecDataType, parseSpec, resultToRows, specIsComplete, @@ -30,12 +31,13 @@ export interface VisualizationData { * spec on the way out rather than stored with it. */ export function scopeSpec(spec: VizSpec, fromISO: string, toISO: string, filters: FilterType[]): VizSpec { + const normalized = normalizeSpecDataType(spec) const bar = filterTypesToSpec(filters) return { - ...spec, + ...normalized, from: fromISO, to: toISO, - filters: bar.length > 0 ? [...(spec.filters ?? []), ...bar] : spec.filters, + filters: bar.length > 0 ? [...(normalized.filters ?? []), ...bar] : normalized.filters, } } @@ -76,8 +78,12 @@ export function useVisualizationData( : [...VISUALIZATION_DATA_QUERY_KEYS.all, 'noop'], queryFn: async () => { if (!spec) return { rows: [], total: 0 } - const result = await service.run(spec) - const rows = resultToRows(result, spec) + const querySpec = + spec.chart === 'table' && spec.columns?.length && !spec.columns.includes('id') + ? { ...spec, columns: [...spec.columns, 'id'] } + : spec + const result = await service.run(querySpec) + const rows = resultToRows(result, querySpec) return { rows, total: result.total ?? rows.length } }, enabled: visualization != null && spec != null, diff --git a/frontend/src/features/dashboard/pages/DashboardPage.tsx b/frontend/src/features/dashboard/pages/DashboardPage.tsx index 4a5bcf3bb1..83e63c24a5 100644 --- a/frontend/src/features/dashboard/pages/DashboardPage.tsx +++ b/frontend/src/features/dashboard/pages/DashboardPage.tsx @@ -128,10 +128,25 @@ export function DashboardPage() { const state = location.state as { selectDashboardId?: string; resumeEditing?: boolean; + integrationDashboardName?: string; + integrationDashboardNames?: string[]; + integrationDashboardSearch?: string; } | null; + if (state?.integrationDashboardSearch) { + setSearch(state.integrationDashboardSearch); + } else if (state?.integrationDashboardNames || state?.integrationDashboardName) { + setSearch((state.integrationDashboardNames ?? [state.integrationDashboardName!])[0]); + } if (state?.selectDashboardId != null) { setSelectedId(state.selectDashboardId); pendingEditRef.current = state.resumeEditing !== false; + } + if ( + state?.selectDashboardId != null || + state?.integrationDashboardName || + state?.integrationDashboardNames || + state?.integrationDashboardSearch + ) { navigate(location.pathname, { replace: true, state: null }); } // Only react to navigation-state changes, not every render. diff --git a/frontend/src/features/dashboard/types/index.ts b/frontend/src/features/dashboard/types/index.ts index c6898e5d73..8db525e14a 100644 --- a/frontend/src/features/dashboard/types/index.ts +++ b/frontend/src/features/dashboard/types/index.ts @@ -128,10 +128,19 @@ export interface FilterRow { // common_models.FilterType — field + operator + value. export interface FilterType { field: string - operator: FilterOperatorId + operator: FilterTypeOperator value: unknown } +export type FilterTypeOperator = + | FilterOperatorId + | 'IS_NOT_ONE_OF_TERMS' + | 'IS_GREATER_THAN_OR_EQUALS' + | 'IS_LESS_THAN' + | 'IS_NOT_BETWEEN' + | 'DOES_NOT_START_WITH' + | 'DOES_NOT_END_WITH' + // Persistent chip config stored on dashboard.filters (JSON blob). Describes a // single dropdown in the dashboard filter bar; the *value* the user picks is // session-only (not persisted). @@ -277,4 +286,3 @@ export interface QueryResult { series?: { key: string; points: { at: string; count: number }[] }[] rows?: Record[] } - diff --git a/frontend/src/features/dashboard/utils/click-through.test.ts b/frontend/src/features/dashboard/utils/click-through.test.ts new file mode 100644 index 0000000000..f5c335c323 --- /dev/null +++ b/frontend/src/features/dashboard/utils/click-through.test.ts @@ -0,0 +1,47 @@ +import { describe, expect, it } from 'vitest' +import type { VizSpec } from '@/features/dashboard/types' +import { specFiltersToLogFilters, termFilter, timeBucketRange, widgetBaseFilters } from './click-through' + +describe('dashboard click-through filters', () => { + it('uses term matching for single nested numeric and text values', () => { + const spec: VizSpec = { + dataset: 'logs', + dataType: 'wineventlog', + chart: 'category', + dimension: 'log.eventCode', + metric: { agg: 'count' }, + filters: [{ field: 'origin.user', op: 'eq', value: 'alice' }], + } + + expect(widgetBaseFilters(spec)).toEqual([ + { field: 'dataType', operator: 'IS_ONE_OF_TERMS', value: ['wineventlog'] }, + { field: 'origin.user', operator: 'IS_ONE_OF_TERMS', value: ['alice'] }, + ]) + }) + + it('preserves filters that cannot be represented as URL parameters', () => { + expect( + specFiltersToLogFilters([ + { field: 'target.user', op: 'not_in', value: ['service', 'guest'] }, + { field: 'origin.ip', op: 'exists' }, + ]), + ).toEqual([ + { field: 'target.user', operator: 'IS_NOT_ONE_OF_TERMS', value: ['service', 'guest'] }, + { field: 'origin.ip', operator: 'EXIST' }, + ]) + }) + + it('uses terms matching for a nested numeric chart value', () => { + expect(termFilter('log.eventCode', 4624)).toEqual({ + field: 'log.eventCode', + operator: 'IS_ONE_OF_TERMS', + value: [4624], + }) + }) + + it('turns a rendered hourly label into an absolute one-hour range', () => { + const range = timeBucketRange('2026-10-25 06:00', '1h') + expect(range).not.toBeNull() + expect(new Date(range!.to).getTime() - new Date(range!.from!).getTime()).toBe(60 * 60 * 1000 - 1) + }) +}) diff --git a/frontend/src/features/dashboard/utils/click-through.ts b/frontend/src/features/dashboard/utils/click-through.ts new file mode 100644 index 0000000000..bc080e519e --- /dev/null +++ b/frontend/src/features/dashboard/utils/click-through.ts @@ -0,0 +1,77 @@ +import type { FilterType, SpecFilter, SpecOp, VizSpec } from '@/features/dashboard/types' +import type { TimeRange } from '@/shared/components/ui/time-range-picker' + +const SPEC_OPERATOR_TO_FILTER: Record = { + eq: 'IS_ONE_OF_TERMS', + not_eq: 'IS_NOT', + in: 'IS_ONE_OF_TERMS', + not_in: 'IS_NOT_ONE_OF_TERMS', + gt: 'IS_GREATER_THAN', + gte: 'IS_GREATER_THAN_OR_EQUALS', + lt: 'IS_LESS_THAN', + lte: 'IS_LESS_THAN_OR_EQUALS', + between: 'IS_BETWEEN', + not_between: 'IS_NOT_BETWEEN', + contains: 'CONTAIN', + not_contains: 'DOES_NOT_CONTAIN', + starts_with: 'START_WITH', + not_starts_with: 'DOES_NOT_START_WITH', + ends_with: 'ENDS_WITH', + not_ends_with: 'DOES_NOT_END_WITH', + exists: 'EXIST', + not_exists: 'DOES_NOT_EXIST', +} + +export function specFiltersToLogFilters(filters: SpecFilter[] = []): FilterType[] { + return filters.map((filter) => { + const value = + filter.op === 'eq' && filter.value !== undefined && !Array.isArray(filter.value) + ? [filter.value] + : filter.value + return { + field: filter.field, + operator: SPEC_OPERATOR_TO_FILTER[filter.op], + value, + } + }) +} + +export function widgetBaseFilters(spec: VizSpec, dashboardFilters: FilterType[] = []): FilterType[] { + const filters = specFiltersToLogFilters(spec.filters) + if (spec.dataType) { + filters.unshift({ field: 'dataType', operator: 'IS_ONE_OF_TERMS', value: [spec.dataType] }) + } + return [...filters, ...dashboardFilters] +} + +export function termFilter(field: string, value: unknown): FilterType | null { + if (value == null) return null + return { field, operator: 'IS_ONE_OF_TERMS', value: [value] } +} + +export function timeBucketRange( + label: unknown, + interval: string | undefined, + inferredDurationMs?: number, +): TimeRange | null { + if (typeof label !== 'string') return null + const start = new Date(label.replace(' ', 'T')) + if (Number.isNaN(start.getTime())) return null + + const duration = interval ? intervalDuration(interval) : inferredDurationMs ?? intervalDuration(undefined) + const from = start.toISOString() + const to = new Date(start.getTime() + duration - 1).toISOString() + return { from, to, interval: interval === '1d' || interval === '1w' ? 'day' : 'hour' } +} + +function intervalDuration(interval: string | undefined): number { + switch (interval) { + case '1m': return 60_000 + case '5m': return 5 * 60_000 + case '15m': return 15 * 60_000 + case '1d': return 24 * 60 * 60_000 + case '1w': return 7 * 24 * 60 * 60_000 + case '1h': + default: return 60 * 60_000 + } +} diff --git a/frontend/src/features/dashboard/utils/integration-dashboard-routing.test.ts b/frontend/src/features/dashboard/utils/integration-dashboard-routing.test.ts new file mode 100644 index 0000000000..f462b127db --- /dev/null +++ b/frontend/src/features/dashboard/utils/integration-dashboard-routing.test.ts @@ -0,0 +1,28 @@ +import { describe, expect, it } from 'vitest' +import { getIntegrationDashboardSearch } from './integration-dashboard-routing' + +describe('integration dashboard routing', () => { + it('opens the dashboard gallery filtered to Windows dashboards', () => { + expect(getIntegrationDashboardSearch({ + moduleName: 'WINDOWS_AGENT', + dataType: 'wineventlog', + name: 'Windows Agent', + })).toBe('Windows') + }) + + it('uses a broad Linux filter so multiple related dashboards remain visible', () => { + expect(getIntegrationDashboardSearch({ + moduleName: 'LINUX_AGENT', + dataType: 'linux', + name: 'Linux Agent', + })).toBe('Linux') + }) + + it('filters other integrations by their display name', () => { + expect(getIntegrationDashboardSearch({ + moduleName: 'NETFLOW', + dataType: 'netflow', + name: 'NetFlow Exporter', + })).toBe('NetFlow Exporter') + }) +}) diff --git a/frontend/src/features/dashboard/utils/integration-dashboard-routing.ts b/frontend/src/features/dashboard/utils/integration-dashboard-routing.ts new file mode 100644 index 0000000000..1cca151e5f --- /dev/null +++ b/frontend/src/features/dashboard/utils/integration-dashboard-routing.ts @@ -0,0 +1,13 @@ +import type { Integration } from '@/features/integrations/types' + +export function getIntegrationDashboardSearch( + integration: Pick, +): string { + const identity = `${integration.moduleName ?? ''} ${integration.dataType ?? ''} ${integration.name}`.toLowerCase() + + if (identity.includes('windows') || identity.includes('wineventlog')) return 'Windows' + if (identity.includes('linux')) return 'Linux' + if (identity.includes('macos') || identity.includes('mac os')) return 'macOS' + + return integration.name +} diff --git a/frontend/src/features/dashboard/utils/spec.test.ts b/frontend/src/features/dashboard/utils/spec.test.ts index 2ada10ceae..447d7ec7dc 100644 --- a/frontend/src/features/dashboard/utils/spec.test.ts +++ b/frontend/src/features/dashboard/utils/spec.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest' -import { builderToSpec, resultToRows, specIsComplete } from './spec' +import { builderToSpec, normalizeSpecDataType, resultToRows, specChartFor, specIsComplete } from './spec' import { makeInitialBuilder } from './builder-config' import type { BuilderState, QueryResult, VizSpec } from '@/features/dashboard/types' @@ -12,6 +12,27 @@ function builder(patch: Partial): BuilderState { } describe('the question a widget asks', () => { + it('uses the canonical Windows agent data type for log queries', () => { + const spec: VizSpec = { + dataset: 'logs', + dataType: 'windows', + chart: 'metric', + metric: { agg: 'count' }, + } + expect(normalizeSpecDataType(spec).dataType).toBe('wineventlog') + expect(spec.dataType).toBe('windows') + }) + + it('does not rewrite data types for another dataset', () => { + const spec: VizSpec = { + dataset: 'alerts', + dataType: 'windows', + chart: 'metric', + metric: { agg: 'count' }, + } + expect(normalizeSpecDataType(spec)).toBe(spec) + }) + it('counts records, because the store does nothing else', () => { const spec = builderToSpec(builder({ chartType: 'metric' })) expect(spec).toMatchObject({ dataset: 'logs', chart: 'metric', metric: { agg: 'count' } }) @@ -36,6 +57,14 @@ describe('the question a widget asks', () => { expect(spec).toMatchObject({ chart: 'table', columns: ['name', 'severity'] }) }) + it('builds a table of top values when table breakdown is set to a field', () => { + const spec = builderToSpec( + builder({ chartType: 'table', breakdown: 'field', dimension: 'log.eventCode' }) + ) + expect(spec).toMatchObject({ chart: 'category', dimension: 'log.eventCode' }) + expect(specChartFor('table', 'field')).toBe('category') + }) + it('translates the filter vocabulary into the store operators', () => { const spec = builderToSpec( builder({ diff --git a/frontend/src/features/dashboard/utils/spec.ts b/frontend/src/features/dashboard/utils/spec.ts index 8ac91e1330..0229ebb7f1 100644 --- a/frontend/src/features/dashboard/utils/spec.ts +++ b/frontend/src/features/dashboard/utils/spec.ts @@ -2,7 +2,6 @@ import { flattenDoc } from '@/shared/lib/flatten' import type { BuilderState, ChartTypeId, - FilterOperatorId, FilterRow, FilterType, IntervalId, @@ -23,24 +22,30 @@ import type { // The filter vocabulary the UI speaks, in the store's own words. Anchored // matching is kept apart from "contains" because a prefix is not the same // question, and answering one as the other returns records nobody asked for. -const OPS: Record = { +const OPS: Record = { IS: 'eq', IS_NOT: 'not_eq', IS_ONE_OF_TERMS: 'in', + IS_NOT_ONE_OF_TERMS: 'not_in', IS_GREATER_THAN: 'gt', + IS_GREATER_THAN_OR_EQUALS: 'gte', + IS_LESS_THAN: 'lt', IS_LESS_THAN_OR_EQUALS: 'lte', IS_BETWEEN: 'between', + IS_NOT_BETWEEN: 'not_between', CONTAIN: 'contains', DOES_NOT_CONTAIN: 'not_contains', START_WITH: 'starts_with', + DOES_NOT_START_WITH: 'not_starts_with', ENDS_WITH: 'ends_with', + DOES_NOT_END_WITH: 'not_ends_with', EXIST: 'exists', DOES_NOT_EXIST: 'not_exists', } const VALUELESS = new Set(['exists', 'not_exists']) -function toSpecFilter(field: string, operator: FilterOperatorId, value: unknown): SpecFilter | null { +function toSpecFilter(field: string, operator: FilterType['operator'], value: unknown): SpecFilter | null { const op = OPS[operator] if (!op || !field.trim()) return null if (VALUELESS.has(op)) return { field, op } @@ -64,15 +69,25 @@ export function filterTypesToSpec(filters: FilterType[]): SpecFilter[] { } /** - * Which shape of answer a chart type needs. A metric is one number, a table is - * records; everything else plots a series, over time or over the top values of - * a field. The map is drawn from records, so it asks for them. + * Older shipped dashboard definitions use `windows`, while Windows agent + * events are indexed under the canonical `wineventlog` data type. + */ +export function normalizeSpecDataType(spec: VizSpec): VizSpec { + if (spec.dataset !== 'logs' || spec.dataType !== 'windows') return spec + return { ...spec, dataType: 'wineventlog' } +} + +/** + * Which shape of answer a chart type needs. A table can show raw records or + * grouped top values; everything else plots a series over time or categories. + * The map is drawn from records, so it asks for them. */ export function specChartFor(chartType: ChartTypeId, breakdown: BuilderState['breakdown']): SpecChart { switch (chartType) { case 'metric': return 'metric' case 'table': + return breakdown === 'field' ? 'category' : 'table' case 'list': case 'region_map': case 'text': @@ -109,7 +124,7 @@ export function builderToSpec(builder: BuilderState): VizSpec { export function specToBuilder(spec: VizSpec): Partial { return { dataset: spec.dataset ?? '', - breakdown: spec.chart === 'time' ? 'time' : 'field', + breakdown: spec.chart === 'time' || spec.chart === 'table' ? 'time' : 'field', dimension: spec.dimension ?? null, interval: (spec.interval ?? '') as IntervalId, limit: spec.limit ?? null, diff --git a/frontend/src/features/integrations/components/AddCustomIntegrationCard.tsx b/frontend/src/features/integrations/components/AddCustomIntegrationCard.tsx index 2b86d244ee..29ae8f84c9 100644 --- a/frontend/src/features/integrations/components/AddCustomIntegrationCard.tsx +++ b/frontend/src/features/integrations/components/AddCustomIntegrationCard.tsx @@ -11,7 +11,7 @@ export function AddCustomIntegrationCard({ onClick }: AddCustomIntegrationCardPr return ( + + {i.logFilterField && ( + setLogFilterValue(event.target.value)} + aria-label={i.logFilterField === 'dataSource' ? 'Log sender' : 'NetFlow exporter address'} + placeholder={i.logFilterField === 'dataSource' ? 'Sender (dataSource)' : 'Exporter address'} + className="h-9 min-w-40 rounded-md border border-border bg-background px-3 text-xs text-foreground" + /> )} + + {showInstall && } +
+ {isWindows ? ( +

+ Configure the product to write to the Windows Event Log. Expected provider:{' '} + {provider || 'product-specific'}. Expected channel:{' '} + {eventChannel || 'product-specific'}. Confirm both values on a sample event + before relying on the filter. +

+ ) : ( +

+ Configure the product to send logs to journald or syslog. Expected journal identifier:{' '} + {provider || 'product-specific'}. +

+ )} + {integration.guideSetting && ( +

{integration.guideSetting}

+ )} +
+

+ {t('datasources.drawer.viewLogs')} opens Log Explorer with this integration's technology filters. +

+ + ) +} + +function WindowsEventLogGuide({ integration }: { integration: Integration }) { + return ( + + ) +} + +function LinuxJournalGuide({ integration }: { integration: Integration }) { + return ( + + ) +} diff --git a/frontend/src/features/integrations/components/setup/CustomSetup.tsx b/frontend/src/features/integrations/components/setup/CustomSetup.tsx index 01cfe0c182..962e5cc984 100644 --- a/frontend/src/features/integrations/components/setup/CustomSetup.tsx +++ b/frontend/src/features/integrations/components/setup/CustomSetup.tsx @@ -20,7 +20,7 @@ export function CustomSetup({ integration }: { integration: Integration }) { const { t } = useTranslation() const name = integration.dataType || integration.moduleName?.toLowerCase() || 'my-integration' - const [selection, setSelection] = useState({ proto: 'udp', port: '7100', isMaster: false }) + const [selection, setSelection] = useState({ proto: 'udp', port: '7100' }) const { proto, port } = selection const isHttp = proto === 'http' || proto === 'https' diff --git a/frontend/src/features/integrations/components/setup/collector/CollectorGuideSection.tsx b/frontend/src/features/integrations/components/setup/collector/CollectorGuideSection.tsx index f7eb040f18..d5bf205db9 100644 --- a/frontend/src/features/integrations/components/setup/collector/CollectorGuideSection.tsx +++ b/frontend/src/features/integrations/components/setup/collector/CollectorGuideSection.tsx @@ -10,7 +10,7 @@ export function CollectorGuideSection({ section }: CollectorGuideSectionProps) { const { t } = useTranslation() return ( -
+

{t(section.bodyKey)}

diff --git a/frontend/src/features/integrations/components/setup/collector/CollectorSetup.tsx b/frontend/src/features/integrations/components/setup/collector/CollectorSetup.tsx index 7c7a1da5ba..c290df5fda 100644 --- a/frontend/src/features/integrations/components/setup/collector/CollectorSetup.tsx +++ b/frontend/src/features/integrations/components/setup/collector/CollectorSetup.tsx @@ -2,6 +2,7 @@ import type { Integration } from '@/features/integrations/types' import { getCollector } from './registry' import { CollectorGuideSection } from './CollectorGuideSection' import { GenericCollectorGuide } from './GenericCollectorGuide' +import { ChannelGuide } from '@/features/integrations/components/setup/ChannelGuide' import './collectors' interface CollectorSetupProps { @@ -11,6 +12,14 @@ interface CollectorSetupProps { export function CollectorSetup({ integration }: CollectorSetupProps) { const collector = getCollector(integration.moduleName ?? integration.name) + if ( + integration.guideChannel && + (integration.guideOnly || !collector || integration.guideChannel === 'windows-agent' || integration.guideChannel === 'linux-agent' || + integration.guideChannel === 'netflow' || integration.moduleName === 'SYSLOG') + ) { + return + } + if (!collector) { return } diff --git a/frontend/src/features/integrations/components/setup/collector/ForwarderGuide.tsx b/frontend/src/features/integrations/components/setup/collector/ForwarderGuide.tsx index 19bc47b0ea..a0beb172b1 100644 --- a/frontend/src/features/integrations/components/setup/collector/ForwarderGuide.tsx +++ b/frontend/src/features/integrations/components/setup/collector/ForwarderGuide.tsx @@ -23,7 +23,6 @@ import { availableProtosFor, defaultPortFor, type Proto } from './protoCatalog' // const SHARED = 'integrations.setup.collector.forwarder' -const LOGINPUT_PORT = '50052' // The Forwarder runs on the UTMStack host; default the address to where the // user is browsing from (stripped of any port). In MSSP mode, when the operator @@ -46,7 +45,7 @@ export function forwarderHost(): string { // don't need to change their imports. export { TONES, FlowNode, FlowEdge } from '@/shared/components/ui/flow-diagram' -function FlowDiagram({ source, port, isMaster }: { source: string; port: string; isMaster: boolean }) { +function FlowDiagram({ source, port }: { source: string; port: string }) { const { t } = useTranslation() return (
@@ -57,17 +56,13 @@ function FlowDiagram({ source, port, isMaster }: { source: string; port: string; tone="neutral" /> - {!isMaster && ( - <> - } - title={t(`${SHARED}.diagram.forwarder`)} - sub={t(`${SHARED}.diagram.forwarderSub`, { port })} - tone="accent" - /> - - - )} + } + title={t(`${SHARED}.diagram.forwarder`)} + sub={t(`${SHARED}.diagram.forwarderSub`, { port })} + tone="accent" + /> + } title={t(`${SHARED}.diagram.utmstack`)} @@ -78,59 +73,6 @@ function FlowDiagram({ source, port, isMaster }: { source: string; port: string; ) } -// ── Master command (POST endpoint + auth header) ───────────────────────────── - -function MasterCommandSection(_: { selection: RemoteEnableSelection }) { - const { t } = useTranslation() - const [tab, setTab] = useState<'simple' | 'batch'>('simple') - const host = forwarderHost() - const simpleCmd = `curl -k -X POST https://${host}:${LOGINPUT_PORT}/v1/ingest \\ - -H "Content-Type: application/json" \\ - -H "Utm-Api-Key: " \\ - -d '{ - "dataType": "", - "dataSource": "", - "timestamp": "", - "raw": "" - }'` - const batchCmd = `curl -X POST https://${host}:${LOGINPUT_PORT}/v1/ingest \\ - -H "Content-Type: application/json" \\ - -H "Utm-Api-Key: " \\ - -d '{ - "logs": [ - { - "dataType": "", - "dataSource": "", - "timestamp": "", - "raw": "" - }, - { - "dataType": "", - "dataSource": "", - "timestamp": "", - "raw": "" - } - ] - }'` - return ( -
-

{t(`${SHARED}.instanceHeader.body`)}

-
- {(['simple', 'batch'] as const).map((v) => ( - - ))} -
- -
- ) -} - // ── Manual (CLI) command — collapsible, reactive to the RemoteEnablePanel ──── // selection above it. Replaces what used to be a fixed "Optional — Enable TLS // encryption" block: the command shown here always matches whatever @@ -240,8 +182,6 @@ export function ForwarderGuide({ const [selection, setSelection] = useState(() => ({ proto: initialProto, port: defaultPortFor(sourceType, initialProto) || port, - collector:null, - isMaster: false, apiKey: null, })) @@ -264,7 +204,7 @@ export function ForwarderGuide({ { header || (

{t(`${SHARED}.intro.body`, { source })}

- +

{t(`${SHARED}.noInstall`, { source })}

@@ -280,18 +220,13 @@ export function ForwarderGuide({ onRequestAddCollector={handleAddCollector} /> - {selection.isMaster && } - - {/* Vendor-specific steps (device-side config). Hidden in master mode — it targets the forwarder, not master. */} - {!selection.isMaster && children} + {children} - {!selection.isMaster && ( -
- setInstallOpen((o) => !o)} /> -
- )} - {!selection.isMaster && } - {!selection.isMaster && } +
+ setInstallOpen((o) => !o)} /> +
+ +
) } diff --git a/frontend/src/features/integrations/components/setup/collector/GenericCollectorGuide.tsx b/frontend/src/features/integrations/components/setup/collector/GenericCollectorGuide.tsx index e5f9ae4b6e..d8147fbdb9 100644 --- a/frontend/src/features/integrations/components/setup/collector/GenericCollectorGuide.tsx +++ b/frontend/src/features/integrations/components/setup/collector/GenericCollectorGuide.tsx @@ -1,7 +1,4 @@ -import { useTranslation } from 'react-i18next' -import { ExternalLink } from 'lucide-react' -import { Section } from '@/features/integrations/components/ui/Section' -import { CodeBlock } from '@/features/integrations/components/ui/CodeBlock' +import { ChannelGuide } from '@/features/integrations/components/setup/ChannelGuide' import type { Integration } from '@/features/integrations/types' interface GenericCollectorGuideProps { @@ -9,50 +6,5 @@ interface GenericCollectorGuideProps { } export function GenericCollectorGuide({ integration: i }: GenericCollectorGuideProps) { - const { t } = useTranslation() - - return ( -
-
-

- {t('integrations.setup.collector.howItWorksBody', { name: i.name })} -

-
- -
-

- {t('integrations.setup.collector.step1Hint', { name: i.name })} -

- -
- -
-

- {t('integrations.setup.collector.step2Hint', { name: i.name, port: i.defaultPort ?? '514/udp' })} -

- - - {t('integrations.setup.collector.vendorDocs')} - -
- -
-

- {t('integrations.setup.collector.step3Body', { - name: i.name, - source: i.name.toLowerCase().replace(/\s/g, '-'), - })} -

-
-
- ) + return } diff --git a/frontend/src/features/integrations/components/setup/collector/RemoteEnablePanel.tsx b/frontend/src/features/integrations/components/setup/collector/RemoteEnablePanel.tsx index 56019b6e8c..2a48932807 100644 --- a/frontend/src/features/integrations/components/setup/collector/RemoteEnablePanel.tsx +++ b/frontend/src/features/integrations/components/setup/collector/RemoteEnablePanel.tsx @@ -1,26 +1,23 @@ import { useEffect, useRef, useState } from 'react' import { useTranslation } from 'react-i18next' -import { useNavigate } from 'react-router-dom' import { toast } from 'sonner' -import { Check, ChevronDown, Copy, KeyRound, Loader2, Lock, Plus, ShieldAlert, ShieldCheck, Upload } from 'lucide-react' +import { Check, ChevronDown, Copy, Loader2, Lock, Plus, ShieldAlert, ShieldCheck, Upload } from 'lucide-react' import { cn } from '@/shared/lib/utils' import { Button } from '@/shared/components/ui/button' import { Section } from '@/features/integrations/components/ui/Section' import { useAuth } from '@/features/auth/services/auth.context' -import { useBilling } from '@/features/billing/services/billing.context' import { useCollectorIntegration } from '@/features/integrations/hooks/useCollectorIntegration' import type { ForwarderCollector } from '@/features/integrations/types' import { defaultPortFor, httpDefaultsFor, type HttpAuth, type Proto } from './protoCatalog' const ROOT = 'integrations.setup.remoteEnable' -const MASTER_ID = -1 const ADD_COLLECTOR_ID = -2 export interface RemoteEnableSelection { proto: Proto port: string - isMaster: boolean - collector?:ForwarderCollector|null + /** The Forwarder the user picked, when any (used by custom integrations to show its IP). */ + collector?: ForwarderCollector | null } interface RemoteEnablePanelProps { @@ -141,11 +138,8 @@ export function RemoteEnablePanel({ onRequestAddCollector, }: RemoteEnablePanelProps) { const { t } = useTranslation() - const navigate = useNavigate() const { hasPermission } = useAuth() const canManage = hasPermission('integrations.write') - const { license } = useBilling() - const canUseMaster = license?.edition === 'enterprise' || !!license?.mssp const { forwarders, setDataType, setCertificates, tlsStatus, dataTypeConfig } = useCollectorIntegration() @@ -173,14 +167,6 @@ export function RemoteEnablePanel({ const [keyPem, setKeyPem] = useState(null) const [caPem, setCaPem] = useState(null) - const isMaster = collectorId === MASTER_ID - const masterOption: ForwarderCollector = { - id: MASTER_ID, - hostname: t(`${ROOT}.sendToInstance`), - ip: '', - version: '', - status: 'online', - } const addCollectorOption: ForwarderCollector = { id: ADD_COLLECTOR_ID, hostname: t(`${ROOT}.addCollector`), @@ -188,38 +174,30 @@ export function RemoteEnablePanel({ version: '', status: 'online', } - const pickerOptions = [masterOption, ...allForwarders, addCollectorOption] + const pickerOptions = [...allForwarders, addCollectorOption] const selectedForwarder = allForwarders.find((f) => f.id === collectorId) ?? null - const isSelectedForwarderOffline = !isMaster && selectedForwarder != null && selectedForwarder.status !== 'online' + const isSelectedForwarderOffline = selectedForwarder != null && selectedForwarder.status !== 'online' // Offline is a wait; this is not. The forwarder discards what this panel // sends and answers nothing, so saving would look like it worked. - const isSelectedForwarderLocked = !isMaster && selectedForwarder?.noRemoteControl === true + const isSelectedForwarderLocked = selectedForwarder?.noRemoteControl === true useEffect(() => { if (collectorId == null) return - if (collectorId === MASTER_ID) return if (allForwarders.some((f) => f.id === collectorId)) return setCollectorId(null) }, [allForwarders, collectorId]) useEffect(() => { - const selectedForwarder = allForwarders.find((f) => f.id === collectorId) ?? null - - onSelectionChange?.({ - collector:selectedForwarder, - proto: isMaster ? 'https' : proto, - port, - isMaster, - }) - }, [proto, port, isMaster, onSelectionChange,collectorId]) + onSelectionChange?.({ proto, port, collector: selectedForwarder }) + }, [proto, port, selectedForwarder, onSelectionChange]) const isHttp = proto === 'http' || proto === 'https' const needsCerts = proto === 'tls' || proto === 'https' - const tlsStatusQuery = tlsStatus(needsCerts && !isMaster ? collectorId : null) + const tlsStatusQuery = tlsStatus(needsCerts ? collectorId : null) - const currentConfig = dataTypeConfig(isMaster ? null : collectorId, dataType) - const isSyncingConfig = !isMaster && collectorId != null && currentConfig.isLoading + const currentConfig = dataTypeConfig(collectorId, dataType) + const isSyncingConfig = collectorId != null && currentConfig.isLoading const isLiveOnSelectedForwarder = !!(currentConfig.data?.configured && currentConfig.data?.enabled) const isConfigLocked = isSyncingConfig || isLiveOnSelectedForwarder @@ -325,18 +303,18 @@ export function RemoteEnablePanel({

{t(`${ROOT}.body`)}

- {!forwarders.isLoading && allForwarders.length === 0 && !isMaster && ( + {!forwarders.isLoading && allForwarders.length === 0 && (

{t(`${ROOT}.noCollectors`)}

)} -
+
- - {isMaster && ( -
-

{t(`${ROOT}.apiKeyHint`)}

-
- {!isMaster && (<> {isSyncingConfig ? (
@@ -593,7 +550,6 @@ export function RemoteEnablePanel({ {t(`${ROOT}.disableButton`)}
- )}
) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/aix.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/aix.tsx index c6383e0b4e..a25739484f 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/aix.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/aix.tsx @@ -27,7 +27,7 @@ function AixGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'AIX', - matches: (n) => n.includes('aix'), + matches: (n) => n === 'aix' || n === 'ibm-aix', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/as400.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/as400.tsx index 6290420b7e..ff52728dc0 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/as400.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/as400.tsx @@ -132,7 +132,7 @@ function AS400Guide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'AS_400', - matches: (n) => n === 'as400' || n === 'as_400', + matches: (n) => n === 'as400' || n === 'as_400' || n === 'ibm i (as/400)', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/assetScanner.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/assetScanner.tsx deleted file mode 100644 index 0b06fa659c..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/assetScanner.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { registerCollector } from '../registry' - -const ROOT = 'integrations.setup.collector.assetScanner' - -registerCollector({ - getName: () => 'ASSET_MANAGEMENT', - matches: (n) => n === 'asset_scanner' || n === 'asset_management', - sections: [ - { - id: 'overview', - titleKey: `${ROOT}.sections.overview.title`, - bodyKey: `${ROOT}.sections.overview.body`, - }, - { - id: 'agent-requirement', - titleKey: `${ROOT}.sections.agentRequirement.title`, - bodyKey: `${ROOT}.sections.agentRequirement.body`, - }, - { - id: 'activate', - titleKey: `${ROOT}.sections.activate.title`, - bodyKey: `${ROOT}.sections.activate.body`, - }, - ], - render: () => null, -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/awsTrafficMirror.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/awsTrafficMirror.tsx deleted file mode 100644 index 94b4efaddd..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/awsTrafficMirror.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { registerCollector } from '../registry' -import { CollectorEndpointInfo } from '../CollectorEndpointInfo' - -const ROOT = 'integrations.setup.collector.awsTrafficMirror' - -registerCollector({ - getName: () => 'AWS_TRAFFIC_MIRROR', - sections: [ - { - id: 'create-target', - titleKey: `${ROOT}.sections.createTarget.title`, - bodyKey: `${ROOT}.sections.createTarget.body`, - }, - { - id: 'create-filter', - titleKey: `${ROOT}.sections.createFilter.title`, - bodyKey: `${ROOT}.sections.createFilter.body`, - }, - { - id: 'create-session', - titleKey: `${ROOT}.sections.createSession.title`, - bodyKey: `${ROOT}.sections.createSession.body`, - }, - { - id: 'iam-prerequisite', - titleKey: `${ROOT}.sections.iamPrerequisite.title`, - bodyKey: `${ROOT}.sections.iamPrerequisite.body`, - }, - { - id: 'activate', - titleKey: `${ROOT}.sections.activate.title`, - bodyKey: `${ROOT}.sections.activate.body`, - }, - ], - render: (m) => , -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/cisco.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/cisco.tsx index 6a220cd2e5..f59283bf91 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/cisco.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/cisco.tsx @@ -31,7 +31,7 @@ logging trap informational`} /> registerCollector({ getName: () => 'CISCO', - matches: (n) => n.includes('cisco') && !n.includes('switch') && !n.includes('meraki') && !n.includes('firepower'), + matches: (n) => n === 'cisco' || n === 'cisco_asa' || n === 'firewall_cisco_asa' || n === 'firewall-cisco-asa', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/ciscoFirepower.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/ciscoFirepower.tsx index b3e67eaeaf..78961426ed 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/ciscoFirepower.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/ciscoFirepower.tsx @@ -27,7 +27,7 @@ function CiscoFirepowerGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'FIRE_POWER', - matches: (n) => n.includes('firepower') || (n.includes('fire') && n.includes('power')), + matches: (n) => n === 'firepower' || n === 'cisco_firepower' || n === 'fire_power', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/ciscoMeraki.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/ciscoMeraki.tsx index e9f8b78eb6..d0ba9abc51 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/ciscoMeraki.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/ciscoMeraki.tsx @@ -27,7 +27,7 @@ function CiscoMerakiGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'MERAKI', - matches: (n) => n.includes('meraki'), + matches: (n) => n === 'meraki' || n === 'cisco_meraki' || n === 'firewall_meraki', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/ciscoSwitch.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/ciscoSwitch.tsx index 9bfdf09ac0..e2147ae8b3 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/ciscoSwitch.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/ciscoSwitch.tsx @@ -31,7 +31,7 @@ logging trap informational`} /> registerCollector({ getName: () => 'CISCO_SWITCH', - matches: (n) => n.includes('cisco') && n.includes('switch'), + matches: (n) => n === 'cisco_switch' || n === 'cisco-switch', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/deceptivebytes.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/deceptivebytes.tsx index d761a1fa25..2c4ead7b3d 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/deceptivebytes.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/deceptivebytes.tsx @@ -27,7 +27,7 @@ function DeceptiveBytesGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'DECEPTIVE_BYTES', - matches: (n) => n.includes('deceptive'), + matches: (n) => n === 'deceptivebytes' || n === 'deceptive_bytes' || n === 'deceptive-bytes', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/eset.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/eset.tsx index 477e664959..5d8b431d41 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/eset.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/eset.tsx @@ -47,7 +47,7 @@ function EsetGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'ESET', - matches: (n) => n.includes('eset'), + matches: (n) => n === 'eset' || n === 'antivirus-esmc-eset', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/fileIntegrity.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/fileIntegrity.tsx deleted file mode 100644 index 020407d0f4..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/fileIntegrity.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { registerCollector } from '../registry' -import { CollectorEndpointInfo } from '../CollectorEndpointInfo' - -const ROOT = 'integrations.setup.collector.fileIntegrity' -const IMG = '/integrations/guides/collector/file-integrity' - -registerCollector({ - getName: () => 'FILE_INTEGRITY', - matches: (n) => n === 'file_classification' || n === 'file_integrity', - sections: [ - { - id: 'enable-audit-policy', - titleKey: `${ROOT}.sections.enableAuditPolicy.title`, - bodyKey: `${ROOT}.sections.enableAuditPolicy.body`, - image: `${IMG}/audit-file-system-group-policy.png`, - }, - { - id: 'configure-folder-auditing', - titleKey: `${ROOT}.sections.configureFolderAuditing.title`, - bodyKey: `${ROOT}.sections.configureFolderAuditing.body`, - }, - { - id: 'verify-events', - titleKey: `${ROOT}.sections.verifyEvents.title`, - bodyKey: `${ROOT}.sections.verifyEvents.body`, - }, - { - id: 'activate', - titleKey: `${ROOT}.sections.activate.title`, - bodyKey: `${ROOT}.sections.activate.body`, - }, - ], - render: (m) => , -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/filebeat.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/filebeat.tsx deleted file mode 100644 index 2e70ef42e2..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/filebeat.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { registerCollector } from '../registry' -import { CollectorEndpointInfo } from '../CollectorEndpointInfo' - -const ROOT = 'integrations.setup.collector.filebeat' -const IMG = '/integrations/guides/collector/filebeat' - -registerCollector({ - getName: () => 'LINUX_LOGS', - matches: (n) => n === 'filebeat' || n === 'linux_logs', - sections: [ - { - id: 'install-rsyslog', - titleKey: `${ROOT}.sections.installRsyslog.title`, - bodyKey: `${ROOT}.sections.installRsyslog.body`, - }, - { - id: 'configure-rsyslog', - titleKey: `${ROOT}.sections.configureRsyslog.title`, - bodyKey: `${ROOT}.sections.configureRsyslog.body`, - }, - { - id: 'restart-rsyslog', - titleKey: `${ROOT}.sections.restartRsyslog.title`, - bodyKey: `${ROOT}.sections.restartRsyslog.body`, - }, - { - id: 'enable-collector', - titleKey: `${ROOT}.sections.enableCollector.title`, - bodyKey: `${ROOT}.sections.enableCollector.body`, - image: `${IMG}/log-collector.png`, - }, - ], - render: (m) => , -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/fortigate.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/fortigate.tsx index 44be9098f1..6de6a8a78a 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/fortigate.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/fortigate.tsx @@ -37,7 +37,7 @@ end`} /> registerCollector({ getName: () => 'FORTIGATE', - matches: (n) => n.includes('fortigate') || n.includes('fortinet'), + matches: (n) => n === 'fortigate' || n === 'firewall_fortigate_traffic', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/fortiweb.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/fortiweb.tsx index 50b6458af4..468871acc1 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/fortiweb.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/fortiweb.tsx @@ -44,7 +44,7 @@ end`} /> registerCollector({ getName: () => 'FORTIWEB', - matches: (n) => n.includes('fortiweb'), + matches: (n) => n === 'fortiweb' || n === 'firewall_fortiweb', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/iis.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/iis.tsx deleted file mode 100644 index ffac35f0ed..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/iis.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import { registerCollector } from '../registry' -import { CollectorEndpointInfo } from '../CollectorEndpointInfo' - -const ROOT = 'integrations.setup.collector.iis' -const IMG = '/integrations/guides/collector/iis' - -registerCollector({ - getName: () => 'IIS', - sections: [ - { - id: 'enable-module', - titleKey: `${ROOT}.sections.enableModule.title`, - bodyKey: `${ROOT}.sections.enableModule.body`, - }, - { - id: 'configure-module', - titleKey: `${ROOT}.sections.configureModule.title`, - bodyKey: `${ROOT}.sections.configureModule.body`, - image: `${IMG}/config-iis-windows.png`, - }, - { - id: 'activate', - titleKey: `${ROOT}.sections.activate.title`, - bodyKey: `${ROOT}.sections.activate.body`, - }, - ], - render: (m) => , -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/index.ts b/frontend/src/features/integrations/components/setup/collector/collectors/index.ts index 89ccbb99a1..94f1458ee3 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/index.ts +++ b/frontend/src/features/integrations/components/setup/collector/collectors/index.ts @@ -13,7 +13,6 @@ import './bitdefender' import './eset' import './kaspersky' import './sophos' -import './webroot' import './sentinelOne' import './deceptivebytes' import './fortigate' @@ -26,22 +25,5 @@ import './suricata' import './office365' import './office365Graph' import './github' -import './salesforce' -import './iis' -import './filebeat' -import './json' -import './ldap' import './oracle' -import './vulnerabilities' -import './assetScanner' -import './fileIntegrity' -import './socAi' import './utmstack' -import './windowsFaa' -import './awsBeanstalk' -import './awsFargate' -import './awsIamUser' -import './awsLambda' -import './awsSqlServer' -import './awsPostgresql' -import './awsTrafficMirror' diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/json.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/json.tsx deleted file mode 100644 index ae5f155515..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/json.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { useTranslation } from 'react-i18next' -import { Section } from '@/features/integrations/components/ui/Section' -import { CodeBlock } from '@/features/integrations/components/ui/CodeBlock' -import { registerCollector } from '../registry' - -const ROOT = 'integrations.setup.collector.json' - -function JsonEndpoint() { - const { t } = useTranslation() - const host = typeof window !== 'undefined' - ? window.location.host.split(':')[0] - : 'utmstack.local' - - return ( -
-

{t(`${ROOT}.endpoint.hint`)}

- - -{ - "source": "my-app", - "events": [ { "ts": "2026-06-10T12:34:56Z", "level": "info", "msg": "hello" } ] -}`} - /> -
- ) -} - -registerCollector({ - getName: () => 'JSON', - sections: [ - { - id: 'overview', - titleKey: `${ROOT}.sections.overview.title`, - bodyKey: `${ROOT}.sections.overview.body`, - }, - { - id: 'auth', - titleKey: `${ROOT}.sections.auth.title`, - bodyKey: `${ROOT}.sections.auth.body`, - }, - ], - render: () => , -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/kaspersky.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/kaspersky.tsx index 1fc2ebfdc6..9acdd59413 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/kaspersky.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/kaspersky.tsx @@ -46,7 +46,7 @@ function KasperskyGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'KASPERSKY', - matches: (n) => n.includes('kaspersky'), + matches: (n) => n === 'kaspersky' || n === 'antivirus-kaspersky', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/ldap.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/ldap.tsx deleted file mode 100644 index b6703eda04..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/ldap.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import { registerCollector } from '../registry' -import { CollectorEndpointInfo } from '../CollectorEndpointInfo' - -const ROOT = 'integrations.setup.collector.ldap' -const IMG = '/integrations/guides/collector/ldap' - -registerCollector({ - getName: () => 'AD_AUDIT', - matches: (n) => n === 'ldap' || n === 'ad_audit', - sections: [ - { - id: 'open-server-manager', - titleKey: `${ROOT}.sections.openServerManager.title`, - bodyKey: `${ROOT}.sections.openServerManager.body`, - image: `${IMG}/picture-1.png`, - }, - { - id: 'add-roles', - titleKey: `${ROOT}.sections.addRoles.title`, - bodyKey: `${ROOT}.sections.addRoles.body`, - image: `${IMG}/picture-2.png`, - }, - { - id: 'select-cert-services', - titleKey: `${ROOT}.sections.selectCertServices.title`, - bodyKey: `${ROOT}.sections.selectCertServices.body`, - image: `${IMG}/picture-3.png`, - }, - { - id: 'install-services', - titleKey: `${ROOT}.sections.installServices.title`, - bodyKey: `${ROOT}.sections.installServices.body`, - image: `${IMG}/picture-4.png`, - }, - { - id: 'configure-ad-cs', - titleKey: `${ROOT}.sections.configureAdCs.title`, - bodyKey: `${ROOT}.sections.configureAdCs.body`, - image: `${IMG}/picture-5.png`, - }, - { - id: 'pick-ca-type', - titleKey: `${ROOT}.sections.pickCaType.title`, - bodyKey: `${ROOT}.sections.pickCaType.body`, - image: `${IMG}/picture-6.png`, - }, - { - id: 'set-validity', - titleKey: `${ROOT}.sections.setValidity.title`, - bodyKey: `${ROOT}.sections.setValidity.body`, - image: `${IMG}/picture-7.png`, - }, - { - id: 'confirm', - titleKey: `${ROOT}.sections.confirm.title`, - bodyKey: `${ROOT}.sections.confirm.body`, - image: `${IMG}/picture-8.png`, - }, - { - id: 'restart', - titleKey: `${ROOT}.sections.restart.title`, - bodyKey: `${ROOT}.sections.restart.body`, - }, - { - id: 'activate', - titleKey: `${ROOT}.sections.activate.title`, - bodyKey: `${ROOT}.sections.activate.body`, - }, - ], - render: (m) => , -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/mikrotik.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/mikrotik.tsx index b11012a732..e69abab62a 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/mikrotik.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/mikrotik.tsx @@ -36,7 +36,7 @@ add action=utmstack topics=account,error,info,warning`} /> registerCollector({ getName: () => 'MIKROTIK', - matches: (n) => n.includes('mikrotik'), + matches: (n) => n === 'mikrotik' || n === 'firewall-mikrotik', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/netflow.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/netflow.tsx index f5b0e6ed7f..0643d177a7 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/netflow.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/netflow.tsx @@ -1,38 +1,9 @@ -import { useTranslation, Trans } from 'react-i18next' import { registerCollector } from '../registry' -import { ForwarderGuide, forwarderHost } from '../ForwarderGuide' -import { Section } from '@/features/integrations/components/ui/Section' -import { CodeBlock } from '@/features/integrations/components/ui/CodeBlock' +import { ChannelGuide } from '@/features/integrations/components/setup/ChannelGuide' import type { Integration } from '@/features/integrations/types' -const ROOT = 'integrations.setup.collector.netflow' -const PORT = '2055' - -function NetflowGuide({ module: _module }: { module: Integration }) { - const { t } = useTranslation() - const host = forwarderHost() - - return ( - -
-

- }} - /> -

- - -interface - ip flow ingress - ip flow egress`} /> -

{t(`${ROOT}.step2.note`)}

-
-
- ) +function NetflowGuide({ module }: { module: Integration }) { + return } registerCollector({ diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/office365.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/office365.tsx index c23e24f765..2d9ccf0b03 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/office365.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/office365.tsx @@ -3,7 +3,7 @@ import { M365Guide } from './M365Guide' registerCollector({ getName: () => 'O365', - matches: (n) => n === 'office365' || n === 'o365' || n.includes('microsoft 365') || n.includes('m365'), + matches: (n) => n === 'office365' || n === 'o365' || n === 'microsoft 365' || n === 'm365', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/oracle.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/oracle.tsx index c91fe427a3..b26e5af2fe 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/oracle.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/oracle.tsx @@ -57,7 +57,7 @@ logger -p local5.info "Test Oracle Alert log message"`} /> registerCollector({ getName: () => 'ORACLE', - matches: (n) => n.includes('oracle'), + matches: (n) => n === 'oracle' || n === 'oracle-database', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/paloalto.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/paloalto.tsx index ac404985e9..90c8eddc68 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/paloalto.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/paloalto.tsx @@ -37,7 +37,7 @@ function PaloAltoGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'PALO_ALTO', - matches: (n) => n.includes('palo'), + matches: (n) => n === 'palo_alto' || n === 'palo-alto' || n === 'firewall-paloalto', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/pfsense.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/pfsense.tsx index 4059b235e2..2bb611e6b2 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/pfsense.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/pfsense.tsx @@ -28,7 +28,7 @@ function PfSenseGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'PFSENSE', - matches: (n) => n.includes('pfsense'), + matches: (n) => n === 'pfsense' || n === 'firewall-pfsense', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/salesforce.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/salesforce.tsx deleted file mode 100644 index fef030b81f..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/salesforce.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import { registerCollector } from '../registry' -import { CollectorEndpointInfo } from '../CollectorEndpointInfo' - -const ROOT = 'integrations.setup.collector.salesforce' -const IMG = '/integrations/guides/collector/salesforce' - -registerCollector({ - getName: () => 'SALESFORCE', - sections: [ - { - id: 'open-setup', - titleKey: `${ROOT}.sections.openSetup.title`, - bodyKey: `${ROOT}.sections.openSetup.body`, - image: `${IMG}/picture-11.png`, - }, - { - id: 'app-manager', - titleKey: `${ROOT}.sections.appManager.title`, - bodyKey: `${ROOT}.sections.appManager.body`, - image: `${IMG}/picture-12.png`, - }, - { - id: 'new-connected-app', - titleKey: `${ROOT}.sections.newConnectedApp.title`, - bodyKey: `${ROOT}.sections.newConnectedApp.body`, - image: `${IMG}/picture-13.png`, - }, - { - id: 'oauth-settings', - titleKey: `${ROOT}.sections.oauthSettings.title`, - bodyKey: `${ROOT}.sections.oauthSettings.body`, - image: `${IMG}/picture-14.png`, - }, - { - id: 'oauth-scopes', - titleKey: `${ROOT}.sections.oauthScopes.title`, - bodyKey: `${ROOT}.sections.oauthScopes.body`, - image: `${IMG}/picture-15.png`, - }, - { - id: 'save', - titleKey: `${ROOT}.sections.save.title`, - bodyKey: `${ROOT}.sections.save.body`, - image: `${IMG}/picture-17.png`, - }, - { - id: 'manage-consumer', - titleKey: `${ROOT}.sections.manageConsumer.title`, - bodyKey: `${ROOT}.sections.manageConsumer.body`, - image: `${IMG}/picture-19.png`, - }, - { - id: 'copy-credentials', - titleKey: `${ROOT}.sections.copyCredentials.title`, - bodyKey: `${ROOT}.sections.copyCredentials.body`, - image: `${IMG}/picture-21.png`, - }, - { - id: 'fill-form', - titleKey: `${ROOT}.sections.fillForm.title`, - bodyKey: `${ROOT}.sections.fillForm.body`, - }, - { - id: 'activate', - titleKey: `${ROOT}.sections.activate.title`, - bodyKey: `${ROOT}.sections.activate.body`, - }, - ], - render: (m) => , -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/sentinelOne.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/sentinelOne.tsx index 61fa8ffaf2..67a79c1dd7 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/sentinelOne.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/sentinelOne.tsx @@ -46,7 +46,7 @@ function SentinelOneGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'SENTINEL_ONE', - matches: (n) => n.includes('sentinel'), + matches: (n) => n === 'sentinel_one' || n === 'sentinel-one' || n === 'antivirus-sentinel-one', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/socAi.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/socAi.tsx deleted file mode 100644 index 83f9ca1a60..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/socAi.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { registerCollector } from '../registry' - -const ROOT = 'integrations.setup.collector.socAi' - -registerCollector({ - getName: () => 'SOC_AI', - sections: [ - { - id: 'overview', - titleKey: `${ROOT}.sections.overview.title`, - bodyKey: `${ROOT}.sections.overview.body`, - }, - { - id: 'choose-provider', - titleKey: `${ROOT}.sections.chooseProvider.title`, - bodyKey: `${ROOT}.sections.chooseProvider.body`, - }, - { - id: 'configure-credentials', - titleKey: `${ROOT}.sections.configureCredentials.title`, - bodyKey: `${ROOT}.sections.configureCredentials.body`, - }, - { - id: 'activate', - titleKey: `${ROOT}.sections.activate.title`, - bodyKey: `${ROOT}.sections.activate.body`, - }, - ], - render: () => null, -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/sonicwall.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/sonicwall.tsx index 5d1f6318e4..29e750435e 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/sonicwall.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/sonicwall.tsx @@ -28,7 +28,7 @@ function SonicWallGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'SONIC_WALL', - matches: (n) => n.includes('sonic'), + matches: (n) => n === 'sonic_wall' || n === 'sonicwall', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/sophos.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/sophos.tsx index 7e2f3058f9..2bf0cf407d 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/sophos.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/sophos.tsx @@ -3,7 +3,7 @@ import { SophosGuide } from './SophosGuide' registerCollector({ getName: () => 'SOPHOS', - matches: (n) => n.includes('sophos') && !n.includes('xg'), + matches: (n) => n === 'sophos' || n === 'sophos_central', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/sophosxg.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/sophosxg.tsx index 37418d96cb..e01ff1d18e 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/sophosxg.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/sophosxg.tsx @@ -28,7 +28,7 @@ function SophosXGGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'SOPHOS_XG', - matches: (n) => n.includes('sophos') && n.includes('xg'), + matches: (n) => n === 'sophos_xg' || n === 'firewall-sophos-xg', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/suricata.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/suricata.tsx index a72991d5a4..6af68f815e 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/suricata.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/suricata.tsx @@ -58,7 +58,7 @@ function SuricataGuide({ module: _module }: { module: Integration }) { registerCollector({ getName: () => 'SURICATA', - matches: (n) => n.includes('suricata'), + matches: (n) => n === 'suricata', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/syslog.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/syslog.tsx index ac88133fcc..7ea0a46aee 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/syslog.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/syslog.tsx @@ -1,5 +1,5 @@ import { registerCollector } from '../registry' -import { CollectorEndpointInfo } from '../CollectorEndpointInfo' +import { ChannelGuide } from '@/features/integrations/components/setup/ChannelGuide' const ROOT = 'integrations.setup.collector.syslog' @@ -10,17 +10,20 @@ registerCollector({ id: 'send-logs', titleKey: `${ROOT}.sections.sendLogs.title`, bodyKey: `${ROOT}.sections.sendLogs.body`, + step: 1, }, { id: 'enable-collector', titleKey: `${ROOT}.sections.enableCollector.title`, bodyKey: `${ROOT}.sections.enableCollector.body`, + step: 2, }, { id: 'activate', titleKey: `${ROOT}.sections.activate.title`, bodyKey: `${ROOT}.sections.activate.body`, + step: 3, }, ], - render: (m) => , + render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/vmware.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/vmware.tsx index 02ae37a000..d8cb6e41cd 100644 --- a/frontend/src/features/integrations/components/setup/collector/collectors/vmware.tsx +++ b/frontend/src/features/integrations/components/setup/collector/collectors/vmware.tsx @@ -43,7 +43,7 @@ esxcli network firewall refresh` registerCollector({ getName: () => 'VMWARE', - matches: (n) => n.includes('vmware') || n.includes('esxi'), + matches: (n) => n === 'vmware' || n === 'esxi' || n === 'vmware-esxi', sections: [], render: (m) => , }) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/vulnerabilities.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/vulnerabilities.tsx deleted file mode 100644 index 230c6ec05e..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/vulnerabilities.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { registerCollector } from '../registry' - -const ROOT = 'integrations.setup.collector.vulnerabilities' - -registerCollector({ - getName: () => 'VULNERABILITIES', - sections: [ - { - id: 'overview', - titleKey: `${ROOT}.sections.overview.title`, - bodyKey: `${ROOT}.sections.overview.body`, - }, - { - id: 'scope', - titleKey: `${ROOT}.sections.scope.title`, - bodyKey: `${ROOT}.sections.scope.body`, - }, - { - id: 'activate', - titleKey: `${ROOT}.sections.activate.title`, - bodyKey: `${ROOT}.sections.activate.body`, - }, - ], - render: () => null, -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/webroot.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/webroot.tsx deleted file mode 100644 index 9136fb360c..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/webroot.tsx +++ /dev/null @@ -1,52 +0,0 @@ -import { registerCollector } from '../registry' -import { CollectorEndpointInfo } from '../CollectorEndpointInfo' - -const ROOT = 'integrations.setup.collector.webroot' -const IMG = '/integrations/guides/collector/webroot' - -registerCollector({ - getName: () => 'WEBROOT', - sections: [ - { - id: 'login', - titleKey: `${ROOT}.sections.login.title`, - bodyKey: `${ROOT}.sections.login.body`, - image: `${IMG}/sites-tab.png`, - }, - { - id: 'open-settings', - titleKey: `${ROOT}.sections.openSettings.title`, - bodyKey: `${ROOT}.sections.openSettings.body`, - image: `${IMG}/click-settings.png`, - }, - { - id: 'api-access', - titleKey: `${ROOT}.sections.apiAccess.title`, - bodyKey: `${ROOT}.sections.apiAccess.body`, - image: `${IMG}/api-access-tab.png`, - }, - { - id: 'create-credential', - titleKey: `${ROOT}.sections.createCredential.title`, - bodyKey: `${ROOT}.sections.createCredential.body`, - image: `${IMG}/create-credential.png`, - }, - { - id: 'note-client-secret', - titleKey: `${ROOT}.sections.noteClientSecret.title`, - bodyKey: `${ROOT}.sections.noteClientSecret.body`, - image: `${IMG}/credential-record.png`, - }, - { - id: 'fill-form', - titleKey: `${ROOT}.sections.fillForm.title`, - bodyKey: `${ROOT}.sections.fillForm.body`, - }, - { - id: 'activate', - titleKey: `${ROOT}.sections.activate.title`, - bodyKey: `${ROOT}.sections.activate.body`, - }, - ], - render: (m) => , -}) diff --git a/frontend/src/features/integrations/components/setup/collector/collectors/windowsFaa.tsx b/frontend/src/features/integrations/components/setup/collector/collectors/windowsFaa.tsx deleted file mode 100644 index 6afb38102a..0000000000 --- a/frontend/src/features/integrations/components/setup/collector/collectors/windowsFaa.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import { registerCollector } from '../registry' -import { CollectorEndpointInfo } from '../CollectorEndpointInfo' - -const ROOT = 'integrations.setup.collector.windowsFaa' -const IMG = '/integrations/guides/collector/windows-faa' - -registerCollector({ - getName: () => 'WINDOWS_FAA', - sections: [ - { - id: 'enable-audit-policy', - titleKey: `${ROOT}.sections.enableAuditPolicy.title`, - bodyKey: `${ROOT}.sections.enableAuditPolicy.body`, - image: `${IMG}/audit-file-system-group-policy.png`, - }, - { - id: 'configure-folder-auditing', - titleKey: `${ROOT}.sections.configureFolderAuditing.title`, - bodyKey: `${ROOT}.sections.configureFolderAuditing.body`, - }, - { - id: 'activate', - titleKey: `${ROOT}.sections.activate.title`, - bodyKey: `${ROOT}.sections.activate.body`, - }, - ], - render: (m) => , -}) diff --git a/frontend/src/features/integrations/components/setup/collector/registry.test.ts b/frontend/src/features/integrations/components/setup/collector/registry.test.ts new file mode 100644 index 0000000000..bcecd4f916 --- /dev/null +++ b/frontend/src/features/integrations/components/setup/collector/registry.test.ts @@ -0,0 +1,15 @@ +import { describe, expect, it } from 'vitest' +import './collectors' +import { getCollector } from './registry' + +describe('collector guide lookup', () => { + it('resolves registered identifiers', () => { + expect(getCollector('CISCO')?.getName()).toBe('CISCO') + expect(getCollector('firewall-cisco-asa')?.getName()).toBe('CISCO') + }) + + it('does not route an unrelated product to a vendor guide by substring', () => { + expect(getCollector('Cisco ISE')).toBeUndefined() + expect(getCollector('Fortinet Analyzer')).toBeUndefined() + }) +}) diff --git a/frontend/src/features/integrations/components/setup/collector/types.ts b/frontend/src/features/integrations/components/setup/collector/types.ts index 6f09a6b01a..521b424cfa 100644 --- a/frontend/src/features/integrations/components/setup/collector/types.ts +++ b/frontend/src/features/integrations/components/setup/collector/types.ts @@ -6,6 +6,8 @@ export interface CollectorSection { titleKey: string bodyKey: string image?: string + /** Step number shown as the numbered badge (matches the Section step prop). */ + step?: number } export interface Collector { diff --git a/frontend/src/features/integrations/components/ui/Section.tsx b/frontend/src/features/integrations/components/ui/Section.tsx index 960c898758..6684aac690 100644 --- a/frontend/src/features/integrations/components/ui/Section.tsx +++ b/frontend/src/features/integrations/components/ui/Section.tsx @@ -21,7 +21,7 @@ export function Section({
{ + it('keeps guide-only catalog entries available with unique stable ids', () => { + const ids = INJECTED_MODULES.map((integration) => integration.id) + expect(new Set(ids).size).toBe(ids.length) + expect(INJECTED_MODULES.map((integration) => integration.moduleName)).toContain('SYSLOG') + }) + + it('provides a demonstrative integration for every supported guide channel', () => { + const channels = new Set(INJECTED_MODULES.map((integration) => integration.guideChannel)) + expect(channels).toEqual(new Set(['syslog', 'netflow', 'windows-agent', 'linux-agent'])) + }) + + it('uses the supported Syslog and NetFlow endpoints', () => { + const syslog = INJECTED_MODULES.find((integration) => integration.moduleName === 'SYSLOG') + const netflow = INJECTED_MODULES.find((integration) => integration.moduleName === 'NETFLOW') + expect(syslog).toMatchObject({ dataType: 'syslog', defaultPort: '7014/tcp', logFilterField: 'dataSource' }) + expect(netflow).toMatchObject({ dataType: 'netflow', defaultPort: '2055/udp', logFilterField: 'log.exporter' }) + }) + + it('filters nested Windows and Linux product fields with is-one-of', () => { + const sqlServer = INJECTED_MODULES.find((integration) => integration.moduleName === 'WINDOWS_SQL_SERVER') + const nginx = INJECTED_MODULES.find((integration) => integration.moduleName === 'NGINX') + expect(sqlServer?.logFilters).toContainEqual({ + field: 'log.providerName', + operator: 'IS_ONE_OF_TERMS', + value: ['MSSQLSERVER'], + }) + expect(nginx?.logFilters).toContainEqual({ + field: 'log.syslogIdentifier', + operator: 'IS_ONE_OF_TERMS', + value: ['nginx'], + }) + }) +}) diff --git a/frontend/src/features/integrations/constants/injectedModules.ts b/frontend/src/features/integrations/constants/injectedModules.ts new file mode 100644 index 0000000000..0ed2d7c01c --- /dev/null +++ b/frontend/src/features/integrations/constants/injectedModules.ts @@ -0,0 +1,129 @@ +import type { + Integration, + DeployKind, + IntegrationGuideChannel, + IntegrationLogFilter, +} from '@/features/integrations/types' + +/** + * Integrations that exist in the product but not in the backend `integrations` + * catalog (that table is seeded once in the DB and this branch cannot write to + * it). They are injected client-side so they show up as catalog cards with their + * setup guides, exactly like the backend-owned ones. + * + * These frontend-owned demonstration entries fill gaps in the backend catalog. + * The API row wins when one exists; otherwise the stable injected entry keeps + * its icon, category, guide channel and log filter available in the grid. + * + * IDs are fixed (not random per render) so React keys and references stay + * stable across refetches. + */ +interface InjectedSeed { + id: string + name: string + moduleName: string + dataType: string + kind: DeployKind + category: string + icon: string + defaultPort: string +} + +const SEEDS: InjectedSeed[] = [ + { id: '6b7f1a2c-3d4e-4f5a-9c6b-7a8d9e0f1a2b', name: 'Nginx', moduleName: 'NGINX', dataType: 'nginx', kind: 'other', category: 'web-server', icon: 'nginx.svg', defaultPort: '514/udp' }, + { id: '1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f', name: 'Apache', moduleName: 'APACHE', dataType: 'apache', kind: 'other', category: 'web-server', icon: 'apache.svg', defaultPort: '514/udp' }, + { id: '2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a', name: 'Apache2', moduleName: 'APACHE2', dataType: 'apache2', kind: 'other', category: 'web-server', icon: 'apache2.svg', defaultPort: '514/udp' }, + { id: '3e4f5a6b-7c8d-4e9f-0a1b-2c3d4e5f6a7b', name: 'IIS', moduleName: 'IIS', dataType: 'iis', kind: 'other', category: 'web-server', icon: 'iis.svg', defaultPort: 'filebeat/local' }, + { id: '4f5a6b7c-8d9e-4f0a-1b2c-3d4e5f6a7b8c', name: 'MySQL', moduleName: 'MYSQL', dataType: 'mysql', kind: 'other', category: 'database', icon: 'mysql.svg', defaultPort: '514/udp' }, + { id: '5a6b7c8d-9e0f-4a1b-2c3d-4e5f6a7b8c9d', name: 'PostgreSQL', moduleName: 'POSTGRESQL', dataType: 'postgresql', kind: 'other', category: 'database', icon: 'postgresql.svg', defaultPort: '514/udp' }, + { id: '6b7c8d9e-0f1a-4b2c-3d4e-5f6a7b8c9d0e', name: 'MongoDB', moduleName: 'MONGODB', dataType: 'mongodb', kind: 'other', category: 'database', icon: 'mongodb.svg', defaultPort: '514/udp' }, + { id: '7c8d9e0f-1a2b-4c3d-4e5f-6a7b8c9d0e1f', name: 'Redis', moduleName: 'REDIS', dataType: 'redis', kind: 'other', category: 'database', icon: 'redis.svg', defaultPort: '514/udp' }, + { id: '8d9e0f1a-2b3c-4d4e-5f6a-7b8c9d0e1f2a', name: 'Elasticsearch', moduleName: 'ELASTICSEARCH', dataType: 'elasticsearch', kind: 'other', category: 'database', icon: 'elasticsearch.svg', defaultPort: '514/udp' }, + { id: '9e0f1a2b-3c4d-4e5f-6a7b-8c9d0e1f2a3b', name: 'Logstash', moduleName: 'LOGSTASH', dataType: 'logstash', kind: 'other', category: 'database', icon: 'logstash.svg', defaultPort: '514/udp' }, + { id: '0f1a2b3c-4d5e-4f6a-7b8c-9d0e1f2a3b4c', name: 'Kibana', moduleName: 'KIBANA', dataType: 'kibana', kind: 'other', category: 'database', icon: 'kibana.svg', defaultPort: '514/udp' }, + { id: '1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d', name: 'Kafka', moduleName: 'KAFKA', dataType: 'kafka', kind: 'other', category: 'messaging', icon: 'kafka.svg', defaultPort: '514/udp' }, + { id: '2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e', name: 'NATS', moduleName: 'NATS', dataType: 'nats', kind: 'other', category: 'messaging', icon: 'nats.svg', defaultPort: '514/udp' }, + { id: '3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f', name: 'HAProxy', moduleName: 'HAPROXY', dataType: 'haproxy', kind: 'other', category: 'proxy', icon: 'haproxy.svg', defaultPort: '514/udp' }, + { id: '4d5e6f7a-8b9c-4d0e-1f2a-3b4c5d6e7f8a', name: 'Traefik', moduleName: 'TRAEFIK', dataType: 'traefik', kind: 'other', category: 'proxy', icon: 'traefik.svg', defaultPort: '514/udp' }, + { id: '5e6f7a8b-9c0d-4e1f-2a3b-4c5d6e7f8a9b', name: 'OsQuery', moduleName: 'OSQUERY', dataType: 'osquery', kind: 'other', category: 'other', icon: 'osquery.svg', defaultPort: 'agent (local)' }, + { id: '6f7a8b9c-0d1e-4f2a-3b4c-5d6e7f8a9b0c', name: 'Syslog', moduleName: 'SYSLOG', dataType: 'syslog', kind: 'other', category: 'syslog', icon: 'syslog.svg', defaultPort: '514/udp' }, + { id: '7a8b9c0d-1e2f-4a3b-4c5d-6e7f8a9b0c1d', name: 'JSON Input', moduleName: 'JSON', dataType: 'json-input', kind: 'other', category: 'other', icon: 'json.svg', defaultPort: '8080' }, + { id: '8b9c0d1e-2f3a-4b5c-8d9e-0f1a2b3c4d5e', name: 'SQL Server Event Logs', moduleName: 'WINDOWS_SQL_SERVER', dataType: 'wineventlog', kind: 'other', category: 'database', icon: 'windows.png', defaultPort: 'agent (local)' }, + { id: '9c0d1e2f-3a4b-5c6d-9e0f-1a2b3c4d5e6f', name: 'Windows File Access Auditing', moduleName: 'WINDOWS_FILE_AUDITING', dataType: 'wineventlog', kind: 'other', category: 'operating-system', icon: 'windows.png', defaultPort: 'agent (local)' }, + { id: 'ad1e2f3a-4b5c-6d7e-8f90-1a2b3c4d5e6f', name: 'NetFlow Exporter', moduleName: 'NETFLOW', dataType: 'netflow', kind: 'other', category: 'network', icon: 'netflow.svg', defaultPort: '2055/udp' }, +] + +interface GuideMetadata { + channel: IntegrationGuideChannel + dataType?: string + defaultPort?: string + filters?: IntegrationLogFilter[] + filterField?: 'dataSource' | 'log.exporter' + setting?: string +} + +const GUIDE_METADATA: Record = { + DEFAULT: { + channel: 'syslog', + dataType: 'syslog', + defaultPort: '7014/tcp', + filterField: 'dataSource', + }, + NGINX: { + channel: 'linux-agent', + dataType: 'linux', + filters: [{ field: 'log.syslogIdentifier', operator: 'IS_ONE_OF_TERMS', value: ['nginx'] }], + setting: 'Configure Nginx access and error logs to be forwarded to the Linux journal or syslog.', + }, + SYSLOG: { channel: 'syslog', defaultPort: '7014/tcp', filterField: 'dataSource' }, + NETFLOW: { channel: 'netflow', defaultPort: '2055/udp', filterField: 'log.exporter' }, + JSON: { + channel: 'syslog', + dataType: 'syslog', + defaultPort: '7014/tcp', + filterField: 'dataSource', + setting: 'The legacy JSON HTTP endpoint is not published in v12. This demo entry uses the supported syslog channel; send JSON text as a syslog message.', + }, + WINDOWS_SQL_SERVER: { + channel: 'windows-agent', + filters: [ + { field: 'log.providerName', operator: 'IS_ONE_OF_TERMS', value: ['MSSQLSERVER'] }, + { field: 'log.channel', operator: 'IS_ONE_OF_TERMS', value: ['Application'] }, + ], + setting: 'Enable SQL Server auditing and write its events to the Windows Application event log. The event provider name depends on the SQL Server instance configuration.', + }, + WINDOWS_FILE_AUDITING: { + channel: 'windows-agent', + filters: [ + { field: 'log.providerName', operator: 'IS_ONE_OF_TERMS', value: ['Microsoft-Windows-Security-Auditing'] }, + { field: 'log.channel', operator: 'IS_ONE_OF_TERMS', value: ['Security'] }, + ], + setting: 'Enable File System auditing in Advanced Audit Policy and configure auditing entries on the folders to monitor.', + }, +} + +export const INJECTED_MODULES: Integration[] = SEEDS.map((s) => { + const guide = GUIDE_METADATA[s.moduleName] ?? GUIDE_METADATA.DEFAULT + return { + id: s.id, + name: s.name, + moduleName: s.moduleName, + dataType: guide.dataType ?? s.dataType, + ingestType: 'forwarder', + kind: s.kind, + status: 'available', + description: guide.setting ?? '', + category: s.category, + logo: `/integrations/${s.icon}`, + systemOwner: true, + guideOnly: true, + defaultPort: guide.defaultPort ?? s.defaultPort, + guideChannel: guide.channel, + logFilters: guide.filters, + logFilterField: guide.filterField, + guideSetting: guide.setting ?? `Configure ${s.name} to send its logs through the supported syslog channel.`, + events24h: undefined, + rate: undefined, + darkInvert: false, + } +}) diff --git a/frontend/src/features/integrations/pages/IntegrationsPage.tsx b/frontend/src/features/integrations/pages/IntegrationsPage.tsx index 70954da1ef..f0749326da 100644 --- a/frontend/src/features/integrations/pages/IntegrationsPage.tsx +++ b/frontend/src/features/integrations/pages/IntegrationsPage.tsx @@ -13,6 +13,7 @@ import { AddCustomIntegrationCard } from '@/features/integrations/components/Add import { CreateIntegrationDrawer } from '@/features/integrations/components/CreateIntegrationDrawer' import { KIND_META, categoryLabel } from '@/features/integrations/constants' import { SYSTEM_MODULES } from '@/features/integrations/constants/systemModules' +import { INJECTED_MODULES } from '@/features/integrations/constants/injectedModules' import type { Integration, DeployKind, @@ -30,21 +31,25 @@ const LOGO = (slug: string) => { return `/integrations/${slug}` } +const INJECTED_BY_MODULE_NAME = new Map( + INJECTED_MODULES.map((integration) => [integration.moduleName ?? '', integration]), +) function mapModuleToIntegration(module: IntegrationResponse, t: TFunction): Integration { const isSystem = module.systemOwner // System integrations: icon, description and category are owned by the frontend // (per-theme icons + i18n). Custom ones keep using the catalog row's own icon // and description, and group under 'custom'. + const injectedMeta = INJECTED_BY_MODULE_NAME.get(module.name) const meta = isSystem ? SYSTEM_MODULES[module.name] : undefined - const category = meta?.category ?? 'custom' + const category = meta?.category ?? injectedMeta?.category ?? 'custom' // Map the category to a known DeployKind; anything unknown falls back to // 'other' (Collector group) so a new integration never breaks the grid. const kind: DeployKind = (category in KIND_META ? category : 'other') as DeployKind const description = isSystem - ? t(`integrations.modules.${module.name}`, { defaultValue: module.description || '' }) + ? t(`integrations.modules.${module.name}.description`, { defaultValue: module.description || '' }) : module.description || '' // Resolve the logo + optional dark variant: // - system module → frontend-owned per-theme asset, @@ -55,6 +60,9 @@ function mapModuleToIntegration(module: IntegrationResponse, t: TFunction): Inte if (meta) { logo = LOGO(meta.icon) logoDark = meta.iconDark ? LOGO(meta.iconDark) : undefined + } else if (isSystem && injectedMeta) { + logo = injectedMeta.logo + logoDark = injectedMeta.logoDark } else if (module.icon) { logo = LOGO(module.icon) } else { @@ -64,7 +72,9 @@ function mapModuleToIntegration(module: IntegrationResponse, t: TFunction): Inte return { id: module.id, - name: isSystem ? t(`integrations.modules.${module.name}.name`, { defaultValue: module.name }) : module.name, + name: isSystem + ? t(`integrations.modules.${module.name}.name`, { defaultValue: displayModuleName(module.name) }) + : module.name, moduleName: module.name, dataType: module.dataType, ingestType: module.ingestType, @@ -76,11 +86,22 @@ function mapModuleToIntegration(module: IntegrationResponse, t: TFunction): Inte logo, logoDark, darkInvert: false, + ...(module.name.toUpperCase() === 'NETFLOW' ? { guideChannel: 'netflow' as const } : {}), + ...(module.name.toUpperCase() === 'NETFLOW' ? { logFilterField: 'log.exporter' as const } : {}), events24h: undefined, rate: undefined, } } +function displayModuleName(moduleName: string): string { + return moduleName + .toLowerCase() + .split(/[_\s-]+/) + .filter(Boolean) + .map((part) => part[0].toUpperCase() + part.slice(1)) + .join(' ') +} + // Pinned order for the three OS agents so they always lead the grid. const AGENT_ORDER = ['WINDOWS_AGENT', 'LINUX_AGENT', 'MACOS'] @@ -159,7 +180,35 @@ export function IntegrationsPage() { const [editing, setEditing] = useState(null) const modules = integrations.integrations.data || [] - const displayList = useMemo(() => modules.map((m) => mapModuleToIntegration(m, t)), [modules, t]) + const displayList = useMemo(() => { + const injectedByName = new Map(INJECTED_MODULES.map((entry) => [entry.moduleName, entry])) + const catalog = modules.map((m) => { + const mapped = mapModuleToIntegration(m, t) + const guideMetadata = injectedByName.get(m.name) + return guideMetadata + ? { + ...mapped, + guideChannel: guideMetadata.guideChannel, + guideOnly: true, + logFilters: guideMetadata.logFilters, + logFilterField: guideMetadata.logFilterField, + guideSetting: guideMetadata.guideSetting, + } + : mapped + }) + // Injected catalog cards are frontend-owned; dedupe against the backend + // list by moduleName so a future backend row for the same module never + // shows up twice (backend row wins — it carries the real id + dataType). + const backendModuleNames = new Set(modules.map((m) => m.name)) + const injected = INJECTED_MODULES + .filter((i) => !backendModuleNames.has(i.moduleName ?? '')) + .map((i) => ({ + ...i, + name: t(`integrations.modules.${i.moduleName}.name`, { defaultValue: i.name }), + description: t(`integrations.modules.${i.moduleName}.description`, { defaultValue: i.description }), + })) + return [...catalog, ...injected] + }, [modules, t]) // The raw catalog row for the module being edited (for its actual stored icon). const editingModule = editing ? modules.find((m) => String(m.id) === editing.id) : undefined diff --git a/frontend/src/features/integrations/types/index.ts b/frontend/src/features/integrations/types/index.ts index 879306b0f7..1ae0d0af1e 100644 --- a/frontend/src/features/integrations/types/index.ts +++ b/frontend/src/features/integrations/types/index.ts @@ -35,6 +35,14 @@ export type DeployKind = 'agents & syslog' | 'device' | 'antivirus' | 'other' | export type Status = 'configured' | 'available' export type Tab = 'all' | 'agents' | 'collectors' | 'cloud' |'custom' +export type IntegrationGuideChannel = 'syslog' | 'netflow' | 'windows-agent' | 'linux-agent' + +export interface IntegrationLogFilter { + field: string + operator: 'IS_ONE_OF_TERMS' + value: unknown[] +} + export interface Integration { id: string; /** Display label, translated (i18n integrations.modules.). */ @@ -52,6 +60,15 @@ export interface Integration { systemOwner?: boolean; // false → custom (uses the catalog row's icon/description) darkInvert?: boolean; defaultPort?: string; + /** Frontend-only guide route for injected and channel-based integrations. */ + guideChannel?: IntegrationGuideChannel; + /** This entry is a presentation/demo fallback and has no catalog row of its own. */ + guideOnly?: boolean; + /** Technology-specific filters passed to Log Explorer. */ + logFilters?: IntegrationLogFilter[]; + /** Value entered by the user for sources identified by sender/exporter address. */ + logFilterField?: 'dataSource' | 'log.exporter'; + guideSetting?: string; cloudFields?: { label: string; placeholder: string; secret?: boolean }[]; events24h?: number; rate?: number; diff --git a/frontend/src/features/log-explorer/components/LogExplorerView.tsx b/frontend/src/features/log-explorer/components/LogExplorerView.tsx index c7c3605bf9..64b5f2779f 100644 --- a/frontend/src/features/log-explorer/components/LogExplorerView.tsx +++ b/frontend/src/features/log-explorer/components/LogExplorerView.tsx @@ -78,6 +78,13 @@ interface RelatedLogsSeed { truncated?: boolean } +interface DashboardSearchSeed { + dataset: string + dataType?: string + filters: FilterType[] + range: TimeRange +} + const BUILDER_OPS: FilterOpDef[] = [ { id: 'IS', label: 'is', needsValue: true }, { id: 'IS_NOT', label: 'is not', needsValue: true }, @@ -209,6 +216,7 @@ export function LogExplorerView({ initial, onConfigChange }: LogExplorerViewProp const ps = list.find((l) => l.dataset === (initial.dataset ?? DEFAULT_DATASET))?.dataTypes ?? [] const state = location.state as { relatedLogs?: RelatedLogsSeed + dashboardSearch?: DashboardSearchSeed socaiFilters?: FilterType[] socaiTime?: string } | null @@ -226,6 +234,17 @@ export function LogExplorerView({ initial, onConfigChange }: LogExplorerViewProp setReadyToPersist(true) return } + if (state?.dashboardSearch && !seededRef.current) { + seededRef.current = true + setDataset(state.dashboardSearch.dataset) + setPattern(state.dashboardSearch.dataType ?? null) + setFilters(state.dashboardSearch.filters) + setRange(state.dashboardSearch.range) + setColumns(state.dashboardSearch.filters.map((filter) => filter.field)) + navigate(location.pathname, { replace: true }) + setReadyToPersist(true) + return + } // SOC-AI chat navigation: apply the agent's filters + time window. if (state?.socaiFilters?.length && !seededRef.current) { seededRef.current = true @@ -483,9 +502,15 @@ export function LogExplorerView({ initial, onConfigChange }: LogExplorerViewProp }, []) // Adapters: CustomFilterBar works with CustomFilter; FilterType is the internal type. - // IS_ONE_OF_TERMS (array value) is excluded — rendered separately as terms chips. - const simpleFilters = useMemo(() => filters.filter((f) => f.operator !== 'IS_ONE_OF_TERMS'), [filters]) - const termsFilters = useMemo(() => filters.filter((f) => f.operator === 'IS_ONE_OF_TERMS'), [filters]) + // Terms filters are rendered separately from the simple filter editor. + const simpleFilters = useMemo( + () => filters.filter((f) => f.operator !== 'IS_ONE_OF_TERMS' && f.operator !== 'IS_NOT_ONE_OF_TERMS'), + [filters], + ) + const termsFilters = useMemo( + () => filters.filter((f) => f.operator === 'IS_ONE_OF_TERMS' || f.operator === 'IS_NOT_ONE_OF_TERMS'), + [filters], + ) const customFilters = useMemo(() => simpleFilters.map(toCustom), [simpleFilters]) @@ -612,9 +637,15 @@ export function LogExplorerView({ initial, onConfigChange }: LogExplorerViewProp className="inline-flex items-center gap-1.5 rounded-full border border-primary/25 bg-primary/5 py-1 pl-3 pr-1.5 text-xs" > {f.field} - {t('logExplorer.ops.isOneOf')} + + {t(f.operator === 'IS_NOT_ONE_OF_TERMS' ? 'logExplorer.ops.isNotOneOf' : 'logExplorer.ops.isOneOf')} + - {Array.isArray(f.value) ? t('logExplorer.related.nLogs', { count: f.value.length }) : String(f.value)} + {Array.isArray(f.value) + ? f.field === 'id' && f.value.length > 1 + ? t('logExplorer.related.nLogs', { count: f.value.length }) + : f.value.map(String).join(', ') + : String(f.value)}