diff --git a/codience/.vscode/launch.json b/codience/.vscode/launch.json index c42edc04..a614f634 100644 --- a/codience/.vscode/launch.json +++ b/codience/.vscode/launch.json @@ -5,6 +5,7 @@ { "version": "0.2.0", "configurations": [ + { "name": "Run Extension", "type": "extensionHost", diff --git a/codience/.vscode/tasks.json b/codience/.vscode/tasks.json index 3cf99c37..acdfe786 100644 --- a/codience/.vscode/tasks.json +++ b/codience/.vscode/tasks.json @@ -21,7 +21,17 @@ "type": "npm", "script": "watch:esbuild", "group": "build", - "problemMatcher": "$esbuild-watch", + "problemMatcher": { + "owner": "typescript", + "pattern": { + "regexp": "^(.*)$" + }, + "background": { + "activeOnStart": true, + "beginsPattern": "^\\[watch\\] build started", + "endsPattern": "^\\[watch\\] build finished" + } + }, "isBackground": true, "label": "npm: watch:esbuild", "presentation": { diff --git a/codience/media/icon.webp b/codience/media/icon.webp new file mode 100644 index 00000000..a2b083e3 Binary files /dev/null and b/codience/media/icon.webp differ diff --git a/codience/out/extension.js b/codience/out/extension.js new file mode 100644 index 00000000..e9b729ed --- /dev/null +++ b/codience/out/extension.js @@ -0,0 +1,81 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.activate = activate; +exports.deactivate = deactivate; +const vscode = __importStar(require("vscode")); +const fs = __importStar(require("fs")); +const path = __importStar(require("path")); +function activate(context) { + const provider = new SidebarProvider(context.extensionUri); + context.subscriptions.push(vscode.window.registerWebviewViewProvider(SidebarProvider.viewType, provider)); +} +function deactivate() { } +class SidebarProvider { + _extensionUri; + static viewType = "sidebarView"; + constructor(_extensionUri) { + this._extensionUri = _extensionUri; + } + resolveWebviewView(webviewView, context, _token) { + const webview = webviewView.webview; + webview.options = { + enableScripts: true, + localResourceRoots: [ + vscode.Uri.joinPath(this._extensionUri, "webview-ui", "webview-ui", "dist"), + ], + }; + const indexPath = path.join(this._extensionUri.fsPath, "webview-ui", "webview-ui", "dist", "index.html"); + let html = fs.readFileSync(indexPath, "utf-8"); + html = html.replace(/(src|href)="(.+?)"/g, (match, attr, link) => { + if (/^https?:\/\//.test(link)) { + return match; + } + const uri = webview.asWebviewUri(vscode.Uri.joinPath(this._extensionUri, "webview-ui", "webview-ui", "dist", link)); + return `${attr}="${uri}"`; + }); + // Inject CSP (Content Security Policy) + html = html.replace("", ` + + `); + webview.html = html; + } +} +//# sourceMappingURL=extension.js.map \ No newline at end of file diff --git a/codience/out/extension.js.map b/codience/out/extension.js.map new file mode 100644 index 00000000..c76ab479 --- /dev/null +++ b/codience/out/extension.js.map @@ -0,0 +1 @@ +{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,4BASC;AAED,gCAA+B;AAf/B,+CAAiC;AACjC,uCAAyB;AACzB,2CAA6B;AAE7B,SAAgB,QAAQ,CAAC,OAAgC;IACvD,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAE3D,OAAO,CAAC,aAAa,CAAC,IAAI,CACxB,MAAM,CAAC,MAAM,CAAC,2BAA2B,CACvC,eAAe,CAAC,QAAQ,EACxB,QAAQ,CACT,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,UAAU,KAAI,CAAC;AAE/B,MAAM,eAAe;IAGU;IAFtB,MAAM,CAAU,QAAQ,GAAG,aAAa,CAAC;IAEhD,YAA6B,aAAyB;QAAzB,kBAAa,GAAb,aAAa,CAAY;IAAG,CAAC;IAE1D,kBAAkB,CAChB,WAA+B,EAC/B,OAAyC,EACzC,MAAgC;QAEhC,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;QAEpC,OAAO,CAAC,OAAO,GAAG;YAChB,aAAa,EAAE,IAAI;YACnB,kBAAkB,EAAE;gBAClB,MAAM,CAAC,GAAG,CAAC,QAAQ,CACjB,IAAI,CAAC,aAAa,EAClB,YAAY,EACZ,YAAY,EACZ,MAAM,CACP;aACF;SACF,CAAC;QAEF,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CACzB,IAAI,CAAC,aAAa,CAAC,MAAM,EACzB,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,YAAY,CACb,CAAC;QAEF,IAAI,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE/C,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;YAC/D,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC9B,OAAO,KAAK,CAAC;YACf,CAAC;YACD,MAAM,GAAG,GAAG,OAAO,CAAC,YAAY,CAC9B,MAAM,CAAC,GAAG,CAAC,QAAQ,CACjB,IAAI,CAAC,aAAa,EAClB,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,IAAI,CACL,CACF,CAAC;YACF,OAAO,GAAG,IAAI,KAAK,GAAG,GAAG,CAAC;QAC5B,CAAC,CAAC,CAAC;QAEH,uCAAuC;QACvC,IAAI,GAAG,IAAI,CAAC,OAAO,CACjB,QAAQ,EACR;;;yBAGmB,OAAO,CAAC,SAAS;2BACf,OAAO,CAAC,SAAS;4BAChB,OAAO,CAAC,SAAS;;OAEtC,CACF,CAAC;QAEF,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IACtB,CAAC"} \ No newline at end of file diff --git a/codience/package-lock.json b/codience/package-lock.json index a611f99c..bb706461 100644 --- a/codience/package-lock.json +++ b/codience/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.1", "devDependencies": { "@types/mocha": "^10.0.10", - "@types/node": "22.x", + "@types/node": "^22.19.19", "@types/vscode": "^1.103.0", "@typescript-eslint/eslint-plugin": "^8.39.0", "@typescript-eslint/parser": "^8.39.0", @@ -859,9 +859,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.18.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.0.tgz", - "integrity": "sha512-m5ObIqwsUp6BZzyiy4RdZpzWGub9bqLJMvZDD0QMXhxjqMHMENlj+SqF5QxoUwaQNFe+8kz8XM8ZQhqkQPTgMQ==", + "version": "22.19.19", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.19.tgz", + "integrity": "sha512-dyh/xO2Fh5bYrfWaaqGrRQQGkNdmYw6AmaAUvYeUMNTWQtvb796ikLdmTchRmOlOiIJ1TDXfWgVx1QkUlQ6Hew==", "dev": true, "license": "MIT", "dependencies": { diff --git a/codience/package.json b/codience/package.json index ce80be5e..4ade67aa 100644 --- a/codience/package.json +++ b/codience/package.json @@ -1,5 +1,6 @@ { "name": "codience", + "publisher": "malakhisham121", "displayName": "Codience", "description": "AI-powered prioritization tool that ranks tasks by business impact, complexity, and risk directly inside VS Code", "version": "0.0.1", @@ -9,15 +10,27 @@ "categories": [ "Other" ], - "activationEvents": [], "main": "./dist/extension.js", "contributes": { - "commands": [ - { - "command": "codience.helloWorld", - "title": "Hello World" - } - ] + "viewsContainers": { + "activitybar": [ + { + "id": "sidebarContainer", + "title": "Codience", + "icon": "media/icon.webp" + } + ] + }, + "views": { + "sidebarContainer": [ + { + "id": "sidebarView", + "name": "", + "type": "webview", + "icon": "media/image.png" + } + ] + } }, "scripts": { "vscode:prepublish": "npm run package", @@ -34,16 +47,16 @@ "test": "vscode-test" }, "devDependencies": { - "@types/vscode": "^1.103.0", "@types/mocha": "^10.0.10", - "@types/node": "22.x", + "@types/node": "^22.19.19", + "@types/vscode": "^1.103.0", "@typescript-eslint/eslint-plugin": "^8.39.0", "@typescript-eslint/parser": "^8.39.0", - "eslint": "^9.32.0", + "@vscode/test-cli": "^0.0.11", + "@vscode/test-electron": "^2.5.2", "esbuild": "^0.25.8", + "eslint": "^9.32.0", "npm-run-all": "^4.1.5", - "typescript": "^5.9.2", - "@vscode/test-cli": "^0.0.11", - "@vscode/test-electron": "^2.5.2" + "typescript": "^5.9.2" } } diff --git a/codience/src/extension.ts b/codience/src/extension.ts index 150d8ea6..d1fd9bcc 100644 --- a/codience/src/extension.ts +++ b/codience/src/extension.ts @@ -1,26 +1,166 @@ -// The module 'vscode' contains the VS Code extensibility API -// Import the module and reference it with the alias vscode in your code below -import * as vscode from 'vscode'; +import * as vscode from "vscode"; +import * as fs from "fs"; +import * as path from "path"; -// This method is called when your extension is activated -// Your extension is activated the very first time the command is executed export function activate(context: vscode.ExtensionContext) { + const provider = new SidebarProvider(context.extensionUri); - // Use the console to output diagnostic information (console.log) and errors (console.error) - // This line of code will only be executed once when your extension is activated - console.log('Congratulations, your extension "codience" is now active!'); + context.subscriptions.push( + vscode.window.registerWebviewViewProvider(SidebarProvider.viewType, provider), + ); - // The command has been defined in the package.json file - // Now provide the implementation of the command with registerCommand - // The commandId parameter must match the command field in package.json - const disposable = vscode.commands.registerCommand('codience.helloWorld', () => { - // The code you place here will be executed every time your command is executed - // Display a message box to the user - vscode.window.showInformationMessage('Hello World from Codience!'); - }); + // Register a URI handler so external OAuth redirects (vscode://.../?code=...) + // can be forwarded back to the webview. + const uriHandler = vscode.window.registerUriHandler({ + handleUri(uri: vscode.Uri) { + try { + if (uri.path !== "/callback" && uri.path !== "/jira-login") { + return; + } - context.subscriptions.push(disposable); + const params = new URLSearchParams(uri.query); + const code = params.get("code"); + if (!code) { + return; + } + + // forward to the provider (if it has an active webview) + provider.handleIncomingUri(code, uri.toString()); + } catch (err) { + console.error("Failed to handle incoming URI", err); + } + }, + }); + context.subscriptions.push(uriHandler); } -// This method is called when your extension is deactivated export function deactivate() {} + +class SidebarProvider implements vscode.WebviewViewProvider { + public static readonly viewType = "sidebarView"; + + private _webviewView?: vscode.WebviewView; + + constructor(private readonly _extensionUri: vscode.Uri) {} + + // Called by the activate() URI handler to push the code back into the webview + public handleIncomingUri(code: string | null, fullUri?: string) { + if (!this._webviewView) { + return; + } + this._webviewView.webview.postMessage({ + type: "jiraAuthCode", + code, + uri: fullUri, + }); + } + + resolveWebviewView( + webviewView: vscode.WebviewView, + context: vscode.WebviewViewResolveContext, + _token: vscode.CancellationToken, + ) { + this._webviewView = webviewView; + const webview = webviewView.webview; + + webview.options = { + enableScripts: true, + localResourceRoots: [ + vscode.Uri.joinPath(this._extensionUri, "webview-ui", "webview-ui", "dist"), + ], + }; + + try { + const indexPath = path.join( + this._extensionUri.fsPath, + "webview-ui", + "webview-ui", + "dist", + "index.html", + ); + + let html = fs.readFileSync(indexPath, "utf-8"); + + html = html.replace( + /(src|href)="(.+?)"/g, + (_match: string, attr: string, link: string) => { + if (/^https?:\/\//.test(link)) { + return _match; + } + + const uri = webview.asWebviewUri( + vscode.Uri.joinPath( + this._extensionUri, + "webview-ui", + "webview-ui", + "dist", + link, + ), + ); + + return `${attr}="${uri}"`; + }, + ); + + html = html.replace( + "", + ` + + `, + ); + + webview.html = html; + } catch (err: any) { + console.error("Error loading webview index.html:", err); + webview.html = ` + + +

Error loading webview

+
${err.message}
+
${err.stack}
+ + `; + } + + // Wire messages from the webview: + // - openExternal: extension will open the external browser for OAuth + webview.onDidReceiveMessage((message) => { + try { + if (!message || typeof message !== "object") { + return; + } + if (message.command === "openExternal" && message.url) { + let url = String(message.url); + if (url.includes("state=vscode") && vscode.env.uriScheme !== "vscode") { + url = url.replace("state=vscode", `state=vscode-${vscode.env.uriScheme}`); + } + vscode.env.openExternal(vscode.Uri.parse(url)); + } + } catch (err) { + console.error("Error handling message from webview:", err); + } + }); + + // Clear stored webview when disposed + webviewView.onDidDispose(() => { + this._webviewView = undefined; + }); + } +} \ No newline at end of file diff --git a/codience/src/test/extension.test.ts b/codience/src/test/extension.test.ts deleted file mode 100644 index 4ca0ab41..00000000 --- a/codience/src/test/extension.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as assert from 'assert'; - -// You can import and use all API from the 'vscode' module -// as well as import your extension to test it -import * as vscode from 'vscode'; -// import * as myExtension from '../../extension'; - -suite('Extension Test Suite', () => { - vscode.window.showInformationMessage('Start all tests.'); - - test('Sample test', () => { - assert.strictEqual(-1, [1, 2, 3].indexOf(5)); - assert.strictEqual(-1, [1, 2, 3].indexOf(0)); - }); -}); diff --git a/codience/test_regex.js b/codience/test_regex.js new file mode 100644 index 00000000..0c3e558c --- /dev/null +++ b/codience/test_regex.js @@ -0,0 +1,13 @@ +const fs = require('fs'); +let html = fs.readFileSync('webview-ui/webview-ui/dist/index.html', 'utf-8'); +console.log("Original HTML:"); +console.log(html); +html = html.replace( + /(src|href)="(.+?)"/g, + (_match, attr, link) => { + if (/^https?:\/\//.test(link)) return _match; + return `${attr}="REPLACED_${link}"`; + } +); +console.log("\nReplaced HTML:"); +console.log(html); diff --git a/codience/test_uri.js b/codience/test_uri.js new file mode 100644 index 00000000..dc4c06b6 --- /dev/null +++ b/codience/test_uri.js @@ -0,0 +1,3 @@ +const vscode = require('vscode-uri'); +const uri = vscode.URI.file('/base/path'); +console.log(vscode.Utils.joinPath(uri, 'dist', './assets/file.js').toString()); diff --git a/codience/tsconfig.json b/codience/tsconfig.json index cb353759..fc7deb0a 100644 --- a/codience/tsconfig.json +++ b/codience/tsconfig.json @@ -1,16 +1,19 @@ { - "compilerOptions": { - "module": "Node16", - "target": "ES2022", - "lib": [ - "ES2022" - ], - "sourceMap": true, - "rootDir": "src", - "strict": true, /* enable all strict type-checking options */ - /* Additional Checks */ - // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ - // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - // "noUnusedParameters": true, /* Report errors on unused parameters. */ - } + "compilerOptions": { + "module": "Node16", + "target": "ES2022", + "lib": ["ES2022"], + "sourceMap": true, + "rootDir": "src", + "types": ["node", "vscode"], + "strict": true /* enable all strict type-checking options */ + /* Additional Checks */ + // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ + // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ + // "noUnusedParameters": true, /* Report errors on unused parameters. */ + }, + "exclude": [ + "node_modules", + "webview-ui" + ] } diff --git a/codience/webview-ui/webview-ui/.gitignore b/codience/webview-ui/webview-ui/.gitignore new file mode 100644 index 00000000..a547bf36 --- /dev/null +++ b/codience/webview-ui/webview-ui/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/codience/webview-ui/webview-ui/README.md b/codience/webview-ui/webview-ui/README.md new file mode 100644 index 00000000..2075cee8 --- /dev/null +++ b/codience/webview-ui/webview-ui/README.md @@ -0,0 +1,73 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## React Compiler + +The React Compiler is currently not compatible with SWC. See [this issue](https://github.com/vitejs/vite-plugin-react/issues/428) for tracking the progress. + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: + +```js +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + + // Remove tseslint.configs.recommended and replace with this + tseslint.configs.recommendedTypeChecked, + // Alternatively, use this for stricter rules + tseslint.configs.strictTypeChecked, + // Optionally, add this for stylistic rules + tseslint.configs.stylisticTypeChecked, + + // Other configs... + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` + +You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: + +```js +// eslint.config.js +import reactX from 'eslint-plugin-react-x' +import reactDom from 'eslint-plugin-react-dom' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + // Enable lint rules for React + reactX.configs['recommended-typescript'], + // Enable lint rules for React DOM + reactDom.configs.recommended, + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` diff --git a/codience/webview-ui/webview-ui/eslint.config.js b/codience/webview-ui/webview-ui/eslint.config.js new file mode 100644 index 00000000..b19330b1 --- /dev/null +++ b/codience/webview-ui/webview-ui/eslint.config.js @@ -0,0 +1,23 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs['recommended-latest'], + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + }, +]) diff --git a/codience/webview-ui/webview-ui/index.html b/codience/webview-ui/webview-ui/index.html new file mode 100644 index 00000000..74df0e60 --- /dev/null +++ b/codience/webview-ui/webview-ui/index.html @@ -0,0 +1,13 @@ + + + + + + + webview-ui + + +
+ + + diff --git a/codience/webview-ui/webview-ui/package-lock.json b/codience/webview-ui/webview-ui/package-lock.json new file mode 100644 index 00000000..33826c2a --- /dev/null +++ b/codience/webview-ui/webview-ui/package-lock.json @@ -0,0 +1,3958 @@ +{ + "name": "webview-ui", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "webview-ui", + "version": "0.0.0", + "dependencies": { + "@microsoft/signalr": "^8.0.7", + "axios": "^1.12.2", + "react": "^19.1.1", + "react-dom": "^19.1.1", + "react-router-dom": "^7.9.2", + "recharts": "^3.8.1" + }, + "devDependencies": { + "@eslint/js": "^9.36.0", + "@types/react": "^19.1.13", + "@types/react-dom": "^19.1.9", + "@vitejs/plugin-react-swc": "^4.1.0", + "eslint": "^9.36.0", + "eslint-plugin-react-hooks": "^5.2.0", + "eslint-plugin-react-refresh": "^0.4.20", + "globals": "^16.4.0", + "typescript": "~5.8.3", + "typescript-eslint": "^8.44.0", + "vite": "^7.1.7" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.10.tgz", + "integrity": "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.10.tgz", + "integrity": "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.10.tgz", + "integrity": "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.10.tgz", + "integrity": "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.10.tgz", + "integrity": "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.10.tgz", + "integrity": "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.10.tgz", + "integrity": "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.10.tgz", + "integrity": "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.10.tgz", + "integrity": "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.10.tgz", + "integrity": "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.10.tgz", + "integrity": "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.10.tgz", + "integrity": "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.10.tgz", + "integrity": "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.10.tgz", + "integrity": "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.10.tgz", + "integrity": "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.10.tgz", + "integrity": "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.10.tgz", + "integrity": "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.10.tgz", + "integrity": "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.10.tgz", + "integrity": "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.10.tgz", + "integrity": "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.10.tgz", + "integrity": "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.10.tgz", + "integrity": "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.10.tgz", + "integrity": "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.10.tgz", + "integrity": "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.10.tgz", + "integrity": "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.10.tgz", + "integrity": "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", + "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", + "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.1.tgz", + "integrity": "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz", + "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "9.36.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.36.0.tgz", + "integrity": "sha512-uhCbYtYynH30iZErszX78U+nR3pJU3RHGQ57NXy5QupD4SBVwDeU8TNBy+MjMngc1UyIW9noKqsRqfjQTBU2dw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz", + "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.15.2", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@microsoft/signalr": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@microsoft/signalr/-/signalr-8.0.7.tgz", + "integrity": "sha512-PHcdMv8v5hJlBkRHAuKG5trGViQEkPYee36LnJQx4xHOQ5LL4X0nEWIxOp5cCtZ7tu+30quz5V3k0b1YNuc6lw==", + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "eventsource": "^2.0.2", + "fetch-cookie": "^2.0.3", + "node-fetch": "^2.6.7", + "ws": "^7.4.5" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@reduxjs/toolkit": { + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.11.2.tgz", + "integrity": "sha512-Kd6kAHTA6/nUpp8mySPqj3en3dm0tdMIgbttnQ1xFMVpufoj+ADi8pXLBsd4xzTRHQa7t/Jv8W5UnCuW4kuWMQ==", + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.0.0", + "@standard-schema/utils": "^0.3.0", + "immer": "^11.0.0", + "redux": "^5.0.1", + "redux-thunk": "^3.1.0", + "reselect": "^5.1.0" + }, + "peerDependencies": { + "react": "^16.9.0 || ^17.0.0 || ^18 || ^19", + "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-redux": { + "optional": true + } + } + }, + "node_modules/@reduxjs/toolkit/node_modules/immer": { + "version": "11.1.4", + "resolved": "https://registry.npmjs.org/immer/-/immer-11.1.4.tgz", + "integrity": "sha512-XREFCPo6ksxVzP4E0ekD5aMdf8WMwmdNaz6vuvxgI40UaEiu6q3p8X52aU6GdyvLY3XXX/8R7JOTXStz/nBbRw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.35", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.35.tgz", + "integrity": "sha512-slYrCpoxJUqzFDDNlvrOYRazQUNRvWPjXA17dAOISY3rDMxX6k8K4cj2H+hEYMHF81HO3uNd5rHVigAWRM5dSg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.2.tgz", + "integrity": "sha512-o3pcKzJgSGt4d74lSZ+OCnHwkKBeAbFDmbEm5gg70eA8VkyCuC/zV9TwBnmw6VjDlRdF4Pshfb+WE9E6XY1PoQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.2.tgz", + "integrity": "sha512-cqFSWO5tX2vhC9hJTK8WAiPIm4Q8q/cU8j2HQA0L3E1uXvBYbOZMhE2oFL8n2pKB5sOCHY6bBuHaRwG7TkfJyw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.2.tgz", + "integrity": "sha512-vngduywkkv8Fkh3wIZf5nFPXzWsNsVu1kvtLETWxTFf/5opZmflgVSeLgdHR56RQh71xhPhWoOkEBvbehwTlVA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.2.tgz", + "integrity": "sha512-h11KikYrUCYTrDj6h939hhMNlqU2fo/X4NB0OZcys3fya49o1hmFaczAiJWVAFgrM1NCP6RrO7lQKeVYSKBPSQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.2.tgz", + "integrity": "sha512-/eg4CI61ZUkLXxMHyVlmlGrSQZ34xqWlZNW43IAU4RmdzWEx0mQJ2mN/Cx4IHLVZFL6UBGAh+/GXhgvGb+nVxw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.2.tgz", + "integrity": "sha512-QOWgFH5X9+p+S1NAfOqc0z8qEpJIoUHf7OWjNUGOeW18Mx22lAUOiA9b6r2/vpzLdfxi/f+VWsYjUOMCcYh0Ng==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.2.tgz", + "integrity": "sha512-kDWSPafToDd8LcBYd1t5jw7bD5Ojcu12S3uT372e5HKPzQt532vW+rGFFOaiR0opxePyUkHrwz8iWYEyH1IIQA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.2.tgz", + "integrity": "sha512-gKm7Mk9wCv6/rkzwCiUC4KnevYhlf8ztBrDRT9g/u//1fZLapSRc+eDZj2Eu2wpJ+0RzUKgtNijnVIB4ZxyL+w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.2.tgz", + "integrity": "sha512-66lA8vnj5mB/rtDNwPgrrKUOtCLVQypkyDa2gMfOefXK6rcZAxKLO9Fy3GkW8VkPnENv9hBkNOFfGLf6rNKGUg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.2.tgz", + "integrity": "sha512-s+OPucLNdJHvuZHuIz2WwncJ+SfWHFEmlC5nKMUgAelUeBUnlB4wt7rXWiyG4Zn07uY2Dd+SGyVa9oyLkVGOjA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.2.tgz", + "integrity": "sha512-8wTRM3+gVMDLLDdaT6tKmOE3lJyRy9NpJUS/ZRWmLCmOPIJhVyXwjBo+XbrrwtV33Em1/eCTd5TuGJm4+DmYjw==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.2.tgz", + "integrity": "sha512-6yqEfgJ1anIeuP2P/zhtfBlDpXUb80t8DpbYwXQ3bQd95JMvUaqiX+fKqYqUwZXqdJDd8xdilNtsHM2N0cFm6A==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.2.tgz", + "integrity": "sha512-sshYUiYVSEI2B6dp4jMncwxbrUqRdNApF2c3bhtLAU0qA8Lrri0p0NauOsTWh3yCCCDyBOjESHMExonp7Nzc0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.2.tgz", + "integrity": "sha512-duBLgd+3pqC4MMwBrKkFxaZerUxZcYApQVC5SdbF5/e/589GwVvlRUnyqMFbM8iUSb1BaoX/3fRL7hB9m2Pj8Q==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.2.tgz", + "integrity": "sha512-tzhYJJidDUVGMgVyE+PmxENPHlvvqm1KILjjZhB8/xHYqAGeizh3GBGf9u6WdJpZrz1aCpIIHG0LgJgH9rVjHQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.2.tgz", + "integrity": "sha512-opH8GSUuVcCSSyHHcl5hELrmnk4waZoVpgn/4FDao9iyE4WpQhyWJ5ryl5M3ocp4qkRuHfyXnGqg8M9oKCEKRA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.2.tgz", + "integrity": "sha512-LSeBHnGli1pPKVJ79ZVJgeZWWZXkEe/5o8kcn23M8eMKCUANejchJbF/JqzM4RRjOJfNRhKJk8FuqL1GKjF5oQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.2.tgz", + "integrity": "sha512-uPj7MQ6/s+/GOpolavm6BPo+6CbhbKYyZHUDvZ/SmJM7pfDBgdGisFX3bY/CBDMg2ZO4utfhlApkSfZ92yXw7Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.2.tgz", + "integrity": "sha512-Z9MUCrSgIaUeeHAiNkm3cQyst2UhzjPraR3gYYfOjAuZI7tcFRTOD+4cHLPoS/3qinchth+V56vtqz1Tv+6KPA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.2.tgz", + "integrity": "sha512-+GnYBmpjldD3XQd+HMejo+0gJGwYIOfFeoBQv32xF/RUIvccUz20/V6Otdv+57NE70D5pa8W/jVGDoGq0oON4A==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.2.tgz", + "integrity": "sha512-ApXFKluSB6kDQkAqZOKXBjiaqdF1BlKi+/eqnYe9Ee7U2K3pUDKsIyr8EYm/QDHTJIM+4X+lI0gJc3TTRhd+dA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.2.tgz", + "integrity": "sha512-ARz+Bs8kY6FtitYM96PqPEVvPXqEZmPZsSkXvyX19YzDqkCaIlhCieLLMI5hxO9SRZ2XtCtm8wxhy0iJ2jxNfw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "license": "MIT" + }, + "node_modules/@standard-schema/utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz", + "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==", + "license": "MIT" + }, + "node_modules/@swc/core": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.13.5.tgz", + "integrity": "sha512-WezcBo8a0Dg2rnR82zhwoR6aRNxeTGfK5QCD6TQ+kg3xx/zNT02s/0o+81h/3zhvFSB24NtqEr8FTw88O5W/JQ==", + "dev": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@swc/counter": "^0.1.3", + "@swc/types": "^0.1.24" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/swc" + }, + "optionalDependencies": { + "@swc/core-darwin-arm64": "1.13.5", + "@swc/core-darwin-x64": "1.13.5", + "@swc/core-linux-arm-gnueabihf": "1.13.5", + "@swc/core-linux-arm64-gnu": "1.13.5", + "@swc/core-linux-arm64-musl": "1.13.5", + "@swc/core-linux-x64-gnu": "1.13.5", + "@swc/core-linux-x64-musl": "1.13.5", + "@swc/core-win32-arm64-msvc": "1.13.5", + "@swc/core-win32-ia32-msvc": "1.13.5", + "@swc/core-win32-x64-msvc": "1.13.5" + }, + "peerDependencies": { + "@swc/helpers": ">=0.5.17" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } + } + }, + "node_modules/@swc/core-darwin-arm64": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.13.5.tgz", + "integrity": "sha512-lKNv7SujeXvKn16gvQqUQI5DdyY8v7xcoO3k06/FJbHJS90zEwZdQiMNRiqpYw/orU543tPaWgz7cIYWhbopiQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-darwin-x64": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.13.5.tgz", + "integrity": "sha512-ILd38Fg/w23vHb0yVjlWvQBoE37ZJTdlLHa8LRCFDdX4WKfnVBiblsCU9ar4QTMNdeTBEX9iUF4IrbNWhaF1Ng==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm-gnueabihf": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.13.5.tgz", + "integrity": "sha512-Q6eS3Pt8GLkXxqz9TAw+AUk9HpVJt8Uzm54MvPsqp2yuGmY0/sNaPPNVqctCX9fu/Nu8eaWUen0si6iEiCsazQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-gnu": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.13.5.tgz", + "integrity": "sha512-aNDfeN+9af+y+M2MYfxCzCy/VDq7Z5YIbMqRI739o8Ganz6ST+27kjQFd8Y/57JN/hcnUEa9xqdS3XY7WaVtSw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-musl": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.13.5.tgz", + "integrity": "sha512-9+ZxFN5GJag4CnYnq6apKTnnezpfJhCumyz0504/JbHLo+Ue+ZtJnf3RhyA9W9TINtLE0bC4hKpWi8ZKoETyOQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-gnu": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.13.5.tgz", + "integrity": "sha512-WD530qvHrki8Ywt/PloKUjaRKgstQqNGvmZl54g06kA+hqtSE2FTG9gngXr3UJxYu/cNAjJYiBifm7+w4nbHbA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-musl": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.13.5.tgz", + "integrity": "sha512-Luj8y4OFYx4DHNQTWjdIuKTq2f5k6uSXICqx+FSabnXptaOBAbJHNbHT/06JZh6NRUouaf0mYXN0mcsqvkhd7Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.13.5.tgz", + "integrity": "sha512-cZ6UpumhF9SDJvv4DA2fo9WIzlNFuKSkZpZmPG1c+4PFSEMy5DFOjBSllCvnqihCabzXzpn6ykCwBmHpy31vQw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-ia32-msvc": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.13.5.tgz", + "integrity": "sha512-C5Yi/xIikrFUzZcyGj9L3RpKljFvKiDMtyDzPKzlsDrKIw2EYY+bF88gB6oGY5RGmv4DAX8dbnpRAqgFD0FMEw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-x64-msvc": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.13.5.tgz", + "integrity": "sha512-YrKdMVxbYmlfybCSbRtrilc6UA8GF5aPmGKBdPvjrarvsmf4i7ZHGCEnLtfOMd3Lwbs2WUZq3WdMbozYeLU93Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/@swc/types": { + "version": "0.1.25", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.25.tgz", + "integrity": "sha512-iAoY/qRhNH8a/hBvm3zKj9qQ4oc2+3w1unPJa2XvTK3XjeLXtzcCingVPw/9e5mn1+0yPqxcBGp9Jf0pkfMb1g==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@swc/counter": "^0.1.3" + } + }, + "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==", + "license": "MIT" + }, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", + "license": "MIT" + }, + "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==", + "license": "MIT" + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "license": "MIT", + "dependencies": { + "@types/d3-color": "*" + } + }, + "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==", + "license": "MIT" + }, + "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==", + "license": "MIT", + "dependencies": { + "@types/d3-time": "*" + } + }, + "node_modules/@types/d3-shape": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz", + "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==", + "license": "MIT", + "dependencies": { + "@types/d3-path": "*" + } + }, + "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==", + "license": "MIT" + }, + "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==", + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "19.1.13", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.13.tgz", + "integrity": "sha512-hHkbU/eoO3EG5/MZkuFSKmYqPbSVk5byPFa3e7y/8TybHiLMACgI8seVYlicwk7H5K/rI2px9xrQp/C+AUDTiQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.1.9", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.1.9.tgz", + "integrity": "sha512-qXRuZaOsAdXKFyOhRBg6Lqqc0yay13vN7KrIg4L7N4aaHN68ma9OK3NE1BoDFgFOTfM7zg+3/8+2n8rLUH3OKQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.0.0" + } + }, + "node_modules/@types/use-sync-external-store": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz", + "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==", + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.44.1.tgz", + "integrity": "sha512-molgphGqOBT7t4YKCSkbasmu1tb1MgrZ2szGzHbclF7PNmOkSTQVHy+2jXOSnxvR3+Xe1yySHFZoqMpz3TfQsw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.44.1", + "@typescript-eslint/type-utils": "8.44.1", + "@typescript-eslint/utils": "8.44.1", + "@typescript-eslint/visitor-keys": "8.44.1", + "graphemer": "^1.4.0", + "ignore": "^7.0.0", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.44.1", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.44.1.tgz", + "integrity": "sha512-EHrrEsyhOhxYt8MTg4zTF+DJMuNBzWwgvvOYNj/zm1vnaD/IC5zCXFehZv94Piqa2cRFfXrTFxIvO95L7Qc/cw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.44.1", + "@typescript-eslint/types": "8.44.1", + "@typescript-eslint/typescript-estree": "8.44.1", + "@typescript-eslint/visitor-keys": "8.44.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.44.1.tgz", + "integrity": "sha512-ycSa60eGg8GWAkVsKV4E6Nz33h+HjTXbsDT4FILyL8Obk5/mx4tbvCNsLf9zret3ipSumAOG89UcCs/KRaKYrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.44.1", + "@typescript-eslint/types": "^8.44.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.44.1.tgz", + "integrity": "sha512-NdhWHgmynpSvyhchGLXh+w12OMT308Gm25JoRIyTZqEbApiBiQHD/8xgb6LqCWCFcxFtWwaVdFsLPQI3jvhywg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.44.1", + "@typescript-eslint/visitor-keys": "8.44.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.44.1.tgz", + "integrity": "sha512-B5OyACouEjuIvof3o86lRMvyDsFwZm+4fBOqFHccIctYgBjqR3qT39FBYGN87khcgf0ExpdCBeGKpKRhSFTjKQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.44.1.tgz", + "integrity": "sha512-KdEerZqHWXsRNKjF9NYswNISnFzXfXNDfPxoTh7tqohU/PRIbwTmsjGK6V9/RTYWau7NZvfo52lgVk+sJh0K3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.44.1", + "@typescript-eslint/typescript-estree": "8.44.1", + "@typescript-eslint/utils": "8.44.1", + "debug": "^4.3.4", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.44.1.tgz", + "integrity": "sha512-Lk7uj7y9uQUOEguiDIDLYLJOrYHQa7oBiURYVFqIpGxclAFQ78f6VUOM8lI2XEuNOKNB7XuvM2+2cMXAoq4ALQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.44.1.tgz", + "integrity": "sha512-qnQJ+mVa7szevdEyvfItbO5Vo+GfZ4/GZWWDRRLjrxYPkhM+6zYB2vRYwCsoJLzqFCdZT4mEqyJoyzkunsZ96A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.44.1", + "@typescript-eslint/tsconfig-utils": "8.44.1", + "@typescript-eslint/types": "8.44.1", + "@typescript-eslint/visitor-keys": "8.44.1", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.44.1.tgz", + "integrity": "sha512-DpX5Fp6edTlocMCwA+mHY8Mra+pPjRZ0TfHkXI8QFelIKcbADQz1LUPNtzOFUriBB2UYqw4Pi9+xV4w9ZczHFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.44.1", + "@typescript-eslint/types": "8.44.1", + "@typescript-eslint/typescript-estree": "8.44.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.44.1.tgz", + "integrity": "sha512-576+u0QD+Jp3tZzvfRfxon0EA2lzcDt3lhUbsC6Lgzy9x2VR4E+JUiNyGHi5T8vk0TV+fpJ5GLG1JsJuWCaKhw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.44.1", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vitejs/plugin-react-swc": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-4.1.0.tgz", + "integrity": "sha512-Ff690TUck0Anlh7wdIcnsVMhofeEVgm44Y4OYdeeEEPSKyZHzDI9gfVBvySEhDfXtBp8tLCbfsVKPWEMEjq8/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "1.0.0-beta.35", + "@swc/core": "^1.13.5" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^4 || ^5 || ^6 || ^7" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "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==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz", + "integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.4", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cookie": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.0.2.tgz", + "integrity": "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "license": "ISC", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", + "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "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==", + "license": "ISC", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "license": "ISC", + "dependencies": { + "d3-path": "^3.1.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "license": "ISC", + "dependencies": { + "d3-array": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "license": "ISC", + "dependencies": { + "d3-time": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js-light": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz", + "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==", + "license": "MIT" + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-toolkit": { + "version": "1.45.1", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.45.1.tgz", + "integrity": "sha512-/jhoOj/Fx+A+IIyDNOvO3TItGmlMKhtX8ISAHKE90c4b/k1tqaqEZ+uUqfpU8DMnW5cgNJv606zS55jGvza0Xw==", + "license": "MIT", + "workspaces": [ + "docs", + "benchmarks" + ] + }, + "node_modules/esbuild": { + "version": "0.25.10", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.10.tgz", + "integrity": "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.10", + "@esbuild/android-arm": "0.25.10", + "@esbuild/android-arm64": "0.25.10", + "@esbuild/android-x64": "0.25.10", + "@esbuild/darwin-arm64": "0.25.10", + "@esbuild/darwin-x64": "0.25.10", + "@esbuild/freebsd-arm64": "0.25.10", + "@esbuild/freebsd-x64": "0.25.10", + "@esbuild/linux-arm": "0.25.10", + "@esbuild/linux-arm64": "0.25.10", + "@esbuild/linux-ia32": "0.25.10", + "@esbuild/linux-loong64": "0.25.10", + "@esbuild/linux-mips64el": "0.25.10", + "@esbuild/linux-ppc64": "0.25.10", + "@esbuild/linux-riscv64": "0.25.10", + "@esbuild/linux-s390x": "0.25.10", + "@esbuild/linux-x64": "0.25.10", + "@esbuild/netbsd-arm64": "0.25.10", + "@esbuild/netbsd-x64": "0.25.10", + "@esbuild/openbsd-arm64": "0.25.10", + "@esbuild/openbsd-x64": "0.25.10", + "@esbuild/openharmony-arm64": "0.25.10", + "@esbuild/sunos-x64": "0.25.10", + "@esbuild/win32-arm64": "0.25.10", + "@esbuild/win32-ia32": "0.25.10", + "@esbuild/win32-x64": "0.25.10" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.36.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.36.0.tgz", + "integrity": "sha512-hB4FIzXovouYzwzECDcUkJ4OcfOEkXTv2zRY6B9bkwjx/cprAq0uvm1nl7zvQ0/TsUk0zQiN4uPfJpB9m+rPMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.0", + "@eslint/config-helpers": "^0.3.1", + "@eslint/core": "^0.15.2", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.36.0", + "@eslint/plugin-kit": "^0.3.5", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz", + "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.4.21", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.21.tgz", + "integrity": "sha512-MWDWTtNC4voTcWDxXbdmBNe8b/TxfxRFUL6hXgKWJjN9c1AagYEmpiFWBWzDw+5H3SulWUe1pJKTnoSdmk88UA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": ">=8.40" + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/eventemitter3": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", + "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", + "license": "MIT" + }, + "node_modules/eventsource": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-2.0.2.tgz", + "integrity": "sha512-IzUmBGPR3+oUG9dUeXynyNmf91/3zUSJg1lCktzKw47OXuhco54U3r9B7O4XX+Rb1Itm9OZ2b0RkTs10bICOxA==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fetch-cookie": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-2.2.0.tgz", + "integrity": "sha512-h9AgfjURuCgA2+2ISl8GbavpUdR+WGAM2McW/ovn4tVccegp8ZqCKWSBR8uRdM8dDNlx5WdKRWxBYUwteLDCNQ==", + "license": "Unlicense", + "dependencies": { + "set-cookie-parser": "^2.4.8", + "tough-cookie": "^4.0.0" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/follow-redirects": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", + "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/immer": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/immer/-/immer-10.2.0.tgz", + "integrity": "sha512-d/+XTN3zfODyjr89gM3mPq1WNX2B8pYsu7eORitdwyA2sBubnTl3laYlBk4sXY5FUa5qTZGBDPJICVbvqzjlbw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/internmap": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", + "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "node_modules/psl": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz", + "integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==", + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/lupomontero" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/react": { + "version": "19.1.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz", + "integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.1.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.1.tgz", + "integrity": "sha512-Dlq/5LAZgF0Gaz6yiqZCf6VCcZs1ghAJyrsu84Q/GT0gV+mCxbfmKNoGRKBYMJ8IEdGPqu49YWXD02GCknEDkw==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.26.0" + }, + "peerDependencies": { + "react": "^19.1.1" + } + }, + "node_modules/react-is": { + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.2.4.tgz", + "integrity": "sha512-W+EWGn2v0ApPKgKKCy/7s7WHXkboGcsrXE+2joLyVxkbyVQfO3MUEaUQDHoSmb8TFFrSKYa9mw64WZHNHSDzYA==", + "license": "MIT", + "peer": true + }, + "node_modules/react-redux": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.2.0.tgz", + "integrity": "sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+g==", + "license": "MIT", + "dependencies": { + "@types/use-sync-external-store": "^0.0.6", + "use-sync-external-store": "^1.4.0" + }, + "peerDependencies": { + "@types/react": "^18.2.25 || ^19", + "react": "^18.0 || ^19", + "redux": "^5.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "redux": { + "optional": true + } + } + }, + "node_modules/react-router": { + "version": "7.9.2", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.9.2.tgz", + "integrity": "sha512-i2TPp4dgaqrOqiRGLZmqh2WXmbdFknUyiCRmSKs0hf6fWXkTKg5h56b+9F22NbGRAMxjYfqQnpi63egzD2SuZA==", + "license": "MIT", + "dependencies": { + "cookie": "^1.0.1", + "set-cookie-parser": "^2.6.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } + } + }, + "node_modules/react-router-dom": { + "version": "7.9.2", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.9.2.tgz", + "integrity": "sha512-pagqpVJnjZOfb+vIM23eTp7Sp/AAJjOgaowhP1f1TWOdk5/W8Uk8d/M/0wfleqx7SgjitjNPPsKeCZE1hTSp3w==", + "license": "MIT", + "dependencies": { + "react-router": "7.9.2" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + } + }, + "node_modules/recharts": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/recharts/-/recharts-3.8.1.tgz", + "integrity": "sha512-mwzmO1s9sFL0TduUpwndxCUNoXsBw3u3E/0+A+cLcrSfQitSG62L32N69GhqUrrT5qKcAE3pCGVINC6pqkBBQg==", + "license": "MIT", + "workspaces": [ + "www" + ], + "dependencies": { + "@reduxjs/toolkit": "^1.9.0 || 2.x.x", + "clsx": "^2.1.1", + "decimal.js-light": "^2.5.1", + "es-toolkit": "^1.39.3", + "eventemitter3": "^5.0.1", + "immer": "^10.1.1", + "react-redux": "8.x.x || 9.x.x", + "reselect": "5.1.1", + "tiny-invariant": "^1.3.3", + "use-sync-external-store": "^1.2.2", + "victory-vendor": "^37.0.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/redux": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz", + "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==", + "license": "MIT" + }, + "node_modules/redux-thunk": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz", + "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==", + "license": "MIT", + "peerDependencies": { + "redux": "^5.0.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "license": "MIT" + }, + "node_modules/reselect": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz", + "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==", + "license": "MIT" + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.2.tgz", + "integrity": "sha512-I25/2QgoROE1vYV+NQ1En9T9UFB9Cmfm2CJ83zZOlaDpvz29wGQSZXWKw7MiNXau7wYgB/T9fVIdIuEQ+KbiiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.52.2", + "@rollup/rollup-android-arm64": "4.52.2", + "@rollup/rollup-darwin-arm64": "4.52.2", + "@rollup/rollup-darwin-x64": "4.52.2", + "@rollup/rollup-freebsd-arm64": "4.52.2", + "@rollup/rollup-freebsd-x64": "4.52.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.52.2", + "@rollup/rollup-linux-arm-musleabihf": "4.52.2", + "@rollup/rollup-linux-arm64-gnu": "4.52.2", + "@rollup/rollup-linux-arm64-musl": "4.52.2", + "@rollup/rollup-linux-loong64-gnu": "4.52.2", + "@rollup/rollup-linux-ppc64-gnu": "4.52.2", + "@rollup/rollup-linux-riscv64-gnu": "4.52.2", + "@rollup/rollup-linux-riscv64-musl": "4.52.2", + "@rollup/rollup-linux-s390x-gnu": "4.52.2", + "@rollup/rollup-linux-x64-gnu": "4.52.2", + "@rollup/rollup-linux-x64-musl": "4.52.2", + "@rollup/rollup-openharmony-arm64": "4.52.2", + "@rollup/rollup-win32-arm64-msvc": "4.52.2", + "@rollup/rollup-win32-ia32-msvc": "4.52.2", + "@rollup/rollup-win32-x64-gnu": "4.52.2", + "@rollup/rollup-win32-x64-msvc": "4.52.2", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/scheduler": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", + "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-cookie-parser": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz", + "integrity": "sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==", + "license": "MIT" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tiny-invariant": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", + "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", + "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==", + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.44.1.tgz", + "integrity": "sha512-0ws8uWGrUVTjEeN2OM4K1pLKHK/4NiNP/vz6ns+LjT/6sqpaYzIVFajZb1fj/IDwpsrrHb3Jy0Qm5u9CPcKaeg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.44.1", + "@typescript-eslint/parser": "8.44.1", + "@typescript-eslint/typescript-estree": "8.44.1", + "@typescript-eslint/utils": "8.44.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "license": "MIT", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/use-sync-external-store": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz", + "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/victory-vendor": { + "version": "37.3.6", + "resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-37.3.6.tgz", + "integrity": "sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==", + "license": "MIT AND ISC", + "dependencies": { + "@types/d3-array": "^3.0.3", + "@types/d3-ease": "^3.0.0", + "@types/d3-interpolate": "^3.0.1", + "@types/d3-scale": "^4.0.2", + "@types/d3-shape": "^3.1.0", + "@types/d3-time": "^3.0.0", + "@types/d3-timer": "^3.0.0", + "d3-array": "^3.1.6", + "d3-ease": "^3.0.1", + "d3-interpolate": "^3.0.1", + "d3-scale": "^4.0.2", + "d3-shape": "^3.1.0", + "d3-time": "^3.0.0", + "d3-timer": "^3.0.1" + } + }, + "node_modules/vite": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.7.tgz", + "integrity": "sha512-VbA8ScMvAISJNJVbRDTJdCwqQoAareR/wutevKanhR2/1EkoXVZVkkORaYm/tNVCjP/UDTKtcw3bAkwOUdedmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.25.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ws": { + "version": "7.5.11", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.11.tgz", + "integrity": "sha512-zS54Oen9bITtp7kp2XM3AydrCIq1D+HwJOuH+c+e4LfpL/lotP5osijd+UoMnxwAam1GN8R4KtLAyIrIcBNpiA==", + "license": "MIT", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/codience/webview-ui/webview-ui/package.json b/codience/webview-ui/webview-ui/package.json new file mode 100644 index 00000000..8b78bd90 --- /dev/null +++ b/codience/webview-ui/webview-ui/package.json @@ -0,0 +1,33 @@ +{ + "name": "webview-ui", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "@microsoft/signalr": "^8.0.7", + "axios": "^1.12.2", + "react": "^19.1.1", + "react-dom": "^19.1.1", + "react-router-dom": "^7.9.2", + "recharts": "^3.8.1" + }, + "devDependencies": { + "@eslint/js": "^9.36.0", + "@types/react": "^19.1.13", + "@types/react-dom": "^19.1.9", + "@vitejs/plugin-react-swc": "^4.1.0", + "eslint": "^9.36.0", + "eslint-plugin-react-hooks": "^5.2.0", + "eslint-plugin-react-refresh": "^0.4.20", + "globals": "^16.4.0", + "typescript": "~5.8.3", + "typescript-eslint": "^8.44.0", + "vite": "^7.1.7" + } +} diff --git a/codience/webview-ui/webview-ui/public/vite.svg b/codience/webview-ui/webview-ui/public/vite.svg new file mode 100644 index 00000000..e7b8dfb1 --- /dev/null +++ b/codience/webview-ui/webview-ui/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/App.css b/codience/webview-ui/webview-ui/src/App.css new file mode 100644 index 00000000..6ca2355c --- /dev/null +++ b/codience/webview-ui/webview-ui/src/App.css @@ -0,0 +1,9 @@ +* { + margin: 0; + padding: 0; +} + +body { + font-family: sans-serif; + background-color: #1e2227; +} diff --git a/codience/webview-ui/webview-ui/src/App.tsx b/codience/webview-ui/webview-ui/src/App.tsx new file mode 100644 index 00000000..619ce7ab --- /dev/null +++ b/codience/webview-ui/webview-ui/src/App.tsx @@ -0,0 +1,15 @@ +import { BrowserRouter } from "react-router-dom"; +import "./App.css"; +import AppRoutes from "./routes/AppRoutes"; +import GlobalJiraListener from "./components/GlobalJiraListener"; + +function App() { + return ( + + + + + ); +} + +export default App; diff --git a/codience/webview-ui/webview-ui/src/assets/Codience Logo (3).png b/codience/webview-ui/webview-ui/src/assets/Codience Logo (3).png new file mode 100644 index 00000000..807c0a16 Binary files /dev/null and b/codience/webview-ui/webview-ui/src/assets/Codience Logo (3).png differ diff --git a/codience/webview-ui/webview-ui/src/assets/Codience Logo.png b/codience/webview-ui/webview-ui/src/assets/Codience Logo.png new file mode 100644 index 00000000..63db3550 Binary files /dev/null and b/codience/webview-ui/webview-ui/src/assets/Codience Logo.png differ diff --git a/codience/webview-ui/webview-ui/src/assets/copy_icon.png b/codience/webview-ui/webview-ui/src/assets/copy_icon.png new file mode 100644 index 00000000..7cfec0ca Binary files /dev/null and b/codience/webview-ui/webview-ui/src/assets/copy_icon.png differ diff --git a/codience/webview-ui/webview-ui/src/components/GlobalJiraListener.tsx b/codience/webview-ui/webview-ui/src/components/GlobalJiraListener.tsx new file mode 100644 index 00000000..379f410e --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/GlobalJiraListener.tsx @@ -0,0 +1,77 @@ +import { useEffect, useRef } from "react"; +import { useNavigate } from "react-router-dom"; +import jiraService from "../services/jiraService"; + +type JiraAuthMessage = { + type?: string; + code?: string; +}; + +const GlobalJiraListener = () => { + const navigate = useNavigate(); + const exchangeStartedRef = useRef(false); + + useEffect(() => { + const exchangeCode = async (code: string) => { + if (exchangeStartedRef.current) { + return; + } + exchangeStartedRef.current = true; + try { + const data = await jiraService.exchangeCode(code); + + // Use the existing jiraService to store tokens + jiraService.storeSession(data); + jiraService.storeProjects(data.projects ?? []); + + // Optionally also store directly as requested by the plan + localStorage.setItem("jiraToken", data.accessToken); + + alert("Jira connected successfully!"); + + navigate("/jira-project", { + state: { + projects: data.projects ?? [], + }, + }); + } catch (error) { + console.error("Failed to connect Jira", error); + } finally { + exchangeStartedRef.current = false; + } + }; + + const handleMessage = (event: MessageEvent) => { + const message = event.data as JiraAuthMessage; + if (message.type === "jiraAuthCode" && message.code) { + void exchangeCode(message.code); + } + }; + + window.addEventListener("message", handleMessage); + + // Keep the polling for local dev (webapp) in case we need it, + // although the plan says for web app it redirects to /callback + const searchForCode = () => { + const code = jiraService.getCodeFromSearch(); + if (code) { + void exchangeCode(code); + return true; + } + return false; + }; + + const intervalId = window.setInterval(() => { + searchForCode(); + }, 500); + + return () => { + window.clearInterval(intervalId); + window.removeEventListener("message", handleMessage); + }; + }, [navigate]); + + return null; +}; + +export default GlobalJiraListener; diff --git a/codience/webview-ui/webview-ui/src/components/layout/SideBar.tsx b/codience/webview-ui/webview-ui/src/components/layout/SideBar.tsx new file mode 100644 index 00000000..442e2ddd --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/layout/SideBar.tsx @@ -0,0 +1,34 @@ +import { NavLink } from "react-router-dom"; +import { useNavigate } from "react-router-dom"; +import "../styles/SideBar.css"; +import logo from "../../assets/Codience Logo (3).png"; +import { clearPRState } from "../../hooks/usePRs"; + +const SideBar = () => { + const navigate = useNavigate(); + + const handleSignOut = () => { + clearPRState(); + localStorage.clear(); + navigate("/"); + }; + + return ( +
+ Codience Logo + + + + +
+ ); +}; + +export default SideBar; diff --git a/codience/webview-ui/webview-ui/src/components/prs/PRRow.tsx b/codience/webview-ui/webview-ui/src/components/prs/PRRow.tsx new file mode 100644 index 00000000..b84d44f9 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/prs/PRRow.tsx @@ -0,0 +1,70 @@ +import React from "react"; +import { useNavigate } from "react-router-dom"; +import type { PullRequest } from "../../types/PullRequest"; + +interface Props { + pr: PullRequest; + selected?: boolean; + onSelect?: (pr: PullRequest) => void; +} + +export const RiskCell: React.FC<{ risk_level?: string }> = ({ risk_level }) => { + if (risk_level === "loading" || !risk_level) { + return Loading...; + } + if (risk_level === "low") return Low; + if (risk_level === "medium") return Medium; + if (risk_level === "high") return High; + return Unknown; +}; + +export const TierCell: React.FC<{ tier?: string }> = ({ tier }) => { + if (tier === "loading" || !tier) { + return Loading...; + } + if (tier === "low") return Low; + if (tier === "medium") return Medium; + if (tier === "high") return High; + return Unknown; +}; + +const PRRow: React.FC = ({ pr, selected, onSelect }) => { + const navigate = useNavigate(); + + const openSummary = (event: React.MouseEvent) => { + event.stopPropagation(); + onSelect?.(pr); + navigate(`/dashboard/pr-summary/${pr.number}`, { + state: { selectedPR: pr }, + }); + }; + + return ( + onSelect?.(pr)} + className={selected ? "selected-row" : ""} + > + {pr.title} + {pr.risk?.risk_score ?? "Loading..."} + + {pr.business_impact?.weighted_score ?? "Loading..."} + + {pr.files_changed ?? 0} + {pr.createdAt} + {pr.state} + + + + + ); +}; + +export default PRRow; diff --git a/codience/webview-ui/webview-ui/src/components/prs/PRsCharts.tsx b/codience/webview-ui/webview-ui/src/components/prs/PRsCharts.tsx new file mode 100644 index 00000000..95adce4e --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/prs/PRsCharts.tsx @@ -0,0 +1,78 @@ +import React from "react"; +import { + ResponsiveContainer, + LineChart, + Line, + XAxis, + YAxis, + Tooltip, + CartesianGrid, + PieChart, + Pie, + Cell, + Legend, +} from "recharts"; + +interface Props { + prsPerDay: { date: string; count: number }[]; + openClosedData: { name: string; value: number }[]; +} + +const PRsCharts: React.FC = ({ prsPerDay, openClosedData }) => { + return ( +
+
+ + + + + + + + + +
+ +
+ + + + {openClosedData.map((entry) => { + const color = entry.name === "Open" ? "#298f22" : "#821b1b"; + return ; + })} + + + + + +
+
+ ); +}; + +export default PRsCharts; diff --git a/codience/webview-ui/webview-ui/src/components/prs/PRsTable.tsx b/codience/webview-ui/webview-ui/src/components/prs/PRsTable.tsx new file mode 100644 index 00000000..daea28d9 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/prs/PRsTable.tsx @@ -0,0 +1,309 @@ +import { useEffect, useMemo, useState } from "react"; +import type { PullRequest } from "../../types/PullRequest"; +import "../styles/PRsTable.css"; +import PRRow from "./PRRow"; + +type Props = { + prs: PullRequest[] | null; + onSelect?: (pr: PullRequest) => void; + onRiskUpdate?: (updated: PullRequest[]) => void; + onVisibleChange?: (visible: PullRequest[]) => void; +}; + +const toSortableFilesChanged = (value: number | string | undefined) => { + if (typeof value === "number" && Number.isFinite(value)) { + return value; + } + + const parsed = Number(value); + return Number.isFinite(parsed) ? parsed : 0; +}; + +const toSortableScore = (value: number | string | undefined) => { + if (typeof value === "number" && Number.isFinite(value)) { + return value; + } + + const parsed = Number(value); + return Number.isFinite(parsed) ? parsed : 0; +}; + +const PRsTable = ({ prs, onSelect, onVisibleChange }: Props) => { + if (!prs) return null; + + const [updatedPRs, setUpdatedPRs] = useState(() => + prs.map((pr) => ({ + ...pr, + files_changed: pr.files_changed ?? 0, + risk: + pr.risk ?? + ({ + risk_score: "Loading...", + risk_level: "loading", + comments: 0, + files_changed: 0, + } as any), + business_impact: + pr.business_impact ?? + ({ + weighted_score: "Loading...", + tier: "loading", + ai_summary: "Loading...", + } as any), + })), + ); + + useEffect(() => { + setUpdatedPRs( + prs.map((pr) => ({ + ...pr, + files_changed: pr.files_changed ?? 0, + risk: + pr.risk ?? + ({ + risk_score: "Loading...", + risk_level: "loading", + comments: 0, + files_changed: pr.files_changed ?? 0, + } as any), + business_impact: + pr.business_impact ?? + ({ + weighted_score: "Loading...", + tier: "loading", + ai_summary: "Loading...", + } as any), + })), + ); + }, [prs]); + + const [filterRisk, setFilterRisk] = useState< + "all" | "low" | "medium" | "high" + >("all"); + const [filterBusinessImpact, setFilterBusinessImpact] = useState< + "all" | "low" | "medium" | "high" + >("all"); + const [filterStatus, setFilterStatus] = useState<"all" | "open" | "closed">( + "all", + ); + const [sortBy, setSortBy] = useState< + "none" | "risk" | "businessImpact" | "title" | "files" + >("none"); + const [sortDir, setSortDir] = useState<"asc" | "desc">("desc"); + + const [selectedPR, setSelectedPR] = useState(null); + + const handleSelect = (pr: PullRequest) => { + setSelectedPR(pr.number); + onSelect?.(pr); + }; + + const [currentPage, setCurrentPage] = useState(1); + const [pageSize, setPageSize] = useState(10); + const visiblePRs = useMemo(() => { + let list = [...updatedPRs]; + + if (filterRisk !== "all") { + list = list.filter( + (p) => (p.risk?.risk_level ?? "unknown") === filterRisk, + ); + } + + if (filterBusinessImpact !== "all") { + list = list.filter( + (p) => (p.business_impact?.tier ?? "unknown") === filterBusinessImpact, + ); + } + + if (filterStatus !== "all") { + list = list.filter((p) => (p.state ?? "").toLowerCase() === filterStatus); + } + + if (sortBy !== "none") { + list.sort((a, b) => { + let res = 0; + if (sortBy === "risk") { + res = + toSortableScore(a.risk?.risk_score) - + toSortableScore(b.risk?.risk_score); + } else if (sortBy === "businessImpact") { + res = + toSortableScore(a.business_impact?.weighted_score) - + toSortableScore(b.business_impact?.weighted_score); + } else if (sortBy === "title") { + res = (a.title ?? "").localeCompare(b.title ?? ""); + } else if (sortBy === "files") { + res = + toSortableFilesChanged(a.files_changed) - + toSortableFilesChanged(b.files_changed); + } + return sortDir === "asc" ? res : -res; + }); + } + + return list; + }, [ + updatedPRs, + filterRisk, + filterBusinessImpact, + filterStatus, + sortBy, + sortDir, + ]); + + useEffect(() => { + onVisibleChange?.(visiblePRs); + }, [visiblePRs, onVisibleChange]); + + const totalPages = Math.max(1, Math.ceil(visiblePRs.length / pageSize)); + + const startIndex = (currentPage - 1) * pageSize; + const endIndex = startIndex + pageSize; + const pageItems = visiblePRs.slice(startIndex, endIndex); + + const goToPage = (p: number) => { + const next = Math.max(1, Math.min(totalPages, p)); + setCurrentPage(next); + }; + + return ( +
+
+
+ + + + + +
+
+ +
+ + + + + + + + + + + + + + + + {pageItems.map((pr) => ( + + ))} + +
PR TitleRisk ScoreRisk LevelBusiness ImpactImpact TierFiles ChangedCreated AtStatusDetails
+
+ +
+
+ + + Page {currentPage} of {totalPages} + + +
+
+ +
+
+
+ ); +}; + +export default PRsTable; diff --git a/codience/webview-ui/webview-ui/src/components/reviewers/ReviewersList.css b/codience/webview-ui/webview-ui/src/components/reviewers/ReviewersList.css new file mode 100644 index 00000000..479960e8 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/reviewers/ReviewersList.css @@ -0,0 +1,130 @@ +.reviewersHeaderRow { + display: flex; + justify-content: space-between; + gap: 12px; + align-items: flex-start; +} + +.reviewerSettingsButton { + border: 1px solid rgba(255, 255, 255, 0.08); + background: linear-gradient(180deg, rgba(77, 124, 255, 0.18), rgba(77, 124, 255, 0.08)); + color: #eef2ff; + padding: 8px 12px; + border-radius: 10px; + font-weight: 600; + cursor: pointer; + white-space: nowrap; + transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; +} + +.reviewerSettingsButton:hover { + transform: translateY(-1px); + border-color: rgba(255, 255, 255, 0.16); +} + +.savedSettingsNote { + margin-top: 10px; + padding: 8px 10px; + border-radius: 8px; + background: rgba(255, 255, 255, 0.03); + color: #b9c1d4; + font-size: 12px; +} + +.reviewersAuthPrompt { + display: flex; + flex-direction: column; + gap: 14px; + align-items: flex-start; + padding: 18px 16px; + border-radius: 14px; + background: linear-gradient(180deg, #141617, #0f1112); + border: 1px solid rgba(255, 255, 255, 0.04); + color: #d7d7d7; +} + +.reviewersAuthPrompt p { + margin: 0; + line-height: 1.5; + color: #bdbdbd; +} + +.reviewersAuthButton { + display: block; + margin: 0 auto; + border: 1px solid rgba(34, 197, 94, 0.22); + border-radius: 12px; + background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.08)); + color: #ececec; + padding: 12px 18px; + font-weight: 700; + cursor: pointer; + transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, + background 0.15s ease; + box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); +} + +.reviewersAuthButton:hover { + transform: translateY(-1px); + border-color: rgba(34, 197, 94, 0.35); + background: linear-gradient(180deg, rgba(34, 197, 94, 0.26), rgba(34, 197, 94, 0.12)); + box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34); +} + +.reviewersAuthButton:focus-visible { + outline: 2px solid rgba(34, 197, 94, 0.55); + outline-offset: 3px; +} + +.justificationRow td { + padding: 0 12px 12px; + border: none; +} + +.reviewerJustification { + background: rgba(79, 157, 105, 0.08); + border-left: 3px solid #4f9d69; + border-radius: 6px; + padding: 12px; + margin-top: -4px; +} + +.reviewerJustificationTitle { + color: #6fcb8d; + font-size: 11px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.08em; + margin-bottom: 6px; +} + +.reviewerJustification p { + margin: 0; + color: #cfcfcf; + font-size: 13px; + line-height: 1.6; + white-space: pre-wrap; +} + + + +.reviewerRow { + cursor: pointer; + transition: background 0.15s ease; +} + +.reviewerRow:hover { + background: rgba(255, 255, 255, 0.04); +} + +.reviewerRow.expanded { + background: rgba(79, 157, 105, 0.08); +} + +/* .reviewerCell { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; +} */ +/* */ diff --git a/codience/webview-ui/webview-ui/src/components/reviewers/ReviewersList.tsx b/codience/webview-ui/webview-ui/src/components/reviewers/ReviewersList.tsx new file mode 100644 index 00000000..270614fc --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/reviewers/ReviewersList.tsx @@ -0,0 +1,152 @@ +import React, { useState } from "react"; +import { useNavigate } from "react-router-dom"; +import type { PullRequest } from "../../types/PullRequest"; +import { useRecommendedReviewers } from "../../hooks/useRecommendedReviewers"; +import type { RecommendedReviewer } from "../../types/Reviewers"; +import { useReviewerRecommendationSettings } from "../../hooks/useReviewerRecommendationSettings"; +import "./ReviewersList.css"; + +interface Props { + selectedPR: PullRequest | null; +} + +const ReviewersList: React.FC = ({ selectedPR }) => { + const navigate = useNavigate(); + + const [expandedReviewer, setExpandedReviewer] = useState(null); + + const { settings } = useReviewerRecommendationSettings(selectedPR); + + const hasJiraAuth = + Boolean(localStorage.getItem("JiraAccessToken")) && + Boolean(localStorage.getItem("JiraCloudId")) && + Boolean(localStorage.getItem("JiraProjectKey")); + + const { + data: reviewers, + loading, + error, + } = useRecommendedReviewers( + hasJiraAuth ? selectedPR : null, + settings + ); + + if (!hasJiraAuth) { + return ( +
+

+ Authenticate with Jira to load reviewer recommendations for this + service. +

+ + +
+ ); + } + + const renderRows = () => { + if (loading) + return ( + + Loading recommended reviewers… + + ); + + if (error) + return ( + + {error} + + ); + + if (!reviewers || reviewers.length === 0) + return ( + + + No recommended reviewers found for this PR. + + + ); + + return reviewers.map((r: RecommendedReviewer, idx) => ( + + + setExpandedReviewer( + expandedReviewer === r.reviewerName + ? null + : r.reviewerName + ) + } + style={{ cursor: "pointer" }} + > + {r.reviewerName} + + + {(r.confidence * 100).toFixed(1)}% + + + + {r.justification && + expandedReviewer === r.reviewerName && ( + + +
+
+ Why this reviewer? +
+ +

{r.justification}

+
+ + + )} +
+ )); + }; + + return ( +
+ {selectedPR ? ( + <> +
+
+ #{selectedPR.number} +
+ +
+ {selectedPR.title} +
+ +
+ {selectedPR.state} +
+
+ + + + + + + + + + {renderRows()} +
ReviewerConfidence
+ + ) : ( +
+ Click a PR to see recommended reviewers +
+ )} +
+ ); +}; + +export default ReviewersList; \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/components/styles/DeviceCodeCard.css b/codience/webview-ui/webview-ui/src/components/styles/DeviceCodeCard.css new file mode 100644 index 00000000..40fc6aed --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/styles/DeviceCodeCard.css @@ -0,0 +1,105 @@ +.deviceCodeContainer { + background-color: #ffffff17; + border: #4a5059 1px solid; + width: 80%; + margin-left: auto; + margin-right: auto; + margin-top: 50px; + height: 400px; + border-radius: 10px; + display: flex; + flex-flow: column; + align-items: center; + justify-content: space-around; + color: #b9b9b9; +} + +.deviceCodeContainer p { + font-weight: bold; +} + +.deviceCodeContainer .userCodeRow { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 0.6rem; +} + +.deviceCodeContainer .userCodeValue { + margin: 0; +} + +.deviceCodeContainer .copyDeviceCodeButton { + border: none; + background: transparent; + padding: 0; + cursor: pointer; + display: inline-flex; + align-items: center; + justify-content: center; + opacity: 1; + transition: opacity 0.2s ease, transform 0.2s ease; +} + +.deviceCodeContainer .copyDeviceCodeButton[data-copied="true"] { + opacity: 0.65; + transform: scale(0.96); +} + +.deviceCodeContainer .copyDeviceCodeIcon { + width: 1.15rem; + height: 1.15rem; + display: block; + filter: invert(1); +} + +.deviceCodeContainer .copyDeviceCodeButton:hover { + transform: scale(1.04); +} + +.deviceCodeContainer .copyDeviceCodeButton:focus-visible { + outline: 2px solid #b9b9b9; + outline-offset: 3px; + border-radius: 999px; +} + +.deviceCodeContainer .userCode { + background-color: #4a5059; + padding: 10px; + border-radius: 5px; + color: #1e2227; + font-size: 20px; + box-shadow: 3px 3px 5px 0 #00000078; + transition: 1s ; +} + +.deviceCodeContainer .userCode:hover { + padding-inline: 15px; +} + +.deviceCodeContainer a { + text-decoration: none; + color: #b9b9b9; + width: 100%; + text-align: center; + padding-block: 10px; + border-radius: 8px; + background-color: #1e2227; + transition: 0.3s; + font-weight: bold; +} + +.deviceCodeContainer .linksContainer { + display: flex; + flex-flow: column; + width: 80%; + gap: 10px; +} +.deviceCodeContainer a:hover { + background-color: #09b7319c; + +} + +.deviceCodeContainer .signInLink { + background-color: #0f6824; +} diff --git a/codience/webview-ui/webview-ui/src/components/styles/GetDeviceCode.css b/codience/webview-ui/webview-ui/src/components/styles/GetDeviceCode.css new file mode 100644 index 00000000..28233ba5 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/styles/GetDeviceCode.css @@ -0,0 +1,20 @@ +h1 { + color: #eeeeee3b; + text-align: center; + margin: 30px; +} + +.loading { + color: #eee; + width: 100%; + text-align: center; + margin-top: 100px; +} + +.error { + width: 100%; + text-align: center; + margin-top: 100px; + +} + diff --git a/codience/webview-ui/webview-ui/src/components/styles/MetricCard.css b/codience/webview-ui/webview-ui/src/components/styles/MetricCard.css new file mode 100644 index 00000000..377019da --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/styles/MetricCard.css @@ -0,0 +1,26 @@ +.metricCard { + background: #222425; + border-radius: 8px; + padding: 8px; + display: flex; + flex-direction: column; + gap: 6px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); + justify-content: center; +} +.metricCard .cardLabel { + font-size: 13px; + color: #bdbdbd; +} +.metricCard .cardValue { + font-size: 36px; + font-weight: 700; + color: #fff; +} + +.metricCard.open { + background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), #212524); +} +.metricCard.highRisk { + background: linear-gradient(180deg, rgba(220, 38, 38, 0.08), #222425); +} diff --git a/codience/webview-ui/webview-ui/src/components/styles/PRsTable.css b/codience/webview-ui/webview-ui/src/components/styles/PRsTable.css new file mode 100644 index 00000000..6a0cc29e --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/styles/PRsTable.css @@ -0,0 +1,216 @@ +table { + display: inline-table; + background-color: transparent; + color: #d7d7d7; + overflow: auto; + width: 100%; + font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; + border-spacing: 0; +} +table tr { + width: 60%; + height: 48px; +} + +table thead tr { + background-color: #181b1f; + color: #8b9097; + font-size: 12px; +} + +.prsTable thead th { + position: sticky; + top: 0px; + background: #181b1f; + z-index: 5; + padding: 12px 8px; + font-weight: 700; +} + +table th { + width: 10%; +} + +.prsTable th:first-child, +.prsTable td.titleCell { + width: 35%; +} +table td { + text-align: center; + border-bottom: 1px solid rgba(255, 255, 255, 0.055); + font-size: 12px; + padding: 10px 8px; +} +td.titleCell { + text-align: start; + padding-left: 12px; + text-transform: capitalize; + color: #ececec; + font-weight: 600; +} + +.riskCell.low { + color: var(--color-green); +} + +.riskCell.med { + color: var(--color-yellow); +} +.riskCell.high { + color: var(--color-red); +} + +.priorityCell span { + display: inline-block; + border-radius: 10px; + width: 100%; + max-width: 100px; + padding-block: 5px; + color: #eee; +} + +.priorityCell.high span { + background-color: var(--color-red); +} +.priorityCell.low span { + background-color: var(--color-green); +} +.priorityCell.med span { + background-color: var(--color-yellow); +} +td.open { + color: var(--color-green); +} +td.closed { + color: var(--color-red); +} +td.status { + text-transform: capitalize; +} +table tbody tr:hover { + background-color: rgba(255, 255, 255, 0.045); +} + +.prsTable tr { + cursor: pointer; + transition: background 0.2s ease, opacity 0.2s ease; +} + +.prsTable tr:hover { + opacity: 0.9; +} + +.selected-row { + background-color: rgba(79, 157, 105, 0.12) !important; + border-left: 4px solid #4f9d69; +} + +.prExpandButton { + width: 30px; + height: 30px; + display: inline-flex; + align-items: center; + justify-content: center; + border-radius: 6px; + border: 1px solid rgba(79, 157, 105, 0.18); + background: linear-gradient(180deg, #202423, #171a19); + color: #b7e4c5; + cursor: pointer; + font-size: 15px; + transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; +} + +.prExpandButton:hover { + border-color: rgba(79, 157, 105, 0.38); + background: linear-gradient(180deg, rgba(79, 157, 105, 0.22), rgba(79, 157, 105, 0.08)); + transform: translateY(-1px); +} + +.prsTableContainer { + max-height: 420px; + overflow: auto; + width: 100%; + border-radius: 7px; +} + +@media (max-width: 700px) { + .prsTable { + min-width: 0; + width: 100%; + } + .prsTableContainer { + max-height: calc(100vh - 320px); + } +} + +.prsTable { + min-width: 500px; +} + +.prsPagination { + display: flex; + justify-content: space-between; + align-items: center; + padding-top: 8px; + color: #bbb; + font-size: 12px; +} + +.prsControls { + display: flex; + gap: 8px; + align-items: center; + background: #181b1f; + padding: 6px 8px; + border-radius: 6px; + border: 1px solid rgba(255, 255, 255, 0.06); +} +.prsControls label { + color: var(--color-neutral); + font-size: 12px; + display: flex; + gap: 6px; + align-items: center; +} +.prsControls select { + background: #0f1316; + color: #e6e6e6; + border: 1px solid rgba(255, 255, 255, 0.08); + padding: 4px 6px; + border-radius: 4px; + font-size: 12px; +} +.prsControls .sortDir { + background: transparent; + color: var(--color-neutral); + border: 1px solid rgba(255, 255, 255, 0.08); + padding: 4px 8px; + border-radius: 4px; + cursor: pointer; +} +.paginationControls button { + background: transparent; + border: 1px solid rgba(255, 255, 255, 0.08); + color: #ddd; + padding: 6px 10px; + margin: 0 6px; + border-radius: 6px; + cursor: pointer; +} +.controls { + font-size: 14px; + font-family: sans-serif; + font-weight: bold; +} +.paginationControls button:disabled { + opacity: 0.4; + cursor: default; +} +.pageSizeControl select { + margin-left: 6px; + background: #1d1f22; + color: #ddd; + border: 1px solid rgba(255, 255, 255, 0.08); + padding: 4px 6px; + border-radius: 4px; +} diff --git a/codience/webview-ui/webview-ui/src/components/styles/SideBar.css b/codience/webview-ui/webview-ui/src/components/styles/SideBar.css new file mode 100644 index 00000000..ca083585 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/styles/SideBar.css @@ -0,0 +1,57 @@ +.sideBar { + background-color: #181b1f; + min-width: 200px; + max-width: 200px; + min-height: calc(100vh - 20px); + height: max-content; + display: inline-flex; + flex-flow: column nowrap; + gap: 15px; + padding: 10px; + position: sticky; + top: 0; +} +.logo { + width: 150px; +} +.navBar { + width: 100%; +} + +a { + display: inline-block; + text-decoration: none; + color: #eee; + width: calc(100% - 10px); + border-radius: 5px; + font-size: 20px; + padding: 5px; + margin-block: 5px; + font-family: sans-serif; + transition: 0.2s; +} + +a:hover, +.active { + background-color: #3d424c; +} + +button.signOut { + background-color: #960101; + outline: none; + border: none; + padding: 10px; + font-size: 16px; + font-weight: bold; + color: white; + border-radius: 8px; + transition: 0.1s; + position: absolute; + width: calc(100% - 20px); + margin-bottom: 10px; + bottom: 0; +} + +button.signOut:hover { + filter: brightness(1.05); +} diff --git a/codience/webview-ui/webview-ui/src/components/ui/CardsRow.tsx b/codience/webview-ui/webview-ui/src/components/ui/CardsRow.tsx new file mode 100644 index 00000000..e3dd2688 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/ui/CardsRow.tsx @@ -0,0 +1,29 @@ +import React from "react"; +import MetricCard from "./MetricCard"; + +type CardItem = { + label: string; + value: React.ReactNode; + className?: string; +}; + +interface Props { + items: CardItem[]; +} + +const CardsRow: React.FC = ({ items }) => { + return ( +
+ {items.map((it, idx) => ( + + ))} +
+ ); +}; + +export default CardsRow; diff --git a/codience/webview-ui/webview-ui/src/components/ui/MetricCard.tsx b/codience/webview-ui/webview-ui/src/components/ui/MetricCard.tsx new file mode 100644 index 00000000..caf979e3 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/ui/MetricCard.tsx @@ -0,0 +1,19 @@ +import React from "react"; +import "../styles/MetricCard.css"; + +interface Props { + label: string; + value: React.ReactNode; + className?: string; +} + +const MetricCard: React.FC = ({ label, value, className }) => { + return ( +
+
{label}
+
{value}
+
+ ); +}; + +export default MetricCard; diff --git a/codience/webview-ui/webview-ui/src/components/ui/RiskBarChart.tsx b/codience/webview-ui/webview-ui/src/components/ui/RiskBarChart.tsx new file mode 100644 index 00000000..07392704 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/ui/RiskBarChart.tsx @@ -0,0 +1,47 @@ +import React from "react"; +import { + ResponsiveContainer, + BarChart, + Bar, + XAxis, + YAxis, + Tooltip, + CartesianGrid, + Cell, +} from "recharts"; + +interface Item { + level: string; + range?: string | number; + count: number; +} + +interface Props { + data: Item[]; +} + +const RiskBarChart: React.FC = ({ data }) => { + return ( + + + + + + + + {data.map((entry) => { + const color = + entry.level === "low" + ? "#298f22" + : entry.level === "medium" + ? "#b06a35" + : "#821b1b"; + return ; + })} + + + + ); +}; + +export default RiskBarChart; diff --git a/codience/webview-ui/webview-ui/src/components/ui/UserCode.tsx b/codience/webview-ui/webview-ui/src/components/ui/UserCode.tsx new file mode 100644 index 00000000..d73e9be7 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/components/ui/UserCode.tsx @@ -0,0 +1,95 @@ +import { useNavigate } from "react-router-dom"; +import { useEffect, useState } from "react"; +import type { DeviceCodeResponse } from "../../types/DeviceCode"; +import { + fetchDeviceCode, + exchangeDeviceCode, +} from "../../services/auth.service"; +import "../styles/DeviceCodeCard.css"; +import copyIcon from "../../assets/copy_icon.png"; + +const DeviceCodeCard = () => { + const navigate = useNavigate(); + + const [deviceData, setDeviceData] = useState(null); + const [loading, setLoading] = useState(false); + const [error, setError] = useState(null); + const [copied, setCopied] = useState(false); + + const handleCopy = async () => { + if (!deviceData) return; + + await navigator.clipboard.writeText(deviceData.user_code); + setCopied(true); + window.setTimeout(() => setCopied(false), 1200); + }; + + useEffect(() => { + const runAuthFlow = async () => { + try { + setLoading(true); + setError(null); + + const deviceResponse = await fetchDeviceCode(); + setDeviceData(deviceResponse); + const token = await exchangeDeviceCode(deviceResponse); + localStorage.setItem("User", token.login); + navigate("/getRepo"); + } catch (err: any) { + setError(err?.message || "Authentication failed"); + } finally { + setLoading(false); + } + }; + + runAuthFlow(); + }, [navigate]); + + return ( +
+

User Code

+ + {deviceData && ( + <> +
+

+ {deviceData.user_code} +

+ +
+ + + + )} + + {loading &&

Loading authentication...

} + + {error &&

{error}

} +
+ ); +}; + +export default DeviceCodeCard; diff --git a/codience/webview-ui/webview-ui/src/hooks/useGitHubProfile.ts b/codience/webview-ui/webview-ui/src/hooks/useGitHubProfile.ts new file mode 100644 index 00000000..a833a656 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/hooks/useGitHubProfile.ts @@ -0,0 +1,53 @@ +import { useEffect, useState } from "react"; +import { + fetchGitHubProfile +} from "../services/profile.service"; +import type { GitHubProfile } from "../types/GitHubProfile"; +export const useGitHubProfile = (username: string | null) => { + const [profile, setProfile] = useState(null); + const [loading, setLoading] = useState(Boolean(username)); + const [error, setError] = useState(null); + + useEffect(() => { + if (!username) { + setProfile(null); + setLoading(false); + setError("No username available. Sign in again to load your profile."); + return; + } + + let cancelled = false; + + const loadProfile = async () => { + try { + setLoading(true); + setError(null); + + const data = await fetchGitHubProfile(username); + + if (!cancelled) { + setProfile(data); + } + } catch (err) { + if (!cancelled) { + setError("Failed to load profile data."); + setProfile(null); + } + } finally { + if (!cancelled) { + setLoading(false); + } + } + }; + + void loadProfile(); + + return () => { + cancelled = true; + }; + }, [username]); + + return { profile, loading, error }; +}; + +export default useGitHubProfile; \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/hooks/usePRs.ts b/codience/webview-ui/webview-ui/src/hooks/usePRs.ts new file mode 100644 index 00000000..be71ec73 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/hooks/usePRs.ts @@ -0,0 +1,306 @@ +import { useEffect, useState } from "react"; +import { + enrichPRsWithFilesChanged, + fetchPRs, + normalizePullRequest, +} from "../services/prs.service"; +import { enrichPRsWithBusinessImpact } from "../services/businessImpact.service"; +import { enrichPRsWithRisk } from "../services/risk.service"; +import { subscribeToPullRequestCreated } from "../services/pullRequestsHub.service"; +import type { PullRequest } from "../types/PullRequest"; + +type PRCache = { + data: PullRequest[] | null; + loading: boolean; + error: string | null; + promise: Promise | null; + repo: string | null; + subscribers: Set<() => void>; +}; + +const prCache: PRCache = { + data: null, + loading: true, + error: null, + promise: null, + repo: null, + subscribers: new Set(), +}; + +let livePRUnsubscribe: (() => void) | null = null; +let livePRRepoKey: string | null = null; + +const emitPRCacheUpdate = () => { + prCache.subscribers.forEach((subscriber) => subscriber()); +}; + +const resetPRCache = () => { + livePRUnsubscribe?.(); + livePRUnsubscribe = null; + livePRRepoKey = null; + + setPRCache({ + data: null, + loading: true, + error: null, + promise: null, + repo: null, + }); +}; + +const setPRCache = (next: Partial>) => { + Object.assign(prCache, next); + emitPRCacheUpdate(); +}; + +const isResolvedFilesChanged = (value: PullRequest["files_changed"]) => + typeof value === "number" || value === "Error"; + +const isResolvedRisk = (risk: PullRequest["risk"]) => + Boolean( + risk && + risk.risk_score !== "Loading..." && + risk.risk_level !== "loading", + ); + +const isResolvedBusinessImpact = (businessImpact: PullRequest["business_impact"]) => + Boolean( + businessImpact && + businessImpact.weighted_score !== "Loading..." && + businessImpact.tier !== "loading", + ); + +const mergePRCacheItem = (updatedPR: PullRequest) => { + if (!prCache.data) return; + + setPRCache({ + data: prCache.data.map((pr) => { + if (pr.number !== updatedPR.number) return pr; + + const nextFilesChanged = isResolvedFilesChanged(pr.files_changed) + ? pr.files_changed + : updatedPR.files_changed; + + const riskSource = + isResolvedRisk(updatedPR.risk) || !isResolvedRisk(pr.risk) + ? updatedPR.risk ?? pr.risk + : pr.risk; + + const businessImpactSource = + isResolvedBusinessImpact(updatedPR.business_impact) || + !isResolvedBusinessImpact(pr.business_impact) + ? updatedPR.business_impact ?? pr.business_impact + : pr.business_impact; + + const mergedRisk = { + risk_score: riskSource?.risk_score ?? "N/A", + risk_level: riskSource?.risk_level ?? "unknown", + comments: riskSource?.comments ?? pr.risk?.comments ?? 0, + files_changed: nextFilesChanged, + }; + + return { + ...pr, + ...updatedPR, + files_changed: nextFilesChanged, + risk: mergedRisk, + business_impact: + businessImpactSource ?? { + weighted_score: "N/A", + tier: "unknown", + ai_summary: "Business impact is unavailable.", + }, + }; + }), + }); +}; + +const upsertPRCacheItem = (updatedPR: PullRequest) => { + if (!prCache.data) { + setPRCache({ data: [updatedPR] }); + return; + } + + const existingIndex = prCache.data.findIndex((pr) => pr.number === updatedPR.number); + + if (existingIndex === -1) { + setPRCache({ data: [updatedPR, ...prCache.data] }); + return; + } + + mergePRCacheItem(updatedPR); +}; + +const enrichNewPullRequest = (pr: PullRequest) => { + const filesPromise = enrichPRsWithFilesChanged([pr], (updatedPR) => { + mergePRCacheItem(updatedPR); + }).catch((filesErr) => { + console.error("Files changed enrichment failed:", filesErr); + }); + + const riskPromise = enrichPRsWithRisk([pr], (updatedPR) => { + mergePRCacheItem(updatedPR); + }).catch((riskErr) => { + console.error("Risk enrichment failed:", riskErr); + }); + + const businessImpactPromise = enrichPRsWithBusinessImpact([pr], (updatedPR) => { + mergePRCacheItem(updatedPR); + }).catch((businessImpactErr) => { + console.error("Business impact enrichment failed:", businessImpactErr); + }); + + void Promise.allSettled([filesPromise, riskPromise, businessImpactPromise]); +}; + +const getGitHubAppRegistrationId = () => + "95bbca99-517c-4832-8e58-9ac26ed13c6e"; + +const ensureLivePRSubscription = () => { + const repo = localStorage.getItem("RepoName"); + const userName = localStorage.getItem("User"); + const owner = localStorage.getItem("ownerName") ?? userName; + + if (!repo || !userName || !owner) { + return; + } + + const repoKey = `${owner}/${repo}`; + + if (livePRRepoKey === repoKey && livePRUnsubscribe) { + return; + } + + livePRUnsubscribe?.(); + livePRUnsubscribe = null; + livePRRepoKey = repoKey; + + void subscribeToPullRequestCreated( + { + userId: getGitHubAppRegistrationId(), + owner, + repo, + }, + (payload) => { + const newPR = normalizePullRequest(payload); + upsertPRCacheItem(newPR); + enrichNewPullRequest(newPR); + }, + ) + .then((unsubscribe) => { + if (livePRRepoKey !== repoKey) { + unsubscribe(); + return; + } + + livePRUnsubscribe = unsubscribe; + }) + .catch((err) => { + if (livePRRepoKey === repoKey) { + livePRRepoKey = null; + } + + console.error("Failed to subscribe to pull request updates:", err); + }); +}; + +export const usePRs = () => { + const [data, setData] = useState(prCache.data); + const [loading, setLoading] = useState(prCache.loading); + const [error, setError] = useState(prCache.error); + + const syncFromCache = () => { + setData(prCache.data); + setLoading(prCache.loading); + setError(prCache.error); + }; + + const load = async (force = false) => { + const currentRepo = localStorage.getItem("RepoName"); + + if (!force && prCache.repo && currentRepo && prCache.repo !== currentRepo) { + force = true; + } + + if (!force) { + if (prCache.data) { + syncFromCache(); + return prCache.data; + } + + if (prCache.promise) { + syncFromCache(); + return prCache.promise; + } + } + + if (force) { + setPRCache({ data: null, loading: true, error: null, promise: null, repo: null }); + } else { + setPRCache({ loading: true, error: null }); + } + + const request = (async () => { + try { + const res = await fetchPRs(); + + setPRCache({ data: res, loading: false, error: null, repo: currentRepo ?? null }); + ensureLivePRSubscription(); + + const filesPromise = enrichPRsWithFilesChanged(res, (updatedPR) => { + mergePRCacheItem(updatedPR); + }).catch((filesErr) => { + console.error("Files changed enrichment failed:", filesErr); + }); + + const riskPromise = enrichPRsWithRisk(res, (updatedPR) => { + mergePRCacheItem(updatedPR); + }).catch((riskErr) => { + console.error("Risk enrichment failed:", riskErr); + }); + + const businessImpactPromise = enrichPRsWithBusinessImpact(res, (updatedPR) => { + mergePRCacheItem(updatedPR); + }).catch((businessImpactErr) => { + console.error("Business impact enrichment failed:", businessImpactErr); + }); + + void Promise.allSettled([filesPromise, riskPromise, businessImpactPromise]); + + return res; + } catch (err) { + setPRCache({ error: "Failed to load PRs", loading: false }); + throw err; + } finally { + setPRCache({ promise: null }); + } + })(); + + setPRCache({ promise: request }); + return request; + }; + + useEffect(() => { + syncFromCache(); + prCache.subscribers.add(syncFromCache); + + const handleRepoChange = (_e: Event) => { + void load(true); + }; + + window.addEventListener("repoChanged", handleRepoChange); + + void load(); + + return () => { + prCache.subscribers.delete(syncFromCache); + window.removeEventListener("repoChanged", handleRepoChange); + }; + }, []); + + return { data, loading, error, reload: load }; +}; + +export const clearPRState = resetPRCache; + +export default usePRs; diff --git a/codience/webview-ui/webview-ui/src/hooks/usePrSummary.ts b/codience/webview-ui/webview-ui/src/hooks/usePrSummary.ts new file mode 100644 index 00000000..80b5e8a1 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/hooks/usePrSummary.ts @@ -0,0 +1,45 @@ +import { useEffect, useState } from "react"; +import { fetchPrSummary } from "../services/prSummary.service"; + +export const usePrSummary = (prNumber: number | null) => { + const [summary, setSummary] = useState(null); + const [loading, setLoading] = useState(false); + const [error, setError] = useState(null); + + useEffect(() => { + if (!prNumber) { + setSummary(null); + setError(null); + setLoading(false); + return; + } + + let active = true; + + const load = async () => { + try { + setLoading(true); + setError(null); + const result = await fetchPrSummary(prNumber); + if (active) setSummary(result); + } catch (err: any) { + if (active) { + setError(err?.message || "Failed to load PR summary."); + setSummary(null); + } + } finally { + if (active) setLoading(false); + } + }; + + void load(); + + return () => { + active = false; + }; + }, [prNumber]); + + return { summary, loading, error }; +}; + +export default usePrSummary; diff --git a/codience/webview-ui/webview-ui/src/hooks/useRecommendedReviewers.ts b/codience/webview-ui/webview-ui/src/hooks/useRecommendedReviewers.ts new file mode 100644 index 00000000..8a925abf --- /dev/null +++ b/codience/webview-ui/webview-ui/src/hooks/useRecommendedReviewers.ts @@ -0,0 +1,56 @@ +import { useEffect, useState, useCallback } from "react"; +import { fetchRecommendedReviewers } from "../services/reviewers.service"; +import type { RecommendedReviewer } from "../types/Reviewers"; +import type { PullRequest } from "../types/PullRequest"; +import type { ReviewerRecommendationSettings } from "../types/Reviewers"; + +export const useRecommendedReviewers = ( + selectedPR: PullRequest | null, + settings: ReviewerRecommendationSettings | null = null, +) => { + const [data, setData] = useState(null); + const [loading, setLoading] = useState(false); + const [error, setError] = useState(null); + + const load = useCallback(async () => { + if (!selectedPR) { + setData(null); + setError(null); + setLoading(false); + return; + } + + try { + setLoading(true); + setError(null); + const res = await fetchRecommendedReviewers( + { + owner: "", + repo: settings?.repoName ?? "", + pr_number: selectedPR.number, + options: { + top_k: settings?.k ?? 3, + }, + jira_token: "", + jira_cloud_id: "", + jira_project_key: "", + }, + settings, + ); + setData(res); + } catch (e) { + setError("Failed to load recommended reviewers"); + setData(null); + } finally { + setLoading(false); + } + }, [selectedPR, settings]); + + useEffect(() => { + void load(); + }, [load]); + + return { data, loading, error, reload: load }; +}; + +export default useRecommendedReviewers; diff --git a/codience/webview-ui/webview-ui/src/hooks/useRepo.ts b/codience/webview-ui/webview-ui/src/hooks/useRepo.ts new file mode 100644 index 00000000..cae1b100 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/hooks/useRepo.ts @@ -0,0 +1,24 @@ +import { useCallback, useState } from "react"; + +export const useRepo = (initial?: string | null) => { + const getStored = () => initial ?? localStorage.getItem("RepoName"); + const [repo, setRepoState] = useState(getStored()); + + const setRepo = useCallback((value: string) => { + localStorage.setItem("RepoName", value); + setRepoState(value); + try { + window.dispatchEvent(new CustomEvent("repoChanged", { detail: value })); + } catch (e) { + } + }, []); + + const clearRepo = useCallback(() => { + localStorage.removeItem("RepoName"); + setRepoState(null); + }, []); + + return { repo, setRepo, clearRepo }; +}; + +export default useRepo; diff --git a/codience/webview-ui/webview-ui/src/hooks/useReviewerRecommendationSettings.ts b/codience/webview-ui/webview-ui/src/hooks/useReviewerRecommendationSettings.ts new file mode 100644 index 00000000..393d352a --- /dev/null +++ b/codience/webview-ui/webview-ui/src/hooks/useReviewerRecommendationSettings.ts @@ -0,0 +1,49 @@ +import { useCallback, useEffect, useState } from "react"; +import { useLocation } from "react-router-dom"; +import type { PullRequest } from "../types/PullRequest"; +import type { ReviewerRecommendationSettings } from "../types/Reviewers"; +import { + loadReviewerRecommendationSettings, + saveReviewerRecommendationSettings, +} from "../utils/reviewerRecommendationSettings"; + +export const useReviewerRecommendationSettings = ( + selectedPR: PullRequest | null, +) => { + const location = useLocation(); + + const getInitialSettings = () => { + if (!selectedPR) return null; + + const repoName = localStorage.getItem("RepoName") ?? "default-repo"; + return repoName + ? loadReviewerRecommendationSettings(repoName, selectedPR.number) + : null; + }; + + const [settings, setSettings] = useState( + getInitialSettings, + ); + + useEffect(() => { + if (!selectedPR) { + setSettings(null); + return; + } + + setSettings(getInitialSettings()); + }, [selectedPR?.number, selectedPR?.title, location.pathname]); + + const saveSettings = useCallback( + (nextSettings: ReviewerRecommendationSettings) => { + const saved = saveReviewerRecommendationSettings(nextSettings); + setSettings(saved); + return saved; + }, + [], + ); + + return { settings, setSettings, saveSettings }; +}; + +export default useReviewerRecommendationSettings; \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/index.css b/codience/webview-ui/webview-ui/src/index.css new file mode 100644 index 00000000..7ff6739b --- /dev/null +++ b/codience/webview-ui/webview-ui/src/index.css @@ -0,0 +1,26 @@ +:root { + --color-green: #64aa61; + --color-yellow: #b09135; + --color-red: #821b1b; + --color-neutral: #a6adb7; +} + +html, +body, +#root { + height: 100%; +} + +body { + margin: 0; + background: #0f1720; + color: #e6e6e6; + font-family: + Inter, + system-ui, + -apple-system, + "Segoe UI", + Roboto, + "Helvetica Neue", + Arial; +} diff --git a/codience/webview-ui/webview-ui/src/main.tsx b/codience/webview-ui/webview-ui/src/main.tsx new file mode 100644 index 00000000..68f8cfcc --- /dev/null +++ b/codience/webview-ui/webview-ui/src/main.tsx @@ -0,0 +1,8 @@ +import ReactDOM from "react-dom/client"; +import "./index.css"; +import App from "./App"; +const root = ReactDOM.createRoot( + document.getElementById("root") as HTMLElement, +); + +root.render(); diff --git a/codience/webview-ui/webview-ui/src/pages/Dashboard.tsx b/codience/webview-ui/webview-ui/src/pages/Dashboard.tsx new file mode 100644 index 00000000..7b4ae9c6 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/Dashboard.tsx @@ -0,0 +1,310 @@ +import React, { useEffect, useMemo, useState } from "react"; +import { useNavigate } from "react-router-dom"; +import PRsTable from "../components/prs/PRsTable"; +import CardsRow from "../components/ui/CardsRow"; +import PRsCharts from "../components/prs/PRsCharts"; +import ReviewersList from "../components/reviewers/ReviewersList"; +import RiskBarChart from "../components/ui/RiskBarChart"; +import type { PullRequest } from "../types/PullRequest"; +import "./styles/Dashboard.css"; +import { usePRs } from "../hooks/usePRs"; + +const toNumericScore = (value: number | string | undefined) => { + if (typeof value === "number") return value; + const parsed = Number(value); + return Number.isFinite(parsed) ? parsed : null; +}; + +const isHighBusinessImpact = (pr: PullRequest) => { + const tier = pr.business_impact?.tier?.toLowerCase(); + if (tier === "high") return true; + + const score = toNumericScore(pr.business_impact?.weighted_score); + return score !== null && score >= 70; +}; + +const parsePRDate = (value: string | undefined) => { + if (!value) return null; + + const trimmed = value.trim(); + const dayMonthYear = trimmed.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/); + + if (dayMonthYear) { + const [, day, month, year] = dayMonthYear; + return new Date(Number(year), Number(month) - 1, Number(day)); + } + + const parsed = new Date(trimmed); + return Number.isNaN(parsed.getTime()) ? null : parsed; +}; + +const toDayKey = (date: Date) => + `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String( + date.getDate(), + ).padStart(2, "0")}`; + +const Dashboard: React.FC = () => { + const navigate = useNavigate(); + const projectName: string | null = localStorage.getItem("RepoName"); + const { data: prs, loading, error } = usePRs(); + const [selectedPR, setSelectedPR] = useState(null); + const [updatedPRs, setUpdatedPRs] = useState(prs); + const [visiblePRs, setVisiblePRs] = useState(null); + + useEffect(() => { + if (!selectedPR && prs && prs.length > 0) { + setSelectedPR(prs[0]); + } + }, [prs]); + + useEffect(() => { + if (!selectedPR || !prs) return; + + const refreshedPR = prs.find((pr) => pr.number === selectedPR.number); + if (refreshedPR && refreshedPR !== selectedPR) { + setSelectedPR(refreshedPR); + } + }, [prs, selectedPR?.number]); + + useEffect(() => { + setUpdatedPRs(prs); + }, [prs]); + const userName = localStorage.getItem("User"); + + const stats = useMemo(() => { + let open = 0; + let highRisk = 0; + let highImpact = 0; + if (!updatedPRs) return { open, highRisk, highImpact }; + updatedPRs.forEach((p) => { + if (p.state === "open") open++; + if (p.risk?.risk_level === "high") highRisk++; + if (isHighBusinessImpact(p)) highImpact++; + }); + return { open, highRisk, highImpact }; + }, [updatedPRs]); + + const handleSelectPR = (pr: PullRequest) => { + setSelectedPR(pr); + }; + + const handleRiskUpdate = (newPRs: PullRequest[]) => { + setUpdatedPRs(newPRs); + }; + + const openReviewerSettings = () => { + if (!selectedPR) return; + + navigate(`/dashboard/reviewer-settings/${selectedPR.number}`, { + state: { selectedPR }, + }); + }; + + const chartData = useMemo(() => { + const levels = ["low", "medium", "high"] as const; + const source = visiblePRs ?? updatedPRs; + if (!source) { + return levels.map((l) => ({ level: l, range: "-", count: 0 })); + } + + return levels.map((level) => { + const prsForLevel = source.filter( + (p) => (p as any)?.risk?.risk_level === level, + ); + if (prsForLevel.length === 0) return { level, range: "-", count: 0 }; + + const scores = prsForLevel + .map((p) => { + const raw = (p as any)?.risk?.risk_score; + const s = typeof raw === "string" ? parseFloat(raw) : raw; + return Number.isFinite(s) ? Math.max(0, Math.min(100, s)) : null; + }) + .filter((v): v is number => v !== null && v !== undefined); + + if (scores.length === 0) + return { level, range: "-", count: prsForLevel.length }; + + const min = Math.min(...scores); + const max = Math.max(...scores); + return { + level, + range: `${Math.round(min)}-${Math.round(max)}`, + count: prsForLevel.length, + }; + }); + }, [visiblePRs, updatedPRs]); + + const prsPerDay = useMemo(() => { + const days = 7; + const now = new Date(); + const dayBuckets: { key: string; label: string }[] = []; + for (let i = days - 1; i >= 0; i--) { + const d = new Date(now.getFullYear(), now.getMonth(), now.getDate() - i); + dayBuckets.push({ + key: toDayKey(d), + label: d.toLocaleDateString(undefined, { month: "short", day: "numeric" }), + }); + } + + const counts: Record = {}; + dayBuckets.forEach(({ key }) => (counts[key] = 0)); + + const source = visiblePRs ?? updatedPRs ?? prs ?? []; + source.forEach((pr) => { + const date = parsePRDate(pr.createdAt); + if (!date) return; + + const key = toDayKey(date); + if (counts[key] !== undefined) counts[key]++; + }); + + return dayBuckets.map(({ key, label }) => ({ + date: label, + count: counts[key] ?? 0, + })); + }, [visiblePRs, updatedPRs, prs]); + + const openClosedData = useMemo(() => { + const source = visiblePRs ?? updatedPRs ?? prs ?? []; + let open = 0; + let closed = 0; + source.forEach((p) => { + if (p.state === "open") open++; + else closed++; + }); + if (open === 0 && closed === 0) { + open = 1; + closed = 0; + } + return [ + { name: "Open", value: open }, + { name: "Closed", value: closed }, + ]; + }, [visiblePRs, updatedPRs, prs]); + + if (loading) return

Loading...

; + if (error) return

{error}

; + + return ( +
+
+
+

{projectName ?? "ProjectName"}

+
+
{userName}
+
+
+ +
+
+ +
+
+

Pull Requests

+
+
+ setVisiblePRs(v)} + /> + +
+
+
+ +
+ +
+

Risk Level

+ +
+
+
+
+
+ ); +}; + +export default Dashboard; diff --git a/codience/webview-ui/webview-ui/src/pages/GetRepoName.tsx b/codience/webview-ui/webview-ui/src/pages/GetRepoName.tsx new file mode 100644 index 00000000..12ec1db2 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/GetRepoName.tsx @@ -0,0 +1,182 @@ +import { useEffect, useMemo, useState } from "react"; +import { useNavigate } from "react-router-dom"; +import "./styles/GetRepoName.css"; +import { useRepo } from "../hooks/useRepo"; +import type { GitHubRepo } from "../types/GitHubRepo"; +import { + fetchUserRepos, + storeOwnerNameFromRepoUrl, +} from "../services/repos.service"; +import { connectGitHubApp } from "../services/githubApp.service"; +import jiraService from "../services/jiraService"; + +const GetRepoName = () => { + const [query, setQuery] = useState(""); + const [repos, setRepos] = useState([]); + const [selectedRepo, setSelectedRepo] = useState(null); + const [loading, setLoading] = useState(false); + const [error, setError] = useState(null); + const navigate = useNavigate(); + const { setRepo } = useRepo(); + const userName = localStorage.getItem("User") ?? ""; + + const getRepoLabel = (repo: GitHubRepo) => { + return repo.name; + }; + + useEffect(() => { + if (!userName) { + setError("No username found in local storage."); + return; + } + + const loadRepos = async () => { + try { + setLoading(true); + setError(null); + const fetchedRepos = await fetchUserRepos(userName, 1, 50); + setRepos(fetchedRepos); + } catch (err: any) { + setError(err?.message || "Failed to load repositories."); + } finally { + setLoading(false); + } + }; + + void loadRepos(); + }, [userName]); + + const matches = useMemo(() => { + const search = query.trim().toLowerCase(); + + if (!search) return []; + + return repos.filter((repo) => { + const repoName = repo.name?.toLowerCase() ?? ""; + + return repoName.includes(search); + }); + }, [query, repos]); + + const pickRepo = (repo: GitHubRepo) => { + const repoName = getRepoLabel(repo); + setSelectedRepo(repo); + setQuery(repoName); + }; + + const submit = async () => { + if (!selectedRepo) return; + + try { + setLoading(true); + setError(null); + + const repoName = getRepoLabel(selectedRepo); + const parsedOwner = + selectedRepo.html_url + ? storeOwnerNameFromRepoUrl(selectedRepo.html_url) + : selectedRepo.owner?.login ?? localStorage.getItem("ownerName") ?? userName; + const owner = + parsedOwner || + selectedRepo.owner?.login || + localStorage.getItem("ownerName") || + userName; + + if (owner) { + localStorage.setItem("ownerName", owner); + } + + setRepo(repoName); + + const appConnection = await connectGitHubApp({ + userName, + owner, + repo: repoName, + }); + + if (!appConnection.isInstalled) { + if (appConnection.installUrl) { + localStorage.setItem("GitHubAppInstallUrl", appConnection.installUrl); + } + + navigate("/github-app-install", { + state: { + installUrl: appConnection.installUrl, + message: appConnection.message, + }, + }); + return; + } + + navigate(jiraService.hasSession() ? "/jira-project" : "/jira-login"); + } catch (err: any) { + setError(err?.message || "Failed to connect GitHub App."); + } finally { + setLoading(false); + } + }; + + return ( +
+
+

Select Repo

+ +
+ { + const value = e.currentTarget.value; + setQuery(value); + setSelectedRepo(null); + }} + placeholder="Repo Name..." + aria-label="Search repositories" + autoComplete="off" + /> + + {query.trim().length > 0 && ( +
+ {loading &&
Loading repositories...
} + {!loading && error &&
{error}
} + {!loading && !error && matches.length === 0 && ( +
No matching repositories found.
+ )} + {!loading && + !error && + matches.map((repo) => { + const repoName = getRepoLabel(repo); + + return ( + + ); + })} +
+ )} +
+ + + + {error &&
{error}
} +
+
+ ); +}; + +export default GetRepoName; diff --git a/codience/webview-ui/webview-ui/src/pages/GitHubAppInstall.tsx b/codience/webview-ui/webview-ui/src/pages/GitHubAppInstall.tsx new file mode 100644 index 00000000..0662e6d0 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/GitHubAppInstall.tsx @@ -0,0 +1,56 @@ +import { useMemo } from "react"; +import { useLocation, useNavigate } from "react-router-dom"; +import "./styles/GetRepoName.css"; +import { getVsCodeApi, isVsCodeWebview } from "../services/vscodeApi"; + +interface GitHubAppInstallLocationState { + installUrl?: string; + message?: string; +} + +const GitHubAppInstall = () => { + const navigate = useNavigate(); + const location = useLocation(); + const state = location.state as GitHubAppInstallLocationState | null; + + const installUrl = useMemo( + () => state?.installUrl ?? localStorage.getItem("GitHubAppInstallUrl") ?? "", + [state?.installUrl], + ); + + const message = + state?.message ?? + "Install the GitHub App for this repository before continuing."; + + const handleInstall = () => { + if (installUrl) { + if (isVsCodeWebview()) { + getVsCodeApi()?.postMessage({ command: "openExternal", url: installUrl }); + } else { + window.location.assign(installUrl); + } + } + + navigate("/getRepo"); + }; + + return ( +
+
+

GitHub App Required

+

{message}

+ + +
+
+ ); +}; + +export default GitHubAppInstall; diff --git a/codience/webview-ui/webview-ui/src/pages/Home.tsx b/codience/webview-ui/webview-ui/src/pages/Home.tsx new file mode 100644 index 00000000..4b66a0c1 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/Home.tsx @@ -0,0 +1,24 @@ +import { Outlet, useLocation } from "react-router-dom"; +import PRsHome from "./PRsHome"; +import Dashboard from "./Dashboard"; +import "./styles/Home.css"; + +const Home = () => { + const location = useLocation(); + + const renderContent = () => { + if (location.pathname.includes("dashboard")) return ; + return ; + }; + + const isDashboard = location.pathname.includes("dashboard"); + + return ( +
+ {renderContent()} + +
+ ); +}; + +export default Home; diff --git a/codience/webview-ui/webview-ui/src/pages/JiraLogin.tsx b/codience/webview-ui/webview-ui/src/pages/JiraLogin.tsx new file mode 100644 index 00000000..3641d4d5 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/JiraLogin.tsx @@ -0,0 +1,175 @@ +import { useState, useEffect } from "react"; +import { useNavigate } from "react-router-dom"; +import "./styles/JiraLogin.css"; +import jiraService from "../services/jiraService.ts"; +import { getVsCodeApi, isVsCodeWebview } from "../services/vscodeApi"; + +const JiraLogin = () => { + const navigate = useNavigate(); + const [loading, setLoading] = useState(false); + const [error, setError] = useState(null); + const [debugMsg, setDebugMsg] = useState(""); + + const addDebug = (msg: string) => setDebugMsg((prev) => prev + "\n" + msg); + + const exchangeCode = async (code: string) => { + try { + addDebug(`Exchanging code: ${code.substring(0, 5)}...`); + setLoading(true); + setError(null); + const data = await jiraService.exchangeCode(code); + addDebug("Exchange success!"); + jiraService.storeSession(data); + jiraService.storeProjects(data.projects ?? []); + navigate("/jira-project", { + state: { + projects: data.projects ?? [], + }, + }); + } catch (err: any) { + addDebug(`Exchange error: ${err?.message}`); + setError(err?.message || "Failed to complete Jira authentication."); + setLoading(false); + } + }; + + useEffect(() => { + const handleMessage = (event: MessageEvent) => { + const message = event.data; + addDebug(`Received message type: ${message?.type}`); + if (message.type === "jiraAuthCode" && message.code) { + addDebug("Processing jiraAuthCode..."); + exchangeCode(message.code); + } + }; + + window.addEventListener("message", handleMessage); + return () => window.removeEventListener("message", handleMessage); + }, []); + + useEffect(() => { + if (!isVsCodeWebview()) { + const code = jiraService.getCodeFromSearch(); + if (code) { + addDebug("Found code in URL"); + exchangeCode(code); + } + } else { + addDebug("Running in VS Code Webview mode"); + } + }, []); + + const handleLogin = async () => { + try { + addDebug("Starting login..."); + setLoading(true); + setError(null); + + const state = isVsCodeWebview() ? "vscode" : "webapp"; + const url = await jiraService.fetchLoginUrl(state); + addDebug(`Login URL fetched, state: ${state}`); + + if (state === "vscode") { + addDebug("Posting openExternal message"); + getVsCodeApi()?.postMessage({ command: "openExternal", url }); + return; + } + + window.location.assign(url); + } catch (loginError: any) { + addDebug(`Login error: ${loginError?.message}`); + setError(loginError?.message || "Failed to start Jira login."); + } finally { + setLoading(false); + } + }; + + const handleAuthenticateLater = () => { + jiraService.clearSession(); + navigate("/home"); + }; + + const [manualCode, setManualCode] = useState(""); + + const handleManualSubmit = () => { + let input = manualCode.trim(); + if (!input) return; + + if (input.includes("auth.atlassian.com/authorize")) { + setError("You pasted the authorization URL. Please login using that URL in your browser, then copy the 'code' parameter from the URL you are redirected to."); + return; + } + + let codeToExchange = input; + if (input.includes("code=")) { + try { + const url = new URL(input); + const extracted = url.searchParams.get("code"); + if (extracted) { + codeToExchange = extracted; + } + } catch (e) { + const match = input.match(/[?&]code=([^&]+)/); + if (match) { + codeToExchange = match[1]; + } + } + } + + addDebug("Manual code submitted: " + codeToExchange.substring(0, 5) + "..."); + exchangeCode(codeToExchange); + }; + + return ( +
+
+ + + + +
+

If automatic redirect fails, paste your code here:

+ setManualCode(e.target.value)} + placeholder="Paste authorization code..." + style={{ padding: '8px', borderRadius: '4px', border: '1px solid #ccc', background: 'var(--vscode-input-background)', color: 'var(--vscode-input-foreground)' }} + /> + +
+ + {error &&

{error}

} + + {debugMsg && ( +
+            {debugMsg}
+          
+ )} +
+
+ ); +}; + +export default JiraLogin; \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/pages/JiraProjectName.tsx b/codience/webview-ui/webview-ui/src/pages/JiraProjectName.tsx new file mode 100644 index 00000000..9b74a62e --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/JiraProjectName.tsx @@ -0,0 +1,109 @@ +import { useLocation, useNavigate } from "react-router-dom"; +import { useMemo, useState } from "react"; +import "./styles/GetRepoName.css"; +import jiraService from "../services/jiraService"; +import type { JiraProject } from "../types/JiraAuth"; + +interface JiraProjectLocationState { + projects?: JiraProject[]; +} + +const JiraProjectName = () => { + const navigate = useNavigate(); + const location = useLocation(); + const [query, setQuery] = useState(""); + const [selectedProject, setSelectedProject] = useState(null); + const [error, setError] = useState(null); + + const projects = + (location.state as JiraProjectLocationState | null)?.projects ?? + jiraService.getStoredProjects(); + + const matches = useMemo(() => { + const search = query.trim().toLowerCase(); + + if (!search) return projects; + + return projects.filter((project) => { + const projectName = project.name?.toLowerCase() ?? ""; + + return projectName.includes(search); + }); + }, [projects, query]); + + const pickProject = (project: JiraProject) => { + setSelectedProject(project); + setQuery(project.name); + setError(null); + }; + + const submit = () => { + if (!selectedProject) { + setError("Select a Jira project first."); + return; + } + + jiraService.storeProjectKey(selectedProject.key); + navigate("/home"); + }; + + return ( +
+
+

Select Jira Project

+ +
+ { + const value = e.currentTarget.value; + setQuery(value); + setSelectedProject(null); + setError(null); + }} + placeholder="Project Name..." + aria-label="Search Jira projects" + autoComplete="off" + /> + +
+ {projects.length === 0 && ( +
No Jira projects returned.
+ )} + {projects.length > 0 && matches.length === 0 && ( +
No matching Jira projects found.
+ )} + {matches.map((project) => { + return ( + + ); + })} +
+
+ + + + {error &&
{error}
} +
+
+ ); +}; + +export default JiraProjectName; \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/pages/PRsHome.tsx b/codience/webview-ui/webview-ui/src/pages/PRsHome.tsx new file mode 100644 index 00000000..3c7c3121 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/PRsHome.tsx @@ -0,0 +1,76 @@ +import { useEffect, useState } from "react"; +import PRsTable from "../components/prs/PRsTable"; +import type { PullRequest } from "../types/PullRequest"; +import "./styles/PRsHome.css"; +import CardsRow from "../components/ui/CardsRow"; +import { usePRs } from "../hooks/usePRs"; + +const toNumericScore = (value: number | string | undefined) => { + if (typeof value === "number") return value; + const parsed = Number(value); + return Number.isFinite(parsed) ? parsed : null; +}; + +const isHighBusinessImpact = (pr: PullRequest) => { + const tier = pr.business_impact?.tier?.toLowerCase(); + if (tier === "high") return true; + + const score = toNumericScore(pr.business_impact?.weighted_score); + return score !== null && score >= 70; +}; + +const PRsHome = () => { + const projectName: string | null = localStorage.getItem("RepoName"); + const { data: prs, loading, error } = usePRs(); + + const [localPRs, setLocalPRs] = useState(null); + const [openPrs, setOpenPrs] = useState(0); + const [highImpact, setHighImpact] = useState(0); + const [highRisk, setHighRisk] = useState(0); + + useEffect(() => { + setLocalPRs(prs); + }, [prs]); + + useEffect(() => { + if (!localPRs) return; + let openCount = 0; + let highRiskCount = 0; + let highImpactCount = 0; + + localPRs.forEach((pr) => { + if (pr.state === "open") openCount++; + if (pr.risk?.risk_level === "high") highRiskCount++; + if (isHighBusinessImpact(pr)) highImpactCount++; + }); + + setOpenPrs(openCount); + setHighRisk(highRiskCount); + setHighImpact(highImpactCount); + }, [localPRs]); + + if (loading) return

Loading...

; + if (error) return

{error}

; + if (!localPRs) return null; + + return ( +
+

{projectName}

+ +

Pull Requests

+ +
+ ); +}; + +export default PRsHome; diff --git a/codience/webview-ui/webview-ui/src/pages/PrSummaryDetails.tsx b/codience/webview-ui/webview-ui/src/pages/PrSummaryDetails.tsx new file mode 100644 index 00000000..a3fb5147 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/PrSummaryDetails.tsx @@ -0,0 +1,160 @@ +import { useEffect, useState } from "react"; +import { useLocation, useNavigate, useParams } from "react-router-dom"; +import ReviewersList from "../components/reviewers/ReviewersList"; +import { usePrSummary } from "../hooks/usePrSummary"; +import { fetchBusinessImpactForPR } from "../services/businessImpact.service"; +import type { BusinessImpactType } from "../types/BusinessImpactType"; +import type { PullRequest } from "../types/PullRequest"; +import "./styles/PrSummaryDetails.css"; + +type LocationState = { + selectedPR?: PullRequest; +}; + +const renderSummary = (summary: string) => { + return summary.split("\n").map((line, index) => { + const trimmed = line.trim(); + + if (!trimmed) return
; + + if (trimmed.startsWith("**") && trimmed.endsWith("**")) { + return

{trimmed.replace(/\*\*/g, "")}

; + } + + if (trimmed.startsWith("- ")) { + return ( +

+ {trimmed.slice(2)} +

+ ); + } + + return

{trimmed.replace(/\*\*/g, "")}

; + }); +}; + +const PrSummaryDetails = () => { + const navigate = useNavigate(); + const location = useLocation(); + const { prNumber } = useParams(); + const selectedPR = (location.state as LocationState | null)?.selectedPR ?? null; + const parsedPrNumber = Number(prNumber); + const [businessImpact, setBusinessImpact] = + useState(selectedPR?.business_impact ?? null); + const prForReviewers = + (selectedPR + ? { ...selectedPR, business_impact: businessImpact } + : null) ?? + (Number.isFinite(parsedPrNumber) + ? { + number: parsedPrNumber, + title: `PR #${parsedPrNumber}`, + state: "", + createdAt: "", + name: "", + files_changed: 0, + risk: null, + business_impact: null, + } + : null); + const { summary, loading, error } = usePrSummary( + Number.isFinite(parsedPrNumber) ? parsedPrNumber : null, + ); + + const pageTitle = prForReviewers?.title ?? `PR #${prNumber ?? ""}`; + + useEffect(() => { + if (!Number.isFinite(parsedPrNumber)) return; + + const currentScore = businessImpact?.weighted_score; + if ( + currentScore !== undefined && + currentScore !== null && + currentScore !== "Loading..." + ) { + return; + } + + let cancelled = false; + + fetchBusinessImpactForPR(parsedPrNumber) + .then((nextBusinessImpact) => { + if (!cancelled) { + setBusinessImpact(nextBusinessImpact); + } + }) + .catch(() => { + if (!cancelled) { + setBusinessImpact({ + weighted_score: "N/A", + tier: "unknown", + ai_summary: "Business impact is unavailable.", + }); + } + }); + + return () => { + cancelled = true; + }; + }, [parsedPrNumber, businessImpact?.weighted_score]); + + return ( +
+
+
+
+

Pull request summary

+

{pageTitle}

+ #{prNumber} +
+ +
+ +
+
+

Summary

+ {loading &&
Loading summary...
} + {error &&
{error}
} + {!loading && !error && summary && ( +
{renderSummary(summary)}
+ )} + {!loading && !error && !summary && ( +
No summary returned for this PR.
+ )} +
+ + + +
+

Business Impact

+
+

+ Weighted Score:{" "} + {prForReviewers?.business_impact?.weighted_score ?? "Loading..."} +

+

+ Tier:{" "} + {prForReviewers?.business_impact?.tier ?? "Loading..."} +

+

+ AI Summary:{" "} + {prForReviewers?.business_impact?.ai_summary ?? "Loading..."} +

+
+
+
+
+
+ ); +}; + +export default PrSummaryDetails; diff --git a/codience/webview-ui/webview-ui/src/pages/Profile.tsx b/codience/webview-ui/webview-ui/src/pages/Profile.tsx new file mode 100644 index 00000000..060b5eb9 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/Profile.tsx @@ -0,0 +1,123 @@ +import { useMemo } from "react"; +import { useGitHubProfile } from "../hooks/useGitHubProfile"; +import "./styles/Profile.css"; + +const formatDate = (value: string) => { + const date = new Date(value); + if (Number.isNaN(date.getTime())) return value; + + return new Intl.DateTimeFormat("en", { + month: "short", + day: "numeric", + year: "numeric", + }).format(date); +}; + +const Profile = () => { + const username = useMemo(() => localStorage.getItem("User"), []); + const { profile, loading, error } = useGitHubProfile(username); + + const displayName = profile?.name ?? profile?.login ?? "Profile"; + const emailValue = profile?.email ?? "Not provided"; + const companyValue = profile?.company ?? "Not provided"; + const locationValue = profile?.location ?? "Not provided"; + const blogValue = profile?.blog?.trim() || "Not provided"; + + return ( +
+
+
+
+

Profile

+
+ + {profile && ( + + View GitHub + + )} +
+ + {loading &&
Loading profile...
} + {error &&
{error}
} + + {profile && ( +
+
+ {`${displayName} + +

{displayName}

+

@{profile.login}

+ + {profile.bio &&

{profile.bio}

} + +
+
+ {profile.public_repos} + Public Repos +
+
+ {profile.id} + User ID +
+
+
+ +
+
+

Account Details

+ GitHub Profiling +
+ +
+
+
Name
+
{displayName}
+
+
+
Username
+
{profile.login}
+
+
+
Email
+
{emailValue}
+
+
+
Company
+
{companyValue}
+
+
+
Location
+
{locationValue}
+
+
+
Website
+
{blogValue}
+
+
+
Profile URL
+
{profile.html_url}
+
+
+
Created At
+
{formatDate(profile.created_at)}
+
+
+
+
+ )} +
+
+ ); +}; + +export default Profile; \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/pages/ReviewerRecommendationSettings.tsx b/codience/webview-ui/webview-ui/src/pages/ReviewerRecommendationSettings.tsx new file mode 100644 index 00000000..691de402 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/ReviewerRecommendationSettings.tsx @@ -0,0 +1,212 @@ +import { useEffect, useMemo, useState } from "react"; +import type { FormEvent } from "react"; +import { useLocation, useNavigate, useParams } from "react-router-dom"; +import type { PullRequest } from "../types/PullRequest"; +import { + getDefaultReviewerRecommendationSettings, + loadReviewerRecommendationSettings, + normalizeRequiredReviewer, + normalizeRequiredReviewers, + saveReviewerRecommendationSettings, +} from "../utils/reviewerRecommendationSettings"; +import type { RequiredReviewer } from "../types/Reviewers"; +import "./styles/ReviewerRecommendationSettings.css"; + +type LocationState = { + selectedPR?: PullRequest; +}; + +type ReviewerRowState = RequiredReviewer & { + id: string; +}; + +const createReviewerRow = (reviewer?: Partial): ReviewerRowState => ({ + id: + typeof crypto !== "undefined" && typeof crypto.randomUUID === "function" + ? crypto.randomUUID() + : `reviewer-${Date.now()}-${Math.random().toString(16).slice(2)}`, + ...normalizeRequiredReviewer(reviewer ?? {}), +}); + +const ReviewerRecommendationSettingsPage = () => { + const navigate = useNavigate(); + const location = useLocation(); + const { prNumber } = useParams(); + const selectedPR = (location.state as LocationState | null)?.selectedPR ?? null; + const repoName = localStorage.getItem("RepoName") ?? "default-repo"; + const parsedPrNumber = Number(prNumber); + const storedSettings = useMemo( + () => + Number.isFinite(parsedPrNumber) + ? loadReviewerRecommendationSettings(repoName, parsedPrNumber) + : null, + [parsedPrNumber, repoName], + ); + + const [k, setK] = useState(3); + const [requiredReviewers, setRequiredReviewers] = useState([]); + const [error, setError] = useState(null); + + useEffect(() => { + const fallback = + storedSettings ?? + getDefaultReviewerRecommendationSettings( + repoName, + Number.isFinite(parsedPrNumber) ? parsedPrNumber : 0, + selectedPR?.title ?? "", + ); + + setK(fallback.k); + setRequiredReviewers( + fallback.requiredReviewers.length > 0 + ? fallback.requiredReviewers.map((reviewer) => createReviewerRow(reviewer)) + : [createReviewerRow()], + ); + }, [repoName, parsedPrNumber, selectedPR?.title, storedSettings]); + + const handleSubmit = (event: FormEvent) => { + event.preventDefault(); + + if (!Number.isFinite(parsedPrNumber)) { + setError("The PR number is missing or invalid."); + return; + } + + if (!Number.isInteger(k) || k <= 0) { + setError("Top k reviewers must be a positive integer."); + return; + } + + const trimmedReviewers = normalizeRequiredReviewers(requiredReviewers); + const hasIncompleteReviewer = requiredReviewers.some((reviewer) => { + const username = reviewer.username.trim(); + const jiraUsername = reviewer.jiraUsername.trim(); + + return (username.length > 0 || jiraUsername.length > 0) && (!username || !jiraUsername); + }); + + if (hasIncompleteReviewer) { + setError("Each reviewer row must include both a GitHub username and a Jira username."); + return; + } + + const nextSettings = { + repoName, + prNumber: parsedPrNumber, + prTitle: selectedPR?.title ?? storedSettings?.prTitle ?? "", + k, + commitCount: storedSettings?.commitCount ?? 0, + requiredReviewers: trimmedReviewers, + updatedAt: new Date().toISOString(), + }; + + saveReviewerRecommendationSettings(nextSettings); + navigate(-1); + }; + + return ( +
+
+
+
+

Reviewer recommendation settings

+

{selectedPR ? selectedPR.title : `PR #${prNumber ?? ""}`}

+

+ Tune reviewer inputs for this pull request. +

+
+ +
+ +
+ + + + + {error ?
{error}
: null} + +
+ + +
+
+
+
+ ); +}; + +export default ReviewerRecommendationSettingsPage; diff --git a/codience/webview-ui/webview-ui/src/pages/SideBarLayout.tsx b/codience/webview-ui/webview-ui/src/pages/SideBarLayout.tsx new file mode 100644 index 00000000..be89e148 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/SideBarLayout.tsx @@ -0,0 +1,13 @@ +import SideBar from "../components/layout/SideBar"; +import { Outlet } from "react-router-dom"; +import "./styles/SideBarLayout.css"; +const SideBarLayout = () => { + return ( +
+ + +
+ ); +}; + +export default SideBarLayout; diff --git a/codience/webview-ui/webview-ui/src/pages/WelcomePage.tsx b/codience/webview-ui/webview-ui/src/pages/WelcomePage.tsx new file mode 100644 index 00000000..9cc2b00a --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/WelcomePage.tsx @@ -0,0 +1,14 @@ +import { NavLink } from 'react-router-dom' +import './styles/WelcomePage.css' + + +const WelcomePage = () => { + return ( +
+

Welcome to < Codience />

+ Sign in to GitHub +
+ ); +} + +export default WelcomePage diff --git a/codience/webview-ui/webview-ui/src/pages/styles/Dashboard.css b/codience/webview-ui/webview-ui/src/pages/styles/Dashboard.css new file mode 100644 index 00000000..1952f32f --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/styles/Dashboard.css @@ -0,0 +1,464 @@ +html, +body, +#root { + height: 100%; +} + +.dashboardRoot { + display: flex; + height: 100vh; + overflow: auto; + -webkit-overflow-scrolling: touch; + font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; + color: #d7d7d7; + position: relative; } + + +.dashboardRoot::-webkit-scrollbar { + width: 0px; + height: 0px; +} + + +.mainArea { + flex: 1; + display: flex; + flex-direction: column; + padding: 12px 12px 0 12px; + gap: 12px; + height: 100%; +} + +.topHeader { + display: flex; + justify-content: space-between; + align-items: center; +} + +.projectTitle { + color: #ececec; + margin: 0; + font-size: 20px; + font-weight: 600; +} + +.searchUser { + display: flex; + gap: 12px; + align-items: center; +} + +.searchInput { + background: #0f1112; + border: 1px solid rgba(255, 255, 255, 0.04); + padding: 8px 10px; + border-radius: 8px; + color: #cfcfcf; + outline: none; +} + +.userBadge { + background: rgba(255, 255, 255, 0.02); + padding: 8px 12px; + border-radius: 18px; + font-size: 13px; +} + +.cardsContainer { + display: flex; + gap: 15px; + margin-top: 8px; + margin-bottom: 5px; + align-items: stretch; + flex: 0 0 88px; } + +.dashboardRoot .card { + background: #222425; + border-radius: 8px; + padding: 8px; + flex: 0 0 140px; + height: 80px; + display: flex; + flex-direction: column; + gap: 6px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); + justify-content: center; +} + +.cardLabel { + font-size: 13px; + color: #bdbdbd; +} + +.cardValue { + font-size: 36px; + font-weight: 700; + color: #fff; +} + +.card.open { + background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), #212524); +} +.card.highRisk { + background: linear-gradient(180deg, rgba(220, 38, 38, 0.08), #222425); +} + +.topCardsAndTable { + display: grid; + grid-template-columns: 2fr 1fr; + gap: 18px; + height: calc(100vh - 72px); + align-items: start; +} + +.leftColumn { + display: flex; + flex-direction: column; + gap: 12px; + height: 100%; + min-height: 0; +} + +.rightColumn { + display: flex; + flex-direction: column; + gap: 12px; + min-width: 0; + height: 100%; + align-self: stretch; +} + +.rightColumn { + position: relative; +} + +.bottomChartContainer { + position: absolute; + bottom: 0; + left: 0; + right: 0; + height: 220px; + width: 100%; + flex: 0 0 auto; +} + +.bottomChartContainer .recharts-responsive-container { + margin-top: 30px; +} + +.rightPanel { + padding-bottom: 220px; } + + + .pullRequestsPanel { + flex: 1 1 auto; + background: transparent; + display: flex; + flex-direction: column; +} + +.panelHeader h3 { + color: #cfcfcf; + margin: 8px 0; + font-weight: 600; +} + +.prsTableWrapper { + background: #141617; + padding: 12px; + border-radius: 8px; + border: 1px solid rgba(255, 255, 255, 0.03); + display: flex; + flex-direction: column; + flex: 1 1 auto; + min-height: 100px; + min-width: 360px; +} + +.dashboardRoot .prsTableContainer { + background: linear-gradient(180deg, #0f1112, #0b0c0d); + border-radius: 6px; + overflow: auto; + box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6); + border: 1px solid rgba(255, 255, 255, 0.02); + -ms-overflow-style: none; + scrollbar-width: none; + flex: 1 1 auto; + min-height: 0; +} + +.dashboardRoot .prsTableContainer::-webkit-scrollbar { + width: 0px; + height: 0px; +} + +.dashboardRoot .prsPagination { + padding-top: 10px; + gap: 12px; +} +.dashboardRoot .prsPagination .paginationControls button { + background: linear-gradient( + 180deg, + rgba(34, 197, 94, 0.16), + rgba(34, 197, 94, 0.06) + ); + border: none; +} +.dashboardRoot .prsPagination .paginationControls button:hover:not(:disabled) { + background: linear-gradient( + 180deg, + rgba(34, 197, 94, 0.26), + rgba(34, 197, 94, 0.12) + ); +} +.dashboardRoot .prsPagination .pageInfo { + color: #cfcfcf; +} +.dashboardRoot .prsPagination .pageSizeControl select { + background: #0f1112; + border: 1px solid rgba(255, 255, 255, 0.03); +} + +.rightPanel { + width: 100%; + display: flex; + flex-direction: column; + gap: 12px; + flex: 1 1 auto; + overflow: auto; +} + +.blockTitle { + color: #bfbfbf; + margin: 0 0 8px 0; + font-size: 14px; + font-weight: 600; +} + +.recommendedBlock { + background: #161718; + border-radius: 8px; + padding: 12px; + border: 1px solid rgba(255, 255, 255, 0.03); + min-height: 300px; +} + +.blockTitleRow { + display: flex; + align-items: center; + justify-content: space-between; + gap: 10px; + margin-bottom: 8px; +} + +.iconSettingsButton { + width: 34px; + height: 34px; + display: inline-flex; + align-items: center; + justify-content: center; + border-radius: 10px; + border: 1px solid rgba(79, 157, 105, 0.18); + background: linear-gradient(180deg, #202423, #171a19); + color: #b7e4c5; + cursor: pointer; + transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; + flex: 0 0 auto; +} + +.iconSettingsButton:hover:not(:disabled) { + transform: translateY(-1px); + border-color: rgba(79, 157, 105, 0.38); + background: linear-gradient(180deg, rgba(79, 157, 105, 0.22), rgba(79, 157, 105, 0.08)); +} + +.iconSettingsButton:disabled { + opacity: 0.45; + cursor: not-allowed; +} + +.reviewersBox { + display: flex; + flex-direction: column; + gap: 10px; +} + +.selectedPRBrief { + display: flex; + gap: 8px; + align-items: center; + background: rgba(255, 255, 255, 0.02); + padding: 8px; + border-radius: 8px; +} + +.prNumber { + background: rgba(255, 255, 255, 0.03); + padding: 6px 8px; + border-radius: 6px; + font-weight: 700; +} + +.prTitle { + flex: 1; + font-size: 13px; +} + +.prState { + font-size: 12px; + color: #a7a7a7; +} + +.reviewersTable { + width: 100%; + border-collapse: collapse; + margin-top: 6px; + font-size: 13px; +} + +.reviewersTable thead th { + text-align: center; + font-weight: 700; + font-size: 12px; + color: #bdbdbd; +} + +.reviewersTable tbody tr { + border-top: 1px solid rgba(255, 255, 255, 0.02); +} + +.reviewersTable td { + padding: 8px 6px; + vertical-align: middle; + color: #e7e7e7; +} + +.revName { + max-width: 160px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.revConfidence { + width: 84px; + font-weight: 600; + color: #d1d1d1; +} + +.revActions { + width: 86px; + text-align: right; +} + +.assignBtn { + background: linear-gradient( + 180deg, + rgba(34, 197, 94, 0.16), + rgba(34, 197, 94, 0.06) + ); + border: none; + border-radius: 6px; + padding: 6px 10px; + color: white; + cursor: pointer; + font-size: 12px; +} + +.loadingRow td, +.errorRow td, +.emptyRow td { + color: #9a9a9a; + padding: 14px; + text-align: center; +} + +.prInfoBlock { + background: #161718; + border-radius: 8px; + padding: 12px; + border: 1px solid rgba(255, 255, 255, 0.03); +} + +.prInfoCard { + display: flex; + flex-direction: column; + gap: 5px; + margin-top: 5px; +} + +.infoRow { + display: flex; + justify-content: space-between; + color: #bdbdbd; + border-top: 1px dashed rgba(255, 255, 255, 0.02); + padding-top: 5px; + padding-bottom: 5px; +} + +.infoLabel { + font-size: 13px; +} + +.infoValue { + font-weight: 700; + color: #ffffff; +} + +.noSelection { + color: #9a9a9a; + font-size: 13px; + padding: 14px; + text-align: center; +} + +@media (max-width: 1200px) { + .topCardsAndTable { + grid-template-columns: 1fr; + } + .rightColumn { + order: 2; + } + .leftColumn { + order: 1; + } + .rightPanel { + width: 100%; + } +} + +@media (max-width: 1200px) { + .dashboardRoot { + height: auto; + min-height: 100vh; + overflow: auto; + } + .mainArea { + height: auto; + } + .topCardsAndTable { + height: auto; + } + .prsTableWrapper { + width: 100%; + min-width: 0; + } + .dashboardRoot .prsTableContainer { + max-height: 520px; + } + .bottomChartContainer { + position: static; + height: 220px; + margin-top: 12px; + } + .rightPanel { + padding-bottom: 0; + } +} + + +.bottomChartContainer { + height: 180px; + width: 100%; + flex: 0 0 auto; +} diff --git a/codience/webview-ui/webview-ui/src/pages/styles/GetRepoName.css b/codience/webview-ui/webview-ui/src/pages/styles/GetRepoName.css new file mode 100644 index 00000000..091ce056 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/styles/GetRepoName.css @@ -0,0 +1,195 @@ +.getRepoName { + min-height: 100vh; + display: flex; + align-items: center; + justify-content: center; + padding: 24px; + background: #101213; + color: #d7d7d7; + box-sizing: border-box; + font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; +} + +.repoNameContainer { + width: min(100%, 460px); + min-height: 420px; + padding: 28px; + border-radius: 8px; + background: #141617; + border: 1px solid rgba(255, 255, 255, 0.03); + box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48); + display: flex; + flex-direction: column; + justify-content: center; + gap: 22px; + box-sizing: border-box; +} + +.repoNameContainer h3 { + margin: 0; + color: #ececec; + font-size: 24px; + line-height: 1.2; + font-weight: 600; + text-align: center; +} + +.githubAppInstallContainer { + min-height: 300px; +} + +.githubAppInstallMessage { + margin: 0; + color: #bdbdbd; + font-size: 14px; + line-height: 1.6; + text-align: center; +} + +.repoSearchBox { + width: 100%; + display: flex; + flex-direction: column; + gap: 8px; +} + +.repoNameContainer input { + width: 100%; + height: 44px; + outline: none; + border: 1px solid rgba(255, 255, 255, 0.05); + padding: 0 14px; + border-radius: 6px; + background: #0f1112; + color: #ececec; + font-size: 14px; + font-weight: 500; + box-sizing: border-box; +} + +.repoNameContainer input:focus { + border-color: rgba(79, 157, 105, 0.8); + box-shadow: 0 0 0 3px rgba(79, 157, 105, 0.13); +} + +.repoNameContainer input::placeholder { + color: #6f7378; +} + +.repoMenu { + width: 100%; + max-height: 220px; + overflow-y: auto; + border-radius: 8px; + border: 1px solid rgba(255, 255, 255, 0.06); + background: #161718; + box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42); + padding: 6px; + box-sizing: border-box; +} + +.repoMenu::-webkit-scrollbar { + width: 6px; +} + +.repoMenu::-webkit-scrollbar-track { + background: transparent; +} + +.repoMenu::-webkit-scrollbar-thumb { + background: rgba(255, 255, 255, 0.1); + border-radius: 3px; +} + +.repoMenu::-webkit-scrollbar-thumb:hover { + background: rgba(255, 255, 255, 0.18); +} + +.repoNameContainer .repoMenuItem { + width: 100%; + min-height: 42px; + border: 1px solid transparent; + border-radius: 6px; + padding: 10px 12px; + text-align: left; + background: transparent; + color: #e7e7e7; + cursor: pointer; + transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; +} + +.repoNameContainer .repoMenuItem:hover, +.repoNameContainer .repoMenuItem:focus { + background: rgba(255, 255, 255, 0.04); + border-color: rgba(255, 255, 255, 0.06); + transform: translateY(-1px); +} + +.repoMenuItemTitle { + display: block; + font-weight: 600; + font-size: 14px; + color: #ececec; +} + +.repoMenuState { + padding: 14px; + color: #9a9a9a; + font-size: 13px; + text-align: center; +} + +.repoMenuError { + color: #ffb6b6; + background: rgba(220, 38, 38, 0.1); + border: 1px solid rgba(220, 38, 38, 0.24); + border-radius: 6px; +} + +.repoNameContainer .repoContinueButton { + width: 100%; + min-height: 42px; + margin-top: 4px; + border-radius: 6px; + border: none; + outline: none; + background: linear-gradient( + 180deg, + rgba(34, 197, 94, 0.26), + rgba(34, 197, 94, 0.12) + ); + color: #f4fff7; + font-weight: 700; + font-size: 14px; + cursor: pointer; + transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease; +} + +.repoNameContainer .repoContinueButton:hover:not(:disabled) { + background: linear-gradient( + 180deg, + rgba(34, 197, 94, 0.34), + rgba(34, 197, 94, 0.16) + ); + transform: translateY(-1px); +} + +.repoNameContainer .repoContinueButton:disabled { + opacity: 0.45; + cursor: not-allowed; +} + +@media (max-width: 520px) { + .getRepoName { + padding: 16px; + } + + .repoNameContainer { + min-height: 360px; + padding: 22px; + } + + .repoNameContainer h3 { + font-size: 21px; + } +} diff --git a/codience/webview-ui/webview-ui/src/pages/styles/Home.css b/codience/webview-ui/webview-ui/src/pages/styles/Home.css new file mode 100644 index 00000000..abfc56cc --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/styles/Home.css @@ -0,0 +1,45 @@ + +.Home .cardsContainer { + max-width: 100%; + margin: auto; +} +.Home .prsTableContainer::-webkit-scrollbar { + width: 0px; + height: 0px; +} + +.Home .prsTableContainer { + margin-inline: auto; + max-width: 100%; + max-height: 365px; + overflow: auto; + padding-bottom: 5px; +} +.Home .prsTableContainer::-webkit-scrollbar { + width: 0px; + height: 0px; +} + +.Home .prsPagination { + max-width: 100%; + padding-block: 5px; +} + +.home .cardsContainer { + width: 80%; +} + +@media (max-width: 700px) { + .Home .prsTableContainer { + max-height: 100%; + } +} + +.Home.homeHideScroll { + position: relative; + overflow: auto; +} +.Home.homeHideScroll::-webkit-scrollbar { + width: 0px; + height: 0px; +} diff --git a/codience/webview-ui/webview-ui/src/pages/styles/JiraLogin.css b/codience/webview-ui/webview-ui/src/pages/styles/JiraLogin.css new file mode 100644 index 00000000..ff73865a --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/styles/JiraLogin.css @@ -0,0 +1,81 @@ +.jiraLoginPage { + min-height: 100vh; + display: flex; + align-items: center; + justify-content: center; + background: linear-gradient(180deg, #11151b 0%, #0b0f14 100%); +} + +.jiraLoginPage .deviceCodeContainer { + background-color: #ffffff17; + border: #4a5059 1px solid; + width: min(80%, 520px); + min-height: 280px; + border-radius: 10px; + display: flex; + flex-flow: column; + align-items: center; + justify-content: center; + color: #b9b9b9; + padding: 2rem; + box-sizing: border-box; +} + +.jiraLoginButton { + border: none; + border-radius: 8px; + background-color: #0f6824; + color: #b9b9b9; + width: min(100%, 320px); + text-align: center; + padding: 14px 18px; + cursor: pointer; + font-weight: bold; + font-size: 1rem; + transition: background-color 0.2s ease, transform 0.2s ease; +} + +.jiraLoginButton:hover:not(:disabled) { + background-color: #09b7319c; + transform: translateY(-1px); +} + +.jiraLoginButton:focus-visible { + outline: 2px solid #b9b9b9; + outline-offset: 3px; +} + +.jiraLoginButton:disabled { + cursor: progress; + opacity: 0.85; +} + +.jiraLoginSecondaryButton { + margin-top: 12px; + border: 1px solid rgba(185, 185, 185, 0.22); + border-radius: 8px; + background-color: rgba(255, 255, 255, 0.03); + color: #e5e7eb; + width: min(100%, 320px); + text-align: center; + padding: 14px 18px; + cursor: pointer; + font-weight: 600; + font-size: 1rem; + transition: background-color 0.2s ease, transform 0.2s ease; +} + +.jiraLoginSecondaryButton:hover:not(:disabled) { + background-color: rgba(255, 255, 255, 0.08); + transform: translateY(-1px); +} + +.jiraLoginSecondaryButton:focus-visible { + outline: 2px solid #b9b9b9; + outline-offset: 3px; +} + +.jiraLoginSecondaryButton:disabled { + cursor: progress; + opacity: 0.75; +} \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/pages/styles/PRsHome.css b/codience/webview-ui/webview-ui/src/pages/styles/PRsHome.css new file mode 100644 index 00000000..c93f4d40 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/styles/PRsHome.css @@ -0,0 +1,73 @@ + +.home { + display: inline-block; + width: 98%; + padding-inline: 10px; +} + +h2.projectTitle{ + color: #EEE; + text-align: start; + margin: 10px; + width: 100%; + +} +h2.tableCaption { + text-align: start; + font-weight: 100; + font-size: 18px; + color: #BEBABA; + margin: 10px; + width: 100%; +} + +.cardsContainer { + margin: 10px; + margin-inline: auto; + margin-bottom: 20px; + display: flex; + justify-content: space-evenly; + height: 100px; +} +.card { + background-color: #333; + width: 20%; + padding: 5px; + border-radius: 8px; + display: flex; + flex-direction: column; + align-items: center; + font-size: 13px; + color: #BEBABA; +} + +.card span { + font-size: 60px; + margin-top: auto; + margin-bottom: auto; +} + +.card.open { + background-color: #1861187e; +} + +.card.priority { + background-color: #7e17179c; +} + +.card.risk span { + color: rgba(215, 11, 11, 0.735) +} + +.card.open:hover { + background-color: #18611856; +} + +.card.priority:hover { + background-color: #7e171766; +} + +.card.risk:hover { + background-color: #333333b7; +} + diff --git a/codience/webview-ui/webview-ui/src/pages/styles/PrSummaryDetails.css b/codience/webview-ui/webview-ui/src/pages/styles/PrSummaryDetails.css new file mode 100644 index 00000000..a878d98a --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/styles/PrSummaryDetails.css @@ -0,0 +1,170 @@ +.prSummaryPage { + position: fixed; + inset: 0; + z-index: 35; + min-height: 100vh; + padding: 28px; + background: rgba(16, 18, 19, 0.94); + color: #cfcfcf; + box-sizing: border-box; + overflow: auto; + font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; +} + +.prSummaryCard { + width: min(1120px, calc(100vw - 56px)); + margin: 0 auto; + background: #141617; + border: 1px solid rgba(255, 255, 255, 0.04); + border-radius: 8px; + box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48); + padding: 24px; + box-sizing: border-box; +} + +.prSummaryHeader { + display: flex; + justify-content: space-between; + align-items: flex-start; + gap: 16px; + padding-bottom: 18px; + margin-bottom: 18px; + border-bottom: 1px solid rgba(255, 255, 255, 0.04); +} + +.prSummaryHeader h2 { + margin: 4px 0 8px; + color: #d8d8d8; + font-size: 22px; + line-height: 1.25; + font-weight: 650; +} + +.prSummaryHeader span { + color: #858587; + font-size: 13px; +} + +.prSummaryEyebrow { + margin: 0; + color: #4f9d69; + font-size: 12px; + font-weight: 700; + text-transform: uppercase; +} + +.prSummaryBackButton { + border: 1px solid rgba(255, 255, 255, 0.08); + border-radius: 6px; + background: rgba(255, 255, 255, 0.02); + color: #d0d0d0; + padding: 10px 16px; + font-weight: 700; + cursor: pointer; + transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; +} + +.prSummaryBackButton:hover { + background: rgba(255, 255, 255, 0.06); + border-color: rgba(255, 255, 255, 0.14); + transform: translateY(-1px); +} + +.prSummaryGrid { + display: grid; + grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr); + gap: 16px; +} + +.prSummaryPanel { + background: rgba(255, 255, 255, 0.018); + border: 1px solid rgba(255, 255, 255, 0.04); + border-radius: 8px; + padding: 16px; + min-width: 0; +} + +.prSummaryFullWidth { + grid-column: 1 / -1; +} + +.prSummaryPanel h3 { + margin: 0 0 12px; + color: #d8d8d8; + font-size: 16px; + font-weight: 650; +} + +.prSummaryText { + color: #cfcfcf; + font-size: 14px; + line-height: 1.65; +} + +.prSummaryText h3 { + margin: 18px 0 8px; + color: #d8d8d8; + font-size: 15px; +} + +.prSummaryText h3:first-child { + margin-top: 0; +} + +.prSummaryText p { + margin: 0 0 10px; +} + +.prSummaryBullet { + position: relative; + padding-left: 18px; +} + +.prSummaryBullet::before { + content: ""; + position: absolute; + left: 2px; + top: 0.8em; + width: 5px; + height: 5px; + border-radius: 50%; + background: #4f9d69; +} + +.prSummaryState { + padding: 14px; + border-radius: 6px; + color: #9a9a9a; + background: rgba(255, 255, 255, 0.025); + border: 1px solid rgba(255, 255, 255, 0.035); + font-size: 13px; +} + +.prSummaryError { + color: #ffb6b6; + background: rgba(220, 38, 38, 0.1); + border-color: rgba(220, 38, 38, 0.24); +} + +@media (max-width: 900px) { + .prSummaryPage { + padding: 16px; + } + + .prSummaryCard { + width: min(100%, calc(100vw - 32px)); + padding: 18px; + } + + .prSummaryHeader { + flex-direction: column; + } + + .prSummaryBackButton { + width: 100%; + } + + .prSummaryGrid { + grid-template-columns: 1fr; + } +} diff --git a/codience/webview-ui/webview-ui/src/pages/styles/Profile.css b/codience/webview-ui/webview-ui/src/pages/styles/Profile.css new file mode 100644 index 00000000..8f69e2e9 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/styles/Profile.css @@ -0,0 +1,231 @@ +.profilePage { + min-height: 100vh; + width: 100%; + background: + radial-gradient(circle at top left, rgba(34, 197, 94, 0.06), transparent 32%), + #101213; + color: #cfcfcf; + font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; + box-sizing: border-box; +} + +.profileShell { + max-width: 980px; + padding: 18px 22px 28px; +} + +.profileHeader { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + margin-bottom: 18px; + min-height: 42px; +} + +.profileHeader h1 { + margin: 0; + color: #d8d8d8; + font-size: 24px; + font-weight: 650; +} + +.profileLink { + align-self: center; + background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.07)); + color: #d8d8d8; + border: 1px solid rgba(34, 197, 94, 0.1); + border-radius: 6px; + padding: 10px 14px; + font-size: 13px; + font-weight: 700; + text-decoration: none; + transition: background 0.15s ease, transform 0.15s ease; +} + +.profileLink:hover { + background: linear-gradient(180deg, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.13)); + transform: translateY(-1px); +} + +.profileState { + background: rgba(20, 22, 23, 0.96); + border: 1px solid rgba(255, 255, 255, 0.04); + border-radius: 8px; + padding: 18px; + color: #cfcfcf; + box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24); +} + +.profileStateError { + color: #ffb6b6; + background: rgba(220, 38, 38, 0.1); + border-color: rgba(220, 38, 38, 0.24); +} + +.profileGrid { + display: grid; + grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); + gap: 18px; +} + +.profileSummaryCard, +.profileInfoCard { + position: relative; + background: rgba(20, 22, 23, 0.96); + border: 1px solid rgba(255, 255, 255, 0.04); + border-radius: 8px; + box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24); +} + +.profileSummaryCard { + text-align: center; + padding: 24px; + display: flex; + flex-direction: column; + align-items: center; + gap: 10px; +} + +.profileAvatar { + width: 116px; + height: 116px; + border-radius: 50%; + object-fit: cover; + border: 5px solid #202423; + box-shadow: 0 0 0 2px rgba(79, 157, 105, 0.32); + margin-top: 4px; +} + +.profileSummaryCard h2 { + margin: 10px 0 0; + color: #d8d8d8; + font-size: 23px; + font-weight: 650; +} + +.profileHandle { + margin: 0; + color: #4f9d69; + font-size: 14px; + font-weight: 700; +} + +.profileBio { + margin: 4px 0 0; + color: #bdbdbd; + line-height: 1.5; + font-size: 13px; +} + +.profileStatRow { + width: 100%; + margin-top: 12px; + padding-top: 16px; + border-top: 1px solid rgba(255, 255, 255, 0.05); + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 12px; +} + +.profileStatRow > div { + display: flex; + flex-direction: column; + gap: 5px; + padding: 12px; + border-radius: 8px; + background: rgba(255, 255, 255, 0.025); + border: 1px solid rgba(255, 255, 255, 0.035); +} + +.profileStatValue { + font-size: 22px; + font-weight: 750; + color: #d8d8d8; +} + +.profileStatLabel { + font-size: 11px; + color: #9a9a9a; + text-transform: uppercase; +} + +.profileInfoCard { + padding: 20px; +} + +.profileInfoHeader { + display: flex; + justify-content: space-between; + align-items: center; + gap: 12px; + margin-bottom: 16px; +} + +.profileInfoHeader h3 { + margin: 0; + color: #d0d0d0; + font-size: 17px; + font-weight: 650; +} + +.profileInfoHeader span { + color: #9a9a9a; + font-size: 13px; +} + +.profileInfoList { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 12px; + margin: 0; +} + +.profileInfoList div { + padding: 14px; + border-radius: 8px; + background: rgba(255, 255, 255, 0.025); + border: 1px solid rgba(255, 255, 255, 0.035); + min-width: 0; +} + +.profileInfoList dt { + margin-bottom: 8px; + font-size: 11px; + text-transform: uppercase; + color: #9a9a9a; +} + +.profileInfoList dd { + margin: 0; + color: #d8d8d8; + line-height: 1.45; + word-break: break-word; + font-size: 13px; + font-weight: 600; +} + +@media (max-width: 900px) { + .profileShell { + padding: 16px; + } + + .profileGrid { + grid-template-columns: 1fr; + } +} + +@media (max-width: 640px) { + .profileHeader { + flex-direction: column; + align-items: flex-start; + } + + .profileLink { + align-self: flex-start; + } + + .profileInfoList { + grid-template-columns: 1fr; + } +} diff --git a/codience/webview-ui/webview-ui/src/pages/styles/ReviewerRecommendationSettings.css b/codience/webview-ui/webview-ui/src/pages/styles/ReviewerRecommendationSettings.css new file mode 100644 index 00000000..886e9432 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/styles/ReviewerRecommendationSettings.css @@ -0,0 +1,263 @@ +.reviewerSettingsPage { + position: fixed; + inset: 0; + min-height: 100vh; + padding: 28px; + background: #101213; + color: #d7d7d7; + display: flex; + align-items: flex-start; + justify-content: center; + box-sizing: border-box; + overflow: auto; + z-index: 30; + font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; +} + +.reviewerSettingsCard { + width: min(920px, calc(100vw - 56px)); + max-width: 100%; + background: #141617; + border: 1px solid rgba(255, 255, 255, 0.03); + border-radius: 8px; + padding: 24px; + box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48); + box-sizing: border-box; +} + +.reviewerSettingsHeader { + display: flex; + justify-content: space-between; + gap: 16px; + align-items: flex-start; + margin-bottom: 18px; + padding-bottom: 18px; + border-bottom: 1px solid rgba(255, 255, 255, 0.04); +} + +.reviewerSettingsHeader h2 { + margin: 4px 0 8px; + color: #ececec; + font-size: 22px; + line-height: 1.25; + font-weight: 600; +} + +.reviewerSettingsHeader .eyebrow { + margin: 0; + text-transform: uppercase; + letter-spacing: 0; + font-size: 12px; + color: #4f9d69; + font-weight: 700; +} + +.reviewerSettingsHeader .subtext { + margin: 0; + color: #9a9a9a; + max-width: 56ch; + font-size: 13px; + line-height: 1.5; +} + +.reviewerSettingsForm { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 16px; +} + +.reviewerSettingsForm label { + display: flex; + flex-direction: column; + gap: 8px; + font-size: 13px; + color: #bdbdbd; + font-weight: 600; +} + +.reviewerSettingsForm input, +.reviewerSettingsForm textarea { + width: 100%; + background: #0f1112; + border: 1px solid rgba(255, 255, 255, 0.05); + border-radius: 6px; + color: #ececec; + padding: 10px 12px; + outline: none; + box-sizing: border-box; + font: inherit; + font-weight: 500; +} + +.reviewerSettingsForm input:focus, +.reviewerSettingsForm textarea:focus { + border-color: rgba(79, 157, 105, 0.8); + box-shadow: 0 0 0 3px rgba(79, 157, 105, 0.13); +} + +.reviewerSettingsForm input::placeholder, +.reviewerSettingsForm textarea::placeholder { + color: #6f7378; +} + +.reviewerSettingsForm textarea { + resize: vertical; + min-height: 160px; +} + +.reviewerRows { + display: flex; + flex-direction: column; + gap: 10px; +} + +.reviewerRow { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; + gap: 10px; + align-items: center; + padding: 10px; + background: #161718; + border: 1px solid rgba(255, 255, 255, 0.03); + border-radius: 8px; +} + +.removeReviewerButton, +.addReviewerButton { + border-radius: 6px; + padding: 10px 14px; + font-weight: 600; + cursor: pointer; + border: 1px solid rgba(255, 255, 255, 0.08); + background: rgba(255, 255, 255, 0.02); + color: #d7d7d7; + transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; +} + +.removeReviewerButton { + width: 40px; + height: 40px; + padding: 0; + color: #ff8a8a; + font-size: 20px; + line-height: 1; +} + +.addReviewerButton { + margin-top: 12px; + width: fit-content; +} + +.removeReviewerButton:hover, +.addReviewerButton:hover { + background: rgba(255, 255, 255, 0.06); + border-color: rgba(255, 255, 255, 0.14); + transform: translateY(-1px); +} + +.fullWidth { + grid-column: 1 / -1; +} + +.formError { + grid-column: 1 / -1; + background: rgba(220, 38, 38, 0.1); + border: 1px solid rgba(220, 38, 38, 0.28); + color: #ffb6b6; + padding: 12px 14px; + border-radius: 6px; + font-size: 13px; +} + +.formActions { + grid-column: 1 / -1; + display: flex; + justify-content: flex-end; + gap: 12px; + margin-top: 8px; +} + +.primaryButton, +.ghostButton, +.secondaryButton { + border-radius: 6px; + padding: 10px 16px; + font-weight: 600; + cursor: pointer; + transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; +} + +.primaryButton { + border: none; + background: linear-gradient( + 180deg, + rgba(34, 197, 94, 0.26), + rgba(34, 197, 94, 0.12) + ); + color: #f4fff7; +} + +.ghostButton, +.secondaryButton { + border: 1px solid rgba(255, 255, 255, 0.08); + background: rgba(255, 255, 255, 0.02); + color: #d7d7d7; +} + +.primaryButton:hover, +.ghostButton:hover, +.secondaryButton:hover { + transform: translateY(-1px); +} + +.primaryButton:hover { + background: linear-gradient( + 180deg, + rgba(34, 197, 94, 0.34), + rgba(34, 197, 94, 0.16) + ); +} + +.ghostButton:hover, +.secondaryButton:hover { + background: rgba(255, 255, 255, 0.06); + border-color: rgba(255, 255, 255, 0.14); +} + +@media (max-width: 760px) { + .reviewerSettingsPage { + padding: 16px; + } + + .reviewerSettingsCard { + width: min(100%, calc(100vw - 32px)); + padding: 18px; + border-radius: 8px; + } + + .reviewerSettingsHeader { + flex-direction: column; + gap: 12px; + } + + .secondaryButton { + width: 100%; + } + + .reviewerSettingsForm { + grid-template-columns: 1fr; + } + + .reviewerRow { + grid-template-columns: 1fr; + } + + .formActions { + justify-content: stretch; + flex-direction: column-reverse; + } + + .formActions button { + width: 100%; + } +} diff --git a/codience/webview-ui/webview-ui/src/pages/styles/SideBarLayout.css b/codience/webview-ui/webview-ui/src/pages/styles/SideBarLayout.css new file mode 100644 index 00000000..2d38b7db --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/styles/SideBarLayout.css @@ -0,0 +1,9 @@ +.sideBarLayout { + display: flex; + +} + +.Home { + width: 100%; + +} \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/pages/styles/WelcomePage.css b/codience/webview-ui/webview-ui/src/pages/styles/WelcomePage.css new file mode 100644 index 00000000..7118a0db --- /dev/null +++ b/codience/webview-ui/webview-ui/src/pages/styles/WelcomePage.css @@ -0,0 +1,27 @@ +.welcomePage { + display: flex; + height: 100vh; + flex-flow: column; + align-items: center; + justify-content: center; + gap: 50px; +} + +.welcomePage h2 { + text-align: center; + color: #eee; +} + +.welcomePage a { + color: #eee; + background-color: rgba(30, 164, 79, 0.85); + width: 70%; + text-align: center; + border-radius: 5px; + padding-block: 10px; + text-decoration: none; +} + +.welcomePage a:hover { + background-color: rgba(34, 197, 94, 0.85); +} diff --git a/codience/webview-ui/webview-ui/src/routes/AppRoutes.tsx b/codience/webview-ui/webview-ui/src/routes/AppRoutes.tsx new file mode 100644 index 00000000..26a6acd5 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/routes/AppRoutes.tsx @@ -0,0 +1,43 @@ +import { Routes, Route, Navigate } from "react-router-dom"; +import WelcomePage from "../pages/WelcomePage"; +import UserCode from "../components/ui/UserCode"; +import JiraLogin from "../pages/JiraLogin"; +import JiraProjectName from "../pages/JiraProjectName"; +import GetRepoName from "../pages/GetRepoName"; +import GitHubAppInstall from "../pages/GitHubAppInstall"; +import SideBarLayout from "../pages/SideBarLayout"; +import Home from "../pages/Home"; +import ReviewerRecommendationSettings from "../pages/ReviewerRecommendationSettings"; +import Profile from "../pages/Profile"; +import PrSummaryDetails from "../pages/PrSummaryDetails"; + +export default function AppRoutes() { + return ( + + } /> + } /> + } /> + } /> + } /> + } /> + + }> + } /> + } /> + }> + } /> + } + /> + + } + /> + + + } /> + + ); +} diff --git a/codience/webview-ui/webview-ui/src/services/auth.service.ts b/codience/webview-ui/webview-ui/src/services/auth.service.ts new file mode 100644 index 00000000..bb097da5 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/auth.service.ts @@ -0,0 +1,24 @@ + +import axios from "axios"; +import type { DeviceCodeResponse } from "../types/DeviceCode"; +import type { Token } from "../types/Token"; + + +export async function exchangeDeviceCode( + deviceData: DeviceCodeResponse, +): Promise { + const url = "https://codience.onrender.com/api/GitHubAuth/token"; + const res = await axios.post(url, deviceData, { + validateStatus: () => true, + }); + + if (res.status === 200) return res.data; + throw new Error(`Token exchange failed with status ${res.status}`); +} + +export async function fetchDeviceCode(): Promise { + const url = "https://codience.onrender.com/api/GitHubAuth/device-code"; + const res = await axios.get(url); + if (res.status === 200) return res.data; + throw new Error(`Failed to fetch device code: ${res.status}`); +} diff --git a/codience/webview-ui/webview-ui/src/services/businessImpact.service.ts b/codience/webview-ui/webview-ui/src/services/businessImpact.service.ts new file mode 100644 index 00000000..e69f574d --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/businessImpact.service.ts @@ -0,0 +1,131 @@ +import axios from "axios"; +import type { PullRequest } from "../types/PullRequest"; +import { getBusinessImpactConfig, getUserRepo, withOneRetry } from "./serviceUtils"; + +type BusinessImpactResponse = NonNullable; + +const mapTier = (value: unknown): string => { + const normalized = String(value ?? "").toLowerCase(); + + if (normalized === "low" || normalized === "medium" || normalized === "high") { + return normalized; + } + + return "unknown"; +}; + +const normalizeScore = (value: unknown): number | string => { + if (typeof value === "number") return Number(value.toFixed(2)); + if (typeof value === "string") { + const parsed = Number(value); + return Number.isFinite(parsed) ? Number(parsed.toFixed(2)) : value; + } + + return "N/A"; +}; + +const hasResolvedBusinessImpact = ( + businessImpact: PullRequest["business_impact"], +) => + Boolean( + businessImpact && + businessImpact.weighted_score !== "Loading..." && + businessImpact.tier !== "loading", + ); + +const parseBusinessImpact = (payload: unknown): BusinessImpactResponse => { + if (!payload || typeof payload !== "object") { + return { + weighted_score: "N/A", + tier: "unknown", + ai_summary: "Business impact is unavailable.", + }; + } + + const record = payload as Record; + const scoreBreakdown = + record.score_breakdown && typeof record.score_breakdown === "object" + ? (record.score_breakdown as BusinessImpactResponse["score_breakdown"]) + : undefined; + + return { + weighted_score: normalizeScore(record.weighted_score), + tier: mapTier(record.tier), + should_block_merge: + typeof record.should_block_merge === "boolean" + ? record.should_block_merge + : undefined, + ai_summary: + typeof record.ai_summary === "string" && record.ai_summary.trim() + ? record.ai_summary + : "No business impact summary returned.", + score_breakdown: scoreBreakdown, + }; +}; + +export const fetchBusinessImpactForPR = async ( + prNumber: number, +): Promise => { + const { userName, repoName } = getUserRepo(); + const ownerName = (localStorage.getItem("ownerName") ?? userName).trim(); + const businessImpactConfig = getBusinessImpactConfig(); + const businessImpactUrl = `http://127.0.0.1:8003/api/rank/pr/${encodeURIComponent(ownerName)}/${encodeURIComponent(repoName)}/${prNumber}/with-config`; + const businessImpactRes = await withOneRetry(() => + axios.post(businessImpactUrl, businessImpactConfig), + ); + + return parseBusinessImpact(businessImpactRes.data); +}; + +export const enrichPRsWithBusinessImpact = async ( + prs: PullRequest[], + onPRBusinessImpactResolved?: (updatedPR: PullRequest, index: number) => void, +): Promise => { + try { + const prsWithBusinessImpact = [...prs]; + + for (const [index, pr] of prs.entries()) { + if (hasResolvedBusinessImpact(pr.business_impact)) { + prsWithBusinessImpact[index] = pr; + onPRBusinessImpactResolved?.(pr, index); + continue; + } + + let businessImpact: BusinessImpactResponse; + + try { + businessImpact = await fetchBusinessImpactForPR(pr.number); + } catch (businessImpactError: any) { + console.error( + `Failed to fetch business impact for PR #${pr.number}:`, + businessImpactError?.message || businessImpactError, + ); + businessImpact = { + weighted_score: "N/A", + tier: "unknown", + ai_summary: "Business impact is unavailable.", + }; + } + + const updatedPR: PullRequest = { + ...prs[index], + business_impact: businessImpact, + }; + + prsWithBusinessImpact[index] = updatedPR; + onPRBusinessImpactResolved?.(updatedPR, index); + } + + console.log("PR business impact enrichment finished:", prsWithBusinessImpact); + + return prsWithBusinessImpact; + } catch (error: any) { + console.error("Failed to enrich PR business impact:", error?.message || error); + return prs; + } +}; + +export default { + fetchBusinessImpactForPR, + enrichPRsWithBusinessImpact, +}; diff --git a/codience/webview-ui/webview-ui/src/services/githubApp.service.ts b/codience/webview-ui/webview-ui/src/services/githubApp.service.ts new file mode 100644 index 00000000..d746e9bc --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/githubApp.service.ts @@ -0,0 +1,29 @@ +import axios from "axios"; +import type { GitHubAppConnectParams } from "../types/GitHubInstallation"; +import type { GitHubAppConnectResponse } from "../types/GitHubInstallation"; + +const GITHUB_APP_CONNECT_URL = "http://localhost:5051/api/GitHubApp/connect"; + + + +export const connectGitHubApp = async ({ + userName, + owner, + repo, +}: GitHubAppConnectParams): Promise => { + const response = await axios.get( + GITHUB_APP_CONNECT_URL, + { + params: { userName, owner, repo }, + }, + ); + + const data = response.data; + + return { + isInstalled: Boolean(data.isInstalled ?? data.isInstalled), + isAdmin: Boolean(data.isAdmin ?? data.isAdmin), + message: data.message ?? "", + installUrl: data.installUrl ?? data.installUrl, + }; +}; diff --git a/codience/webview-ui/webview-ui/src/services/jiraService.ts b/codience/webview-ui/webview-ui/src/services/jiraService.ts new file mode 100644 index 00000000..11b9f11f --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/jiraService.ts @@ -0,0 +1,83 @@ +import axios from "axios"; +import type { JiraLoginResponse } from "../types/JiraAuth"; +import type { JiraExchangeResponse, JiraProject } from "../types/JiraAuth"; + +const JIRA_LOGIN_URL = "http://127.0.0.1:5051/api/Jira/login"; +const JIRA_EXCHANGE_URL = "http://127.0.0.1:5051/api/Jira/exchange"; + +type JiraLoginState = "webapp" | "vscode"; + +export const jiraService = { + async fetchLoginUrl(state: JiraLoginState = "webapp"): Promise { + const response = await axios.get(JIRA_LOGIN_URL, { + params: { state }, + }); + + if (!response.data?.url) { + throw new Error("Jira login response did not include a redirect URL."); + } + + return response.data.url; + }, + + async exchangeCode(code: string): Promise { + const response = await axios.post(JIRA_EXCHANGE_URL, { + code, + }); + + if (!response.data.accessToken || !response.data.cloudId) { + throw new Error("Jira exchange response did not include token data."); + } + + return response.data; + }, + + storeSession(data: JiraExchangeResponse) { + localStorage.setItem("JiraAccessToken", data.accessToken); + localStorage.setItem("JiraCloudId", data.cloudId); + }, + + hasSession() { + return Boolean( + localStorage.getItem("JiraAccessToken")?.trim() && + localStorage.getItem("JiraCloudId")?.trim(), + ); + }, + + storeProjects(projects: JiraProject[]) { + localStorage.setItem("JiraProjects", JSON.stringify(projects ?? [])); + }, + + getStoredProjects(): JiraProject[] { + try { + const raw = localStorage.getItem("JiraProjects"); + + if (!raw) { + return []; + } + + const parsed = JSON.parse(raw) as JiraProject[]; + + return Array.isArray(parsed) ? parsed : []; + } catch { + return []; + } + }, + + storeProjectKey(projectKey: string) { + localStorage.setItem("JiraProjectKey", projectKey); + }, + + clearSession() { + localStorage.removeItem("JiraAccessToken"); + localStorage.removeItem("JiraCloudId"); + localStorage.removeItem("JiraProjectKey"); + localStorage.removeItem("JiraProjects"); + }, + + getCodeFromSearch(search: string = window.location.search) { + return new URLSearchParams(search).get("code"); + }, +}; + +export default jiraService; diff --git a/codience/webview-ui/webview-ui/src/services/prSummary.service.ts b/codience/webview-ui/webview-ui/src/services/prSummary.service.ts new file mode 100644 index 00000000..5ca960d3 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/prSummary.service.ts @@ -0,0 +1,34 @@ +import axios from "axios"; +import type { PRSummaryResponse } from "../types/PRSummary"; + + +const SUMMARY_BASE_URL = "http://127.0.0.1:8002/summarize"; + +const getGitHubSummaryContext = () => { + const owner = (localStorage.getItem("ownerName") ?? "").trim(); + const repo = (localStorage.getItem("RepoName") ?? "").trim(); + + if (!owner) { + throw new Error("GitHub owner is missing. Please re-select the repository."); + } + + if (!repo) { + throw new Error("GitHub repository is missing. Please re-select the repository."); + } + + return { owner, repo }; +}; + +export const fetchPrSummary = async (prNumber: number): Promise => { + if (!Number.isFinite(prNumber)) { + throw new Error("The PR number is missing or invalid."); + } + + const { owner, repo } = getGitHubSummaryContext(); + const url = `${SUMMARY_BASE_URL}/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/pulls/${prNumber}`; + const response = await axios.get(url); + + return response.data?.summary ?? ""; +}; + +export default { fetchPrSummary }; diff --git a/codience/webview-ui/webview-ui/src/services/profile.service.ts b/codience/webview-ui/webview-ui/src/services/profile.service.ts new file mode 100644 index 00000000..c87e936a --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/profile.service.ts @@ -0,0 +1,16 @@ +import axios from "axios"; +import type { GitHubProfile } from "../types/GitHubProfile"; + +const PROFILE_URL = "http://localhost:5051/api/GitHubProfiling"; + +export const fetchGitHubProfile = async ( + username: string, +): Promise => { + const response = await axios.get( + `${PROFILE_URL}/${encodeURIComponent(username)}`, + ); + + return response.data; +}; + +export default { fetchGitHubProfile }; \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/services/prs.service.ts b/codience/webview-ui/webview-ui/src/services/prs.service.ts new file mode 100644 index 00000000..2adf1894 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/prs.service.ts @@ -0,0 +1,138 @@ +import axios from "axios"; +import type { PullRequest } from "../types/PullRequest"; +import { getUserRepo, withOneRetry } from "./serviceUtils"; + +const fetchPRFilesChangedCount = async ( + userName: string, + repoName: string, + prNumber: number, +): Promise => { + const filesUrl = `https://codience.onrender.com/api/GitHubAuth/${encodeURIComponent(userName)}/${encodeURIComponent(repoName)}/pulls/${prNumber}/files`; + + const response = await withOneRetry(() => axios.get(filesUrl)); + + if (!Array.isArray(response.data)) { + return 0; + } + + return response.data.length; +}; + +const fetchPRFilesChangedCountWithRetry = async ( + userName: string, + repoName: string, + prNumber: number, +) => withOneRetry(() => fetchPRFilesChangedCount(userName, repoName, prNumber)); + +export const normalizePullRequest = (pr: any): PullRequest => ({ + ...pr, + number: Number(pr.number ?? pr.prNumber ?? pr.pullRequestNumber ?? 0), + title: String(pr.title ?? ""), + state: String(pr.state ?? "open").toLowerCase(), + name: String(pr.name ?? pr.repositoryName ?? pr.repoName ?? pr.repository ?? ""), + createdAt: + pr.createdAt ?? + (pr.created_at === "0001-01-01T00:00:00" || !pr.created_at + ? new Date().toLocaleDateString("en-GB") + : new Date(pr.created_at).toLocaleDateString("en-GB")), + files_changed: pr.files_changed ?? "Loading...", + risk: + pr.risk ?? + ({ + risk_score: "Loading...", + risk_level: "loading", + comments: 0, + files_changed: pr.files_changed ?? "Loading...", + } as PullRequest["risk"]), + business_impact: + pr.business_impact ?? + ({ + weighted_score: "Loading...", + tier: "loading", + ai_summary: "Loading...", + } as PullRequest["business_impact"]), +}); + +export const fetchPRs = async (): Promise => { + const { userName, repoName } = getUserRepo(); + + const url = `http://localhost:5051/api/GitHubAuth/${userName}/${repoName}/pulls`; + + + try { + const res = await axios.get(url); + + const normalizedPRs = res.data.map(normalizePullRequest); + + console.log("PRs fetched:", normalizedPRs); + + return normalizedPRs as PullRequest[]; + } catch (error: any) { + console.error("Failed to fetch PRs:", error?.message || error); + throw new Error("Failed to fetch pull requests"); + } +}; + +export const enrichPRsWithFilesChanged = async ( + prs: PullRequest[], + onPRFilesChangedResolved?: (updatedPR: PullRequest, index: number) => void, +): Promise => { + const { userName, repoName } = getUserRepo(); + + try { + const prsWithFilesChanged = [...prs]; + + for (const [index, pr] of prs.entries()) { + try { + const filesChanged = await fetchPRFilesChangedCountWithRetry( + userName, + repoName, + pr.number, + ); + + const updatedPR: PullRequest = { + ...prs[index], + files_changed: filesChanged, + risk: prs[index].risk + ? { + ...prs[index].risk, + files_changed: filesChanged, + } + : prs[index].risk, + }; + + prsWithFilesChanged[index] = updatedPR; + onPRFilesChangedResolved?.(updatedPR, index); + } catch (filesError: any) { + console.error( + `Failed to fetch changed files for PR #${pr.number}:`, + filesError?.message || filesError, + ); + + const updatedPR: PullRequest = { + ...prs[index], + files_changed: "Error", + risk: prs[index].risk + ? { + ...prs[index].risk, + files_changed: "Error", + } + : prs[index].risk, + }; + + prsWithFilesChanged[index] = updatedPR; + onPRFilesChangedResolved?.(updatedPR, index); + } + } + + return prsWithFilesChanged; + } catch (error: any) { + console.error("Failed to enrich PR files changed:", error?.message || error); + return prs; + } +}; + +export default { + fetchPRs, + enrichPRsWithFilesChanged, +}; diff --git a/codience/webview-ui/webview-ui/src/services/pullRequestsHub.service.ts b/codience/webview-ui/webview-ui/src/services/pullRequestsHub.service.ts new file mode 100644 index 00000000..34d5fd04 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/pullRequestsHub.service.ts @@ -0,0 +1,39 @@ +import * as signalR from "@microsoft/signalr"; + +const PULL_REQUESTS_HUB_URL = "http://localhost:5051/hubs/pullrequests"; + +export type PullRequestCreatedHandler = (payload: unknown) => void; + +export type PullRequestsHubRegistration = { + userId: string; + owner: string; + repo: string; +}; + +export const subscribeToPullRequestCreated = async ( + registration: PullRequestsHubRegistration, + onCreated: PullRequestCreatedHandler, +): Promise<() => void> => { + const connection = new signalR.HubConnectionBuilder() + .withUrl(PULL_REQUESTS_HUB_URL) + .withAutomaticReconnect() + .build(); + + connection.on("PullRequestCreated", onCreated); + + await connection.start(); + + console.log(connection.connectionId, "Connected to PullRequestsHub"); + + await connection.invoke( + "RegisterRepository", + registration.userId, + registration.owner, + registration.repo, + ); + + return () => { + connection.off("PullRequestCreated", onCreated); + void connection.stop(); + }; +}; diff --git a/codience/webview-ui/webview-ui/src/services/repos.service.ts b/codience/webview-ui/webview-ui/src/services/repos.service.ts new file mode 100644 index 00000000..2ad6dbc5 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/repos.service.ts @@ -0,0 +1,65 @@ +import axios from "axios"; +import type { GitHubRepo } from "../types/GitHubRepo"; + +const REPOS_URL = "http://localhost:5051/api/GithubAuth/repos"; + +interface RepoApiItem { + name: string; + url: string; + description: string | null; +} + +export const getRepoUrlParts = (url: string) => { + try { + const parsedUrl = new URL(url); + const parts = parsedUrl.pathname.split("/").filter(Boolean); + const owner = parts[0] ?? ""; + const repo = parts[1] ?? ""; + + return { owner, repo }; + } catch { + return { owner: "", repo: "" }; + } +}; + +export const storeOwnerNameFromRepoUrl = (url: string) => { + const { owner } = getRepoUrlParts(url); + + if (owner) { + localStorage.setItem("ownerName", owner); + } else { + localStorage.removeItem("ownerName"); + } + + return owner; +}; + +const normalizeRepo = (item: RepoApiItem): GitHubRepo => { + const { owner, repo } = getRepoUrlParts(item.url); + + return { + name: item.name, + full_name: owner && repo ? `${owner}/${repo}` : item.name , + html_url: item.url, + description: item.description, + owner: owner ? { login: owner } : undefined, + }; +}; + +export const fetchUserRepos = async ( + userName: string, + page = 1, + pageSize = 50, +): Promise => { + const response = await axios.get(REPOS_URL, { + params: { userName, page, pageSize }, + }); + + const repos = Array.isArray(response.data) + ? response.data + : response.data?.items ?? response.data?.data ?? []; + + return (repos as RepoApiItem[]).map(normalizeRepo); +}; + +export default { fetchUserRepos }; \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/services/reviewers.service.ts b/codience/webview-ui/webview-ui/src/services/reviewers.service.ts new file mode 100644 index 00000000..a5ada1ab --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/reviewers.service.ts @@ -0,0 +1,122 @@ +import axios from "axios"; +import type { + RecommendedReviewer, + ReviewerRecommendationRequest, + ReviewerRecommendationSettings, + ReviewerRecommendationApiItem, + ReviewerRecommendationApiResponse, +} from "../types/Reviewers"; + +const REVIEWER_RECOMMENDATIONS_URL = "http://localhost:8000/api/recommend-reviewers"; + +const recommendationCache = new Map>(); + + +const getGitHubContext = () => { + const owner = (localStorage.getItem("ownerName") ?? "").trim(); + const repo = (localStorage.getItem("RepoName") ?? "").trim(); + + if (!owner) { + throw new Error("GitHub owner is missing. Please re-select the repository."); + } + + if (!repo) { + throw new Error("GitHub repository is missing. Please re-select the repository."); + } + + return { owner, repo }; +}; + +const getJiraContext = () => { + const jiraToken = (localStorage.getItem("JiraAccessToken") ?? "").trim(); + const jiraCloudId = (localStorage.getItem("JiraCloudId") ?? "").trim(); + const jiraProjectKey = (localStorage.getItem("JiraProjectKey") ?? "").trim(); + + if (!jiraToken) { + throw new Error("Jira access token is missing. Please authenticate with Jira again."); + } + + if (!jiraCloudId) { + throw new Error("Jira cloud ID is missing. Please authenticate with Jira again."); + } + + if (!jiraProjectKey) { + throw new Error("Jira project key is missing. Please select a Jira project again."); + } + + return { jiraToken, jiraCloudId, jiraProjectKey }; +}; + +const buildRecommendationRequest = ( + pr: ReviewerRecommendationRequest, + settings: ReviewerRecommendationSettings | null, +): ReviewerRecommendationRequest & { settingsVersion: string } => { + const { owner, repo } = getGitHubContext(); + const { jiraToken, jiraCloudId, jiraProjectKey } = getJiraContext(); + const reviewerRows = settings?.requiredReviewers ?? []; + const requiredReviewers = reviewerRows + .map((reviewer) => ({ + username: reviewer.username.trim(), + jiraUsername: reviewer.jiraUsername.trim(), + })) + .filter((reviewer) => reviewer.username.length > 0 && reviewer.jiraUsername.length > 0); + + const request: ReviewerRecommendationRequest = { + owner, + repo, + pr_number: pr.pr_number, + options: { + top_k: settings?.k ?? pr.options.top_k, + }, + jira_token: jiraToken, + jira_cloud_id: jiraCloudId, + jira_project_key: jiraProjectKey, + }; + + if (requiredReviewers.length > 0) { + request.required_reviewers = requiredReviewers; + } + + return { + ...request, + settingsVersion: settings?.updatedAt ?? "", + }; +}; + +const normalizeReviewerResponse = ( + items: ReviewerRecommendationApiItem[] = [], +): RecommendedReviewer[] => + items.map((item) => ({ + reviewerName: item.name, + confidence: + item.confidence_score > 1 ? item.confidence_score / 100 : item.confidence_score, + justification: item.justification, + })); + +export const fetchRecommendedReviewers = async ( + pr: ReviewerRecommendationRequest | null, + settings: ReviewerRecommendationSettings | null = null, +): Promise => { + if (!pr) return []; + + const request = buildRecommendationRequest(pr, settings); + const cacheKey = JSON.stringify(request); + + const cached = recommendationCache.get(cacheKey); + if (cached) { + return cached; + } + + const requestPromise = axios + .post(REVIEWER_RECOMMENDATIONS_URL, request) + .then((response) => normalizeReviewerResponse(response.data?.recommended_reviewers ?? [])) + .catch((error) => { + recommendationCache.delete(cacheKey); + throw error; + }); + + recommendationCache.set(cacheKey, requestPromise); + return requestPromise; +}; + +export default { fetchRecommendedReviewers }; diff --git a/codience/webview-ui/webview-ui/src/services/risk.service.ts b/codience/webview-ui/webview-ui/src/services/risk.service.ts new file mode 100644 index 00000000..f0fc7e53 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/risk.service.ts @@ -0,0 +1,138 @@ +import axios from "axios"; +import type { PullRequest } from "../types/PullRequest"; +import { getUserRepo, withOneRetry } from "./serviceUtils"; + +type OrchestrateRisk = { + risk_score?: number | string; + risk_level?: string; + comments?: number; + files_changed?: number | string; +}; + +const mapRiskLevel = (value: unknown): string => { + const normalized = String(value ?? "").toLowerCase(); + + if (normalized === "low" || normalized === "medium" || normalized === "high") { + return normalized; + } + + return "unknown"; +}; + +const normalizeRiskScore = (value: unknown): number | string => { + if (typeof value === "number") return value; + if (typeof value === "string") return value; + return "N/A"; +}; + +const hasResolvedRisk = (risk: PullRequest["risk"]) => + Boolean( + risk && + risk.risk_score !== "Loading..." && + risk.risk_level !== "loading", + ); + +const parseOrchestrateRisk = (payload: unknown): OrchestrateRisk => { + if (!payload || typeof payload !== "object") { + return { risk_score: "N/A", risk_level: "unknown" }; + } + + const record = payload as Record; + + if (typeof record.bug_probability === "number") { + const probability = Math.max(0, Math.min(1, record.bug_probability)); + const score = Number((probability * 100).toFixed(2)); + const risk_level = + probability < 0.33 ? "low" : probability < 0.66 ? "medium" : "high"; + + return { + risk_score: score, + risk_level, + }; + } + + const nestedRisk = + record.risk && typeof record.risk === "object" + ? (record.risk as Record) + : null; + + const risk_score = normalizeRiskScore( + nestedRisk?.risk_score ?? record.risk_score ?? record.score, + ); + const risk_level = mapRiskLevel( + nestedRisk?.risk_level ?? record.risk_level ?? record.level, + ); + + return { + risk_score, + risk_level, + comments: + (nestedRisk?.comments as number | undefined) ?? + (record.comments as number | undefined), + files_changed: + (nestedRisk?.files_changed as number | undefined) ?? + (record.files_changed as number | undefined), + }; +}; + +export const fetchRiskForPR = async (prNumber: number): Promise => { + const { userName, repoName } = getUserRepo(); + const riskUrl = `http://127.0.0.1:8001/orchestrate/${encodeURIComponent(userName)}/${encodeURIComponent(repoName)}/${prNumber}`; + const riskRes = await withOneRetry(() => axios.get(riskUrl)); + + return parseOrchestrateRisk(riskRes.data); +}; + +export const enrichPRsWithRisk = async ( + prs: PullRequest[], + onPRRiskResolved?: (updatedPR: PullRequest, index: number) => void, +): Promise => { + try { + const prsWithRisk = [...prs]; + + for (const [index, pr] of prs.entries()) { + if (hasResolvedRisk(pr.risk)) { + prsWithRisk[index] = pr; + onPRRiskResolved?.(pr, index); + continue; + } + + let risk: OrchestrateRisk; + + try { + risk = await fetchRiskForPR(pr.number); + } catch (riskError: any) { + console.error( + `Failed to fetch risk for PR #${pr.number}:`, + riskError?.message || riskError, + ); + risk = { risk_score: "N/A", risk_level: "unknown" }; + } + + const updatedPR: PullRequest = { + ...prs[index], + risk: { + risk_score: risk.risk_score ?? "N/A", + risk_level: risk.risk_level ?? "unknown", + comments: risk.comments ?? 0, + files_changed: prs[index].files_changed ?? risk.files_changed ?? 0, + }, + }; + + prsWithRisk[index] = updatedPR; + onPRRiskResolved?.(updatedPR, index); + } + + console.log("PR risk enrichment finished:", prsWithRisk); + + return prsWithRisk; + } catch (error: any) { + console.error("Failed to enrich PR risks:", error?.message || error); + return prs; + } +}; + +export default { + fetchRiskForPR, + enrichPRsWithRisk, +}; diff --git a/codience/webview-ui/webview-ui/src/services/serviceUtils.ts b/codience/webview-ui/webview-ui/src/services/serviceUtils.ts new file mode 100644 index 00000000..25a02b41 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/serviceUtils.ts @@ -0,0 +1,36 @@ +export const getUserRepo = () => { + const userName = localStorage.getItem("User"); + const repoName = localStorage.getItem("RepoName"); + + if (!userName || !repoName) { + throw new Error("Username or repository name not found in local storage."); + } + + return { userName, repoName }; +}; + +export const getBusinessImpactConfig = () => { + const jiraApiToken = (localStorage.getItem("JiraAccessToken") ?? "").trim(); + const jiraCloudId = (localStorage.getItem("JiraCloudId") ?? "").trim(); + const jiraProjectKey = (localStorage.getItem("JiraProjectKey") ?? "").trim(); + + if (!jiraApiToken || !jiraCloudId || !jiraProjectKey) { + throw new Error("Jira configuration is missing from local storage."); + } + + return { + jira_api_token: jiraApiToken, + jira_cloud_id: jiraCloudId, + jira_project_key: jiraProjectKey, + }; +}; + +export const withOneRetry = async (request: () => Promise): Promise => { + try { + return await request(); + } catch (firstError) { + return await request().catch((secondError) => { + throw secondError ?? firstError; + }); + } +}; diff --git a/codience/webview-ui/webview-ui/src/services/vscodeApi.ts b/codience/webview-ui/webview-ui/src/services/vscodeApi.ts new file mode 100644 index 00000000..f3a5dce0 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/services/vscodeApi.ts @@ -0,0 +1,28 @@ +type VsCodeApi = { + postMessage: (message: unknown) => void; +}; + +type VsCodeWindow = Window & { + acquireVsCodeApi?: () => VsCodeApi; + __codienceVsCodeApi?: VsCodeApi; +}; + +export const getVsCodeApi = (): VsCodeApi | null => { + const webviewWindow = window as VsCodeWindow; + + if (webviewWindow.__codienceVsCodeApi) { + return webviewWindow.__codienceVsCodeApi; + } + + if (typeof webviewWindow.acquireVsCodeApi !== "function") { + return null; + } + + const api = webviewWindow.acquireVsCodeApi(); + webviewWindow.__codienceVsCodeApi = api; + + return api; +}; + +export const isVsCodeWebview = () => + typeof (window as VsCodeWindow).acquireVsCodeApi === "function"; diff --git a/codience/webview-ui/webview-ui/src/types/BusinessImpactType.ts b/codience/webview-ui/webview-ui/src/types/BusinessImpactType.ts new file mode 100644 index 00000000..fbf58c2c --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/BusinessImpactType.ts @@ -0,0 +1,14 @@ +export interface BusinessImpactType { + weighted_score: number | string; + tier: string; + should_block_merge?: boolean; + ai_summary?: string; + score_breakdown?: { + blast_radius?: number; + user_exposure?: number; + deadline?: number; + business_impact?: number; + formula_score?: number; + local_model_score?: number; + }; +} diff --git a/codience/webview-ui/webview-ui/src/types/DeviceCode.ts b/codience/webview-ui/webview-ui/src/types/DeviceCode.ts new file mode 100644 index 00000000..7ab85484 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/DeviceCode.ts @@ -0,0 +1,7 @@ +export interface DeviceCodeResponse { + device_code: string; + user_code: string; + verification_uri: string; + expires_in: number; + interval: number; +} diff --git a/codience/webview-ui/webview-ui/src/types/GitHubInstallation.ts b/codience/webview-ui/webview-ui/src/types/GitHubInstallation.ts new file mode 100644 index 00000000..2834c459 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/GitHubInstallation.ts @@ -0,0 +1,12 @@ +export interface GitHubAppConnectResponse { + isInstalled: boolean; + isAdmin: boolean; + message: string; + installUrl?: string; +} + +export interface GitHubAppConnectParams { + userName: string; + owner: string; + repo: string; +} \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/types/GitHubProfile.ts b/codience/webview-ui/webview-ui/src/types/GitHubProfile.ts new file mode 100644 index 00000000..38d1efb2 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/GitHubProfile.ts @@ -0,0 +1,14 @@ +export interface GitHubProfile { + login: string; + id: number; + avatar_url: string; + html_url: string; + name: string | null; + company: string | null; + blog: string; + location: string | null; + email: string | null; + bio: string | null; + public_repos: number; + created_at: string; +} \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/types/GitHubRepo.ts b/codience/webview-ui/webview-ui/src/types/GitHubRepo.ts new file mode 100644 index 00000000..d07f13d5 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/GitHubRepo.ts @@ -0,0 +1,12 @@ +export interface GitHubRepoOwner { + login: string; +} + +export interface GitHubRepo { + id?: number; + name: string; + full_name?: string; + html_url?: string; + description?: string | null; + owner?: GitHubRepoOwner; +} diff --git a/codience/webview-ui/webview-ui/src/types/JiraAuth.ts b/codience/webview-ui/webview-ui/src/types/JiraAuth.ts new file mode 100644 index 00000000..1b29e930 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/JiraAuth.ts @@ -0,0 +1,15 @@ + +export interface JiraLoginResponse { + url?: string; +} + +export interface JiraProject { + key: string; + name: string; +} + +export interface JiraExchangeResponse { + accessToken: string; + cloudId: string; + projects?: JiraProject[]; +} \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/types/PRSummary.ts b/codience/webview-ui/webview-ui/src/types/PRSummary.ts new file mode 100644 index 00000000..34aa9ae9 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/PRSummary.ts @@ -0,0 +1,3 @@ +export interface PRSummaryResponse { + summary?: string; +} \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/types/PullRequest.ts b/codience/webview-ui/webview-ui/src/types/PullRequest.ts new file mode 100644 index 00000000..4a2b707a --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/PullRequest.ts @@ -0,0 +1,13 @@ +import type { RiskType } from "./RiskType"; +import type { BusinessImpactType } from "./BusinessImpactType"; + +export interface PullRequest { + number: number; + title: string; + state: string; + createdAt: string; + name: string; + files_changed: number | string; + risk: RiskType | null; + business_impact: BusinessImpactType | null; +} diff --git a/codience/webview-ui/webview-ui/src/types/Reviewers.ts b/codience/webview-ui/webview-ui/src/types/Reviewers.ts new file mode 100644 index 00000000..df21737a --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/Reviewers.ts @@ -0,0 +1,43 @@ +export interface RecommendedReviewer { + reviewerName: string; + confidence: number; + justification?: string; +} + +export interface RequiredReviewer { + username: string; + jiraUsername: string; +} + +export interface ReviewerRecommendationRequest { + owner: string; + repo: string; + pr_number: number; + options: { + top_k: number; + }; + jira_token: string; + jira_cloud_id: string; + jira_project_key: string; + required_reviewers?: RequiredReviewer[]; +} + +export interface ReviewerRecommendationSettings { + repoName: string; + prNumber: number; + prTitle: string; + k: number; + commitCount: number; + requiredReviewers: RequiredReviewer[]; + updatedAt: string; +} + +export interface ReviewerRecommendationApiItem { + name: string; + confidence_score: number; + justification?: string; +} + +export interface ReviewerRecommendationApiResponse { + recommended_reviewers?: ReviewerRecommendationApiItem[]; +} \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/types/RiskType.ts b/codience/webview-ui/webview-ui/src/types/RiskType.ts new file mode 100644 index 00000000..ded02187 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/RiskType.ts @@ -0,0 +1,6 @@ +export interface RiskType { + risk_score: number | string; + risk_level: string; + comments?: number; + files_changed?: number | string; +} diff --git a/codience/webview-ui/webview-ui/src/types/Token.ts b/codience/webview-ui/webview-ui/src/types/Token.ts new file mode 100644 index 00000000..4a7a59d9 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/Token.ts @@ -0,0 +1,7 @@ +export interface Token { + id: number; + login: string; + email: string, + accessToken: string; + githubIdString: string; +} \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/types/UserTest.ts b/codience/webview-ui/webview-ui/src/types/UserTest.ts new file mode 100644 index 00000000..fda75972 --- /dev/null +++ b/codience/webview-ui/webview-ui/src/types/UserTest.ts @@ -0,0 +1,6 @@ +export interface user { + userId: number, + id: number, + title: string, + completed: boolean, +} \ No newline at end of file diff --git a/codience/webview-ui/webview-ui/src/utils/reviewerRecommendationSettings.ts b/codience/webview-ui/webview-ui/src/utils/reviewerRecommendationSettings.ts new file mode 100644 index 00000000..e99ba4fa --- /dev/null +++ b/codience/webview-ui/webview-ui/src/utils/reviewerRecommendationSettings.ts @@ -0,0 +1,104 @@ +import type { + RequiredReviewer, + ReviewerRecommendationSettings, +} from "../types/Reviewers"; + +type LegacyReviewerRecommendationSettings = Partial & { + reviewerNames?: string[]; +}; + +const STORAGE_PREFIX = "ReviewerRecommendationSettings"; + +export const getReviewerSettingsKey = ( + repoName: string, + prNumber: number, +) => `${STORAGE_PREFIX}:${repoName.trim() || "default-repo"}:${prNumber}`; + +export const normalizeReviewerNames = (value: string): string[] => + value + .split(/\r?\n|,/) + .map((name) => name.trim()) + .filter(Boolean); + +export const getDefaultReviewerRecommendationSettings = ( + repoName: string, + prNumber: number, + prTitle = "", +): ReviewerRecommendationSettings => ({ + repoName, + prNumber, + prTitle, + k: 3, + commitCount: 0, + requiredReviewers: [], + updatedAt: new Date().toISOString(), +}); + +export const normalizeRequiredReviewer = ( + reviewer: Partial, +): RequiredReviewer => ({ + username: reviewer.username?.trim() ?? "", + jiraUsername: reviewer.jiraUsername?.trim() ?? "", +}); + +export const normalizeRequiredReviewers = ( + reviewers: Array>, +): RequiredReviewer[] => + reviewers + .map(normalizeRequiredReviewer) + .filter((reviewer) => reviewer.username.length > 0 || reviewer.jiraUsername.length > 0); + +export const loadReviewerRecommendationSettings = ( + repoName: string, + prNumber: number, +): ReviewerRecommendationSettings | null => { + try { + const raw = localStorage.getItem(getReviewerSettingsKey(repoName, prNumber)); + if (!raw) return null; + + const parsed = JSON.parse(raw) as + | ReviewerRecommendationSettings + | LegacyReviewerRecommendationSettings; + + const legacyParsed = parsed as LegacyReviewerRecommendationSettings; + + const requiredReviewers = Array.isArray(parsed?.requiredReviewers) + ? normalizeRequiredReviewers(parsed.requiredReviewers) + : Array.isArray(legacyParsed.reviewerNames) + ? legacyParsed.reviewerNames + .map((name: string) => ({ username: name, jiraUsername: "" })) + .filter((reviewer: RequiredReviewer) => reviewer.username.length > 0) + : []; + + if ( + typeof parsed?.k !== "number" || + typeof parsed?.commitCount !== "number" || + !Array.isArray(requiredReviewers) + ) { + return null; + } + + return { + repoName: parsed.repoName ?? repoName, + prNumber: parsed.prNumber ?? prNumber, + prTitle: parsed.prTitle ?? "", + k: parsed.k, + commitCount: parsed.commitCount, + requiredReviewers, + updatedAt: parsed.updatedAt ?? new Date().toISOString(), + }; + } catch { + return null; + } +}; + +export const saveReviewerRecommendationSettings = ( + settings: ReviewerRecommendationSettings, +): ReviewerRecommendationSettings => { + localStorage.setItem( + getReviewerSettingsKey(settings.repoName, settings.prNumber), + JSON.stringify(settings), + ); + + return settings; +}; diff --git a/codience/webview-ui/webview-ui/tsconfig.app.json b/codience/webview-ui/webview-ui/tsconfig.app.json new file mode 100644 index 00000000..a9b5a59c --- /dev/null +++ b/codience/webview-ui/webview-ui/tsconfig.app.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "target": "ES2022", + "useDefineForClassFields": true, + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "module": "ESNext", + "types": ["vite/client"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["src"] +} diff --git a/codience/webview-ui/webview-ui/tsconfig.json b/codience/webview-ui/webview-ui/tsconfig.json new file mode 100644 index 00000000..1ffef600 --- /dev/null +++ b/codience/webview-ui/webview-ui/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] +} diff --git a/codience/webview-ui/webview-ui/tsconfig.node.json b/codience/webview-ui/webview-ui/tsconfig.node.json new file mode 100644 index 00000000..7a77bab3 --- /dev/null +++ b/codience/webview-ui/webview-ui/tsconfig.node.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "target": "ES2023", + "lib": ["ES2023"], + "module": "ESNext", + "types": [], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["vite.config.ts"] +} diff --git a/codience/webview-ui/webview-ui/vite.config.ts b/codience/webview-ui/webview-ui/vite.config.ts new file mode 100644 index 00000000..3296e929 --- /dev/null +++ b/codience/webview-ui/webview-ui/vite.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react-swc' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [react()], + base: "./", + build: { + outDir: "dist", + }, + server: { + port: 8000, + }, +}); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..a8509b47 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "Codience", + "lockfileVersion": 3, + "requires": true, + "packages": {} +}