Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Add STEP 242 file upload import flow in frontend
Yuechen Li117f2d391a18
diff --git a/aetheris.client/package-lock.json b/aetheris.client/package-lock.jsonindex 82160da5..a2c7d34d 100644--- a/aetheris.client/package-lock.json+++ b/aetheris.client/package-lock.json@@ -16,6 +16,8 @@},"devDependencies": {"@eslint/js": "^9.39.1",+ "@testing-library/jest-dom": "^6.9.1",+ "@testing-library/react": "^16.3.2","@types/node": "^24.10.1","@types/react": "^19.2.7","@types/react-dom": "^19.2.3",@@ -24,12 +26,85 @@"eslint-plugin-react-hooks": "^7.0.1","eslint-plugin-react-refresh": "^0.4.24","globals": "^16.5.0",+ "jsdom": "^28.1.0","typescript": "~5.9.3","typescript-eslint": "^8.48.0","vite": "^7.3.1","vitest": "^4.0.18"}},+ "node_modules/@acemir/cssom": {+ "version": "0.9.31",+ "resolved": "https://registry.npmjs.org/@acemir/cssom/-/cssom-0.9.31.tgz",+ "integrity": "sha512-ZnR3GSaH+/vJ0YlHau21FjfLYjMpYVIzTD8M8vIEQvIGxeOXyXdzCI140rrCY862p/C/BbzWsjc1dgnM9mkoTA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@adobe/css-tools": {+ "version": "4.4.4",+ "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.4.tgz",+ "integrity": "sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@asamuzakjp/css-color": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-5.0.1.tgz",+ "integrity": "sha512-2SZFvqMyvboVV1d15lMf7XiI3m7SDqXUuKaTymJYLN6dSGadqp+fVojqJlVoMlbZnlTmu3S0TLwLTJpvBMO1Aw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@csstools/css-calc": "^3.1.1",+ "@csstools/css-color-parser": "^4.0.2",+ "@csstools/css-parser-algorithms": "^4.0.0",+ "@csstools/css-tokenizer": "^4.0.0",+ "lru-cache": "^11.2.6"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },+ "node_modules/@asamuzakjp/css-color/node_modules/lru-cache": {+ "version": "11.2.6",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz",+ "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": "20 || >=22"+ }+ },+ "node_modules/@asamuzakjp/dom-selector": {+ "version": "6.8.1",+ "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-6.8.1.tgz",+ "integrity": "sha512-MvRz1nCqW0fsy8Qz4dnLIvhOlMzqDVBabZx6lH+YywFDdjXhMY37SmpV1XFX3JzG5GWHn63j6HX6QPr3lZXHvQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@asamuzakjp/nwsapi": "^2.3.9",+ "bidi-js": "^1.0.3",+ "css-tree": "^3.1.0",+ "is-potential-custom-element-name": "^1.0.1",+ "lru-cache": "^11.2.6"+ }+ },+ "node_modules/@asamuzakjp/dom-selector/node_modules/lru-cache": {+ "version": "11.2.6",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz",+ "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": "20 || >=22"+ }+ },+ "node_modules/@asamuzakjp/nwsapi": {+ "version": "2.3.9",+ "resolved": "https://registry.npmjs.org/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz",+ "integrity": "sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@babel/code-frame": {"version": "7.29.0","resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",@@ -321,6 +396,151 @@"node": ">=6.9.0"}},+ "node_modules/@bramus/specificity": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz",+ "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "css-tree": "^3.0.0"+ },+ "bin": {+ "specificity": "bin/cli.js"+ }+ },+ "node_modules/@csstools/color-helpers": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.0.2.tgz",+ "integrity": "sha512-LMGQLS9EuADloEFkcTBR3BwV/CGHV7zyDxVRtVDTwdI2Ca4it0CCVTT9wCkxSgokjE5Ho41hEPgb8OEUwoXr6Q==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT-0",+ "engines": {+ "node": ">=20.19.0"+ }+ },+ "node_modules/@csstools/css-calc": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.1.1.tgz",+ "integrity": "sha512-HJ26Z/vmsZQqs/o3a6bgKslXGFAungXGbinULZO3eMsOyNJHeBBZfup5FiZInOghgoM4Hwnmw+OgbJCNg1wwUQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=20.19.0"+ },+ "peerDependencies": {+ "@csstools/css-parser-algorithms": "^4.0.0",+ "@csstools/css-tokenizer": "^4.0.0"+ }+ },+ "node_modules/@csstools/css-color-parser": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.0.2.tgz",+ "integrity": "sha512-0GEfbBLmTFf0dJlpsNU7zwxRIH0/BGEMuXLTCvFYxuL1tNhqzTbtnFICyJLTNK4a+RechKP75e7w42ClXSnJQw==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@csstools/color-helpers": "^6.0.2",+ "@csstools/css-calc": "^3.1.1"+ },+ "engines": {+ "node": ">=20.19.0"+ },+ "peerDependencies": {+ "@csstools/css-parser-algorithms": "^4.0.0",+ "@csstools/css-tokenizer": "^4.0.0"+ }+ },+ "node_modules/@csstools/css-parser-algorithms": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz",+ "integrity": "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=20.19.0"+ },+ "peerDependencies": {+ "@csstools/css-tokenizer": "^4.0.0"+ }+ },+ "node_modules/@csstools/css-syntax-patches-for-csstree": {+ "version": "1.0.29",+ "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.0.29.tgz",+ "integrity": "sha512-jx9GjkkP5YHuTmko2eWAvpPnb0mB4mGRr2U7XwVNwevm8nlpobZEVk+GNmiYMk2VuA75v+plfXWyroWKmICZXg==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT-0"+ },+ "node_modules/@csstools/css-tokenizer": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.0.tgz",+ "integrity": "sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=20.19.0"+ }+ },"node_modules/@dimforge/rapier3d-compat": {"version": "0.12.0","resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz",@@ -926,6 +1146,24 @@"node": "^18.18.0 || ^20.9.0 || >=21.1.0"}},+ "node_modules/@exodus/bytes": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.14.1.tgz",+ "integrity": "sha512-OhkBFWI6GcRMUroChZiopRiSp2iAMvEBK47NhJooDqz1RERO4QuZIZnjP63TXX8GAiLABkYmX+fuQsdJ1dd2QQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ },+ "peerDependencies": {+ "@noble/hashes": "^1.8.0 || ^2.0.0"+ },+ "peerDependenciesMeta": {+ "@noble/hashes": {+ "optional": true+ }+ }+ },"node_modules/@humanfs/core": {"version": "0.19.1","resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",@@ -1498,12 +1736,96 @@"dev": true,"license": "MIT"},+ "node_modules/@testing-library/dom": {+ "version": "10.4.1",+ "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.1.tgz",+ "integrity": "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@babel/code-frame": "^7.10.4",+ "@babel/runtime": "^7.12.5",+ "@types/aria-query": "^5.0.1",+ "aria-query": "5.3.0",+ "dom-accessibility-api": "^0.5.9",+ "lz-string": "^1.5.0",+ "picocolors": "1.1.1",+ "pretty-format": "^27.0.2"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@testing-library/jest-dom": {+ "version": "6.9.1",+ "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.9.1.tgz",+ "integrity": "sha512-zIcONa+hVtVSSep9UT3jZ5rizo2BsxgyDYU7WFD5eICBE7no3881HGeb/QkGfsJs6JTkY1aQhT7rIPC7e+0nnA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@adobe/css-tools": "^4.4.0",+ "aria-query": "^5.0.0",+ "css.escape": "^1.5.1",+ "dom-accessibility-api": "^0.6.3",+ "picocolors": "^1.1.1",+ "redent": "^3.0.0"+ },+ "engines": {+ "node": ">=14",+ "npm": ">=6",+ "yarn": ">=1"+ }+ },+ "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": {+ "version": "0.6.3",+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz",+ "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@testing-library/react": {+ "version": "16.3.2",+ "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.2.tgz",+ "integrity": "sha512-XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.12.5"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@testing-library/dom": "^10.0.0",+ "@types/react": "^18.0.0 || ^19.0.0",+ "@types/react-dom": "^18.0.0 || ^19.0.0",+ "react": "^18.0.0 || ^19.0.0",+ "react-dom": "^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },"node_modules/@tweenjs/tween.js": {"version": "23.1.3","resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz","integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==","license": "MIT"},+ "node_modules/@types/aria-query": {+ "version": "5.0.4",+ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",+ "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },"node_modules/@types/babel__core": {"version": "7.20.5","resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",@@ -2132,6 +2454,16 @@"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"}},+ "node_modules/agent-base": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },"node_modules/ajv": {"version": "6.14.0","resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz",@@ -2149,6 +2481,17 @@"url": "https://github.com/sponsors/epoberezkin"}},+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=8"+ }+ },"node_modules/ansi-styles": {"version": "4.3.0","resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",@@ -2172,6 +2515,16 @@"dev": true,"license": "Python-2.0"},+ "node_modules/aria-query": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "dequal": "^2.0.3"+ }+ },"node_modules/assertion-error": {"version": "2.0.1","resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",@@ -2437,12 +2790,73 @@"node": ">= 8"}},+ "node_modules/css-tree": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.1.0.tgz",+ "integrity": "sha512-0eW44TGN5SQXU1mWSkKwFstI/22X2bG1nYzZTYMAWjylYURhse752YgbE4Cx46AC+bAvI+/dYTPRk1LqSUnu6w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mdn-data": "2.12.2",+ "source-map-js": "^1.0.1"+ },+ "engines": {+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"+ }+ },+ "node_modules/css.escape": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz",+ "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cssstyle": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-6.2.0.tgz",+ "integrity": "sha512-Fm5NvhYathRnXNVndkUsCCuR63DCLVVwGOOwQw782coXFi5HhkXdu289l59HlXZBawsyNccXfWRYvLzcDCdDig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@asamuzakjp/css-color": "^5.0.1",+ "@csstools/css-syntax-patches-for-csstree": "^1.0.28",+ "css-tree": "^3.1.0",+ "lru-cache": "^11.2.6"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/cssstyle/node_modules/lru-cache": {+ "version": "11.2.6",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz",+ "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": "20 || >=22"+ }+ },"node_modules/csstype": {"version": "3.2.3","resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz","integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==","license": "MIT"},+ "node_modules/data-urls": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz",+ "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "whatwg-mimetype": "^5.0.0",+ "whatwg-url": "^16.0.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },"node_modules/debug": {"version": "4.4.3","resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",@@ -2461,6 +2875,13 @@}}},+ "node_modules/decimal.js": {+ "version": "10.6.0",+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",+ "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/deep-is": {"version": "0.1.4","resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",@@ -2468,6 +2889,16 @@"dev": true,"license": "MIT"},+ "node_modules/dequal": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },"node_modules/detect-gpu": {"version": "5.0.70","resolved": "https://registry.npmjs.org/detect-gpu/-/detect-gpu-5.0.70.tgz",@@ -2477,6 +2908,14 @@"webgl-constants": "^1.1.1"}},+ "node_modules/dom-accessibility-api": {+ "version": "0.5.16",+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",+ "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },"node_modules/draco3d": {"version": "1.5.7","resolved": "https://registry.npmjs.org/draco3d/-/draco3d-1.5.7.tgz",@@ -2490,6 +2929,19 @@"dev": true,"license": "ISC"},+ "node_modules/entities": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",+ "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.12"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },"node_modules/es-module-lexer": {"version": "1.7.0","resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",@@ -2952,6 +3404,47 @@"integrity": "sha512-E3a5VwgXimGHwpRGV+WxRTKeSp2DW5DI5MWv34ulL3t5UNmyJWCQ1KmLEHbYzcfThfXG8amBL+fCYPneGHC4VA==","license": "Apache-2.0"},+ "node_modules/html-encoding-sniffer": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz",+ "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@exodus/bytes": "^1.6.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },+ "node_modules/http-proxy-agent": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.2",+ "debug": "4"+ },+ "engines": {+ "node": ">= 14"+ }+ },"node_modules/ieee754": {"version": "1.2.1","resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",@@ -3015,6 +3508,16 @@"node": ">=0.8.19"}},+ "node_modules/indent-string": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/is-extglob": {"version": "2.1.1","resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",@@ -3038,6 +3541,13 @@"node": ">=0.10.0"}},+ "node_modules/is-potential-custom-element-name": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",+ "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",+ "dev": true,+ "license": "MIT"+ },"node_modules/is-promise": {"version": "2.2.2","resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",@@ -3082,6 +3592,47 @@"js-yaml": "bin/js-yaml.js"}},+ "node_modules/jsdom": {+ "version": "28.1.0",+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-28.1.0.tgz",+ "integrity": "sha512-0+MoQNYyr2rBHqO1xilltfDjV9G7ymYGlAUazgcDLQaUf8JDHbuGwsxN6U9qWaElZ4w1B2r7yEGIL3GdeW3Rug==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@acemir/cssom": "^0.9.31",+ "@asamuzakjp/dom-selector": "^6.8.1",+ "@bramus/specificity": "^2.4.2",+ "@exodus/bytes": "^1.11.0",+ "cssstyle": "^6.0.1",+ "data-urls": "^7.0.0",+ "decimal.js": "^10.6.0",+ "html-encoding-sniffer": "^6.0.0",+ "http-proxy-agent": "^7.0.2",+ "https-proxy-agent": "^7.0.6",+ "is-potential-custom-element-name": "^1.0.1",+ "parse5": "^8.0.0",+ "saxes": "^6.0.0",+ "symbol-tree": "^3.2.4",+ "tough-cookie": "^6.0.0",+ "undici": "^7.21.0",+ "w3c-xmlserializer": "^5.0.0",+ "webidl-conversions": "^8.0.1",+ "whatwg-mimetype": "^5.0.0",+ "whatwg-url": "^16.0.0",+ "xml-name-validator": "^5.0.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ },+ "peerDependencies": {+ "canvas": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "canvas": {+ "optional": true+ }+ }+ },"node_modules/jsesc": {"version": "3.1.0","resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",@@ -3195,6 +3746,17 @@"yallist": "^3.0.2"}},+ "node_modules/lz-string": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz",+ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "bin": {+ "lz-string": "bin/bin.js"+ }+ },"node_modules/maath": {"version": "0.10.8","resolved": "https://registry.npmjs.org/maath/-/maath-0.10.8.tgz",@@ -3215,6 +3777,13 @@"@jridgewell/sourcemap-codec": "^1.5.5"}},+ "node_modules/mdn-data": {+ "version": "2.12.2",+ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz",+ "integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==",+ "dev": true,+ "license": "CC0-1.0"+ },"node_modules/meshline": {"version": "3.3.1","resolved": "https://registry.npmjs.org/meshline/-/meshline-3.3.1.tgz",@@ -3230,6 +3799,16 @@"integrity": "sha512-Vix+QlA1YYT3FwmBBZ+49cE5y/b+pRrcXKqGpS5ouh33d3lSp2PoTpCw19E0cKDFWalembrHnIaZetf27a+W2g==","license": "MIT"},+ "node_modules/min-indent": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",+ "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },"node_modules/minimatch": {"version": "3.1.5","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",@@ -3357,6 +3936,19 @@"node": ">=6"}},+ "node_modules/parse5": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.0.tgz",+ "integrity": "sha512-9m4m5GSgXjL4AjumKzq1Fgfp3Z8rsvjRNbnkVwfu2ImRqE5D0LnY2QfDen18FSY9C573YU5XxSapdHZTZ2WolA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "entities": "^6.0.0"+ },+ "funding": {+ "url": "https://github.com/inikulin/parse5?sponsor=1"+ }+ },"node_modules/path-exists": {"version": "4.0.0","resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",@@ -3448,6 +4040,36 @@"node": ">= 0.8.0"}},+ "node_modules/pretty-format": {+ "version": "27.5.1",+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz",+ "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "ansi-regex": "^5.0.1",+ "ansi-styles": "^5.0.0",+ "react-is": "^17.0.1"+ },+ "engines": {+ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"+ }+ },+ "node_modules/pretty-format/node_modules/ansi-styles": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },"node_modules/promise-worker-transferable": {"version": "1.0.4","resolved": "https://registry.npmjs.org/promise-worker-transferable/-/promise-worker-transferable-1.0.4.tgz",@@ -3489,6 +4111,14 @@"react": "^19.2.4"}},+ "node_modules/react-is": {+ "version": "17.0.2",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",+ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },"node_modules/react-refresh": {"version": "0.18.0","resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz",@@ -3514,6 +4144,20 @@}}},+ "node_modules/redent": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz",+ "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "indent-string": "^4.0.0",+ "strip-indent": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/require-from-string": {"version": "2.0.2","resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",@@ -3578,6 +4222,19 @@"fsevents": "~2.3.2"}},+ "node_modules/saxes": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "xmlchars": "^2.2.0"+ },+ "engines": {+ "node": ">=v12.22.7"+ }+ },"node_modules/scheduler": {"version": "0.27.0","resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",@@ -3672,6 +4329,19 @@"dev": true,"license": "MIT"},+ "node_modules/strip-indent": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz",+ "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "min-indent": "^1.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/strip-json-comments": {"version": "3.1.1","resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",@@ -3707,6 +4377,13 @@"react": ">=17.0"}},+ "node_modules/symbol-tree": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",+ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/three": {"version": "0.183.1","resolved": "https://registry.npmjs.org/three/-/three-0.183.1.tgz",@@ -3789,6 +4466,52 @@"node": ">=14.0.0"}},+ "node_modules/tldts": {+ "version": "7.0.24",+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.0.24.tgz",+ "integrity": "sha512-1r6vQTTt1rUiJkI5vX7KG8PR342Ru/5Oh13kEQP2SMbRSZpOey9SrBe27IDxkoWulx8ShWu4K6C0BkctP8Z1bQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tldts-core": "^7.0.24"+ },+ "bin": {+ "tldts": "bin/cli.js"+ }+ },+ "node_modules/tldts-core": {+ "version": "7.0.24",+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.0.24.tgz",+ "integrity": "sha512-pj7yygNMoMRqG7ML2SDQ0xNIOfN3IBDUcPVM2Sg6hP96oFNN2nqnzHreT3z9xLq85IWJyNTvD38O002DdOrPMw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tough-cookie": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.0.tgz",+ "integrity": "sha512-kXuRi1mtaKMrsLUxz3sQYvVl37B0Ns6MzfrtV5DvJceE9bPyspOqk9xxv7XbZWcfLWbFmm997vl83qUWVJA64w==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "tldts": "^7.0.5"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/tr46": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz",+ "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "punycode": "^2.3.1"+ },+ "engines": {+ "node": ">=20"+ }+ },"node_modules/troika-three-text": {"version": "0.52.4","resolved": "https://registry.npmjs.org/troika-three-text/-/troika-three-text-0.52.4.tgz",@@ -3920,6 +4643,16 @@"typescript": ">=4.8.4 <6.0.0"}},+ "node_modules/undici": {+ "version": "7.22.0",+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.22.0.tgz",+ "integrity": "sha512-RqslV2Us5BrllB+JeiZnK4peryVTndy9Dnqq62S3yYRRTj0tFQCwEniUy2167skdGOy3vqRzEvl1Dm4sV2ReDg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20.18.1"+ }+ },"node_modules/undici-types": {"version": "7.16.0","resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",@@ -4139,6 +4872,19 @@}}},+ "node_modules/w3c-xmlserializer": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",+ "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "xml-name-validator": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },"node_modules/webgl-constants": {"version": "1.1.1","resolved": "https://registry.npmjs.org/webgl-constants/-/webgl-constants-1.1.1.tgz",@@ -4150,6 +4896,41 @@"integrity": "sha512-9Z0JcMTFxeE+b2x1LJTdnaT8rT8aEp7MVxkNwoycNmJWwPdzoXzMh0BjJSh/AEFP+KPYZUli814h8bJZFIZ2jA==","license": "MIT"},+ "node_modules/webidl-conversions": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz",+ "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/whatwg-mimetype": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz",+ "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/whatwg-url": {+ "version": "16.0.1",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz",+ "integrity": "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@exodus/bytes": "^1.11.0",+ "tr46": "^6.0.0",+ "webidl-conversions": "^8.0.1"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },"node_modules/which": {"version": "2.0.2","resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",@@ -4192,6 +4973,23 @@"node": ">=0.10.0"}},+ "node_modules/xml-name-validator": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/xmlchars": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/yallist": {"version": "3.1.1","resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",diff --git a/aetheris.client/package.json b/aetheris.client/package.jsonindex 2c584c98..0f278dca 100644--- a/aetheris.client/package.json+++ b/aetheris.client/package.json@@ -19,6 +19,8 @@},"devDependencies": {"@eslint/js": "^9.39.1",+ "@testing-library/jest-dom": "^6.9.1",+ "@testing-library/react": "^16.3.2","@types/node": "^24.10.1","@types/react": "^19.2.7","@types/react-dom": "^19.2.3",@@ -27,6 +29,7 @@"eslint-plugin-react-hooks": "^7.0.1","eslint-plugin-react-refresh": "^0.4.24","globals": "^16.5.0",+ "jsdom": "^28.1.0","typescript": "~5.9.3","typescript-eslint": "^8.48.0","vite": "^7.3.1",diff --git a/aetheris.client/src/App.tsx b/aetheris.client/src/App.tsxindex 95752a79..4551928c 100644--- a/aetheris.client/src/App.tsx+++ b/aetheris.client/src/App.tsx@@ -52,9 +52,11 @@ function App() {const [booleanToolBodyId, setBooleanToolBodyId] = useState<string>('');const [booleanOperation, setBooleanOperation] = useState<BooleanOperationUi>('Union');const [stepExportText, setStepExportText] = useState('');- const [stepImportText, setStepImportText] = useState('');- const [stepImportName, setStepImportName] = useState('Imported');+ const [stepImportFile, setStepImportFile] = useState<File | null>(null);const [stepCanonicalHash, setStepCanonicalHash] = useState<string | null>(null);+ const [stepImportSelectionMessage, setStepImportSelectionMessage] = useState('No file selected.');++ const maxStepFileSizeBytes = 5 * 1024 * 1024;const runAction = useCallback(async (actionName: string, action: () => Promise<void>) => {setStatus('loading');@@ -111,9 +113,9 @@ function App() {setBooleanToolBodyId('');setBooleanOperation('Union');setStepExportText('');- setStepImportText('');- setStepImportName('Imported');+ setStepImportFile(null);setStepCanonicalHash(null);+ setStepImportSelectionMessage('No file selected.');});}, [runAction]);@@ -216,23 +218,49 @@ function App() {}, [activeBodyId, documentId, occurrences, runAction]);const handleImportStep = useCallback(async () => {- if (!documentId) {+ if (!documentId || !stepImportFile) {+ return;+ }++ if (stepImportFile.size <= 0) {+ setStatus('error');+ setStatusMessage('Selected STEP file is empty.');+ setDiagnostics([]);+ return;+ }++ if (stepImportFile.size > maxStepFileSizeBytes) {+ setStatus('error');+ setStatusMessage(`Selected STEP file is too large (${stepImportFile.size} bytes). Limit is ${maxStepFileSizeBytes} bytes.`);+ setDiagnostics([]);return;}await runAction('Import STEP', async () => {- const imported = await importStep(documentId, stepImportText, stepImportName.trim().length === 0 ? undefined : stepImportName.trim());+ const stepText = await stepImportFile.text();+ if (stepText.trim().length === 0) {+ throw new ApiError('Selected STEP file is empty.', []);+ }++ const imported = await importStep(documentId, stepText);setStepExportText('');await refreshSummaryAndActiveTessellation(imported.occurrenceId);const exported = await exportDefinitionStep(documentId, imported.definitionId);setStepCanonicalHash(exported.canonicalHash);- setStepImportName(imported.name ?? 'Imported');setPickStatus('idle');setPickMessage(`Imported occurrence ${imported.occurrenceId} is now active.`);setPickDiagnostics([]);setPickHits([]);});- }, [documentId, refreshSummaryAndActiveTessellation, runAction, stepImportName, stepImportText]);+ }, [documentId, maxStepFileSizeBytes, refreshSummaryAndActiveTessellation, runAction, stepImportFile]);++ const handleStepFileSelection = useCallback((fileList: FileList | null) => {+ const selected = fileList?.[0] ?? null;+ setStepImportFile(selected);+ setStepImportSelectionMessage(selected+ ? `Selected file: ${selected.name} (${selected.size} bytes)`+ : 'No file selected.');+ }, []);const handleUseActiveBodyAsTarget = useCallback(() => {if (activeBodyId) {@@ -325,7 +353,7 @@ function App() {const nearestHit = pickHits[0] ?? null;const highlightedFaceId = nearestHit?.entityKind === 'Face' ? nearestHit.faceId : null;const highlightedEdgeId = nearestHit?.entityKind === 'Edge' ? nearestHit.edgeId : null;- const canImportStep = Boolean(documentId && stepImportText.trim().length > 0 && status !== 'loading');+ const canImportStep = Boolean(documentId && stepImportFile && status !== 'loading');const canExecuteBoolean = Boolean(documentId&& bodyIds.length >= 2@@ -448,15 +476,16 @@ function App() {Exported STEP<textarea value={stepExportText} readOnly placeholder="Exported STEP text will appear here." rows={7} /></label>- <label className="textarea-label">- Import STEP Text- <textarea value={stepImportText} onChange={(event) => setStepImportText(event.target.value)} placeholder="Paste STEP text here." rows={7} />- </label><label>- Imported Name- <input type="text" value={stepImportName} onChange={(event) => setStepImportName(event.target.value)} />+ STEP 242 File+ <input+ type="file"+ accept=".step,.stp,text/plain"+ onChange={(event) => handleStepFileSelection(event.target.files)}+ /></label>- <button type="button" onClick={() => void handleImportStep()} disabled={!canImportStep}>Import STEP</button>+ <p>{stepImportSelectionMessage}</p>+ <button type="button" onClick={() => void handleImportStep()} disabled={!canImportStep}>Import STEP 242</button></section><h2>Debug / Status</h2>diff --git a/aetheris.client/src/__tests__/App.test.tsx b/aetheris.client/src/__tests__/App.test.tsxnew file mode 100644index 00000000..6ef71c5b--- /dev/null+++ b/aetheris.client/src/__tests__/App.test.tsx@@ -0,0 +1,136 @@+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';+import App from '../App';+import { ApiError } from '../api/aetherisApi';++const apiMocks = vi.hoisted(() => ({+ createDocument: vi.fn(),+ createBox: vi.fn(),+ executeBoolean: vi.fn(),+ exportDefinitionStep: vi.fn(),+ getDocumentSummary: vi.fn(),+ importStep: vi.fn(),+ pickBody: vi.fn(),+ tessellateBody: vi.fn(),+ translateBody: vi.fn(),+}));++vi.mock('../api/aetherisApi', async () => {+ const actual = await vi.importActual('../api/aetherisApi');++ return {+ ...actual,+ createDocument: apiMocks.createDocument,+ createBox: apiMocks.createBox,+ executeBoolean: apiMocks.executeBoolean,+ exportDefinitionStep: apiMocks.exportDefinitionStep,+ getDocumentSummary: apiMocks.getDocumentSummary,+ importStep: apiMocks.importStep,+ pickBody: apiMocks.pickBody,+ tessellateBody: apiMocks.tessellateBody,+ translateBody: apiMocks.translateBody,+ };+});++vi.mock('../viewer/ViewerViewport', () => ({+ ViewerViewport: () => <div data-testid="viewer-viewport" />,+}));++function setupDocumentApiMocks(): void {+ apiMocks.createDocument.mockResolvedValue({ documentId: 'doc-1', name: 'Test', volatile: true });+ apiMocks.getDocumentSummary.mockResolvedValue({+ documentId: 'doc-1',+ name: 'Test',+ bodyCount: 1,+ bodyIds: ['occ-2'],+ definitionCount: 1,+ occurrences: [{+ occurrenceId: 'occ-2',+ definitionId: 'def-2',+ name: 'Imported',+ translation: { x: 0, y: 0, z: 0 },+ }],+ });+ apiMocks.tessellateBody.mockResolvedValue({ facePatches: [], edgePolylines: [] });+}++describe('App STEP file upload flow', () => {+ beforeEach(() => {+ vi.clearAllMocks();+ setupDocumentApiMocks();+ });++ afterEach(() => {+ cleanup();+ });++ it('updates local file selection state when a file is chosen', async () => {+ render(<App />);++ fireEvent.click(screen.getByRole('button', { name: 'Create Document' }));+ await screen.findByText(/Create document complete/i);++ const fileInput = screen.getByLabelText('STEP 242 File') as HTMLInputElement;+ const file = new File(['ISO-10303-21;'], 'sample.step', { type: 'text/plain' });+ fireEvent.change(fileInput, { target: { files: [file] } });++ expect(screen.getByText('Selected file: sample.step (13 bytes)')).toBeTruthy();+ });++ it('calls importStep with file contents and refreshes canonical hash', async () => {+ apiMocks.importStep.mockResolvedValue({+ documentId: 'doc-1',+ definitionId: 'def-2',+ occurrenceId: 'occ-2',+ name: 'Imported',+ diagnostics: [],+ });+ apiMocks.exportDefinitionStep.mockResolvedValue({+ documentId: 'doc-1',+ definitionId: 'def-2',+ stepText: 'ISO-10303-21;',+ canonicalHash: 'hash-123',+ diagnostics: [],+ });++ render(<App />);++ fireEvent.click(screen.getByRole('button', { name: 'Create Document' }));+ await screen.findByText(/Create document complete/i);++ const fileInput = screen.getByLabelText('STEP 242 File') as HTMLInputElement;+ const file = new File(['ISO-10303-21;DATA;'], 'part.stp', { type: 'text/plain' });+ fireEvent.change(fileInput, { target: { files: [file] } });++ fireEvent.click(screen.getByRole('button', { name: 'Import STEP 242' }));++ await waitFor(() => {+ expect(apiMocks.importStep).toHaveBeenCalledWith('doc-1', 'ISO-10303-21;DATA;');+ });+ expect(apiMocks.exportDefinitionStep).toHaveBeenCalledWith('doc-1', 'def-2');+ await screen.findByText('hash-123');+ });++ it('preserves ApiError diagnostics from import failure', async () => {+ apiMocks.importStep.mockRejectedValue(new ApiError('Malformed STEP payload.', [{+ code: 'ValidationFailed',+ severity: 'Error',+ message: 'Malformed STEP payload.',+ source: 'step242.import',+ }]));++ render(<App />);++ fireEvent.click(screen.getByRole('button', { name: 'Create Document' }));+ await screen.findByText(/Create document complete/i);++ const fileInput = screen.getByLabelText('STEP 242 File') as HTMLInputElement;+ const file = new File(['BAD'], 'bad.step', { type: 'text/plain' });+ fireEvent.change(fileInput, { target: { files: [file] } });++ fireEvent.click(screen.getByRole('button', { name: 'Import STEP 242' }));++ await screen.findByText('Malformed STEP payload.');+ await screen.findByText('[Error] ValidationFailed: Malformed STEP payload.');+ });+});diff --git a/aetheris.client/vitest.config.ts b/aetheris.client/vitest.config.tsindex 10e0cb3e..3adad09d 100644--- a/aetheris.client/vitest.config.ts+++ b/aetheris.client/vitest.config.ts@@ -2,7 +2,7 @@ import { defineConfig } from 'vitest/config';export default defineConfig({test: {- environment: 'node',- include: ['src/__tests__/**/*.test.ts'],+ environment: 'jsdom',+ include: ['src/__tests__/**/*.test.ts', 'src/__tests__/**/*.test.tsx'],},});diff --git a/docs/milestones.md b/docs/milestones.mdindex ec967c6a..7fbd1f20 100644--- a/docs/milestones.md+++ b/docs/milestones.md@@ -254,3 +254,11 @@- [x] Add server integration coverage for determinism across repeated exports, import→export stability, and geometry-sensitive hash changes.- [x] Update client STEP API parsing and inspector UI display to surface `canonicalHash` with copy-friendly monospace formatting.- [x] Extend client API tests to validate `canonicalHash` parsing and maintain `ApiError` propagation behavior.++## M28 — STEP 242 File Upload Flow (Frontend)++- [x] Replace manual STEP paste import emphasis with a single-file upload flow using `.step/.stp` file input.+- [x] Reuse existing document import API path (`POST /api/v1/documents/{documentId}/import/step`) with backend-authoritative parsing and diagnostics.+- [x] On successful import, auto-refresh summary, activate imported occurrence, tessellate it, and immediately refresh canonical hash via definition export.+- [x] Add frontend safeguards for empty/oversized files and display diagnostics without silent error swallowing.+- [x] Add frontend tests for file-selection state updates, import payload wiring, canonical-hash refresh trigger, and `ApiError` propagation.