Free Motion Capture for Everyone 💀✨
TypeScript
Implement Pooyas UI (#791)
philipqueen7c218603c524
diff --git a/app-design-v2/src/App.css b/app-design-v2/src/App.cssindex 70a4d653..678aa68f 100644--- a/app-design-v2/src/App.css+++ b/app-design-v2/src/App.css@@ -253,6 +253,7 @@ q::after {background-color: var(--gray-600);}+/* card button */.button.card {width: 100px;@@ -276,7 +277,7 @@ q::after {.button.sm {padding: 4px 6px;- min-height: 25px;+ max-height: 25px;width: auto;/* to fit its content */max-width: max-content;@@ -517,7 +518,46 @@ a:after {.z-10 {z-index: 10;}+/* order */+.order-1 {+ order: 1;+}++.order-2 {+ order: 2;+}++.order-3 {+ order: 3;+}++.order-4 {+ order: 4;+}++.order-5 {+ order: 5;+}+.order-6 {+ order: 6;+}++.order-7 {+ order: 7;+}++.order-8 {+ order: 8;+}++.order-9 {+ order: 9;+}++.order-10 {+ order: 10;+}/* positions */.pos-abs {position: absolute;@@ -688,6 +728,7 @@ a:after {margin: 16px;}+/* widths/heights */.w-full {width: 100%;diff --git a/freemocap-ui/jsconfig.json b/freemocap-ui/jsconfig.jsonnew file mode 100644index 00000000..0de17949--- /dev/null+++ b/freemocap-ui/jsconfig.json@@ -0,0 +1,7 @@+{+ "compilerOptions": {+ "baseUrl": "./src",+ "checkJs": true,+ "jsx": "react"+ }+}\ No newline at end of filediff --git a/freemocap-ui/package-lock.json b/freemocap-ui/package-lock.jsonindex 94b37904..9e4f9d87 100644--- a/freemocap-ui/package-lock.json+++ b/freemocap-ui/package-lock.json@@ -13,18 +13,13 @@"@dnd-kit/modifiers": "^9.0.0","@dnd-kit/sortable": "^10.0.0","@dnd-kit/utilities": "^3.2.2",- "@emotion/react": "^11.13.3",- "@emotion/styled": "^11.13.0",- "@fontsource/roboto": "^5.1.0","@monaco-editor/react": "^4.7.0",- "@mui/icons-material": "^6.4.5",- "@mui/material": "^6.1.1",- "@mui/x-tree-view": "^7.29.1","@react-three/drei": "^10.7.7","@react-three/fiber": "^9.5.0","@reduxjs/toolkit": "^2.5.1","@trpc/client": "^11.5.1","@trpc/server": "^11.5.1",+ "clsx": "^2.1.1","country-flag-icons": "^1.6.14","d3": "^7.9.0","electron-updater": "^6.8.1",@@ -63,6 +58,7 @@"version": "7.29.0","resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz","integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",+ "dev": true,"license": "MIT","dependencies": {"@babel/helper-validator-identifier": "^7.28.5",@@ -125,6 +121,7 @@"version": "7.29.1","resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz","integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",+ "dev": true,"license": "MIT","dependencies": {"@babel/parser": "^7.29.0",@@ -158,6 +155,7 @@"version": "7.28.0","resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz","integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",+ "dev": true,"license": "MIT","engines": {"node": ">=6.9.0"@@ -167,6 +165,7 @@"version": "7.28.6","resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz","integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",+ "dev": true,"license": "MIT","dependencies": {"@babel/traverse": "^7.28.6",@@ -208,6 +207,7 @@"version": "7.27.1","resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz","integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",+ "dev": true,"license": "MIT","engines": {"node": ">=6.9.0"@@ -217,6 +217,7 @@"version": "7.28.5","resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz","integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",+ "dev": true,"license": "MIT","engines": {"node": ">=6.9.0"@@ -250,6 +251,7 @@"version": "7.29.2","resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz","integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==",+ "dev": true,"license": "MIT","dependencies": {"@babel/types": "^7.29.0"@@ -306,6 +308,7 @@"version": "7.28.6","resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz","integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",+ "dev": true,"license": "MIT","dependencies": {"@babel/code-frame": "^7.28.6",@@ -320,6 +323,7 @@"version": "7.29.0","resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz","integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",+ "dev": true,"license": "MIT","dependencies": {"@babel/code-frame": "^7.29.0",@@ -338,6 +342,7 @@"version": "7.29.0","resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz","integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",+ "dev": true,"license": "MIT","dependencies": {"@babel/helper-string-parser": "^7.27.1",@@ -897,152 +902,6 @@"node": ">= 10.0.0"}},- "node_modules/@emotion/babel-plugin": {- "version": "11.13.5",- "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz",- "integrity": "sha512-pxHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ==",- "license": "MIT",- "dependencies": {- "@babel/helper-module-imports": "^7.16.7",- "@babel/runtime": "^7.18.3",- "@emotion/hash": "^0.9.2",- "@emotion/memoize": "^0.9.0",- "@emotion/serialize": "^1.3.3",- "babel-plugin-macros": "^3.1.0",- "convert-source-map": "^1.5.0",- "escape-string-regexp": "^4.0.0",- "find-root": "^1.1.0",- "source-map": "^0.5.7",- "stylis": "4.2.0"- }- },- "node_modules/@emotion/cache": {- "version": "11.14.0",- "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.14.0.tgz",- "integrity": "sha512-L/B1lc/TViYk4DcpGxtAVbx0ZyiKM5ktoIyafGkH6zg/tj+mA+NE//aPYKG0k8kCHSHVJrpLpcAlOBEXQ3SavA==",- "license": "MIT",- "dependencies": {- "@emotion/memoize": "^0.9.0",- "@emotion/sheet": "^1.4.0",- "@emotion/utils": "^1.4.2",- "@emotion/weak-memoize": "^0.4.0",- "stylis": "4.2.0"- }- },- "node_modules/@emotion/hash": {- "version": "0.9.2",- "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz",- "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==",- "license": "MIT"- },- "node_modules/@emotion/is-prop-valid": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.4.0.tgz",- "integrity": "sha512-QgD4fyscGcbbKwJmqNvUMSE02OsHUa+lAWKdEUIJKgqe5IwRSKd7+KhibEWdaKwgjLj0DRSHA9biAIqGBk05lw==",- "license": "MIT",- "dependencies": {- "@emotion/memoize": "^0.9.0"- }- },- "node_modules/@emotion/memoize": {- "version": "0.9.0",- "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.9.0.tgz",- "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==",- "license": "MIT"- },- "node_modules/@emotion/react": {- "version": "11.14.0",- "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.14.0.tgz",- "integrity": "sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.3",- "@emotion/babel-plugin": "^11.13.5",- "@emotion/cache": "^11.14.0",- "@emotion/serialize": "^1.3.3",- "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0",- "@emotion/utils": "^1.4.2",- "@emotion/weak-memoize": "^0.4.0",- "hoist-non-react-statics": "^3.3.1"- },- "peerDependencies": {- "react": ">=16.8.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@emotion/serialize": {- "version": "1.3.3",- "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.3.3.tgz",- "integrity": "sha512-EISGqt7sSNWHGI76hC7x1CksiXPahbxEOrC5RjmFRJTqLyEK9/9hZvBbiYn70dw4wuwMKiEMCUlR6ZXTSWQqxA==",- "license": "MIT",- "dependencies": {- "@emotion/hash": "^0.9.2",- "@emotion/memoize": "^0.9.0",- "@emotion/unitless": "^0.10.0",- "@emotion/utils": "^1.4.2",- "csstype": "^3.0.2"- }- },- "node_modules/@emotion/sheet": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.4.0.tgz",- "integrity": "sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==",- "license": "MIT"- },- "node_modules/@emotion/styled": {- "version": "11.14.1",- "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.14.1.tgz",- "integrity": "sha512-qEEJt42DuToa3gurlH4Qqc1kVpNq8wO8cJtDzU46TjlzWjDlsVyevtYCRijVq3SrHsROS+gVQ8Fnea108GnKzw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.3",- "@emotion/babel-plugin": "^11.13.5",- "@emotion/is-prop-valid": "^1.3.0",- "@emotion/serialize": "^1.3.3",- "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0",- "@emotion/utils": "^1.4.2"- },- "peerDependencies": {- "@emotion/react": "^11.0.0-rc.0",- "react": ">=16.8.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@emotion/unitless": {- "version": "0.10.0",- "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.10.0.tgz",- "integrity": "sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==",- "license": "MIT"- },- "node_modules/@emotion/use-insertion-effect-with-fallbacks": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.2.0.tgz",- "integrity": "sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg==",- "license": "MIT",- "peerDependencies": {- "react": ">=16.8.0"- }- },- "node_modules/@emotion/utils": {- "version": "1.4.2",- "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.4.2.tgz",- "integrity": "sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA==",- "license": "MIT"- },- "node_modules/@emotion/weak-memoize": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz",- "integrity": "sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==",- "license": "MIT"- },"node_modules/@esbuild/aix-ppc64": {"version": "0.27.4","resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.4.tgz",@@ -1485,15 +1344,6 @@"node": ">=18"}},- "node_modules/@fontsource/roboto": {- "version": "5.2.10",- "resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-5.2.10.tgz",- "integrity": "sha512-8HlA5FtSfz//oFSr2eL7GFXAiE7eIkcGOtx7tjsLKq+as702x9+GU7K95iDeWFapHC4M2hv9RrpXKRTGGBI8Zg==",- "license": "OFL-1.1",- "funding": {- "url": "https://github.com/sponsors/ayuhito"- }- },"node_modules/@isaacs/cliui": {"version": "8.0.2","resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",@@ -1614,6 +1464,7 @@"version": "0.3.13","resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz","integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,"license": "MIT","dependencies": {"@jridgewell/sourcemap-codec": "^1.5.0",@@ -1635,6 +1486,7 @@"version": "3.1.2","resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz","integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,"license": "MIT","engines": {"node": ">=6.0.0"@@ -1644,12 +1496,14 @@"version": "1.5.5","resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz","integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,"license": "MIT"},"node_modules/@jridgewell/trace-mapping": {"version": "0.3.31","resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz","integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,"license": "MIT","dependencies": {"@jridgewell/resolve-uri": "^3.1.0",@@ -1734,535 +1588,45 @@"node": ">= 10.0.0"}},- "node_modules/@mediapipe/tasks-vision": {- "version": "0.10.17",- "resolved": "https://registry.npmjs.org/@mediapipe/tasks-vision/-/tasks-vision-0.10.17.tgz",- "integrity": "sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg==",- "license": "Apache-2.0"- },- "node_modules/@monaco-editor/loader": {- "version": "1.7.0",- "resolved": "https://registry.npmjs.org/@monaco-editor/loader/-/loader-1.7.0.tgz",- "integrity": "sha512-gIwR1HrJrrx+vfyOhYmCZ0/JcWqG5kbfG7+d3f/C1LXk2EvzAbHSg3MQ5lO2sMlo9izoAZ04shohfKLVT6crVA==",- "license": "MIT",- "dependencies": {- "state-local": "^1.0.6"- }- },- "node_modules/@monaco-editor/react": {- "version": "4.7.0",- "resolved": "https://registry.npmjs.org/@monaco-editor/react/-/react-4.7.0.tgz",- "integrity": "sha512-cyzXQCtO47ydzxpQtCGSQGOC8Gk3ZUeBXFAxD+CWXYFo5OqZyZUonFl0DwUlTyAfRHntBfw2p3w4s9R6oe1eCA==",- "license": "MIT",- "dependencies": {- "@monaco-editor/loader": "^1.5.0"- },- "peerDependencies": {- "monaco-editor": ">= 0.25.0 < 1",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"- }- },- "node_modules/@monogrid/gainmap-js": {- "version": "3.4.0",- "resolved": "https://registry.npmjs.org/@monogrid/gainmap-js/-/gainmap-js-3.4.0.tgz",- "integrity": "sha512-2Z0FATFHaoYJ8b+Y4y4Hgfn3FRFwuU5zRrk+9dFWp4uGAdHGqVEdP7HP+gLA3X469KXHmfupJaUbKo1b/aDKIg==",- "license": "MIT",- "dependencies": {- "promise-worker-transferable": "^1.0.4"- },- "peerDependencies": {- "three": ">= 0.159.0"- }- },- "node_modules/@mui/core-downloads-tracker": {- "version": "6.5.0",- "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-6.5.0.tgz",- "integrity": "sha512-LGb8t8i6M2ZtS3Drn3GbTI1DVhDY6FJ9crEey2lZ0aN2EMZo8IZBZj9wRf4vqbZHaWjsYgtbOnJw5V8UWbmK2Q==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- }- },- "node_modules/@mui/icons-material": {- "version": "6.5.0",- "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-6.5.0.tgz",- "integrity": "sha512-VPuPqXqbBPlcVSA0BmnoE4knW4/xG6Thazo8vCLWkOKusko6DtwFV6B665MMWJ9j0KFohTIf3yx2zYtYacvG1g==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.26.0"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@mui/material": "^6.5.0",- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/material": {- "version": "6.5.0",- "resolved": "https://registry.npmjs.org/@mui/material/-/material-6.5.0.tgz",- "integrity": "sha512-yjvtXoFcrPLGtgKRxFaH6OQPtcLPhkloC0BML6rBG5UeldR0nPULR/2E2BfXdo5JNV7j7lOzrrLX2Qf/iSidow==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.26.0",- "@mui/core-downloads-tracker": "^6.5.0",- "@mui/system": "^6.5.0",- "@mui/types": "~7.2.24",- "@mui/utils": "^6.4.9",- "@popperjs/core": "^2.11.8",- "@types/react-transition-group": "^4.4.12",- "clsx": "^2.1.1",- "csstype": "^3.1.3",- "prop-types": "^15.8.1",- "react-is": "^19.0.0",- "react-transition-group": "^4.4.5"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.5.0",- "@emotion/styled": "^11.3.0",- "@mui/material-pigment-css": "^6.5.0",- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- },- "@mui/material-pigment-css": {- "optional": true- },- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/material/node_modules/@mui/private-theming": {- "version": "6.4.9",- "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-6.4.9.tgz",- "integrity": "sha512-LktcVmI5X17/Q5SkwjCcdOLBzt1hXuc14jYa7NPShog0GBDCDvKtcnP0V7a2s6EiVRlv7BzbWEJzH6+l/zaCxw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.26.0",- "@mui/utils": "^6.4.9",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/material/node_modules/@mui/styled-engine": {- "version": "6.5.0",- "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-6.5.0.tgz",- "integrity": "sha512-8woC2zAqF4qUDSPIBZ8v3sakj+WgweolpyM/FXf8jAx6FMls+IE4Y8VDZc+zS805J7PRz31vz73n2SovKGaYgw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.26.0",- "@emotion/cache": "^11.13.5",- "@emotion/serialize": "^1.3.3",- "@emotion/sheet": "^1.4.0",- "csstype": "^3.1.3",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.4.1",- "@emotion/styled": "^11.3.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- }- }- },- "node_modules/@mui/material/node_modules/@mui/system": {- "version": "6.5.0",- "resolved": "https://registry.npmjs.org/@mui/system/-/system-6.5.0.tgz",- "integrity": "sha512-XcbBYxDS+h/lgsoGe78ExXFZXtuIlSBpn/KsZq8PtZcIkUNJInkuDqcLd2rVBQrDC1u+rvVovdaWPf2FHKJf3w==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.26.0",- "@mui/private-theming": "^6.4.9",- "@mui/styled-engine": "^6.5.0",- "@mui/types": "~7.2.24",- "@mui/utils": "^6.4.9",- "clsx": "^2.1.1",- "csstype": "^3.1.3",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.5.0",- "@emotion/styled": "^11.3.0",- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- },- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/private-theming": {- "version": "7.3.9",- "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-7.3.9.tgz",- "integrity": "sha512-ErIyRQvsiQEq7Yvcvfw9UDHngaqjMy9P3JDPnRAaKG5qhpl2C4tX/W1S4zJvpu+feihmZJStjIyvnv6KDbIrlw==",- "license": "MIT",- "peer": true,- "dependencies": {- "@babel/runtime": "^7.28.6",- "@mui/utils": "^7.3.9",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/private-theming/node_modules/@mui/types": {- "version": "7.4.12",- "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.4.12.tgz",- "integrity": "sha512-iKNAF2u9PzSIj40CjvKJWxFXJo122jXVdrmdh0hMYd+FR+NuJMkr/L88XwWLCRiJ5P1j+uyac25+Kp6YC4hu6w==",- "license": "MIT",- "peer": true,- "dependencies": {- "@babel/runtime": "^7.28.6"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/private-theming/node_modules/@mui/utils": {- "version": "7.3.9",- "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-7.3.9.tgz",- "integrity": "sha512-U6SdZaGbfb65fqTsH3V5oJdFj9uYwyLE2WVuNvmbggTSDBb8QHrFsqY8BN3taK9t3yJ8/BPHD/kNvLNyjwM7Yw==",- "license": "MIT",- "peer": true,- "dependencies": {- "@babel/runtime": "^7.28.6",- "@mui/types": "^7.4.12",- "@types/prop-types": "^15.7.15",- "clsx": "^2.1.1",- "prop-types": "^15.8.1",- "react-is": "^19.2.3"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/styled-engine": {- "version": "7.3.9",- "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-7.3.9.tgz",- "integrity": "sha512-JqujWt5bX4okjUPGpVof/7pvgClqh7HvIbsIBIOOlCh2u3wG/Bwp4+E1bc1dXSwkrkp9WUAoNdI5HEC+5HKvMw==",- "license": "MIT",- "peer": true,- "dependencies": {- "@babel/runtime": "^7.28.6",- "@emotion/cache": "^11.14.0",- "@emotion/serialize": "^1.3.3",- "@emotion/sheet": "^1.4.0",- "csstype": "^3.2.3",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.4.1",- "@emotion/styled": "^11.3.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- }- }- },- "node_modules/@mui/system": {- "version": "7.3.9",- "resolved": "https://registry.npmjs.org/@mui/system/-/system-7.3.9.tgz",- "integrity": "sha512-aL1q9am8XpRrSabv9qWf5RHhJICJql34wnrc1nz0MuOglPRYF/liN+c8VqZdTvUn9qg+ZjRVbKf4sJVFfIDtmg==",- "license": "MIT",- "peer": true,- "dependencies": {- "@babel/runtime": "^7.28.6",- "@mui/private-theming": "^7.3.9",- "@mui/styled-engine": "^7.3.9",- "@mui/types": "^7.4.12",- "@mui/utils": "^7.3.9",- "clsx": "^2.1.1",- "csstype": "^3.2.3",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.5.0",- "@emotion/styled": "^11.3.0",- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- },- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/system/node_modules/@mui/types": {- "version": "7.4.12",- "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.4.12.tgz",- "integrity": "sha512-iKNAF2u9PzSIj40CjvKJWxFXJo122jXVdrmdh0hMYd+FR+NuJMkr/L88XwWLCRiJ5P1j+uyac25+Kp6YC4hu6w==",- "license": "MIT",- "peer": true,- "dependencies": {- "@babel/runtime": "^7.28.6"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/system/node_modules/@mui/utils": {- "version": "7.3.9",- "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-7.3.9.tgz",- "integrity": "sha512-U6SdZaGbfb65fqTsH3V5oJdFj9uYwyLE2WVuNvmbggTSDBb8QHrFsqY8BN3taK9t3yJ8/BPHD/kNvLNyjwM7Yw==",- "license": "MIT",- "peer": true,- "dependencies": {- "@babel/runtime": "^7.28.6",- "@mui/types": "^7.4.12",- "@types/prop-types": "^15.7.15",- "clsx": "^2.1.1",- "prop-types": "^15.8.1",- "react-is": "^19.2.3"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/types": {- "version": "7.2.24",- "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.24.tgz",- "integrity": "sha512-3c8tRt/CbWZ+pEg7QpSwbdxOk36EfmhbKf6AGZsD1EcLDLTSZoxxJ86FVtcjxvjuhdyBiWKSTGZFaXCnidO2kw==",- "license": "MIT",- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }+ "node_modules/@mediapipe/tasks-vision": {+ "version": "0.10.17",+ "resolved": "https://registry.npmjs.org/@mediapipe/tasks-vision/-/tasks-vision-0.10.17.tgz",+ "integrity": "sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg==",+ "license": "Apache-2.0"},- "node_modules/@mui/utils": {- "version": "6.4.9",- "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-6.4.9.tgz",- "integrity": "sha512-Y12Q9hbK9g+ZY0T3Rxrx9m2m10gaphDuUMgWxyV5kNJevVxXYCLclYUCC9vXaIk1/NdNDTcW2Yfr2OGvNFNmHg==",+ "node_modules/@monaco-editor/loader": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/@monaco-editor/loader/-/loader-1.7.0.tgz",+ "integrity": "sha512-gIwR1HrJrrx+vfyOhYmCZ0/JcWqG5kbfG7+d3f/C1LXk2EvzAbHSg3MQ5lO2sMlo9izoAZ04shohfKLVT6crVA==","license": "MIT","dependencies": {- "@babel/runtime": "^7.26.0",- "@mui/types": "~7.2.24",- "@types/prop-types": "^15.7.14",- "clsx": "^2.1.1",- "prop-types": "^15.8.1",- "react-is": "^19.0.0"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }+ "state-local": "^1.0.6"}},- "node_modules/@mui/x-internals": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@mui/x-internals/-/x-internals-7.29.0.tgz",- "integrity": "sha512-+Gk6VTZIFD70XreWvdXBwKd8GZ2FlSCuecQFzm6znwqXg1ZsndavrhG9tkxpxo2fM1Zf7Tk8+HcOO0hCbhTQFA==",+ "node_modules/@monaco-editor/react": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/@monaco-editor/react/-/react-4.7.0.tgz",+ "integrity": "sha512-cyzXQCtO47ydzxpQtCGSQGOC8Gk3ZUeBXFAxD+CWXYFo5OqZyZUonFl0DwUlTyAfRHntBfw2p3w4s9R6oe1eCA==","license": "MIT","dependencies": {- "@babel/runtime": "^7.25.7",- "@mui/utils": "^5.16.6 || ^6.0.0 || ^7.0.0"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"+ "@monaco-editor/loader": "^1.5.0"},"peerDependencies": {- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"+ "monaco-editor": ">= 0.25.0 < 1",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},- "node_modules/@mui/x-tree-view": {- "version": "7.29.10",- "resolved": "https://registry.npmjs.org/@mui/x-tree-view/-/x-tree-view-7.29.10.tgz",- "integrity": "sha512-/ZcM582yIaQN2PmadIlQYRJzc3yXV7bh463J4GHtTmFw+PEjzUfzETBWe3VxmU3EPgIFzVQPjqAAJwylmQSJOg==",+ "node_modules/@monogrid/gainmap-js": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/@monogrid/gainmap-js/-/gainmap-js-3.4.0.tgz",+ "integrity": "sha512-2Z0FATFHaoYJ8b+Y4y4Hgfn3FRFwuU5zRrk+9dFWp4uGAdHGqVEdP7HP+gLA3X469KXHmfupJaUbKo1b/aDKIg==","license": "MIT","dependencies": {- "@babel/runtime": "^7.25.7",- "@mui/utils": "^5.16.6 || ^6.0.0 || ^7.0.0",- "@mui/x-internals": "7.29.0",- "@types/react-transition-group": "^4.4.11",- "clsx": "^2.1.1",- "prop-types": "^15.8.1",- "react-transition-group": "^4.4.5"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"+ "promise-worker-transferable": "^1.0.4"},"peerDependencies": {- "@emotion/react": "^11.9.0",- "@emotion/styled": "^11.8.1",- "@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0",- "@mui/system": "^5.15.14 || ^6.0.0 || ^7.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- }+ "three": ">= 0.159.0"}},"node_modules/@npmcli/agent": {@@ -2342,16 +1706,6 @@"node": ">=18"}},- "node_modules/@popperjs/core": {- "version": "2.11.8",- "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",- "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/popperjs"- }- },"node_modules/@react-three/drei": {"version": "10.7.7","resolved": "https://registry.npmjs.org/@react-three/drei/-/drei-10.7.7.tgz",@@ -2598,9 +1952,6 @@"arm"],"dev": true,- "libc": [- "glibc"- ],"license": "MIT","optional": true,"os": [@@ -2615,9 +1966,6 @@"arm"],"dev": true,- "libc": [- "musl"- ],"license": "MIT","optional": true,"os": [@@ -2632,9 +1980,6 @@"arm64"],"dev": true,- "libc": [- "glibc"- ],"license": "MIT","optional": true,"os": [@@ -2649,9 +1994,6 @@"arm64"],"dev": true,- "libc": [- "musl"- ],"license": "MIT","optional": true,"os": [@@ -2666,9 +2008,6 @@"loong64"],"dev": true,- "libc": [- "glibc"- ],"license": "MIT","optional": true,"os": [@@ -2683,9 +2022,6 @@"loong64"],"dev": true,- "libc": [- "musl"- ],"license": "MIT","optional": true,"os": [@@ -2700,9 +2036,6 @@"ppc64"],"dev": true,- "libc": [- "glibc"- ],"license": "MIT","optional": true,"os": [@@ -2717,9 +2050,6 @@"ppc64"],"dev": true,- "libc": [- "musl"- ],"license": "MIT","optional": true,"os": [@@ -2734,9 +2064,6 @@"riscv64"],"dev": true,- "libc": [- "glibc"- ],"license": "MIT","optional": true,"os": [@@ -2751,9 +2078,6 @@"riscv64"],"dev": true,- "libc": [- "musl"- ],"license": "MIT","optional": true,"os": [@@ -2768,9 +2092,6 @@"s390x"],"dev": true,- "libc": [- "glibc"- ],"license": "MIT","optional": true,"os": [@@ -2785,9 +2106,6 @@"x64"],"dev": true,- "libc": [- "glibc"- ],"license": "MIT","optional": true,"os": [@@ -2802,9 +2120,6 @@"x64"],"dev": true,- "libc": [- "musl"- ],"license": "MIT","optional": true,"os": [@@ -3399,12 +2714,6 @@"integrity": "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==","license": "MIT"},- "node_modules/@types/parse-json": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz",- "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==",- "license": "MIT"- },"node_modules/@types/plist": {"version": "3.0.5","resolved": "https://registry.npmjs.org/@types/plist/-/plist-3.0.5.tgz",@@ -3417,12 +2726,6 @@"xmlbuilder": ">=11.0.1"}},- "node_modules/@types/prop-types": {- "version": "15.7.15",- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",- "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",- "license": "MIT"- },"node_modules/@types/react": {"version": "19.2.14","resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",@@ -3451,15 +2754,6 @@"@types/react": "*"}},- "node_modules/@types/react-transition-group": {- "version": "4.4.12",- "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.12.tgz",- "integrity": "sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==",- "license": "MIT",- "peerDependencies": {- "@types/react": "*"- }- },"node_modules/@types/responselike": {"version": "1.0.3","resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz",@@ -3926,21 +3220,6 @@"node": ">= 4.0.0"}},- "node_modules/babel-plugin-macros": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz",- "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.12.5",- "cosmiconfig": "^7.0.0",- "resolve": "^1.19.0"- },- "engines": {- "node": ">=10",- "npm": ">=6"- }- },"node_modules/balanced-match": {"version": "4.0.4","resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",@@ -4308,15 +3587,6 @@"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==",- "license": "MIT",- "engines": {- "node": ">=6"- }- },"node_modules/camera-controls": {"version": "3.1.2","resolved": "https://registry.npmjs.org/camera-controls/-/camera-controls-3.1.2.tgz",@@ -4551,12 +3821,6 @@"dev": true,"license": "MIT"},- "node_modules/convert-source-map": {- "version": "1.9.0",- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",- "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==",- "license": "MIT"- },"node_modules/copy-anything": {"version": "4.0.5","resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-4.0.5.tgz",@@ -4579,31 +3843,6 @@"dev": true,"license": "MIT"},- "node_modules/cosmiconfig": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",- "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",- "license": "MIT",- "dependencies": {- "@types/parse-json": "^4.0.0",- "import-fresh": "^3.2.1",- "parse-json": "^5.0.0",- "path-type": "^4.0.0",- "yaml": "^1.10.0"- },- "engines": {- "node": ">=10"- }- },- "node_modules/cosmiconfig/node_modules/yaml": {- "version": "1.10.3",- "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.3.tgz",- "integrity": "sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA==",- "license": "ISC",- "engines": {- "node": ">= 6"- }- },"node_modules/country-flag-icons": {"version": "1.6.15","resolved": "https://registry.npmjs.org/country-flag-icons/-/country-flag-icons-1.6.15.tgz",@@ -5346,16 +4585,6 @@"node": ">=8"}},- "node_modules/dom-helpers": {- "version": "5.2.1",- "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz",- "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.8.7",- "csstype": "^3.0.2"- }- },"node_modules/dompurify": {"version": "3.2.7","resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.7.tgz",@@ -5753,15 +4982,6 @@"dev": true,"license": "MIT"},- "node_modules/error-ex": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",- "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",- "license": "MIT",- "dependencies": {- "is-arrayish": "^0.2.1"- }- },"node_modules/es-define-property": {"version": "1.0.1","resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",@@ -5875,7 +5095,9 @@"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",+ "optional": true,"engines": {"node": ">=10"},@@ -6016,12 +5238,6 @@"node": ">=10"}},- "node_modules/find-root": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",- "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==",- "license": "MIT"- },"node_modules/foreground-child": {"version": "3.3.1","resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",@@ -6123,6 +5339,7 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz","integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "dev": true,"license": "MIT","funding": {"url": "https://github.com/sponsors/ljharb"@@ -6415,6 +5632,7 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz","integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "dev": true,"license": "MIT","dependencies": {"function-bind": "^1.1.2"@@ -6429,21 +5647,6 @@"integrity": "sha512-E3a5VwgXimGHwpRGV+WxRTKeSp2DW5DI5MWv34ulL3t5UNmyJWCQ1KmLEHbYzcfThfXG8amBL+fCYPneGHC4VA==","license": "Apache-2.0"},- "node_modules/hoist-non-react-statics": {- "version": "3.3.2",- "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",- "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",- "license": "BSD-3-Clause",- "dependencies": {- "react-is": "^16.7.0"- }- },- "node_modules/hoist-non-react-statics/node_modules/react-is": {- "version": "16.13.1",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",- "license": "MIT"- },"node_modules/hosted-git-info": {"version": "4.1.0","resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz",@@ -6648,22 +5851,6 @@"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==",- "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",@@ -6712,27 +5899,6 @@"node": ">= 12"}},- "node_modules/is-arrayish": {- "version": "0.2.1",- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",- "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",- "license": "MIT"- },- "node_modules/is-core-module": {- "version": "2.16.1",- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",- "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",- "license": "MIT",- "dependencies": {- "hasown": "^2.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },"node_modules/is-fullwidth-code-point": {"version": "3.0.0","resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",@@ -6888,6 +6054,7 @@"version": "3.1.0","resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz","integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,"license": "MIT","bin": {"jsesc": "bin/jsesc"@@ -6903,12 +6070,6 @@"dev": true,"license": "MIT"},- "node_modules/json-parse-even-better-errors": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",- "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",- "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",@@ -7018,12 +6179,6 @@"immediate": "~3.0.5"}},- "node_modules/lines-and-columns": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",- "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",- "license": "MIT"- },"node_modules/lodash": {"version": "4.17.23","resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz",@@ -7752,36 +6907,6 @@"dev": true,"license": "(MIT AND Zlib)"},- "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==",- "license": "MIT",- "dependencies": {- "callsites": "^3.0.0"- },- "engines": {- "node": ">=6"- }- },- "node_modules/parse-json": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",- "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.0.0",- "error-ex": "^1.3.1",- "json-parse-even-better-errors": "^2.3.0",- "lines-and-columns": "^1.1.6"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/path-is-absolute": {"version": "1.0.1","resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",@@ -7801,12 +6926,6 @@"node": ">=8"}},- "node_modules/path-parse": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",- "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",- "license": "MIT"- },"node_modules/path-scurry": {"version": "1.11.1","resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",@@ -7831,15 +6950,6 @@"dev": true,"license": "ISC"},- "node_modules/path-type": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",- "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",- "license": "MIT",- "engines": {- "node": ">=8"- }- },"node_modules/pe-library": {"version": "0.4.1","resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz",@@ -7866,6 +6976,7 @@"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": {@@ -8187,12 +7298,6 @@}}},- "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"- },"node_modules/react-redux": {"version": "9.2.0","resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.2.0.tgz",@@ -8282,22 +7387,6 @@"react-dom": ">=16.8"}},- "node_modules/react-transition-group": {- "version": "4.4.5",- "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",- "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",- "license": "BSD-3-Clause",- "dependencies": {- "@babel/runtime": "^7.5.5",- "dom-helpers": "^5.0.1",- "loose-envify": "^1.4.0",- "prop-types": "^15.6.2"- },- "peerDependencies": {- "react": ">=16.6.0",- "react-dom": ">=16.6.0"- }- },"node_modules/react-use-measure": {"version": "2.1.7","resolved": "https://registry.npmjs.org/react-use-measure/-/react-use-measure-2.1.7.tgz",@@ -8405,26 +7494,6 @@"integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==","license": "MIT"},- "node_modules/resolve": {- "version": "1.22.11",- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",- "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",- "license": "MIT",- "dependencies": {- "is-core-module": "^2.16.1",- "path-parse": "^1.0.7",- "supports-preserve-symlinks-flag": "^1.0.0"- },- "bin": {- "resolve": "bin/resolve"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },"node_modules/resolve-alpn": {"version": "1.2.1","resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz",@@ -8432,15 +7501,6 @@"dev": true,"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==",- "license": "MIT",- "engines": {- "node": ">=4"- }- },"node_modules/responselike": {"version": "2.0.1","resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz",@@ -8786,15 +7846,6 @@"node": ">= 14"}},- "node_modules/source-map": {- "version": "0.5.7",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",- "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },"node_modules/source-map-js": {"version": "1.2.1","resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",@@ -8957,12 +8008,6 @@"node": ">=8"}},- "node_modules/stylis": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz",- "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==",- "license": "MIT"- },"node_modules/sumchecker": {"version": "3.0.1","resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",@@ -9001,18 +8046,6 @@"node": ">=8"}},- "node_modules/supports-preserve-symlinks-flag": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",- "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",- "license": "MIT",- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },"node_modules/suspend-react": {"version": "0.1.3","resolved": "https://registry.npmjs.org/suspend-react/-/suspend-react-0.1.3.tgz",diff --git a/freemocap-ui/package.json b/freemocap-ui/package.jsonindex 9dcf4167..4c5a98d7 100644--- a/freemocap-ui/package.json+++ b/freemocap-ui/package.json@@ -24,18 +24,13 @@"@dnd-kit/modifiers": "^9.0.0","@dnd-kit/sortable": "^10.0.0","@dnd-kit/utilities": "^3.2.2",- "@emotion/react": "^11.13.3",- "@emotion/styled": "^11.13.0",- "@fontsource/roboto": "^5.1.0","@monaco-editor/react": "^4.7.0",- "@mui/icons-material": "^6.4.5",- "@mui/material": "^6.1.1",- "@mui/x-tree-view": "^7.29.1","@react-three/drei": "^10.7.7","@react-three/fiber": "^9.5.0","@reduxjs/toolkit": "^2.5.1","@trpc/client": "^11.5.1","@trpc/server": "^11.5.1",+ "clsx": "^2.1.1","country-flag-icons": "^1.6.14","d3": "^7.9.0","electron-updater": "^6.8.1",diff --git a/freemocap-ui/public/images/splashmodal_art.webp b/freemocap-ui/public/images/splashmodal_art.webpnew file mode 100644index 00000000..1aec06a9Binary files /dev/null and b/freemocap-ui/public/images/splashmodal_art.webp differdiff --git a/freemocap-ui/screenshot.mjs b/freemocap-ui/screenshot.mjsnew file mode 100644index 00000000..472833d4--- /dev/null+++ b/freemocap-ui/screenshot.mjs@@ -0,0 +1,31 @@+import { chromium } from 'playwright';++const browser = await chromium.launch();+const page = await browser.newPage({ viewport: { width: 1400, height: 900 } });+await page.goto('http://localhost:5173/');+await page.waitForTimeout(2000);++// Close welcome modal+const closeBtn = page.locator('.splash-modal .close-icon').first();+if (await closeBtn.count() > 0) {+ await closeBtn.click();+ await page.waitForTimeout(500);+}++await page.screenshot({ path: '/tmp/screenshots/01-streaming.png' });++// Zoom on viewport overlay (top-right area)+await page.locator('text=Viewport').first().screenshot({ path: '/tmp/screenshots/02-viewport-header.png' }).catch(()=>{});++// crop region for the viewport overlay+await page.screenshot({ path: '/tmp/screenshots/03-viewport-overlay.png', clip: { x: 980, y: 30, width: 200, height: 130 } });++// Click settings gear icon (top right of camera view) to open SettingsOverlay+const gear = page.locator('button.icon-button:has(.settings-icon)').first();+if (await gear.count() > 0) {+ await gear.click();+ await page.waitForTimeout(500);+ await page.screenshot({ path: '/tmp/screenshots/04-settings-overlay.png' });+}++await browser.close();diff --git a/freemocap-ui/src/app/App.css b/freemocap-ui/src/app/App.cssindex 1042d137..aa0423a2 100644--- a/freemocap-ui/src/app/App.css+++ b/freemocap-ui/src/app/App.css@@ -1,52 +1 @@-#root {- width: 100%;- height: 100vh;- overflow: hidden;-}--.logo-box {- position: relative;- height: 9em;-}--.logo {- position: absolute;- left: calc(50% - 4.5em);- height: 6em;- padding: 1.5em;- will-change: filter;- transition: filter 300ms;-}--.logo:hover {- filter: drop-shadow(0 0 2em #646cffaa);-}--@keyframes logo-spin {- from {- transform: rotate(0deg);- }- to {- transform: rotate(360deg);- }-}--@media (prefers-reduced-motion: no-preference) {- .logo.electron {- animation: logo-spin infinite 20s linear;- }-}--.card {- padding: 2em;-}--.read-the-docs {- color: #888;-}--.flex-center {- display: flex;- align-items: center;- justify-content: center;-}+/* App-specific styles — base design system is loaded via index.css → styles/App.css */diff --git a/freemocap-ui/src/app/AppContent.tsx b/freemocap-ui/src/app/AppContent.tsxindex 15f3d71a..7e367512 100644--- a/freemocap-ui/src/app/AppContent.tsx+++ b/freemocap-ui/src/app/AppContent.tsx@@ -1,10 +1,7 @@import * as React from 'react';-import { ThemeProvider } from '@mui/material/styles';import { HashRouter } from 'react-router-dom';-import { CssBaseline } from "@mui/material";import { BasePanelLayout } from "@/layout/BasePanelLayout";-import { createExtendedTheme } from "@/layout/paperbase-theme";-import { useAppDispatch, useAppSelector } from "@/store";+import { useAppDispatch } from "@/store";import { BaseContentRouter } from "@/layout/content/BaseContentRouter";import { UpdateBanner } from "@/components/ui-components/UpdateBanner";import PipelineProgressSnackbar from "@/components/pipeline-progress/PipelineProgressSnackbar";@@ -13,43 +10,35 @@ import { PlaybackProvider } from "@/components/playback/PlaybackContext";import { useTranslation } from "react-i18next";import { getLocaleDirection } from "@/i18n";import { fetchAllRecordings } from "@/store/slices/recording-status/recording-status-thunks";+import { WelcomeModal } from "@/components/ui-components/WelcomeModal";export const AppContent = function () {const { i18n } = useTranslation();const dispatch = useAppDispatch();- const themeMode = useAppSelector(state => state.theme.mode);const direction = getLocaleDirection(i18n.language);+ const [welcomeOpen, setWelcomeOpen] = React.useState(true);- // Sync document-level direction and lang attributes with current localeReact.useEffect(() => {document.documentElement.dir = direction;document.documentElement.lang = i18n.language;}, [direction, i18n.language]);- // Prefetch recordings list on startup so data is ready when user opens the tabReact.useEffect(() => {dispatch(fetchAllRecordings());}, [dispatch]);- const theme = React.useMemo(() => {- const base = createExtendedTheme(themeMode);- return { ...base, direction };- }, [themeMode, direction]);-return (- <ThemeProvider theme={theme}>- <CssBaseline />- <HashRouter>- <AutoUpdateProvider>- <PlaybackProvider>- <BasePanelLayout>- <BaseContentRouter />- </BasePanelLayout>- </PlaybackProvider>- <UpdateBanner />- <PipelineProgressSnackbar />- </AutoUpdateProvider>- </HashRouter>- </ThemeProvider>+ <HashRouter>+ <AutoUpdateProvider>+ <PlaybackProvider>+ <BasePanelLayout onOpenWelcome={() => setWelcomeOpen(true)}>+ <BaseContentRouter />+ </BasePanelLayout>+ <WelcomeModal open={welcomeOpen} onClose={() => setWelcomeOpen(false)} />+ </PlaybackProvider>+ <UpdateBanner />+ <PipelineProgressSnackbar />+ </AutoUpdateProvider>+ </HashRouter>);}diff --git a/freemocap-ui/src/assets/icons/2dtracking_active_icon.svg b/freemocap-ui/src/assets/icons/2dtracking_active_icon.svgnew file mode 100644index 00000000..1a06d3b3--- /dev/null+++ b/freemocap-ui/src/assets/icons/2dtracking_active_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M4.07136 13.6805V12.7302L6.59237 10.2588C6.83348 10.0154 7.0344 9.79907 7.19514 9.60997C7.35588 9.42086 7.47644 9.23767 7.55681 9.06038C7.63718 8.8831 7.67736 8.69399 7.67736 8.49307C7.67736 8.26377 7.62536 8.06758 7.52135 7.90447C7.41734 7.73901 7.27433 7.61136 7.09232 7.52154C6.9103 7.43171 6.70347 7.3868 6.47181 7.3868C6.23307 7.3868 6.02387 7.43644 5.84422 7.53572C5.66457 7.63264 5.52511 7.77092 5.42583 7.95057C5.32891 8.13022 5.28045 8.34414 5.28045 8.59235H4.02881C4.02881 8.1314 4.134 7.73073 4.34438 7.39034C4.55476 7.04995 4.84433 6.78639 5.21308 6.59965C5.5842 6.41291 6.00969 6.31953 6.48954 6.31953C6.97649 6.31953 7.40434 6.41054 7.7731 6.59256C8.14185 6.77457 8.42787 7.02395 8.63116 7.3407C8.83682 7.65746 8.93964 8.01912 8.93964 8.4257C8.93964 8.69754 8.88764 8.96465 8.78363 9.22703C8.67962 9.48941 8.49643 9.78016 8.23404 10.0993C7.97402 10.4184 7.60881 10.8049 7.13841 11.2587L5.88677 12.5316V12.5813H9.04956V13.6805H4.07136Z" fill="#0898FF"/>+<path d="M12.4467 13.6805H9.98596V6.41881H12.4963C13.2173 6.41881 13.8366 6.56419 14.3543 6.85494C14.8743 7.14332 15.2738 7.55817 15.5528 8.09949C15.8317 8.6408 15.9711 9.28849 15.9711 10.0425C15.9711 10.799 15.8305 11.449 15.5492 11.9927C15.2703 12.5364 14.8672 12.9536 14.3401 13.2443C13.8153 13.5351 13.1842 13.6805 12.4467 13.6805ZM11.3014 12.5423H12.3829C12.8887 12.5423 13.3107 12.4501 13.6487 12.2657C13.9867 12.079 14.2408 11.8012 14.411 11.4325C14.5812 11.0614 14.6663 10.598 14.6663 10.0425C14.6663 9.48705 14.5812 9.02611 14.411 8.65971C14.2408 8.29096 13.9891 8.01557 13.6558 7.83356C13.3249 7.64918 12.9136 7.55699 12.4219 7.55699H11.3014V12.5423Z" fill="#0898FF"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/2dtracking_icon.svg b/freemocap-ui/src/assets/icons/2dtracking_icon.svgnew file mode 100644index 00000000..041a5d3b--- /dev/null+++ b/freemocap-ui/src/assets/icons/2dtracking_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M4.07136 13.6805V12.7302L6.59237 10.2588C6.83348 10.0154 7.0344 9.79907 7.19514 9.60997C7.35588 9.42086 7.47644 9.23767 7.55681 9.06038C7.63718 8.8831 7.67736 8.69399 7.67736 8.49307C7.67736 8.26377 7.62536 8.06758 7.52135 7.90447C7.41734 7.73901 7.27433 7.61136 7.09232 7.52154C6.9103 7.43171 6.70347 7.3868 6.47181 7.3868C6.23307 7.3868 6.02387 7.43644 5.84422 7.53572C5.66457 7.63264 5.52511 7.77092 5.42583 7.95057C5.32891 8.13022 5.28045 8.34414 5.28045 8.59235H4.02881C4.02881 8.1314 4.134 7.73073 4.34438 7.39034C4.55476 7.04995 4.84433 6.78639 5.21308 6.59965C5.5842 6.41291 6.00969 6.31953 6.48954 6.31953C6.97649 6.31953 7.40434 6.41054 7.7731 6.59256C8.14185 6.77457 8.42787 7.02395 8.63116 7.3407C8.83682 7.65746 8.93964 8.01912 8.93964 8.4257C8.93964 8.69754 8.88764 8.96465 8.78363 9.22703C8.67962 9.48941 8.49643 9.78016 8.23404 10.0993C7.97402 10.4184 7.60881 10.8049 7.13841 11.2587L5.88677 12.5316V12.5813H9.04956V13.6805H4.07136Z" fill="#9B9B9B"/>+<path d="M12.4467 13.6805H9.98596V6.41881H12.4963C13.2173 6.41881 13.8366 6.56419 14.3543 6.85494C14.8743 7.14332 15.2738 7.55817 15.5528 8.09949C15.8317 8.6408 15.9711 9.28849 15.9711 10.0425C15.9711 10.799 15.8305 11.449 15.5492 11.9927C15.2703 12.5364 14.8672 12.9536 14.3401 13.2443C13.8153 13.5351 13.1842 13.6805 12.4467 13.6805ZM11.3014 12.5423H12.3829C12.8887 12.5423 13.3107 12.4501 13.6487 12.2657C13.9867 12.079 14.2408 11.8012 14.411 11.4325C14.5812 11.0614 14.6663 10.598 14.6663 10.0425C14.6663 9.48705 14.5812 9.02611 14.411 8.65971C14.2408 8.29096 13.9891 8.01557 13.6558 7.83356C13.3249 7.64918 12.9136 7.55699 12.4219 7.55699H11.3014V12.5423Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/3dtracking_active_icon.svg b/freemocap-ui/src/assets/icons/3dtracking_active_icon.svgnew file mode 100644index 00000000..6607f3f9--- /dev/null+++ b/freemocap-ui/src/assets/icons/3dtracking_active_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M6.53345 13.7301C6.02286 13.7301 5.56901 13.6426 5.17189 13.4677C4.77713 13.2928 4.46511 13.0493 4.23582 12.7373C4.00653 12.4253 3.88479 12.0648 3.87061 11.6559H5.2038C5.21562 11.8521 5.28062 12.0234 5.39881 12.17C5.517 12.3142 5.6742 12.4265 5.8704 12.5068C6.06659 12.5872 6.28643 12.6274 6.5299 12.6274C6.78992 12.6274 7.02039 12.5825 7.22132 12.4926C7.42224 12.4005 7.57944 12.2728 7.6929 12.1097C7.80636 11.9466 7.86191 11.7587 7.85955 11.5459C7.86191 11.3261 7.80518 11.1323 7.68935 10.9644C7.57353 10.7966 7.4057 10.6654 7.18586 10.5709C6.96839 10.4763 6.70601 10.429 6.39871 10.429H5.75693V9.41496H6.39871C6.65164 9.41496 6.87265 9.37123 7.06176 9.28377C7.25323 9.1963 7.40333 9.07339 7.51207 8.91501C7.6208 8.75427 7.67399 8.56871 7.67163 8.35833C7.67399 8.15268 7.62789 7.97421 7.53334 7.82293C7.44115 7.66928 7.30996 7.54991 7.13977 7.46481C6.97194 7.37971 6.77456 7.33716 6.54763 7.33716C6.32543 7.33716 6.11978 7.37735 5.93067 7.45772C5.74157 7.53809 5.5891 7.65273 5.47327 7.80165C5.35745 7.94821 5.29599 8.12313 5.2889 8.32642H4.02307C4.03253 7.91984 4.14954 7.56291 4.3741 7.25561C4.60103 6.94595 4.90359 6.70484 5.2818 6.53228C5.66002 6.35736 6.08432 6.2699 6.55472 6.2699C7.0393 6.2699 7.46006 6.3609 7.817 6.54292C8.1763 6.72257 8.45405 6.96486 8.65025 7.26979C8.84644 7.57473 8.94454 7.91157 8.94454 8.28032C8.94691 8.68927 8.82635 9.03202 8.58288 9.30859C8.34177 9.58515 8.02502 9.76598 7.63262 9.85108V9.90781C8.14321 9.97873 8.53442 10.1678 8.80626 10.4751C9.08046 10.7801 9.21638 11.1595 9.21402 11.6133C9.21402 12.0199 9.09819 12.3839 8.86654 12.7054C8.63724 13.0245 8.32049 13.2751 7.91628 13.4571C7.51443 13.6391 7.05349 13.7301 6.53345 13.7301Z" fill="#0898FF"/>+<path d="M12.6049 13.6308H10.1442V6.36918H12.6546C13.3756 6.36918 13.9949 6.51455 14.5126 6.8053C15.0326 7.09369 15.4321 7.50854 15.711 8.04985C15.9899 8.59117 16.1294 9.23885 16.1294 9.99291C16.1294 10.7493 15.9888 11.3994 15.7075 11.9431C15.4285 12.4867 15.0255 12.904 14.4984 13.1947C13.9736 13.4855 13.3425 13.6308 12.6049 13.6308ZM11.4597 12.4926H12.5411C13.047 12.4926 13.4689 12.4005 13.807 12.2161C14.145 12.0293 14.3991 11.7516 14.5693 11.3828C14.7395 11.0117 14.8246 10.5484 14.8246 9.99291C14.8246 9.43741 14.7395 8.97647 14.5693 8.61008C14.3991 8.24132 14.1473 7.96594 13.814 7.78392C13.4831 7.59955 13.0718 7.50736 12.5801 7.50736H11.4597V12.4926Z" fill="#0898FF"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/3dtracking_icon.svg b/freemocap-ui/src/assets/icons/3dtracking_icon.svgnew file mode 100644index 00000000..89c29911--- /dev/null+++ b/freemocap-ui/src/assets/icons/3dtracking_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M6.53345 13.7301C6.02286 13.7301 5.56901 13.6426 5.17189 13.4677C4.77713 13.2928 4.46511 13.0493 4.23582 12.7373C4.00653 12.4253 3.88479 12.0648 3.87061 11.6559H5.2038C5.21562 11.8521 5.28062 12.0234 5.39881 12.17C5.517 12.3142 5.6742 12.4265 5.8704 12.5068C6.06659 12.5872 6.28643 12.6274 6.5299 12.6274C6.78992 12.6274 7.02039 12.5825 7.22132 12.4926C7.42224 12.4005 7.57944 12.2728 7.6929 12.1097C7.80636 11.9466 7.86191 11.7587 7.85955 11.5459C7.86191 11.3261 7.80518 11.1323 7.68935 10.9644C7.57353 10.7966 7.4057 10.6654 7.18586 10.5709C6.96839 10.4763 6.70601 10.429 6.39871 10.429H5.75693V9.41496H6.39871C6.65164 9.41496 6.87265 9.37123 7.06176 9.28377C7.25323 9.1963 7.40333 9.07339 7.51207 8.91501C7.6208 8.75427 7.67399 8.56871 7.67163 8.35833C7.67399 8.15268 7.62789 7.97421 7.53334 7.82293C7.44115 7.66928 7.30996 7.54991 7.13977 7.46481C6.97194 7.37971 6.77456 7.33716 6.54763 7.33716C6.32543 7.33716 6.11978 7.37735 5.93067 7.45772C5.74157 7.53809 5.5891 7.65273 5.47327 7.80165C5.35745 7.94821 5.29599 8.12313 5.2889 8.32642H4.02307C4.03253 7.91984 4.14954 7.56291 4.3741 7.25561C4.60103 6.94595 4.90359 6.70484 5.2818 6.53228C5.66002 6.35736 6.08432 6.2699 6.55472 6.2699C7.0393 6.2699 7.46006 6.3609 7.817 6.54292C8.1763 6.72257 8.45405 6.96486 8.65025 7.26979C8.84644 7.57473 8.94454 7.91157 8.94454 8.28032C8.94691 8.68927 8.82635 9.03202 8.58288 9.30859C8.34177 9.58515 8.02502 9.76598 7.63262 9.85108V9.90781C8.14321 9.97873 8.53442 10.1678 8.80626 10.4751C9.08046 10.7801 9.21638 11.1595 9.21402 11.6133C9.21402 12.0199 9.09819 12.3839 8.86654 12.7054C8.63724 13.0245 8.32049 13.2751 7.91628 13.4571C7.51443 13.6391 7.05349 13.7301 6.53345 13.7301Z" fill="#9B9B9B"/>+<path d="M12.6049 13.6308H10.1442V6.36918H12.6546C13.3756 6.36918 13.9949 6.51455 14.5126 6.8053C15.0326 7.09369 15.4321 7.50854 15.711 8.04985C15.9899 8.59117 16.1294 9.23885 16.1294 9.99291C16.1294 10.7493 15.9888 11.3994 15.7075 11.9431C15.4285 12.4867 15.0255 12.904 14.4984 13.1947C13.9736 13.4855 13.3425 13.6308 12.6049 13.6308ZM11.4597 12.4926H12.5411C13.047 12.4926 13.4689 12.4005 13.807 12.2161C14.145 12.0293 14.3991 11.7516 14.5693 11.3828C14.7395 11.0117 14.8246 10.5484 14.8246 9.99291C14.8246 9.43741 14.7395 8.97647 14.5693 8.61008C14.3991 8.24132 14.1473 7.96594 13.814 7.78392C13.4831 7.59955 13.0718 7.50736 12.5801 7.50736H11.4597V12.4926Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/addsubfolder_icon.svg b/freemocap-ui/src/assets/icons/addsubfolder_icon.svgnew file mode 100644index 00000000..77cf2735--- /dev/null+++ b/freemocap-ui/src/assets/icons/addsubfolder_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M6.74072 4.50806C7.14699 4.5454 7.53218 4.71126 7.84058 4.98291L9.32739 6.29028C9.45175 6.39988 9.61209 6.4609 9.77783 6.46118H14.5752C15.0876 6.46118 15.58 6.66411 15.9424 7.02637C16.3048 7.38876 16.5088 7.88105 16.5088 8.39355V9.04443C16.5088 9.1825 16.3969 9.29443 16.2588 9.29443H15.5088C15.3707 9.29443 15.2588 9.1825 15.2588 9.04443V8.39355C15.2588 8.21257 15.1866 8.03813 15.0586 7.91016C14.9306 7.78233 14.7561 7.71118 14.5752 7.71118H9.77783C9.36644 7.71094 8.96728 7.5788 8.6377 7.33765L8.50098 7.22778L7.01538 5.92041C6.92192 5.83805 6.80803 5.7827 6.68701 5.7605L6.56372 5.74951H5.42358C5.24272 5.74961 5.0693 5.82181 4.94141 5.94971C4.81353 6.07765 4.74124 6.25099 4.74121 6.43188V13.5681C4.74125 13.749 4.81356 13.9224 4.94141 14.0503C5.0693 14.1782 5.24274 14.2504 5.42358 14.2505H10.2297C10.3678 14.2505 10.4797 14.3624 10.4797 14.5005V15.2505C10.4797 15.3886 10.3678 15.5005 10.2297 15.5005H5.42358C4.91122 15.5004 4.41993 15.2964 4.05762 14.9341C3.69536 14.5717 3.49125 14.0805 3.49121 13.5681V6.43188C3.49124 5.91947 3.69532 5.42828 4.05762 5.06592C4.41993 4.7036 4.9112 4.49961 5.42358 4.49951H6.56494L6.74072 4.50806Z" fill="#9B9B9B"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M14.6239 10.1252C14.8723 10.1256 15.0739 10.3278 15.0739 10.5762V12.5035L15.0782 12.5078H17.0065C17.255 12.5081 17.4564 12.7093 17.4565 12.9578V13.5112C17.4564 13.7597 17.255 13.9609 17.0065 13.9612H15.0771C15.075 13.9613 15.0728 13.9634 15.0728 13.9655V15.9069C15.0728 16.1555 14.8713 16.3577 14.6228 16.3579H14.0694C13.8209 16.3577 13.6194 16.1555 13.6194 15.9069V13.9655L13.6151 13.9612H11.6748C11.4261 13.9612 11.2227 13.7599 11.2227 13.5112V12.9578C11.2228 12.7091 11.4261 12.5078 11.6748 12.5078H13.6162C13.6182 12.5075 13.6205 12.5055 13.6205 12.5035V10.5762C13.6205 10.3275 13.8218 10.1253 14.0705 10.1252H14.6239Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/back_icon.svg b/freemocap-ui/src/assets/icons/back_icon.svgnew file mode 100644index 00000000..66baa103--- /dev/null+++ b/freemocap-ui/src/assets/icons/back_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M11.7806 4.67441C12.1051 4.3501 12.6316 4.35028 12.9562 4.67441C13.2808 4.99903 13.2808 5.52654 12.9562 5.85116L8.80701 9.99911L12.9562 14.1495C13.2808 14.4741 13.2808 15.0004 12.9562 15.325C12.6315 15.6495 12.1052 15.6496 11.7806 15.325L7.04309 10.5875C6.71896 10.2629 6.71878 9.73644 7.04309 9.41196L11.7806 4.67441Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/blender_icon.svg b/freemocap-ui/src/assets/icons/blender_icon.svgnew file mode 100644index 00000000..998cf095--- /dev/null+++ b/freemocap-ui/src/assets/icons/blender_icon.svg@@ -0,0 +1,5 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.17157 13.6904C8.42143 13.0652 8 12.2174 8 11.3333C8 10.4493 8.42143 9.60143 9.17157 8.97631C9.92172 8.35119 10.9391 8 12 8C13.0609 8 14.0783 8.35119 14.8284 8.97631C15.5786 9.60143 16 10.4493 16 11.3333C16 12.2174 15.5786 13.0652 14.8284 13.6904C14.0783 14.3155 13.0609 14.6667 12 14.6667C10.9391 14.6667 9.92172 14.3155 9.17157 13.6904Z" stroke="#9B9B9B" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M4 12.6667L10 8.33334M6 8H12M10.6667 5.33334L14.4333 8.66667" stroke="#9B9B9B" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M10.8925 12.4409C10.5987 12.1471 10.4337 11.7487 10.4337 11.3333C10.4337 10.9179 10.5987 10.5195 10.8925 10.2258C11.1862 9.93203 11.5846 9.76701 12 9.76701C12.4155 9.76701 12.8139 9.93203 13.1076 10.2258C13.4013 10.5195 13.5664 10.9179 13.5664 11.3333C13.5664 11.7487 13.4013 12.1471 13.1076 12.4409C12.8139 12.7346 12.4155 12.8997 12 12.8997C11.5846 12.8997 11.1862 12.7346 10.8925 12.4409Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/calibrate_icon.svg b/freemocap-ui/src/assets/icons/calibrate_icon.svgnew file mode 100644index 00000000..3e2f1a85--- /dev/null+++ b/freemocap-ui/src/assets/icons/calibrate_icon.svg@@ -0,0 +1,13 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.09888 5.54687C8.09888 5.00034 7.65583 4.55729 7.10929 4.55729H5.54679C5.00026 4.55729 4.55721 5.00034 4.55721 5.54687V7.10937C4.55721 7.6559 5.00026 8.09895 5.54679 8.09895H7.10929C7.65583 8.09895 8.09888 7.6559 8.09888 7.10937V5.54687ZM9.24471 7.10937C9.24471 8.28873 8.28865 9.24479 7.10929 9.24479H5.54679C4.36744 9.24479 3.41138 8.28873 3.41138 7.10937V5.54687C3.41138 4.36751 4.36744 3.41145 5.54679 3.41145H7.10929C8.28865 3.41145 9.24471 4.36751 9.24471 5.54687V7.10937Z" fill="#E4E4E4"/>+<path d="M14.9739 5.54687C14.9739 5.00034 14.5308 4.55729 13.9843 4.55729H12.4218C11.8753 4.55729 11.4322 5.00034 11.4322 5.54687V7.10937C11.4322 7.6559 11.8753 8.09895 12.4218 8.09895H13.9843C14.5308 8.09895 14.9739 7.6559 14.9739 7.10937V5.54687ZM16.1197 7.10937C16.1197 8.28873 15.1637 9.24479 13.9843 9.24479H12.4218C11.2424 9.24479 10.2864 8.28873 10.2864 7.10937V5.54687C10.2864 4.36751 11.2424 3.41145 12.4218 3.41145H13.9843C15.1637 3.41145 16.1197 4.36751 16.1197 5.54687V7.10937Z" fill="#E4E4E4"/>+<path d="M8.09888 12.4219C8.09888 11.8753 7.65583 11.4323 7.10929 11.4323H5.54679C5.00026 11.4323 4.55721 11.8753 4.55721 12.4219V13.9844C4.55721 14.5309 5.00026 14.974 5.54679 14.974H7.10929C7.65583 14.974 8.09888 14.5309 8.09888 13.9844V12.4219ZM9.24471 13.9844C9.24471 15.1637 8.28865 16.1198 7.10929 16.1198H5.54679C4.36744 16.1198 3.41138 15.1637 3.41138 13.9844V12.4219C3.41138 11.2425 4.36744 10.2865 5.54679 10.2865H7.10929C8.28865 10.2865 9.24471 11.2425 9.24471 12.4219V13.9844Z" fill="#E4E4E4"/>+<path d="M7.26562 6.32812C7.26562 5.81036 6.84589 5.39062 6.32812 5.39062C5.81036 5.39062 5.39062 5.81036 5.39062 6.32812C5.39062 6.84589 5.81036 7.26562 6.32812 7.26562C6.84589 7.26562 7.26562 6.84589 7.26562 6.32812Z" fill="#E4E4E4"/>+<path d="M14.1406 6.32812C14.1406 5.81036 13.7209 5.39062 13.2031 5.39062C12.6854 5.39062 12.2656 5.81036 12.2656 6.32812C12.2656 6.84589 12.6854 7.26562 13.2031 7.26562C13.7209 7.26562 14.1406 6.84589 14.1406 6.32812Z" fill="#E4E4E4"/>+<path d="M7.26562 13.2031C7.26562 12.6854 6.84589 12.2656 6.32812 12.2656C5.81036 12.2656 5.39062 12.6854 5.39062 13.2031C5.39062 13.7209 5.81036 14.1406 6.32812 14.1406C6.84589 14.1406 7.26562 13.7209 7.26562 13.2031Z" fill="#E4E4E4"/>+<path d="M12.2656 11.3281C12.2656 10.8104 11.8459 10.3906 11.3281 10.3906C10.8104 10.3906 10.3906 10.8104 10.3906 11.3281C10.3906 11.8459 10.8104 12.2656 11.3281 12.2656C11.8459 12.2656 12.2656 11.8459 12.2656 11.3281Z" fill="#E4E4E4"/>+<path d="M14.1406 13.2031C14.1406 12.6854 13.7209 12.2656 13.2031 12.2656C12.6854 12.2656 12.2656 12.6854 12.2656 13.2031C12.2656 13.7209 12.6854 14.1406 13.2031 14.1406C13.7209 14.1406 14.1406 13.7209 14.1406 13.2031Z" fill="#E4E4E4"/>+<path d="M16.0156 15.0781C16.0156 14.5604 15.5959 14.1406 15.0781 14.1406C14.5604 14.1406 14.1406 14.5604 14.1406 15.0781C14.1406 15.5959 14.5604 16.0156 15.0781 16.0156C15.5959 16.0156 16.0156 15.5959 16.0156 15.0781Z" fill="#E4E4E4"/>+<path d="M16.0156 11.3281C16.0156 10.8104 15.5959 10.3906 15.0781 10.3906C14.5604 10.3906 14.1406 10.8104 14.1406 11.3281C14.1406 11.8459 14.5604 12.2656 15.0781 12.2656C15.5959 12.2656 16.0156 11.8459 16.0156 11.3281Z" fill="#E4E4E4"/>+<path d="M12.2656 15.0781C12.2656 14.5604 11.8459 14.1406 11.3281 14.1406C10.8104 14.1406 10.3906 14.5604 10.3906 15.0781C10.3906 15.5959 10.8104 16.0156 11.3281 16.0156C11.8459 16.0156 12.2656 15.5959 12.2656 15.0781Z" fill="#E4E4E4"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/calibrated_icon.svg b/freemocap-ui/src/assets/icons/calibrated_icon.svgnew file mode 100644index 00000000..0f7e7c10--- /dev/null+++ b/freemocap-ui/src/assets/icons/calibrated_icon.svg@@ -0,0 +1,9 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.09888 5.54682C8.09888 5.00029 7.65583 4.55724 7.10929 4.55724H5.54679C5.00026 4.55724 4.55721 5.00029 4.55721 5.54682V7.10932C4.55721 7.65586 5.00026 8.09891 5.54679 8.09891H7.10929C7.65583 8.09891 8.09888 7.65586 8.09888 7.10932V5.54682ZM9.24471 7.10932C9.24471 8.28868 8.28865 9.24474 7.10929 9.24474H5.54679C4.36744 9.24474 3.41138 8.28868 3.41138 7.10932V5.54682C3.41138 4.36747 4.36744 3.41141 5.54679 3.41141H7.10929C8.28865 3.41141 9.24471 4.36747 9.24471 5.54682V7.10932Z" fill="#16DD12"/>+<path d="M14.9739 5.54676C14.9739 5.00023 14.5308 4.55718 13.9843 4.55718H12.4218C11.8753 4.55718 11.4322 5.00023 11.4322 5.54676V7.10926C11.4322 7.65579 11.8753 8.09885 12.4218 8.09885H13.9843C14.5308 8.09885 14.9739 7.65579 14.9739 7.10926V5.54676ZM16.1197 7.10926C16.1197 8.28862 15.1637 9.24468 13.9843 9.24468H12.4218C11.2424 9.24468 10.2864 8.28862 10.2864 7.10926V5.54676C10.2864 4.3674 11.2424 3.41135 12.4218 3.41135H13.9843C15.1637 3.41135 16.1197 4.3674 16.1197 5.54676V7.10926Z" fill="#16DD12"/>+<path d="M8.09888 12.4219C8.09888 11.8753 7.65583 11.4323 7.10929 11.4323H5.54679C5.00026 11.4323 4.55721 11.8753 4.55721 12.4219V13.9844C4.55721 14.5309 5.00026 14.974 5.54679 14.974H7.10929C7.65583 14.974 8.09888 14.5309 8.09888 13.9844V12.4219ZM9.24471 13.9844C9.24471 15.1637 8.28865 16.1198 7.10929 16.1198H5.54679C4.36744 16.1198 3.41138 15.1637 3.41138 13.9844V12.4219C3.41138 11.2425 4.36744 10.2865 5.54679 10.2865H7.10929C8.28865 10.2865 9.24471 11.2425 9.24471 12.4219V13.9844Z" fill="#16DD12"/>+<path d="M7.26562 6.32802C7.26562 5.81025 6.84589 5.39052 6.32812 5.39052C5.81036 5.39052 5.39062 5.81025 5.39062 6.32802C5.39062 6.84579 5.81036 7.26552 6.32812 7.26552C6.84589 7.26552 7.26562 6.84579 7.26562 6.32802Z" fill="#16DD12"/>+<path d="M14.1406 6.32802C14.1406 5.81025 13.7209 5.39052 13.2031 5.39052C12.6854 5.39052 12.2656 5.81025 12.2656 6.32802C12.2656 6.84579 12.6854 7.26552 13.2031 7.26552C13.7209 7.26552 14.1406 6.84579 14.1406 6.32802Z" fill="#16DD12"/>+<path d="M7.26562 13.2031C7.26562 12.6854 6.84589 12.2656 6.32812 12.2656C5.81036 12.2656 5.39062 12.6854 5.39062 13.2031C5.39062 13.7209 5.81036 14.1406 6.32812 14.1406C6.84589 14.1406 7.26562 13.7209 7.26562 13.2031Z" fill="#16DD12"/>+<path d="M15.0411 11.1635C15.3657 10.8393 15.8921 10.8393 16.2167 11.1635C16.5413 11.4881 16.5413 12.0156 16.2167 12.3403L13.3138 15.2419C12.9892 15.5664 12.4629 15.5665 12.1383 15.2419L10.8077 13.9113C10.4837 13.5866 10.4833 13.0602 10.8077 12.7358C11.1324 12.4111 11.6599 12.4111 11.9845 12.7358L12.7255 13.4779L15.0411 11.1635Z" fill="#16DD12"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/calibrating-icon.svg b/freemocap-ui/src/assets/icons/calibrating-icon.svgnew file mode 100644index 00000000..22074b5c--- /dev/null+++ b/freemocap-ui/src/assets/icons/calibrating-icon.svg@@ -0,0 +1,93 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<style>+ @keyframes frameCycle {+ 0%, 20% { opacity: 0; }+ 2%, 18% { opacity: 1; }+ }+ @keyframes frameCycle2 {+ 0%, 20% { opacity: 0; }+ 22%, 40% { opacity: 1; }+ 42%, 100% { opacity: 0; }+ }+ @keyframes frameCycle3 {+ 0%, 40% { opacity: 0; }+ 42%, 60% { opacity: 1; }+ 62%, 100% { opacity: 0; }+ }+ @keyframes frameCycle4 {+ 0%, 60% { opacity: 0; }+ 62%, 80% { opacity: 1; }+ 82%, 100% { opacity: 0; }+ }+ @keyframes frameCycle5 {+ 0%, 80% { opacity: 0; }+ 82%, 100% { opacity: 1; }+ }+ .frame1 { animation: frameCycle 1s step-end infinite; }+ .frame2 { animation: frameCycle2 1s step-end infinite; }+ .frame3 { animation: frameCycle3 1s step-end infinite; }+ .frame4 { animation: frameCycle4 1s step-end infinite; }+ .frame5 { animation: frameCycle5 1s step-end infinite; }+ </style>++ <!-- Frame 1 -->+ <g class="frame1">+<path d="M8.27344 14.2188C8.27344 14.7653 7.83039 15.2084 7.28385 15.2084L5.72135 15.2084C5.17482 15.2084 4.73177 14.7653 4.73177 14.2188L4.73177 12.6563C4.73177 12.1097 5.17482 11.6667 5.72135 11.6667L7.28385 11.6667C7.83039 11.6667 8.27344 12.1097 8.27344 12.6563L8.27344 14.2188ZM9.41927 12.6563C9.41927 11.4769 8.46321 10.5209 7.28385 10.5209L5.72135 10.5209C4.542 10.5209 3.58594 11.4769 3.58594 12.6563L3.58594 14.2188C3.58594 15.3981 4.542 16.3542 5.72135 16.3542L7.28385 16.3542C8.46321 16.3542 9.41927 15.3981 9.41927 14.2188L9.41927 12.6563Z" fill="#E4E4E4"/>+<path d="M8.27344 7.34377C8.27344 7.8903 7.83039 8.33335 7.28385 8.33335L5.72135 8.33335C5.17482 8.33335 4.73177 7.8903 4.73177 7.34377L4.73177 5.78127C4.73177 5.23474 5.17482 4.79169 5.72135 4.79169L7.28385 4.79169C7.83039 4.79169 8.27344 5.23474 8.27344 5.78127L8.27344 7.34377ZM9.41927 5.78127C9.41927 4.60191 8.46321 3.64585 7.28385 3.64585L5.72135 3.64585C4.542 3.64585 3.58594 4.60191 3.58594 5.78127L3.58594 7.34377C3.58594 8.52313 4.542 9.47919 5.72135 9.47919L7.28385 9.47919C8.46321 9.47919 9.41927 8.52313 9.41927 7.34377L9.41927 5.78127Z" fill="#E4E4E4"/>+<path d="M7.44019 6.56253C7.44019 7.0803 7.02045 7.50003 6.50269 7.50003C5.98492 7.50003 5.56519 7.0803 5.56519 6.56253C5.56519 6.04476 5.98492 5.62503 6.50269 5.62503C7.02045 5.62503 7.44019 6.04476 7.44019 6.56253Z" fill="#E4E4E4"/>+<path d="M7.44019 13.4375C7.44019 13.9553 7.02045 14.375 6.50269 14.375C5.98492 14.375 5.56519 13.9553 5.56519 13.4375C5.56519 12.9198 5.98492 12.5 6.50269 12.5C7.02045 12.5 7.44019 12.9198 7.44019 13.4375Z" fill="#E4E4E4"/>+<path d="M14.4349 6.56253C14.4349 7.0803 14.0152 7.50003 13.4974 7.50003C12.9797 7.50003 12.5599 7.0803 12.5599 6.56253C12.5599 6.04476 12.9797 5.62503 13.4974 5.62503C14.0152 5.62503 14.4349 6.04476 14.4349 6.56253Z" fill="#E4E4E4"/>+<path d="M15.2683 7.34377C15.2683 7.8903 14.8253 8.33335 14.2787 8.33335L12.7162 8.33335C12.1697 8.33335 11.7266 7.8903 11.7266 7.34377L11.7266 5.78127C11.7266 5.23474 12.1697 4.79169 12.7162 4.79169L14.2787 4.79169C14.8253 4.79169 15.2683 5.23474 15.2683 5.78127L15.2683 7.34377ZM16.4141 5.78127C16.4141 4.60191 15.4581 3.64585 14.2787 3.64585L12.7162 3.64585C11.5369 3.64585 10.5808 4.60191 10.5808 5.78127L10.5808 7.34377C10.5808 8.52313 11.5369 9.47919 12.7162 9.47919L14.2787 9.47919C15.4581 9.47919 16.4141 8.52313 16.4141 7.34377L16.4141 5.78127Z" fill="#E4E4E4"/>+<path d="M12.2656 11.3281C12.2656 10.8104 11.8459 10.3906 11.3281 10.3906C10.8104 10.3906 10.3906 10.8104 10.3906 11.3281C10.3906 11.8459 10.8104 12.2656 11.3281 12.2656C11.8459 12.2656 12.2656 11.8459 12.2656 11.3281Z" fill="#E4E4E4"/>+<path d="M14.1406 13.2031C14.1406 12.6854 13.7209 12.2656 13.2031 12.2656C12.6854 12.2656 12.2656 12.6854 12.2656 13.2031C12.2656 13.7209 12.6854 14.1406 13.2031 14.1406C13.7209 14.1406 14.1406 13.7209 14.1406 13.2031Z" fill="#E4E4E4"/>+<path d="M16.0156 15.0781C16.0156 14.5604 15.5959 14.1406 15.0781 14.1406C14.5604 14.1406 14.1406 14.5604 14.1406 15.0781C14.1406 15.5959 14.5604 16.0156 15.0781 16.0156C15.5959 16.0156 16.0156 15.5959 16.0156 15.0781Z" fill="#E4E4E4"/>+<path d="M16.0156 11.3281C16.0156 10.8104 15.5959 10.3906 15.0781 10.3906C14.5604 10.3906 14.1406 10.8104 14.1406 11.3281C14.1406 11.8459 14.5604 12.2656 15.0781 12.2656C15.5959 12.2656 16.0156 11.8459 16.0156 11.3281Z" fill="#E4E4E4"/>+<path d="M12.2656 15.0781C12.2656 14.5604 11.8459 14.1406 11.3281 14.1406C10.8104 14.1406 10.3906 14.5604 10.3906 15.0781C10.3906 15.5959 10.8104 16.0156 11.3281 16.0156C11.8459 16.0156 12.2656 15.5959 12.2656 15.0781Z" fill="#E4E4E4"/>+ </g>++ <!-- Frame 2 -->+ <g class="frame2">+<path d="M11.7152 5.77662C11.7152 5.23009 12.1583 4.78704 12.7048 4.78704L14.2673 4.78704C14.8138 4.78704 15.2569 5.23009 15.2569 5.77662L15.2569 7.33912C15.2569 7.88565 14.8138 8.3287 14.2673 8.3287L12.7048 8.32871C12.1583 8.32871 11.7152 7.88565 11.7152 7.33912L11.7152 5.77662ZM10.5694 7.33912C10.5694 8.51848 11.5254 9.47454 12.7048 9.47454L14.2673 9.47454C15.4467 9.47454 16.4027 8.51848 16.4027 7.33912L16.4027 5.77662C16.4027 4.59726 15.4467 3.6412 14.2673 3.64121L12.7048 3.64121C11.5254 3.64121 10.5694 4.59726 10.5694 5.77662L10.5694 7.33912Z" fill="#E4E4E4"/>+<path d="M4.7439 5.77662C4.7439 5.23009 5.18695 4.78704 5.73348 4.78704L7.29598 4.78704C7.84251 4.78704 8.28556 5.23009 8.28556 5.77662L8.28556 7.33912C8.28556 7.88565 7.84251 8.3287 7.29598 8.3287L5.73348 8.32871C5.18695 8.32871 4.7439 7.88565 4.7439 7.33912L4.7439 5.77662ZM3.59806 7.33912C3.59806 8.51848 4.55412 9.47454 5.73348 9.47454L7.29598 9.47454C8.47534 9.47454 9.4314 8.51848 9.4314 7.33912L9.4314 5.77662C9.4314 4.59726 8.47534 3.6412 7.29598 3.64121L5.73348 3.64121C4.55412 3.64121 3.59806 4.59726 3.59806 5.77662L3.59806 7.33912Z" fill="#E4E4E4"/>+<path d="M11.6455 12.6409C11.6455 12.0944 12.0886 11.6513 12.6351 11.6513L14.1976 11.6513C14.7441 11.6513 15.1872 12.0944 15.1872 12.6409L15.1872 14.2034C15.1872 14.7499 14.7441 15.193 14.1976 15.193L12.6351 15.193C12.0886 15.193 11.6455 14.7499 11.6455 14.2034L11.6455 12.6409ZM10.4997 14.2034C10.4997 15.3828 11.4557 16.3388 12.6351 16.3388L14.1976 16.3388C15.3769 16.3388 16.333 15.3828 16.333 14.2034L16.333 12.6409C16.333 11.4616 15.3769 10.5055 14.1976 10.5055L12.6351 10.5055C11.4557 10.5055 10.4997 11.4616 10.4997 12.6409L10.4997 14.2034Z" fill="#E4E4E4"/>+<path d="M12.5485 6.55786C12.5485 6.04009 12.9682 5.62036 13.486 5.62036C14.0037 5.62036 14.4235 6.04009 14.4235 6.55786C14.4235 7.07563 14.0037 7.49536 13.486 7.49536C12.9682 7.49536 12.5485 7.07563 12.5485 6.55786Z" fill="#E4E4E4"/>+<path d="M5.57715 6.55786C5.57715 6.04009 5.99688 5.62036 6.51465 5.62036C7.03242 5.62036 7.45215 6.04009 7.45215 6.55786C7.45215 7.07563 7.03242 7.49536 6.51465 7.49536C5.99688 7.49536 5.57715 7.07563 5.57715 6.55786Z" fill="#E4E4E4"/>+<path d="M12.4788 13.4221C12.4788 12.9044 12.8985 12.4846 13.4163 12.4846C13.934 12.4846 14.3538 12.9044 14.3538 13.4221C14.3538 13.9399 13.934 14.3596 13.4163 14.3596C12.8985 14.3596 12.4788 13.9399 12.4788 13.4221Z" fill="#E4E4E4"/>+<path d="M7.45215 11.5471C7.45215 11.0294 7.87188 10.6096 8.38965 10.6096C8.90742 10.6096 9.32715 11.0294 9.32715 11.5471C9.32715 12.0649 8.90742 12.4846 8.38965 12.4846C7.87188 12.4846 7.45215 12.0649 7.45215 11.5471Z" fill="#E4E4E4"/>+<path d="M5.57715 13.4221C5.57715 12.9044 5.99688 12.4846 6.51465 12.4846C7.03242 12.4846 7.45215 12.9044 7.45215 13.4221C7.45215 13.9399 7.03242 14.3596 6.51465 14.3596C5.99688 14.3596 5.57715 13.9399 5.57715 13.4221Z" fill="#E4E4E4"/>+<path d="M3.70215 15.2971C3.70215 14.7794 4.12188 14.3596 4.63965 14.3596C5.15742 14.3596 5.57715 14.7794 5.57715 15.2971C5.57715 15.8149 5.15742 16.2346 4.63965 16.2346C4.12188 16.2346 3.70215 15.8149 3.70215 15.2971Z" fill="#E4E4E4"/>+<path d="M3.70215 11.5471C3.70215 11.0294 4.12188 10.6096 4.63965 10.6096C5.15742 10.6096 5.57715 11.0294 5.57715 11.5471C5.57715 12.0649 5.15742 12.4846 4.63965 12.4846C4.12188 12.4846 3.70215 12.0649 3.70215 11.5471Z" fill="#E4E4E4"/>+<path d="M7.45215 15.2971C7.45215 14.7794 7.87188 14.3596 8.38965 14.3596C8.90742 14.3596 9.32715 14.7794 9.32715 15.2971C9.32715 15.8149 8.90742 16.2346 8.38965 16.2346C7.87188 16.2346 7.45215 15.8149 7.45215 15.2971Z" fill="#E4E4E4"/>+ </g>+ <!-- Frame 3 -->+ <g class="frame3">+<path d="M11.6371 14.2188C11.6371 14.7653 12.0801 15.2084 12.6267 15.2084H14.1892C14.7357 15.2084 15.1788 14.7653 15.1788 14.2188V12.6563C15.1788 12.1097 14.7357 11.6667 14.1892 11.6667H12.6267C12.0801 11.6667 11.6371 12.1097 11.6371 12.6563V14.2188ZM10.4913 12.6563C10.4913 11.4769 11.4473 10.5209 12.6267 10.5209H14.1892C15.3685 10.5209 16.3246 11.4769 16.3246 12.6563V14.2188C16.3246 15.3981 15.3685 16.3542 14.1892 16.3542H12.6267C11.4473 16.3542 10.4913 15.3981 10.4913 14.2188V12.6563Z" fill="#E4E4E4"/>+<path d="M4.73181 14.2188C4.73181 14.7653 5.17486 15.2084 5.72139 15.2084H7.28389C7.83043 15.2084 8.27348 14.7653 8.27348 14.2188V12.6563C8.27348 12.1097 7.83043 11.6667 7.28389 11.6667H5.72139C5.17486 11.6667 4.73181 12.1097 4.73181 12.6563V14.2188ZM3.58598 12.6563C3.58598 11.4769 4.54204 10.5209 5.72139 10.5209H7.28389C8.46325 10.5209 9.41931 11.4769 9.41931 12.6563V14.2188C9.41931 15.3981 8.46325 16.3542 7.28389 16.3542H5.72139C4.54204 16.3542 3.58598 15.3981 3.58598 14.2188V12.6563Z" fill="#E4E4E4"/>+<path d="M11.7267 7.34377C11.7267 7.8903 12.1697 8.33335 12.7163 8.33335H14.2788C14.8253 8.33335 15.2684 7.8903 15.2684 7.34377V5.78127C15.2684 5.23474 14.8253 4.79169 14.2788 4.79169H12.7163C12.1697 4.79169 11.7267 5.23474 11.7267 5.78127V7.34377ZM10.5809 5.78127C10.5809 4.60191 11.5369 3.64585 12.7163 3.64585H14.2788C15.4581 3.64585 16.4142 4.60191 16.4142 5.78127V7.34377C16.4142 8.52313 15.4581 9.47919 14.2788 9.47919H12.7163C11.5369 9.47919 10.5809 8.52313 10.5809 7.34377V5.78127Z" fill="#E4E4E4"/>+<path d="M12.4703 13.4375C12.4703 13.9553 12.8901 14.375 13.4078 14.375C13.9256 14.375 14.3453 13.9553 14.3453 13.4375C14.3453 12.9198 13.9256 12.5 13.4078 12.5C12.8901 12.5 12.4703 12.9198 12.4703 13.4375Z" fill="#E4E4E4"/>+<path d="M5.56519 13.4375C5.56519 13.9553 5.98492 14.375 6.50269 14.375C7.02045 14.375 7.44019 13.9553 7.44019 13.4375C7.44019 12.9198 7.02045 12.5 6.50269 12.5C5.98492 12.5 5.56519 12.9198 5.56519 13.4375Z" fill="#E4E4E4"/>+<path d="M7.44019 8.43753C7.44019 8.9553 7.85992 9.37503 8.37769 9.37503C8.89545 9.37503 9.31519 8.9553 9.31519 8.43753C9.31519 7.91976 8.89545 7.50003 8.37769 7.50003C7.85992 7.50003 7.44019 7.91976 7.44019 8.43753Z" fill="#E4E4E4"/>+<path d="M5.56519 6.56253C5.56519 7.0803 5.98492 7.50003 6.50269 7.50003C7.02045 7.50003 7.44019 7.0803 7.44019 6.56253C7.44019 6.04476 7.02045 5.62503 6.50269 5.62503C5.98492 5.62503 5.56519 6.04476 5.56519 6.56253Z" fill="#E4E4E4"/>+<path d="M3.69019 4.68753C3.69019 5.2053 4.10992 5.62503 4.62769 5.62503C5.14545 5.62503 5.56519 5.2053 5.56519 4.68753C5.56519 4.16976 5.14545 3.75003 4.62769 3.75003C4.10992 3.75003 3.69019 4.16976 3.69019 4.68753Z" fill="#E4E4E4"/>+<path d="M3.69019 8.43753C3.69019 8.9553 4.10992 9.37503 4.62769 9.37503C5.14545 9.37503 5.56519 8.9553 5.56519 8.43753C5.56519 7.91976 5.14545 7.50003 4.62769 7.50003C4.10992 7.50003 3.69019 7.91976 3.69019 8.43753Z" fill="#E4E4E4"/>+<path d="M7.44019 4.68753C7.44019 5.2053 7.85992 5.62503 8.37769 5.62503C8.89545 5.62503 9.31519 5.2053 9.31519 4.68753C9.31519 4.16976 8.89545 3.75003 8.37769 3.75003C7.85992 3.75003 7.44019 4.16976 7.44019 4.68753Z" fill="#E4E4E4"/>+ </g>+ <!-- Frame 4 -->+ <g class="frame4">+<path d="M8.27344 14.2188C8.27344 14.7653 7.83039 15.2084 7.28385 15.2084L5.72135 15.2084C5.17482 15.2084 4.73177 14.7653 4.73177 14.2188L4.73177 12.6563C4.73177 12.1097 5.17482 11.6667 5.72135 11.6667L7.28385 11.6667C7.83039 11.6667 8.27344 12.1097 8.27344 12.6563L8.27344 14.2188ZM9.41927 12.6563C9.41927 11.4769 8.46321 10.5209 7.28385 10.5209L5.72135 10.5209C4.542 10.5209 3.58594 11.4769 3.58594 12.6563L3.58594 14.2188C3.58594 15.3981 4.542 16.3542 5.72135 16.3542L7.28385 16.3542C8.46321 16.3542 9.41927 15.3981 9.41927 14.2188L9.41927 12.6563Z" fill="#E4E4E4"/>+<path d="M15.1484 14.2188C15.1484 14.7653 14.7054 15.2084 14.1589 15.2084L12.5964 15.2084C12.0498 15.2084 11.6068 14.7653 11.6068 14.2188L11.6068 12.6563C11.6068 12.1097 12.0498 11.6667 12.5964 11.6667L14.1589 11.6667C14.7054 11.6667 15.1484 12.1097 15.1484 12.6563L15.1484 14.2188ZM16.2943 12.6563C16.2943 11.4769 15.3382 10.5209 14.1589 10.5209L12.5964 10.5209C11.417 10.5209 10.4609 11.4769 10.4609 12.6563L10.4609 14.2188C10.4609 15.3981 11.417 16.3542 12.5964 16.3542L14.1589 16.3542C15.3382 16.3542 16.2943 15.3981 16.2943 14.2188L16.2943 12.6563Z" fill="#E4E4E4"/>+<path d="M8.27344 7.34377C8.27344 7.8903 7.83039 8.33335 7.28385 8.33335L5.72135 8.33335C5.17482 8.33335 4.73177 7.8903 4.73177 7.34377L4.73177 5.78127C4.73177 5.23474 5.17482 4.79169 5.72135 4.79169L7.28385 4.79169C7.83039 4.79169 8.27344 5.23474 8.27344 5.78127L8.27344 7.34377ZM9.41927 5.78127C9.41927 4.60191 8.46321 3.64585 7.28385 3.64585L5.72135 3.64585C4.542 3.64585 3.58594 4.60191 3.58594 5.78127L3.58594 7.34377C3.58594 8.52313 4.542 9.47919 5.72135 9.47919L7.28385 9.47919C8.46321 9.47919 9.41927 8.52313 9.41927 7.34377L9.41927 5.78127Z" fill="#E4E4E4"/>+<path d="M14.3152 13.4375C14.3152 13.9553 13.8955 14.375 13.3777 14.375C12.8599 14.375 12.4402 13.9553 12.4402 13.4375C12.4402 12.9198 12.8599 12.5 13.3777 12.5C13.8955 12.5 14.3152 12.9198 14.3152 13.4375Z" fill="#E4E4E4"/>+<path d="M7.44019 6.56253C7.44019 7.0803 7.02045 7.50003 6.50269 7.50003C5.98492 7.50003 5.56519 7.0803 5.56519 6.56253C5.56519 6.04476 5.98492 5.62503 6.50269 5.62503C7.02045 5.62503 7.44019 6.04476 7.44019 6.56253Z" fill="#E4E4E4"/>+<path d="M15.2683 7.34377C15.2683 7.8903 14.8253 8.33335 14.2787 8.33335L12.7162 8.33335C12.1697 8.33335 11.7266 7.8903 11.7266 7.34377L11.7266 5.78127C11.7266 5.23474 12.1697 4.79169 12.7162 4.79169L14.2787 4.79169C14.8253 4.79169 15.2683 5.23474 15.2683 5.78127L15.2683 7.34377ZM16.4141 5.78127C16.4141 4.60191 15.4581 3.64585 14.2787 3.64585L12.7162 3.64585C11.5369 3.64585 10.5808 4.60191 10.5808 5.78127L10.5808 7.34377C10.5808 8.52313 11.5369 9.47919 12.7162 9.47919L14.2787 9.47919C15.4581 9.47919 16.4141 8.52313 16.4141 7.34377L16.4141 5.78127Z" fill="#E4E4E4"/>+ </g>+ <!-- Frame 5 -->+ <g class="frame5">+<path d="M10 10.9375C10.5178 10.9375 10.9375 10.5178 10.9375 10C10.9375 9.48223 10.5178 9.0625 10 9.0625C9.48223 9.0625 9.0625 9.48223 9.0625 10C9.0625 10.5178 9.48223 10.9375 10 10.9375Z" fill="#E4E4E4"/>+<path d="M13.4974 7.56253C14.0152 7.56253 14.4349 7.1428 14.4349 6.62503C14.4349 6.10726 14.0152 5.68753 13.4974 5.68753C12.9797 5.68753 12.5599 6.10726 12.5599 6.62503C12.5599 7.1428 12.9797 7.56253 13.4974 7.56253Z" fill="#E4E4E4"/>+<path d="M6.50269 14.3555C7.02045 14.3555 7.44019 13.9357 7.44019 13.418C7.44019 12.9002 7.02045 12.4805 6.50269 12.4805C5.98492 12.4805 5.56519 12.9002 5.56519 13.418C5.56519 13.9357 5.98492 14.3555 6.50269 14.3555Z" fill="#E4E4E4"/>+<path d="M13.2031 14.795C14.0842 14.795 14.7985 14.0808 14.7985 13.1997C14.7985 12.3186 14.0842 11.6044 13.2031 11.6044C12.322 11.6044 11.6078 12.3186 11.6078 13.1997C11.6078 14.0808 12.322 14.795 13.2031 14.795Z" fill="#E4E4E4"/>+<path d="M6.50256 8.75052C7.67644 8.75052 8.62805 7.79891 8.62805 6.62503C8.62805 5.45116 7.67644 4.49954 6.50256 4.49954C5.32869 4.49954 4.37708 5.45116 4.37708 6.62503C4.37708 7.79891 5.32869 8.75052 6.50256 8.75052Z" fill="#E4E4E4"/>+ </g>++</svg>diff --git a/freemocap-ui/src/assets/icons/camera_icon.svg b/freemocap-ui/src/assets/icons/camera_icon.svgnew file mode 100644index 00000000..5d951184--- /dev/null+++ b/freemocap-ui/src/assets/icons/camera_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M6.87516 10.4936C6.87516 9.66485 7.2044 8.86999 7.79045 8.28394C8.37651 7.69789 9.17136 7.36865 10.0002 7.36865C10.829 7.36865 11.6238 7.69789 12.2099 8.28394C12.7959 8.86999 13.1252 9.66485 13.1252 10.4936C13.1252 11.3224 12.7959 12.1173 12.2099 12.7034C11.6238 13.2894 10.829 13.6186 10.0002 13.6186C9.17136 13.6186 8.37651 13.2894 7.79045 12.7034C7.2044 12.1173 6.87516 11.3224 6.87516 10.4936ZM10.0002 8.61865C9.50288 8.61865 9.02597 8.81619 8.67434 9.16782C8.32271 9.51945 8.12516 9.99637 8.12516 10.4936C8.12516 10.9909 8.32271 11.4678 8.67434 11.8195C9.02597 12.1711 9.50288 12.3686 10.0002 12.3686C10.4974 12.3686 10.9744 12.1711 11.326 11.8195C11.6776 11.4678 11.8752 10.9909 11.8752 10.4936C11.8752 9.99637 11.6776 9.51945 11.326 9.16782C10.9744 8.81619 10.4974 8.61865 10.0002 8.61865Z" fill="#9B9B9B"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M8.84683 4.45198C8.63972 4.45176 8.4346 4.49239 8.24321 4.57155C8.05182 4.65071 7.87792 4.76684 7.73147 4.91329C7.58502 5.05974 7.46889 5.23363 7.38973 5.42502C7.31058 5.61641 7.26994 5.82153 7.27016 6.02865C7.27002 6.2963 7.16926 6.55412 6.98788 6.75094C6.80649 6.94775 6.55775 7.06919 6.291 7.09115L4.43266 7.24115C4.25495 7.25546 4.08687 7.32783 3.95435 7.4471C3.82183 7.56637 3.73222 7.72592 3.69933 7.90115C3.32535 9.87605 3.29771 11.9009 3.61766 13.8853L3.6985 14.3886C3.77516 14.8636 4.166 15.2261 4.646 15.2653L6.26516 15.397C8.75108 15.5988 11.2493 15.5988 13.7352 15.397L15.3535 15.2653C15.5869 15.2464 15.8072 15.1498 15.9791 14.9908C16.1511 14.8319 16.2647 14.6198 16.3018 14.3886L16.3827 13.8853C16.7023 11.9009 16.6744 9.876 16.3002 7.90115C16.2671 7.72607 16.1774 7.56671 16.0449 7.4476C15.9124 7.3285 15.7444 7.25625 15.5668 7.24198L13.7093 7.09115C13.4426 7.06919 13.1938 6.94775 13.0125 6.75094C12.8311 6.55412 12.7303 6.2963 12.7302 6.02865C12.7304 5.82153 12.6898 5.61641 12.6106 5.42502C12.5314 5.23363 12.4153 5.05974 12.2689 4.91329C12.1224 4.76684 11.9485 4.65071 11.7571 4.57155C11.5657 4.49239 11.3606 4.45176 11.1535 4.45198H8.84683ZM6.02516 5.85865C6.06868 5.13975 6.38488 4.46456 6.90925 3.97085C7.43362 3.47715 8.12662 3.20215 8.84683 3.20198H11.1535C12.6577 3.20198 13.8868 4.37698 13.9752 5.85865L15.6685 5.99615C16.119 6.03251 16.545 6.2159 16.8811 6.51809C17.2172 6.82028 17.4446 7.22454 17.5285 7.66865C17.9293 9.78531 17.9593 11.9561 17.6168 14.0836L17.536 14.5878C17.4543 15.095 17.2049 15.5601 16.8277 15.9088C16.4505 16.2575 15.9672 16.4696 15.4552 16.5111L13.8368 16.6428C11.2832 16.8497 8.71709 16.8497 6.1635 16.6428L4.54516 16.5111C4.03315 16.4696 3.54987 16.2575 3.17263 15.9088C2.79539 15.5601 2.54599 15.095 2.46433 14.5878L2.3835 14.0836C2.04081 11.9564 2.0707 9.78569 2.47183 7.66865C2.55581 7.2246 2.78331 6.82042 3.11935 6.51825C3.4554 6.21608 3.88138 6.03265 4.33183 5.99615L6.02516 5.85865Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/cancelcalibrate_icon.svg b/freemocap-ui/src/assets/icons/cancelcalibrate_icon.svgnew file mode 100644index 00000000..84394eb5--- /dev/null+++ b/freemocap-ui/src/assets/icons/cancelcalibrate_icon.svg@@ -0,0 +1,10 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M6.97949 11.7119H5.5166C4.92307 11.7119 4.44146 12.1926 4.44141 12.7861V14.4834C4.44148 15.0769 4.92309 15.5576 5.5166 15.5576H7.0498C7.19221 16.0346 7.50861 16.4349 7.9248 16.6895C7.7006 16.7617 7.46208 16.8027 7.21387 16.8027H5.5166C4.23577 16.8027 3.19734 15.7642 3.19727 14.4834V12.7861C3.19732 11.5053 4.23576 10.4668 5.5166 10.4668H6.98535L6.97949 11.7119Z" fill="#D7184B"/>+<path d="M6.36523 12.6162C6.59404 12.6162 6.80459 12.6929 6.97461 12.8203L6.96777 14.4541C6.79893 14.5785 6.59102 14.6533 6.36523 14.6533C5.80291 14.6533 5.34669 14.1971 5.34668 13.6348C5.34668 13.0724 5.80291 12.6162 6.36523 12.6162Z" fill="#D7184B"/>+<path d="M7.21387 3C8.49469 3.00009 9.5332 4.03849 9.5332 5.31934V7.01074L9 7.00879C8.74641 7.0077 8.5039 7.05453 8.28027 7.13965C8.2849 7.09923 8.28807 7.05826 8.28809 7.0166V5.31934C8.28809 4.7258 7.80738 4.24423 7.21387 4.24414H5.5166C4.92304 4.24418 4.44141 4.72577 4.44141 5.31934V7.0166C4.44156 7.61004 4.92314 8.09078 5.5166 8.09082H7.21387L7.21484 8.08984C7.07349 8.36252 6.99262 8.67174 6.99121 9L6.99023 9.33594H5.5166C4.23582 9.3359 3.19742 8.29735 3.19727 7.0166V5.31934C3.19727 4.03846 4.23573 3.00004 5.5166 3H7.21387Z" fill="#D7184B"/>+<path d="M14.6807 3C15.9616 3 17 4.03843 17 5.31934V7.0166C17 7.38841 16.9095 7.73834 16.7539 8.0498C16.5286 7.65261 16.1721 7.34102 15.7422 7.17285C15.7497 7.12175 15.7558 7.06977 15.7559 7.0166V5.31934C15.7559 4.72575 15.2743 4.24414 14.6807 4.24414H12.9834C12.3899 4.24427 11.9092 4.72582 11.9092 5.31934V7.02051L10.6641 7.01562V5.31934C10.6641 4.03851 11.7026 3.00013 12.9834 3H14.6807Z" fill="#D7184B"/>+<path d="M6.36523 5.14941C6.92758 5.14941 7.38379 5.60562 7.38379 6.16797C7.3837 6.73024 6.92753 7.18555 6.36523 7.18555C5.80296 7.18552 5.34677 6.73022 5.34668 6.16797C5.34668 5.60564 5.80291 5.14944 6.36523 5.14941Z" fill="#D7184B"/>+<path d="M13.832 5.14941C14.3944 5.14941 14.8506 5.60562 14.8506 6.16797C14.8505 6.53284 14.6576 6.85151 14.3691 7.03125L13.2871 7.02637C13.0032 6.84571 12.8145 6.52941 12.8145 6.16797C12.8145 5.60569 13.2698 5.14953 13.832 5.14941Z" fill="#D7184B"/>+<path d="M15.3333 9.22223L9.22217 15.3333" stroke="#D7184B" stroke-width="1.47778"/>+<path d="M15.3334 15.3333L9.22226 9.22223" stroke="#D7184B" stroke-width="1.47778"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/charuco_active_icon.svg b/freemocap-ui/src/assets/icons/charuco_active_icon.svgnew file mode 100644index 00000000..71262aae--- /dev/null+++ b/freemocap-ui/src/assets/icons/charuco_active_icon.svg@@ -0,0 +1,13 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.09888 5.54687C8.09888 5.00034 7.65583 4.55729 7.10929 4.55729H5.54679C5.00026 4.55729 4.55721 5.00034 4.55721 5.54687V7.10937C4.55721 7.6559 5.00026 8.09895 5.54679 8.09895H7.10929C7.65583 8.09895 8.09888 7.6559 8.09888 7.10937V5.54687ZM9.24471 7.10937C9.24471 8.28873 8.28865 9.24479 7.10929 9.24479H5.54679C4.36744 9.24479 3.41138 8.28873 3.41138 7.10937V5.54687C3.41138 4.36751 4.36744 3.41145 5.54679 3.41145H7.10929C8.28865 3.41145 9.24471 4.36751 9.24471 5.54687V7.10937Z" fill="#0898FF"/>+<path d="M14.9739 5.54687C14.9739 5.00034 14.5308 4.55729 13.9843 4.55729H12.4218C11.8753 4.55729 11.4322 5.00034 11.4322 5.54687V7.10937C11.4322 7.6559 11.8753 8.09895 12.4218 8.09895H13.9843C14.5308 8.09895 14.9739 7.6559 14.9739 7.10937V5.54687ZM16.1197 7.10937C16.1197 8.28873 15.1637 9.24479 13.9843 9.24479H12.4218C11.2424 9.24479 10.2864 8.28873 10.2864 7.10937V5.54687C10.2864 4.36751 11.2424 3.41145 12.4218 3.41145H13.9843C15.1637 3.41145 16.1197 4.36751 16.1197 5.54687V7.10937Z" fill="#0898FF"/>+<path d="M8.09888 12.4219C8.09888 11.8753 7.65583 11.4323 7.10929 11.4323H5.54679C5.00026 11.4323 4.55721 11.8753 4.55721 12.4219V13.9844C4.55721 14.5309 5.00026 14.974 5.54679 14.974H7.10929C7.65583 14.974 8.09888 14.5309 8.09888 13.9844V12.4219ZM9.24471 13.9844C9.24471 15.1637 8.28865 16.1198 7.10929 16.1198H5.54679C4.36744 16.1198 3.41138 15.1637 3.41138 13.9844V12.4219C3.41138 11.2425 4.36744 10.2865 5.54679 10.2865H7.10929C8.28865 10.2865 9.24471 11.2425 9.24471 12.4219V13.9844Z" fill="#0898FF"/>+<path d="M7.26562 6.32812C7.26562 5.81036 6.84589 5.39062 6.32812 5.39062C5.81036 5.39062 5.39062 5.81036 5.39062 6.32812C5.39062 6.84589 5.81036 7.26562 6.32812 7.26562C6.84589 7.26562 7.26562 6.84589 7.26562 6.32812Z" fill="#0898FF"/>+<path d="M14.1406 6.32812C14.1406 5.81036 13.7209 5.39062 13.2031 5.39062C12.6854 5.39062 12.2656 5.81036 12.2656 6.32812C12.2656 6.84589 12.6854 7.26562 13.2031 7.26562C13.7209 7.26562 14.1406 6.84589 14.1406 6.32812Z" fill="#0898FF"/>+<path d="M7.26562 13.2031C7.26562 12.6854 6.84589 12.2656 6.32812 12.2656C5.81036 12.2656 5.39062 12.6854 5.39062 13.2031C5.39062 13.7209 5.81036 14.1406 6.32812 14.1406C6.84589 14.1406 7.26562 13.7209 7.26562 13.2031Z" fill="#0898FF"/>+<path d="M12.2656 11.3281C12.2656 10.8104 11.8459 10.3906 11.3281 10.3906C10.8104 10.3906 10.3906 10.8104 10.3906 11.3281C10.3906 11.8459 10.8104 12.2656 11.3281 12.2656C11.8459 12.2656 12.2656 11.8459 12.2656 11.3281Z" fill="#0898FF"/>+<path d="M14.1406 13.2031C14.1406 12.6854 13.7209 12.2656 13.2031 12.2656C12.6854 12.2656 12.2656 12.6854 12.2656 13.2031C12.2656 13.7209 12.6854 14.1406 13.2031 14.1406C13.7209 14.1406 14.1406 13.7209 14.1406 13.2031Z" fill="#0898FF"/>+<path d="M16.0156 15.0781C16.0156 14.5604 15.5959 14.1406 15.0781 14.1406C14.5604 14.1406 14.1406 14.5604 14.1406 15.0781C14.1406 15.5959 14.5604 16.0156 15.0781 16.0156C15.5959 16.0156 16.0156 15.5959 16.0156 15.0781Z" fill="#0898FF"/>+<path d="M16.0156 11.3281C16.0156 10.8104 15.5959 10.3906 15.0781 10.3906C14.5604 10.3906 14.1406 10.8104 14.1406 11.3281C14.1406 11.8459 14.5604 12.2656 15.0781 12.2656C15.5959 12.2656 16.0156 11.8459 16.0156 11.3281Z" fill="#0898FF"/>+<path d="M12.2656 15.0781C12.2656 14.5604 11.8459 14.1406 11.3281 14.1406C10.8104 14.1406 10.3906 14.5604 10.3906 15.0781C10.3906 15.5959 10.8104 16.0156 11.3281 16.0156C11.8459 16.0156 12.2656 15.5959 12.2656 15.0781Z" fill="#0898FF"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/charuco_icon.svg b/freemocap-ui/src/assets/icons/charuco_icon.svgnew file mode 100644index 00000000..90b1cb4d--- /dev/null+++ b/freemocap-ui/src/assets/icons/charuco_icon.svg@@ -0,0 +1,13 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.09888 5.54687C8.09888 5.00034 7.65583 4.55729 7.10929 4.55729H5.54679C5.00026 4.55729 4.55721 5.00034 4.55721 5.54687V7.10937C4.55721 7.6559 5.00026 8.09895 5.54679 8.09895H7.10929C7.65583 8.09895 8.09888 7.6559 8.09888 7.10937V5.54687ZM9.24471 7.10937C9.24471 8.28873 8.28865 9.24479 7.10929 9.24479H5.54679C4.36744 9.24479 3.41138 8.28873 3.41138 7.10937V5.54687C3.41138 4.36751 4.36744 3.41145 5.54679 3.41145H7.10929C8.28865 3.41145 9.24471 4.36751 9.24471 5.54687V7.10937Z" fill="#9B9B9B"/>+<path d="M14.9739 5.54687C14.9739 5.00034 14.5308 4.55729 13.9843 4.55729H12.4218C11.8753 4.55729 11.4322 5.00034 11.4322 5.54687V7.10937C11.4322 7.6559 11.8753 8.09895 12.4218 8.09895H13.9843C14.5308 8.09895 14.9739 7.6559 14.9739 7.10937V5.54687ZM16.1197 7.10937C16.1197 8.28873 15.1637 9.24479 13.9843 9.24479H12.4218C11.2424 9.24479 10.2864 8.28873 10.2864 7.10937V5.54687C10.2864 4.36751 11.2424 3.41145 12.4218 3.41145H13.9843C15.1637 3.41145 16.1197 4.36751 16.1197 5.54687V7.10937Z" fill="#9B9B9B"/>+<path d="M8.09888 12.4219C8.09888 11.8753 7.65583 11.4323 7.10929 11.4323H5.54679C5.00026 11.4323 4.55721 11.8753 4.55721 12.4219V13.9844C4.55721 14.5309 5.00026 14.974 5.54679 14.974H7.10929C7.65583 14.974 8.09888 14.5309 8.09888 13.9844V12.4219ZM9.24471 13.9844C9.24471 15.1637 8.28865 16.1198 7.10929 16.1198H5.54679C4.36744 16.1198 3.41138 15.1637 3.41138 13.9844V12.4219C3.41138 11.2425 4.36744 10.2865 5.54679 10.2865H7.10929C8.28865 10.2865 9.24471 11.2425 9.24471 12.4219V13.9844Z" fill="#9B9B9B"/>+<path d="M7.26562 6.32812C7.26562 5.81036 6.84589 5.39062 6.32812 5.39062C5.81036 5.39062 5.39062 5.81036 5.39062 6.32812C5.39062 6.84589 5.81036 7.26562 6.32812 7.26562C6.84589 7.26562 7.26562 6.84589 7.26562 6.32812Z" fill="#9B9B9B"/>+<path d="M14.1406 6.32812C14.1406 5.81036 13.7209 5.39062 13.2031 5.39062C12.6854 5.39062 12.2656 5.81036 12.2656 6.32812C12.2656 6.84589 12.6854 7.26562 13.2031 7.26562C13.7209 7.26562 14.1406 6.84589 14.1406 6.32812Z" fill="#9B9B9B"/>+<path d="M7.26562 13.2031C7.26562 12.6854 6.84589 12.2656 6.32812 12.2656C5.81036 12.2656 5.39062 12.6854 5.39062 13.2031C5.39062 13.7209 5.81036 14.1406 6.32812 14.1406C6.84589 14.1406 7.26562 13.7209 7.26562 13.2031Z" fill="#9B9B9B"/>+<path d="M12.2656 11.3281C12.2656 10.8104 11.8459 10.3906 11.3281 10.3906C10.8104 10.3906 10.3906 10.8104 10.3906 11.3281C10.3906 11.8459 10.8104 12.2656 11.3281 12.2656C11.8459 12.2656 12.2656 11.8459 12.2656 11.3281Z" fill="#9B9B9B"/>+<path d="M14.1406 13.2031C14.1406 12.6854 13.7209 12.2656 13.2031 12.2656C12.6854 12.2656 12.2656 12.6854 12.2656 13.2031C12.2656 13.7209 12.6854 14.1406 13.2031 14.1406C13.7209 14.1406 14.1406 13.7209 14.1406 13.2031Z" fill="#9B9B9B"/>+<path d="M16.0156 15.0781C16.0156 14.5604 15.5959 14.1406 15.0781 14.1406C14.5604 14.1406 14.1406 14.5604 14.1406 15.0781C14.1406 15.5959 14.5604 16.0156 15.0781 16.0156C15.5959 16.0156 16.0156 15.5959 16.0156 15.0781Z" fill="#9B9B9B"/>+<path d="M16.0156 11.3281C16.0156 10.8104 15.5959 10.3906 15.0781 10.3906C14.5604 10.3906 14.1406 10.8104 14.1406 11.3281C14.1406 11.8459 14.5604 12.2656 15.0781 12.2656C15.5959 12.2656 16.0156 11.8459 16.0156 11.3281Z" fill="#9B9B9B"/>+<path d="M12.2656 15.0781C12.2656 14.5604 11.8459 14.1406 11.3281 14.1406C10.8104 14.1406 10.3906 14.5604 10.3906 15.0781C10.3906 15.5959 10.8104 16.0156 11.3281 16.0156C11.8459 16.0156 12.2656 15.5959 12.2656 15.0781Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/checkUpdate_icon.svg b/freemocap-ui/src/assets/icons/checkUpdate_icon.svgnew file mode 100644index 00000000..e4952479--- /dev/null+++ b/freemocap-ui/src/assets/icons/checkUpdate_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M7.33373 15.6129C7.08936 15.8502 6.69996 15.8481 6.45814 15.6082L6.25874 15.4104C6.01034 15.164 6.01262 14.7616 6.26379 14.5181L7.80831 13.0201H2.85901C2.51383 13.0201 2.23401 12.7403 2.23401 12.3951V12.1351C2.23401 11.7899 2.51383 11.5101 2.85901 11.5101H7.80831L6.2638 10.0122C6.01262 9.76857 6.01034 9.36623 6.25874 9.11981L6.45764 8.92249C6.69966 8.68239 7.08945 8.68053 7.33374 8.91831L10.316 11.821C10.5683 12.0666 10.5681 12.472 10.3155 12.7173L7.33373 15.6129ZM13.5425 11.0775C13.3005 11.3176 12.9107 11.3195 12.6664 11.0817L9.68413 8.17898C9.43183 7.93342 9.43206 7.52802 9.68464 7.28274L12.6664 4.38712C12.9108 4.14981 13.3002 4.15189 13.542 4.3918L13.7414 4.58961C13.9898 4.83604 13.9875 5.23837 13.7363 5.48197L12.1918 6.97988H17.1411C17.4863 6.97988 17.7661 7.2597 17.7661 7.60488V7.86494C17.7661 8.21012 17.4863 8.48994 17.1411 8.48994H12.1918L13.7363 9.98785C13.9875 10.2315 13.9898 10.6338 13.7414 10.8802L13.5425 11.0775Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/clear_icon.svg b/freemocap-ui/src/assets/icons/clear_icon.svgnew file mode 100644index 00000000..4fa97a68--- /dev/null+++ b/freemocap-ui/src/assets/icons/clear_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M15.1518 12.2896H11.7174V11.1448H15.1518V12.2896ZM17.4415 16.8689H14.007V15.724H17.4415V16.8689ZM16.2966 14.5792H12.8622V13.4344H16.2966V14.5792Z" fill="#9B9B9B"/>+<path d="M10.1219 12.1253C10.1173 11.6102 9.97976 11.1049 9.72259 10.6585C9.46543 10.2121 9.09735 9.83971 8.65401 9.5773L13.1731 1.74511L12.1167 1.13451L7.49021 9.14927C6.9224 9.02248 6.33188 9.04005 5.77262 9.20037C5.21336 9.3607 4.70321 9.65865 4.28882 10.067C2.00272 12.2719 2.1798 17.4266 2.18835 17.6452C2.19466 17.8029 2.26177 17.952 2.3756 18.0612C2.48943 18.1705 2.64115 18.2315 2.79895 18.2314H11.9525C12.0806 18.2314 12.2055 18.191 12.3095 18.1161C12.4135 18.0412 12.4912 17.9354 12.5318 17.8139C12.5723 17.6923 12.5735 17.561 12.5353 17.4387C12.4971 17.3164 12.4214 17.2092 12.3188 17.1323C10.1573 15.5105 10.1219 12.1583 10.1219 12.1253ZM7.02432 10.2917C7.51303 10.2971 7.98085 10.4907 8.33045 10.8322C8.68006 11.1737 8.88452 11.6369 8.90131 12.1253C8.90131 12.1485 8.90253 12.2524 8.91169 12.4117L5.30913 10.8095C5.54644 10.6138 5.82028 10.4673 6.11473 10.3784C6.40919 10.2895 6.71837 10.26 7.02432 10.2917ZM9.17364 17.0102C8.68557 16.5132 8.37447 15.8695 8.28826 15.1784H7.06706C7.11079 15.8282 7.31378 16.4573 7.65812 17.0102H6.30075C6.04954 16.2178 5.89676 15.3975 5.84585 14.5678H4.62465C4.66379 15.395 4.80008 16.2148 5.0307 17.0102H3.40345C3.42237 15.8891 3.58052 13.4125 4.50436 11.7877L9.10403 13.8332C9.32454 14.9809 9.79574 16.0657 10.484 17.0102H9.17364Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/close_icon.svg b/freemocap-ui/src/assets/icons/close_icon.svgnew file mode 100644index 00000000..fe1aa6a5--- /dev/null+++ b/freemocap-ui/src/assets/icons/close_icon.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7192 4.42052C10.9567 4.18304 11.3421 4.18304 11.5796 4.42052C11.817 4.65801 11.817 5.04338 11.5796 5.28084L9.14623 7.71332C8.98813 7.87162 8.9881 8.12858 9.14623 8.28686L11.5796 10.7193C11.817 10.9568 11.817 11.3422 11.5796 11.5797C11.3421 11.8171 10.9567 11.8171 10.7192 11.5797L8.28676 9.14633C8.12848 8.9882 7.87152 8.98823 7.71322 9.14633L5.28074 11.5797C5.04328 11.8171 4.65791 11.8171 4.42042 11.5797C4.18294 11.3422 4.18294 10.9568 4.42042 10.7193L6.8529 8.28686C7.01122 8.12854 7.0112 7.87165 6.8529 7.71332L4.42042 5.28084C4.18294 5.04336 4.18294 4.65801 4.42042 4.42052C4.65791 4.18304 5.04326 4.18304 5.28074 4.42052L7.71322 6.853C7.87156 7.0113 8.12844 7.01132 8.28676 6.853L10.7192 4.42052Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/close_icon_icon.svg b/freemocap-ui/src/assets/icons/close_icon_icon.svgnew file mode 100644index 00000000..79298364--- /dev/null+++ b/freemocap-ui/src/assets/icons/close_icon_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M13.399 5.52565C13.6959 5.2288 14.1776 5.2288 14.4744 5.52565C14.7712 5.82251 14.7712 6.30423 14.4744 6.60105L11.4328 9.64164C11.2351 9.83952 11.2351 10.1607 11.4328 10.3586L14.4744 13.3992C14.7712 13.696 14.7712 14.1777 14.4744 14.4746C14.1776 14.7714 13.6959 14.7713 13.399 14.4746L10.3584 11.4329C10.1606 11.2352 9.83937 11.2353 9.64149 11.4329L6.6009 14.4746C6.30407 14.7714 5.82236 14.7713 5.5255 14.4746C5.22864 14.1777 5.22864 13.696 5.5255 13.3992L8.56609 10.3586C8.764 10.1607 8.76397 9.83957 8.56609 9.64164L5.5255 6.60105C5.22864 6.30419 5.22864 5.8225 5.5255 5.52565C5.82235 5.2288 6.30404 5.2288 6.6009 5.52565L9.64149 8.56625C9.83941 8.76412 10.1605 8.76415 10.3584 8.56625L13.399 5.52565Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/collapse_icon.svg b/freemocap-ui/src/assets/icons/collapse_icon.svgnew file mode 100644index 00000000..f2d27bba--- /dev/null+++ b/freemocap-ui/src/assets/icons/collapse_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.07799 7.31377C8.78984 7.02593 8.32295 7.02586 8.03484 7.31377L5.86964 9.47897C5.58238 9.76712 5.58202 10.2342 5.86964 10.5221L8.03484 12.6873C8.32278 12.9749 8.78984 12.9746 9.07799 12.6873C9.36617 12.3991 9.36617 11.9313 9.07799 11.6431L7.87763 10.4419C7.63369 10.1978 7.63375 9.80222 7.87777 9.5582L9.07799 8.35799C9.36617 8.06981 9.36617 7.60195 9.07799 7.31377Z" fill="#9B9B9B"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M4.94865 2.76825C3.7444 2.76861 2.76831 3.74534 2.76831 4.94967V15.0514C2.76866 16.2554 3.74462 17.2314 4.94865 17.2318H15.0504C16.2547 17.2318 17.2315 16.2557 17.2318 15.0514V4.94967C17.2318 3.74512 16.2549 2.76825 15.0504 2.76825H4.94865ZM15.0504 4.24487C15.4398 4.24487 15.7552 4.56023 15.7552 4.94967V15.0514C15.7548 15.4405 15.4396 15.7562 15.0504 15.7562H13.5275C13.1823 15.7562 12.9025 15.4764 12.9025 15.1312V4.86987C12.9025 4.52469 13.1823 4.24487 13.5275 4.24487H15.0504ZM11.4259 15.1312C11.4259 15.4764 11.1461 15.7562 10.8009 15.7562H4.94865C4.55974 15.7559 4.2442 15.4403 4.24385 15.0514V4.94967C4.24385 4.60898 4.48583 4.32468 4.80704 4.25892L4.94865 4.24487H10.8009C11.1461 4.24487 11.4259 4.52469 11.4259 4.86987V15.1312Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/connected_icon.svg b/freemocap-ui/src/assets/icons/connected_icon.svgnew file mode 100644index 00000000..77679f85--- /dev/null+++ b/freemocap-ui/src/assets/icons/connected_icon.svg@@ -0,0 +1,23 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_152_3161)">+<g filter="url(#filter0_d_152_3161)">+<circle cx="10" cy="10" r="3.46461" fill="#16DD12"/>+</g>+</g>+<defs>+<filter id="filter0_d_152_3161" x="-0.9646" y="-0.9646" width="21.9292" height="21.9292" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="1.25" operator="dilate" in="SourceAlpha" result="effect1_dropShadow_152_3161"/>+<feOffset/>+<feGaussianBlur stdDeviation="3.125"/>+<feComposite in2="hardAlpha" operator="out"/>+<feColorMatrix type="matrix" values="0 0 0 0 0.0834473 0 0 0 0 0.760285 0 0 0 0 0.0698425 0 0 0 1 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_152_3161"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_152_3161" result="shape"/>+</filter>+<clipPath id="clip0_152_3161">+<rect width="20" height="20" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/freemocap-ui/src/assets/icons/copied_icon.svg b/freemocap-ui/src/assets/icons/copied_icon.svgnew file mode 100644index 00000000..cd1edbd8--- /dev/null+++ b/freemocap-ui/src/assets/icons/copied_icon.svg@@ -0,0 +1,10 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_725_5238)">+<path fill-rule="evenodd" clip-rule="evenodd" d="M9.99997 16.4262C10.8439 16.4262 11.6795 16.26 12.4592 15.9371C13.2389 15.6141 13.9473 15.1408 14.544 14.544C15.1407 13.9473 15.6141 13.2389 15.937 12.4592C16.26 11.6795 16.4262 10.8439 16.4262 10C16.4262 9.15609 16.26 8.32045 15.937 7.54078C15.6141 6.76112 15.1407 6.05269 14.544 5.45596C13.9473 4.85923 13.2389 4.38588 12.4592 4.06293C11.6795 3.73998 10.8439 3.57376 9.99997 3.57376C8.29563 3.57376 6.66109 4.25081 5.45593 5.45596C4.25078 6.66112 3.57373 8.29566 3.57373 10C3.57373 11.7043 4.25078 13.3389 5.45593 14.544C6.66109 15.7492 8.29563 16.4262 9.99997 16.4262ZM9.83432 12.5991L13.4044 8.3149L12.3077 7.40094L9.23739 11.0846L7.64868 9.49518L6.63905 10.5048L8.78113 12.6469L9.33378 13.1996L9.83432 12.5991Z" fill="#9B9B9B"/>+</g>+<defs>+<clipPath id="clip0_725_5238">+<rect width="20" height="20" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/freemocap-ui/src/assets/icons/copy_icon.svg b/freemocap-ui/src/assets/icons/copy_icon.svgnew file mode 100644index 00000000..0e3202b6--- /dev/null+++ b/freemocap-ui/src/assets/icons/copy_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M11.4773 2.77763C11.6874 2.77769 11.8449 2.85619 11.9831 2.99443L16.3163 7.32758C16.4497 7.46616 16.4962 7.61096 16.4963 7.7898V8.55744L12.8858 8.55608C12.3111 8.55608 11.7595 8.32702 11.3532 7.92069C10.9472 7.51449 10.7193 6.96385 10.7192 6.3895V4.22293H8.55262C8.36108 4.22293 8.17676 4.29883 8.04132 4.43427C7.90611 4.56957 7.83011 4.75293 7.82998 4.94421V12.1666C7.82998 12.3581 7.90588 12.5424 8.04132 12.6779C8.17674 12.8132 8.36114 12.8892 8.55262 12.8892H14.4195C14.8051 12.8892 15.1176 12.5767 15.1176 12.1911V10.7918C15.1176 10.3931 15.4409 10.0699 15.8396 10.0699C16.2383 10.0699 16.5616 10.3931 16.5616 10.7918V13.2802C16.5616 13.8617 16.0901 14.3332 15.5086 14.3332L15.5014 15.8329C15.4978 16.6013 14.8737 17.2224 14.1053 17.2224H5.6634C5.08884 17.2224 4.53716 16.9946 4.13085 16.5884C3.72456 16.1821 3.49687 15.6304 3.49683 15.0558V7.83343C3.49685 7.25884 3.72455 6.70717 4.13085 6.30087C4.53716 5.89462 5.08883 5.66685 5.6634 5.66685H6.38605V4.94421C6.38618 4.36985 6.61398 3.81921 7.02007 3.41302C7.42639 3.00669 7.978 2.77763 8.55262 2.77763H11.4773ZM7.02007 13.6991C7.42638 14.1054 7.97806 14.3332 8.55262 14.3332H14.0431L14.0358 15.087C14.0322 15.47 13.7207 15.7784 13.3378 15.7784H5.6634C5.47186 15.7784 5.28754 15.7012 5.15209 15.5657C5.01703 15.4304 4.9408 15.247 4.94076 15.0558V7.83343C4.94078 7.6422 5.01704 7.45885 5.15209 7.32349C5.28754 7.18805 5.47186 7.11078 5.6634 7.11078H6.38605V12.1666C6.38605 12.7412 6.61374 13.2928 7.02007 13.6991ZM12.3745 6.89944C12.2393 6.76412 12.1632 6.58076 12.1631 6.3895V5.24145L14.0338 7.11078H12.8858C12.6942 7.11078 12.5099 7.03488 12.3745 6.89944Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/copyover_icon.svg b/freemocap-ui/src/assets/icons/copyover_icon.svgnew file mode 100644index 00000000..dd725c77--- /dev/null+++ b/freemocap-ui/src/assets/icons/copyover_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M11.3257 3.53394C11.5138 3.53398 11.6548 3.60426 11.7786 3.72803L15.658 7.60742C15.7774 7.73149 15.819 7.86113 15.8191 8.02124V8.7085L12.5867 8.70728C12.0722 8.70728 11.5784 8.5022 11.2146 8.13843C10.8511 7.77476 10.6471 7.28178 10.647 6.76758V4.82788H8.70728C8.53579 4.82788 8.37077 4.89583 8.24951 5.01709C8.12846 5.13823 8.06042 5.30239 8.0603 5.47363V11.9397C8.0603 12.1112 8.12825 12.2762 8.24951 12.3975C8.37076 12.5186 8.53585 12.5867 8.70728 12.5867H9.12842V13.8794H8.70728C8.19288 13.8794 7.69897 13.6755 7.33521 13.3118C6.97143 12.948 6.76758 12.4542 6.76758 11.9397V7.41333H6.12061C5.94912 7.41333 5.7841 7.4825 5.66284 7.60376C5.54193 7.72495 5.47366 7.88909 5.47363 8.0603V14.5264C5.47367 14.6976 5.54192 14.8617 5.66284 14.9829C5.7841 15.1042 5.94912 15.1733 6.12061 15.1733H9.12842V16.4661H6.12061C5.60621 16.4661 5.1123 16.2621 4.74854 15.8984C4.38479 15.5347 4.18095 15.0408 4.18091 14.5264V8.0603C4.18093 7.54588 4.38478 7.05198 4.74854 6.68823C5.1123 6.32452 5.6062 6.12061 6.12061 6.12061H6.76758V5.47363C6.76769 4.95942 6.97164 4.46644 7.33521 4.10278C7.69898 3.73901 8.19282 3.53394 8.70728 3.53394H11.3257ZM11.9397 6.76758C11.9398 6.93881 12.0079 7.10297 12.1289 7.22412C12.2502 7.34538 12.4152 7.41333 12.5867 7.41333H13.6145L11.9397 5.73975V6.76758Z" fill="#9B9B9B"/>+<path d="M14.9481 12.401H16.2074L11.1942 17.4062C11.1195 17.4803 11.0603 17.5684 11.0198 17.6655C10.9793 17.7627 10.9585 17.8668 10.9585 17.972C10.9585 18.0773 10.9793 18.1814 11.0198 18.2785C11.0603 18.3757 11.1195 18.4638 11.1942 18.5379C11.2683 18.6126 11.3565 18.6719 11.4536 18.7124C11.5507 18.7528 11.6549 18.7737 11.7601 18.7737C11.8653 18.7737 11.9695 18.7528 12.0666 18.7124C12.1637 18.6719 12.2519 18.6126 12.326 18.5379L17.3391 13.5328V14.792C17.3391 15.0034 17.4231 15.2061 17.5725 15.3556C17.722 15.505 17.9247 15.589 18.1361 15.589C18.3475 15.589 18.5502 15.505 18.6997 15.3556C18.8491 15.2061 18.9331 15.0034 18.9331 14.792V11.604C18.9331 11.3926 18.8491 11.1899 18.6997 11.0405C18.5502 10.891 18.3475 10.807 18.1361 10.807H14.9481C14.7367 10.807 14.534 10.891 14.3845 11.0405C14.2351 11.1899 14.1511 11.3926 14.1511 11.604C14.1511 11.8154 14.2351 12.0181 14.3845 12.1676C14.534 12.317 14.7367 12.401 14.9481 12.401Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/discord_icon.svg b/freemocap-ui/src/assets/icons/discord_icon.svgnew file mode 100644index 00000000..df3fd290--- /dev/null+++ b/freemocap-ui/src/assets/icons/discord_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12.1061 4.16341C11.9556 4.43059 11.8205 4.70699 11.6977 4.98953C10.5307 4.81448 9.34216 4.81448 8.17207 4.98953C8.0523 4.70699 7.9141 4.43059 7.76361 4.16341C6.66726 4.35074 5.5985 4.67935 4.58505 5.14308C2.57656 8.11896 2.03298 11.0181 2.30324 13.8772C3.47946 14.7464 4.79695 15.4097 6.20045 15.8335C6.51677 15.4097 6.79622 14.9583 7.03576 14.4884C6.58126 14.3195 6.14208 14.1076 5.72134 13.8619C5.83192 13.782 5.93941 13.6991 6.04381 13.6193C8.50989 14.7801 11.366 14.7801 13.8351 13.6193C13.9396 13.7053 14.0471 13.7882 14.1576 13.8619C13.7369 14.1106 13.2977 14.3195 12.8401 14.4914C13.0796 14.9613 13.3591 15.4128 13.6754 15.8366C15.0789 15.4128 16.3964 14.7525 17.5727 13.8834C17.892 10.5666 17.026 7.69209 15.2847 5.14615C14.2743 4.68242 13.2056 4.35381 12.1092 4.16955L12.1061 4.16341ZM7.37973 12.1175C6.62117 12.1175 5.9916 11.4296 5.9916 10.5789C5.9916 9.7282 6.59661 9.0372 7.37667 9.0372C8.15673 9.0372 8.77709 9.73127 8.76478 10.5789C8.7525 11.4265 8.15364 12.1175 7.37973 12.1175ZM12.4962 12.1175C11.7345 12.1175 11.1111 11.4296 11.1111 10.5789C11.1111 9.7282 11.7161 9.0372 12.4962 9.0372C13.2762 9.0372 13.8935 9.73127 13.8812 10.5789C13.8689 11.4265 13.2701 12.1175 12.4962 12.1175Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/donate_icon.svg b/freemocap-ui/src/assets/icons/donate_icon.svgnew file mode 100644index 00000000..5164532a--- /dev/null+++ b/freemocap-ui/src/assets/icons/donate_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M16.0622 8.40119C16.0618 6.98789 15.3118 5.75611 14.2133 5.14761L13.9886 5.03368C12.9042 4.53835 11.5814 4.6469 10.3558 5.61473L9.99939 5.89631L9.64294 5.61473C8.49461 4.70771 7.25988 4.55489 6.21684 4.94741L6.01176 5.03368C4.79247 5.59167 3.93703 6.89323 3.93656 8.40119C3.93662 9.31946 4.17339 10.1093 4.55017 10.7986C4.70175 11.0771 4.59899 11.4261 4.32068 11.5783C4.04202 11.7306 3.69336 11.6274 3.54106 11.3488C3.13725 10.6099 2.86261 9.76966 2.8005 8.81623L2.78748 8.40119C2.78797 6.4635 3.88688 4.74057 5.53324 3.98713C6.92469 3.3516 8.54865 3.47398 9.99939 4.45262C11.4509 3.47351 13.0752 3.35116 14.4672 3.98713L14.7699 4.14012C16.2474 4.95743 17.2125 6.58503 17.2129 8.40119L17.2032 8.74299C17.1136 10.4264 16.3703 11.7209 15.4763 12.7274C15.0242 13.2366 14.507 13.6977 14.0066 14.1076L12.6361 15.1802C12.3082 15.4384 11.9671 15.6909 11.5993 15.9207L11.5847 15.9305L11.583 15.9289C11.2412 16.1282 10.7807 16.3439 10.237 16.3944L9.99939 16.4041C9.35292 16.4038 8.80648 16.1584 8.4141 15.9289C8.21927 15.8147 8.02877 15.6845 7.85095 15.5545L7.36267 15.1802C6.96678 14.8681 6.41254 14.4546 5.9255 14.0539C5.68095 13.852 5.64588 13.4899 5.84737 13.2449C6.04909 12.9998 6.41106 12.9652 6.65629 13.1668C7.13553 13.5611 7.63881 13.9338 8.07393 14.2768C8.37174 14.5114 8.68429 14.7539 8.99516 14.936C9.30511 15.1173 9.64343 15.2548 9.99939 15.255L10.2631 15.2306C10.52 15.184 10.765 15.073 10.9955 14.9393C11.3129 14.7404 11.6176 14.5188 11.9248 14.2768C12.7614 13.617 13.8011 12.883 14.6169 11.964C15.4429 11.0342 16.0621 9.89299 16.0622 8.40119Z" fill="#D7184B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/download_icon.svg b/freemocap-ui/src/assets/icons/download_icon.svgnew file mode 100644index 00000000..8dacfd3a--- /dev/null+++ b/freemocap-ui/src/assets/icons/download_icon.svg@@ -0,0 +1,10 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_319_4156)">+<path d="M9.11017 9.7444C9.11017 9.28536 9.48244 8.91317 9.94147 8.9131C10.4006 8.9131 10.7728 9.28531 10.7728 9.7444V14.5772L11.7664 13.7825C12.1249 13.4958 12.6479 13.5535 12.9346 13.9119C13.2213 14.2702 13.1632 14.7932 12.8052 15.0801L10.4615 16.9551C10.1579 17.198 9.72625 17.198 9.42267 16.9551L7.07892 15.0801C6.72045 14.7933 6.66158 14.2704 6.9483 13.9119C7.23509 13.5534 7.75925 13.4957 8.11774 13.7825L9.11017 14.5759V9.7444ZM9.27252 3.17824C10.3071 3.07478 11.419 3.29013 12.2681 3.86549C12.8827 4.28204 13.3512 4.88859 13.5279 5.64894C14.3298 5.583 15.0439 5.75284 15.636 6.13722C16.4503 6.66587 16.9085 7.51867 17.0801 8.38575C17.4087 10.0459 16.7365 12.2408 14.7779 12.9243C14.3446 13.0755 13.8709 12.8473 13.7195 12.4141C13.5684 11.9807 13.7966 11.5071 14.2298 11.3557C15.1473 11.0357 15.6766 9.85856 15.4493 8.70924C15.3429 8.17159 15.0826 7.75999 14.7303 7.53126C14.3949 7.31372 13.851 7.18002 12.9932 7.43727C12.724 7.51802 12.4315 7.45758 12.2169 7.27614C12.0026 7.09479 11.8941 6.81735 11.9288 6.53883C12.0027 5.94773 11.7676 5.53532 11.3355 5.24244C10.8664 4.92447 10.1616 4.76001 9.43854 4.83229C8.71767 4.90437 8.09688 5.19844 7.72955 5.65016C7.38731 6.07131 7.16753 6.7486 7.46222 7.82911C7.53512 8.09645 7.47026 8.38261 7.28888 8.59205C7.10728 8.80144 6.8327 8.90704 6.55768 8.87282C5.27044 8.71191 4.66477 9.38778 4.53131 9.98243C4.45941 10.3029 4.51362 10.6191 4.67413 10.865C4.82753 11.1 5.12119 11.3364 5.65558 11.4277C6.108 11.5052 6.41167 11.9348 6.33429 12.3872C6.25661 12.8394 5.82713 13.1433 5.37482 13.0659C4.4374 12.9055 3.71667 12.4383 3.28253 11.7732C2.85551 11.1189 2.74891 10.3376 2.91022 9.61866C3.18154 8.40976 4.18683 7.40801 5.67511 7.21876C5.60046 6.17875 5.87921 5.29057 6.44049 4.60035C7.15703 3.71953 8.23591 3.282 9.27252 3.17824Z" fill="#9B9B9B"/>+</g>+<defs>+<clipPath id="clip0_319_4156">+<rect width="20" height="20.0004" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/freemocap-ui/src/assets/icons/dropdown_icon.svg b/freemocap-ui/src/assets/icons/dropdown_icon.svgnew file mode 100644index 00000000..e1efd406--- /dev/null+++ b/freemocap-ui/src/assets/icons/dropdown_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M13.2981 8.24408C13.6236 7.91867 14.1511 7.91865 14.4765 8.24408C14.8019 8.56951 14.8019 9.09703 14.4765 9.42246L10.9495 12.9495C10.6241 13.2749 10.0965 13.2749 9.7711 12.9495L6.24408 9.42246C5.91864 9.09703 5.91864 8.56951 6.24408 8.24408C6.56951 7.91864 7.09703 7.91864 7.42246 8.24408L10.3603 11.1819L13.2981 8.24408Z" fill="#4F4F4F"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/expand_icon.svg b/freemocap-ui/src/assets/icons/expand_icon.svgnew file mode 100644index 00000000..114d053b--- /dev/null+++ b/freemocap-ui/src/assets/icons/expand_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.922 7.31377C11.2102 7.02593 11.6771 7.02586 11.9652 7.31377L14.1304 9.47897C14.4176 9.76712 14.418 10.2342 14.1304 10.5221L11.9652 12.6873C11.6772 12.9749 11.2102 12.9746 10.922 12.6873C10.6338 12.3991 10.6338 11.9313 10.922 11.6431L12.1224 10.4419C12.3663 10.1978 12.3662 9.80222 12.1222 9.5582L10.922 8.35799C10.6338 8.06981 10.6338 7.60195 10.922 7.31377Z" fill="#9B9B9B"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M15.0514 2.76825C16.2556 2.76861 17.2317 3.74534 17.2317 4.94967V15.0514C17.2313 16.2554 16.2554 17.2314 15.0514 17.2318H4.9496C3.74528 17.2318 2.76854 16.2557 2.76819 15.0514V4.94967C2.76819 3.74512 3.74506 2.76825 4.9496 2.76825H15.0514ZM4.9496 4.24487C4.56017 4.24487 4.24481 4.56023 4.24481 4.94967V15.0514C4.24516 15.4405 4.56039 15.7562 4.9496 15.7562H6.47251C6.81769 15.7562 7.09751 15.4764 7.09751 15.1312V4.86987C7.09751 4.52469 6.81769 4.24487 6.47251 4.24487H4.9496ZM8.57413 15.1312C8.57413 15.4764 8.85395 15.7562 9.19913 15.7562H15.0514C15.4403 15.7559 15.7558 15.4403 15.7562 15.0514V4.94967C15.7562 4.60898 15.5142 4.32468 15.193 4.25892L15.0514 4.24487H9.19913C8.85395 4.24487 8.57413 4.52469 8.57413 4.86987V15.1312Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/explainer_icon.svg b/freemocap-ui/src/assets/icons/explainer_icon.svgnew file mode 100644index 00000000..189e87e2--- /dev/null+++ b/freemocap-ui/src/assets/icons/explainer_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.99996 18.0006C14.3688 18.0006 18.0001 14.3771 18.0001 10.0006C18.0001 5.63186 14.3608 2.00064 9.99192 2.00064C5.61569 2.00064 2.00012 5.63186 2.00012 10.0006C2.00012 14.3771 5.62339 18.0006 9.99996 18.0006ZM10.0003 16.6674C6.29771 16.6674 3.3404 13.7025 3.3404 10.0006C3.3404 6.30617 6.28968 3.33386 9.99192 3.33386C13.6861 3.33386 16.6585 6.30651 16.6665 10.0006C16.6742 13.7028 13.6938 16.6674 9.99962 16.6674M9.99192 11.4202C10.3681 11.4202 10.5799 11.2084 10.5876 10.8008L10.7054 6.65956C10.7134 6.25932 10.3995 5.96149 9.98389 5.96149C9.56022 5.96149 9.26239 6.25162 9.27008 6.65152L9.37215 10.8008C9.37985 11.2007 9.59971 11.4202 9.99192 11.4202ZM9.99192 13.9692C10.4387 13.9692 10.8386 13.6084 10.8386 13.1537C10.8386 12.6908 10.4467 12.3378 9.99192 12.3378C9.5291 12.3378 9.14459 12.6985 9.14459 13.1537C9.14459 13.6007 9.5368 13.9692 9.99192 13.9692Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/externallink_icon.svg b/freemocap-ui/src/assets/icons/externallink_icon.svgnew file mode 100644index 00000000..51518ff0--- /dev/null+++ b/freemocap-ui/src/assets/icons/externallink_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.0025 8.14865H11.3637L5.94454 13.5592C5.86379 13.6393 5.7997 13.7346 5.75596 13.8396C5.71222 13.9446 5.6897 14.0572 5.6897 14.1709C5.6897 14.2847 5.71222 14.3973 5.75596 14.5023C5.7997 14.6072 5.86379 14.7025 5.94454 14.7826C6.02464 14.8634 6.11993 14.9275 6.22491 14.9712C6.3299 15.015 6.44251 15.0375 6.55625 15.0375C6.66998 15.0375 6.78259 15.015 6.88758 14.9712C6.99257 14.9275 7.08786 14.8634 7.16795 14.7826L12.5871 9.37206V10.7333C12.5871 10.9618 12.6779 11.181 12.8395 11.3425C13.0011 11.5041 13.2202 11.5949 13.4487 11.5949C13.6772 11.5949 13.8963 11.5041 14.0579 11.3425C14.2195 11.181 14.3102 10.9618 14.3102 10.7333V7.28709C14.3102 7.05859 14.2195 6.83945 14.0579 6.67788C13.8963 6.51631 13.6772 6.42554 13.4487 6.42554H10.0025C9.77397 6.42554 9.55483 6.51631 9.39326 6.67788C9.23168 6.83945 9.14091 7.05859 9.14091 7.28709C9.14091 7.51559 9.23168 7.73473 9.39326 7.8963C9.55483 8.05788 9.77397 8.14865 10.0025 8.14865Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/file_icon.svg b/freemocap-ui/src/assets/icons/file_icon.svgnew file mode 100644index 00000000..fb8dc28d--- /dev/null+++ b/freemocap-ui/src/assets/icons/file_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M3.96241 11.1942V8.98552L3.96241 8.93909C3.96239 7.73955 3.96238 6.78827 4.0503 6.03468C4.14081 5.25899 4.33049 4.61879 4.76319 4.08155C4.92501 3.88051 5.10766 3.69682 5.30844 3.53468C5.84537 3.10181 6.48614 2.9123 7.26156 2.82179C8.01487 2.73387 7.71555 2.73388 8.9143 2.7339L8.96078 2.7339C9.33326 2.7339 9.64286 2.72854 9.92595 2.77947L10.201 2.85108L10.2043 2.85271C10.2738 2.87739 10.3412 2.90712 10.4077 2.93897C10.7532 3.10392 11.0216 3.38033 11.3729 3.73162L14.978 7.33839H14.9764C15.3838 7.74508 15.7083 8.05408 15.8781 8.46469C16.0474 8.87468 16.0376 9.3229 16.0376 9.89861L16.0376 14.5163C16.0376 16.0351 14.8064 17.2663 13.2876 17.2663H8.97749C7.19135 17.2359 5.90978 17.1029 5.02198 16.2151C4.45141 15.6445 4.19802 14.9206 4.07797 14.0276C3.96235 13.1673 3.96236 12.6333 3.9624 11.272L3.96241 11.1942ZM14.8869 9.89861L14.9438 14.3196C14.9572 15.3638 14.115 16.218 13.0708 16.2074C11.2887 16.1894 10.7349 16.1491 8.97749 16.1169C7.14575 16.0833 6.35155 15.917 5.83578 15.4013C5.51457 15.08 5.32184 14.6401 5.21892 13.8746C5.11379 13.0925 5.1115 12.6459 5.1115 11.1942V8.98552C5.1115 7.73639 5.11343 6.84929 5.19288 6.16814C5.27091 5.49939 5.4169 5.1024 5.65837 4.80258C5.76877 4.66541 5.89411 4.54049 6.03109 4.42986L6.14828 4.3436C6.43369 4.15285 6.81035 4.03262 7.39502 3.96436C8.07588 3.88492 7.71238 3.88298 8.96078 3.88298C9.25158 3.88298 9.43452 3.88492 9.56137 3.89275V4.07016L9.56136 4.13936C9.56132 5.16756 9.56128 5.99873 9.64926 6.65317C9.74148 7.33855 9.93906 7.91624 10.398 8.37517L10.5754 8.53468C11.0028 8.88157 11.5201 9.04319 12.12 9.12387C12.7741 9.21184 13.6041 9.21181 14.6315 9.21176L14.7013 9.21176H14.8755C14.8855 9.3577 14.8869 9.56788 14.8869 9.89861ZM10.7886 6.49854C10.7272 6.04116 10.7166 5.46522 10.7137 4.69841L14.0715 8.05779C13.3055 8.0549 12.7299 8.046 12.273 7.98455C11.7156 7.90956 11.421 7.77226 11.2118 7.563V7.56137C11.002 7.35158 10.8636 7.05676 10.7886 6.49854Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/frame_icon.svg b/freemocap-ui/src/assets/icons/frame_icon.svgnew file mode 100644index 00000000..b3d38e39--- /dev/null+++ b/freemocap-ui/src/assets/icons/frame_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M6.22266 16.2227C6.22266 15.4705 6.22048 14.9732 6.1709 14.6045C6.12389 14.2551 6.04539 14.1216 5.96191 14.0381C5.87844 13.9546 5.74492 13.8761 5.39551 13.8291C5.02681 13.7795 4.52953 13.7773 3.77734 13.7773H3V12.4443H3.77734C4.49183 12.4443 5.09499 12.4435 5.57324 12.5078C6.07083 12.5748 6.53199 12.7234 6.9043 13.0957C7.2766 13.468 7.42525 13.9292 7.49219 14.4268C7.5565 14.905 7.55566 15.5082 7.55566 16.2227V17H6.22266V16.2227ZM12.4443 16.2227C12.4443 15.5082 12.4435 14.905 12.5078 14.4268C12.5748 13.9292 12.7234 13.468 13.0957 13.0957C13.468 12.7234 13.9292 12.5748 14.4268 12.5078C14.905 12.4435 15.5082 12.4443 16.2227 12.4443H17V13.7773H16.2227C15.4705 13.7773 14.9732 13.7795 14.6045 13.8291C14.2551 13.8761 14.1216 13.9546 14.0381 14.0381C13.9546 14.1216 13.8761 14.2551 13.8291 14.6045C13.7795 14.9732 13.7773 15.4705 13.7773 16.2227V17H12.4443V16.2227ZM6.22266 3.77734V3H7.55566V3.77734C7.55566 4.49183 7.5565 5.09499 7.49219 5.57324C7.42525 6.07083 7.2766 6.53199 6.9043 6.9043C6.53199 7.2766 6.07083 7.42525 5.57324 7.49219C5.09499 7.5565 4.49183 7.55566 3.77734 7.55566H3V6.22266H3.77734C4.52953 6.22266 5.02681 6.22048 5.39551 6.1709C5.74492 6.12389 5.87844 6.04539 5.96191 5.96191C6.04539 5.87844 6.12389 5.74492 6.1709 5.39551C6.22048 5.02681 6.22266 4.52953 6.22266 3.77734ZM12.4443 3.77734V3H13.7773V3.77734C13.7773 4.52953 13.7795 5.02681 13.8291 5.39551C13.8761 5.74492 13.9546 5.87844 14.0381 5.96191C14.1216 6.04539 14.2551 6.12389 14.6045 6.1709C14.9732 6.22048 15.4705 6.22266 16.2227 6.22266H17V7.55566H16.2227C15.5082 7.55566 14.905 7.5565 14.4268 7.49219C13.9292 7.42525 13.468 7.2766 13.0957 6.9043C12.7234 6.53199 12.5748 6.07083 12.5078 5.57324C12.4435 5.09499 12.4443 4.49183 12.4443 3.77734Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/framebackward_icon.svg b/freemocap-ui/src/assets/icons/framebackward_icon.svgnew file mode 100644index 00000000..4221da92--- /dev/null+++ b/freemocap-ui/src/assets/icons/framebackward_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.4924 1.24149C10.7455 1.07599 11.0731 1.07894 11.323 1.24918C11.5728 1.41961 11.6967 1.72437 11.635 2.02042L11.5175 2.57852L12.6194 3.00369L12.6326 3.00919L13.0072 3.17288C14.8552 4.03254 16.3554 5.52577 17.1908 7.41141C17.8233 8.83939 18.0197 10.4243 17.7522 11.963C17.4847 13.5015 16.766 14.9259 15.689 16.0565C14.6117 17.1873 13.2226 17.9736 11.6987 18.3153C10.175 18.6569 8.58406 18.5394 7.12732 17.977C5.67055 17.4145 4.41278 16.4326 3.51392 15.1557C2.6151 13.8786 2.11483 12.363 2.07691 10.8018C2.03906 9.24051 2.46487 7.70228 3.30078 6.38309C3.63569 5.85458 4.03059 5.37044 4.47522 4.93948C4.77192 4.65196 5.24676 4.6593 5.5343 4.95596C5.82165 5.25264 5.81434 5.72644 5.51782 6.01395C5.15725 6.36336 4.83688 6.75653 4.56531 7.18509C3.88799 8.25421 3.54257 9.50028 3.57324 10.7655C3.60399 12.0307 4.00945 13.2583 4.73779 14.2932C5.46635 15.3284 6.4859 16.1247 7.66675 16.5806C8.84733 17.0363 10.1365 17.132 11.3713 16.8553C12.6065 16.5783 13.7326 15.9414 14.6057 15.0249C15.4788 14.1085 16.0599 12.953 16.2767 11.706C16.4934 10.4589 16.3356 9.17516 15.823 8.01785C15.0931 6.3702 13.7392 5.07838 12.0679 4.39456L11.2076 4.06168L11.0604 4.7692C10.9984 5.06516 10.7632 5.29533 10.4661 5.35147C10.1688 5.40749 9.86704 5.27828 9.70142 5.02518L8.61487 3.36404C8.38885 3.01836 8.48572 2.55534 8.8313 2.32913L10.4924 1.24149Z" fill="#9B9B9B"/>+<path d="M11.0526 7.51288V13.8346H9.71607V8.78155H9.67903L8.23132 9.68906V8.50374L9.79632 7.51288H11.0526Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/frameforward_icon.svg b/freemocap-ui/src/assets/icons/frameforward_icon.svgnew file mode 100644index 00000000..b2e76d38--- /dev/null+++ b/freemocap-ui/src/assets/icons/frameforward_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.67699 1.24916C8.92687 1.07895 9.25452 1.07595 9.50756 1.24147L11.1687 2.32912C11.5142 2.55533 11.6111 3.01837 11.3851 3.36403L10.2986 5.02516C10.133 5.27825 9.83113 5.40744 9.53393 5.35146C9.23676 5.29531 9.0016 5.06515 8.93957 4.76918L8.79125 4.06166L7.93212 4.39455C6.26076 5.07836 4.90689 6.37018 4.17699 8.01784C3.66442 9.17515 3.50654 10.4589 3.72326 11.7059C3.94008 12.953 4.5212 14.1085 5.39428 15.0249C6.26728 15.9413 7.39261 16.5782 8.62756 16.8552C9.86259 17.1322 11.1525 17.0364 12.3332 16.5806C13.5141 16.1247 14.5336 15.3283 15.2622 14.2932C15.9905 13.2583 16.396 12.0307 16.4268 10.7655C16.4574 9.50028 16.112 8.25419 15.4347 7.18507C15.1631 6.75651 14.8427 6.36335 14.4822 6.01393C14.1856 5.72642 14.1783 5.25263 14.4657 4.95595C14.7532 4.65929 15.227 4.65198 15.5237 4.93947C15.9685 5.37056 16.3642 5.85435 16.6992 6.38307C17.5351 7.70226 17.9609 9.2405 17.9231 10.8018C17.8852 12.363 17.3849 13.8786 16.4861 15.1557C15.5872 16.4326 14.3295 17.4145 12.8727 17.9769C11.4159 18.5394 9.82498 18.6569 8.30126 18.3153C6.77735 17.9736 5.38828 17.1873 4.31103 16.0565C3.23398 14.9259 2.51532 13.5015 2.24779 11.963C1.98032 10.4243 2.17564 8.83937 2.8081 7.41139C3.64351 5.52556 5.14465 4.03258 6.99279 3.17287L7.36742 3.00917L7.38061 3.00368L8.48144 2.57851L8.36498 2.0204C8.30333 1.72436 8.42716 1.41959 8.67699 1.24916Z" fill="#9B9B9B"/>+<path d="M10.8192 7.51288V13.8346H9.48267V8.78155H9.44563L7.99792 9.68906V8.50374L9.56293 7.51288H10.8192Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/github_icon.svg b/freemocap-ui/src/assets/icons/github_icon.svgnew file mode 100644index 00000000..8a52ebe4--- /dev/null+++ b/freemocap-ui/src/assets/icons/github_icon.svg@@ -0,0 +1,10 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_543_3819)">+<path d="M15.3202 3.01871C15.3481 3.02306 15.3734 3.02767 15.395 3.03247L15.4383 3.04305C15.4404 3.0436 15.4429 3.04358 15.4448 3.04411L15.4491 3.04622C15.4487 3.04959 15.4372 3.08682 15.3083 3.51184L15.4491 3.04622C15.6594 3.10711 15.8319 3.25689 15.9184 3.45364C16.2635 4.23989 16.3311 5.11081 16.1211 5.93307C16.6879 6.65202 16.9997 7.53738 17 8.4527L16.9924 8.79557C16.9245 10.477 16.351 11.6399 15.4242 12.4009C14.7929 12.9192 14.0459 13.206 13.3087 13.3756C13.436 13.7298 13.4883 14.1048 13.4659 14.4793L13.467 16.2793C13.4667 16.6771 13.1364 17 12.7289 17C12.3217 16.9998 11.9911 16.677 11.9909 16.2793V14.4793C11.9909 14.4606 11.9926 14.4408 11.9941 14.4222C12.0099 14.2254 11.9824 14.0269 11.9139 13.8412C11.8453 13.6554 11.7361 13.4856 11.5953 13.3438C11.3998 13.1465 11.3356 12.8573 11.4306 12.5988C11.5259 12.3403 11.7643 12.1563 12.044 12.1258C13.0106 12.0206 13.8639 11.7998 14.4749 11.2983C15.0499 10.826 15.5239 10.0086 15.5239 8.4527C15.5236 7.76235 15.2517 7.09764 14.7642 6.59763C14.5696 6.39792 14.5084 6.10773 14.6071 5.84947C14.773 5.41508 14.8067 4.947 14.7133 4.49917C14.4006 4.58056 13.8837 4.77798 13.1408 5.26427C12.9635 5.38028 12.7431 5.41486 12.5371 5.36056C11.1914 5.00502 9.77216 5.00502 8.42642 5.36056C8.22037 5.41498 8.0001 5.38027 7.82277 5.26427C7.07919 4.77758 6.56178 4.58045 6.24916 4.49917C6.15577 4.94696 6.19052 5.41512 6.35645 5.84947C6.45503 6.10761 6.39369 6.39796 6.19931 6.59763C5.70817 7.10134 5.43599 7.77205 5.43959 8.46752V8.47175C5.43962 10.0128 5.91215 10.8248 6.48867 11.2983C7.10221 11.8018 7.95808 12.0282 8.9282 12.1459C9.20552 12.1795 9.43963 12.3639 9.53293 12.6211C9.62597 12.8786 9.56262 13.1666 9.3682 13.3629C9.22914 13.5032 9.12138 13.6705 9.05283 13.8539C8.98434 14.0375 8.95649 14.2336 8.97047 14.4285C8.97167 14.4452 8.97155 14.4626 8.97155 14.4793V16.2793C8.97131 16.6771 8.64094 17 8.23351 17C7.82621 16.9998 7.49572 16.677 7.49548 16.2793V15.9259C6.74374 16.0273 6.01531 15.9594 5.33989 15.6836C4.37807 15.2908 3.61926 14.5232 3.07809 13.4666C2.89591 13.1108 3.04333 12.6775 3.40756 12.4994C3.77196 12.3215 4.21569 12.4654 4.39811 12.8211C4.82019 13.6453 5.34565 14.1244 5.90886 14.3544C6.35396 14.5362 6.88115 14.5837 7.49548 14.4666C7.47744 14.0994 7.53122 13.7319 7.65696 13.3851C6.91907 13.21 6.17031 12.9199 5.53822 12.4009C4.61278 11.641 4.03809 10.4847 3.97002 8.8125L3.96352 8.47175C3.95944 7.55053 4.27014 6.65796 4.84028 5.93412C4.63012 5.11178 4.69897 4.24001 5.04402 3.45364C5.1305 3.25689 5.30306 3.10711 5.51329 3.04622L5.72245 3.73724C5.52941 3.10175 5.51386 3.05045 5.51329 3.04622L5.51546 3.04516L5.51871 3.04411C5.52065 3.04359 5.5232 3.0436 5.52521 3.04305L5.56856 3.03247C5.58999 3.02772 5.61459 3.02302 5.64226 3.01871C5.69834 3.00998 5.7671 3.0029 5.84817 3.00072C6.01082 2.99635 6.22136 3.01109 6.48108 3.06739C6.94602 3.16822 7.56652 3.40155 8.36356 3.88963C9.75618 3.57319 11.2051 3.57344 12.5978 3.88963C13.3956 3.4009 14.0172 3.16823 14.4824 3.06739C14.7421 3.0111 14.9527 2.99635 15.1154 3.00072C15.1961 3.00291 15.2643 3.01002 15.3202 3.01871Z" fill="#9B9B9B"/>+</g>+<defs>+<clipPath id="clip0_543_3819">+<rect width="20" height="20" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/freemocap-ui/src/assets/icons/grid2_icon.svg b/freemocap-ui/src/assets/icons/grid2_icon.svgnew file mode 100644index 00000000..01dfeac3--- /dev/null+++ b/freemocap-ui/src/assets/icons/grid2_icon.svg@@ -0,0 +1,6 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect x="10.3972" y="5.06165" width="4.54812" height="4.54812" rx="1.25" fill="#9B9B9B"/>+<rect x="5.05481" y="5.06165" width="4.54812" height="4.54812" rx="1.25" fill="#9B9B9B"/>+<rect x="10.3972" y="10.3902" width="4.54812" height="4.54812" rx="1.25" fill="#9B9B9B"/>+<rect x="5.05481" y="10.3902" width="4.54812" height="4.54812" rx="1.25" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/grid3_icon.svg b/freemocap-ui/src/assets/icons/grid3_icon.svgnew file mode 100644index 00000000..203b3747--- /dev/null+++ b/freemocap-ui/src/assets/icons/grid3_icon.svg@@ -0,0 +1,8 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect x="7.68054" y="4.96309" width="4.63889" height="4.63889" rx="1.25" fill="#9B9B9B"/>+<rect x="13.1296" y="4.96309" width="4.63889" height="4.63889" rx="1.25" fill="#9B9B9B"/>+<rect x="2.23145" y="4.96309" width="4.63889" height="4.63889" rx="1.25" fill="#9B9B9B"/>+<rect x="7.68054" y="10.398" width="4.63889" height="4.63889" rx="1.25" fill="#9B9B9B"/>+<rect x="13.1296" y="10.398" width="4.63889" height="4.63889" rx="1.25" fill="#9B9B9B"/>+<rect x="2.23145" y="10.398" width="4.63889" height="4.63889" rx="1.25" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/grid4_icon.svg b/freemocap-ui/src/assets/icons/grid4_icon.svgnew file mode 100644index 00000000..9e7ef860--- /dev/null+++ b/freemocap-ui/src/assets/icons/grid4_icon.svg@@ -0,0 +1,10 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect x="0.824951" y="5.57219" width="4.05542" height="4.05542" rx="1.25" fill="#9B9B9B"/>+<rect x="10.3547" y="5.57219" width="4.05542" height="4.05542" rx="1.25" fill="#9B9B9B"/>+<rect x="0.824951" y="10.3724" width="4.05542" height="4.05542" rx="1.25" fill="#9B9B9B"/>+<rect x="10.3547" y="10.3724" width="4.05542" height="4.05542" rx="1.25" fill="#9B9B9B"/>+<rect x="5.58972" y="5.57219" width="4.05542" height="4.05542" rx="1.25" fill="#9B9B9B"/>+<rect x="15.1198" y="5.57219" width="4.05542" height="4.05542" rx="1.25" fill="#9B9B9B"/>+<rect x="5.58972" y="10.3724" width="4.05542" height="4.05542" rx="1.25" fill="#9B9B9B"/>+<rect x="15.1198" y="10.3724" width="4.05542" height="4.05542" rx="1.25" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/grid_icon.svg b/freemocap-ui/src/assets/icons/grid_icon.svgnew file mode 100644index 00000000..1e37542b--- /dev/null+++ b/freemocap-ui/src/assets/icons/grid_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M3 5.91667C3 5.14312 3.30729 4.40125 3.85427 3.85427C4.40125 3.30729 5.14312 3 5.91667 3H14.0833C14.8569 3 15.5987 3.30729 16.1457 3.85427C16.6927 4.40125 17 5.14312 17 5.91667V14.0833C17 14.8569 16.6927 15.5987 16.1457 16.1457C15.5987 16.6927 14.8569 17 14.0833 17H5.91667C5.14312 17 4.40125 16.6927 3.85427 16.1457C3.30729 15.5987 3 14.8569 3 14.0833V5.91667ZM4.16667 13.5V14.0833C4.16667 14.5475 4.35104 14.9926 4.67923 15.3208C5.00742 15.649 5.45254 15.8333 5.91667 15.8333H6.08L6.857 13.5H4.16667ZM7.24667 12.3333L8.02367 10H6.81267L5.25633 12.3333H7.24667ZM8.08667 13.5L7.30967 15.8333H12.6903L11.9133 13.5H8.08667ZM11.5237 12.3333L10.7467 10H9.25333L8.47633 12.3333H11.5237ZM13.143 13.5L13.92 15.8333H14.0833C14.5475 15.8333 14.9926 15.649 15.3208 15.3208C15.649 14.9926 15.8333 14.5475 15.8333 14.0833V13.5H13.143ZM14.7437 12.3333L13.1873 10H11.9763L12.7533 12.3333H14.7437ZM15.8333 5.91667C15.8333 5.45254 15.649 5.00742 15.3208 4.67923C14.9926 4.35104 14.5475 4.16667 14.0833 4.16667H5.91667C5.45254 4.16667 5.00742 4.35104 4.67923 4.67923C4.35104 5.00742 4.16667 5.45254 4.16667 5.91667V8.83333H15.8333V5.91667ZM4.16667 11.8655L5.41033 10H4.16667V11.8655ZM15.8333 11.8655V10H14.5897L15.8333 11.8655Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/home_icon.svg b/freemocap-ui/src/assets/icons/home_icon.svgnew file mode 100644index 00000000..8b7cdf13--- /dev/null+++ b/freemocap-ui/src/assets/icons/home_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2.50183 10.7459V9.71863C2.50183 8.96029 2.50118 8.34029 2.54907 7.83118C2.59843 7.30678 2.70269 6.84286 2.94458 6.40186H2.94568C3.18735 5.95984 3.51953 5.62592 3.93225 5.30981C4.33201 5.00367 4.84916 4.68341 5.47693 4.29358L6.82715 3.45532C7.49058 3.04336 8.03573 2.7039 8.51025 2.47314C9.00024 2.2349 9.47236 2.08313 10 2.08313C10.5275 2.08313 10.9989 2.23503 11.4886 2.47314C11.9629 2.70379 12.5083 3.04353 13.1718 3.45532H13.1729L14.5231 4.29358C14.8739 4.51149 14.9815 4.9731 14.7637 5.3241C14.5457 5.67474 14.0852 5.78228 13.7343 5.5647L12.384 4.72754C11.6941 4.29932 11.2241 4.00823 10.835 3.81897C10.4612 3.63719 10.2202 3.57947 10 3.57947C9.77975 3.57947 9.53886 3.63721 9.16504 3.81897C8.77589 4.00819 8.30561 4.29931 7.61597 4.72754L6.26685 5.5647C5.61416 5.97 5.16997 6.24621 4.84192 6.49744C4.52758 6.73818 4.36529 6.9228 4.25745 7.12036V7.12146C4.1484 7.32027 4.07722 7.56302 4.03882 7.9707C3.99901 8.39373 3.99817 8.93241 3.99817 9.71863V10.7459C3.99817 12.0826 4.00036 13.0123 4.09155 13.7133C4.18031 14.3953 4.34154 14.747 4.57935 14.9932C4.81341 15.2354 5.14279 15.3975 5.79004 15.4875C6.46175 15.581 7.35533 15.5831 8.64978 15.5831H11.3502C12.6445 15.5831 13.5373 15.5809 14.2089 15.4875C14.8561 15.3975 15.1861 15.2356 15.4207 14.9932C15.6586 14.7471 15.8209 14.3953 15.9095 13.7133C16.0007 13.0122 16.0018 12.0824 16.0018 10.7459V9.71863C16.002 9.30562 16.3369 8.97046 16.75 8.97046C17.1631 8.97046 17.498 9.30562 17.4982 9.71863V10.7459C17.4982 12.0416 17.4993 13.0866 17.3927 13.9066C17.2836 14.7455 17.0493 15.4616 16.4962 16.0336C15.9398 16.6088 15.2381 16.8552 14.4154 16.9696C13.6168 17.0807 12.601 17.0795 11.3502 17.0795H8.64978C7.39912 17.0795 6.38326 17.0807 5.5846 16.9696C4.76174 16.8552 4.05897 16.6093 3.50269 16.0336C2.95007 15.4616 2.71649 14.7456 2.6073 13.9066C2.50059 13.0867 2.50183 12.042 2.50183 10.7459ZM9.25183 13.2936V11.2688C9.25183 10.8556 9.58682 10.5206 10 10.5206C10.4132 10.5206 10.7482 10.8556 10.7482 11.2688V13.2936C10.7482 13.7068 10.4132 14.0417 10 14.0417C9.58682 14.0417 9.25183 13.7068 9.25183 13.2936Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/import_icon.svg b/freemocap-ui/src/assets/icons/import_icon.svgnew file mode 100644index 00000000..61525b94--- /dev/null+++ b/freemocap-ui/src/assets/icons/import_icon.svg@@ -0,0 +1,4 @@+<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2.78491 9.72135V6.95443C2.78491 5.97726 2.78399 5.20439 2.85523 4.59375C2.92764 3.9732 3.07938 3.46104 3.42554 3.03125C3.55499 2.87042 3.70111 2.72346 3.86174 2.59375C4.29129 2.24745 4.8039 2.09585 5.42424 2.02344C6.03466 1.9522 6.80707 1.95312 7.78361 1.95312C8.0816 1.95312 8.32928 1.94884 8.55575 1.98958L8.7758 2.04687L8.7784 2.04818C8.834 2.06792 8.88796 2.0917 8.94116 2.11719C9.21756 2.24914 9.43228 2.47028 9.7133 2.7513L12.5974 5.63672H12.5961C12.922 5.96207 13.1817 6.20927 13.3175 6.53776C13.4529 6.86575 13.4451 7.22433 13.4451 7.6849V10.3307C13.445 10.5845 13.2392 10.7901 12.9854 10.7904C12.7315 10.7904 12.5246 10.5847 12.5245 10.3307V7.6849C12.5245 7.42031 12.5234 7.25217 12.5154 7.13542H12.3761C11.5283 7.13542 10.8461 7.13707 10.311 7.0651C9.83104 7.00056 9.4172 6.87126 9.07528 6.59375L8.93335 6.46615C8.56623 6.099 8.40817 5.63685 8.33439 5.08854C8.26244 4.5533 8.26408 3.87028 8.26408 3.02214V2.88021C8.16261 2.87394 8.01626 2.8724 7.78361 2.8724C6.78489 2.8724 6.07569 2.87394 5.53101 2.9375C5.06327 2.9921 4.76194 3.08829 4.53361 3.24089L4.43986 3.3099C4.33028 3.3984 4.23 3.49834 4.14169 3.60807C3.94851 3.84793 3.83172 4.16552 3.76929 4.70052C3.70573 5.24544 3.70419 5.95512 3.70419 6.95443V9.72135C3.70419 10.8827 3.70602 11.7076 3.79012 12.3333C3.87246 12.9457 4.02664 13.2977 4.28361 13.5547C4.70608 13.9772 5.36206 14.1065 6.9034 14.1289C7.15743 14.1326 7.36022 14.341 7.35653 14.5951C7.35281 14.849 7.14439 15.0519 6.89038 15.0482C5.41262 15.0267 4.35819 14.9313 3.63257 14.2057C3.17611 13.7493 2.9734 13.1702 2.87736 12.4557C2.78312 11.7545 2.78491 10.8566 2.78491 9.72135ZM9.18596 3.52474C9.18826 4.13819 9.19672 4.59894 9.24585 4.96484C9.30588 5.41141 9.41659 5.64728 9.58439 5.8151V5.81641C9.75183 5.98382 9.98745 6.09366 10.4334 6.15365C10.7989 6.20281 11.2594 6.20993 11.8722 6.21224L9.18596 3.52474Z" fill="#E4E4E4"/>+<path d="M9.62012 10.6055C9.80229 10.4284 10.0941 10.4324 10.2712 10.6146C10.4479 10.7967 10.4439 11.0873 10.262 11.2643C10.1481 11.3751 9.96451 11.5198 9.78418 11.6615C9.59338 11.8113 9.38379 11.9748 9.18652 12.1419C9.12347 12.1954 9.06476 12.2496 9.00814 12.3008H12.9847C13.2388 12.3008 13.4456 12.5077 13.4456 12.7617C13.4454 13.0155 13.2386 13.2214 12.9847 13.2214H9.00814C9.06476 13.2726 9.12347 13.3268 9.18652 13.3802C9.38377 13.5474 9.5934 13.7108 9.78418 13.8607C9.96454 14.0024 10.1481 14.1471 10.262 14.2578C10.444 14.4348 10.4478 14.7254 10.2712 14.9076C10.0941 15.0897 9.80229 15.095 9.62012 14.918C9.54936 14.8492 9.41289 14.7389 9.21647 14.5846C9.03019 14.4383 8.8046 14.2626 8.59147 14.082C8.38053 13.9033 8.1643 13.706 7.99772 13.5104C7.9142 13.4124 7.83391 13.3036 7.77246 13.1888C7.72792 13.1056 7.68359 13.0018 7.66439 12.8841L7.65527 12.7617L7.66439 12.6393C7.68352 12.5212 7.72778 12.4168 7.77246 12.3333C7.8339 12.2186 7.91423 12.1097 7.99772 12.0117C8.16432 11.8162 8.38055 11.6189 8.59147 11.4401C8.8046 11.2595 9.03019 11.0838 9.21647 10.9375C9.41237 10.7836 9.54924 10.6743 9.62012 10.6055Z" fill="#E4E4E4"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/importfile_icon.svg b/freemocap-ui/src/assets/icons/importfile_icon.svgnew file mode 100644index 00000000..99f013be--- /dev/null+++ b/freemocap-ui/src/assets/icons/importfile_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M4 12.1647L4 8.25163C4 7.03017 3.99884 6.06408 4.08789 5.30078C4.1784 4.52509 4.36809 3.88489 4.80078 3.34766C4.9626 3.14661 5.14525 2.96292 5.34603 2.80078C5.88297 2.36791 6.52373 2.17841 7.29915 2.08789C8.06218 1.99884 7.70249 1.99999 8.92317 1.99999C9.29566 1.99999 9.60525 1.99464 9.88834 2.04557L10.1634 2.11718L10.1667 2.11881C10.2361 2.14348 10.3036 2.17322 10.3701 2.20507C10.7156 2.37002 10.984 2.64643 11.3353 2.99772L14.9404 6.60449H14.9388C15.3462 7.01118 15.6707 7.32018 15.8405 7.73079C16.0098 8.14077 16 8.589 16 9.16471L16 11.5351C15.9999 11.8523 15.7427 12.1093 15.4255 12.1096C15.108 12.1096 14.8494 11.8525 14.8493 11.5351L14.8493 9.16471C14.8493 8.83398 14.8479 8.6238 14.8379 8.47786H14.6637C13.6041 8.47786 12.7513 8.47993 12.0824 8.38997C11.4825 8.30929 10.9652 8.14767 10.5378 7.80078L10.3603 7.64127C9.90145 7.18234 9.70387 6.60465 9.61165 5.91926C9.52171 5.25021 9.52376 4.39643 9.52376 3.33626V3.15885C9.39692 3.15101 9.21397 3.14908 8.92317 3.14908C7.67477 3.14908 8.11347 3.15102 7.43262 3.23047C6.84794 3.29872 6.47129 3.41896 6.18587 3.6097L6.06869 3.69596C5.93171 3.80659 5.80636 3.93152 5.69596 4.06868C5.4545 4.3685 5.3085 4.76549 5.23047 5.43424C5.15102 6.1154 5.14909 7.0025 5.14909 8.25163L5.14909 12.1647C5.14909 13.6164 5.15139 13.8983 5.25652 14.6804C5.35944 15.4459 5.55217 15.8858 5.87338 16.2071C6.40147 16.7352 7.22144 16.8968 9.14812 16.9248C9.46565 16.9295 9.71914 17.19 9.71453 17.5075C9.70988 17.825 9.44935 18.0785 9.13184 18.0739C7.28464 18.0471 5.9666 17.9279 5.05958 17.0209C4.489 16.4503 4.23561 15.7264 4.11557 14.8334C3.99777 13.9569 4 13.5838 4 12.1647ZM10.6761 3.96451C10.679 4.73132 10.6896 5.30726 10.751 5.76464C10.826 6.32285 10.9644 6.61768 11.1741 6.82747V6.8291C11.3834 7.03836 11.678 7.17566 12.2353 7.25064C12.6923 7.3121 13.2679 7.321 14.0338 7.32389L10.6761 3.96451Z" fill="#9B9B9B"/>+<path d="M11.4561 12.1628C11.6838 11.9414 12.0485 11.9464 12.2699 12.1741C12.4908 12.4018 12.4857 12.765 12.2585 12.9863C12.1161 13.1247 11.8865 13.3057 11.6611 13.4827C11.4226 13.6701 11.1606 13.8744 10.9141 14.0833C10.8352 14.1501 10.7619 14.2179 10.6911 14.2819H15.4238C15.7414 14.2819 16 14.5405 16 14.8581C15.9997 15.1754 15.7412 15.4326 15.4238 15.4326H10.6911C10.7619 15.4966 10.8352 15.5644 10.9141 15.6312C11.1606 15.8401 11.4227 16.0444 11.6611 16.2318C11.8866 16.4089 12.116 16.5897 12.2585 16.7282C12.4859 16.9494 12.4907 17.3127 12.2699 17.5404C12.0485 17.7681 11.6838 17.7747 11.4561 17.5534C11.3676 17.4674 11.197 17.3296 10.9515 17.1367C10.7186 16.9538 10.4367 16.7342 10.1702 16.5085C9.90657 16.285 9.63628 16.0384 9.42806 15.7939C9.32366 15.6714 9.22329 15.5354 9.14648 15.3919C9.09081 15.2879 9.0354 15.1582 9.01139 15.0111L9 14.8581L9.01139 14.7051C9.03531 14.5574 9.09063 14.4269 9.14648 14.3226C9.22328 14.1791 9.32369 14.0431 9.42806 13.9206C9.63631 13.6761 9.90659 13.4295 10.1702 13.2061C10.4367 12.9803 10.7186 12.7607 10.9515 12.5778C11.1964 12.3854 11.3675 12.2487 11.4561 12.1628Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/importproject_icon.svg b/freemocap-ui/src/assets/icons/importproject_icon.svgnew file mode 100644index 00000000..bbb8329f--- /dev/null+++ b/freemocap-ui/src/assets/icons/importproject_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M6.24951 4.00854C6.65578 4.04589 7.04097 4.21175 7.34937 4.4834L8.83618 5.79077C8.96053 5.90037 9.12088 5.96139 9.28662 5.96167H14.084C14.5964 5.96167 15.0888 6.1646 15.4512 6.52686C15.8136 6.88925 16.0176 7.38154 16.0176 7.89404V10.1255C16.0176 10.4707 15.7378 10.7505 15.3926 10.7505C15.0474 10.7505 14.7676 10.4707 14.7676 10.1255V7.89404C14.7676 7.71306 14.6954 7.53862 14.5674 7.41064C14.4394 7.28281 14.2649 7.21167 14.084 7.21167H9.28662C8.87523 7.21142 8.47607 7.07929 8.14648 6.83813L8.00977 6.72827L6.52417 5.4209C6.43071 5.33854 6.31682 5.28319 6.1958 5.26099L6.07251 5.25H4.93237C4.75151 5.2501 4.57809 5.3223 4.4502 5.4502C4.32232 5.57814 4.25003 5.75148 4.25 5.93237V13.0686C4.25004 13.2495 4.32235 13.4228 4.4502 13.5508C4.57809 13.6787 4.75153 13.7509 4.93237 13.751H6.38379C6.72897 13.751 7.00879 14.0308 7.00879 14.376C7.00879 14.7212 6.72897 15.001 6.38379 15.001H4.93237C4.42001 15.0009 3.92872 14.7969 3.56641 14.4346C3.20414 14.0722 3.00004 13.581 3 13.0686V5.93237C3.00003 5.41996 3.20411 4.92877 3.56641 4.56641C3.92872 4.20409 4.41999 4.0001 4.93237 4H6.07373L6.24951 4.00854Z" fill="#9B9B9B"/>+<path d="M11.8041 11.681C12.0318 11.4597 12.3965 11.4647 12.6179 11.6924C12.8389 11.92 12.8337 12.2833 12.6065 12.5046C12.4641 12.643 12.2346 12.824 12.0092 13.001C11.7707 13.1884 11.5087 13.3927 11.2621 13.6016C11.1833 13.6684 11.1099 13.7362 11.0391 13.8002H16.0098C16.3274 13.8002 16.586 14.0588 16.586 14.3763C16.5856 14.6936 16.3272 14.9509 16.0098 14.9509H11.0391C11.1099 15.0149 11.1833 15.0827 11.2621 15.1495C11.5086 15.3584 11.7707 15.5627 12.0092 15.75C12.2346 15.9271 12.4641 16.108 12.6065 16.2465C12.8339 16.4677 12.8387 16.831 12.6179 17.0586C12.3965 17.2864 12.0318 17.293 11.8041 17.0717C11.7156 16.9857 11.545 16.8479 11.2995 16.655C11.0667 16.4721 10.7847 16.2525 10.5183 16.0267C10.2546 15.8033 9.98431 15.5567 9.77608 15.3122C9.67168 15.1896 9.57131 15.0537 9.49451 14.9102C9.43883 14.8062 9.38342 14.6765 9.35942 14.5293L9.34802 14.3763L9.35942 14.2234C9.38333 14.0757 9.43865 13.9452 9.49451 13.8409C9.5713 13.6974 9.67171 13.5614 9.77608 13.4388C9.98433 13.1944 10.2546 12.9478 10.5183 12.7243C10.7847 12.4986 11.0667 12.279 11.2995 12.0961C11.5444 11.9037 11.7155 11.767 11.8041 11.681Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/importvideo_icon.svg b/freemocap-ui/src/assets/icons/importvideo_icon.svgnew file mode 100644index 00000000..c41867c8--- /dev/null+++ b/freemocap-ui/src/assets/icons/importvideo_icon.svg@@ -0,0 +1,5 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12.5853 9.46811C12.9811 9.71229 12.9811 10.2877 12.5853 10.5319L9.22932 12.6025C8.81292 12.8594 8.27614 12.5599 8.27614 12.0706L8.27614 7.92941C8.27614 7.44013 8.81292 7.14059 9.22932 7.3975L12.5853 9.46811Z" fill="#9B9B9B"/>+<path d="M14.8288 4.05123C16.5544 4.05156 17.9538 5.45058 17.9538 7.17623L17.9538 10.4871C17.9538 10.8323 17.674 11.1121 17.3288 11.1121C16.9837 11.1121 16.7038 10.8323 16.7038 10.4871L16.7038 7.17623C16.7038 6.14094 15.864 5.30156 14.8288 5.30123L5.1792 5.30121C4.1437 5.30121 3.30425 6.14071 3.3042 7.17621L3.30423 12.8196L3.314 13.0112C3.41023 13.9565 4.20858 14.6946 5.17923 14.6946L8.92298 14.6946C9.26816 14.6946 9.54798 14.9744 9.54798 15.3196C9.54798 15.6648 9.26816 15.9446 8.92298 15.9446L5.17923 15.9446C3.56107 15.9446 2.22994 14.7142 2.0701 13.1382L2.05301 12.8196L2.05298 7.17621C2.05303 5.45036 3.45334 4.05121 5.1792 4.05121L14.8288 4.05123Z" fill="#9B9B9B"/>+<path d="M14.0712 11.4961C14.2561 11.3164 14.5522 11.3205 14.732 11.5054C14.9114 11.6902 14.9072 11.9851 14.7227 12.1648C14.6071 12.2772 14.4207 12.4241 14.2377 12.5679C14.0441 12.72 13.8313 12.8858 13.6311 13.0555C13.5671 13.1097 13.5076 13.1648 13.4501 13.2167H17.486C17.7439 13.2167 17.9538 13.4267 17.9538 13.6845C17.9536 13.9422 17.7437 14.151 17.486 14.151H13.4501C13.5076 14.203 13.5671 14.258 13.6311 14.3123C13.8313 14.4819 14.0441 14.6478 14.2377 14.7999C14.4208 14.9437 14.6071 15.0906 14.7227 15.203C14.9073 15.3826 14.9113 15.6775 14.732 15.8624C14.5523 16.0473 14.2561 16.0527 14.0712 15.873C13.9994 15.8032 13.8609 15.6913 13.6615 15.5347C13.4725 15.3862 13.2435 15.2079 13.0272 15.0246C12.8131 14.8431 12.5937 14.6429 12.4246 14.4444C12.3398 14.3449 12.2583 14.2345 12.196 14.118C12.1508 14.0335 12.1058 13.9282 12.0863 13.8088L12.077 13.6845L12.0863 13.5603C12.1057 13.4404 12.1506 13.3345 12.196 13.2498C12.2583 13.1333 12.3398 13.0228 12.4246 12.9233C12.5937 12.7249 12.8131 12.5246 13.0272 12.3432C13.2435 12.1599 13.4725 11.9816 13.6615 11.8331C13.8604 11.6769 13.9993 11.5659 14.0712 11.4961Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/importvideos_icon.svg b/freemocap-ui/src/assets/icons/importvideos_icon.svgnew file mode 100644index 00000000..49f306fa--- /dev/null+++ b/freemocap-ui/src/assets/icons/importvideos_icon.svg@@ -0,0 +1,5 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.82461 7.14367C10.1412 7.33902 10.1412 7.79937 9.82461 7.99472L7.13983 9.6512C6.80671 9.85673 6.37728 9.6171 6.37728 9.22568L6.37728 5.91271C6.37728 5.52129 6.80671 5.28166 7.13983 5.48719L9.82461 7.14367Z" fill="#D9D9D9"/>+<path d="M11.8159 2.18816C13.1964 2.18843 14.3159 3.30765 14.3159 4.68816V8.38968C14.3159 8.66582 14.0921 8.88968 13.8159 8.88968C13.5398 8.88968 13.3159 8.66582 13.3159 8.38968V4.68816C13.3159 3.85993 12.6441 3.18843 11.8159 3.18816H4.18506C3.35666 3.18816 2.6851 3.85977 2.68506 4.68816V10.6003L2.69287 10.7536C2.76986 11.5098 3.40853 12.1003 4.18506 12.1003H7.1384C7.41454 12.1003 7.6384 12.3241 7.6384 12.6003C7.6384 12.8764 7.41454 13.1003 7.1384 13.1003H4.18506C2.89053 13.1003 1.82562 12.116 1.69775 10.8552L1.68408 10.6003V4.68816C1.68412 3.30749 2.80437 2.18816 4.18506 2.18816H11.8159Z" fill="#D9D9D9"/>+<path d="M11.8125 10.4289C11.9947 10.2518 12.2865 10.2558 12.4635 10.438C12.6403 10.6201 12.6362 10.9107 12.4544 11.0877C12.3405 11.1985 12.1569 11.3432 11.9766 11.4849C11.7858 11.6348 11.5762 11.7982 11.3789 11.9653C11.3159 12.0188 11.2571 12.073 11.2005 12.1242H15.1771C15.4311 12.1242 15.638 12.3311 15.638 12.5851C15.6378 12.839 15.431 13.0448 15.1771 13.0448H11.2005C11.2571 13.096 11.3158 13.1502 11.3789 13.2036C11.5762 13.3708 11.7858 13.5342 11.9766 13.6841C12.1569 13.8258 12.3405 13.9705 12.4544 14.0812C12.6363 14.2582 12.6402 14.5488 12.4635 14.731C12.2865 14.9131 11.9947 14.9184 11.8125 14.7414C11.7417 14.6726 11.6053 14.5624 11.4089 14.4081C11.2226 14.2617 10.997 14.0861 10.7839 13.9055C10.5729 13.7267 10.3567 13.5294 10.1901 13.3338C10.1066 13.2358 10.0263 13.127 9.96484 13.0122C9.92031 12.929 9.87597 12.8252 9.85677 12.7075L9.84766 12.5851L9.85677 12.4627C9.8759 12.3446 9.92016 12.2402 9.96484 12.1568C10.0263 12.042 10.1066 11.9332 10.1901 11.8351C10.3567 11.6396 10.5729 11.4423 10.7839 11.2635C10.997 11.0829 11.2226 10.9072 11.4089 10.7609C11.6048 10.607 11.7416 10.4977 11.8125 10.4289Z" fill="#E4E4E4"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/learn_icon.svg b/freemocap-ui/src/assets/icons/learn_icon.svgnew file mode 100644index 00000000..c041549a--- /dev/null+++ b/freemocap-ui/src/assets/icons/learn_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.9496 16.2479C10.3945 16.2481 10.7556 16.616 10.7556 17.0698V17.1789C10.7556 17.6327 10.3945 18.0006 9.9496 18.0009H9.84098C9.39616 18.0005 9.03501 17.6326 9.03495 17.1789V17.0698C9.03495 16.6161 9.39612 16.2482 9.84098 16.2479H9.9496ZM9.09005 13.75V11.5893C9.09034 11.1359 9.44991 10.7678 9.8945 10.7673C10.5387 10.7673 11.1715 10.5857 11.7207 10.2424C12.2694 9.89927 12.7145 9.4082 13.0068 8.82332C13.2992 8.238 13.4274 7.58069 13.3768 6.92585C13.3261 6.27114 13.099 5.64311 12.7203 5.11186C12.3417 4.58071 11.826 4.16713 11.2311 3.9159C10.6361 3.66474 9.98425 3.58519 9.34823 3.68795C8.71204 3.79086 8.1157 4.07192 7.62598 4.49863C7.13626 4.92536 6.77169 5.48237 6.5728 6.10715C6.4352 6.53848 5.98055 6.77517 5.55739 6.63529C5.13399 6.49514 4.90202 6.03002 5.03946 5.59826C5.33019 4.68541 5.86353 3.87162 6.57909 3.2481C7.29463 2.62481 8.16533 2.21539 9.09477 2.06499C10.0246 1.91458 10.9783 2.03008 11.8482 2.39728C12.7176 2.76446 13.4705 3.36932 14.0238 4.14546C14.5773 4.92204 14.9101 5.84036 14.9841 6.79743C15.058 7.75409 14.8711 8.71303 14.4441 9.56818C14.0169 10.4235 13.3654 11.1421 12.5629 11.6438C11.9916 12.001 11.3587 12.2365 10.7021 12.3438V13.75C10.7021 14.2037 10.3409 14.5715 9.89608 14.5719C9.45092 14.5719 9.09005 14.2039 9.09005 13.75Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/live_active_icon.svg b/freemocap-ui/src/assets/icons/live_active_icon.svgnew file mode 100644index 00000000..e6f69649--- /dev/null+++ b/freemocap-ui/src/assets/icons/live_active_icon.svg@@ -0,0 +1,25 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_105_2791)">+<path d="M9.26827 17.1935C9.26827 17.5453 9.7426 17.6572 9.89981 17.3425L14.2565 8.62011C14.3672 8.39848 14.206 8.13782 13.9583 8.13782H11.2155C11.0314 8.13782 10.8822 7.98858 10.8822 7.80449V2.76957C10.8822 2.41982 10.4122 2.30613 10.2524 2.61722L5.75202 11.3749C5.63803 11.5968 5.7991 11.8606 6.0485 11.8606H8.93494C9.11904 11.8606 9.26827 12.0099 9.26827 12.1939V17.1935Z" fill="#D7184B"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M13.9583 8.13782C14.206 8.13782 14.3672 8.39848 14.2565 8.62011L9.89981 17.3425C9.7426 17.6572 9.26827 17.5453 9.26827 17.1935V12.1939C9.26827 12.0099 9.11904 11.8606 8.93494 11.8606H6.0485C5.7991 11.8606 5.63803 11.5968 5.75202 11.3749L10.2524 2.61722C10.4122 2.30613 10.8822 2.41982 10.8822 2.76957V7.80449C10.8822 7.98858 11.0314 8.13782 11.2155 8.13782H13.9583Z" fill="#D7184B"/>+<g filter="url(#filter0_d_105_2791)">+<path d="M9.26827 17.1935C9.26827 17.5453 9.7426 17.6572 9.89981 17.3425L14.2565 8.62011C14.3672 8.39848 14.206 8.13782 13.9583 8.13782H11.2155C11.0314 8.13782 10.8822 7.98858 10.8822 7.80449V2.76957C10.8822 2.41982 10.4122 2.30613 10.2524 2.61722L5.75202 11.3749C5.63803 11.5968 5.7991 11.8606 6.0485 11.8606H8.93494C9.11904 11.8606 9.26827 12.0099 9.26827 12.1939V17.1935Z" fill="#16DD12"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M13.9583 8.13782C14.206 8.13782 14.3672 8.39848 14.2565 8.62011L9.89981 17.3425C9.7426 17.6572 9.26827 17.5453 9.26827 17.1935V12.1939C9.26827 12.0099 9.11904 11.8606 8.93494 11.8606H6.0485C5.7991 11.8606 5.63803 11.5968 5.75202 11.3749L10.2524 2.61722C10.4122 2.30613 10.8822 2.41982 10.8822 2.76957V7.80449C10.8822 7.98858 11.0314 8.13782 11.2155 8.13782H13.9583Z" fill="#16DD12"/>+</g>+</g>+<defs>+<filter id="filter0_d_105_2791" x="-1.28528" y="-4.56427" width="22.5774" height="29.0916" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feOffset/>+<feGaussianBlur stdDeviation="3.5"/>+<feComposite in2="hardAlpha" operator="out"/>+<feColorMatrix type="matrix" values="0 0 0 0 0.0862745 0 0 0 0 0.866667 0 0 0 0 0.0705882 0 0 0 0.66 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_105_2791"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_105_2791" result="shape"/>+</filter>+<clipPath id="clip0_105_2791">+<rect width="20" height="20" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/freemocap-ui/src/assets/icons/live_icon.svg b/freemocap-ui/src/assets/icons/live_icon.svgnew file mode 100644index 00000000..e100c771--- /dev/null+++ b/freemocap-ui/src/assets/icons/live_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.26827 17.1935C9.26827 17.5453 9.7426 17.6572 9.89981 17.3425L14.2565 8.62011C14.3672 8.39848 14.206 8.13782 13.9583 8.13782H11.2155C11.0314 8.13782 10.8822 7.98858 10.8822 7.80449V2.76957C10.8822 2.41982 10.4122 2.30613 10.2524 2.61722L5.75202 11.3749C5.63803 11.5968 5.7991 11.8606 6.0485 11.8606H8.93494C9.11904 11.8606 9.26827 12.0099 9.26827 12.1939V17.1935Z" fill="#9B9B9B"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M13.9583 8.13782C14.206 8.13782 14.3672 8.39848 14.2565 8.62011L9.89981 17.3425C9.7426 17.6572 9.26827 17.5453 9.26827 17.1935V12.1939C9.26827 12.0099 9.11904 11.8606 8.93494 11.8606H6.0485C5.7991 11.8606 5.63803 11.5968 5.75202 11.3749L10.2524 2.61722C10.4122 2.30613 10.8822 2.41982 10.8822 2.76957V7.80449C10.8822 7.98858 11.0314 8.13782 11.2155 8.13782H13.9583Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/liveoff_icon.svg b/freemocap-ui/src/assets/icons/liveoff_icon.svgnew file mode 100644index 00000000..e100c771--- /dev/null+++ b/freemocap-ui/src/assets/icons/liveoff_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.26827 17.1935C9.26827 17.5453 9.7426 17.6572 9.89981 17.3425L14.2565 8.62011C14.3672 8.39848 14.206 8.13782 13.9583 8.13782H11.2155C11.0314 8.13782 10.8822 7.98858 10.8822 7.80449V2.76957C10.8822 2.41982 10.4122 2.30613 10.2524 2.61722L5.75202 11.3749C5.63803 11.5968 5.7991 11.8606 6.0485 11.8606H8.93494C9.11904 11.8606 9.26827 12.0099 9.26827 12.1939V17.1935Z" fill="#9B9B9B"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M13.9583 8.13782C14.206 8.13782 14.3672 8.39848 14.2565 8.62011L9.89981 17.3425C9.7426 17.6572 9.26827 17.5453 9.26827 17.1935V12.1939C9.26827 12.0099 9.11904 11.8606 8.93494 11.8606H6.0485C5.7991 11.8606 5.63803 11.5968 5.75202 11.3749L10.2524 2.61722C10.4122 2.30613 10.8822 2.41982 10.8822 2.76957V7.80449C10.8822 7.98858 11.0314 8.13782 11.2155 8.13782H13.9583Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/load_icon.svg b/freemocap-ui/src/assets/icons/load_icon.svgnew file mode 100644index 00000000..e3b95944--- /dev/null+++ b/freemocap-ui/src/assets/icons/load_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.6787 8.90259C11.6165 9.38746 12.3576 10.2732 13.0432 11.051C13.072 11.0836 13.0991 11.1191 13.1299 11.1499C13.4291 11.498 13.3901 12.0238 13.042 12.323C12.6856 12.6293 12.1521 12.5597 11.8518 12.2144C11.7583 12.1068 11.3069 11.5957 10.8313 11.134V14.5496C10.8313 15.0086 10.4591 15.3809 10 15.3809C9.54092 15.3808 9.1687 15.0086 9.1687 14.5496V11.134C8.66226 11.6257 8.18324 12.174 8.13477 12.2302C7.8373 12.5744 7.30521 12.6214 6.95801 12.323C6.60997 12.0238 6.57095 11.4992 6.87012 11.1511C6.88822 11.1149 6.93033 11.0811 6.95679 11.051C7.11895 10.867 7.49057 10.4519 7.9187 10.0293C8.34016 9.61328 8.78971 9.17742 9.32129 8.90259C9.47464 8.82333 9.71859 8.71827 10 8.71826C10.2411 8.74005 10.4608 8.78995 10.6787 8.90259Z" fill="#9B9B9B"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M11.1841 1.6687C12.6477 1.6687 13.8338 1.66707 14.7656 1.79932C15.7262 1.93569 16.5387 2.22882 17.179 2.90527C17.8126 3.5749 18.0815 4.41241 18.208 5.40405C18.332 6.37639 18.3313 7.61738 18.3313 9.16626V12.5C18.3313 12.5029 18.3301 12.5057 18.3301 12.5085C18.3277 13.4352 18.3147 14.2128 18.2349 14.8547C18.1347 15.6598 17.9198 16.3591 17.4121 16.947C16.7139 17.755 15.7492 18.1232 14.7009 18.241C13.8857 18.3325 12.8569 18.3313 11.5784 18.3313H8.42163C7.14311 18.3313 6.11426 18.3325 5.29907 18.241C4.25084 18.1232 3.28606 17.755 2.58789 16.947C2.08053 16.3589 1.86533 15.6598 1.76514 14.8547C1.68527 14.2128 1.67106 13.4352 1.6687 12.5085V9.16626C1.6687 7.6175 1.66687 6.37647 1.79077 5.40405C1.91716 4.41216 2.18754 3.5748 2.82227 2.90527C3.46278 2.22976 4.27384 1.93582 5.23438 1.79932C6.16617 1.66694 7.35213 1.6687 8.81592 1.6687H11.1841ZM8.42163 7.0813C7.10437 7.0813 6.18532 7.08194 5.48462 7.16065C4.88548 7.22797 4.5281 7.34545 4.27002 7.51221C3.71851 7.9034 3.49741 8.43244 3.41431 9.10034C3.33258 9.7573 3.3313 10.621 3.3313 11.875C3.3313 13.1294 3.33258 13.9929 3.41431 14.6497C3.49333 15.2846 3.63696 15.6178 3.84644 15.8606C4.27183 16.3526 4.85217 16.5183 5.48462 16.5894C6.18542 16.6681 7.10437 16.6687 8.42163 16.6687H11.5784C12.8956 16.6687 13.8146 16.6681 14.5154 16.5894C15.1462 16.5185 15.73 16.3505 16.1536 15.8606C16.3628 15.6183 16.5067 15.2848 16.5857 14.6497C16.6674 13.9928 16.6687 13.1292 16.6687 11.875C16.6687 10.6208 16.6674 9.75717 16.5857 9.10034C16.5026 8.43251 16.2815 7.90338 15.73 7.51221C15.4723 7.34559 15.115 7.228 14.5154 7.16065C13.8145 7.08194 12.8952 7.0813 11.5784 7.0813H8.42163ZM8.81592 3.3313C7.30273 3.3313 6.25537 3.33287 5.46753 3.44483C4.70867 3.55272 4.31302 3.74881 4.02832 4.04907C3.51973 4.58575 3.44624 5.39368 3.39234 6.09985C3.94497 5.74994 4.57916 5.58992 5.29907 5.50903C6.11416 5.41749 7.14311 5.4187 8.42163 5.4187H11.5784C12.8565 5.4187 13.8857 5.41749 14.7009 5.50903C15.4205 5.58987 16.054 5.75122 16.6064 6.10108C16.5524 5.39336 16.4802 4.58634 15.9705 4.04785C15.6863 3.74789 15.2913 3.55257 14.5325 3.44483C13.7445 3.33296 12.6974 3.3313 11.1841 3.3313H8.81592Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/loader_icon.svg b/freemocap-ui/src/assets/icons/loader_icon.svgnew file mode 100644index 00000000..bc0e447e--- /dev/null+++ b/freemocap-ui/src/assets/icons/loader_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M15.2637 9.99926C15.2637 7.46727 13.2109 5.41461 10.679 5.41457C8.14697 5.41457 6.09429 7.46725 6.09429 9.99926C6.09433 12.5312 8.14699 14.5839 10.679 14.5839C13.2109 14.5839 15.2636 12.5312 15.2637 9.99926ZM16.7207 9.99926C16.7207 13.3359 14.0156 16.041 10.679 16.041C7.34227 16.041 4.63725 13.336 4.63721 9.99926C4.63721 6.66252 7.34224 3.95749 10.679 3.95749C14.0157 3.95753 16.7207 6.66255 16.7207 9.99926Z" fill="#060606"/>+<path d="M9.49242 14.428C9.88107 14.5321 10.1117 14.9316 10.0076 15.3203C9.90325 15.7087 9.5038 15.9395 9.1153 15.8354C5.89238 14.9719 3.97976 11.6587 4.84312 8.43582C5.28054 6.80333 6.34784 5.50535 7.71116 4.73631C8.06156 4.53888 8.50569 4.6636 8.70332 5.01394C8.90075 5.36434 8.7774 5.80884 8.42706 6.00647C7.39074 6.59109 6.58254 7.57395 6.25055 8.81294C5.59547 11.2586 7.04681 13.7727 9.49242 14.428Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/loop_icon.svg b/freemocap-ui/src/assets/icons/loop_icon.svgnew file mode 100644index 00000000..c5096dd4--- /dev/null+++ b/freemocap-ui/src/assets/icons/loop_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M1.62012 11.9796V9.52479C1.62012 7.68499 3.11162 6.19349 4.95142 6.19349H6.29785C6.75694 6.19349 7.12915 6.5657 7.12915 7.02479C7.12905 7.48379 6.75687 7.85609 6.29785 7.85609H4.95142C4.02979 7.85609 3.28271 8.60316 3.28271 9.52479V11.9796C3.28271 12.9012 4.02979 13.6483 4.95142 13.6483H15.0491C15.9704 13.648 16.7178 12.9011 16.7178 11.9796V9.52479C16.7178 8.60336 15.9704 7.8564 15.0491 7.85609H11.4175L12.3452 8.78382C12.6697 9.10837 12.6696 9.63473 12.3452 9.95936C12.0206 10.284 11.4943 10.284 11.1697 9.95936L8.82227 7.61195C8.66653 7.45612 8.57818 7.2451 8.57812 7.02479C8.57812 6.80433 8.66638 6.5923 8.82227 6.43641L11.1697 4.089C11.4943 3.76488 12.0207 3.7647 12.3452 4.089C12.6698 4.41362 12.6698 4.94113 12.3452 5.26576L11.4175 6.19349H15.0491C16.8886 6.1938 18.3792 7.68518 18.3792 9.52479V11.9796C18.3792 13.8192 16.8886 15.3106 15.0491 15.3109H4.95142C3.11162 15.3109 1.62012 13.8194 1.62012 11.9796Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/loopactive_icon.svg b/freemocap-ui/src/assets/icons/loopactive_icon.svgnew file mode 100644index 00000000..d033b0a1--- /dev/null+++ b/freemocap-ui/src/assets/icons/loopactive_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M1.62012 11.9796V9.52479C1.62012 7.68499 3.11162 6.19349 4.95142 6.19349H6.29785C6.75694 6.19349 7.12915 6.5657 7.12915 7.02479C7.12905 7.48379 6.75687 7.85609 6.29785 7.85609H4.95142C4.02979 7.85609 3.28271 8.60316 3.28271 9.52479V11.9796C3.28271 12.9012 4.02979 13.6483 4.95142 13.6483H15.0491C15.9704 13.648 16.7178 12.9011 16.7178 11.9796V9.52479C16.7178 8.60336 15.9704 7.8564 15.0491 7.85609H11.4175L12.3452 8.78382C12.6697 9.10837 12.6696 9.63473 12.3452 9.95936C12.0206 10.284 11.4943 10.284 11.1697 9.95936L8.82227 7.61195C8.66653 7.45612 8.57818 7.2451 8.57812 7.02479C8.57812 6.80433 8.66638 6.5923 8.82227 6.43641L11.1697 4.089C11.4943 3.76488 12.0207 3.7647 12.3452 4.089C12.6698 4.41362 12.6698 4.94113 12.3452 5.26576L11.4175 6.19349H15.0491C16.8886 6.1938 18.3792 7.68518 18.3792 9.52479V11.9796C18.3792 13.8192 16.8886 15.3106 15.0491 15.3109H4.95142C3.11162 15.3109 1.62012 13.8194 1.62012 11.9796Z" fill="#0898FF"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/mic_active_icon.svg b/freemocap-ui/src/assets/icons/mic_active_icon.svgnew file mode 100644index 00000000..90bb74b1--- /dev/null+++ b/freemocap-ui/src/assets/icons/mic_active_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.34053 11.269C7.88499 10.8135 7.65722 10.2603 7.65722 9.60954V4.92395C7.65722 4.27318 7.88499 3.72002 8.34053 3.26448C8.79608 2.80893 9.34924 2.58116 10 2.58116C10.6508 2.58116 11.2039 2.80893 11.6595 3.26448C12.115 3.72002 12.3428 4.27318 12.3428 4.92395V9.60954C12.3428 10.2603 12.115 10.8135 11.6595 11.269C11.2039 11.7246 10.6508 11.9523 10 11.9523C9.34924 11.9523 8.79608 11.7246 8.34053 11.269ZM9.21908 16.6379V15.0175C8.02165 14.8483 6.99681 14.3407 6.14456 13.4947C5.2923 12.6487 4.7748 11.6204 4.59207 10.41C4.56604 10.1887 4.62461 10 4.76778 9.84382C4.91095 9.68763 5.09316 9.60954 5.31443 9.60954C5.53569 9.60954 5.72129 9.68451 5.87123 9.83444C6.02117 9.98438 6.12191 10.1697 6.17345 10.3905C6.35567 11.3016 6.80809 12.0499 7.53071 12.6356C8.25333 13.2213 9.07643 13.5142 10 13.5142C10.9371 13.5142 11.7636 13.2182 12.4795 12.6263C13.1953 12.0343 13.6444 11.2891 13.8266 10.3905C13.8786 10.1692 13.9796 9.98386 14.1296 9.83444C14.2795 9.68503 14.4649 9.61006 14.6856 9.60954C14.9063 9.60902 15.0886 9.68711 15.2322 9.84382C15.3759 10.0005 15.4345 10.1892 15.408 10.41C15.2257 11.5944 14.7116 12.6161 13.8656 13.4751C13.0196 14.3342 11.9914 14.8483 10.7809 15.0175V16.6379C10.7809 16.8592 10.706 17.0448 10.556 17.1947C10.4061 17.3447 10.2208 17.4194 10 17.4188C9.77927 17.4183 9.59393 17.3434 9.44399 17.1939C9.29405 17.0445 9.21908 16.8592 9.21908 16.6379ZM10.5568 10.1663C10.7062 10.0164 10.7809 9.8308 10.7809 9.60954V4.92395C10.7809 4.70269 10.706 4.51735 10.556 4.36793C10.4061 4.21851 10.2208 4.14354 10 4.14302C9.77927 4.1425 9.59393 4.21747 9.44399 4.36793C9.29405 4.51839 9.21908 4.70373 9.21908 4.92395V9.60954C9.21908 9.8308 9.29405 10.0164 9.44399 10.1663C9.59393 10.3163 9.77927 10.391 10 10.3905C10.2208 10.3899 10.4064 10.315 10.5568 10.1656" fill="#0898FF"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/mic_icon.svg b/freemocap-ui/src/assets/icons/mic_icon.svgnew file mode 100644index 00000000..edc40d50--- /dev/null+++ b/freemocap-ui/src/assets/icons/mic_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.34053 11.269C7.88499 10.8135 7.65722 10.2603 7.65722 9.60954V4.92395C7.65722 4.27318 7.88499 3.72002 8.34053 3.26448C8.79608 2.80893 9.34924 2.58116 10 2.58116C10.6508 2.58116 11.2039 2.80893 11.6595 3.26448C12.115 3.72002 12.3428 4.27318 12.3428 4.92395V9.60954C12.3428 10.2603 12.115 10.8135 11.6595 11.269C11.2039 11.7246 10.6508 11.9523 10 11.9523C9.34924 11.9523 8.79608 11.7246 8.34053 11.269ZM9.21908 16.6379V15.0175C8.02165 14.8483 6.99681 14.3407 6.14456 13.4947C5.2923 12.6487 4.7748 11.6204 4.59207 10.41C4.56604 10.1887 4.62461 10 4.76778 9.84382C4.91095 9.68763 5.09316 9.60954 5.31443 9.60954C5.53569 9.60954 5.72129 9.68451 5.87123 9.83444C6.02117 9.98438 6.12191 10.1697 6.17345 10.3905C6.35567 11.3016 6.80809 12.0499 7.53071 12.6356C8.25333 13.2213 9.07643 13.5142 10 13.5142C10.9371 13.5142 11.7636 13.2182 12.4795 12.6263C13.1953 12.0343 13.6444 11.2891 13.8266 10.3905C13.8786 10.1692 13.9796 9.98386 14.1296 9.83444C14.2795 9.68503 14.4649 9.61006 14.6856 9.60954C14.9063 9.60902 15.0886 9.68711 15.2322 9.84382C15.3759 10.0005 15.4345 10.1892 15.408 10.41C15.2257 11.5944 14.7116 12.6161 13.8656 13.4751C13.0196 14.3342 11.9914 14.8483 10.7809 15.0175V16.6379C10.7809 16.8592 10.706 17.0448 10.556 17.1947C10.4061 17.3447 10.2208 17.4194 10 17.4188C9.77927 17.4183 9.59393 17.3434 9.44399 17.1939C9.29405 17.0445 9.21908 16.8592 9.21908 16.6379ZM10.5568 10.1663C10.7062 10.0164 10.7809 9.8308 10.7809 9.60954V4.92395C10.7809 4.70269 10.706 4.51735 10.556 4.36793C10.4061 4.21851 10.2208 4.14354 10 4.14302C9.77927 4.1425 9.59393 4.21747 9.44399 4.36793C9.29405 4.51839 9.21908 4.70373 9.21908 4.92395V9.60954C9.21908 9.8308 9.29405 10.0164 9.44399 10.1663C9.59393 10.3163 9.77927 10.391 10 10.3905C10.2208 10.3899 10.4064 10.315 10.5568 10.1656" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/minus_icon.svg b/freemocap-ui/src/assets/icons/minus_icon.svgnew file mode 100644index 00000000..0de2c9c0--- /dev/null+++ b/freemocap-ui/src/assets/icons/minus_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M14.3986 9.15831C14.6057 9.15831 14.7736 9.3262 14.7736 9.53331V10.4459C14.7736 10.653 14.6057 10.8209 14.3986 10.8209H5.60144C5.39433 10.8209 5.22644 10.653 5.22644 10.4459V9.53331C5.22644 9.3262 5.39433 9.15831 5.60144 9.15831H14.3986Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/pause_icon.svg b/freemocap-ui/src/assets/icons/pause_icon.svgnew file mode 100644index 00000000..19a4a78d--- /dev/null+++ b/freemocap-ui/src/assets/icons/pause_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12.8823 15.0371C12.33 15.0371 11.8823 14.5894 11.8823 14.0371V5.96291C11.8823 5.41062 12.33 4.96291 12.8823 4.96291H14.1761C14.7284 4.96291 15.1761 5.41062 15.1761 5.96291V14.0371C15.1761 14.5894 14.7284 15.0371 14.1761 15.0371H12.8823ZM5.8241 15.0371C5.27181 15.0371 4.8241 14.5894 4.8241 14.0371V5.96291C4.8241 5.41062 5.27181 4.96291 5.8241 4.96291H7.11791C7.6702 4.96291 8.11791 5.41062 8.11791 5.96291V14.0371C8.11791 14.5894 7.6702 15.0371 7.11791 15.0371H5.8241Z" fill="#E4E4E4"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/play_icon.svg b/freemocap-ui/src/assets/icons/play_icon.svgnew file mode 100644index 00000000..e0011c60--- /dev/null+++ b/freemocap-ui/src/assets/icons/play_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M14.4266 9.14895C15.0598 9.53964 15.0598 10.4604 14.4266 10.851L7.71502 14.992C7.04878 15.4031 6.18993 14.9238 6.18993 14.1409L6.18993 5.85904C6.18993 5.0762 7.04879 4.59694 7.71502 5.008L14.4266 9.14895Z" fill="#E4E4E4"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/plus_icon.svg b/freemocap-ui/src/assets/icons/plus_icon.svgnew file mode 100644index 00000000..9ccba6d1--- /dev/null+++ b/freemocap-ui/src/assets/icons/plus_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.8423 8.78271C10.8423 8.98982 11.0102 9.15771 11.2173 9.15771H14.3992C14.6063 9.15771 14.7742 9.32561 14.7742 9.53271V10.4453C14.7742 10.6524 14.6063 10.8203 14.3992 10.8203H11.2161C11.009 10.8203 10.8411 10.9882 10.8411 11.1953V14.3992C10.8411 14.6063 10.6732 14.7742 10.4661 14.7742H9.55347C9.34636 14.7742 9.17847 14.6063 9.17847 14.3992V11.1953C9.17847 10.9882 9.01057 10.8203 8.80347 10.8203H5.60083C5.39372 10.8203 5.22583 10.6524 5.22583 10.4453V9.53271C5.22583 9.32561 5.39372 9.15771 5.60083 9.15771H8.80469C9.01179 9.15771 9.17969 8.98982 9.17969 8.78271V5.60205C9.17969 5.39494 9.34758 5.22705 9.55469 5.22705H10.4673C10.6744 5.22705 10.8423 5.39494 10.8423 5.60205V8.78271Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/processmocap_icon.svg b/freemocap-ui/src/assets/icons/processmocap_icon.svgnew file mode 100644index 00000000..7a6c9f3d--- /dev/null+++ b/freemocap-ui/src/assets/icons/processmocap_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M10.2045 2.67376C10.7548 2.67376 11.2826 2.89238 11.6717 3.28152C12.0609 3.67067 12.2795 4.19846 12.2795 4.74879C12.2795 5.29912 12.0609 5.82691 11.6717 6.21605C11.2826 6.60519 10.7548 6.82381 10.2045 6.82381C9.65412 6.82381 9.12633 6.60519 8.73719 6.21605C8.34805 5.82691 8.12943 5.29912 8.12943 4.74879C8.12943 4.19846 8.34805 3.67067 8.73719 3.28152C9.12633 2.89238 9.65412 2.67376 10.2045 2.67376ZM6.99325 8.58142L7.52206 8.84646L5.73827 12.6114C5.67249 12.7436 5.47386 12.8758 5.3423 12.8094L3.55404 12.347C3.02586 12.2148 2.49705 12.545 2.36548 13.0738C2.23328 13.602 2.56347 14.1308 3.09164 14.263L4.8799 14.7254C5.07789 14.7912 5.27588 14.7912 5.47386 14.7912C6.46507 14.7912 7.32344 14.1972 7.65363 13.2718L7.78583 12.8758L9.37164 13.9328C9.40584 13.9349 9.43809 13.9494 9.46231 13.9737C9.48654 13.9979 9.50109 14.0302 9.5032 14.0644L10.428 16.7314C10.626 17.1274 10.9568 17.326 11.3528 17.326C11.485 17.326 11.6172 17.326 11.7487 17.2602C12.2776 16.9958 12.4762 16.4677 12.2776 15.9388L11.3528 13.2718C11.1548 12.8758 10.8904 12.5456 10.4944 12.2812L8.57841 11.0262L9.30521 9.70483L10.23 10.1672C11.089 10.5632 12.146 10.4316 12.8722 9.70483L14.0901 8.47476C14.4861 8.07879 14.4861 7.48355 14.0901 7.08758C13.6941 6.69161 13.0995 6.69161 12.7029 7.08758L11.485 8.31765C11.3528 8.44985 11.2212 8.44985 11.089 8.38407L9.30521 7.45928L7.85225 6.73248C7.25765 6.46807 6.66306 6.40229 6.06846 6.60028C5.4745 6.79826 5.01147 7.26065 4.7477 7.78947L3.82291 9.54388C3.62493 10.0063 3.82291 10.6009 4.28531 10.8653C4.779 11.1118 5.31548 10.9534 5.60607 10.4687L6.53085 8.71426C6.66306 8.58205 6.86104 8.51563 6.99325 8.58142ZM12.648 13.9328L12.3606 13.7412L12.107 13.0112C12.096 12.9788 12.0826 12.9469 12.0668 12.9154C11.8164 12.414 11.4658 11.9702 10.937 11.6176L10.9319 11.6138L9.82956 10.8921L9.84233 10.8666L9.87299 10.8819L9.88576 10.8883L9.89534 10.8927C10.5424 11.1917 11.2713 11.2641 11.9646 11.0984L13.7708 12.2818C14.1674 12.5462 14.4318 12.8758 14.6298 13.2724L15.5546 15.9395C15.7525 16.4683 15.5546 16.9965 15.0264 17.2609C14.8942 17.3267 14.762 17.3267 14.6298 17.3267C14.2338 17.3267 13.903 17.1287 13.705 16.7327L12.7802 14.065C12.7802 13.9992 12.7144 13.9328 12.648 13.9328ZM15.9799 7.08758L15.1816 7.89357C15.1554 8.30679 14.9798 8.71298 14.656 9.03742L13.5281 10.1768C14.3832 10.5613 15.4287 10.4259 16.1491 9.70483L17.3671 8.47476C17.7631 8.07879 17.7631 7.48355 17.3671 7.08758C16.9705 6.69161 16.3759 6.69161 15.9799 7.08758ZM12.4455 2.95031C12.8557 3.4599 13.0788 4.09464 13.0778 4.74879C13.0778 5.24758 12.9507 5.717 12.7265 6.12639C13.3537 5.86453 14.0869 5.9846 14.617 6.48595C15.0741 6.19253 15.3979 5.73157 15.519 5.20204C15.64 4.67251 15.5485 4.11664 15.2643 3.65379C14.98 3.19093 14.5256 2.85799 13.9985 2.72646C13.4715 2.59493 12.914 2.6753 12.4455 2.95031Z" fill="#E4E4E4"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/record_icon.svg b/freemocap-ui/src/assets/icons/record_icon.svgnew file mode 100644index 00000000..2e133036--- /dev/null+++ b/freemocap-ui/src/assets/icons/record_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.99992 14.4028C11.1676 14.4028 12.2875 13.9389 13.1132 13.1132C13.9388 12.2876 14.4027 11.1677 14.4027 10C14.4027 8.8323 13.9388 7.71244 13.1132 6.88676C12.2875 6.06107 11.1676 5.59721 9.99992 5.59721C8.83223 5.59721 7.71236 6.06107 6.88668 6.88676C6.061 7.71244 5.59713 8.8323 5.59713 10C5.59713 11.1677 6.061 12.2876 6.88668 13.1132C7.71236 13.9389 8.83223 14.4028 9.99992 14.4028ZM9.99992 2.29512C7.95646 2.29512 5.99669 3.10688 4.55175 4.55183C3.10681 5.99677 2.29504 7.95654 2.29504 10C2.29504 12.0435 3.10681 14.0032 4.55175 15.4482C5.99669 16.8931 7.95646 17.7049 9.99992 17.7049C12.0434 17.7049 14.0031 16.8931 15.4481 15.4482C16.893 14.0032 17.7048 12.0435 17.7048 10C17.7048 7.95654 16.893 5.99677 15.4481 4.55183C14.0031 3.10688 12.0434 2.29512 9.99992 2.29512ZM3.39574 10C3.39574 9.13272 3.56656 8.27394 3.89845 7.47269C4.23034 6.67143 4.7168 5.94339 5.33006 5.33014C5.94331 4.71688 6.67135 4.23042 7.47261 3.89853C8.27387 3.56664 9.13265 3.39582 9.99992 3.39582C10.8672 3.39582 11.726 3.56664 12.5272 3.89853C13.3285 4.23042 14.0565 4.71688 14.6698 5.33014C15.283 5.94339 15.7695 6.67143 16.1014 7.47269C16.4333 8.27394 16.6041 9.13272 16.6041 10C16.6041 11.7515 15.9083 13.4313 14.6698 14.6699C13.4313 15.9084 11.7515 16.6042 9.99992 16.6042C8.24838 16.6042 6.56858 15.9084 5.33006 14.6699C4.09154 13.4313 3.39574 11.7515 3.39574 10Z" fill="#E4E4E4"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/reset_icon.svg b/freemocap-ui/src/assets/icons/reset_icon.svgnew file mode 100644index 00000000..9314d97e--- /dev/null+++ b/freemocap-ui/src/assets/icons/reset_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M16.4638 8.73644C16.2877 7.87177 15.9421 7.05057 15.4468 6.32025C14.9616 5.60075 14.3423 4.98147 13.6228 4.49628C12.8916 4.00274 12.0707 3.65721 11.2066 3.47921C10.7526 3.38698 10.2903 3.34171 9.827 3.3441V2.15799C9.827 2.02782 9.6782 1.9537 9.5743 2.03211L7.01014 3.96732C6.92654 4.03042 6.92654 4.15598 7.01014 4.21908L9.5743 6.15429C9.6782 6.23271 9.827 6.15859 9.827 6.02841V4.84531C10.1903 4.84381 10.5536 4.87833 10.9041 4.95039C11.5757 5.08879 12.2137 5.3573 12.7821 5.74078C13.3424 6.11844 13.8246 6.60063 14.2023 7.16092C14.7886 8.0281 15.1013 9.05123 15.1 10.098C15.1005 10.8006 14.9601 11.4961 14.6872 12.1434C14.5552 12.4556 14.3933 12.7542 14.2038 13.0352C14.0147 13.3152 13.799 13.5764 13.5598 13.815C12.8331 14.5402 11.9107 15.0376 10.9056 15.2464C10.2067 15.3882 9.48637 15.3882 8.78742 15.2464C8.11552 15.1079 7.47726 14.8391 6.90866 14.4553C6.34904 14.0779 5.86738 13.5963 5.49001 13.0367C4.90438 12.1685 4.5915 11.1452 4.59154 10.098H3.09033C3.09022 11.4445 3.49249 12.7603 4.24551 13.8766C4.73185 14.5942 5.35034 15.2127 6.06798 15.699C7.18309 16.4538 8.49927 16.856 9.84577 16.8535C10.3031 16.8539 10.7593 16.8079 11.2074 16.7161C12.0712 16.538 12.8918 16.1925 13.6228 15.699C13.9815 15.4567 14.316 15.1805 14.6219 14.8741C14.9285 14.5681 15.205 14.2333 15.4475 13.8743C16.2017 12.7596 16.6036 11.4439 16.6012 10.098C16.6016 9.64069 16.5556 9.18448 16.4638 8.73644Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/rotate_icon.svg b/freemocap-ui/src/assets/icons/rotate_icon.svgnew file mode 100644index 00000000..6d9ff0f8--- /dev/null+++ b/freemocap-ui/src/assets/icons/rotate_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M14.7804 14.9883L14.7889 15.0033C15.0654 15.4935 15.7456 15.6068 16.1398 15.1956C16.479 14.8452 16.785 14.4539 17.0505 14.0258C17.3485 13.5496 17.076 12.9081 16.5335 12.7569C16.1722 12.6626 15.7913 12.7979 15.5941 13.1179C15.4001 13.4261 15.1741 13.7126 14.9235 13.9732C14.7909 14.1029 14.705 14.2728 14.6791 14.4564C14.6532 14.64 14.6889 14.827 14.7804 14.9883ZM18.1076 10.2787C18.1018 9.77501 18.0423 9.28178 17.929 8.799C17.801 8.25493 17.1603 8.00009 16.6777 8.2723L16.655 8.28506C16.3308 8.46796 16.1558 8.84498 16.244 9.21272C16.3236 9.56538 16.3646 9.91997 16.3712 10.284C16.373 10.4673 16.4348 10.6449 16.547 10.7898C16.6593 10.9346 16.8158 11.0388 16.9928 11.0864L17.0281 11.0963C17.5589 11.2442 18.1163 10.8403 18.1076 10.2787Z" fill="#9B9B9B"/>+<path d="M3.99042 6.80359C3.56614 7.65159 3.30922 8.57339 3.23371 9.51859C3.11606 10.9841 3.44597 12.4728 4.17487 13.7495L2.72687 14.6299C2.60033 14.7068 2.61326 14.8945 2.74916 14.9533L6.92114 16.76C7.02607 16.8057 7.14557 16.7383 7.16074 16.6248L7.40187 12.1985C7.4099 12.051 7.24845 11.9553 7.12272 12.0328C6.72525 12.2777 6.02336 12.7069 5.60356 12.9437C4.65976 11.2865 4.61766 9.2165 5.45856 7.53668C5.96908 6.51314 6.77492 5.66629 7.77187 5.10561C8.44019 4.72798 9.17746 4.48821 9.94007 4.40049C10.6748 4.31672 11.424 4.37662 12.1361 4.57608C12.9525 4.80451 13.7051 5.20914 14.3427 5.75768C14.6855 6.05265 15.1994 6.09327 15.5406 5.79637C15.8825 5.49881 15.9211 4.97637 15.5872 4.66982C15.0813 4.20539 14.512 3.81291 13.8953 3.50469C13.0486 3.08199 12.1224 2.82386 11.1792 2.74767C9.71339 2.62838 8.24558 2.95212 6.96598 3.67693C5.69028 4.39497 4.64201 5.4927 3.99042 6.80359Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/save_icon.svg b/freemocap-ui/src/assets/icons/save_icon.svgnew file mode 100644index 00000000..d5db1882--- /dev/null+++ b/freemocap-ui/src/assets/icons/save_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M1.66626 14.9996V7.4996C1.66637 6.83671 1.92994 6.20077 2.39868 5.73203C2.86743 5.26328 3.50337 4.99971 4.16626 4.9996H6.66626C7.1265 4.9996 7.5 5.37311 7.5 5.83334C7.5 6.29358 7.1265 6.66708 6.66626 6.66708H4.16626C3.94539 6.66719 3.73407 6.75504 3.57788 6.91122C3.4217 7.06741 3.33385 7.27874 3.33374 7.4996V14.9996C3.33374 15.2206 3.4216 15.4329 3.57788 15.5892C3.73405 15.7453 3.94549 15.8332 4.16626 15.8333H15.8337C16.0545 15.8332 16.266 15.7453 16.4221 15.5892C16.5784 15.4329 16.6663 15.2206 16.6663 14.9996V7.4996C16.6662 7.27874 16.5783 7.06741 16.4221 6.91122C16.2659 6.75504 16.0546 6.66719 15.8337 6.66708H13.3337C12.8735 6.66708 12.5 6.29358 12.5 5.83334C12.5 5.37311 12.8735 4.9996 13.3337 4.9996H15.8337C16.4966 4.99971 17.1326 5.26328 17.6013 5.73203C18.0701 6.20077 18.3336 6.83671 18.3337 7.4996V14.9996C18.3337 15.6625 18.0699 16.2984 17.6013 16.7672C17.1326 17.2359 16.4966 17.4995 15.8337 17.4996H4.16626C3.50336 17.4995 2.86743 17.2359 2.39868 16.7672C1.9301 16.2984 1.66626 15.6625 1.66626 14.9996ZM9.16626 3.33334C9.16626 2.87311 9.53976 2.4996 10 2.4996C10.4602 2.4996 10.8337 2.87311 10.8337 3.33334V9.65414L11.9104 8.57748C12.2358 8.25205 12.7642 8.25205 13.0896 8.57748C13.4147 8.9028 13.4146 9.43006 13.0896 9.75546L10.5896 12.2555C10.2642 12.5809 9.73584 12.5809 9.4104 12.2555L6.9104 9.75546C6.58544 9.43006 6.5853 8.9028 6.9104 8.57748C7.23584 8.25205 7.76416 8.25205 8.0896 8.57748L9.16626 9.65414V3.33334Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/scan_icon.svg b/freemocap-ui/src/assets/icons/scan_icon.svgnew file mode 100644index 00000000..5a4d8157--- /dev/null+++ b/freemocap-ui/src/assets/icons/scan_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M11.4336 3.6438C10.6232 3.09564 9.68488 2.77129 8.71391 2.7002L8.29643 2.68433C7.91721 2.68409 7.53758 2.723 7.16606 2.79907C6.44148 2.94687 5.77863 3.24725 5.15923 3.6438C4.562 4.04668 4.04714 4.5614 3.64433 5.15869C3.23469 5.76585 2.94739 6.44938 2.79961 7.16675C2.74811 7.42046 2.71553 7.67771 2.69951 7.93579H2.14287C1.7585 7.93645 1.52908 8.34816 1.70586 8.66943L3.24639 10.719C3.44525 10.9823 3.84083 10.9821 4.03984 10.719L5.54009 8.73169C5.77141 8.42463 5.58053 7.99342 5.21782 7.94067L4.61723 7.93579C4.62946 7.80577 4.6488 7.67695 4.67461 7.55127C4.77196 7.07887 4.96155 6.62913 5.23125 6.22925C5.49683 5.83532 5.8371 5.49512 6.231 5.22949C6.84064 4.81741 7.56182 4.59762 8.29765 4.59839L8.66631 4.6167C9.034 4.65334 9.39521 4.74489 9.73686 4.88892C10.175 5.07429 10.5764 5.34556 10.9124 5.68237C11.4224 6.19347 11.7723 6.84201 11.9195 7.54883C12.0193 8.04131 12.0193 8.55049 11.9195 9.04297C11.8218 9.51456 11.6323 9.96336 11.3628 10.3625C11.0974 10.7559 10.759 11.0957 10.3655 11.3611C9.75493 11.7729 9.03412 11.9933 8.29765 11.9934H7.92168V13.9063H8.29765C9.41557 13.9062 10.5093 13.5719 11.4361 12.9468C11.6151 12.8195 11.7896 12.69 11.9561 12.5464L12.0916 12.6868V13.3533L15.6805 16.9421C16.0267 17.2882 16.5929 17.2883 16.939 16.9421C17.2845 16.5961 17.2844 16.0309 16.939 15.6848L13.3587 12.0874H12.691L12.5518 11.9519C12.6934 11.7873 12.8262 11.6147 12.9485 11.4343C13.5753 10.5081 13.9086 9.41423 13.9068 8.2959C13.9071 7.91631 13.8694 7.53619 13.7933 7.16431C13.6453 6.44705 13.3583 5.76571 12.9485 5.15869C12.7475 4.86109 12.5191 4.58241 12.2649 4.32861C12.0109 4.07404 11.7317 3.84516 11.4336 3.6438Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/scrolldown_icon.svg b/freemocap-ui/src/assets/icons/scrolldown_icon.svgnew file mode 100644index 00000000..7344d2da--- /dev/null+++ b/freemocap-ui/src/assets/icons/scrolldown_icon.svg@@ -0,0 +1,10 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_721_5190)">+<path fill-rule="evenodd" clip-rule="evenodd" d="M11.8973 15.2217C11.8973 16.2506 11.0371 17.1108 10.0082 17.1108C8.97927 17.1108 8.11911 16.2506 8.11911 15.2217C8.11911 14.1927 8.97927 13.3326 10.0082 13.3326C10.5092 13.3326 10.9897 13.5316 11.344 13.8859C11.6983 14.2401 11.8973 14.7206 11.8973 15.2217ZM13.5786 7.26833C13.3129 7.00301 12.843 7.00301 12.5774 7.26833L10.7166 9.12909V3.10381C10.7166 2.72805 10.384 2.3954 10.0082 2.3954C9.63244 2.3954 9.29979 2.72805 9.29979 3.10381V9.12909L7.43903 7.26833C7.17961 6.98993 6.6889 6.98127 6.41982 7.25035C6.15075 7.51943 6.1594 8.01013 6.43781 8.26955L9.59501 11.4276C9.8232 11.6558 10.1932 11.6559 10.4215 11.4276L13.5786 8.2705C13.8419 8.00735 13.8419 7.53148 13.5786 7.26833Z" fill="#9B9B9B"/>+</g>+<defs>+<clipPath id="clip0_721_5190">+<rect width="20" height="20" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/freemocap-ui/src/assets/icons/scrollup_icon.svg b/freemocap-ui/src/assets/icons/scrollup_icon.svgnew file mode 100644index 00000000..cedc2076--- /dev/null+++ b/freemocap-ui/src/assets/icons/scrollup_icon.svg@@ -0,0 +1,10 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_722_5206)">+<path fill-rule="evenodd" clip-rule="evenodd" d="M11.8973 4.2845C11.8973 3.25557 11.0371 2.3954 10.0082 2.3954C8.97927 2.3954 8.11911 3.25557 8.11911 4.2845C8.11911 5.31343 8.97927 6.1736 10.0082 6.1736C10.5092 6.1736 10.9897 5.97457 11.344 5.62029C11.6983 5.26602 11.8973 4.78552 11.8973 4.2845ZM13.5786 12.2378C13.3129 12.5032 12.843 12.5032 12.5774 12.2378L10.7166 10.3771V16.4024C10.7166 16.7781 10.384 17.1108 10.0082 17.1108C9.63244 17.1108 9.29979 16.7781 9.29979 16.4024V10.3771L7.43903 12.2378C7.17961 12.5162 6.6889 12.5249 6.41982 12.2558C6.15075 11.9867 6.1594 11.496 6.43781 11.2366L9.59501 8.07858C9.8232 7.85032 10.1932 7.8503 10.4215 8.07852L13.5786 11.2357C13.8419 11.4988 13.8419 11.9747 13.5786 12.2378Z" fill="#9B9B9B"/>+</g>+<defs>+<clipPath id="clip0_722_5206">+<rect width="20" height="20" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/freemocap-ui/src/assets/icons/search_icon.svg b/freemocap-ui/src/assets/icons/search_icon.svgnew file mode 100644index 00000000..99972f20--- /dev/null+++ b/freemocap-ui/src/assets/icons/search_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M13.0512 11.8013H12.4093L12.1817 11.5819C13.0057 10.6263 13.4585 9.40634 13.4575 8.14462C13.4575 7.09996 13.1477 6.07877 12.5674 5.21018C11.987 4.34158 11.1621 3.66459 10.1969 3.26482C9.2318 2.86505 8.16979 2.76045 7.14521 2.96425C6.12064 3.16806 5.1795 3.6711 4.44082 4.40978C3.70214 5.14846 3.19909 6.0896 2.99529 7.11418C2.79149 8.13876 2.89609 9.20076 3.29586 10.1659C3.69563 11.131 4.37262 11.9559 5.24121 12.5363C6.10981 13.1167 7.131 13.4265 8.17565 13.4265C9.48393 13.4265 10.6866 12.947 11.6129 12.1507L11.8323 12.3782V13.0202L15.8953 17.075L17.106 15.8642L13.0512 11.8013ZM8.17565 11.8013C6.1523 11.8013 4.51899 10.168 4.51899 8.14462C4.51899 6.12126 6.1523 4.48795 8.17565 4.48795C10.199 4.48795 11.8323 6.12126 11.8323 8.14462C11.8323 10.168 10.199 11.8013 8.17565 11.8013Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/settings_icon.svg b/freemocap-ui/src/assets/icons/settings_icon.svgnew file mode 100644index 00000000..69b37a06--- /dev/null+++ b/freemocap-ui/src/assets/icons/settings_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M13.2647 10.5841C14.7453 10.5841 15.9455 11.7843 15.9455 13.2649C15.9455 14.7454 14.7453 15.9457 13.2647 15.9457C12.0346 15.9457 11.0012 15.1162 10.6857 13.9868H5.42905C5.03039 13.9868 4.70717 13.6635 4.70717 13.2649C4.70717 12.8662 5.03039 12.543 5.42905 12.543H10.6857C11.0012 11.4135 12.0346 10.5841 13.2647 10.5841ZM13.2647 12.0278C12.5815 12.0278 12.0277 12.5816 12.0277 13.2649C12.0277 13.9481 12.5815 14.5019 13.2647 14.5019C13.948 14.5019 14.5018 13.9481 14.5018 13.2649C14.5018 12.5816 13.948 12.0278 13.2647 12.0278Z" fill="#9B9B9B"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M6.735 4.05434C7.96511 4.05434 8.99855 4.88379 9.31403 6.01326H14.5707C14.9693 6.01326 15.2926 6.33648 15.2926 6.73513C15.2926 7.13379 14.9693 7.45701 14.5707 7.45701H9.31403C8.99855 8.58648 7.96511 9.41593 6.735 9.41593C5.25446 9.41593 4.0542 8.21567 4.0542 6.73513C4.0542 5.25459 5.25446 4.05434 6.735 4.05434ZM6.735 5.49809C6.05177 5.49809 5.49795 6.05191 5.49795 6.73513C5.49795 7.41836 6.05177 7.97218 6.735 7.97218C7.41822 7.97218 7.97204 7.41836 7.97204 6.73513C7.97204 6.05191 7.41822 5.49809 6.735 5.49809Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/skeleton_active_icon.svg b/freemocap-ui/src/assets/icons/skeleton_active_icon.svgnew file mode 100644index 00000000..151eca61--- /dev/null+++ b/freemocap-ui/src/assets/icons/skeleton_active_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.60904 3.04491H11.3911V5.82694H8.60904V3.04491ZM3.74048 6.52245H16.2596V7.91347H3.74048V6.52245ZM7.91353 7.91347H9.30455V12.782H7.91353V7.91347ZM10.6956 7.91347H12.0866V12.782H10.6956V7.91347ZM7.91353 12.782H9.30455V16.9551H7.91353V12.782ZM10.6956 12.782H12.0866V16.9551H10.6956V12.782ZM9.30455 11.391H10.6956V12.782H9.30455V11.391Z" fill="#0898FF"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/skeleton_icon.svg b/freemocap-ui/src/assets/icons/skeleton_icon.svgnew file mode 100644index 00000000..d8308c68--- /dev/null+++ b/freemocap-ui/src/assets/icons/skeleton_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.60904 3.04491H11.3911V5.82694H8.60904V3.04491ZM3.74048 6.52245H16.2596V7.91347H3.74048V6.52245ZM7.91353 7.91347H9.30455V12.782H7.91353V7.91347ZM10.6956 7.91347H12.0866V12.782H10.6956V7.91347ZM7.91353 12.782H9.30455V16.9551H7.91353V12.782ZM10.6956 12.782H12.0866V16.9551H10.6956V12.782ZM9.30455 11.391H10.6956V12.782H9.30455V11.391Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/skeletonfilter_active_icon.svg b/freemocap-ui/src/assets/icons/skeletonfilter_active_icon.svgnew file mode 100644index 00000000..84743693--- /dev/null+++ b/freemocap-ui/src/assets/icons/skeletonfilter_active_icon.svg@@ -0,0 +1,24 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.93393 4.6694H11.0662V6.80164H8.93393V4.6694ZM5.20251 7.3347H14.7976V8.40082H5.20251V7.3347ZM8.40087 8.40082H9.46699V12.1322H8.40087V8.40082ZM10.5331 8.40082H11.5992V12.1322H10.5331V8.40082ZM8.40087 12.1322H9.46699V15.3306H8.40087V12.1322ZM10.5331 12.1322H11.5992V15.3306H10.5331V12.1322ZM9.46699 11.0661H10.5331V12.1322H9.46699V11.0661Z" fill="#0898FF"/>+<path d="M6.40039 14.0039L2.40137 17.8418V16.2285L6.40039 12.3896V14.0039Z" fill="#0898FF"/>+<path d="M6.40039 17.3301H7.74121L7.22949 17.8418H5.57324L6.40039 17.0166V17.3301Z" fill="#0898FF"/>+<path d="M11.3262 17.8418H9.6709L10.1826 17.3301H11.8379L11.3262 17.8418Z" fill="#0898FF"/>+<path d="M18.1084 15.1572L15.4238 17.8418H13.7686L18.1084 13.502V15.1572Z" fill="#0898FF"/>+<path d="M18.1084 11.0596L13.5986 15.5693V13.9141L18.1084 9.4043V11.0596Z" fill="#0898FF"/>+<path d="M9.4668 15.3301H8.40039V15.0215L9.4668 13.958V15.3301Z" fill="#0898FF"/>+<path d="M11.5986 13.4717L10.5332 14.5371V12.8945L11.5986 11.832V13.4717Z" fill="#0898FF"/>+<path d="M6.2793 10.4004L2.33398 14.335V12.7119L4.64551 10.4004H6.2793Z" fill="#0898FF"/>+<path d="M9.4668 11.0605L8.40039 12.084V10.4697L9.4668 9.44629V11.0605Z" fill="#0898FF"/>+<path d="M13.5986 11.4717V10.4004H14.6699L13.5986 11.4717Z" fill="#0898FF"/>+<path d="M3.20215 9.4873L2.36816 10.3213V8.66602L3.20215 7.83203V9.4873Z" fill="#0898FF"/>+<path d="M13.3506 7.33398L12.2393 8.40039H11.5986V9.01465L10.5332 10.0371V8.42285L11.668 7.33398H13.3506Z" fill="#0898FF"/>+<path d="M9.35449 7.33398L8.28516 8.40039H6.64551L7.71191 7.33398H9.35449Z" fill="#0898FF"/>+<path d="M18.1084 6.96191L16.7969 8.27344V6.64746L18.1084 5.33984V6.96191Z" fill="#0898FF"/>+<path d="M5.35547 7.33398L5.20215 7.4873V7.33398H5.35547Z" fill="#0898FF"/>+<path d="M11.0654 4.66895V5.62695L9.88867 6.80078H8.93359V6.1123L10.3779 4.66895H11.0654Z" fill="#0898FF"/>+<path d="M3.25781 5.33398H3.20215V5.38965L2.36816 6.22363V4.56836L5.05273 1.88379H6.70801L3.25781 5.33398Z" fill="#0898FF"/>+<path d="M17.2939 1.93457C17.6943 2.02938 18.0539 2.25143 18.3174 2.56738L15.4346 5.33398H13.752L17.2939 1.93457Z" fill="#0898FF"/>+<path d="M6.93359 5.33398H5.7002L6.93359 4.10059V5.33398Z" fill="#0898FF"/>+<path d="M13.0654 3.63184V2.66895H12.3779L13.2139 1.83301H14.8701L13.0654 3.63184Z" fill="#0898FF"/>+<path d="M10.0205 2.66895H8.36523L9.15039 1.88379H10.8057L10.0205 2.66895Z" fill="#0898FF"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/skeletonfilter_icon.svg b/freemocap-ui/src/assets/icons/skeletonfilter_icon.svgnew file mode 100644index 00000000..b655f183--- /dev/null+++ b/freemocap-ui/src/assets/icons/skeletonfilter_icon.svg@@ -0,0 +1,24 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.93393 4.6694H11.0662V6.80164H8.93393V4.6694ZM5.20251 7.3347H14.7976V8.40082H5.20251V7.3347ZM8.40087 8.40082H9.46699V12.1322H8.40087V8.40082ZM10.5331 8.40082H11.5992V12.1322H10.5331V8.40082ZM8.40087 12.1322H9.46699V15.3306H8.40087V12.1322ZM10.5331 12.1322H11.5992V15.3306H10.5331V12.1322ZM9.46699 11.0661H10.5331V12.1322H9.46699V11.0661Z" fill="#9B9B9B"/>+<path d="M6.40039 14.0039L2.40137 17.8418V16.2285L6.40039 12.3896V14.0039Z" fill="#9B9B9B"/>+<path d="M6.40039 17.3301H7.74121L7.22949 17.8418H5.57324L6.40039 17.0166V17.3301Z" fill="#9B9B9B"/>+<path d="M11.3262 17.8418H9.6709L10.1826 17.3301H11.8379L11.3262 17.8418Z" fill="#9B9B9B"/>+<path d="M18.1084 15.1572L15.4238 17.8418H13.7686L18.1084 13.502V15.1572Z" fill="#9B9B9B"/>+<path d="M18.1084 11.0596L13.5986 15.5693V13.9141L18.1084 9.4043V11.0596Z" fill="#9B9B9B"/>+<path d="M9.4668 15.3301H8.40039V15.0215L9.4668 13.958V15.3301Z" fill="#9B9B9B"/>+<path d="M11.5986 13.4717L10.5332 14.5371V12.8945L11.5986 11.832V13.4717Z" fill="#9B9B9B"/>+<path d="M6.2793 10.4004L2.33398 14.335V12.7119L4.64551 10.4004H6.2793Z" fill="#9B9B9B"/>+<path d="M9.4668 11.0605L8.40039 12.084V10.4697L9.4668 9.44629V11.0605Z" fill="#9B9B9B"/>+<path d="M13.5986 11.4717V10.4004H14.6699L13.5986 11.4717Z" fill="#9B9B9B"/>+<path d="M3.20215 9.4873L2.36816 10.3213V8.66602L3.20215 7.83203V9.4873Z" fill="#9B9B9B"/>+<path d="M13.3506 7.33398L12.2393 8.40039H11.5986V9.01465L10.5332 10.0371V8.42285L11.668 7.33398H13.3506Z" fill="#9B9B9B"/>+<path d="M9.35449 7.33398L8.28516 8.40039H6.64551L7.71191 7.33398H9.35449Z" fill="#9B9B9B"/>+<path d="M18.1084 6.96191L16.7969 8.27344V6.64746L18.1084 5.33984V6.96191Z" fill="#9B9B9B"/>+<path d="M5.35547 7.33398L5.20215 7.4873V7.33398H5.35547Z" fill="#9B9B9B"/>+<path d="M11.0654 4.66895V5.62695L9.88867 6.80078H8.93359V6.1123L10.3779 4.66895H11.0654Z" fill="#9B9B9B"/>+<path d="M3.25781 5.33398H3.20215V5.38965L2.36816 6.22363V4.56836L5.05273 1.88379H6.70801L3.25781 5.33398Z" fill="#9B9B9B"/>+<path d="M17.2939 1.93457C17.6943 2.02938 18.0539 2.25143 18.3174 2.56738L15.4346 5.33398H13.752L17.2939 1.93457Z" fill="#9B9B9B"/>+<path d="M6.93359 5.33398H5.7002L6.93359 4.10059V5.33398Z" fill="#9B9B9B"/>+<path d="M13.0654 3.63184V2.66895H12.3779L13.2139 1.83301H14.8701L13.0654 3.63184Z" fill="#9B9B9B"/>+<path d="M10.0205 2.66895H8.36523L9.15039 1.88379H10.8057L10.0205 2.66895Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/skipbackward_icon.svg b/freemocap-ui/src/assets/icons/skipbackward_icon.svgnew file mode 100644index 00000000..34c7754b--- /dev/null+++ b/freemocap-ui/src/assets/icons/skipbackward_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M7.0168 9.14896C6.38359 9.53965 6.38359 10.4604 7.0168 10.8511L11.9894 13.9191C12.6556 14.3302 13.5145 13.8509 13.5145 13.0681L13.5145 6.93196C13.5145 6.14912 12.6556 5.66985 11.9894 6.08091L7.0168 9.14896Z" fill="#9B9B9B"/>+<rect width="1.43082" height="8.28745" rx="0.715408" transform="matrix(-1 0 0 1 7.41528 5.85626)" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/skipforward_icon.svg b/freemocap-ui/src/assets/icons/skipforward_icon.svgnew file mode 100644index 00000000..37b09b02--- /dev/null+++ b/freemocap-ui/src/assets/icons/skipforward_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12.9832 9.14896C13.6164 9.53965 13.6164 10.4604 12.9832 10.8511L8.01059 13.9191C7.34435 14.3302 6.4855 13.8509 6.4855 13.0681L6.4855 6.93196C6.4855 6.14912 7.34436 5.66985 8.01059 6.08091L12.9832 9.14896Z" fill="#9B9B9B"/>+<rect x="12.5847" y="5.85626" width="1.43082" height="8.28745" rx="0.715408" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/snaptogrid_icon.svg b/freemocap-ui/src/assets/icons/snaptogrid_icon.svgnew file mode 100644index 00000000..727994e6--- /dev/null+++ b/freemocap-ui/src/assets/icons/snaptogrid_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.87012 10.3477C9.99863 10.3221 10.1331 10.3346 10.2559 10.3857L16.2559 12.8857C16.5037 12.989 16.665 13.2315 16.665 13.5C16.665 13.7685 16.5037 14.011 16.2559 14.1143L10.2559 16.6143C10.0922 16.6824 9.90779 16.6824 9.74414 16.6143L3.74414 14.1143C3.49633 14.011 3.33496 13.7685 3.33496 13.5C3.33496 13.2315 3.49633 12.989 3.74414 12.8857L9.74414 10.3857L9.87012 10.3477ZM5.72949 13.5L10 15.2783L14.2695 13.5L10 11.7207L5.72949 13.5Z" fill="#9B9B9B"/>+<path d="M12.5924 6.39414C12.8206 6.63132 12.8224 7.00588 12.5965 7.24523L10.4516 9.51753C10.2047 9.77904 9.78866 9.77881 9.5421 9.51701L7.40278 7.24543C7.17719 7.0059 7.17919 6.63151 7.40732 6.39439C7.65203 6.14004 8.05983 6.14235 8.30165 6.39946L9.4 7.56725L9.4 3.59957C9.4 3.2682 9.66863 2.99957 10 2.99957C10.3314 2.99957 10.6 3.2682 10.6 3.59957L10.6 7.56725L11.6986 6.3992C11.9403 6.14223 12.3479 6.13992 12.5924 6.39414Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/stopstreaming_icon.svg b/freemocap-ui/src/assets/icons/stopstreaming_icon.svgnew file mode 100644index 00000000..9650f968--- /dev/null+++ b/freemocap-ui/src/assets/icons/stopstreaming_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M6.02505 15.1207C7.27214 16.0902 8.83033 16.5709 10.4069 16.4725C11.9834 16.3742 13.4697 15.7036 14.5867 14.5866C15.7036 13.4697 16.3743 11.9833 16.4726 10.4068C16.571 8.83025 16.0902 7.27207 15.1208 6.02497L6.02505 15.1207ZM4.87938 13.975L13.9751 4.8793C12.728 3.90983 11.1698 3.4291 9.59329 3.52745C8.01676 3.62579 6.53039 4.29643 5.41345 5.41338C4.29651 6.53032 3.62587 8.01668 3.52752 9.59321C3.42918 11.1697 3.9099 12.7279 4.87938 13.975ZM10.0001 18.1024C5.52513 18.1024 1.89771 14.4749 1.89771 9.99999C1.89771 5.52506 5.52513 1.89763 10.0001 1.89763C14.475 1.89763 18.1024 5.52506 18.1024 9.99999C18.1024 14.4749 14.475 18.1024 10.0001 18.1024Z" fill="#D7184B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/stream_icon.svg b/freemocap-ui/src/assets/icons/stream_icon.svgnew file mode 100644index 00000000..c946d9af--- /dev/null+++ b/freemocap-ui/src/assets/icons/stream_icon.svg@@ -0,0 +1,5 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00011 9.37011C8.36339 9.37011 8.71178 9.2258 8.96866 8.96892C9.22554 8.71204 9.36985 8.36365 9.36985 8.00037C9.36985 7.63709 9.22554 7.28869 8.96866 7.03182C8.71178 6.77494 8.36339 6.63063 8.00011 6.63063C7.63683 6.63063 7.28843 6.77494 7.03156 7.03182C6.77468 7.28869 6.63037 7.63709 6.63037 8.00037C6.63037 8.36365 6.77468 8.71204 7.03156 8.96892C7.28843 9.2258 7.63683 9.37011 8.00011 9.37011Z" fill="#1B1B1B"/>+<path opacity="0.8" fill-rule="evenodd" clip-rule="evenodd" d="M5.04054 5.15C5.32818 4.8514 5.80485 4.95824 6.01031 5.31802C6.18381 5.61936 6.09889 5.99741 5.87882 6.26771C5.47908 6.75687 5.26068 7.36916 5.26061 8.00088C5.26061 8.65836 5.49255 9.26196 5.87882 9.73406C6.09889 10.0044 6.1829 10.3824 6.01031 10.6837C5.80485 11.0435 5.32818 11.1504 5.04054 10.8518C4.30292 10.086 3.89083 9.06413 3.89087 8.00088C3.89087 6.89322 4.32827 5.88874 5.04054 5.15ZM9.99077 5.31802C9.81727 5.61936 9.90128 5.99741 10.1223 6.26771C10.5076 6.7389 10.7396 7.34341 10.7396 8.00088C10.7396 8.65836 10.5076 9.26196 10.1214 9.73406C9.90037 10.0044 9.81727 10.3824 9.98986 10.6837C10.1953 11.0435 10.672 11.1504 10.9596 10.8518C11.6973 10.086 12.1093 9.06413 12.1093 8.00088C12.1093 6.89322 11.671 5.88874 10.9587 5.15C10.672 4.8514 10.1962 4.95824 9.99077 5.31802Z" fill="#4F4F4F"/>+<path opacity="0.5" fill-rule="evenodd" clip-rule="evenodd" d="M3.6726 2.69126C3.98034 2.44105 4.42961 2.55063 4.62594 2.89489C4.80583 3.20902 4.70812 3.60441 4.43418 3.84001C3.83361 4.35404 3.35159 4.99214 3.02133 5.71036C2.69107 6.42858 2.52041 7.20985 2.52111 8.00036C2.52041 8.79087 2.69107 9.57215 3.02133 10.2904C3.35159 11.0086 3.83361 11.6467 4.43418 12.1607C4.70812 12.3963 4.80583 12.7908 4.62594 13.1049C4.42961 13.4501 3.98034 13.5597 3.6726 13.3086C2.88429 12.6667 2.24897 11.8573 1.81284 10.939C1.3767 10.0208 1.15074 9.0169 1.15137 8.00036C1.1506 6.98367 1.3765 5.97958 1.81264 5.06119C2.24878 4.14279 2.88418 3.33317 3.6726 2.69126ZM11.3742 2.89489C11.1943 3.20902 11.292 3.60441 11.5659 3.84001C12.1665 4.35404 12.6485 4.99214 12.9788 5.71036C13.3091 6.42858 13.4797 7.20985 13.479 8.00036C13.4797 8.79087 13.3091 9.57215 12.9788 10.2904C12.6485 11.0086 12.1665 11.6467 11.5659 12.1607C11.292 12.3963 11.1943 12.7908 11.3742 13.1049C11.5705 13.4501 12.0198 13.5597 12.3275 13.3086C13.1158 12.6667 13.7512 11.8573 14.1873 10.939C14.6234 10.0208 14.8494 9.0169 14.8488 8.00036C14.8495 6.98367 14.6236 5.97958 14.1875 5.06119C13.7513 4.14279 13.1159 3.33317 12.3275 2.69126C12.0198 2.44105 11.5705 2.55063 11.3742 2.89489Z" fill="#060606"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/streaming_icon.svg b/freemocap-ui/src/assets/icons/streaming_icon.svgnew file mode 100644index 00000000..eecc83e1--- /dev/null+++ b/freemocap-ui/src/assets/icons/streaming_icon.svg@@ -0,0 +1,5 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M10.0001 11.7126C10.4542 11.7126 10.8897 11.5322 11.2108 11.2111C11.5319 10.8901 11.7123 10.4546 11.7123 10.0005C11.7123 9.54636 11.5319 9.11086 11.2108 8.78977C10.8897 8.46867 10.4542 8.28828 10.0001 8.28828C9.54604 8.28828 9.11054 8.46867 8.78945 8.78977C8.46835 9.11086 8.28796 9.54636 8.28796 10.0005C8.28796 10.4546 8.46835 10.8901 8.78945 11.2111C9.11054 11.5322 9.54604 11.7126 10.0001 11.7126Z" fill="#34C759"/>+<path opacity="0.7" fill-rule="evenodd" clip-rule="evenodd" d="M6.30049 6.4375C6.66004 6.06425 7.25588 6.1978 7.51271 6.64753C7.72958 7.02421 7.62343 7.49677 7.34834 7.83464C6.84866 8.44609 6.57566 9.21145 6.57558 10.0011C6.57558 10.8229 6.86551 11.5774 7.34834 12.1676C7.62343 12.5054 7.72844 12.978 7.51271 13.3547C7.25588 13.8044 6.66004 13.938 6.30049 13.5647C5.37847 12.6075 4.86336 11.3302 4.8634 10.0011C4.8634 8.61653 5.41016 7.36093 6.30049 6.4375ZM12.4883 6.64753C12.2714 7.02421 12.3764 7.49677 12.6527 7.83464C13.1343 8.42362 13.4243 9.17926 13.4243 10.0011C13.4243 10.8229 13.1343 11.5774 12.6515 12.1676C12.3753 12.5054 12.2714 12.978 12.4871 13.3547C12.744 13.8044 13.3398 13.938 13.6994 13.5647C14.6214 12.6075 15.1365 11.3302 15.1364 10.0011C15.1364 8.61653 14.5885 7.36093 13.6982 6.4375C13.3398 6.06425 12.7451 6.1978 12.4883 6.64753Z" fill="#34C759"/>+<path opacity="0.3" fill-rule="evenodd" clip-rule="evenodd" d="M4.59075 3.36408C4.97542 3.05132 5.53701 3.18829 5.78242 3.61862C6.00729 4.01128 5.88515 4.50552 5.54272 4.80002C4.79201 5.44256 4.18949 6.24018 3.77666 7.13795C3.36384 8.03573 3.15051 9.01232 3.15138 10.0005C3.15051 10.9886 3.36384 11.9652 3.77666 12.863C4.18949 13.7607 4.79201 14.5584 5.54272 15.2009C5.88515 15.4954 6.00729 15.9885 5.78242 16.3812C5.53701 16.8126 4.97542 16.9496 4.59075 16.6357C3.60537 15.8334 2.81121 14.8216 2.26604 13.6738C1.72088 12.526 1.43842 11.2711 1.43921 10.0005C1.43825 8.72959 1.72063 7.47449 2.2658 6.32649C2.81097 5.17849 3.60522 4.16647 4.59075 3.36408ZM14.2177 3.61862C13.9929 4.01128 14.115 4.50552 14.4574 4.80002C15.2081 5.44256 15.8107 6.24018 16.2235 7.13795C16.6363 8.03573 16.8496 9.01232 16.8488 10.0005C16.8496 10.9886 16.6363 11.9652 16.2235 12.863C15.8107 13.7607 15.2081 14.5584 14.4574 15.2009C14.115 15.4954 13.9929 15.9885 14.2177 16.3812C14.4631 16.8126 15.0247 16.9496 15.4094 16.6357C16.3948 15.8334 17.1889 14.8216 17.7341 13.6738C18.2793 12.526 18.5617 11.2711 18.5609 10.0005C18.5619 8.72959 18.2795 7.47449 17.7344 6.32649C17.1892 5.17849 16.3949 4.16647 15.4094 3.36408C15.0247 3.05132 14.4631 3.18829 14.2177 3.61862Z" fill="#34C759"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/subcat_icon.svg b/freemocap-ui/src/assets/icons/subcat_icon.svgnew file mode 100644index 00000000..69880237--- /dev/null+++ b/freemocap-ui/src/assets/icons/subcat_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2.10803 9.25237V3.9301C2.10803 3.46987 2.48113 3.09677 2.94137 3.09677C3.4016 3.09677 3.7747 3.46987 3.7747 3.9301V9.25237C3.77506 9.7123 4.14802 10.0857 4.60803 10.0857H16.0973C16.5574 10.0859 16.9306 10.4589 16.9306 10.919C16.9303 11.3789 16.5571 11.7522 16.0973 11.7524H4.60803C3.22754 11.7524 2.10839 10.6328 2.10803 9.25237Z" fill="#4F4F4F"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/subfolder_icon.svg b/freemocap-ui/src/assets/icons/subfolder_icon.svgnew file mode 100644index 00000000..da487d7a--- /dev/null+++ b/freemocap-ui/src/assets/icons/subfolder_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M6.74072 4.50806C7.14699 4.5454 7.53218 4.71126 7.84058 4.98291L9.32739 6.29028C9.45175 6.39988 9.61209 6.4609 9.77783 6.46118H14.5752C15.0876 6.46118 15.58 6.66411 15.9424 7.02637C16.3048 7.38876 16.5088 7.88105 16.5088 8.39355V14.2505C16.5088 14.9408 15.9491 15.5005 15.2588 15.5005H5.42358C4.91122 15.5004 4.41993 15.2964 4.05762 14.9341C3.69536 14.5717 3.49125 14.0805 3.49121 13.5681V6.43188C3.49124 5.91947 3.69532 5.42828 4.05762 5.06592C4.41993 4.7036 4.9112 4.49961 5.42358 4.49951H6.56494L6.74072 4.50806ZM15.2588 8.39355V13.6255C15.2588 13.9707 14.979 14.2505 14.6338 14.2505H5.42358C5.24274 14.2504 5.0693 14.1782 4.94141 14.0503C4.81356 13.9224 4.74125 13.749 4.74121 13.5681V6.43188C4.74124 6.25099 4.81353 6.07765 4.94141 5.94971C5.0693 5.82181 5.24272 5.74961 5.42358 5.74951H6.56372L6.68701 5.7605C6.80803 5.7827 6.92192 5.83805 7.01538 5.92041L8.50098 7.22778L8.6377 7.33765C8.96728 7.5788 9.36644 7.71094 9.77783 7.71118H14.5752C14.7561 7.71118 14.9306 7.78233 15.0586 7.91016C15.1866 8.03813 15.2588 8.21257 15.2588 8.39355Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/tag_active_icon.svg b/freemocap-ui/src/assets/icons/tag_active_icon.svgnew file mode 100644index 00000000..9f50c04a--- /dev/null+++ b/freemocap-ui/src/assets/icons/tag_active_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M5.65776 11.0411L10.0586 15.4428C10.2271 15.6113 10.4554 15.7065 10.6938 15.7075C10.9321 15.7085 11.1612 15.6153 11.3312 15.4483L15.3533 11.4984C15.5242 11.3304 15.6214 11.1013 15.6234 10.8617C15.6254 10.622 15.5322 10.3913 15.3642 10.2204L10.9642 5.73732C10.8381 5.60868 10.6877 5.50645 10.5216 5.43662C10.3556 5.36678 10.1773 5.33074 9.99713 5.33059H6.16391C5.9242 5.33059 5.6943 5.42582 5.5248 5.59532C5.35529 5.76483 5.26007 5.99472 5.26007 6.23444V10.0821C5.2601 10.2603 5.29525 10.4366 5.36349 10.6012C5.43172 10.7657 5.53172 10.9152 5.65776 11.0411ZM11.9323 4.78648C11.6798 4.5294 11.3787 4.32522 11.0464 4.18586C10.7141 4.0465 10.3574 3.97476 9.99713 3.97482H6.16391C5.56463 3.97482 4.98988 4.21289 4.56612 4.63665C4.14236 5.06041 3.9043 5.63515 3.9043 6.23444V10.0821C3.90425 10.4383 3.9744 10.791 4.11072 11.1201C4.24704 11.4492 4.44686 11.7482 4.69878 12.0001L9.10051 16.4018C9.52186 16.8228 10.0924 17.0604 10.688 17.063C11.2837 17.0655 11.8562 16.8328 12.2811 16.4154L16.3033 12.4656C16.7307 12.0457 16.9739 11.4732 16.9794 10.874C16.9848 10.2748 16.752 9.69802 16.3322 9.27046L11.9323 4.78648ZM7.97161 8.94598C8.27125 8.94598 8.55862 8.82695 8.7705 8.61507C8.98238 8.40319 9.10142 8.11582 9.10142 7.81617C9.10142 7.51653 8.98238 7.22916 8.7705 7.01728C8.55862 6.8054 8.27125 6.68636 7.97161 6.68636C7.67196 6.68636 7.38459 6.8054 7.17271 7.01728C6.96083 7.22916 6.8418 7.51653 6.8418 7.81617C6.8418 8.11582 6.96083 8.40319 7.17271 8.61507C7.38459 8.82695 7.67196 8.94598 7.97161 8.94598Z" fill="#E4E4E4"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/tag_icon.svg b/freemocap-ui/src/assets/icons/tag_icon.svgnew file mode 100644index 00000000..e89b09e3--- /dev/null+++ b/freemocap-ui/src/assets/icons/tag_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M5.65776 11.0411L10.0586 15.4428C10.2271 15.6113 10.4554 15.7065 10.6938 15.7075C10.9321 15.7085 11.1612 15.6153 11.3312 15.4483L15.3533 11.4984C15.5242 11.3304 15.6214 11.1013 15.6234 10.8617C15.6254 10.622 15.5322 10.3913 15.3642 10.2204L10.9642 5.73732C10.8381 5.60868 10.6877 5.50645 10.5216 5.43662C10.3556 5.36678 10.1773 5.33074 9.99713 5.33059H6.16391C5.9242 5.33059 5.6943 5.42582 5.5248 5.59532C5.35529 5.76483 5.26007 5.99472 5.26007 6.23444V10.0821C5.2601 10.2603 5.29525 10.4366 5.36349 10.6012C5.43172 10.7657 5.53172 10.9152 5.65776 11.0411ZM11.9323 4.78648C11.6798 4.5294 11.3787 4.32522 11.0464 4.18586C10.7141 4.0465 10.3574 3.97476 9.99713 3.97482H6.16391C5.56463 3.97482 4.98988 4.21289 4.56612 4.63665C4.14236 5.06041 3.9043 5.63515 3.9043 6.23444V10.0821C3.90425 10.4383 3.9744 10.791 4.11072 11.1201C4.24704 11.4492 4.44686 11.7482 4.69878 12.0001L9.10051 16.4018C9.52186 16.8228 10.0924 17.0604 10.688 17.063C11.2837 17.0655 11.8562 16.8328 12.2811 16.4154L16.3033 12.4656C16.7307 12.0457 16.9739 11.4732 16.9794 10.874C16.9848 10.2748 16.752 9.69802 16.3322 9.27046L11.9323 4.78648ZM7.97161 8.94598C8.27125 8.94598 8.55862 8.82695 8.7705 8.61507C8.98238 8.40319 9.10142 8.11582 9.10142 7.81617C9.10142 7.51653 8.98238 7.22916 8.7705 7.01728C8.55862 6.8054 8.27125 6.68636 7.97161 6.68636C7.67196 6.68636 7.38459 6.8054 7.17271 7.01728C6.96083 7.22916 6.8418 7.51653 6.8418 7.81617C6.8418 8.11582 6.96083 8.40319 7.17271 8.61507C7.38459 8.82695 7.67196 8.94598 7.97161 8.94598Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/tomlfile_icon.svg b/freemocap-ui/src/assets/icons/tomlfile_icon.svgnew file mode 100644index 00000000..21ed5bcf--- /dev/null+++ b/freemocap-ui/src/assets/icons/tomlfile_icon.svg@@ -0,0 +1,8 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M9.56177 3.36744C9.56173 4.39565 9.56169 5.22682 9.64966 5.88126C9.74188 6.56664 9.93946 7.14433 10.3984 7.60326C10.8895 8.04484 11.4658 8.26393 12.1204 8.35196C12.7745 8.43993 13.8485 8.43989 14.8759 8.43985C14.8859 8.58579 14.8873 8.79597 14.8873 9.1267L14.8951 10.692H16.0379L16.038 9.1267C16.038 8.55099 16.0478 8.10277 15.8785 7.69278C15.7087 7.28217 15.3842 6.97317 14.9768 6.56648H14.9784L11.3733 2.95971C11.022 2.60842 10.7536 2.33201 10.4081 2.16706C10.3416 2.13521 10.2742 2.10547 10.2047 2.0808L10.2014 2.07917L9.92636 2.00756C9.64327 1.95663 9.33367 1.96198 8.96119 1.96198L8.91471 1.96198C7.71596 1.96197 8.01528 1.96196 7.26196 2.04988C6.48654 2.14039 5.84578 2.32989 5.30884 2.76277C5.10806 2.92491 4.92541 3.1086 4.76359 3.30964C4.3309 3.84688 4.14122 4.48707 4.0507 5.26277L3.96326 10.452H5.11273C5.1089 9.70589 5.11146 8.95973 5.1119 8.21361C5.1119 6.96448 5.11383 6.07738 5.19328 5.39623C5.27132 4.72747 5.41731 4.33049 5.65878 4.03067C5.80099 3.85398 5.96685 3.70554 6.14868 3.57169C6.4341 3.38094 6.81076 3.2607 7.39543 3.19245C8.07628 3.113 7.71279 3.11107 8.96119 3.11107C9.25199 3.11107 9.43493 3.113 9.56177 3.12084V3.29825L9.56177 3.36744ZM11.2122 6.78946C11.0024 6.57967 10.864 6.28485 10.789 5.72663C10.7276 5.26925 10.717 4.69331 10.7141 3.9265L14.0719 7.28588C13.3059 7.28299 12.7303 7.27409 12.2734 7.21264C11.716 7.13765 11.4215 7.00035 11.2122 6.79109V6.78946Z" fill="#9B9B9B"/>+<path d="M16.0381 12.9123V17.4123H15.2427V12.9123H16.0381Z" fill="#9B9B9B"/>+<path d="M9.91138 17.4122V14.0372H10.6716V14.6107H10.7112C10.7815 14.4174 10.8979 14.2665 11.0605 14.1581C11.2231 14.0482 11.4172 13.9933 11.6428 13.9933C11.8713 13.9933 12.064 14.049 12.2207 14.1603C12.3789 14.2702 12.4902 14.4203 12.5547 14.6107H12.5898C12.6646 14.4232 12.7905 14.2738 12.9678 14.1625C13.1465 14.0497 13.3582 13.9933 13.6028 13.9933C13.9133 13.9933 14.1667 14.0914 14.363 14.2877C14.5593 14.484 14.6575 14.7704 14.6575 15.1469V17.4122H13.8599V15.2699C13.8599 15.0604 13.8042 14.9074 13.6929 14.8107C13.5815 14.7125 13.4453 14.6635 13.2842 14.6635C13.0923 14.6635 12.9421 14.7235 12.8337 14.8436C12.7268 14.9623 12.6733 15.1168 12.6733 15.3073V17.4122H11.8933V15.237C11.8933 15.0626 11.8406 14.9235 11.7351 14.8195C11.6311 14.7155 11.4949 14.6635 11.3264 14.6635C11.2122 14.6635 11.1082 14.6928 11.0144 14.7514C10.9207 14.8085 10.8459 14.8898 10.7903 14.9953C10.7346 15.0993 10.7068 15.2208 10.7068 15.36V17.4122H9.91138Z" fill="#9B9B9B"/>+<path d="M7.84082 17.4782C7.51123 17.4782 7.22559 17.4057 6.98389 17.2606C6.74219 17.1156 6.55469 16.9127 6.42139 16.652C6.28955 16.3913 6.22363 16.0866 6.22363 15.7379C6.22363 15.3893 6.28955 15.0839 6.42139 14.8217C6.55469 14.5595 6.74219 14.3559 6.98389 14.2108C7.22559 14.0658 7.51123 13.9933 7.84082 13.9933C8.17041 13.9933 8.45606 14.0658 8.69775 14.2108C8.93945 14.3559 9.12622 14.5595 9.25806 14.8217C9.39136 15.0839 9.45801 15.3893 9.45801 15.7379C9.45801 16.0866 9.39136 16.3913 9.25806 16.652C9.12622 16.9127 8.93945 17.1156 8.69775 17.2606C8.45606 17.4057 8.17041 17.4782 7.84082 17.4782ZM7.84522 16.841C8.02393 16.841 8.17334 16.7919 8.29346 16.6937C8.41358 16.5941 8.50293 16.4608 8.56152 16.2938C8.62158 16.1268 8.65161 15.9408 8.65161 15.7357C8.65161 15.5292 8.62158 15.3424 8.56152 15.1754C8.50293 15.007 8.41358 14.8729 8.29346 14.7733C8.17334 14.6737 8.02393 14.6239 7.84522 14.6239C7.66211 14.6239 7.50977 14.6737 7.38818 14.7733C7.26807 14.8729 7.17798 15.007 7.11792 15.1754C7.05933 15.3424 7.03003 15.5292 7.03003 15.7357C7.03003 15.9408 7.05933 16.1268 7.11792 16.2938C7.17798 16.4608 7.26807 16.5941 7.38818 16.6937C7.50977 16.7919 7.66211 16.841 7.84522 16.841Z" fill="#9B9B9B"/>+<path d="M5.96143 14.0373V14.6525H4.02124V14.0373H5.96143ZM4.50024 13.2287H5.29565V16.3971C5.29565 16.5041 5.31177 16.5861 5.34399 16.6432C5.37769 16.6989 5.42163 16.737 5.47583 16.7575C5.53003 16.778 5.59009 16.7882 5.65601 16.7882C5.70581 16.7882 5.75122 16.7846 5.79224 16.7773C5.83472 16.7699 5.86694 16.7633 5.88892 16.7575L6.02295 17.3793C5.98047 17.394 5.91968 17.4101 5.84058 17.4276C5.76294 17.4452 5.66773 17.4555 5.55493 17.4584C5.35571 17.4643 5.17627 17.4342 5.0166 17.3683C4.85693 17.3009 4.73022 17.1969 4.63647 17.0563C4.54419 16.9157 4.49878 16.7399 4.50024 16.529V13.2287Z" fill="#9B9B9B"/>+<path d="M3.19315 17.4606C3.05985 17.4606 2.94559 17.4137 2.85038 17.32C2.75516 17.2262 2.70829 17.112 2.70975 16.9772C2.70829 16.8454 2.75516 16.7326 2.85038 16.6388C2.94559 16.5451 3.05985 16.4982 3.19315 16.4982C3.32205 16.4982 3.43412 16.5451 3.52933 16.6388C3.62601 16.7326 3.67508 16.8454 3.67655 16.9772C3.67508 17.0666 3.65164 17.1479 3.60623 17.2211C3.56229 17.2943 3.5037 17.3529 3.43045 17.3969C3.35868 17.4394 3.27957 17.4606 3.19315 17.4606Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/triangulate_active_icon.svg b/freemocap-ui/src/assets/icons/triangulate_active_icon.svgnew file mode 100644index 00000000..c612bda7--- /dev/null+++ b/freemocap-ui/src/assets/icons/triangulate_active_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M15.6902 13.1093C15.69 12.4075 15.1215 11.8389 14.4197 11.8388C13.7178 11.8388 13.1484 12.4074 13.1482 13.1093C13.1482 13.8113 13.7176 14.3808 14.4197 14.3808C15.1216 14.3806 15.6902 13.8112 15.6902 13.1093ZM7.14233 11.0819C7.63487 11.478 7.97703 12.0498 8.07983 12.702H11.8533C11.9581 12.0369 12.3129 11.4562 12.821 11.0595L11.074 8.03506C10.7505 8.17946 10.3926 8.26162 10.0154 8.26162C9.62071 8.26156 9.24793 8.17092 8.91284 8.01357L7.14233 11.0819ZM4.24292 13.1093C4.24292 13.8113 4.81237 14.3808 5.5144 14.3808C6.21626 14.3806 6.78491 13.8112 6.78491 13.1093C6.78469 12.4076 6.21612 11.839 5.5144 11.8388C4.81251 11.8388 4.24314 12.4074 4.24292 13.1093ZM11.2869 5.66103C11.2869 4.959 10.7174 4.38955 10.0154 4.38955C9.31353 4.38976 8.74487 4.95913 8.74487 5.66103C8.74508 6.36276 9.31366 6.93133 10.0154 6.93154C10.7173 6.93154 11.2867 6.36289 11.2869 5.66103ZM12.6169 5.66103C12.6169 6.2309 12.4307 6.75596 12.1199 7.18447L14.0554 10.537C14.1745 10.5203 14.296 10.5087 14.4197 10.5087C15.856 10.5088 17.02 11.673 17.0203 13.1093C17.0203 14.5458 15.8561 15.7107 14.4197 15.7108C13.3084 15.7108 12.3625 15.0128 11.99 14.0321H7.94312C7.57058 15.0126 6.62551 15.7107 5.5144 15.7108C4.07783 15.7108 2.91284 14.5458 2.91284 13.1093C2.91306 11.6729 4.07797 10.5087 5.5144 10.5087C5.65175 10.5087 5.78613 10.5223 5.91772 10.5429L7.88062 7.14346C7.58787 6.72271 7.41487 6.21244 7.41479 5.66103C7.41479 4.2246 8.57899 3.05969 10.0154 3.05947C11.452 3.05947 12.6169 4.22446 12.6169 5.66103Z" fill="#0898FF"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/triangulate_icon.svg b/freemocap-ui/src/assets/icons/triangulate_icon.svgnew file mode 100644index 00000000..115d28b5--- /dev/null+++ b/freemocap-ui/src/assets/icons/triangulate_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M15.6902 13.1093C15.69 12.4075 15.1215 11.8389 14.4197 11.8388C13.7178 11.8388 13.1484 12.4074 13.1482 13.1093C13.1482 13.8113 13.7176 14.3808 14.4197 14.3808C15.1216 14.3806 15.6902 13.8112 15.6902 13.1093ZM7.14233 11.0819C7.63487 11.478 7.97703 12.0498 8.07983 12.7021H11.8533C11.9581 12.0369 12.3129 11.4562 12.821 11.0595L11.074 8.03506C10.7505 8.17946 10.3926 8.26163 10.0154 8.26163C9.62071 8.26157 9.24793 8.17092 8.91284 8.01358L7.14233 11.0819ZM4.24292 13.1093C4.24292 13.8113 4.81237 14.3808 5.5144 14.3808C6.21626 14.3806 6.78491 13.8112 6.78491 13.1093C6.78469 12.4076 6.21612 11.839 5.5144 11.8388C4.81251 11.8388 4.24314 12.4074 4.24292 13.1093ZM11.2869 5.66104C11.2869 4.95901 10.7174 4.38956 10.0154 4.38956C9.31353 4.38977 8.74487 4.95914 8.74487 5.66104C8.74508 6.36276 9.31366 6.93133 10.0154 6.93155C10.7173 6.93155 11.2867 6.3629 11.2869 5.66104ZM12.6169 5.66104C12.6169 6.23091 12.4307 6.75597 12.1199 7.18448L14.0554 10.537C14.1745 10.5203 14.296 10.5087 14.4197 10.5087C15.856 10.5088 17.02 11.673 17.0203 13.1093C17.0203 14.5458 15.8561 15.7107 14.4197 15.7108C13.3084 15.7108 12.3625 15.0128 11.99 14.0321H7.94312C7.57058 15.0126 6.62551 15.7107 5.5144 15.7108C4.07783 15.7108 2.91284 14.5459 2.91284 13.1093C2.91306 11.6729 4.07797 10.5087 5.5144 10.5087C5.65175 10.5087 5.78613 10.5223 5.91772 10.5429L7.88062 7.14346C7.58787 6.72272 7.41487 6.21244 7.41479 5.66104C7.41479 4.2246 8.57899 3.05969 10.0154 3.05948C11.452 3.05948 12.6169 4.22447 12.6169 5.66104Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/upToDate_icon.svg b/freemocap-ui/src/assets/icons/upToDate_icon.svgnew file mode 100644index 00000000..599d9d16--- /dev/null+++ b/freemocap-ui/src/assets/icons/upToDate_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M10 17.5C10.9849 17.5 11.9602 17.306 12.8701 16.9291C13.7801 16.5522 14.6069 15.9997 15.3033 15.3033C15.9997 14.6069 16.5522 13.7801 16.9291 12.8701C17.306 11.9602 17.5 10.9849 17.5 10C17.5 9.01509 17.306 8.03982 16.9291 7.12987C16.5522 6.21993 15.9997 5.39314 15.3033 4.6967C14.6069 4.00026 13.7801 3.44781 12.8701 3.0709C11.9602 2.69399 10.9849 2.5 10 2.5C8.01088 2.5 6.10322 3.29018 4.6967 4.6967C3.29018 6.10322 2.5 8.01088 2.5 10C2.5 11.9891 3.29018 13.8968 4.6967 15.3033C6.10322 16.7098 8.01088 17.5 10 17.5ZM9.80667 13.0333L13.9733 8.03333L12.6933 6.96667L9.11 11.2658L7.25583 9.41083L6.0775 10.5892L8.5775 13.0892L9.2225 13.7342L9.80667 13.0333Z" fill="#16DD12"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/updateAvailable-icon.svg b/freemocap-ui/src/assets/icons/updateAvailable-icon.svgnew file mode 100644index 00000000..241179e7--- /dev/null+++ b/freemocap-ui/src/assets/icons/updateAvailable-icon.svg@@ -0,0 +1,11 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_549_3890)">+<path fill-rule="evenodd" clip-rule="evenodd" d="M4.96105 1.56042C5.80082 0.106752 7.8991 0.106674 8.73881 1.56042L12.2046 7.56366C13.0442 9.01798 11.9945 10.8357 10.3152 10.8357H3.38361C1.7046 10.8353 0.655713 9.01784 1.49528 7.56366L4.96105 1.56042ZM6.93367 7.96432C6.57211 7.96432 6.27905 8.25738 6.27905 8.61894C6.27921 8.98036 6.57221 9.27356 6.93367 9.27356C7.29509 9.27351 7.58813 8.98033 7.58829 8.61894C7.58829 8.25741 7.29519 7.96437 6.93367 7.96432ZM6.93367 2.57847C6.40199 2.57847 5.98836 3.04074 6.04698 3.56916L6.4137 6.87401C6.4432 7.13873 6.66729 7.33925 6.93367 7.33925C7.20001 7.3392 7.42416 7.13871 7.45365 6.87401L7.82037 3.56916C7.87896 3.04078 7.4653 2.57853 6.93367 2.57847Z" fill="#E64900"/>+<path d="M8.84972 17.9031C8.60535 18.1405 8.21595 18.1384 7.97413 17.8985L7.77473 17.7007C7.52633 17.4542 7.52861 17.0519 7.77979 16.8083L9.3243 15.3104H4.375C4.02982 15.3104 3.75 15.0306 3.75 14.6854V14.4253C3.75 14.0801 4.02982 13.8003 4.375 13.8003H9.3243L7.77979 12.3024C7.52861 12.0588 7.52633 11.6565 7.77473 11.4101L7.97363 11.2127C8.21565 10.9726 8.60544 10.9708 8.84974 11.2086L11.832 14.1113C12.0843 14.3569 12.0841 14.7623 11.8315 15.0075L8.84972 17.9031ZM15.0585 13.3678C14.8165 13.6079 14.4267 13.6097 14.1824 13.372L11.2001 10.4692C10.9478 10.2237 10.9481 9.81827 11.2006 9.57299L14.1824 6.67738C14.4268 6.44007 14.8162 6.44214 15.058 6.68205L15.2574 6.87986C15.5058 7.12629 15.5035 7.52862 15.2523 7.77222L13.7078 9.27013H18.6571C19.0023 9.27013 19.2821 9.54995 19.2821 9.89513V10.1552C19.2821 10.5004 19.0023 10.7802 18.6571 10.7802H13.7078L15.2523 12.2781C15.5035 12.5217 15.5058 12.924 15.2574 13.1705L15.0585 13.3678Z" fill="#E4E4E4"/>+</g>+<defs>+<clipPath id="clip0_549_3890">+<rect width="20" height="20" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/freemocap-ui/src/assets/icons/updateAvailable_icon.svg b/freemocap-ui/src/assets/icons/updateAvailable_icon.svgnew file mode 100644index 00000000..573c15f7--- /dev/null+++ b/freemocap-ui/src/assets/icons/updateAvailable_icon.svg@@ -0,0 +1,4 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M3.96879 1.24832C4.64061 0.0853934 6.31923 0.0853305 6.991 1.24832L9.76361 6.05092C10.4353 7.21437 9.59551 8.66853 8.25207 8.66853H2.70684C1.36363 8.66825 0.524522 7.21426 1.19618 6.05092L3.96879 1.24832ZM5.54689 6.37145C5.25764 6.37145 5.02319 6.60589 5.02319 6.89514C5.02332 7.18428 5.25772 7.41884 5.54689 7.41884C5.83602 7.4188 6.07045 7.18426 6.07059 6.89514C6.07059 6.60592 5.83611 6.37149 5.54689 6.37145ZM5.54689 2.06277C5.12154 2.06277 4.79064 2.43258 4.83753 2.85532L5.13091 5.4992C5.15451 5.71098 5.33378 5.87139 5.54689 5.87139C5.75996 5.87135 5.93928 5.71096 5.96287 5.4992L6.25624 2.85532C6.30312 2.43262 5.97219 2.06282 5.54689 2.06277Z" fill="#E64900"/>+<path d="M6.47143 14L5.66143 13.1964L7.15286 11.75H3V10.625H7.15286L5.66143 9.17857L6.47143 8.375L9.36429 11.1907L6.47143 14ZM11.1 10.625L8.20714 7.80929L11.1 5L11.91 5.80357L10.4186 7.25H14.5714V8.375H10.4186L11.91 9.82143L11.1 10.625Z" fill="#E4E4E4"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/video_icon.svg b/freemocap-ui/src/assets/icons/video_icon.svgnew file mode 100644index 00000000..fbb64fcf--- /dev/null+++ b/freemocap-ui/src/assets/icons/video_icon.svg@@ -0,0 +1,4 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12.2902 9.50275C12.6601 9.73102 12.6601 10.269 12.2902 10.4972L9.1529 12.4329C8.76364 12.6731 8.26184 12.393 8.26184 11.9357L8.26184 8.06433C8.26184 7.60694 8.76364 7.32692 9.1529 7.56709L12.2902 9.50275Z" fill="#9B9B9B"/>+<path d="M9.99969 17.6615C14.1836 17.6615 17.6612 14.1913 17.6612 10C17.6612 5.81607 14.1759 2.33849 9.992 2.33849C5.80102 2.33849 2.3385 5.81607 2.3385 10C2.3385 14.1913 5.80839 17.6615 9.99969 17.6615ZM10 16.3847C6.45417 16.3847 3.62204 13.5452 3.62204 10C3.62204 6.46184 6.44648 3.6153 9.992 3.6153C13.5298 3.6153 16.3764 6.46217 16.3841 10C16.3914 13.5455 13.5378 16.3847 10 16.3847Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/warning_icon.svg b/freemocap-ui/src/assets/icons/warning_icon.svgnew file mode 100644index 00000000..10d55ec8--- /dev/null+++ b/freemocap-ui/src/assets/icons/warning_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M7.89405 5.43593C8.8305 3.81492 11.1703 3.81483 12.1067 5.43593L15.9714 12.1303C16.9078 13.752 15.7371 15.7789 13.8645 15.7789H6.13502C4.26272 15.7786 3.09309 13.7518 4.02931 12.1303L7.89405 5.43593ZM10.0938 12.577C9.69058 12.577 9.36378 12.9038 9.36378 13.307C9.36396 13.7101 9.69069 14.037 10.0938 14.037C10.4968 14.0369 10.8236 13.71 10.8237 13.307C10.8237 12.9039 10.4969 12.5771 10.0938 12.577ZM10.0938 6.57118C9.50087 6.57118 9.03963 7.08666 9.10499 7.67592L9.51393 11.3612C9.54683 11.6564 9.79671 11.88 10.0938 11.88C10.3908 11.88 10.6407 11.6564 10.6736 11.3612L11.0825 7.67592C11.1479 7.08671 10.6866 6.57125 10.0938 6.57118Z" fill="#E64900"/>+</svg>diff --git a/freemocap-ui/src/components/camera-views/CameraView.tsx b/freemocap-ui/src/components/camera-views/CameraView.tsxindex 87d54342..a96a66e7 100644--- a/freemocap-ui/src/components/camera-views/CameraView.tsx+++ b/freemocap-ui/src/components/camera-views/CameraView.tsx@@ -72,16 +72,9 @@ export const CameraView: React.FC<CameraViewProps> = memo(({cameraIndex, cameraIreturn (<divref={containerRef}+ className="w-full h-full flex flex-col items-center justify-center pos-rel overflow-hidden"style={{- width: '100%',- height: '100%',- display: 'flex',- flexDirection: 'column',- alignItems: 'center',- justifyContent: 'center',backgroundColor: '#000',- position: 'relative',- overflow: 'hidden',cursor,}}{...containerHandlers}@@ -93,20 +86,17 @@ export const CameraView: React.FC<CameraViewProps> = memo(({cameraIndex, cameraI/></div><div+ className="pos-abs bottom-8 left-8 br-1"style={{- position: 'absolute',- bottom: 8,- left: 8,backgroundColor: 'rgba(0, 0, 0, 0.75)',color: '#fff',padding: '4px 8px',- borderRadius: 4,fontSize: '12px',fontFamily: 'monospace',lineHeight: 1.4,}}>- <div style={{ fontSize: '10px', marginTop: '2px', display: 'flex', gap: '6px', whiteSpace: 'nowrap' }}>+ <div className="camera-stats flex" style={{ fontSize: '10px', marginTop: '2px', gap: '6px', whiteSpace: 'nowrap' }}><span style={{color:'#aaa'}}>#{cameraIndex} - {cameraId}</span><span style={{ color: frontendColor }}>D:<span ref={displayFpsRef} style={{display: 'inline-block', minWidth: '5ch', textAlign: 'right'}}>--</span>diff --git a/freemocap-ui/src/components/camera-views/CameraViewWithOverlay.tsx b/freemocap-ui/src/components/camera-views/CameraViewWithOverlay.tsxindex 24222240..acee4227 100644--- a/freemocap-ui/src/components/camera-views/CameraViewWithOverlay.tsx+++ b/freemocap-ui/src/components/camera-views/CameraViewWithOverlay.tsx@@ -1,278 +1,210 @@-import React, {useState} from 'react';-import {Box, CircularProgress, IconButton, Tooltip, Typography} from '@mui/material';-import RotateRightIcon from '@mui/icons-material/RotateRight';-import BrightnessHighIcon from '@mui/icons-material/BrightnessHigh';-import BrightnessLowIcon from '@mui/icons-material/BrightnessLow';-import WbIncandescentIcon from '@mui/icons-material/WbIncandescent';-import BrightnessAutoIcon from '@mui/icons-material/BrightnessAuto';-import SyncIcon from '@mui/icons-material/Sync';-import SyncDisabledIcon from '@mui/icons-material/SyncDisabled';-import CheckIcon from '@mui/icons-material/Check';-import {useAppDispatch, useAppSelector} from '@/store/hooks';-import {selectCameraById} from '@/store/slices/cameras/cameras-selectors';-import {cameraDesiredConfigUpdated, autoApplyToggled} from '@/store/slices/cameras/cameras-slice';-import {camerasConnectOrUpdate} from '@/store/slices/cameras/cameras-thunks';-import {ROTATION_DEGREE_LABELS, ROTATION_OPTIONS, RotationValue} from '@/store/slices/cameras/cameras-types';-import {CameraView} from './CameraView';+import React, { useState, useRef, useEffect } from "react";+import IconButton from "@/components/ui-components/IconButton";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import { Row } from "@/components/ui-components/Row";+import SegmentedControl from "@/components/ui-components/SegmentedControl";+import ValueSelector from "@/components/ui-components/ValueSelector";+import NameDropdownSelector from "@/components/ui-components/NameDropdownSelector";+import { useAppDispatch, useAppSelector } from "@/store/hooks";+import { selectCameraById } from "@/store/slices/cameras/cameras-selectors";+import {+ cameraDesiredConfigUpdated,+ autoApplyToggled,+} from "@/store/slices/cameras/cameras-slice";+import { camerasConnectOrUpdate } from "@/store/slices/cameras/cameras-thunks";+import {+ ROTATION_DEGREE_LABELS,+ ROTATION_OPTIONS,+ RotationValue,+} from "@/store/slices/cameras/cameras-types";+import { CameraView } from "./CameraView";const EXPOSURE_MIN = -13;const EXPOSURE_MAX = -4;interface CameraViewWithOverlayProps {- cameraIndex: number;- cameraId: string;- isLoading: boolean;- isAutoApply: boolean;+ cameraIndex: number;+ cameraId: string;+ isLoading: boolean;+ isAutoApply: boolean;}-export const CameraViewWithOverlay: React.FC<CameraViewWithOverlayProps> = ({cameraIndex, cameraId, isLoading, isAutoApply}) => {- const dispatch = useAppDispatch();- const [hovered, setHovered] = useState(false);- const [isApplying, setIsApplying] = useState(false);- const camera = useAppSelector(state => selectCameraById(state, cameraId));- const desiredConfig = camera?.desiredConfig;-- const rotation = desiredConfig?.rotation as RotationValue ?? -1;- const exposure = desiredConfig?.exposure ?? -7;- const exposureMode = desiredConfig?.exposure_mode ?? 'MANUAL';-- const handleRotate = () => {- if (!desiredConfig) return;- const idx = ROTATION_OPTIONS.indexOf(rotation);- const next = ROTATION_OPTIONS[(idx + 1) % ROTATION_OPTIONS.length];- dispatch(cameraDesiredConfigUpdated({cameraId, config: {rotation: next}}));+export const CameraViewWithOverlay: React.FC<CameraViewWithOverlayProps> = ({+ cameraIndex,+ cameraId,+ isLoading,+ isAutoApply,+}) => {+ const dispatch = useAppDispatch();+ const [showSettings, setShowSettings] = useState(false);+ const [isApplying, setIsApplying] = useState(false);+ const overlayRef = useRef<HTMLDivElement>(null);+ const camera = useAppSelector((state) => selectCameraById(state, cameraId));+ const desiredConfig = camera?.desiredConfig;++ useEffect(() => {+ if (!showSettings) return;++ const handleClickOutside = (e: MouseEvent) => {+ if (+ overlayRef.current &&+ !overlayRef.current.contains(e.target as Node)+ ) {+ setShowSettings(false);+ }};- const handleExposureUp = () => {- if (!desiredConfig) return;- dispatch(cameraDesiredConfigUpdated({- cameraId,- config: {exposure: Math.min(EXPOSURE_MAX, exposure + 1), exposure_mode: 'MANUAL'},- }));- };+ document.addEventListener("mousedown", handleClickOutside);+ return () => document.removeEventListener("mousedown", handleClickOutside);+ }, [showSettings]);- const handleExposureDown = () => {- if (!desiredConfig) return;- dispatch(cameraDesiredConfigUpdated({- cameraId,- config: {exposure: Math.max(EXPOSURE_MIN, exposure - 1), exposure_mode: 'MANUAL'},- }));- };+ const rotation = (desiredConfig?.rotation as RotationValue) ?? -1;+ const exposure = desiredConfig?.exposure ?? -7;+ const exposureMode = desiredConfig?.exposure_mode ?? "MANUAL";- const handleRecommendExposure = () => {- // Server computes recommended exposure and returns MANUAL mode + value in the response.- // The fulfilled handler in cameras-slice normalizes desiredConfig from the server response.- dispatch(cameraDesiredConfigUpdated({cameraId, config: {exposure_mode: 'RECOMMEND'}}));- };+ const EXPOSURE_MODE_LABELS = { AUTO: "Auto", MANUAL: "Custom" };+ const EXPOSURE_MODE_OPTIONS = Object.values(EXPOSURE_MODE_LABELS);- const handleAutoExposure = () => {- if (exposureMode === 'AUTO') {- dispatch(cameraDesiredConfigUpdated({cameraId, config: {exposure_mode: 'MANUAL'}}));- } else {- dispatch(cameraDesiredConfigUpdated({cameraId, config: {exposure_mode: 'AUTO'}}));- }+ const handleExposureModeChange = (label: string) => {+ const modeMap: Record<string, "AUTO" | "MANUAL"> = {+ Auto: "AUTO",+ Custom: "MANUAL",};-- const handleApply = async () => {- setIsApplying(true);- try {- await dispatch(camerasConnectOrUpdate()).unwrap();- } catch {- // error stored in redux state- } finally {- setIsApplying(false);- }- };-- const exposureLabel =- exposureMode === 'AUTO' ? 'auto' :- exposureMode === 'RECOMMEND' ? '...' :- String(exposure);-- return (- <Box- sx={{position: 'relative', width: '100%', height: '100%'}}- onMouseEnter={() => setHovered(true)}- onMouseLeave={() => setHovered(false)}- >- <CameraView cameraIndex={cameraIndex} cameraId={cameraId} maxWidth/>-- {hovered && (- <Box- sx={{- position: 'absolute',- top: 6,- right: 6,- display: 'flex',- flexDirection: 'column',- gap: '5px',- zIndex: 10,- backgroundColor: 'rgba(0,0,0,0.55)',- backdropFilter: 'blur(3px)',- border: '1px solid rgba(255,255,255,0.12)',- borderRadius: '8px',- padding: '6px',- }}- >- {/* Rotation row */}- <Box sx={{display: 'flex', alignItems: 'center', gap: '6px'}}>- <Tooltip title="Rotate 90° clockwise" placement="left" disableInteractive enterDelay={600}>- <IconButton- size="small"- onClick={handleRotate}- disabled={isLoading}- sx={btnSx}- >- <RotateRightIcon sx={{fontSize: 16}}/>- </IconButton>- </Tooltip>- <Typography sx={valueSx}>{ROTATION_DEGREE_LABELS[rotation]}</Typography>- </Box>-- <Box sx={dividerSx}/>-- {/* Exposure +/- row */}- <Box sx={{display: 'flex', alignItems: 'center', gap: '4px'}}>- <Tooltip title="Decrease exposure" placement="left" disableInteractive enterDelay={600}>- <span>- <IconButton- size="small"- onClick={handleExposureDown}- disabled={isLoading || exposureMode !== 'MANUAL' || exposure <= EXPOSURE_MIN}- sx={btnSx}- >- <BrightnessLowIcon sx={{fontSize: 16}}/>- </IconButton>- </span>- </Tooltip>- <Tooltip title="Increase exposure" placement="left" disableInteractive enterDelay={600}>- <span>- <IconButton- size="small"- onClick={handleExposureUp}- disabled={isLoading || exposureMode !== 'MANUAL' || exposure >= EXPOSURE_MAX}- sx={btnSx}- >- <BrightnessHighIcon sx={{fontSize: 16}}/>- </IconButton>- </span>- </Tooltip>- <Typography sx={valueSx}>{exposureLabel}</Typography>- </Box>-- {/* Exposure mode row */}- <Box sx={{display: 'flex', alignItems: 'center', gap: '4px'}}>- <Tooltip- title={exposureMode === 'AUTO' ? 'Switch to manual exposure' : 'Switch to auto exposure'}- placement="left"- disableInteractive- enterDelay={600}- >- <IconButton- size="small"- onClick={handleAutoExposure}- disabled={isLoading}- sx={exposureMode === 'AUTO' ? btnActiveSx : btnSx}- >- <BrightnessAutoIcon sx={{fontSize: 16}}/>- </IconButton>- </Tooltip>- <Tooltip- title="Recommend exposure for this camera"- placement="left"- disableInteractive- enterDelay={600}- >- <IconButton- size="small"- onClick={handleRecommendExposure}- disabled={isLoading}- sx={btnSx}- >- <WbIncandescentIcon sx={{fontSize: 16}}/>- </IconButton>- </Tooltip>- </Box>-- <Box sx={dividerSx}/>-- {/* Auto-apply row */}- <Box sx={{display: 'flex', alignItems: 'center', gap: '4px'}}>- <Tooltip- title={isAutoApply ? 'Auto-apply on — changes send automatically' : 'Auto-apply off — click apply to send'}- placement="left"- disableInteractive- enterDelay={600}- >- <IconButton- size="small"- onClick={() => dispatch(autoApplyToggled())}- sx={isAutoApply ? btnActiveSx : btnSx}- >- {isAutoApply ? <SyncIcon sx={{fontSize: 16}}/> : <SyncDisabledIcon sx={{fontSize: 16}}/>}- </IconButton>- </Tooltip>- {!isAutoApply && (- <Tooltip title="Apply changes to camera" placement="left" disableInteractive enterDelay={600}>- <span>- <IconButton- size="small"- onClick={handleApply}- disabled={isApplying}- sx={btnSx}- >- {isApplying- ? <CircularProgress size={16} sx={{color: 'inherit'}}/>- : <CheckIcon sx={{fontSize: 16}}/>}- </IconButton>- </span>- </Tooltip>- )}- </Box>- </Box>- )}- </Box>+ dispatch(+ cameraDesiredConfigUpdated({+ cameraId,+ config: { exposure_mode: modeMap[label] ?? "MANUAL" },+ }),);-};--const btnSx = {- width: 24,- height: 24,- padding: '3px',- color: 'rgba(255,255,255,0.8)',- borderRadius: '5px',- outline: 'none',- '&:hover': {- backgroundColor: 'rgba(255,255,255,0.18)',- color: '#fff',- },- '&:focus': {- outline: 'none',- },- '&.Mui-disabled': {- color: 'rgba(255,255,255,0.2)',- },-} as const;--const btnActiveSx = {- ...btnSx,- color: '#fff',- backgroundColor: 'rgba(255,255,255,0.2)',- '&:focus': {- outline: 'none',- },-} as const;--const valueSx = {- fontSize: 11,- fontFamily: 'monospace',- color: 'rgba(255,255,255,0.85)',- minWidth: '28px',- lineHeight: 1,-} as const;--const dividerSx = {- height: '1px',- backgroundColor: 'rgba(255,255,255,0.1)',- mx: '-2px',-} as const;+ };++ const handleExposureValueChange = (value: number) => {+ dispatch(+ cameraDesiredConfigUpdated({+ cameraId,+ config: { exposure: value, exposure_mode: "MANUAL" },+ }),+ );+ };++ const handleApply = async () => {+ setIsApplying(true);+ try {+ await dispatch(camerasConnectOrUpdate()).unwrap();+ } catch {+ // error stored in redux state+ } finally {+ setIsApplying(false);+ }+ };++ return (+ <div className="pos-rel w-full h-full">+ <CameraView cameraIndex={cameraIndex} cameraId={cameraId} maxWidth />++ {/* Settings toggle button */}+ <div className="pos-abs top-6 right-6 z-10" ref={overlayRef}>+ <IconButton+ icon="settings-icon"+ className="icon icon-size-25"+ title={showSettings ? "Close settings" : "Open settings"}+ onClick={() => setShowSettings((prev) => !prev)}+ tooltip={true}+ tooltipPosition="pos-left"+ tooltipText="Camera settings"+ />++ {showSettings && (+ <div className="camera-settings-container contextual camera-overylay-settings pos-abs top-30 right-6 flex flex-col z-10 br-2 border-1 border-black elevated-sharp bg-dark p-1 gap-1">+ <div className="w-full flex flex-col right-0 p-2 gap-1 bg-middark br-1 z-1">+ {/* Header */}+ <div className="subaction-header-container justify-content-space-between gap-1 br-1 flex items-center h-25 p-1">+ <p className="text-nowrap text-left bg-md text-darkgray">+ Camera settings+ </p>+ </div>++ {/* Rotate */}+ <Row label="Rotate">+ <SegmentedControl+ options={ROTATION_OPTIONS.map((o: RotationValue) => ({+ label: ROTATION_DEGREE_LABELS[o],+ value: String(o),+ }))}+ value={String(rotation)}+ onChange={(v) => {+ dispatch(+ cameraDesiredConfigUpdated({+ cameraId,+ config: { rotation: Number(v) as RotationValue },+ }),+ );+ }}+ size="sm"+ className="segmented-control-sm bg-darkgray"+ />+ </Row>+++ {/* Exposure mode dropdown */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Exposure Mode</span>+ <NameDropdownSelector+ key={exposureMode}+ options={EXPOSURE_MODE_OPTIONS}+ initialValue={EXPOSURE_MODE_LABELS[exposureMode as "AUTO" | "MANUAL"]}+ onChange={handleExposureModeChange}+ />+ </div>++ {/* Exposure value — only when manual */}+ {exposureMode === "MANUAL" && (+ <div className="manual-exposure-group flex flex-row gap-1 p-1 justify-content-space-between">+ <div className="flex flex-row items-center gap-1">+ <span className="icon subcat-icon icon-size-20" />+ <p className="text bg">Exposure</p>+ </div>++ <ValueSelector+ value={exposure}+ min={EXPOSURE_MIN}+ max={EXPOSURE_MAX}+ step={1}+ onChange={handleExposureValueChange}+ disabled={isLoading}+ />+ </div>+ )}++++ {/* Footer */}+ <div className="flex flex-col gap-1">+ <ToggleComponent+ text="Auto-apply"++ isToggled={isAutoApply}+ onToggle={() => dispatch(autoApplyToggled())}+ />+ <button+ className={`button sm br-1 secondary flex-1${isAutoApply ? " disabled" : ""}`}++ onClick={handleApply}+ disabled={isApplying || isAutoApply}+ title="Apply changes to camera"+ >+ <p+ className="text md text-white"++ >+ {isApplying ? "Applying..." : "Apply"}+ </p>+ </button>+ </div>+ </div>+ </div>+ )}+ </div>+ </div>+ );+};\ No newline at end of filediff --git a/freemocap-ui/src/components/camera-views/CameraViewsGrid.tsx b/freemocap-ui/src/components/camera-views/CameraViewsGrid.tsxindex 605a0994..e80bc6e0 100644--- a/freemocap-ui/src/components/camera-views/CameraViewsGrid.tsx+++ b/freemocap-ui/src/components/camera-views/CameraViewsGrid.tsx@@ -1,5 +1,4 @@import React, {useMemo} from "react";-import {Box, keyframes} from "@mui/material";import ReactGridLayout, {noCompactor} from "react-grid-layout";import "react-grid-layout/css/styles.css";import "react-resizable/css/styles.css";@@ -9,17 +8,10 @@ import {useTranslation} from "react-i18next";import {useAppSelector} from "@/store/hooks";import {selectAutoApply, selectCameras, selectIsLoading} from "@/store/slices/cameras/cameras-selectors";import {useGridLayout} from "@/hooks/useGridLayout";--const recordingBorderPulse = keyframes`- 0% { border-color: #ff2020; box-shadow: 0 0 4px rgba(255, 32, 32, 0.4); }- 50% { border-color: #aa1010; box-shadow: 0 0 8px rgba(255, 32, 32, 0.15); }- 100% { border-color: #ff2020; box-shadow: 0 0 4px rgba(255, 32, 32, 0.4); }-`;+import CameraEmptyState from "@/components/ui-components/camerasEmptyState";interface CameraViewsGridProps {- /** null = auto-optimize, number = manual column count */manualColumns: number | null;- /** Increment to force a layout reset */resetKey: number;}@@ -29,7 +21,6 @@ export const CameraViewsGrid: React.FC<CameraViewsGridProps> = ({ manualColumns,const isRecording = useAppSelector(state => state.recording.isRecording);const isLoading = useAppSelector(selectIsLoading);const isAutoApply = useAppSelector(selectAutoApply);- // Watch camera configs for rotation/resolution changesconst cameras = useAppSelector(selectCameras);const sortedCameraIds = useMemo(() => {@@ -70,63 +61,25 @@ export const CameraViewsGrid: React.FC<CameraViewsGridProps> = ({ manualColumns,if (sortedCameraIds.length === 0) {return (- <Box+ <divref={containerRef}- sx={{- height: "100%",- width: "100%",- display: "flex",- alignItems: "center",- justifyContent: "center",- color: "text.secondary",- fontSize: "1.2rem",- padding: 4,- textAlign: "center",- }}+ className="streaming-empty-state video-container flex flex-row flex-wrap gap-2 flex-1 flex-start mt-1"+>- <div>- <div>{t("noCamerasConnected")}</div>- <div style={{ fontSize: "0.9rem", marginTop: "0.5rem" }}>- {t("waitingForCameraStreams")}- </div>- </div>- </Box>+ <CameraEmptyState />+ </div>);}return (- <Box+ <divref={containerRef}- sx={{- position: "relative",- width: "100%",- height: "100%",- minHeight: 300,- overflow: "hidden",- "& .react-grid-placeholder": {- backgroundColor: "primary.main",- opacity: 0.15,- borderRadius: "4px",- },- "& .react-grid-item > .react-resizable-handle": {- zIndex: 10,- opacity: 0.4,- transition: "opacity 0.2s ease",- },- "& .react-grid-item:hover > .react-resizable-handle": {- opacity: 1,- },- "& .react-grid-item > .react-resizable-handle::after": {- width: "10px",- height: "10px",- right: "4px",- bottom: "4px",- borderRight: "2px solid rgba(255, 255, 255, 0.5)",- borderBottom: "2px solid rgba(255, 255, 255, 0.5)",- },- }}+ className="streaming-page-camera-feed-inner pos-rel overflow-hidden w-full h-full"+ style={{minHeight: 300}}><ReactGridLayout+ className="streaming-page-camera-feed-item-container"+width={width}layout={layout}gridConfig={gridConfig}@@ -138,25 +91,22 @@ export const CameraViewsGrid: React.FC<CameraViewsGridProps> = ({ manualColumns,{sortedCameraIds.map((cameraId) => {const cam = cameras.find(c => c.id === cameraId);return (- <Box+ <divkey={cameraId}- sx={{- overflow: "hidden",- borderRadius: "4px",+ className="streaming-page-camera-feed-item overflow-hidden br-2"+ style={{border: isRecording- ? "2px solid #ff2020"- : "1px solid rgba(255,255,255,0.15)",+ ? "2px solid var(--color-danger)"+ : "2px solid transparent",transition: "border 0.3s ease, box-shadow 0.3s ease",- ...(isRecording && {- animation: `${recordingBorderPulse} 3s infinite ease-in-out`,- }),+ ...(isRecording ? {animation: 'recordingBorderPulse 3s infinite ease-in-out'} : {}),}}><CameraViewWithOverlay cameraIndex={cam?.index ?? -1} cameraId={cameraId} isLoading={isLoading} isAutoApply={isAutoApply} />- </Box>+ </div>);})}</ReactGridLayout>- </Box>+ </div>);};diff --git a/freemocap-ui/src/components/camera-views/ResizableCameraView.tsx b/freemocap-ui/src/components/camera-views/ResizableCameraView.tsxindex 22f4909c..2339c44c 100644--- a/freemocap-ui/src/components/camera-views/ResizableCameraView.tsx+++ b/freemocap-ui/src/components/camera-views/ResizableCameraView.tsx@@ -1,33 +1,24 @@import React, {useCallback, useEffect, useRef, useState} from 'react';-import {Box} from '@mui/material';import {CameraView} from './CameraView';interface ResizableCameraViewProps {cameraIndex: number;cameraId: string;- /** Initial position/size from the auto-layout */initialX: number;initialY: number;initialWidth: number;initialHeight: number;- /** Called when the user finishes moving or resizing this view */onLayoutChange: (cameraId: string, x: number, y: number, w: number, h: number) => void;- /** Bring this camera to front when interacted with */onFocus: (cameraId: string) => void;zIndex: number;}const MIN_WIDTH = 120;const MIN_HEIGHT = 90;-const HANDLE_SIZE = 16;type DragMode = 'none' | 'move' | 'resize';-/**- * A single camera view window that can be freely dragged (by its body)- * and resized (by a bottom-right handle) within an absolute-positioned container.- */export const ResizableCameraView: React.FC<ResizableCameraViewProps> = ({cameraIndex,cameraId,@@ -45,7 +36,6 @@ export const ResizableCameraView: React.FC<ResizableCameraViewProps> = ({const [height, setHeight] = useState<number>(initialHeight);const [dragMode, setDragMode] = useState<DragMode>('none');- // Sync when parent resets layoutuseEffect(() => {setX(initialX);setY(initialY);@@ -126,7 +116,6 @@ export const ResizableCameraView: React.FC<ResizableCameraViewProps> = ({(e.target as HTMLElement).releasePointerCapture(e.pointerId);}, [dragMode, cameraId, onLayoutChange]);- // Suppress text selection during draguseEffect(() => {if (dragMode !== 'none') {document.body.style.userSelect = 'none';@@ -141,68 +130,42 @@ export const ResizableCameraView: React.FC<ResizableCameraViewProps> = ({const isActive = dragMode !== 'none';return (- <Box- sx={{- position: 'absolute',+ <div+ className="pos-abs overflow-hidden br-1"+ style={{left: x,top: y,width,height,zIndex,- border: '1px solid',- borderColor: isActive ? 'primary.main' : 'rgba(255,255,255,0.15)',- borderRadius: '4px',- overflow: 'hidden',- boxShadow: isActive ? 4 : 1,+ border: `1px solid ${isActive ? 'var(--color-info)' : 'rgba(255,255,255,0.15)'}`,+ boxShadow: isActive ? '0 4px 12px rgba(0,0,0,0.4)' : '0 1px 4px rgba(0,0,0,0.2)',transition: isActive ? 'none' : 'border-color 0.15s ease, box-shadow 0.15s ease',- '&:hover': {- borderColor: 'rgba(255,255,255,0.4)',- },}}>- {/* Draggable move area covers the entire camera view */}- <Box+ <divonPointerDown={(e) => handlePointerDown(e, 'move')}onPointerMove={handlePointerMove}onPointerUp={handlePointerUp}- sx={{- width: '100%',- height: '100%',+ className="w-full h-full"+ style={{cursor: dragMode === 'move' ? 'grabbing' : 'grab',}}><CameraView cameraIndex={cameraIndex} cameraId={cameraId} />- </Box>+ </div>- {/* Resize handle in the bottom-right corner */}- <Box+ <divonPointerDown={(e) => handlePointerDown(e, 'resize')}onPointerMove={handlePointerMove}onPointerUp={handlePointerUp}- sx={{- position: 'absolute',- bottom: 0,- right: 0,+ className="pos-abs bottom-0 right-0 z-2"+ style={{width: HANDLE_SIZE,height: HANDLE_SIZE,cursor: 'nwse-resize',- zIndex: 2,- '&::after': {- content: '""',- position: 'absolute',- bottom: 2,- right: 2,- width: 8,- height: 8,- borderRight: '2px solid',- borderBottom: '2px solid',- borderColor: isActive ? 'primary.main' : 'rgba(255,255,255,0.45)',- },- '&:hover::after': {- borderColor: 'primary.main',- },}}/>- </Box>+ </div>);};diff --git a/freemocap-ui/src/components/common/CalibrationTomlPicker.tsx b/freemocap-ui/src/components/common/CalibrationTomlPicker.tsxindex b9f87b6b..66516025 100644--- a/freemocap-ui/src/components/common/CalibrationTomlPicker.tsx+++ b/freemocap-ui/src/components/common/CalibrationTomlPicker.tsx@@ -1,9 +1,5 @@import React from "react";-import {Box, Button, Chip, Tooltip, Typography, useTheme} from "@mui/material";-import CheckCircleIcon from "@mui/icons-material/CheckCircle";-import ErrorIcon from "@mui/icons-material/Error";-import FolderOpenIcon from "@mui/icons-material/FolderOpen";-import AutorenewIcon from "@mui/icons-material/Autorenew";+import IconButton from "@/components/ui-components/IconButton";export type CalibrationTomlSource = "auto" | "calibration-panel" | "manual" | "last-successful";@@ -29,88 +25,44 @@ export const CalibrationTomlPicker: React.FC<CalibrationTomlPickerProps> = ({onUseAutoDetected,disabled = false,}) => {- const theme = useTheme();-- const statusIcon = tomlPath ? (- <CheckCircleIcon sx={{fontSize: 18, color: "#00e5ff"}} />- ) : (- <ErrorIcon sx={{fontSize: 18, color: theme.palette.error.main}} />- );-return (- <Box- sx={{- display: "flex",- alignItems: "center",- gap: 1,- p: 1,- borderRadius: 1,- border: `1px solid ${theme.palette.divider}`,- minHeight: 36,- }}- >- {statusIcon}+ <div className="flex flex-row items-center gap-1 p-1 br-1 border-1 border-mid-black" style={{ minHeight: 36 }}>+ <span className={`icon icon-size-20 ${tomlPath ? 'upToDate-icon' : 'warning-icon'}`} />- <Box sx={{flex: 1, minWidth: 0}}>+ <div className="flex-1 flex flex-col min-w-0 overflow-hidden">{tomlPath ? (<>- <Chip- label={SOURCE_LABELS[source]}- size="small"- sx={{- height: 16,- fontSize: 9,- "& .MuiChip-label": {px: 0.5},- mb: 0.25,- }}- />- <Tooltip title={tomlPath} arrow>- <Typography- variant="caption"- sx={{- fontFamily: "monospace",- fontSize: 10,- display: "block",- color: "success.main",- overflow: "hidden",- textOverflow: "ellipsis",- whiteSpace: "nowrap",- }}- >- {tomlPath}- </Typography>- </Tooltip>+ <span className="tag text sm">{SOURCE_LABELS[source]}</span>+ <span+ className="text sm"+ title={tomlPath}+ style={{ fontFamily: 'monospace', color: 'var(--color-success)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}+ >+ {tomlPath}+ </span></>) : (- <Typography variant="caption" color="text.secondary">- No calibration TOML found- </Typography>+ <span className="text sm text-gray">No calibration TOML found</span>)}- </Box>+ </div>{source !== "auto" && tomlPath && (- <Tooltip title="Use auto-detected calibration" arrow>- <Button- size="small"- onClick={onUseAutoDetected}- disabled={disabled}- sx={{minWidth: 0, p: 0.5}}- >- <AutorenewIcon fontSize="small" />- </Button>- </Tooltip>+ <IconButton+ icon="rotate-icon"+ onClick={onUseAutoDetected}+ disabled={disabled}+ title="Use auto-detected calibration"+ />)}- <Button- size="small"- variant="outlined"+ <button+ className="button sm secondary br-1 flex flex-row items-center gap-1"onClick={onSelect}disabled={disabled}- startIcon={<FolderOpenIcon />}- sx={{flexShrink: 0, textTransform: "none", fontSize: 11}}>- Browse- </Button>- </Box>+ <span className="icon load-icon icon-size-20" />+ <p className="text sm text-white">Browse</p>+ </button>+ </div>);};diff --git a/freemocap-ui/src/components/common/CollapsibleSidebarSection.tsx b/freemocap-ui/src/components/common/CollapsibleSidebarSection.tsxindex 1e55e93d..9587fed2 100644--- a/freemocap-ui/src/components/common/CollapsibleSidebarSection.tsx+++ b/freemocap-ui/src/components/common/CollapsibleSidebarSection.tsx@@ -1,18 +1,10 @@import React, {ReactNode, useCallback, useState} from "react";-import {Box, Collapse, Paper, Typography, useTheme} from "@mui/material";-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";-import ChevronRightIcon from "@mui/icons-material/ChevronRight";-import DragIndicatorIcon from "@mui/icons-material/DragIndicator";-import {useDragHandle} from "@/components/common/DragHandleContext";interface CollapsibleSidebarSectionProps {icon: ReactNode;title: string;- /** Compact summary shown in collapsed header (e.g., "3 connected", "00:01:23") */summaryContent?: ReactNode;- /** Primary action button shown in header (e.g., record button, connect button) */primaryControl?: ReactNode;- /** Additional action buttons shown in header (e.g., refresh, pause, close) */secondaryControls?: ReactNode;children: ReactNode;defaultExpanded?: boolean;@@ -27,172 +19,62 @@ export const CollapsibleSidebarSection: React.FC<CollapsibleSidebarSectionProps>children,defaultExpanded = false,}) => {- const theme = useTheme();const [expanded, setExpanded] = useState(defaultExpanded);- const dragHandle = useDragHandle();- const handleToggle = useCallback(() => {- setExpanded((prev) => !prev);- }, []);-- const handleControlClick = useCallback((e: React.MouseEvent) => {- e.stopPropagation();- }, []);+ const handleToggle = useCallback(() => setExpanded((prev) => !prev), []);+ const handleControlClick = useCallback((e: React.MouseEvent) => e.stopPropagation(), []);return (- <Paper- elevation={1}- sx={{- borderRadius: 1,- overflow: "hidden",- }}- >- {/* Header row — always visible */}- <Box+ <div className="bg-darkgray br-1 overflow-hidden hidden motion-caption-left-side-bar">+ {/* Header row */}+ <divonClick={handleToggle}- sx={{- display: "flex",- alignItems: "center",- cursor: "pointer",- py: 0.75,- px: dragHandle ? 0.5 : 1.5,- minHeight: 44,- backgroundColor: theme.palette.primary.dark,- color: theme.palette.primary.contrastText,- userSelect: "none",- transition: "background-color 0.15s ease",- "&:hover": {- backgroundColor: theme.palette.primary.dark,- },+ className="flex flex-row items-center gap-1 p-1 pr-2"+ style={{+ minHeight: 40,+ cursor: 'pointer',+ userSelect: 'none',+ backgroundColor: 'var(--color-bg-elevated)',+ paddingLeft: 12,}}>- {/* Drag handle — only rendered when inside a sortable context */}- {dragHandle && (- <Box- {...dragHandle.attributes}- {...dragHandle.listeners}- onClick={(e: React.MouseEvent) => e.stopPropagation()}- sx={{- display: "flex",- alignItems: "center",- cursor: "grab",- px: 0.25,- mr: 0.25,- flexShrink: 0,- opacity: 0.35,- borderRadius: 0.5,- transition: "opacity 0.15s ease, background-color 0.15s ease",- "&:hover": {- opacity: 0.9,- backgroundColor: "rgba(255,255,255,0.1)",- },- "&:active": {- cursor: "grabbing",- },- }}- >- <DragIndicatorIcon sx={{fontSize: 18}} />- </Box>- )}-- {/* Expand/collapse chevron */}- <Box- sx={{- display: "flex",- alignItems: "center",- mr: 0.5,- flexShrink: 0,- }}- >- {expanded ? (- <ExpandMoreIcon fontSize="small" />- ) : (- <ChevronRightIcon fontSize="small" />- )}- </Box>+ {/* Chevron */}+ <span className={`icon icon-size-20 flex-shrink-0 ${expanded ? 'collapse-icon' : 'expand-icon'}`} style={{ transform: expanded ? 'rotate(0deg)' : 'rotate(-90deg)' }} />{/* Section icon */}- <Box- sx={{- display: "flex",- alignItems: "center",- mr: 1,- flexShrink: 0,- }}- >- {icon}- </Box>+ <span className="flex items-center flex-shrink-0">{icon}</span>{/* Title */}- <Typography- variant="subtitle1"- sx={{- fontWeight: 600,- flexShrink: 0,- lineHeight: 1.3,- }}- >- {title}- </Typography>+ <span className="text bg text-white flex-shrink-0">{title}</span>- {/* Summary — fills remaining horizontal space */}+ {/* Summary */}{summaryContent && (- <Box- sx={{- flexGrow: 1,- mx: 1.5,- overflow: "hidden",- display: "flex",- alignItems: "center",- justifyContent: "flex-end",- }}- >+ <div className="flex-1 flex flex-row items-center flex-end overflow-hidden" style={{ margin: '0 6px' }}>{summaryContent}- </Box>+ </div>)}- {/* Secondary controls — always visible */}+ {/* Secondary controls */}{secondaryControls && (- <Box- onClick={handleControlClick}- sx={{- display: "flex",- alignItems: "center",- gap: 0.5,- flexShrink: 0,- mr: primaryControl ? 0.5 : 0,- }}- >+ <div onClick={handleControlClick} className="flex flex-row items-center gap-1">{secondaryControls}- </Box>+ </div>)}- {/* Primary control — click is isolated from expand/collapse */}+ {/* Primary control */}{primaryControl && (- <Box- onClick={handleControlClick}- sx={{- flexShrink: 0,- display: "flex",- alignItems: "center",- pr: 0.5,- }}- >+ <div onClick={handleControlClick} className="flex items-center pr-1">{primaryControl}- </Box>+ </div>)}- </Box>+ </div>- {/* Detail panel — only visible when expanded */}- <Collapse in={expanded} timeout="auto" unmountOnExit>- <Box- sx={{- backgroundColor: theme.palette.background.paper,- }}- >+ {/* Detail panel */}+ {expanded && (+ <div className="bg-darkgray">{children}- </Box>- </Collapse>- </Paper>+ </div>+ )}+ </div>);};diff --git a/freemocap-ui/src/components/common/DirectoryStatusPanel.tsx b/freemocap-ui/src/components/common/DirectoryStatusPanel.tsxindex 1b08e418..3fc1882d 100644--- a/freemocap-ui/src/components/common/DirectoryStatusPanel.tsx+++ b/freemocap-ui/src/components/common/DirectoryStatusPanel.tsx@@ -1,72 +1,31 @@import React from "react";-import {Box, Chip, CircularProgress, IconButton, Stack, Tooltip, Typography, useTheme,} from "@mui/material";-import CheckCircleIcon from "@mui/icons-material/CheckCircle";-import CloseIcon from "@mui/icons-material/Close";-import InfoIcon from "@mui/icons-material/Info";-import RefreshIcon from "@mui/icons-material/Refresh";+import IconButton from "@/components/ui-components/IconButton";-/**- * Minimal directory‐info shape shared by both calibration and mocap hooks.- * Extend as needed – the component only reads what it renders.- */export interface DirectoryStatus {exists: boolean;hasVideos: boolean;hasSynchronizedVideos: boolean;errorMessage?: string | null;- /** Path to a relevant TOML / output file, if one exists. */tomlPath?: string | null;}export interface DirectoryStatusPanelProps {- /** Section heading shown next to the info icon. */title: string;- /** Label for the TOML chip, e.g. "Has calibration TOML" */tomlLabel: string;- /** The directoryInfo object from the relevant hook. `null` hides the panel. */directoryInfo: DirectoryStatus | null;- /** Called when the user clicks the refresh button. */onRefresh?: () => void;- /** Disables the refresh button. */refreshDisabled?: boolean;- /** Shows a spinner on the refresh button. */isRefreshing?: boolean;- /** Visual accent for the border: "ok" | "bad" | "none". Defaults to "none". */status?: "ok" | "bad" | "none";}-/** Reusable chip for a boolean check. */-const StatusChip: React.FC<{- label: string;- ok: boolean;-}> = ({label, ok}) => {- const theme = useTheme();- return (- <Chip- label={label}- size="small"- color={ok ? "success" : "default"}- icon={ok ? <CheckCircleIcon /> : <CloseIcon />}- variant={ok ? "filled" : "outlined"}- sx={- !ok- ? {- borderColor: theme.palette.grey[400],- "& .MuiChip-icon": {color: theme.palette.grey[600]},- }- : {}- }- />- );-};+const StatusChip: React.FC<{ label: string; ok: boolean }> = ({ label, ok }) => (+ <span className={`tag text sm flex flex-row items-center gap-1 ${ok ? '' : 'text-gray'}`}>+ <span className={`icon icon-size-12 ${ok ? 'upToDate-icon' : 'close-icon'}`} />+ {label}+ </span>+);-/**- * Shows directory existence, video availability, sync status and TOML- * presence as a row of status chips with an optional refresh button.- *- * Designed to drop into both CalibrationControlPanel and MocapTaskTreeItem,- * replacing the ~140 lines of duplicated chip JSX in each.- */export const DirectoryStatusPanel: React.FC<DirectoryStatusPanelProps> = ({title,tomlLabel,@@ -76,86 +35,49 @@ export const DirectoryStatusPanel: React.FC<DirectoryStatusPanelProps> = ({isRefreshing = false,status = "none",}) => {- const theme = useTheme();-if (!directoryInfo) return null;- const borderColor =- status === "ok"- ? "#00e5ff44"- : status === "bad"- ? `${theme.palette.error.main}44`- : theme.palette.divider;+ const borderStyle = status === "ok"+ ? '2px solid #00e5ff44'+ : status === "bad"+ ? '2px solid var(--color-danger)'+ : '2px solid var(--color-border-muted)';return (- <Box sx={{p: 1.5, borderRadius: 1, border: `2px solid ${borderColor}`}}>- <Stack spacing={1}>- {/* Header row */}- <Box- sx={{- display: "flex",- alignItems: "center",- justifyContent: "space-between",- }}- >- <Box sx={{display: "flex", alignItems: "center", gap: 1}}>- <InfoIcon fontSize="small" color="info" />- <Typography variant="caption" fontWeight="medium">- {title}- </Typography>- </Box>-- {onRefresh && (- <Tooltip title="Re-check folder">- <span>- <IconButton- size="small"- onClick={onRefresh}- disabled={refreshDisabled}- sx={{p: 0.25}}- >- {isRefreshing ? (- <CircularProgress size={14} color="inherit" />- ) : (- <RefreshIcon sx={{fontSize: 14}} />- )}- </IconButton>- </span>- </Tooltip>- )}- </Box>-- {/* Status chips */}- <Box sx={{display: "flex", gap: 1, flexWrap: "wrap"}}>- <StatusChip- label={directoryInfo.exists ? "Directory exists" : "Directory will be created"}- ok={directoryInfo.exists}+ <div className="p-2 br-1 flex flex-col gap-1" style={{ border: borderStyle }}>+ {/* Header row */}+ <div className="flex flex-row items-center justify-content-space-between">+ <div className="flex flex-row items-center gap-1">+ <span className="icon icon-size-20" style={{ backgroundImage: 'url("data:image/svg+xml,%3csvg width=\'16\' height=\'16\' viewBox=\'0 0 16 16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3ccircle cx=\'8\' cy=\'8\' r=\'6\' stroke=\'%232ba4ff\' stroke-width=\'1.5\'/%3e%3cpath d=\'M8 7v4M8 5.5v.5\' stroke=\'%232ba4ff\' stroke-width=\'1.5\' stroke-linecap=\'round\'/%3e%3c/svg%3e")' }} />+ <span className="text sm text-gray">{title}</span>+ </div>+ {onRefresh && (+ <IconButton+ icon={isRefreshing ? "loader-icon" : "rotate-icon"}+ onClick={onRefresh}+ disabled={refreshDisabled}+ title="Re-check folder"/>- <StatusChip label="Has videos" ok={directoryInfo.hasVideos} />- <StatusChip label="Has synchronized_videos" ok={directoryInfo.hasSynchronizedVideos} />- <StatusChip label={tomlLabel} ok={!!directoryInfo.tomlPath} />- </Box>-- {/* TOML path display */}- {directoryInfo.tomlPath && (- <Box sx={{mt: 1}}>- <Typography variant="caption" color="text.secondary">- Found calibration file:- </Typography>- <Typography- variant="caption"- sx={{- fontFamily: "monospace",- display: "block",- color: "success.main",- wordBreak: "break-all",- }}- >- {directoryInfo.tomlPath}- </Typography>- </Box>)}- </Stack>- </Box>+ </div>++ {/* Status chips */}+ <div className="flex flex-row flex-wrap gap-1">+ <StatusChip label={directoryInfo.exists ? "Directory exists" : "Directory will be created"} ok={directoryInfo.exists} />+ <StatusChip label="Has videos" ok={directoryInfo.hasVideos} />+ <StatusChip label="Has synchronized_videos" ok={directoryInfo.hasSynchronizedVideos} />+ <StatusChip label={tomlLabel} ok={!!directoryInfo.tomlPath} />+ </div>++ {/* TOML path display */}+ {directoryInfo.tomlPath && (+ <div>+ <p className="text sm text-gray">Found calibration file:</p>+ <p className="text sm" style={{ fontFamily: 'monospace', color: 'var(--color-success)', wordBreak: 'break-all' }}>+ {directoryInfo.tomlPath}+ </p>+ </div>+ )}+ </div>);};diff --git a/freemocap-ui/src/components/common/DragHandleContext.ts b/freemocap-ui/src/components/common/DragHandleContext.tsdeleted file mode 100644index 7d8f9b82..00000000--- a/freemocap-ui/src/components/common/DragHandleContext.ts+++ /dev/null@@ -1,12 +0,0 @@-import {createContext, useContext} from "react";--export interface DragHandleContextValue {- listeners: Record<string, Function> | undefined;- attributes: Record<string, any>;-}--export const DragHandleContext = createContext<DragHandleContextValue | null>(null);--export const useDragHandle = (): DragHandleContextValue | null => {- return useContext(DragHandleContext);-};diff --git a/freemocap-ui/src/components/common/PresetPicker.tsx b/freemocap-ui/src/components/common/PresetPicker.tsxindex f0bf37ed..be804b0b 100644--- a/freemocap-ui/src/components/common/PresetPicker.tsx+++ b/freemocap-ui/src/components/common/PresetPicker.tsx@@ -1,5 +1,5 @@import React from "react";-import {Box, FormControl, InputLabel, MenuItem, Select, SxProps, Theme} from "@mui/material";+import NameDropdownSelector from "@/components/ui-components/NameDropdownSelector";interface PresetOption<T extends string> {value: T;@@ -12,9 +12,6 @@ interface PresetPickerProps<T extends string> {options: PresetOption<T>[];onChange: (value: T) => void;disabled?: boolean;- size?: "small" | "medium";- minWidth?: number;- sx?: SxProps<Theme>;}export function PresetPicker<T extends string>({@@ -23,30 +20,26 @@ export function PresetPicker<T extends string>({options,onChange,disabled = false,- size = "small",- minWidth = 120,- sx,}: PresetPickerProps<T>): React.ReactElement {- const labelId = label ? `preset-picker-${label.toLowerCase().replace(/\s+/g, "-")}-label` : undefined;+ const labels = options.map(o => o.label);+ const selectedLabel = options.find(o => o.value === value)?.label ?? labels[0];++ const handleChange = (label: string) => {+ const opt = options.find(o => o.label === label);+ if (opt) onChange(opt.value);+ };return (- <Box >- <FormControl size={size} sx={{minWidth, ...sx}}>- {label && <InputLabel id={labelId}>{label}</InputLabel>}- <Select- labelId={labelId}- value={value}- label={label || undefined}- onChange={(e) => onChange(e.target.value as T)}- disabled={disabled}- >- {options.map((opt) => (- <MenuItem key={opt.value} value={opt.value}>- {opt.label}- </MenuItem>- ))}- </Select>- </FormControl>- </Box>+ <div className={`min-w-full flex flex-col gap-1${disabled ? ' disabled' : ''}`}>+ {label && <label className="text sm text-gray">{label}</label>}+ <NameDropdownSelector+ key={value}+ options={labels}+ initialValue={selectedLabel}+ onChange={handleChange}+ DropdownclassName="left-0"+ />++ </div>);}diff --git a/freemocap-ui/src/components/common/RecordingStatusPanel.tsx b/freemocap-ui/src/components/common/RecordingStatusPanel.tsxindex 6c1aece6..adf4590a 100644--- a/freemocap-ui/src/components/common/RecordingStatusPanel.tsx+++ b/freemocap-ui/src/components/common/RecordingStatusPanel.tsx@@ -1,24 +1,6 @@-import React from "react";-import {- Accordion,- AccordionDetails,- AccordionSummary,- Alert,- Box,- Chip,- CircularProgress,- IconButton,- Stack,- Tooltip,- Typography,- useTheme,-} from "@mui/material";-import CheckCircleIcon from "@mui/icons-material/CheckCircle";-import CloseIcon from "@mui/icons-material/Close";-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";-import InfoIcon from "@mui/icons-material/Info";-import RefreshIcon from "@mui/icons-material/Refresh";-import {RecordingStatus} from "@/types/recording-status";+import React, { useState } from "react";+import { RecordingStatus } from "@/types/recording-status";+import IconButton from "@/components/ui-components/IconButton";interface RecordingStatusPanelProps {status: RecordingStatus | null;@@ -26,11 +8,8 @@ interface RecordingStatusPanelProps {error?: string | null;onRefresh?: () => void;defaultExpanded?: boolean;- /** Path to the calibration TOML the user has currently selected (shown at top). */activeCalibrationTomlPath?: string | null;- /** When false, the panel shows a "folder doesn't exist yet" notice instead of status. */folderExists?: boolean;- /** Path shown in the "folder missing" notice for clarity. */recordingFolderPath?: string | null;}@@ -40,10 +19,7 @@ const humanizeBytes = (bytes: number | null): string => {const units = ["KB", "MB", "GB", "TB"];let value = bytes / 1024;let i = 0;- while (value >= 1024 && i < units.length - 1) {- value /= 1024;- i++;- }+ while (value >= 1024 && i < units.length - 1) { value /= 1024; i++; }return `${value.toFixed(value >= 10 ? 0 : 1)} ${units[i]}`;};@@ -53,35 +29,29 @@ const formatTimestamp = (iso: string | null): string => {const d = new Date(iso);if (Number.isNaN(d.getTime())) return iso;return d.toLocaleString();- } catch {- return iso;- }+ } catch { return iso; }};-const StageChip: React.FC<{name: string; complete: boolean; present: number; total: number}> = ({- name,- complete,- present,- total,+const StageRow: React.FC<{ name: string; complete: boolean; present: number; total: number; children?: React.ReactNode }> = ({+ name, complete, present, total, children}) => {- const theme = useTheme();+ const [open, setOpen] = useState(false);const label = total > 1 ? `${name} (${present}/${total})` : name;return (- <Chip- size="small"- label={label}- color={complete ? "success" : "default"}- icon={complete ? <CheckCircleIcon/> : <CloseIcon/>}- variant={complete ? "filled" : "outlined"}- sx={- !complete- ? {- borderColor: theme.palette.grey[400],- "& .MuiChip-icon": {color: theme.palette.grey[600]},- }- : {}- }- />+ <div className="border-1 border-mid-black br-1 mb-1">+ <div+ className="flex flex-row items-center gap-1 p-1"++ onClick={() => setOpen(v => !v)}+ >+ <span className={`icon icon-size-20 ${complete ? 'upToDate-icon' : 'close-icon'}`} />+ <span className="text sm text-white flex-1">{label}</span>+ <span className="icon icon-size-20 collapse-icon" style={{ transform: open ? 'rotate(0deg)' : 'rotate(-90deg)' }} />+ </div>+ {open && children && (+ <div className="p-1 pt-0">{children}</div>+ )}+ </div>);};@@ -95,7 +65,7 @@ export const RecordingStatusPanel: React.FC<RecordingStatusPanelProps> = ({folderExists = true,recordingFolderPath = null,}) => {- const theme = useTheme();+ const [expanded, setExpanded] = useState(defaultExpanded);const stagesComplete = status ? status.stages.filter((s) => s.complete).length : 0;const stagesTotal = status ? status.stages.length : 0;@@ -103,8 +73,6 @@ export const RecordingStatusPanel: React.FC<RecordingStatusPanelProps> = ({const hasBlend = !!status?.has_blend_file;const exportReady = !!status?.blender_export_ready;- // Fully processed = every stage complete (including the blender scene).- // Ready for Blender = inputs present but no .blend yet.const summaryLabel = !folderExists? "Folder not created yet": status@@ -113,251 +81,107 @@ export const RecordingStatusPanel: React.FC<RecordingStatusPanelProps> = ({: exportReady && !hasBlend? "Ready for Blender": `${stagesComplete}/${stagesTotal} stages complete`- : isLoading- ? "Checking…"- : error- ? "Status unavailable"- : "No status";+ : isLoading ? "Checking…"+ : error ? "Status unavailable"+ : "No status";- const summaryColor: "success" | "info" | "warning" | "default" = !folderExists- ? "warning"- : allStagesComplete && hasBlend- ? "success"- : exportReady && !hasBlend- ? "info"- : "default";- const accentBorder =- summaryColor === "success"- ? "#00e5ff66"- : summaryColor === "info"- ? `${theme.palette.info.main}44`- : summaryColor === "warning"- ? `${theme.palette.warning.main}55`- : theme.palette.divider;+ const summaryColor = !folderExists ? 'text-warning'+ : (allStagesComplete && hasBlend) ? 'text-white'+ : 'text-gray';return (- <Accordion- defaultExpanded={defaultExpanded}- disableGutters- square- sx={{- "&:before": {display: "none"},- borderRadius: 1,- border: `2px solid ${accentBorder}`,- bgcolor: "transparent",- boxShadow: "none",- }}- >- <AccordionSummary- expandIcon={<ExpandMoreIcon/>}- sx={{- minHeight: 40,- "& .MuiAccordionSummary-content": {- my: 0.5,- alignItems: "center",- gap: 1,- minWidth: 0,- },- }}+ <div className="br-1 border-1 border-mid-black overflow-hidden">+ <div+ className="flex flex-row items-center gap-1 p-1"++ onClick={() => setExpanded(v => !v)}>- <InfoIcon fontSize="small" color="info"/>- <Typography- variant="caption"- fontWeight="medium"- noWrap- sx={{flex: "0 1 auto", minWidth: 0}}- >- Recording folder- </Typography>- <Chip- size="small"- label={summaryLabel}- color={summaryColor === "default" ? "default" : summaryColor}- icon={summaryColor !== "default" ? <CheckCircleIcon/> : undefined}- variant={summaryColor !== "default" ? "filled" : "outlined"}- sx={{flexShrink: 0}}- />- <Box sx={{flex: 1}}/>+ <span className="icon info-icon icon-size-20" style={{ backgroundImage: 'url("data:image/svg+xml,%3csvg width=\'16\' height=\'16\' viewBox=\'0 0 16 16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3ccircle cx=\'8\' cy=\'8\' r=\'6\' stroke=\'%232ba4ff\' stroke-width=\'1.5\'/%3e%3cpath d=\'M8 7v4M8 5.5v.5\' stroke=\'%232ba4ff\' stroke-width=\'1.5\' stroke-linecap=\'round\'/%3e%3c/svg%3e")' }} />+ <span className="text sm text-gray flex-1">Recording folder</span>+ <span className={`tag text sm ${summaryColor}`}>{summaryLabel}</span>{onRefresh && (- <Tooltip title="Re-check folder">- <span>- <IconButton- component="span"- size="small"- onClick={(e) => {- e.stopPropagation();- onRefresh();- }}- disabled={isLoading}- sx={{p: 0.25, flexShrink: 0}}- >- {isLoading ? (- <CircularProgress size={14} color="inherit"/>- ) : (- <RefreshIcon sx={{fontSize: 14}}/>- )}- </IconButton>- </span>- </Tooltip>+ <IconButton+ icon={isLoading ? "loader-icon" : "rotate-icon"}+ onClick={(e) => { e.stopPropagation(); onRefresh(); }}+ disabled={isLoading}+ title="Re-check folder"+ />)}- </AccordionSummary>+ <span className="icon icon-size-20 collapse-icon" style={{ transform: expanded ? 'rotate(0deg)' : 'rotate(-90deg)' }} />+ </div>- <AccordionDetails sx={{pt: 0, pb: 1.5, px: 1.5}}>- <Stack spacing={1}>- {error && <Alert severity="error" variant="outlined">{error}</Alert>}+ {expanded && (+ <div className="flex flex-col gap-1 p-2">+ {error && (+ <div className="toast-notification error">+ <p className="text sm">{error}</p>+ </div>+ )}{!folderExists && (- <Alert severity="warning" variant="outlined">- <Typography variant="caption" sx={{display: "block"}}>- Recording folder does not exist yet. It will be created when you start recording.- </Typography>+ <div className="toast-notification">+ <p className="text sm text-warning">Recording folder does not exist yet. It will be created when you start recording.</p>{recordingFolderPath && (- <Typography- variant="caption"- sx={{- fontFamily: "monospace",- display: "block",- wordBreak: "break-all",- mt: 0.5,- }}- >+ <p className="text sm text-gray mt-1" style={{ fontFamily: 'monospace', wordBreak: 'break-all' }}>{recordingFolderPath}- </Typography>+ </p>)}- </Alert>+ </div>)}{activeCalibrationTomlPath && (- <Box>- <Typography variant="caption" color="text.secondary">- Active calibration TOML:- </Typography>- <Typography- variant="caption"- sx={{- fontFamily: "monospace",- display: "block",- color: "success.main",- wordBreak: "break-all",- }}- >+ <div>+ <p className="text sm text-gray">Active calibration TOML:</p>+ <p className="text sm" style={{ fontFamily: 'monospace', color: 'var(--color-success)', wordBreak: 'break-all' }}>{activeCalibrationTomlPath}- </Typography>- </Box>+ </p>+ </div>)}{!status && !isLoading && !error && (- <Typography variant="caption" color="text.secondary">- No status loaded.- </Typography>+ <p className="text sm text-gray">No status loaded.</p>)}{status && (- <>- <Box>- {status.stages.map((stage) => (- <Accordion- key={stage.name}- defaultExpanded={false}- disableGutters- square- sx={{- "&:before": {display: "none"},- bgcolor: "transparent",- boxShadow: "none",- border: `1px solid ${theme.palette.divider}`,- mb: 0.5,- }}- >- <AccordionSummary- expandIcon={<ExpandMoreIcon/>}- sx={{minHeight: 32, "& .MuiAccordionSummary-content": {my: 0.5}}}- >- <Stack direction="row" spacing={1} alignItems="center">- {stage.complete ? (- <CheckCircleIcon- fontSize="small"- sx={{color: theme.palette.success.main}}- />- ) : (- <CloseIcon- fontSize="small"- sx={{color: theme.palette.grey[500]}}- />- )}- <Typography variant="body2">{stage.name}</Typography>- <Typography variant="caption" color="text.secondary">- {stage.present_count}/{stage.total_count}- </Typography>- </Stack>- </AccordionSummary>- <AccordionDetails sx={{pt: 0, pb: 1}}>- {stage.files.length === 0 ? (- <Typography variant="caption" color="text.secondary">- No files found.- </Typography>- ) : (- <Stack spacing={0.25}>- {stage.files.map((f) => (- <Box- key={f.path ?? f.name}- sx={{- display: "flex",- alignItems: "center",- gap: 1,- fontFamily: "monospace",- }}- >- {f.exists ? (- <CheckCircleIcon- sx={{- fontSize: 14,- color: theme.palette.success.main,- }}- />- ) : (- <CloseIcon- sx={{- fontSize: 14,- color: theme.palette.grey[500],- }}- />- )}- <Typography- variant="caption"- sx={{- fontFamily: "monospace",- color: f.exists- ? "text.primary"- : "text.secondary",- flex: 1,- wordBreak: "break-all",- }}- >- {f.name}- </Typography>- {f.exists && (- <>- <Typography variant="caption" color="text.secondary">- {humanizeBytes(f.size_bytes)}- </Typography>- <Typography variant="caption" color="text.secondary">- {formatTimestamp(f.modified_timestamp)}- </Typography>- </>- )}- </Box>- ))}- </Stack>- )}- </AccordionDetails>- </Accordion>- ))}- </Box>- </>+ <div>+ {status.stages.map((stage) => (+ <StageRow+ key={stage.name}+ name={stage.name}+ complete={stage.complete}+ present={stage.present_count}+ total={stage.total_count}+ >+ {stage.files.length === 0 ? (+ <p className="text sm text-gray">No files found.</p>+ ) : (+ <div className="flex flex-col gap-1">+ {stage.files.map((f) => (+ <div+ key={f.path ?? f.name}+ className="flex flex-row items-center gap-1"+ style={{ fontFamily: 'monospace' }}+ >+ <span className={`icon icon-size-12 ${f.exists ? 'upToDate-icon' : 'close-icon'}`} />+ <span className={`text sm flex-1 ${f.exists ? 'text-white' : 'text-gray'}`} style={{ wordBreak: 'break-all' }}>+ {f.name}+ </span>+ {f.exists && (+ <>+ <span className="text sm text-gray">{humanizeBytes(f.size_bytes)}</span>+ <span className="text sm text-gray">{formatTimestamp(f.modified_timestamp)}</span>+ </>+ )}+ </div>+ ))}+ </div>+ )}+ </StageRow>+ ))}+ </div>)}- </Stack>- </AccordionDetails>- </Accordion>+ </div>+ )}+ </div>);};diff --git a/freemocap-ui/src/components/common/SortableSectionWrapper.tsx b/freemocap-ui/src/components/common/SortableSectionWrapper.tsxdeleted file mode 100644index d5ca7140..00000000--- a/freemocap-ui/src/components/common/SortableSectionWrapper.tsx+++ /dev/null@@ -1,39 +0,0 @@-import React, {ReactNode} from "react";-import {useSortable} from "@dnd-kit/sortable";-import {CSS} from "@dnd-kit/utilities";-import {DragHandleContext} from "@/components/common/DragHandleContext";--interface SortableSectionWrapperProps {- id: string;- children: ReactNode;-}--export const SortableSectionWrapper: React.FC<SortableSectionWrapperProps> = ({- id,- children,-}) => {- const {- attributes,- listeners,- setNodeRef,- transform,- transition,- isDragging,- } = useSortable({id});-- const style: React.CSSProperties = {- transform: CSS.Transform.toString(transform),- transition,- zIndex: isDragging ? 10 : undefined,- position: "relative",- opacity: isDragging ? 0.85 : 1,- };-- return (- <div ref={setNodeRef} style={style}>- <DragHandleContext.Provider value={{listeners, attributes}}>- {children}- </DragHandleContext.Provider>- </div>- );-};diff --git a/freemocap-ui/src/components/control-panels/calibration-control-panel/CalibrationPanel.tsx b/freemocap-ui/src/components/control-panels/calibration-control-panel/CalibrationPanel.tsxdeleted file mode 100644index e839a5dd..00000000--- a/freemocap-ui/src/components/control-panels/calibration-control-panel/CalibrationPanel.tsx+++ /dev/null@@ -1,320 +0,0 @@-import React, {useCallback, useMemo, useState} from "react";-import {- Alert,- Box,- Button,- Chip, FormControlLabel,- IconButton,- InputAdornment,- Stack, Switch,- TextField,- Tooltip,- Typography,- useTheme,-} from "@mui/material";-import SquareFootIcon from "@mui/icons-material/SquareFoot";-import PlayArrowIcon from "@mui/icons-material/PlayArrow";-import StopIcon from "@mui/icons-material/Stop";-import FolderOpenIcon from "@mui/icons-material/FolderOpen";-import LaunchIcon from "@mui/icons-material/Launch";-import ClearIcon from "@mui/icons-material/Clear";-import RefreshIcon from "@mui/icons-material/Refresh";-import {DirectoryStatusPanel} from "@/components/common/DirectoryStatusPanel";-import {useCalibration} from "@/hooks/useCalibration";-import {useDirectoryWatcher} from "@/hooks/useDirectoryWatcher";-import {useElectronIPC} from "@/services";-import {CalibrationSolverSection} from "@/components/control-panels/calibration-control-panel/CalibrationSolverSection";-import {CharucoBoardConfigSection} from "@/components/control-panels/calibration-control-panel/CharucoBoardConfigSection";-import {CollapsibleSidebarSection} from "@/components/common/CollapsibleSidebarSection";-import {selectEffectiveRecordingPath} from "@/store/slices/active-recording/active-recording-slice";-import {useAppSelector} from "@/store";--export const CalibrationPanel: React.FC = () => {- const theme = useTheme();- const [localError, setLocalError] = useState<string | null>(null);- const {api, isElectron} = useElectronIPC();-- const {- error,- config,- isLoading,- isRecording,- recordingProgress,- updateCalibrationConfig,- canCalibrate,- calibrationRecordingPath,- directoryInfo,- isUsingManualPath,- dispatchStopCalibrationRecording,- dispatchStartCalibrationRecording,- setManualRecordingPath,- clearManualRecordingPath,- validateDirectory,- calibrateSelectedRecording,- clearError,- } = useCalibration();-- // Effective path: actual activeRecording if any, otherwise the planned path- const effectiveCalibrationPath = useAppSelector(selectEffectiveRecordingPath);-- // Auto-poll directory status instead of requiring manual refresh- const {triggerRefresh, isWatching} = useDirectoryWatcher(- calibrationRecordingPath,- validateDirectory,- 3000,- );-- const handleClearError = useCallback((): void => {- clearError();- setLocalError(null);- }, [clearError]);-- const handleSelectDirectory = async (): Promise<void> => {- if (!isElectron || !api) return;- try {- const result: string | null = await api.fileSystem.selectDirectory.mutate();- if (result) {- await setManualRecordingPath(result);- }- } catch (err) {- console.error("Failed to select directory:", err);- setLocalError("Failed to select directory");- }- };-- const handleOpenFolder = async (): Promise<void> => {- if (!isElectron || !api || !effectiveCalibrationPath) return;- try {- await api.fileSystem.openFolder.mutate({path: effectiveCalibrationPath});- } catch (err) {- console.error("Failed to open folder:", err);- setLocalError("Failed to open folder in file explorer");- }- };-- const handlePathInputChange = async (- e: React.ChangeEvent<HTMLInputElement>,- ): Promise<void> => {- const newPath: string = e.target.value;- if (newPath.includes("~") && api) {- try {- const home: string = await api.fileSystem.getHomeDirectory.query();- const expanded: string = newPath.replace(/^~([\/])?/, home ? home + '$1' : "");- await setManualRecordingPath(expanded);- } catch {- await setManualRecordingPath(newPath);- }- } else {- await setManualRecordingPath(newPath);- }- };-- const calibStatus: "ok" | "none" | "bad" = useMemo(() => {- if (directoryInfo?.cameraCalibrationTomlPath) return "ok";- if (!calibrationRecordingPath || !directoryInfo) return "none";- return "bad";- }, [directoryInfo, calibrationRecordingPath]);-- const displayError = error || localError || directoryInfo?.errorMessage;-- const statusLabel = isRecording- ? "Recording " + recordingProgress.toFixed(0) + "%"- : isLoading- ? "Running"- : directoryInfo?.cameraCalibrationTomlPath- ? "Calibrated"- : "Idle";-- const statusColor = isRecording- ? theme.palette.error.main- : isLoading- ? theme.palette.warning.main- : directoryInfo?.cameraCalibrationTomlPath- ? theme.palette.success.main- : theme.palette.grey[600];-- return (- <CollapsibleSidebarSection- icon={<SquareFootIcon sx={{color: "inherit"}}/>}- title="Capture Volume Calibration"- summaryContent={<Chip- label={statusLabel}- size="small"- sx={{- ml: "auto",- height: 20,- fontSize: 11,- fontWeight: 600,- backgroundColor: statusColor,- color: theme.palette.getContrastText(statusColor),- }}- />}- defaultExpanded={false}- >- <Box sx={{p: 2}}>-- <Stack spacing={2}>- {displayError && (- <Alert severity="error" onClose={handleClearError}>- {displayError}- </Alert>- )}-- {/* Recording Controls */}- {/* TODO - Wire up these recording buttons to the EXACT same workflow as the recording panel - current wiring has slop*/}- {/*<Stack direction="row" spacing={2}>*/}- {/* <Button*/}- {/* variant="contained"*/}- {/* color="primary"*/}- {/* startIcon={<PlayArrowIcon/>}*/}- {/* onClick={dispatchStartCalibrationRecording}*/}- {/* // disabled={!canStartRecording || isLoading}*/}- {/* disabled={ isLoading}*/}- {/* fullWidth*/}- {/* >*/}- {/* Start Calibration Recording*/}- {/* </Button>*/}- {/* {isRecording && (*/}- {/* <Button*/}- {/* variant="contained"*/}- {/* color="error"*/}- {/* startIcon={<StopIcon/>}*/}- {/* onClick={dispatchStopCalibrationRecording}*/}- {/* disabled={isLoading}*/}- {/* fullWidth*/}- {/* >*/}- {/* Stop Recording*/}- {/* </Button>*/}- {/* )}*/}- {/*</Stack>*/}-- {/* Recording Path Input */}- <TextField- label="Calibration Recording Path"- value={effectiveCalibrationPath || ''}- onChange={handlePathInputChange}- fullWidth- size="small"- helperText={isUsingManualPath ? "Using custom path" : "Using default recording directory"}- InputProps={{- endAdornment: (- <InputAdornment position="end">- {isUsingManualPath && (- <Tooltip title="Clear manual path (revert to default)">- <IconButton onClick={clearManualRecordingPath} edge="end" size="small">- <ClearIcon fontSize="small"/>- </IconButton>- </Tooltip>- )}- <Tooltip title="Re-check calibration folder">- <span>- <IconButton- onClick={triggerRefresh}- edge="end"- size="small"- disabled={!calibrationRecordingPath || isLoading}- >- <RefreshIcon fontSize="small"/>- </IconButton>- </span>- </Tooltip>- <Tooltip title="Open folder in file explorer">- <span>- <IconButton- onClick={handleOpenFolder}- edge="end"- size="small"- disabled={!isElectron || !effectiveCalibrationPath}- >- <LaunchIcon fontSize="small"/>- </IconButton>- </span>- </Tooltip>- <Tooltip title="Select directory">- <IconButton onClick={handleSelectDirectory} edge="end" disabled={!isElectron}>- <FolderOpenIcon/>- </IconButton>- </Tooltip>- </InputAdornment>- ),- }}- />-- <Button- variant="contained"- color="secondary"- onClick={calibrateSelectedRecording}- disabled={!canCalibrate || isLoading}- fullWidth- >- Calibrate Selected Recording- </Button>- {/* Directory Status (auto-refreshing via useDirectoryWatcher) */}- <DirectoryStatusPanel- title="Calibration Folder Status"- tomlLabel="Has calibration TOML"- directoryInfo={directoryInfo ? {- ...directoryInfo,- tomlPath: directoryInfo.cameraCalibrationTomlPath,- } : null}- status={calibStatus}- onRefresh={triggerRefresh}- refreshDisabled={!calibrationRecordingPath || isLoading}- isRefreshing={false}- />-- {/* Groundplane */}- <FormControlLabel- control={- <Switch- size="small"- checked={config.useGroundplane}- onChange={(_, checked) =>- updateCalibrationConfig({useGroundplane: checked})- }- disabled={isLoading}- />- }- label={- <Typography variant="body2">- Align to ground plane to initial charuco position- </Typography>- }- />- <CharucoBoardConfigSection />-- <CalibrationSolverSection/>-- {isRecording && (- <Box sx={{width: "100%"}}>- <Typography variant="caption" color="text.secondary" gutterBottom>- Recording in Progress: {recordingProgress.toFixed(0)}%- </Typography>- <Box- sx={{- width: "100%",- height: 8,- bgcolor: "grey.300",- borderRadius: 1,- overflow: "hidden",- }}- >- <Box- sx={{- width: recordingProgress + "%",- height: "100%",- bgcolor: theme.palette.primary.main,- transition: "width 0.3s",- }}- />- </Box>- </Box>- )}--- </Stack>- </Box>- </CollapsibleSidebarSection>- )- ;-};diff --git a/freemocap-ui/src/components/control-panels/calibration-control-panel/CalibrationSolverSection.tsx b/freemocap-ui/src/components/control-panels/calibration-control-panel/CalibrationSolverSection.tsxdeleted file mode 100644index 463ddf78..00000000--- a/freemocap-ui/src/components/control-panels/calibration-control-panel/CalibrationSolverSection.tsx+++ /dev/null@@ -1,58 +0,0 @@-import React from "react";-import {- FormControl,- FormControlLabel,- InputLabel,- MenuItem,- Select,- Stack,- Switch,- Typography,- useTheme,-} from "@mui/material";-import {useCalibration} from "@/hooks/useCalibration";-import {CalibrationSolverMethod} from "@/store/slices/calibration";--/**- * Calibration solver method and groundplane controls.- *- * Drop this into CalibrationControlPanel's Stack, after the- * square length TextField and before the recording progress section.- */-export const CalibrationSolverSection: React.FC = () => {- const theme = useTheme();- const {config, updateCalibrationConfig, isLoading} = useCalibration();-- return (- <Stack spacing={2}>- <Typography- variant="subtitle2"- sx={{color: theme.palette.text.secondary, fontWeight: 600}}- >- Solver Settings- </Typography>-- {/* Solver Method */}- <FormControl size="small" fullWidth>- <InputLabel id="solver-method-label">Solver Method</InputLabel>- <Select- labelId="solver-method-label"- value={config.solverMethod}- label="Solver Method"- onChange={(e) =>- updateCalibrationConfig({- solverMethod: e.target.value as CalibrationSolverMethod,- })- }- disabled={isLoading}- sx={{color: theme.palette.text.primary}}- >- <MenuItem value="anipose">Anipose (legacy)</MenuItem>- <MenuItem value="pyceres">Pyceres (bundle adjustment)</MenuItem>- </Select>- </FormControl>--- </Stack>- );-};diff --git a/freemocap-ui/src/components/control-panels/calibration-control-panel/CharucoBoardConfigSection.tsx b/freemocap-ui/src/components/control-panels/calibration-control-panel/CharucoBoardConfigSection.tsxdeleted file mode 100644index 8e7ba237..00000000--- a/freemocap-ui/src/components/control-panels/calibration-control-panel/CharucoBoardConfigSection.tsx+++ /dev/null@@ -1,114 +0,0 @@-import React, {useCallback, useMemo} from "react";-import {- Stack,- TextField,- Typography,- useTheme,-} from "@mui/material";-import {useCalibration} from "@/hooks/useCalibration";-import {PresetPicker} from "@/components/common/PresetPicker";--type BoardPreset = "5x3" | "7x5" | "custom";--interface BoardPresetConfig {- squares_x: number;- squares_y: number;-}--const BOARD_PRESETS: Record<Exclude<BoardPreset, "custom">, BoardPresetConfig> = {- "5x3": {squares_x: 5, squares_y: 3},- "7x5": {squares_x: 7, squares_y: 5},-};--export const CharucoBoardConfigSection: React.FC = () => {- const theme = useTheme();- const {config, updateCalibrationConfig, isLoading} = useCalibration();- const board = config.charucoBoard;-- const currentPreset = useMemo<BoardPreset>(() => {- for (const [preset, presetConfig] of Object.entries(BOARD_PRESETS)) {- if (presetConfig.squares_x === board.squares_x && presetConfig.squares_y === board.squares_y) {- return preset as BoardPreset;- }- }- return "custom";- }, [board.squares_x, board.squares_y]);-- const handlePresetChange = useCallback(- (preset: BoardPreset): void => {- if (preset === "custom") return;- const presetConfig = BOARD_PRESETS[preset];- updateCalibrationConfig({- charucoBoard: {...board, ...presetConfig},- });- },- [board, updateCalibrationConfig],- );-- return (- <Stack spacing={2} sx={{p:2}}>- <Typography variant="subtitle2" sx={{color: theme.palette.text.secondary, fontWeight: 600}}>- Charuco Board- </Typography>-- {/* Preset */}- <PresetPicker- label="Preset"- value={currentPreset}- options={[- {value: "5x3" as BoardPreset, label: "5×3"},- {value: "7x5" as BoardPreset, label: "7×5"},- {value: "custom" as BoardPreset, label: "Custom"},- ]}- onChange={handlePresetChange}- disabled={isLoading}- minWidth={140}- />-- {/* X / Y Squares */}- <Stack direction="row" spacing={2}>- <TextField- label="X Squares"- type="number"- value={board.squares_x}- onChange={(e) => {- const v = parseInt(e.target.value, 10);- if (!isNaN(v) && v > 0) updateCalibrationConfig({charucoBoard: {...board, squares_x: v}});- }}- disabled={isLoading}- size="small"- sx={{flex: 1}}- inputProps={{min: 2, max: 20}}- />- <TextField- label="Y Squares"- type="number"- value={board.squares_y}- onChange={(e) => {- const v = parseInt(e.target.value, 10);- if (!isNaN(v) && v > 0) updateCalibrationConfig({charucoBoard: {...board, squares_y: v}});- }}- disabled={isLoading}- size="small"- sx={{flex: 1}}- inputProps={{min: 2, max: 20}}- />- </Stack>-- {/* Square Length */}- <TextField- label="Square Length (mm)"- type="number"- value={board.square_length_mm}- onChange={(e) => {- const v = parseFloat(e.target.value);- if (!isNaN(v) && v > 0) updateCalibrationConfig({charucoBoard: {...board, square_length_mm: v}});- }}- disabled={isLoading}- size="small"- fullWidth- inputProps={{min: 1, step: 0.1}}- />- </Stack>- );-};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigExposure.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigExposure.tsxindex ef1943ad..4190bf09 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigExposure.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigExposure.tsx@@ -1,5 +1,4 @@import React from 'react';-import {Box, Slider, ToggleButton, ToggleButtonGroup, Tooltip, Typography, useTheme} from '@mui/material';import {ExposureMode} from "@/store/slices/cameras/cameras-types";import {useTranslation} from 'react-i18next';@@ -10,144 +9,68 @@ interface CameraConfigExposureProps {onExposureValueChange: (value: number) => void;}-const ValueLabelComponent = (props: {- children: React.ReactElement;- value: number;-}) => {- const { children, value } = props;-- return (- <Tooltip title={- <span>- {`${(1000 / Math.pow(2, -1 * value)).toFixed(3)}ms (1/2`}- <sup>{value}</sup>- {` sec)`}- </span>- }>- {children}- </Tooltip>- );-};--// Default constraints for exposureconst EXPOSURE_CONSTRAINTS = {min: -13,max: -4,default: -7};-export const CameraConfigExposure: React.FC<CameraConfigExposureProps> = ({- exposureMode = 'MANUAL',- exposure = EXPOSURE_CONSTRAINTS.default,- onExposureModeChange,- onExposureValueChange- }) => {- const theme = useTheme();- const { t } = useTranslation();+const EXPOSURE_MODES: ExposureMode[] = ['MANUAL', 'AUTO', 'RECOMMEND'];- const handleModeChange = (- event: React.MouseEvent<HTMLElement>,- newMode: string | null,- ): void => {- if (newMode !== null) {- onExposureModeChange(newMode as ExposureMode);- }- };+export const CameraConfigExposure: React.FC<CameraConfigExposureProps> = ({+ exposureMode = 'MANUAL',+ exposure = EXPOSURE_CONSTRAINTS.default,+ onExposureModeChange,+ onExposureValueChange+}) => {+ const {t} = useTranslation();- const handleSliderChange = (event: Event, value: number | number[]): void => {- onExposureValueChange(value as number);+ const handleSliderChange = (event: React.ChangeEvent<HTMLInputElement>): void => {+ onExposureValueChange(Number(event.target.value));};- const baseMarks = [- { value: EXPOSURE_CONSTRAINTS.min, label: String(EXPOSURE_CONSTRAINTS.min) },- {- value: EXPOSURE_CONSTRAINTS.default,- label: `${EXPOSURE_CONSTRAINTS.default} (default)`- },- { value: EXPOSURE_CONSTRAINTS.max, label: String(EXPOSURE_CONSTRAINTS.max) }- ];+ const isDisabled = exposureMode === 'AUTO' || exposureMode === 'RECOMMEND';- const marks = [- ...baseMarks,- ...(![- EXPOSURE_CONSTRAINTS.min as number,- EXPOSURE_CONSTRAINTS.default as number,- EXPOSURE_CONSTRAINTS.max as number- ].includes(exposure)- ? [{- value: exposure,- label: `${exposure}`,- }]- : []- )- ].sort((a, b) => a.value - b.value);+ const exposureTooltip = `${(1000 / Math.pow(2, -1 * exposure)).toFixed(3)}ms (1/2^${exposure} sec)`;return (- <Box>- {/* Label and mode toggle on the same line */}- <Box sx={{display: 'flex', alignItems: 'center', gap: 1.5, mb: 0.5}}>- <Typography variant="body2" color="text.secondary" sx={{whiteSpace: 'nowrap', fontSize: 12}}>+ <div>+ <div className="flex flex-row items-center gap-2 mb-1">+ <span className="text sm text-gray text-nowrap" style={{fontSize: 12}}>{t("exposure")}- </Typography>- <Tooltip title={t("exposureControl")}>- <ToggleButtonGroup- color={theme.palette.primary.main as any}- value={exposureMode}- exclusive- onChange={handleModeChange}- size="small"- sx={{- '& .MuiToggleButton-root': {- py: 0.25,- px: 1,- fontSize: 11,- },- '& .MuiToggleButton-root.Mui-selected': {- backgroundColor: theme.palette.primary.dark,- border: `1px solid ${theme.palette.text.secondary}`,- color: theme.palette.primary.contrastText,- '&:hover': {- backgroundColor: theme.palette.primary.light,- },- }- }}- >- <ToggleButton value="MANUAL">{t("manual")}</ToggleButton>- <ToggleButton value="AUTO">{t("auto")}</ToggleButton>- <ToggleButton value="RECOMMEND">{t("recommend")}</ToggleButton>- </ToggleButtonGroup>- </Tooltip>- </Box>- <Tooltip title={t("adjustExposure")}>- <Box sx={{px: 1}}>- <Slider- value={exposure}- disabled={exposureMode === 'AUTO' || exposureMode === 'RECOMMEND'}- min={EXPOSURE_CONSTRAINTS.min}- max={EXPOSURE_CONSTRAINTS.max}- step={1}- marks={marks}- valueLabelDisplay="auto"- onChange={handleSliderChange}- components={{- ValueLabel: ValueLabelComponent- }}- sx={{- color: theme.palette.primary.light,- '& .MuiSlider-markLabel': {- fontSize: 11,- },- '& .MuiSlider-thumb': {- width: 16,- height: 16,- '&:hover, &.Mui-focusVisible': {- boxShadow: `0px 0px 0px 8px ${theme.palette.primary.light}33`,- },- },- }}- />- </Box>- </Tooltip>- </Box>+ </span>+ <div className="flex flex-row gap-1" title={t("exposureControl")}>+ {EXPOSURE_MODES.map((mode) => (+ <button+ key={mode}+ className={`button sm${exposureMode === mode ? ' primary' : ' secondary'}`}+ onClick={() => onExposureModeChange(mode)}+ style={{padding: '2px 8px', fontSize: 11}}+ >+ {mode === 'MANUAL' ? t("manual") : mode === 'AUTO' ? t("auto") : t("recommend")}+ </button>+ ))}+ </div>+ </div>+ <div className="pl-1 pr-1" title={isDisabled ? undefined : t("adjustExposure")}>+ <input+ type="range"+ value={exposure}+ disabled={isDisabled}+ min={EXPOSURE_CONSTRAINTS.min}+ max={EXPOSURE_CONSTRAINTS.max}+ step={1}+ onChange={handleSliderChange}+ title={exposureTooltip}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}+ />+ <div className="flex flex-row justify-content-space-between">+ <span className="text sm text-gray" style={{fontSize: 11}}>{EXPOSURE_CONSTRAINTS.min}</span>+ <span className="text sm text-gray" style={{fontSize: 11}}>{exposure}</span>+ <span className="text sm text-gray" style={{fontSize: 11}}>{EXPOSURE_CONSTRAINTS.max}</span>+ </div>+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigFramerate.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigFramerate.tsxindex 819f4d84..7fc38cac 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigFramerate.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigFramerate.tsx@@ -1,5 +1,4 @@import React, {useState} from 'react';-import {Box, TextField, ToggleButton, ToggleButtonGroup, Tooltip, Typography, useTheme} from '@mui/material';import {useTranslation} from 'react-i18next';interface CameraConfigFramerateProps {@@ -17,8 +16,7 @@ export const CameraConfigFramerate: React.FC<CameraConfigFramerateProps> = ({framerate = FRAMERATE_CONSTRAINTS.default,onChange}) => {- const theme = useTheme();- const { t } = useTranslation();+ const {t} = useTranslation();const isAuto = framerate === null;const [mode, setMode] = useState<'AUTO' | 'MANUAL'>(isAuto ? 'AUTO' : 'MANUAL');const [localValue, setLocalValue] = useState<string>(@@ -49,19 +47,13 @@ export const CameraConfigFramerate: React.FC<CameraConfigFramerateProps> = ({onChange(roundedValue);};- const handleModeChange = (- event: React.MouseEvent<HTMLElement>,- newMode: 'AUTO' | 'MANUAL' | null- ): void => {- if (newMode === null) return;-+ const handleModeChange = (newMode: 'AUTO' | 'MANUAL'): void => {setMode(newMode);if (newMode === 'AUTO') {setError('');onChange(null);} else {- // Switch to manual mode with the last valid valuevalidateAndUpdate(localValue);}};@@ -74,7 +66,6 @@ export const CameraConfigFramerate: React.FC<CameraConfigFramerateProps> = ({const handleBlur = (): void => {validateAndUpdate(localValue);- // Reset to valid value if invalid, otherwise format to 2 decimalsif (error) {const validValue = framerate === null ? FRAMERATE_CONSTRAINTS.default : framerate;setLocalValue(validValue.toFixed(2));@@ -99,76 +90,40 @@ export const CameraConfigFramerate: React.FC<CameraConfigFramerateProps> = ({};return (- <Box>- <Typography variant="body2" color="text.secondary" gutterBottom>- {t("framerate")}- </Typography>- <Tooltip title={t("framerateControl")}>- <ToggleButtonGroup- color={theme.palette.primary.main as any}- value={mode}- exclusive- onChange={handleModeChange}- size="small"- fullWidth- sx={{- mb: mode === 'MANUAL' ? 1 : 0,- '& .MuiToggleButton-root.Mui-selected': {- backgroundColor: theme.palette.primary.dark,- border: `1px solid ${theme.palette.text.secondary}`,- color: theme.palette.primary.contrastText,- '&:hover': {- backgroundColor: theme.palette.primary.light,- },- }- }}- >- <ToggleButton value="AUTO">{t("auto")}</ToggleButton>- <ToggleButton value="MANUAL">{t("manual")}</ToggleButton>- </ToggleButtonGroup>- </Tooltip>+ <div>+ <p className="text sm text-gray mb-1">{t("framerate")}</p>+ <div className="flex flex-row gap-1" style={{marginBottom: mode === 'MANUAL' ? 4 : 0}} title={t("framerateControl")}>+ {(['AUTO', 'MANUAL'] as const).map((m) => (+ <button+ key={m}+ className={`button sm flex-1${mode === m ? ' primary' : ' secondary'}`}+ onClick={() => handleModeChange(m)}+ style={{padding: '2px 8px', fontSize: 11}}+ >+ {m === 'AUTO' ? t("auto") : t("manual")}+ </button>+ ))}+ </div>{mode === 'MANUAL' && (- <Tooltip title={t("setTargetFps")}>- <TextField- label={t("fps")}- value={localValue}- onChange={handleChange}- onBlur={handleBlur}- onKeyDown={handleKeyDown}- type="number"- size="small"- error={!!error}- helperText={error}- fullWidth- inputProps={{- min: FRAMERATE_CONSTRAINTS.min,- max: FRAMERATE_CONSTRAINTS.max,- step: 0.01,- }}- sx={{- '& .MuiInputLabel-root': {- color: theme.palette.text.primary,- },- '& .MuiOutlinedInput-root': {- color: theme.palette.text.primary,- '& fieldset': {- borderColor: theme.palette.divider,- },- '&:hover fieldset': {- borderColor: theme.palette.primary.main,- },- '&.Mui-focused fieldset': {- borderColor: theme.palette.primary.main,- },- },- '& .MuiFormHelperText-root': {- color: error ? theme.palette.error.main : theme.palette.text.secondary,- },- }}- />- </Tooltip>+ <div title={t("setTargetFps")}>+ <div className="input-with-string">+ <input+ className="input-field text md"+ type="number"+ placeholder={t("fps")}+ value={localValue}+ onChange={handleChange}+ onBlur={handleBlur}+ onKeyDown={handleKeyDown}+ min={FRAMERATE_CONSTRAINTS.min}+ max={FRAMERATE_CONSTRAINTS.max}+ step={0.01}+ />+ </div>+ {error && <span className="text sm text-error">{error}</span>}+ </div>)}- </Box>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigPanel.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigPanel.tsxindex ea162cdb..437b4079 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigPanel.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigPanel.tsx@@ -1,13 +1,11 @@import React from "react";-import {Box, Collapse, IconButton, Tooltip, useTheme,} from "@mui/material";-import MediationIcon from "@mui/icons-material/Mediation";import {CameraConfigResolution} from "./CameraConfigResolution";import {CameraConfigExposure} from "./CameraConfigExposure";import {CameraConfigRotation} from "./CameraConfigRotation";import {CameraConfig, ExposureMode, RotationValue} from "@/store/slices/cameras/cameras-types";import {useAppDispatch, useAppSelector} from "@/store";import {configCopiedToAll, selectCameras} from "@/store/slices/cameras";-import {useTranslation} from 'react-i18next';+import IconButton from "@/components/ui-components/IconButton";interface CameraConfigPanelProps {config: CameraConfig;@@ -20,9 +18,7 @@ export const CameraConfigPanel: React.FC<CameraConfigPanelProps> = ({onConfigChange,isExpanded,}) => {- const theme = useTheme();const dispatch = useAppDispatch();- const { t } = useTranslation();const allCameras = useAppSelector(selectCameras);const otherCamerasCount = allCameras.length - 1;@@ -56,82 +52,53 @@ export const CameraConfigPanel: React.FC<CameraConfigPanelProps> = ({handleChange("exposure", value);};+ if (!isExpanded) return null;+return (- <Collapse in={isExpanded} timeout="auto" unmountOnExit>- <Box- sx={{- px: 1.5,- py: 1,- ml: 5,- mr: 1,- mb: 0.5,- borderRadius: 1,- border: `1px solid ${theme.palette.divider}`,- backgroundColor: theme.palette.background.paper,- display: 'flex',- flexDirection: 'column',- gap: 1,- }}- >- {/* Top row: Resolution, Rotation, then Copy to All pushed right */}- <Box sx={{display: 'flex', alignItems: 'center', gap: 1.5, flexWrap: 'wrap'}}>- <CameraConfigResolution- resolution={config.resolution}- onChange={handleResolutionChange}- />+ <div+ className="flex flex-col gap-1 br-1 pl-3 pr-2 pt-2 pb-1 mr-1 mb-1"+ style={{+ marginLeft: 20,+ border: '1px solid var(--color-border-secondary)',+ backgroundColor: 'var(--color-bg-paper)',+ }}+ >+ <div className="flex flex-row items-center gap-2 flex-wrap">+ <CameraConfigResolution+ resolution={config.resolution}+ onChange={handleResolutionChange}+ />- <CameraConfigRotation- rotation={config.rotation}- onChange={handleRotationChange}- />+ <CameraConfigRotation+ rotation={config.rotation}+ onChange={handleRotationChange}+ />- {/* Spacer pushes Copy to All to the right */}- <Box sx={{flex: 1}}/>+ <div className="flex-1" />- <Tooltip- title={- otherCamerasCount > 0- ? `Copy settings to ${otherCamerasCount} other camera${- otherCamerasCount > 1 ? "s" : ""- }`- : "No other cameras to copy to"- }- >- <span>- <IconButton- size="small"- onClick={handleCopyToAllCameras}- disabled={otherCamerasCount === 0}- aria-label={t("copySettingsToAll")}- sx={{- color: theme.palette.primary.contrastText,- border: `1px solid ${theme.palette.divider}`,- '&:hover': {- backgroundColor: theme.palette.primary.dark,- color: theme.palette.primary.contrastText,- borderColor: theme.palette.primary.dark,- },- '&:disabled': {- color: theme.palette.action.disabled,- },- }}- >- <MediationIcon fontSize="small"/>- </IconButton>- </span>- </Tooltip>- </Box>+ <IconButton+ icon="mediation-icon"+ onClick={handleCopyToAllCameras}+ disabled={otherCamerasCount === 0}+ title={+ otherCamerasCount > 0+ ? `Copy settings to ${otherCamerasCount} other camera${otherCamerasCount > 1 ? "s" : ""}`+ : "No other cameras to copy to"+ }+ style={{+ border: '1px solid var(--color-border-secondary)',+ }}+ />+ </div>- {/* Exposure controls */}- <Box sx={{pt: 0.5, borderTop: `1px solid ${theme.palette.divider}`}}>- <CameraConfigExposure- exposureMode={config.exposure_mode}- exposure={config.exposure}- onExposureModeChange={handleExposureModeChange}- onExposureValueChange={handleExposureValueChange}- />- </Box>- </Box>- </Collapse>+ <div className="pt-1" style={{borderTop: '1px solid var(--color-border-secondary)'}}>+ <CameraConfigExposure+ exposureMode={config.exposure_mode}+ exposure={config.exposure}+ onExposureModeChange={handleExposureModeChange}+ onExposureValueChange={handleExposureValueChange}+ />+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigResolution.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigResolution.tsxindex 9c5dc779..43ede849 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigResolution.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigResolution.tsx@@ -1,5 +1,4 @@import React, {useEffect, useState} from "react";-import {Box, FormControl, InputLabel, MenuItem, Select, TextField, useTheme} from "@mui/material";import {CameraConfig} from "@/store/slices/cameras/cameras-types";import {useTranslation} from 'react-i18next';@@ -16,7 +15,7 @@ const PRESET_RESOLUTIONS = [const RESOLUTION_CONSTRAINTS = {min: 1,- max: 7680, // 8K width probably plent lol+ max: 7680,default: { width: 1280, height: 720 }};@@ -24,8 +23,7 @@ export const CameraConfigResolution: React.FC<CameraConfigResolutionProps> = ({resolution,onChange}) => {- const theme = useTheme();- const { t } = useTranslation();+ const {t} = useTranslation();const isPreset = PRESET_RESOLUTIONS.some(preset => preset.width === resolution.width && preset.height === resolution.height);@@ -39,7 +37,6 @@ export const CameraConfigResolution: React.FC<CameraConfigResolutionProps> = ({const [widthError, setWidthError] = useState<string>('');const [heightError, setHeightError] = useState<string>('');- // Update custom inputs when resolution prop changes externallyuseEffect(() => {if (selectedValue === 'custom') {setCustomWidth(resolution.width.toString());@@ -47,7 +44,7 @@ export const CameraConfigResolution: React.FC<CameraConfigResolutionProps> = ({}}, [resolution.width, resolution.height, selectedValue]);- const validateDimension = (value: string, dimension: 'width' | 'height'): string => {+ const validateDimension = (value: string, _dimension: 'width' | 'height'): string => {const numValue = parseInt(value, 10);if (value === '' || isNaN(numValue)) {@@ -65,7 +62,7 @@ export const CameraConfigResolution: React.FC<CameraConfigResolutionProps> = ({return '';};- const handleSelectChange = (event: any): void => {+ const handleSelectChange = (event: React.ChangeEvent<HTMLSelectElement>): void => {const value = event.target.value;setSelectedValue(value);@@ -112,7 +109,6 @@ export const CameraConfigResolution: React.FC<CameraConfigResolutionProps> = ({const error = validateDimension(value, dimension);if (error) {- // Reset to current valid valueif (dimension === 'width') {setCustomWidth(resolution.width.toString());setWidthError('');@@ -124,7 +120,7 @@ export const CameraConfigResolution: React.FC<CameraConfigResolutionProps> = ({};const handleKeyDown = (- event: React.KeyboardEvent<HTMLDivElement>,+ event: React.KeyboardEvent<HTMLInputElement>,dimension: 'width' | 'height'): void => {if (event.key === 'Enter') {@@ -134,106 +130,61 @@ export const CameraConfigResolution: React.FC<CameraConfigResolutionProps> = ({};return (- <Box>- <FormControl- size="small"- fullWidth- sx={{- color: theme.palette.text.primary,- mb: selectedValue === 'custom' ? 1 : 0- }}- >- <InputLabel sx={{ color: theme.palette.text.primary }}>- Resolution- </InputLabel>- <Select+ <div>+ <div className="input-with-string" style={{marginBottom: selectedValue === 'custom' ? 4 : 0}}>+ <select+ className="input-field text md"value={selectedValue}- label={t("resolution")}onChange={handleSelectChange}- sx={{ color: theme.palette.text.primary }}>{PRESET_RESOLUTIONS.map(preset => (- <MenuItem+ <optionkey={`${preset.width}x${preset.height}`}value={`${preset.width}x${preset.height}`}>{preset.label}- </MenuItem>+ </option>))}- <MenuItem value="custom">{t("custom")}</MenuItem>- </Select>- </FormControl>+ <option value="custom">{t("custom")}</option>+ </select>+ </div>{selectedValue === 'custom' && (- <Box sx={{ display: 'flex', gap: 1, mt: 1 }}>- <TextField- label={t("width")}- value={customWidth}- onChange={handleCustomWidthChange}- onBlur={() => handleCustomBlur('width')}- onKeyDown={(e) => handleKeyDown(e, 'width')}- type="number"- size="small"- error={!!widthError}- helperText={widthError}- inputProps={{- min: RESOLUTION_CONSTRAINTS.min,- max: RESOLUTION_CONSTRAINTS.max,- }}- sx={{- flex: 1,- '& .MuiInputLabel-root': {- color: theme.palette.text.primary,- },- '& .MuiOutlinedInput-root': {- color: theme.palette.text.primary,- '& fieldset': {- borderColor: theme.palette.primary.contrastText,- },- '&:hover fieldset': {- borderColor: theme.palette.primary.contrastText,- },- '&.Mui-focused fieldset': {- borderColor: theme.palette.primary.contrastText,- },- },- }}- />- <TextField- label={t("height")}- value={customHeight}- onChange={handleCustomHeightChange}- onBlur={() => handleCustomBlur('height')}- onKeyDown={(e) => handleKeyDown(e, 'height')}- type="number"- size="small"- error={!!heightError}- helperText={heightError}- inputProps={{- min: RESOLUTION_CONSTRAINTS.min,- max: RESOLUTION_CONSTRAINTS.max,- }}- sx={{- flex: 1,- '& .MuiInputLabel-root': {- color: theme.palette.text.primary,- },- '& .MuiOutlinedInput-root': {- color: theme.palette.text.primary,- '& fieldset': {- borderColor: theme.palette.primary.contrastText- },- '&:hover fieldset': {- borderColor: theme.palette.primary.contrastText,- },- '&.Mui-focused fieldset': {- borderColor: theme.palette.primary.contrastText- },- },- }}- />- </Box>+ <div className="flex flex-row gap-1 mt-1">+ <div className="flex flex-col flex-1">+ <div className="input-with-string">+ <input+ className="input-field text md"+ type="number"+ placeholder={t("width")}+ value={customWidth}+ onChange={handleCustomWidthChange}+ onBlur={() => handleCustomBlur('width')}+ onKeyDown={(e) => handleKeyDown(e, 'width')}+ min={RESOLUTION_CONSTRAINTS.min}+ max={RESOLUTION_CONSTRAINTS.max}+ />+ </div>+ {widthError && <span className="text sm text-error">{widthError}</span>}+ </div>+ <div className="flex flex-col flex-1">+ <div className="input-with-string">+ <input+ className="input-field text md"+ type="number"+ placeholder={t("height")}+ value={customHeight}+ onChange={handleCustomHeightChange}+ onBlur={() => handleCustomBlur('height')}+ onKeyDown={(e) => handleKeyDown(e, 'height')}+ min={RESOLUTION_CONSTRAINTS.min}+ max={RESOLUTION_CONSTRAINTS.max}+ />+ </div>+ {heightError && <span className="text sm text-error">{heightError}</span>}+ </div>+ </div>)}- </Box>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigRotation.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigRotation.tsxindex 51cb184a..47842b09 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigRotation.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/CameraConfigRotation.tsx@@ -1,7 +1,4 @@import React from 'react';-import ToggleButton from '@mui/material/ToggleButton';-import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';-import {Box, Tooltip, useTheme} from '@mui/material';import {ROTATION_DEGREE_LABELS, ROTATION_OPTIONS, RotationValue} from '@/store/slices/cameras/cameras-types';import {useTranslation} from 'react-i18next';@@ -10,52 +7,27 @@ interface CameraConfigRotationProps {onChange: (rotation: RotationValue) => void;}--export const CameraConfigRotation: React.FC<CameraConfigRotationProps> = ({- rotation = -1,- onChange- }) => {- const theme = useTheme();- const { t } = useTranslation();-- const handleChange = (- event: React.MouseEvent<HTMLElement>,- newRotation: RotationValue | null,- ): void => {- if (newRotation !== null) {- onChange(newRotation);- }- };+ rotation = -1,+ onChange+}) => {+ const {t} = useTranslation();return (- <Box>- <Tooltip title={t("selectCameraRotation")}>- <ToggleButtonGroup- color={theme.palette.primary.main as any}- value={rotation}- size="small"- exclusive- onChange={handleChange}- aria-label={t("cameraRotation")}- sx={{- '& .MuiToggleButton-root.Mui-selected': {- backgroundColor: theme.palette.primary.dark,- color: theme.palette.primary.contrastText,- border: `1px solid ${theme.palette.text.secondary}`,- '&:hover': {- backgroundColor: theme.palette.primary.light,- },- }- }}- >- {ROTATION_OPTIONS.map((option: RotationValue) => (- <ToggleButton key={option} value={option}>- {ROTATION_DEGREE_LABELS[option]}- </ToggleButton>- ))}- </ToggleButtonGroup>- </Tooltip>- </Box>+ <div title={t("selectCameraRotation")}>+ <div className="flex flex-row gap-1 flex-wrap">+ {ROTATION_OPTIONS.map((option: RotationValue) => (+ <button+ key={option}+ className={`button sm${rotation === option ? ' primary' : ' secondary'}`}+ onClick={() => onChange(option)}+ aria-label={t("cameraRotation")}+ style={{padding: '2px 8px', fontSize: 11}}+ >+ {ROTATION_DEGREE_LABELS[option]}+ </button>+ ))}+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeSection.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeSection.tsxindex 03cc6b55..655d2c21 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeSection.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeSection.tsx@@ -1,5 +1,4 @@import React from "react";-import {TreeItem} from "@mui/x-tree-view/TreeItem";import {useAppDispatch} from "@/store";import {cameraDesiredConfigUpdated} from "@/store/slices/cameras/cameras-slice";import {Camera, CameraConfig} from "@/store/slices/cameras/cameras-types";@@ -10,8 +9,8 @@ interface CameraConfigTreeSectionProps {}export const CameraConfigTreeSection: React.FC<CameraConfigTreeSectionProps> = ({- camera,- }) => {+ camera,+}) => {const dispatch = useAppDispatch();const handleConfigChange = (newConfig: CameraConfig): void => {@@ -24,15 +23,10 @@ export const CameraConfigTreeSection: React.FC<CameraConfigTreeSectionProps> = (};return (- <TreeItem- itemId={`camera-${camera.id}-config`}- label={- <CameraConfigPanel- config={camera.desiredConfig}- onConfigChange={handleConfigChange}- isExpanded={true}- />- }+ <CameraConfigPanel+ config={camera.desiredConfig}+ onConfigChange={handleConfigChange}+ isExpanded={true}/>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeView.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeView.tsxindex d69de136..955290f1 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeView.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeView.tsx@@ -1,13 +1,7 @@-import React, {useEffect, useState} from "react";-import {Box, useTheme,} from "@mui/material";-import {SimpleTreeView} from "@mui/x-tree-view/SimpleTreeView";-import ExpandMore from "@mui/icons-material/ExpandMore";-import ChevronRight from "@mui/icons-material/ChevronRight";-import VideoCameraFrontIcon from '@mui/icons-material/VideoCameraFront';+import React, {useEffect} from "react";-import {CameraGroupTreeItem} from "./CameraGroupTreeItem";+import {CameraTreeItem} from "./CameraTreeItem";import {NoCamerasPlaceholder} from "./NoCamerasPlaceholder";-import {CameraSummary} from "./CameraSummary";import {CameraHeaderActions} from "./CameraHeaderActions";import {Camera,@@ -21,124 +15,53 @@ import {} from "@/store";import {useServer} from "@/services/server/ServerContextProvider";import {useTranslation} from 'react-i18next';-import {CollapsibleSidebarSection} from "../../../common/CollapsibleSidebarSection";export const CameraConfigTreeView: React.FC = () => {- const theme = useTheme();const dispatch = useAppDispatch();const {t} = useTranslation();const {isConnected} = useServer();- // Redux stateconst cameras = useAppSelector(selectCameras);const isLoading = useAppSelector(selectIsLoading);const connectedCameras = useAppSelector(selectConnectedCameras);-- // Local state- const [expandedItems, setExpandedItems] = useState<string[]>([- "cameras-root",- "cameras-connected",- "cameras-available"- ]);-- // Pause state from Redux (shared with keyboard shortcut)const isPaused = useAppSelector(selectIsPaused);- // Group cameras by status- const availableCameras = cameras.filter((cam: Camera) => cam.connectionStatus !== "connected");- const isConnectedToCameras = connectedCameras.length > 0;-- // Initial camera detectionuseEffect(() => {if (isConnected && cameras.length === 0) {dispatch(detectCameras({filterVirtual: true}));}}, [isConnected, cameras.length, dispatch]);- const handleExpandedItemsChange = (- event: React.SyntheticEvent,- itemIds: string[]- ): void => {- setExpandedItems(itemIds);- };--return (- <CollapsibleSidebarSection- icon={<VideoCameraFrontIcon sx={{color: "inherit"}}/>}- title={t('cameras')}- summaryContent={- <CameraSummary- cameraCount={cameras.length}- connectedCount={connectedCameras.length}- />- }- secondaryControls={- <CameraHeaderActions- isLoading={isLoading}- isPaused={isPaused}- />- }- defaultExpanded={false}- >- <Box- sx={{- color: "text.primary",- backgroundColor: theme.palette.background.paper,- borderRadius: 1,- mx: 1,- my: 0.5,- }}- >- <SimpleTreeView- expandedItems={expandedItems}- onExpandedItemsChange={handleExpandedItemsChange}- slots={{- collapseIcon: ExpandMore,- expandIcon: ChevronRight,- }}- sx={{- flexGrow: 1,- '& .MuiTreeItem-content': {- padding: '2px 4px',- margin: '1px 0',- },- '& .MuiTreeItem-label': {- fontSize: 13,- padding: '1px 0',- },- }}- >- {cameras.length === 0 ? (- <NoCamerasPlaceholder/>- ) : (- <>- {/* Connected Cameras Group */}- {isConnectedToCameras && connectedCameras.length > 0 && (- <CameraGroupTreeItem- groupId="cameras-connected"- title={t("connectedCameras")}- cameras={connectedCameras}- icon={<VideoCameraFrontIcon color="success"/>}- expandedItems={expandedItems}- />- )}+ <div className="camera-config-sidebar-panel flex flex-col flex-1 bg-middark br-2 p-1 min-h-0 order-1">+ {/* Header */}+ <div className="camera-group-header flex flex-row flex-wrap items-center gap-1 p-1 pos-rel z-2">+ <p className="flex flex-row text md text-gray">{cameras.length} {t('cameras')}</p>+ {connectedCameras.length > 0 && (+ <span className="text md" style={{color: 'var(--color-success)'}}>+ {connectedCameras.length} Streaming+ </span>+ )}+ <div className="flex-1" />+ <div className="button-group flex items-center gap-1 pos-rel">+ <CameraHeaderActions />+ </div>+ </div>- {/* Available Cameras Group */}- {availableCameras.length > 0 && (- <CameraGroupTreeItem- groupId="cameras-available"- title={t("availableCameras")}- cameras={availableCameras}- icon={<VideoCameraFrontIcon color="info"/>}- expandedItems={expandedItems}- />- )}- </>- )}- </SimpleTreeView>- </Box>- </CollapsibleSidebarSection>+ {/* Camera list */}+ <div className="camera-list-container min-h-0 flex-1 flex flex-col overflow-y overflow-x-hidden z-1 pos-rel">+ {cameras.length === 0 ? (+ <NoCamerasPlaceholder />+ ) : (+ cameras+ .slice()+ .sort((a: Camera, b: Camera) => a.index - b.index)+ .map((camera: Camera) => (+ <CameraTreeItem key={camera.id} camera={camera} />+ ))+ )}+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeViewHeader.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeViewHeader.tsxindex a0774046..5ad9d069 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeViewHeader.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeViewHeader.tsx@@ -1,14 +1,4 @@import React from "react";-import {Box, CircularProgress, IconButton, Stack, Tooltip, Typography, useTheme} from "@mui/material";-import VideocamIcon from "@mui/icons-material/Videocam";-import VideocamOffIcon from "@mui/icons-material/VideocamOff";-import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";-import PauseIcon from "@mui/icons-material/Pause";-import PlayArrowIcon from "@mui/icons-material/PlayArrow";-import YoutubeSearchedForIcon from "@mui/icons-material/YoutubeSearchedFor";-import DeleteSweepIcon from "@mui/icons-material/DeleteSweep";-import SyncIcon from "@mui/icons-material/Sync";-import SyncDisabledIcon from "@mui/icons-material/SyncDisabled";import {useAppDispatch, useAppSelector} from "@/store";import {@@ -20,6 +10,7 @@ import {import {autoApplyToggled, savedSettingsCleared} from "@/store/slices/cameras/cameras-slice";import {selectAutoApply} from "@/store/slices/cameras/cameras-selectors";import {useTranslation} from 'react-i18next';+import IconButton from "@/components/ui-components/IconButton";interface CameraConfigTreeViewHeaderProps {cameraCount: number;@@ -28,11 +19,10 @@ interface CameraConfigTreeViewHeaderProps {}export const CameraConfigTreeViewHeader: React.FC<CameraConfigTreeViewHeaderProps> = ({- cameraCount,- isLoading,- isPaused,- }) => {- const theme = useTheme();+ cameraCount,+ isLoading,+ isPaused,+}) => {const dispatch = useAppDispatch();const {t} = useTranslation();const isAutoApply = useAppSelector(selectAutoApply);@@ -40,7 +30,6 @@ export const CameraConfigTreeViewHeader: React.FC<CameraConfigTreeViewHeaderPropconst handleRefreshCameras = async (e: React.MouseEvent): Promise<void> => {e.stopPropagation();-setIsActionInProgress(true);try {await dispatch(detectCameras({filterVirtual: true})).unwrap();@@ -53,7 +42,6 @@ export const CameraConfigTreeViewHeader: React.FC<CameraConfigTreeViewHeaderPropconst handleConnectOrApply = async (e: React.MouseEvent): Promise<void> => {e.stopPropagation();-setIsActionInProgress(true);try {await dispatch(camerasConnectOrUpdate()).unwrap();@@ -66,7 +54,6 @@ export const CameraConfigTreeViewHeader: React.FC<CameraConfigTreeViewHeaderPropconst handleCloseCameras = async (e: React.MouseEvent): Promise<void> => {e.stopPropagation();-setIsActionInProgress(true);try {await dispatch(closeCameras()).unwrap();@@ -80,7 +67,6 @@ export const CameraConfigTreeViewHeader: React.FC<CameraConfigTreeViewHeaderPropconst handlePauseUnpause = async (e: React.MouseEvent): Promise<void> => {e.stopPropagation();-setIsActionInProgress(true);try {await dispatch(pauseUnpauseCameras()).unwrap();@@ -101,142 +87,66 @@ export const CameraConfigTreeViewHeader: React.FC<CameraConfigTreeViewHeaderProp};return (- <Box+ <divonClick={handleHeaderClick}- sx={{- display: "flex",- alignItems: "center",- py: 1,- backgroundColor: theme.palette.primary.dark,- color: theme.palette.primary.contrastText,+ className="flex flex-row items-center p-1 pt-2 pb-2"+ style={{+ backgroundColor: 'var(--color-bg-elevated)',+ color: '#fff',}}>- <VideocamIcon sx={{ml: 2, mr: 1}}/>- <Typography variant="h6" sx={{flexGrow: 1}}>+ <span className="icon videocam-icon icon-size-20 ml-2 mr-1" />+ <p className="text bg text-white flex-1">{t('camerasCount', {count: cameraCount})}- </Typography>-- <Stack direction="row" spacing={1} sx={{mr: 2}}>- {/* Auto-apply toggle */}- <Tooltip title={isAutoApply ? 'Auto-apply on — changes send automatically' : 'Auto-apply off — use apply button to send'}>- <IconButton- size="small"- onClick={() => dispatch(autoApplyToggled())}- sx={{- color: isAutoApply ? theme.palette.secondary.light : 'inherit',- opacity: isAutoApply ? 1 : 0.5,- }}- >- {isAutoApply ? <SyncIcon/> : <SyncDisabledIcon/>}- </IconButton>- </Tooltip>-- {/* Connect/Apply Button - Always visible, changes icon and behavior */}- <Tooltip title={t("connectCameras")}>- <span>- <IconButton- size="small"- onClick={handleConnectOrApply}- sx={{- color: "inherit",- border: `2px solid ${theme.palette.secondary.main}`,- borderRadius: '8px',- padding: '4px',- '&:hover': {- border: `2px solid ${theme.palette.secondary.light}`,- backgroundColor: 'rgba(255, 255, 255, 0.1)',- }- }}- >-- <Box sx={{position: 'relative', display: 'inline-flex', width: 28, height: 28}}>- <VideocamIcon- sx={{- color: theme.palette.secondary.main,- fontSize: 24,- }}- />- <ArrowDownwardIcon- sx={{- position: 'absolute',- top: -6,- left: '50%',- transform: 'translateX(-50%)',- fontSize: 14,- color: theme.palette.secondary.light,- fontWeight: 'bold',- strokeWidth: 3,- stroke: theme.palette.secondary.dark,- filter: 'drop-shadow(0 0 2px rgba(0,0,0,0.8))',- }}- />- </Box>--- </IconButton>- </span>- </Tooltip>-- {/* Pause/Play Button */}- <Tooltip title={isPaused ? t("resumeStreaming") : t("pauseStreaming")}>- <span>- <IconButton- size="small"- onClick={handlePauseUnpause}- sx={{- color: "inherit",- }}- >- {isPaused ? <PlayArrowIcon/> : <PauseIcon/>}- </IconButton>- </span>- </Tooltip>-- {/* Close Button */}- <Tooltip title={t("closeAllCameras")}>- <span>- <IconButton- size="small"- onClick={handleCloseCameras}- sx={{- color: "inherit",- }}- >- <VideocamOffIcon/>- </IconButton>- </span>- </Tooltip>-- {/* Refresh/Detect Button - Always visible */}- <Tooltip title={t("detectCameras")}>- <span>- <IconButton- size="small"- onClick={handleRefreshCameras}- sx={{color: "inherit"}}- >- {isLoading || isActionInProgress ? (- <CircularProgress size={20} sx={{color: "inherit"}}/>- ) : (- <YoutubeSearchedForIcon/>- )}- </IconButton>- </span>- </Tooltip>-- {/* Clear Saved Settings Button */}- <Tooltip title={t("clearCameraSettings")}>- <span>- <IconButton- size="small"- onClick={handleClearSavedSettings}- sx={{color: "inherit"}}- >- <DeleteSweepIcon/>- </IconButton>- </span>- </Tooltip>- </Stack>- </Box>+ </p>++ <div className="flex flex-row items-center gap-1 mr-2">+ <IconButton+ icon={isAutoApply ? "sync-icon" : "sync-disabled-icon"}+ onClick={() => dispatch(autoApplyToggled())}+ title={isAutoApply ? 'Auto-apply on — changes send automatically' : 'Auto-apply off — use apply button to send'}+ style={{+ color: isAutoApply ? 'var(--color-accent)' : 'inherit',+ opacity: isAutoApply ? 1 : 0.5,+ }}+ />++ <IconButton+ icon="videocam-icon"+ className="icon-size-25 br-2 p-1"+ onClick={handleConnectOrApply}+ title={t("connectCameras")}+ style={{+ color: 'var(--color-accent)',+ border: '2px solid var(--color-accent)',+ }}+ iconStyle={{color: 'var(--color-accent)'}}+ />++ <IconButton+ icon={isPaused ? "play-icon" : "pause-icon"}+ onClick={handlePauseUnpause}+ title={isPaused ? t("resumeStreaming") : t("pauseStreaming")}+ />++ <IconButton+ icon="videocam-off-icon"+ onClick={handleCloseCameras}+ title={t("closeAllCameras")}+ />++ <IconButton+ icon={isLoading || isActionInProgress ? "loader-icon" : "refresh-icon"}+ onClick={handleRefreshCameras}+ title={t("detectCameras")}+ />++ <IconButton+ icon="clear-icon"+ onClick={handleClearSavedSettings}+ title={t("clearCameraSettings")}+ />+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraGroupTreeItem.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraGroupTreeItem.tsxindex fc5e7767..420ee834 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraGroupTreeItem.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraGroupTreeItem.tsx@@ -1,43 +1,35 @@-import React from "react";-import {Box, Typography} from "@mui/material";-import {TreeItem} from "@mui/x-tree-view/TreeItem";+import React, {useState} from "react";import {CameraTreeItem} from "./CameraTreeItem";import {Camera} from "@/store/slices/cameras/cameras-types";interface CameraGroupTreeItemProps {- groupId: string;title: string;cameras: Camera[];- icon?: React.ReactNode;- expandedItems?: string[];}export const CameraGroupTreeItem: React.FC<CameraGroupTreeItemProps> = ({- groupId,- title,- cameras,- icon,- expandedItems,- }) => {+ title,+ cameras,+}) => {+ const [expanded, setExpanded] = useState(true);+return (- <TreeItem- itemId={groupId}- label={- <Box sx={{ display: "flex", alignItems: "center" }}>- {icon}- <Typography variant="subtitle2" sx={{ ml: 1 }}>- {title} ({cameras.length})- </Typography>- </Box>- }- >- {cameras.map((camera: Camera) => (- <CameraTreeItem- key={camera.id}- camera={camera}- isExpanded={expandedItems?.includes(`camera-${camera.id}`)}- />- ))}- </TreeItem>+ <div className="flex flex-col">+ <div+ className="camera-section-header toggle-button gap-1 p-1 br-1 flex justify-content-space-between items-center h-25"+ onClick={() => setExpanded(prev => !prev)}+ >+ <p className="text bg text-gray">{title} ({cameras.length})</p>+ <span className={`icon icon-size-20 ${expanded ? 'close-icon' : 'dropdown-icon'}`} />+ </div>++ {expanded && (+ <div className="flex flex-col reveal slide-down">+ {cameras.map((camera: Camera) => (+ <CameraTreeItem key={camera.id} camera={camera} />+ ))}+ </div>+ )}+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraHeaderActions.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraHeaderActions.tsxindex 23b1e66a..7db8a7d3 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraHeaderActions.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraHeaderActions.tsx@@ -1,219 +1,92 @@-import React, {useState} from "react";-import {Box, CircularProgress, IconButton, Tooltip, useTheme} from "@mui/material";-import VideocamIcon from "@mui/icons-material/Videocam";-import VideocamOffIcon from "@mui/icons-material/VideocamOff";-import PauseIcon from "@mui/icons-material/Pause";-import PlayArrowIcon from "@mui/icons-material/PlayArrow";-import YoutubeSearchedForIcon from "@mui/icons-material/YoutubeSearchedFor";-import DeleteSweepIcon from "@mui/icons-material/DeleteSweep";-import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";-import WbIncandescentIcon from "@mui/icons-material/WbIncandescent";+import React, {useCallback, useEffect, useState} from "react";-import {useAppDispatch} from "@/store";+import {useAppDispatch, useAppSelector} from "@/store";import {camerasConnectOrUpdate,closeCameras,detectCameras,pauseUnpauseCameras,} from "@/store/slices/cameras/cameras-thunks";-import {recommendExposureForAll, savedSettingsCleared} from "@/store/slices/cameras/cameras-slice";+import {selectConnectedCameras, selectIsLoading, selectIsPaused} from "@/store/slices/cameras";import {useTranslation} from 'react-i18next';+import IconButton from "@/components/ui-components/IconButton";+import ButtonSm from "@/components/ui-components/ButtonSm";-interface CameraHeaderActionsProps {- isLoading: boolean;- isPaused: boolean;-}--export const CameraHeaderActions: React.FC<CameraHeaderActionsProps> = ({- isLoading,- isPaused,-}) => {+export const CameraHeaderActions: React.FC = () => {const dispatch = useAppDispatch();const {t} = useTranslation();- const theme = useTheme();-- const [isActionInProgress, setIsActionInProgress] = useState(false);-- const handleRefreshCameras = async (e: React.MouseEvent): Promise<void> => {- e.stopPropagation();- setIsActionInProgress(true);- try {- await dispatch(detectCameras({filterVirtual: true})).unwrap();- } catch (error) {- console.error('Error detecting cameras:', error);- } finally {- setIsActionInProgress(false);- }- };+ const [isStoppingCameras, setIsStoppingCameras] = useState(false);- const handleConnectOrApply = async (e: React.MouseEvent): Promise<void> => {- e.stopPropagation();- setIsActionInProgress(true);- try {- await dispatch(camerasConnectOrUpdate()).unwrap();- } catch (error) {- console.error('Error with camera operation:', error);- } finally {- setIsActionInProgress(false);- }- };+ const isLoading = useAppSelector(selectIsLoading);+ const isPaused = useAppSelector(selectIsPaused);+ const connectedCameras = useAppSelector(selectConnectedCameras);+ const isRecording = useAppSelector(state => state.recording.isRecording);- const handleCloseCameras = async (e: React.MouseEvent): Promise<void> => {- e.stopPropagation();- setIsActionInProgress(true);- try {- await dispatch(closeCameras()).unwrap();- } catch (error) {- console.error('Error closing cameras:', error);- } finally {- setIsActionInProgress(false);+ useEffect(() => {+ if (isStoppingCameras && connectedCameras.length === 0) {+ setIsStoppingCameras(false);}- };+ }, [isStoppingCameras, connectedCameras.length]);- const handlePauseUnpause = async (e: React.MouseEvent): Promise<void> => {- e.stopPropagation();- setIsActionInProgress(true);- try {- await dispatch(pauseUnpauseCameras()).unwrap();- } catch (error) {- console.error('Error pausing/unpausing cameras:', error);- } finally {- setIsActionInProgress(false);- }- };+ const handleDetect = useCallback(() => {+ dispatch(detectCameras({filterVirtual: true}));+ }, [dispatch]);- const handleRecommendExposureAll = (e: React.MouseEvent): void => {- e.stopPropagation();- dispatch(recommendExposureForAll());- };+ const handleUpdate = useCallback(() => {+ dispatch(camerasConnectOrUpdate());+ }, [dispatch]);- const handleClearSavedSettings = (e: React.MouseEvent): void => {- e.stopPropagation();- dispatch(savedSettingsCleared());- };+ const handleStop = useCallback(() => {+ setIsStoppingCameras(true);+ dispatch(closeCameras());+ }, [dispatch]);- const busy = isLoading || isActionInProgress;+ const handlePauseUnpause = useCallback(() => {+ dispatch(pauseUnpauseCameras());+ }, [dispatch]);return (<>- {/* Connect/Apply Button - Keep pink/magenta color with border */}- <Tooltip title={t("connectCameras")}>- <span>- <IconButton- size="small"- onClick={handleConnectOrApply}- sx={{- color: "secondary.main",- padding: "4px",- border: `2px solid ${theme.palette.secondary.main}`,- borderRadius: '8px',- "&:hover": {- color: "secondary.light",- border: `2px solid ${theme.palette.secondary.light}`,- backgroundColor: 'rgba(255, 255, 255, 0.1)',- }- }}- >- <Box sx={{ position: 'relative', display: 'inline-flex', width: 28, height: 28 }}>- <VideocamIcon- sx={{- color: 'secondary.main',- fontSize: 24,- }}- />- <ArrowDownwardIcon- sx={{- position: 'absolute',- top: -6,- left: '50%',- transform: 'translateX(-50%)',- fontSize: 14,- color: theme.palette.secondary.light,- fontWeight: 'bold',- strokeWidth: 3,- stroke: theme.palette.secondary.dark,- filter: 'drop-shadow(0 0 2px rgba(0,0,0,0.8))',- }}- />- </Box>- </IconButton>- </span>- </Tooltip>-- {/* Recommend Exposure for All Button */}- <Tooltip title="Auto-recommend exposure for all cameras">- <span>+ <IconButton+ icon="scan-icon"+ onClick={handleDetect}+ tooltip+ tooltipText={isRecording ? t('stopRecordingFirst') : t('detectCameras')}+ tooltipPosition="pos-bottom"+ disabled={isRecording}+ />++ {connectedCameras.length === 0 ? (+ <ButtonSm+ text={isLoading ? t('connecting') : t('connectCameras')}+ iconClass={isLoading ? '' : ''}+ onClick={handleUpdate}+ textColor="text-black"+ className={isLoading ? 'disabled secondary' : 'secondary'}+ tooltip+ tooltipText={t('connectCameras')}+ tooltipPosition="pos-bottom-right"+ />+ ) : (+ <><IconButton- size="small"- onClick={handleRecommendExposureAll}- sx={{color: "inherit", padding: "4px"}}- >- <WbIncandescentIcon sx={{fontSize: 24}}/>- </IconButton>- </span>- </Tooltip>-- {/* Pause/Play Button */}- <Tooltip title={isPaused ? t("resumeStreaming") : t("pauseStreaming")}>- <span>- <IconButton- size="small"+ icon={isPaused ? 'play-icon' : 'pause-icon'}onClick={handlePauseUnpause}- sx={{- color: "inherit",- padding: "4px",- }}- >- {isPaused ? <PlayArrowIcon sx={{ fontSize: 24 }} /> : <PauseIcon sx={{ fontSize: 24 }} />}- </IconButton>- </span>- </Tooltip>-- {/* Close Button */}- <Tooltip title={t("closeAllCameras")}>- <span>- <IconButton- size="small"- onClick={handleCloseCameras}- sx={{- color: "inherit",- padding: "4px",- }}- >- <VideocamOffIcon sx={{ fontSize: 24 }} />- </IconButton>- </span>- </Tooltip>-- {/* Refresh/Detect Button */}- <Tooltip title={t("detectCameras")}>- <span>- <IconButton- size="small"- onClick={handleRefreshCameras}- sx={{ color: "inherit", padding: "4px" }}- >- {busy ? (- <CircularProgress size={20} sx={{ color: "inherit" }} />- ) : (- <YoutubeSearchedForIcon sx={{ fontSize: 24 }} />- )}- </IconButton>- </span>- </Tooltip>-- {/* Clear Saved Settings Button */}- <Tooltip title={t("clearCameraSettings")}>- <span>+ tooltip+ tooltipText={isRecording ? t('stopRecordingFirst') : isPaused ? t('resumeStreaming') : t('pauseStreaming')}+ tooltipPosition="pos-bottom-right"+ disabled={isRecording}+ /><IconButton- size="small"- onClick={handleClearSavedSettings}- sx={{ color: "inherit", padding: "4px" }}- >- <DeleteSweepIcon sx={{ fontSize: 24 }} />- </IconButton>- </span>- </Tooltip>+ icon={isStoppingCameras ? 'loader-icon' : 'stopstreaming-icon'}+ onClick={handleStop}+ tooltip+ tooltipText={isRecording ? t('stopRecordingFirst') : t('closeAllCameras')}+ tooltipPosition="pos-bottom-right"+ disabled={isRecording || isStoppingCameras}+ />+ </>+ )}</>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraSettingsModal.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraSettingsModal.tsxnew file mode 100644index 00000000..e60ce1db--- /dev/null+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraSettingsModal.tsx@@ -0,0 +1,172 @@+import React, {useEffect, useRef, useState} from 'react';+import ReactDOM from 'react-dom';+import {useAppDispatch, useAppSelector} from '@/store';+import {cameraDesiredConfigUpdated, configCopiedToAll, savedSettingsCleared} from '@/store/slices/cameras/cameras-slice';+import {camerasConnectOrUpdate} from '@/store/slices/cameras/cameras-thunks';+import {selectCameras} from '@/store/slices/cameras';+import {+ Camera,+ CameraConfig,+ ExposureMode,+ ROTATION_DEGREE_LABELS,+ ROTATION_OPTIONS,+ RotationValue,+} from '@/store/slices/cameras/cameras-types';+import ButtonSm from '@/components/ui-components/ButtonSm';+import IconButton from '@/components/ui-components/IconButton';+import NameDropdownSelector from '@/components/ui-components/NameDropdownSelector';+import {Row} from '@/components/ui-components/Row';+import SegmentedControl from '@/components/ui-components/SegmentedControl';+import ValueSelector from '@/components/ui-components/ValueSelector';+import useDraggableTooltips from '@/hooks/useDraggableTooltips';+interface CameraSettingsModalProps {+ camera: Camera;+ initialPos: {top: number; left: number};+ onClose: () => void;+}++const PRESET_RESOLUTIONS = [+ {width: 640, height: 480, label: '640 × 480'},+ {width: 1280, height: 720, label: '1280 × 720'},+ {width: 1920, height: 1080, label: '1920 × 1080'},+];++const EXPOSURE_MIN = -13;+const EXPOSURE_MAX = -4;++const resolutionLabel = (config: CameraConfig): string => {+ const preset = PRESET_RESOLUTIONS.find(+ p => p.width === config.resolution.width && p.height === config.resolution.height,+ );+ return preset?.label ?? `${config.resolution.width} × ${config.resolution.height}`;+};++export const CameraSettingsModal: React.FC<CameraSettingsModalProps> = ({camera, initialPos, onClose}) => {+ const dispatch = useAppDispatch();+ const allCameras = useAppSelector(selectCameras);+ const otherCamerasCount = allCameras.length - 1;+ const [pos, setPos] = useState(initialPos);+ const modalRef = useRef<HTMLDivElement>(null);++ useEffect(() => {+ const handleKey = (e: KeyboardEvent) => {+ if (e.key === 'Escape') onClose();+ };+ window.addEventListener('keydown', handleKey);+ return () => window.removeEventListener('keydown', handleKey);+ }, [onClose]);++ useEffect(() => {+ const handleClickOutside = (e: MouseEvent) => {+ if (modalRef.current && !modalRef.current.contains(e.target as Node)) onClose();+ };+ document.addEventListener('mousedown', handleClickOutside);+ return () => document.removeEventListener('mousedown', handleClickOutside);+ }, [onClose]);++ const handleConfigChange = (patch: Partial<CameraConfig>) => {+ dispatch(cameraDesiredConfigUpdated({cameraId: camera.id, config: {...camera.desiredConfig, ...patch}}));+ };++ const config = camera.desiredConfig;+ const isManual = config.exposure_mode === 'MANUAL';++ return ReactDOM.createPortal(+ <div+ ref={modalRef}+ className="camera-settings-container draggable fit-content reveal slide-down camera-settings-modal modal border-1 border-black elevated-sharp flex flex-col p-1 bg-dark br-2 fadeIn gap-1 z-2"+ // style={{position: 'fixed', top: pos.top, left: pos.left, zIndex: 300}}+ onClick={e => e.stopPropagation()}+ >+ <div className="fit-content flex flex-col right-0 p-2 gap-1 bg-middark br-1 z-1">+ {/* Header */}+ <div className="subaction-header-container justify-content-space-between gap-1 br-1 flex items-center h-25 p-1">+ <p className="text-nowrap text-left bg-md text-darkgray">Camera settings</p>+ <div className="flex flex-row gap-1">+ <ButtonSm+ text={+ otherCamerasCount > 0+ ? `Copy to ${otherCamerasCount} other${otherCamerasCount > 1 ? 's' : ''}`+ : 'No other cameras'+ }+ iconClass="copyover-icon"+ buttonType={otherCamerasCount === 0 ? 'disabled' : ''}+ onClick={() => {+ if (otherCamerasCount > 0) dispatch(configCopiedToAll(camera.id));+ }}+ />+ </div>+ </div>++ {/* Rotate */}+ <Row label="Rotate">+ <SegmentedControl+ options={ROTATION_OPTIONS.map((o: RotationValue) => ({+ label: ROTATION_DEGREE_LABELS[o],+ value: String(o),+ }))}+ value={String(config.rotation ?? -1)}+ onChange={v => handleConfigChange({rotation: Number(v) as RotationValue})}+ size="sm"+ className="segmented-control-sm bg-darkgray"+ />+ </Row>++ {/* Resolution */}+ <Row label="Resolution">+ <NameDropdownSelector+ options={PRESET_RESOLUTIONS.map(p => p.label)}+ initialValue={resolutionLabel(config)}+ onChange={label => {+ const preset = PRESET_RESOLUTIONS.find(p => p.label === label);+ if (preset) handleConfigChange({resolution: {width: preset.width, height: preset.height}});+ }}+ />+ </Row>++ {/* Exposure mode */}+ <Row label="Exposure">+ <NameDropdownSelector+ options={['Manual', 'Auto']}+ initialValue={config.exposure_mode === 'MANUAL' ? 'Manual' : 'Auto'}+ onChange={v =>+ handleConfigChange({exposure_mode: (v === 'Manual' ? 'MANUAL' : 'AUTO') as ExposureMode})+ }+ />+ </Row>++ {/* Exposure value — only when manual */}+ {isManual && (+ <Row label="Change exposure" indent>+ <ValueSelector+ value={Math.max(EXPOSURE_MIN, Math.min(EXPOSURE_MAX, config.exposure ?? -7))}+ min={EXPOSURE_MIN}+ max={EXPOSURE_MAX}+ unit=""+ onChange={v => handleConfigChange({exposure: v})}+ />+ </Row>+ )}++ {/* Footer */}+ <div className="flex flex-row gap-1 pt-1">+ <button+ className="button sm br-1 flex-1"+ style={{background: 'var(--color-text-primary)', color: 'var(--color-bg-primary)'}}+ onClick={() => dispatch(camerasConnectOrUpdate())}+ title="Update camera settings"+ >+ <p className="text md" style={{color: 'var(--color-bg-primary)'}}>Update Settings</p>+ </button>+ <IconButton+ icon="clear-icon"+ className="icon-size-25 gap-1 sm fit-content flex-inline text-left items-center"+ onClick={() => dispatch(savedSettingsCleared())}+ title="Reset all cameras to default settings"+ />+ </div>+ </div>+ </div>,+ document.body,+ );+};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraSummary.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraSummary.tsxindex d16c8061..8f3f0179 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraSummary.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraSummary.tsx@@ -1,6 +1,4 @@import React from "react";-import {Chip, Typography, useTheme} from "@mui/material";-import VideocamIcon from "@mui/icons-material/Videocam";interface CameraSummaryProps {cameraCount: number;@@ -11,42 +9,17 @@ export const CameraSummary: React.FC<CameraSummaryProps> = ({cameraCount,connectedCount,}) => {- const theme = useTheme();-if (cameraCount === 0) {return (- <Typography- variant="caption"- sx={{- color: theme.palette.grey[400],- fontWeight: 500,- whiteSpace: "nowrap",- }}- >+ <span className="text sm text-gray text-nowrap" style={{fontWeight: 500}}>No cameras- </Typography>+ </span>);}- const statusColor = connectedCount > 0- ? theme.palette.success.main- : theme.palette.grey[600];-return (- <Chip- icon={<VideocamIcon sx={{ fontSize: 14 }} />}- label={connectedCount > 0 ? `${connectedCount} connected` : `${cameraCount} available`}- size="small"- sx={{- height: 20,- fontSize: 11,- fontWeight: 600,- backgroundColor: statusColor,- color: theme.palette.getContrastText(statusColor),- "& .MuiChip-icon": {- color: "inherit",- },- }}- />+ <span className="tag text sm">+ {connectedCount > 0 ? `${connectedCount} connected` : `${cameraCount} available`}+ </span>);};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraTreeItem.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraTreeItem.tsxindex 61600478..85681c25 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraTreeItem.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/CameraTreeItem.tsx@@ -1,233 +1,182 @@-import React from "react";-import {Box, Chip, IconButton, Tooltip, Typography, useTheme} from "@mui/material";-import {TreeItem} from "@mui/x-tree-view/TreeItem";-import CheckCircleIcon from "@mui/icons-material/CheckCircle";-import RadioButtonUncheckedIcon from "@mui/icons-material/RadioButtonUnchecked";-import SettingsIcon from "@mui/icons-material/Settings";-import VideoCameraFrontIcon from "@mui/icons-material/VideoCameraFront";-import VideoCameraFrontOutlinedIcon from "@mui/icons-material/VideoCameraFrontOutlined";-import {useTranslation} from "react-i18next";--import {CameraConfigTreeSection} from "./CameraConfigTreeSection";-import {ROTATION_DEGREE_LABELS, RotationValue, useAppDispatch} from "@/store";-import {cameraRealtimeToggled, cameraSelectionToggled} from "@/store/slices/cameras/cameras-slice";-import {Camera} from "@/store/slices/cameras/cameras-types";+import React, { useRef, useState } from "react";+import clsx from "clsx";+import { useTranslation } from "react-i18next";++import { CameraSettingsModal } from "./CameraSettingsModal";+import { ROTATION_DEGREE_LABELS, RotationValue, useAppDispatch } from "@/store";+import {+ cameraRealtimeToggled,+ cameraSelectionToggled,+} from "@/store/slices/cameras/cameras-slice";+import { Camera } from "@/store/slices/cameras/cameras-types";+import Checkbox from "@/components/ui-components/Checkbox";+import IconButton from "@/components/ui-components/IconButton";interface CameraTreeItemProps {- camera: Camera;- isExpanded?: boolean;+ camera: Camera;}-// Helper function to format config summaryconst getConfigSummary = (config: any): string[] => {- const summary: string[] = [];+ const summary: string[] = [];- if (!config) return summary;+ if (!config) return summary;- // Add resolution if available- if (config.resolution?.width && config.resolution?.height) {- summary.push(`${config.resolution.width}×${config.resolution.height}`);- }+ if (config.resolution?.width && config.resolution?.height) {+ summary.push(`${config.resolution.width}×${config.resolution.height}`);+ }- if (config.framerate) {- summary.push(`${parseFloat(config.framerate).toFixed(2)}fps`);- }+ if (config.framerate) {+ summary.push(`${parseFloat(config.framerate).toFixed(2)}fps`);+ }- // Add exposure if available and not AUTO- if (config.exposure !== undefined && config.exposure_mode === 'MANUAL') {- summary.push(`E:${config.exposure}`);- }+ if (config.exposure !== undefined && config.exposure_mode === "MANUAL") {+ summary.push(`E:${config.exposure}`);+ }- // Add pixel format if available and not default- if (config.pixel_format && config.pixel_format !== 'RGB') {- summary.push(config.pixel_format);- }+ if (config.pixel_format && config.pixel_format !== "RGB") {+ summary.push(config.pixel_format);+ }- if (config.rotation) {- summary.push(ROTATION_DEGREE_LABELS[config.rotation as RotationValue]);- }- // Add capture format if different from default- if (config.capture_fourcc) {- summary.push(config.capture_fourcc);- }+ if (config.rotation) {+ summary.push(ROTATION_DEGREE_LABELS[config.rotation as RotationValue]);+ }- return summary.filter(item => item); // Remove empty strings+ if (config.capture_fourcc) {+ summary.push(config.capture_fourcc);+ }++ return summary.filter((item) => item);};-export const CameraTreeItem: React.FC<CameraTreeItemProps> = ({camera, isExpanded = false}) => {- const dispatch = useAppDispatch();- const theme = useTheme();- const { t } = useTranslation();-- const statusLabelMap: Record<string, string> = {- connected: t('connected'),- available: t('available'),- error: t('errorsDetected'),- };-- const handleToggleSelection = (e: React.MouseEvent): void => {- e.stopPropagation();- dispatch(cameraSelectionToggled(camera.id));- };-- const handleToggleRealtime = (e: React.MouseEvent): void => {- e.stopPropagation();- dispatch(cameraRealtimeToggled(camera.id));- };-- const getStatusColor = (): string => {- switch (camera.connectionStatus) {- case "connected":- return theme.palette.success.main;- case "available":- return theme.palette.info.main;- case "error":- return theme.palette.error.main;- default:- return theme.palette.grey[500];- }- };-- const configSummary = getConfigSummary(camera.desiredConfig);- const showConfigSummary = !isExpanded && configSummary.length > 0;-- return (- <TreeItem- itemId={`camera-${camera.id}`}- label={- <Box- sx={{- display: "flex",- alignItems: "center",- py: 0.2,- pr: 1,- minHeight: 32,- }}- >- {/* Camera group selection */}- <Tooltip title={camera.selected ? "In camera group" : "Not in camera group"} enterDelay={600} disableInteractive>- <IconButton- size="small"- onClick={handleToggleSelection}- sx={{mr: 0.5, flexShrink: 0}}- >- {camera.selected ? (- <CheckCircleIcon color="primary"/>- ) : (- <RadioButtonUncheckedIcon color="disabled"/>- )}- </IconButton>- </Tooltip>-- {/* Realtime pipeline toggle */}- <Tooltip title={camera.realtimeEnabled ? "In realtime pipeline" : "Not in realtime pipeline"} enterDelay={600} disableInteractive>- <span>- <IconButton- size="small"- onClick={handleToggleRealtime}- disabled={!camera.selected}- sx={{mr: 1, flexShrink: 0}}- >- {camera.realtimeEnabled ? (- <VideoCameraFrontIcon color="primary"/>- ) : (- <VideoCameraFrontOutlinedIcon color="disabled"/>- )}- </IconButton>- </span>- </Tooltip>-- {/* Camera name and config summary container */}- <Box sx={{- display: "flex",- alignItems: "center",- flexGrow: 1,- minWidth: 0, // Allow shrinking- gap: 1- }}>- {/* Camera name */}- <Typography- variant="body2"- sx={{- flexShrink: 0,- whiteSpace: "nowrap",- overflow: "hidden",- textOverflow: "ellipsis",- maxWidth: "200px" // Limit name width- }}- >- <span style={{fontSize: '0.75rem'}}>-- Camera {camera.index}- </span>- <br/>- <span style={{fontSize: '0.6rem'}}>- {camera.name} (id: {camera.id})- </span>- </Typography>-- {/* Config summary - only show when collapsed */}- {showConfigSummary && (- <Box sx={{- display: "flex",- alignItems: "center",- gap: 0.25,- flexGrow: 1,- minWidth: 0,- overflow: "hidden"- }}>- <SettingsIcon- sx={{- fontSize: 14,- color: theme.palette.text.secondary,- flexShrink: 0- }}- />- <Box sx={{- display: "flex",- gap: 0.5,- flexWrap: "wrap",- overflow: "hidden"- }}>- {configSummary.slice(0, 5).map((item, index) => (- <Chip- key={index}- label={item}- size="small"- variant="outlined"- sx={{- height: 10,- fontSize: 8,- '& .MuiChip-label': {- px: 0.75,- },- borderColor: theme.palette.divider,- color: theme.palette.text.secondary,- }}- />- ))}- </Box>- </Box>- )}- </Box>-- {/* Status chip */}- <Chip- label={statusLabelMap[camera.connectionStatus] ?? camera.connectionStatus.toUpperCase()}- size="small"- sx={{- ml: 1,- flexShrink: 0,- backgroundColor: getStatusColor(),- color: theme.palette.getContrastText(getStatusColor()),- fontSize: 10,- height: 20,- }}- />- </Box>- }+export const CameraTreeItem: React.FC<CameraTreeItemProps> = ({ camera }) => {+ const dispatch = useAppDispatch();+ const { t } = useTranslation();+ const [settingsOpen, setSettingsOpen] = useState(false);+ const [modalPos, setModalPos] = useState({ top: 80, left: 40 });+ const settingsBtnRef = useRef<HTMLButtonElement>(null);++ const handleToggleSelection = (+ e: React.ChangeEvent<HTMLInputElement>,+ ): void => {+ e.stopPropagation();+ dispatch(cameraSelectionToggled(camera.id));+ };++ const handleToggleRealtime = (e: React.MouseEvent): void => {+ e.stopPropagation();+ dispatch(cameraRealtimeToggled(camera.id));+ };++ const handleOpenSettings = (e: React.MouseEvent): void => {+ e.stopPropagation();+ if (!settingsOpen && settingsBtnRef.current) {+ const rect = settingsBtnRef.current.getBoundingClientRect();+ setModalPos({ top: rect.bottom + 8, left: rect.right + 8 });+ }+ setSettingsOpen((prev) => !prev);+ };++ const configSummary = getConfigSummary(camera.desiredConfig);++ return (+ <div className="camera-item-row br-1 flex flex-col gap-1">+ <div className="camera-row-group flex flex-row gap-0 items-center">+ {/* Left: selection + realtime toggles */}+ <div className="flex flex-row checkbox-group">+ <div className="tooltip-wrapper pos-rel">+ <Checkbox+ label=""+ checked={camera.selected}+ onChange={handleToggleSelection}+ inputClassName={+ camera.connectionStatus === "connected" ? "streaming" : ""+ }+ />+ <div className="tooltip-container elevated-sharp pos-right p-01 br-2 bg-dark">+ <div className="tooltip-inner br-1 pl-2 pr-2 pt-1 pb-1 border-1 border-mid-black border-solid">+ <p className="text-white text md">+ {camera.selected+ ? "Remove from capture group"+ : "Add to capture group"}+ </p>+ </div>+ </div>+ </div>+ </div>++ {/* Right: camera info + settings toggle */}+ <div+ className={clsx(+ "camera-settings-button button sm br-1 flex flex-col gap-1 flex-1 cursor-pointer p-1",+ settingsOpen && "selected-camera-feed",+ settingsOpen && "selected-camera-settings",+ )}+ onClick={handleOpenSettings}>- <CameraConfigTreeSection camera={camera}/>- </TreeItem>- );+ <div className="flex flex-row items-center gap-2">+ <p+ className="text sm text-white text-nowrap"++ >+ Camera {camera.index}+ </p>+ <p+ className="text sm text-gray text-nowrap"+ style={{+ flex: "0 1 auto",+ overflow: "hidden",+ textOverflow: "ellipsis",+ }}+ >+ {camera.name}+ </p>+ <div className="flex-1" />++ <span className="icon icon-size-20 settings-icon"></span>+ </div>++ {/* Realtime status indicator + config chips */}+ <div className="flex flex-row items-center gap-1 flex-nowrap">+ <div className="tooltip-wrapper pos-rel flex-inline">+ <span+ className={clsx(+ "icon icon-size-20 bg-middark br-1",+ camera.realtimeEnabled ? "live-active-icon" : "live-icon",+ camera.selected ? "cursor-pointer" : "disabled",+ )}+ onClick={camera.selected ? handleToggleRealtime : undefined}+ />+ <div className="tooltip-container elevated-sharp pos-right p-01 br-2 bg-dark">+ <div className="tooltip-inner br-1 pl-2 pr-2 pt-1 pb-1 border-1 border-mid-black border-solid">+ <p className="text-white text md">+ {camera.realtimeEnabled+ ? "Remove from realtime pipeline"+ : "Add to realtime pipeline"}+ </p>+ </div>+ </div>+ </div>++ {configSummary.length > 0 && (+ <div className="flex flex-wrap gap-1 flex-nowrap">+ {configSummary.map((item) => (+ <span key={item} className="tag camera-config-chip">+ {item}+ </span>+ ))}+ </div>+ )}+ </div>+ </div>+ </div>++ {settingsOpen && (+ <CameraSettingsModal+ camera={camera}+ initialPos={modalPos}+ onClose={() => setSettingsOpen(false)}+ />+ )}+ </div>+ );};diff --git a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/NoCamerasPlaceholder.tsx b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/NoCamerasPlaceholder.tsxindex e490e2e7..312833a8 100644--- a/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/NoCamerasPlaceholder.tsx+++ b/freemocap-ui/src/components/control-panels/camera-config-panel/camera-config-tree-view/NoCamerasPlaceholder.tsx@@ -1,33 +1,12 @@import React from "react";-import {Box, Typography} from "@mui/material";-import {TreeItem} from "@mui/x-tree-view/TreeItem";import {useTranslation} from "react-i18next";export const NoCamerasPlaceholder: React.FC = () => {const { t } = useTranslation();return (- <TreeItem- itemId="no-cameras"- label={- <Box- sx={{- p: 3,- textAlign: "center",- bgcolor: "background.paper",- }}- >- <Typography variant="body1" color="text.secondary">- {t('noCamerasDetected')}- </Typography>- <Typography- variant="caption"- color="text.disabled"- sx={{ mt: 1, display: "block" }}- >- {t('clickRefreshToScan')}- </Typography>- </Box>- }- />+ <div className="flex flex-col items-center p-3 text-center">+ <p className="text md text-gray">{t('noCamerasDetected')}</p>+ <p className="text sm text-gray mt-1">{t('clickRefreshToScan')}</p>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/mocap-control-panel/BlenderSection.tsx b/freemocap-ui/src/components/control-panels/mocap-control-panel/BlenderSection.tsxindex 3c3cca56..95a228f9 100644--- a/freemocap-ui/src/components/control-panels/mocap-control-panel/BlenderSection.tsx+++ b/freemocap-ui/src/components/control-panels/mocap-control-panel/BlenderSection.tsx@@ -1,25 +1,8 @@import React from 'react';-import {- Alert,- Box,- Button,- Checkbox,- Divider,- FormControlLabel,- IconButton,- InputAdornment,- Stack,- TextField,- Tooltip,- Typography,-} from '@mui/material';-import FolderOpenIcon from '@mui/icons-material/FolderOpen';-import LaunchIcon from '@mui/icons-material/Launch';-import RefreshIcon from '@mui/icons-material/Refresh';-import ClearIcon from '@mui/icons-material/Clear';-import MovieFilterIcon from '@mui/icons-material/MovieFilter';import {useBlender} from '@/hooks/useBlender';import {useElectronIPC} from '@/services';+import ToggleComponent from '@/components/ui-components/ToggleComponent';+import IconButton from '@/components/ui-components/IconButton';interface BlenderSectionProps {recordingFolderPath: string | null | undefined;@@ -90,125 +73,97 @@ export const BlenderSection: React.FC<BlenderSectionProps> = ({(hasBlendFile === undefined || hasBlendFile);return (- <Box sx={{mt: 1}}>- <Divider sx={{mb: 2}}>- <Stack direction="row" alignItems="center" spacing={0.5}>- <MovieFilterIcon fontSize="small"/>- <Typography variant="overline" sx={{lineHeight: 1}}>- Blender- </Typography>- </Stack>- </Divider>+ <div className="mt-2">+ <div style={{height: 1, backgroundColor: 'var(--color-border-secondary)', margin: '4px 0'}} />+ <div className="flex flex-row items-center gap-1 mb-2">+ <span className="icon processmocap-icon icon-size-20" />+ <p className="text sm text-gray" style={{textTransform: 'uppercase', letterSpacing: 1}}>Blender</p>+ </div>- <Stack spacing={2}>+ <div className="flex flex-col gap-2">{error && (- <Alert severity="error" onClose={clearError}>- {error}- </Alert>+ <div className="toast-notification error">+ <div className="flex flex-row items-center justify-content-space-between">+ <p className="text sm">{error}</p>+ <IconButton icon="clear-icon" iconSize="icon-size-12" onClick={clearError} title="Dismiss error" />+ </div>+ </div>)}- <TextField- label="Blender Executable"- value={effectiveBlenderExePath ?? ''}- onChange={(e) => setBlenderExePath(e.target.value || null)}- fullWidth- size="small"- placeholder={isDetecting ? 'Detecting…' : 'No Blender found — select manually'}- helperText={- isUsingManualBlenderPath+ <div className="flex flex-col gap-1">+ <div className="input-with-string">+ <input+ className="input-field text md"+ value={effectiveBlenderExePath ?? ''}+ onChange={(e) => setBlenderExePath(e.target.value || null)}+ placeholder={isDetecting ? 'Detecting…' : 'No Blender found — select manually'}+ />+ <div className="flex flex-row pos-abs right-4 top-50">+ {isUsingManualBlenderPath && (+ <IconButton+ icon="clear-icon"+ onClick={clearBlenderExePath}+ title="Clear manual path (revert to auto-detected)"+ />+ )}+ <IconButton+ icon="save-icon"+ onClick={redetectBlender}+ disabled={isDetecting}+ title="Re-detect Blender"+ />+ <IconButton+ icon="download-icon"+ onClick={handleSelectBlenderExe}+ disabled={!isElectron}+ title="Select Blender executable"+ />+ </div>+ </div>+ <p className="text sm text-gray">+ {isUsingManualBlenderPath? 'Using manually selected Blender': effectiveBlenderExePath? 'Auto-detected Blender'- : 'Click the folder icon to browse for blender.exe'- }- InputProps={{- endAdornment: (- <InputAdornment position="end">- {isUsingManualBlenderPath && (- <Tooltip title="Clear manual path (revert to auto-detected)">- <IconButton onClick={clearBlenderExePath} edge="end" size="small">- <ClearIcon fontSize="small"/>- </IconButton>- </Tooltip>- )}- <Tooltip title="Re-detect Blender">- <span>- <IconButton- onClick={redetectBlender}- edge="end"- size="small"- disabled={isDetecting}- >- <RefreshIcon fontSize="small"/>- </IconButton>- </span>- </Tooltip>- <Tooltip title="Select Blender executable">- <span>- <IconButton- onClick={handleSelectBlenderExe}- edge="end"- disabled={!isElectron}- >- <FolderOpenIcon/>- </IconButton>- </span>- </Tooltip>- </InputAdornment>- ),- }}- />+ : 'Click the folder icon to browse for blender.exe'}+ </p>+ </div>- <Stack spacing={0.5}>- <FormControlLabel- control={- <Checkbox- size="small"- checked={exportToBlenderEnabled}- onChange={(e) => setExportToBlenderEnabled(e.target.checked)}- />- }- label="Export to Blender after mocap processing"+ <div className="flex flex-col gap-1">+ <ToggleComponent+ text="Export to Blender after mocap processing"+ isToggled={exportToBlenderEnabled}+ onToggle={setExportToBlenderEnabled}/>- <FormControlLabel- control={- <Checkbox- size="small"- checked={autoOpenBlendFile}- onChange={(e) => setAutoOpenBlendFile(e.target.checked)}- />- }- label="Auto-open .blend file in Blender when done"+ <ToggleComponent+ text="Auto-open .blend file in Blender when done"+ isToggled={autoOpenBlendFile}+ onToggle={setAutoOpenBlendFile}/>- </Stack>+ </div>- <Button- variant="outlined"- color="secondary"- startIcon={<MovieFilterIcon/>}+ <button+ className="button sm secondary w-full"onClick={handleProcessWithBlender}disabled={!canExport}- fullWidth>{isExporting ? 'Exporting to Blender…' : 'Process Recording with Blender'}- </Button>+ </button>- <Button- variant="outlined"- startIcon={<LaunchIcon/>}+ <button+ className="button sm secondary w-full"onClick={handleOpenInBlender}disabled={!canOpen}- fullWidth>{isOpening ? 'Opening…' : 'Open .blend in Blender'}- </Button>+ </button>{lastBlendFilePath && (- <Typography variant="caption" color="text.secondary" sx={{fontFamily: 'monospace'}}>+ <p className="text sm text-gray" style={{fontFamily: 'monospace'}}>Last export: {lastBlendFilePath}- </Typography>+ </p>)}- </Stack>- </Box>+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/mocap-control-panel/MediapipeConfigPanel.tsx b/freemocap-ui/src/components/control-panels/mocap-control-panel/MediapipeConfigPanel.tsxindex 8a43a0d7..4d8b01cb 100644--- a/freemocap-ui/src/components/control-panels/mocap-control-panel/MediapipeConfigPanel.tsx+++ b/freemocap-ui/src/components/control-panels/mocap-control-panel/MediapipeConfigPanel.tsx@@ -1,20 +1,9 @@import React, {useCallback} from "react";-import {- Box,- Chip,- FormControl,- FormControlLabel,- InputLabel,- MenuItem,- Select,- Slider,- Stack,- Switch,- Typography,- useTheme,-} from "@mui/material";import {useMocap} from "@/hooks/useMocap";+import ToggleComponent from "@/components/ui-components/ToggleComponent";import {+ detectPreset,+ DetectorPreset,MEDIAPIPE_POSTHOC_PRESET,MEDIAPIPE_REALTIME_PRESET,MediapipeDetectorConfig,@@ -27,37 +16,6 @@ const MODEL_COMPLEXITY_LABELS: Record<MediapipeModelComplexity, string> = {2: "Heavy (most accurate)",};-type DetectorPreset = "realtime" | "posthoc" | "custom";--function detectPreset(- config: { model_complexity: number; enable_segmentation: boolean; smooth_segmentation: boolean }-): DetectorPreset {- if (- config.model_complexity === 0 &&- !config.enable_segmentation &&- !config.smooth_segmentation- ) return "realtime";- if (- config.model_complexity === 2 &&- config.enable_segmentation &&- config.smooth_segmentation- ) return "posthoc";- return "custom";-}--/** Shared slider sx that matches the camera config panel style. */-const useSliderSx = () => {- const theme = useTheme();- return {- color: theme.palette.primary.light,- "& .MuiSlider-thumb": {- "&:hover, &.Mui-focusVisible": {- boxShadow: `0px 0px 0px 8px ${theme.palette.primary.light}33`,- },- },- } as const;-};-interface MediapipeConfigPanelProps {updateDetectorConfig?: (updates: Partial<MediapipeDetectorConfig>) => void;replaceDetectorConfig?: (config: MediapipeDetectorConfig) => void;@@ -67,8 +25,6 @@ export const MediapipeConfigPanel: React.FC<MediapipeConfigPanelProps> = ({updateDetectorConfig: updateDetectorConfigProp,replaceDetectorConfig: replaceDetectorConfigProp,}) => {- const theme = useTheme();- const sliderSx = useSliderSx();const {detectorConfig,updateDetectorConfig: updateDetectorConfigHook,@@ -89,157 +45,116 @@ export const MediapipeConfigPanel: React.FC<MediapipeConfigPanelProps> = ({);return (- <Stack spacing={2}>- <Typography variant="subtitle2" sx={{color: theme.palette.text.secondary, fontWeight: 600}}>- MediaPipe Detector- </Typography>+ <div className="flex flex-col gap-2">+ <p className="text sm text-gray" style={{fontWeight: 600}}>MediaPipe Detector</p>{/* Preset selector */}- <Stack direction="row" spacing={1} alignItems="center">- <Typography variant="caption" sx={{color: theme.palette.text.secondary, minWidth: 48}}>- Preset- </Typography>- <Chip- label="Realtime"- size="small"- variant={currentPreset === "realtime" ? "filled" : "outlined"}- color={currentPreset === "realtime" ? "primary" : "default"}+ <div className="flex flex-row items-center gap-1">+ <p className="text sm text-gray" style={{minWidth: 48}}>Preset</p>+ <button+ className={`button sm ${currentPreset === "realtime" ? "primary" : "secondary"}`}onClick={() => handlePresetChange("realtime")}disabled={isLoading}- sx={{cursor: "pointer"}}- />- <Chip- label="Posthoc"- size="small"- variant={currentPreset === "posthoc" ? "filled" : "outlined"}- color={currentPreset === "posthoc" ? "primary" : "default"}+ >+ Realtime+ </button>+ <button+ className={`button sm ${currentPreset === "posthoc" ? "primary" : "secondary"}`}onClick={() => handlePresetChange("posthoc")}disabled={isLoading}- sx={{cursor: "pointer"}}- />+ >+ Posthoc+ </button>{currentPreset === "custom" && (- <Chip label="Custom" size="small" variant="outlined" color="warning" />+ <span className="tag text sm">Custom</span>)}- </Stack>+ </div>{/* Model complexity */}- <FormControl size="small" fullWidth>- <InputLabel id="model-complexity-label">Model Complexity</InputLabel>- <Select- labelId="model-complexity-label"+ <div className="flex flex-col gap-1">+ <p className="text sm text-gray">Model Complexity</p>+ <select+ className="input-field text md"value={detectorConfig.model_complexity}- label="Model Complexity"onChange={(e) =>updateDetectorConfig({- model_complexity: e.target.value as MediapipeModelComplexity,+ model_complexity: Number(e.target.value) as MediapipeModelComplexity,})}disabled={isLoading}- sx={{color: theme.palette.text.primary}}>- <MenuItem value={0}>{MODEL_COMPLEXITY_LABELS[0]}</MenuItem>- <MenuItem value={1}>{MODEL_COMPLEXITY_LABELS[1]}</MenuItem>- <MenuItem value={2}>{MODEL_COMPLEXITY_LABELS[2]}</MenuItem>- </Select>- </FormControl>+ <option value={0}>{MODEL_COMPLEXITY_LABELS[0]}</option>+ <option value={1}>{MODEL_COMPLEXITY_LABELS[1]}</option>+ <option value={2}>{MODEL_COMPLEXITY_LABELS[2]}</option>+ </select>+ </div>{/* Confidence sliders */}- <Box>- <Typography variant="caption" color="text.secondary">+ <div>+ <p className="text sm text-gray">Min Detection Confidence: {detectorConfig.min_detection_confidence.toFixed(2)}- </Typography>- <Slider+ </p>+ <input+ type="range"value={detectorConfig.min_detection_confidence}- onChange={(_ , value) =>- updateDetectorConfig({min_detection_confidence: value as number})+ onChange={(e) =>+ updateDetectorConfig({min_detection_confidence: parseFloat(e.target.value)})}- min={0} max={1} step={0.05} size="small" disabled={isLoading}- sx={sliderSx}+ min={0} max={1} step={0.05} disabled={isLoading}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}/>- </Box>+ </div>- <Box>- <Typography variant="caption" color="text.secondary">+ <div>+ <p className="text sm text-gray">Min Tracking Confidence: {detectorConfig.min_tracking_confidence.toFixed(2)}- </Typography>- <Slider+ </p>+ <input+ type="range"value={detectorConfig.min_tracking_confidence}- onChange={(_, value) =>- updateDetectorConfig({min_tracking_confidence: value as number})+ onChange={(e) =>+ updateDetectorConfig({min_tracking_confidence: parseFloat(e.target.value)})}- min={0} max={1} step={0.05} size="small" disabled={isLoading}- sx={sliderSx}+ min={0} max={1} step={0.05} disabled={isLoading}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}/>- </Box>+ </div>{/* Boolean toggles */}- <Stack spacing={0}>- <FormControlLabel- control={- <Switch- size="small"- checked={detectorConfig.smooth_landmarks}- onChange={(_, checked) =>- updateDetectorConfig({smooth_landmarks: checked})- }- disabled={isLoading}- />- }- label={<Typography variant="body2">Smooth Landmarks</Typography>}+ <div className="flex flex-col gap-1">+ <ToggleComponent+ text="Smooth Landmarks"+ isToggled={detectorConfig.smooth_landmarks}+ onToggle={(checked) => updateDetectorConfig({smooth_landmarks: checked})}+ disabled={isLoading}/>- <FormControlLabel- control={- <Switch- size="small"- checked={detectorConfig.enable_segmentation}- onChange={(_, checked) =>- updateDetectorConfig({enable_segmentation: checked})- }- disabled={isLoading}- />- }- label={<Typography variant="body2">Enable Segmentation</Typography>}+ <ToggleComponent+ text="Enable Segmentation"+ isToggled={detectorConfig.enable_segmentation}+ onToggle={(checked) => updateDetectorConfig({enable_segmentation: checked})}+ disabled={isLoading}/>- <FormControlLabel- control={- <Switch- size="small"- checked={detectorConfig.smooth_segmentation}- onChange={(_, checked) =>- updateDetectorConfig({smooth_segmentation: checked})- }- disabled={isLoading || !detectorConfig.enable_segmentation}- />- }- label={<Typography variant="body2">Smooth Segmentation</Typography>}+ <ToggleComponent+ text="Smooth Segmentation"+ isToggled={detectorConfig.smooth_segmentation}+ onToggle={(checked) => updateDetectorConfig({smooth_segmentation: checked})}+ disabled={isLoading || !detectorConfig.enable_segmentation}/>- <FormControlLabel- control={- <Switch- size="small"- checked={detectorConfig.refine_face_landmarks}- onChange={(_, checked) =>- updateDetectorConfig({refine_face_landmarks: checked})- }- disabled={isLoading}- />- }- label={<Typography variant="body2">Refine Face Landmarks</Typography>}+ <ToggleComponent+ text="Refine Face Landmarks"+ isToggled={detectorConfig.refine_face_landmarks}+ onToggle={(checked) => updateDetectorConfig({refine_face_landmarks: checked})}+ disabled={isLoading}/>- <FormControlLabel- control={- <Switch- size="small"- checked={detectorConfig.static_image_mode}- onChange={(_, checked) =>- updateDetectorConfig({static_image_mode: checked})- }- disabled={isLoading}- />- }- label={<Typography variant="body2">Static Image Mode</Typography>}+ <ToggleComponent+ text="Static Image Mode"+ isToggled={detectorConfig.static_image_mode}+ onToggle={(checked) => updateDetectorConfig({static_image_mode: checked})}+ disabled={isLoading}/>- </Stack>- </Stack>+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/mocap-control-panel/MocapPanel.tsx b/freemocap-ui/src/components/control-panels/mocap-control-panel/MocapPanel.tsxindex 2cf2442e..b8c14754 100644--- a/freemocap-ui/src/components/control-panels/mocap-control-panel/MocapPanel.tsx+++ b/freemocap-ui/src/components/control-panels/mocap-control-panel/MocapPanel.tsx@@ -1,28 +1,4 @@import React, {useCallback, useEffect, useMemo, useState} from "react";-import {- Accordion,- AccordionDetails,- AccordionSummary,- Alert,- Box,- Button,- Chip,- IconButton,- InputAdornment,- Stack,- TextField,- Tooltip,- Typography,- useTheme,-} from "@mui/material";-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";-import DirectionsRunIcon from "@mui/icons-material/DirectionsRun";-import PlayArrowIcon from "@mui/icons-material/PlayArrow";-import StopIcon from "@mui/icons-material/Stop";-import FolderOpenIcon from "@mui/icons-material/FolderOpen";-import LaunchIcon from "@mui/icons-material/Launch";-import ClearIcon from "@mui/icons-material/Clear";-import RefreshIcon from "@mui/icons-material/Refresh";import {useMocap} from "@/hooks/useMocap";import {useCalibration} from "@/hooks/useCalibration";import {useDirectoryWatcher} from "@/hooks/useDirectoryWatcher";@@ -30,16 +6,15 @@ import {useElectronIPC} from "@/services";import {CalibrationTomlPicker} from "@/components/common/CalibrationTomlPicker";import {RealtimePipelineConfigTree} from "@/components/control-panels/realtime-panel/RealtimePipelineConfigTree";import {useServer} from "@/services/server/ServerContextProvider";-import SquareFootIcon from "@mui/icons-material/SquareFoot";import {CollapsibleSidebarSection} from "@/components/common/CollapsibleSidebarSection";import {BlenderSection} from "@/components/control-panels/mocap-control-panel/BlenderSection";import {RecordingStatusPanel} from "@/components/common/RecordingStatusPanel";import {useRecordingStatus} from "@/hooks/useRecordingStatus";import {selectEffectiveRecordingPath} from "@/store/slices/active-recording/active-recording-slice";import {useAppSelector} from "@/store";+import IconButton from "@/components/ui-components/IconButton";export const MocapPanel: React.FC = () => {- const theme = useTheme();const {setOverlayVisibility} = useServer();const [localError, setLocalError] = useState<string | null>(null);const {api, isElectron} = useElectronIPC();@@ -49,7 +24,6 @@ export const MocapPanel: React.FC = () => {isLoading,isRecording,recordingProgress,- canStartRecording,canProcessMocapRecording,mocapRecordingPath,directoryInfo,@@ -88,11 +62,6 @@ export const MocapPanel: React.FC = () => {return idx > 0 ? trimmed.slice(0, idx) : null;}, [mocapRecordingPath]);- // Blender export is driven by the backend aggregator via config flags- // (state.blender.*), which mocap-thunks.ts folds into the process request.- // The standalone "Process Recording with Blender" button inside- // BlenderSection remains available for manual re-exports.-// Auto-poll directory statusconst {triggerRefresh} = useDirectoryWatcher(mocapRecordingPath,@@ -186,12 +155,6 @@ export const MocapPanel: React.FC = () => {return "auto" as const;}, [calibrationTomlPath, directoryInfo?.cameraMocapTomlPath, calibrationDirectoryInfo?.cameraCalibrationTomlPath, directoryInfo?.lastSuccessfulCalibrationTomlPath]);- const mocapStatus: "ok" | "none" | "bad" = useMemo(() => {- if (effectiveCalibrationTomlPath) return "ok";- if (!mocapRecordingPath || !directoryInfo) return "none";- return "bad";- }, [effectiveCalibrationTomlPath, mocapRecordingPath, directoryInfo]);-const displayError = error || localError || directoryInfo?.errorMessage;const {@@ -211,152 +174,91 @@ export const MocapPanel: React.FC = () => {? "Ready": "Idle";- const statusColor = isRecording- ? theme.palette.error.main- : isLoading- ? theme.palette.warning.main- : effectiveCalibrationTomlPath- ? theme.palette.success.main- : theme.palette.grey[600];-return (<CollapsibleSidebarSection- icon={<DirectionsRunIcon sx={{color: "inherit"}}/>}+ icon={<span className="icon processmocap-icon icon-size-20" />}title="Motion Capture"- summaryContent={<Chip- label={statusLabel}- size="small"- sx={{- ml: "auto",- height: 20,- fontSize: 11,- fontWeight: 600,- backgroundColor: statusColor,- color: theme.palette.getContrastText(statusColor),- }}- />}+ summaryContent={+ <span className="tag text sm">{statusLabel}</span>+ }defaultExpanded={false}>-- <Box sx={{p: 2}}>- <Stack spacing={2}>+ <div className="p-2">+ <div className="flex flex-col gap-2">{/* Process button at TOP per requirements */}- <Button- variant="contained"- color="secondary"+ <button+ className="button sm secondary w-full"onClick={dispatchProcessMocapRecording}disabled={!canProcessMocapRecording || isLoading}- fullWidth>Process Selected Recording- </Button>+ </button>{displayError && (- <Alert severity="error" onClose={handleClearError}>- {displayError}- </Alert>+ <div className="toast-notification error">+ <div className="flex flex-row items-center justify-content-space-between">+ <p className="text sm">{displayError}</p>+ <IconButton icon="clear-icon" iconSize="icon-size-12" onClick={handleClearError} title="Dismiss" />+ </div>+ </div>)}{/* Recording ID — prominent at top level */}{recordingId && (- <Box sx={{- p: 1,- borderRadius: 1,- bgcolor: theme.palette.action.hover,- }}>- <Stack direction="row" spacing={1} alignItems="center">- <Typography variant="caption" color="text.secondary">- Recording ID- </Typography>- </Stack>- <Typography variant="body2" sx={{fontFamily: "monospace", fontWeight: 600}}>+ <div className="p-1 br-1 bg-middark">+ <div className="flex flex-row gap-1 items-center">+ <p className="text sm text-gray">Recording ID</p>+ </div>+ <p className="text md text-white" style={{fontFamily: "monospace", fontWeight: 600}}>{recordingId}- </Typography>- </Box>+ </p>+ </div>)}- {/*/!* Recording Controls *!/*/}- {/* TODO - Wire up these recording buttons to the EXACT same workflow as the recording panel - current wiring has slop*/}- {/*<Stack direction="row" spacing={2}>*/}- {/* <Button*/}- {/* variant="contained"*/}- {/* color="primary"*/}- {/* startIcon={<PlayArrowIcon />}*/}- {/* onClick={dispatchStartMocapRecording}*/}- {/* // disabled={!canStartRecording || isLoading}*/}- {/* disabled={isLoading}*/}- {/* fullWidth*/}- {/* >*/}- {/* Start Mocap Recording*/}- {/* </Button>*/}- {/* {isRecording && (*/}- {/* <Button*/}- {/* variant="contained"*/}- {/* color="error"*/}- {/* startIcon={<StopIcon />}*/}- {/* onClick={dispatchStopMocapRecording}*/}- {/* disabled={isLoading}*/}- {/* fullWidth*/}- {/* >*/}- {/* Stop Recording*/}- {/* </Button>*/}- {/* )}*/}- {/*</Stack>*/}-{/* Recording Path Input */}- <TextField- label="Mocap Recording Path"- value={effectiveMocapPath || ''}- onChange={handlePathInputChange}- fullWidth- size="small"- helperText={isUsingManualPath ? "Using custom path" : "Using default recording directory"}- InputProps={{- endAdornment: (- <InputAdornment position="end">- {isUsingManualPath && (- <Tooltip title="Clear manual path (revert to default)">- <IconButton onClick={clearManualRecordingPath} edge="end" size="small">- <ClearIcon fontSize="small" />- </IconButton>- </Tooltip>- )}- <Tooltip title="Re-check folder">- <span>- <IconButton- onClick={() => {- triggerRefresh();- refreshRecordingStatus();- }}- edge="end"- size="small"- disabled={!mocapRecordingPath || isLoading}- >- <RefreshIcon fontSize="small" />- </IconButton>- </span>- </Tooltip>- <Tooltip title="Open folder in file explorer">- <span>- <IconButton- onClick={handleOpenFolder}- edge="end"- size="small"- disabled={!isElectron || !effectiveMocapPath}- >- <LaunchIcon fontSize="small" />- </IconButton>- </span>- </Tooltip>- <Tooltip title="Select directory">- <IconButton onClick={handleSelectDirectory} edge="end" disabled={!isElectron}>- <FolderOpenIcon />- </IconButton>- </Tooltip>- </InputAdornment>- ),- }}- />+ <div className="flex flex-col gap-1">+ <div className="input-with-string pos-rel">+ <input+ className="input-field text md"+ value={effectiveMocapPath || ''}+ onChange={handlePathInputChange}+ placeholder="Mocap Recording Path"+ />+ <div className="flex flex-row pos-abs right-4 top-50">+ {isUsingManualPath && (+ <IconButton+ icon="clear-icon"+ onClick={clearManualRecordingPath}+ title="Clear manual path (revert to default)"+ />+ )}+ <IconButton+ icon="save-icon"+ onClick={() => {+ triggerRefresh();+ refreshRecordingStatus();+ }}+ disabled={!mocapRecordingPath || isLoading}+ title="Re-check folder"+ />+ <IconButton+ icon="streaming-icon"+ onClick={handleOpenFolder}+ disabled={!isElectron || !effectiveMocapPath}+ title="Open folder in file explorer"+ />+ <IconButton+ icon="download-icon"+ onClick={handleSelectDirectory}+ disabled={!isElectron}+ title="Select directory"+ />+ </div>+ </div>+ <p className="text sm text-gray">+ {isUsingManualPath ? "Using custom path" : "Using default recording directory"}+ </p>+ </div>{/* Recording folder status (collapsed by default) */}{recordingId && (@@ -369,7 +271,6 @@ export const MocapPanel: React.FC = () => {refreshRecordingStatus();}}activeCalibrationTomlPath={effectiveCalibrationTomlPath}- // folderExists={directoryExists}recordingFolderPath={mocapRecordingPath}/>)}@@ -385,32 +286,20 @@ export const MocapPanel: React.FC = () => {{/* Recording Progress */}{isRecording && (- <Box sx={{width: "100%"}}>- <Typography variant="caption" color="text.secondary" gutterBottom>+ <div className="w-full">+ <p className="text sm text-gray">Recording in Progress: {recordingProgress.toFixed(0)}%- </Typography>- <Box- sx={{- width: "100%",- height: 8,- bgcolor: "grey.300",- borderRadius: 1,- overflow: "hidden",- }}- >- <Box- sx={{- width: recordingProgress + "%",- height: "100%",- bgcolor: theme.palette.primary.main,- transition: "width 0.3s",- }}+ </p>+ <div className="update-progress-track">+ <div+ className="update-progress-fill"+ style={{width: `${recordingProgress}%`, transition: 'width 0.3s'}}/>- </Box>- </Box>+ </div>+ </div>)}- {/* Hierarchical pipeline config (replaces flat MediapipeConfigPanel + SkeletonFilterConfigPanel) */}+ {/* Hierarchical pipeline config */}<RealtimePipelineConfigTreecontext="posthoc"charucoEnabled={charucoEnabled}@@ -430,8 +319,8 @@ export const MocapPanel: React.FC = () => {disabled={isLoading}hasBlendFile={recordingStatus?.has_blend_file}/>- </Stack>- </Box>+ </div>+ </div></CollapsibleSidebarSection>);};diff --git a/freemocap-ui/src/components/control-panels/mocap-control-panel/MocapTaskTreeItem.tsx b/freemocap-ui/src/components/control-panels/mocap-control-panel/MocapTaskTreeItem.tsxindex fbf7d7e9..8883f03e 100644--- a/freemocap-ui/src/components/control-panels/mocap-control-panel/MocapTaskTreeItem.tsx+++ b/freemocap-ui/src/components/control-panels/mocap-control-panel/MocapTaskTreeItem.tsx@@ -1,29 +1,4 @@import React, {useCallback, useEffect, useMemo, useState} from "react";-import {- Alert,- Box,- Button,- Chip,- CircularProgress,- IconButton,- InputAdornment,- Stack,- TextField,- Tooltip,- Typography,- useTheme,-} from "@mui/material";-import DirectionsRunIcon from "@mui/icons-material/DirectionsRun";-import PlayArrowIcon from "@mui/icons-material/PlayArrow";-import StopIcon from "@mui/icons-material/Stop";-import FolderOpenIcon from "@mui/icons-material/FolderOpen";-import ClearIcon from "@mui/icons-material/Clear";-import FiberManualRecordIcon from "@mui/icons-material/FiberManualRecord";-import CheckCircleIcon from "@mui/icons-material/CheckCircle";-import WarningAmberIcon from "@mui/icons-material/WarningAmber";-import CancelIcon from "@mui/icons-material/Cancel";-import RefreshIcon from "@mui/icons-material/Refresh";-import InsertDriveFileIcon from "@mui/icons-material/InsertDriveFile";import {CollapsibleSidebarSection} from "@/components/common/CollapsibleSidebarSection";import {DirectoryStatusPanel} from "@/components/common/DirectoryStatusPanel";import {useMocap} from "@/hooks/useMocap";@@ -31,9 +6,9 @@ import {useElectronIPC} from "@/services";import {MediapipeConfigPanel} from "@/components/control-panels/mocap-control-panel/MediapipeConfigPanel";import {SkeletonFilterConfigPanel} from "@/components/control-panels/mocap-control-panel/SkeletonFilterConfigPanel";import {useCalibration} from "@/hooks/useCalibration";+import IconButton from "@/components/ui-components/IconButton";export const MocapTaskTreeItem: React.FC = () => {- const theme = useTheme();const [localError, setLocalError] = useState<string | null>(null);const [isRefreshing, setIsRefreshing] = useState(false);const {api, isElectron} = useElectronIPC();@@ -60,10 +35,8 @@ export const MocapTaskTreeItem: React.FC = () => {clearError,} = useMocap();-// Get the most recent calibration recording path from calibration stateconst {- calibrationRecordingPath: mostRecentCalibrationPath,directoryInfo: calibrationDirectoryInfo,} = useCalibration();@@ -152,7 +125,7 @@ export const MocapTaskTreeItem: React.FC = () => {return "Using default recording directory";}, [isUsingManualPath]);- // ─── Effective calibration path (considers all sources) ────────────────────+ // Effective calibration path (considers all sources)const effectiveCalibrationTomlPath = useMemo(() => {if (calibrationTomlPath) return calibrationTomlPath;if (directoryInfo?.cameraMocapTomlPath) return directoryInfo.cameraMocapTomlPath;@@ -160,7 +133,7 @@ export const MocapTaskTreeItem: React.FC = () => {return null;}, [calibrationTomlPath, directoryInfo?.cameraMocapTomlPath, calibrationDirectoryInfo?.cameraCalibrationTomlPath]);- // ─── Mocap status derivation ──────────────────────────────────────────────+ // Mocap status derivationconst mocapStatus: "ok" | "none" | "bad" = useMemo(() => {if (effectiveCalibrationTomlPath) return "ok";if (!mocapRecordingPath || !directoryInfo) return "none";@@ -170,55 +143,35 @@ export const MocapTaskTreeItem: React.FC = () => {const mocapStatusIcon = useMemo(() => {if (mocapStatus === "ok") {return (- <Tooltip title="Calibration file found — ready to process">- <CheckCircleIcon fontSize="small" sx={{color: "#00e5ff"}} />- </Tooltip>+ <span title="Calibration file found — ready to process">+ <span className="icon upToDate-icon icon-size-20" />+ </span>);}if (mocapStatus === "bad") {return (- <Tooltip title="No calibration file found at this path">- <CancelIcon fontSize="small" sx={{color: theme.palette.error.main}} />- </Tooltip>+ <span title="No calibration file found at this path">+ <span className="icon close-icon icon-size-20" />+ </span>);}return (- <Tooltip title="No mocap directory selected">- <WarningAmberIcon fontSize="small" sx={{color: theme.palette.warning.main}} />- </Tooltip>+ <span title="No mocap directory selected">+ <span className="icon warning-icon icon-size-20" />+ </span>);- }, [mocapStatus, theme]);+ }, [mocapStatus]);const refreshButton = (- <Tooltip title={mocapRecordingPath ? "Re-check mocap folder" : "No path set"}>- <span>- <IconButton- size="small"- onClick={(e: React.MouseEvent) => {- e.stopPropagation();- handleRefresh();- }}- disabled={!mocapRecordingPath || isLoading || isRefreshing}- sx={{- p: 0.5,- color: "inherit",- border: "1.5px solid rgba(255,255,255,0.25)",- borderRadius: 1,- "&:hover": {backgroundColor: "rgba(255,255,255,0.1)"},- "&.Mui-disabled": {- color: "rgba(255,255,255,0.3)",- borderColor: "rgba(255,255,255,0.1)",- },- }}- >- {isRefreshing ? (- <CircularProgress size={16} color="inherit" />- ) : (- <RefreshIcon fontSize="small" />- )}- </IconButton>- </span>- </Tooltip>+ <IconButton+ icon={isRefreshing ? "loader-icon" : "rotate-icon"}+ onClick={(e) => {+ e.stopPropagation();+ handleRefresh();+ }}+ disabled={!mocapRecordingPath || isLoading || isRefreshing}+ title={mocapRecordingPath ? "Re-check mocap folder" : "No path set"}+ />);// Derive status for collapsed summary@@ -230,159 +183,105 @@ export const MocapTaskTreeItem: React.FC = () => {? "Ready": "Idle";- const statusColor = isRecording- ? theme.palette.error.main- : isLoading- ? theme.palette.warning.main- : effectiveCalibrationTomlPath- ? theme.palette.success.main- : theme.palette.grey[600];-// Primary controls: status icon + refresh + record start/stopconst headerControls = (- <Box sx={{display: "flex", alignItems: "center", gap: 0.75}}>+ <div className="flex flex-row items-center gap-1">{mocapStatusIcon}{refreshButton}{isRecording ? (- <Tooltip title="Stop mocap recording">- <IconButton- size="small"- onClick={(e: React.MouseEvent) => {- e.stopPropagation();- dispatchStopMocapRecording();- }}- disabled={isLoading}- sx={{- color: theme.palette.error.light,- border: `1.5px solid ${theme.palette.error.light}`,- borderRadius: 1,- p: 0.5,- "&:hover": {backgroundColor: "rgba(244,67,54,0.15)"},- }}- >- <StopIcon fontSize="small" />- </IconButton>- </Tooltip>- ) : (- <Tooltip title={canStartRecording ? "Start mocap recording" : "Cannot record yet"}>- <span><IconButton- size="small"- onClick={(e: React.MouseEvent) => {+ icon="stopstreaming-icon"+ className="icon-size-25 btn-danger"+ onClick={(e) => {+ e.stopPropagation();+ dispatchStopMocapRecording();+ }}+ disabled={isLoading}+ title="Stop mocap recording"+ />+ ) : (+ <IconButton+ icon="record-icon"+ onClick={(e) => {e.stopPropagation();dispatchStartMocapRecording();}}disabled={!canStartRecording || isLoading}- sx={{- color: "inherit",- border: "1.5px solid rgba(255,255,255,0.25)",- borderRadius: 1,- p: 0.5,- "&:hover": {backgroundColor: "rgba(255,255,255,0.1)"},- "&.Mui-disabled": {- color: "rgba(255,255,255,0.3)",- borderColor: "rgba(255,255,255,0.1)",- },- }}- >- <FiberManualRecordIcon fontSize="small" />- </IconButton>- </span>- </Tooltip>- )}- </Box>+ title={canStartRecording ? "Start mocap recording" : "Cannot record yet"}+ />+ )}+ </div>);return (<CollapsibleSidebarSection- icon={<DirectionsRunIcon sx={{color: "inherit"}} />}+ icon={<span className="icon processmocap-icon icon-size-20" />}title="Motion Capture"summaryContent={- <Chip- label={statusLabel}- size="small"- sx={{- height: 20,- fontSize: 11,- fontWeight: 600,- backgroundColor: statusColor,- color: theme.palette.getContrastText(statusColor),- }}- />+ <span className="tag text sm">{statusLabel}</span>}primaryControl={headerControls}defaultExpanded={false}>- <Box sx={{p: 2, bgcolor: "background.paper"}}>- <Stack spacing={2}>+ <div className="p-2">+ <div className="flex flex-col gap-2">{/* Error Display */}{displayError && (- <Alert severity="error" onClose={handleClearError}>- {displayError}- </Alert>+ <div className="toast-notification error">+ <div className="flex flex-row items-center justify-content-space-between">+ <p className="text sm">{displayError}</p>+ <IconButton icon="clear-icon" iconSize="icon-size-12" onClick={handleClearError} title="Dismiss" />+ </div>+ </div>)}{/* Recording Controls */}- <Stack direction="row" spacing={2}>- <Button- variant="contained"- color="primary"- startIcon={<PlayArrowIcon />}+ <div className="flex flex-row gap-2">+ <button+ className="button sm primary flex-1"onClick={dispatchStartMocapRecording}disabled={!canStartRecording || isLoading}- fullWidth>- Start Mocap Recording- </Button>+ <span className="icon play-icon icon-size-20" /> Start Mocap Recording+ </button>{isRecording && (- <Button- variant="contained"- color="error"- startIcon={<StopIcon />}+ <button+ className="button sm btn-danger flex-1"onClick={dispatchStopMocapRecording}disabled={isLoading}- fullWidth>- Stop Recording- </Button>+ <span className="icon stopstreaming-icon icon-size-20" /> Stop Recording+ </button>)}- </Stack>+ </div>{/* Recording Path Input */}- <TextField- label="Mocap Recording Path"- value={mocapRecordingPath}- onChange={handlePathInputChange}- fullWidth- size="small"- helperText={pathHelperText}- InputProps={{- endAdornment: (- <InputAdornment position="end">- {isUsingManualPath && (- <Tooltip title="Clear manual path (revert to default)">- <IconButton- onClick={handleClearManualPath}- edge="end"- size="small"- >- <ClearIcon fontSize="small" />- </IconButton>- </Tooltip>- )}- <Tooltip title="Select directory">- <IconButton- onClick={handleSelectDirectory}- edge="end"- disabled={!isElectron}- >- <FolderOpenIcon />- </IconButton>- </Tooltip>- </InputAdornment>- ),- }}- />+ <div className="flex flex-col gap-1">+ <div className="input-with-string pos-rel">+ <input+ className="input-field text md"+ value={mocapRecordingPath ?? ''}+ onChange={handlePathInputChange}+ placeholder="Mocap Recording Path"+ />+ <div className="flex flex-row pos-abs right-4 top-50">+ {isUsingManualPath && (+ <IconButton+ icon="clear-icon"+ onClick={handleClearManualPath}+ title="Clear manual path (revert to default)"+ />+ )}+ <IconButton+ icon="load-icon"+ onClick={handleSelectDirectory}+ disabled={!isElectron}+ title="Select directory"+ />+ </div>+ </div>+ <p className="text sm text-gray">{pathHelperText}</p>+ </div>{/* Directory Status Info */}<DirectoryStatusPanel@@ -399,87 +298,60 @@ export const MocapTaskTreeItem: React.FC = () => {/>{/* Calibration TOML Override */}- <Box sx={{p: 1.5, borderRadius: 1, border: `1px solid ${theme.palette.divider}`}}>- <Stack spacing={1}>- <Box sx={{display: "flex", alignItems: "center", gap: 1}}>- <InsertDriveFileIcon fontSize="small" color="info" />- <Typography variant="caption" fontWeight="medium">- Calibration TOML- </Typography>- </Box>- <Typography variant="caption" color="text.secondary">+ <div className="p-2 br-1 border-1 border-mid-black">+ <div className="flex flex-col gap-1">+ <div className="flex flex-row items-center gap-1">+ <span className="icon file-icon icon-size-20" />+ <p className="text sm text-gray" style={{fontWeight: 500}}>Calibration TOML</p>+ </div>+ <p className="text sm text-gray">{calibrationTomlPath? "Using specified calibration file": effectiveCalibrationTomlPath? "Using auto-detected calibration": "No calibration file found"}- </Typography>+ </p>{effectiveCalibrationTomlPath && (- <Typography- variant="caption"- sx={{- fontFamily: "monospace",- display: "block",- color: "success.main",- wordBreak: "break-all",- }}- >+ <p className="text sm block" style={{+ fontFamily: "monospace",+ color: 'var(--color-success)',+ wordBreak: "break-all",+ }}>{effectiveCalibrationTomlPath}- </Typography>+ </p>)}- <Stack direction="row" spacing={1}>- <Button- variant={calibrationTomlPath ? "outlined" : "contained"}- size="small"+ <div className="flex flex-row gap-1">+ <button+ className={`button sm flex-1 ${calibrationTomlPath ? "secondary" : "primary"}`}onClick={clearCalibrationTomlPath}disabled={!calibrationTomlPath}- sx={{flex: 1}}>Use Most Recent- </Button>- <Button- variant={calibrationTomlPath ? "contained" : "outlined"}- size="small"- startIcon={<InsertDriveFileIcon />}+ </button>+ <button+ className={`button sm flex-1 ${calibrationTomlPath ? "primary" : "secondary"}`}onClick={handleSelectCalibrationToml}disabled={!isElectron}- sx={{flex: 1}}>- Select TOML- </Button>- </Stack>- </Stack>- </Box>+ <span className="icon file-icon icon-size-20" /> Select TOML+ </button>+ </div>+ </div>+ </div>{/* Recording Progress */}{isRecording && (- <Box sx={{width: "100%"}}>- <Typography- variant="caption"- color="text.secondary"- gutterBottom- >+ <div className="w-full">+ <p className="text sm text-gray">Recording in Progress: {recordingProgress.toFixed(0)}%- </Typography>- <Box- sx={{- width: "100%",- height: 8,- bgcolor: "grey.300",- borderRadius: 1,- overflow: "hidden",- }}- >- <Box- sx={{- width: `${recordingProgress}%`,- height: "100%",- bgcolor: theme.palette.primary.main,- transition: "width 0.3s",- }}+ </p>+ <div className="update-progress-track">+ <div+ className="update-progress-fill"+ style={{width: `${recordingProgress}%`, transition: 'width 0.3s'}}/>- </Box>- </Box>+ </div>+ </div>)}{/* MediaPipe Detector Config */}@@ -489,17 +361,15 @@ export const MocapTaskTreeItem: React.FC = () => {<SkeletonFilterConfigPanel />{/* Process Recording Button */}- <Button- variant="contained"- color="secondary"+ <button+ className="button sm secondary w-full"onClick={dispatchProcessMocapRecording}disabled={!canProcessMocapRecording || isLoading}- fullWidth>Process Selected Recording- </Button>- </Stack>- </Box>+ </button>+ </div>+ </div></CollapsibleSidebarSection>);};diff --git a/freemocap-ui/src/components/control-panels/mocap-control-panel/SkeletonFilterConfigPanel.tsx b/freemocap-ui/src/components/control-panels/mocap-control-panel/SkeletonFilterConfigPanel.tsxindex f2dec5a6..dcaa99c5 100644--- a/freemocap-ui/src/components/control-panels/mocap-control-panel/SkeletonFilterConfigPanel.tsx+++ b/freemocap-ui/src/components/control-panels/mocap-control-panel/SkeletonFilterConfigPanel.tsx@@ -1,24 +1,10 @@import React, {useCallback} from "react";-import {Box, Button, Divider, Slider, Stack, TextField, Tooltip, Typography, useTheme,} from "@mui/material";import {useMocap} from "@/hooks/useMocap";import {DEFAULT_REALTIME_FILTER_CONFIG, RealtimeFilterConfig} from "@/store/slices/mocap";/** Warm amber for section headings — visible on dark backgrounds. */const SECTION_COLOR = "#ffb74d";-/** Shared slider sx that matches the camera config panel style. */-const useSliderSx = () => {- const theme = useTheme();- return {- color: theme.palette.primary.light,- "& .MuiSlider-thumb": {- "&:hover, &.Mui-focusVisible": {- boxShadow: `0px 0px 0px 8px ${theme.palette.primary.light}33`,- },- },- } as const;-};-interface SkeletonFilterConfigPanelProps {updateSkeletonFilterConfig?: (updates: Partial<RealtimeFilterConfig>) => void;replaceSkeletonFilterConfig?: (config: RealtimeFilterConfig) => void;@@ -28,8 +14,6 @@ export const SkeletonFilterConfigPanel: React.FC<SkeletonFilterConfigPanelProps>updateSkeletonFilterConfig: updateSkeletonFilterConfigProp,replaceSkeletonFilterConfig: replaceSkeletonFilterConfigProp,}) => {- const theme = useTheme();- const sliderSx = useSliderSx();const {skeletonFilterConfig,updateSkeletonFilterConfig: updateSkeletonFilterConfigHook,@@ -44,151 +28,142 @@ export const SkeletonFilterConfigPanel: React.FC<SkeletonFilterConfigPanelProps>}, [replaceSkeletonFilterConfig]);return (- <Stack spacing={1}>- <Stack direction="row" justifyContent="space-between" alignItems="center">- <Typography variant="subtitle2" sx={{color: theme.palette.text.secondary, fontWeight: 600}}>- Skeleton Filter- </Typography>- <Button- size="small"- variant="text"+ <div className="flex flex-col gap-1">+ <div className="flex flex-row justify-content-space-between items-center">+ <p className="text sm text-gray" style={{fontWeight: 600}}>Skeleton Filter</p>+ <button+ className="button sm secondary"onClick={handleResetDefaults}disabled={isLoading}- sx={{fontSize: 11, textTransform: "none"}}+ style={{fontSize: 11}}>Reset Defaults- </Button>- </Stack>+ </button>+ </div>{/* === Point Gate === */}- <Typography variant="caption" sx={{color: SECTION_COLOR, fontWeight: 600}}>- Point Gate- </Typography>-- <Tooltip title="Reject triangulated points whose mean reprojection error exceeds this. Higher = keep more (noisier) points." placement="right" arrow>- <Box>- <Typography variant="caption" color="text.secondary">- Max Reproj Error: {skeletonFilterConfig.max_reprojection_error_px.toFixed(0)} px- </Typography>- <Slider- value={skeletonFilterConfig.max_reprojection_error_px}- onChange={(_, v) => updateSkeletonFilterConfig({max_reprojection_error_px: v as number})}- min={5} max={200} step={1} size="small" disabled={isLoading}- sx={sliderSx}- />- </Box>- </Tooltip>-- <Tooltip title="Reject points moving faster than this between frames. Catches teleportation spikes. Human limbs rarely exceed ~15 m/s." placement="right" arrow>- <Box>- <Typography variant="caption" color="text.secondary">- Max Velocity: {skeletonFilterConfig.max_velocity_m_per_s.toFixed(0)} m/s- </Typography>- <Slider- value={skeletonFilterConfig.max_velocity_m_per_s}- onChange={(_, v) => updateSkeletonFilterConfig({max_velocity_m_per_s: v as number})}- min={5} max={200} step={1} size="small" disabled={isLoading}- sx={sliderSx}- />- </Box>- </Tooltip>-- <Tooltip title="After this many consecutive velocity rejections, accept unconditionally to prevent permanent lockout." placement="right" arrow>- <Box>- <Typography variant="caption" color="text.secondary">- Max Rejected Streak: {skeletonFilterConfig.max_rejected_streak}- </Typography>- <Slider- value={skeletonFilterConfig.max_rejected_streak}- onChange={(_, v) => updateSkeletonFilterConfig({max_rejected_streak: v as number})}- min={1} max={30} step={1} size="small" disabled={isLoading}- sx={sliderSx}- />- </Box>- </Tooltip>-- <Divider />+ <p className="text sm" style={{color: SECTION_COLOR, fontWeight: 600}}>Point Gate</p>++ <div title="Reject triangulated points whose mean reprojection error exceeds this. Higher = keep more (noisier) points.">+ <p className="text sm text-gray">+ Max Reproj Error: {skeletonFilterConfig.max_reprojection_error_px.toFixed(0)} px+ </p>+ <input+ type="range"+ value={skeletonFilterConfig.max_reprojection_error_px}+ onChange={(e) => updateSkeletonFilterConfig({max_reprojection_error_px: parseFloat(e.target.value)})}+ min={5} max={200} step={1} disabled={isLoading}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}+ />+ </div>++ <div title="Reject points moving faster than this between frames. Catches teleportation spikes. Human limbs rarely exceed ~15 m/s.">+ <p className="text sm text-gray">+ Max Velocity: {skeletonFilterConfig.max_velocity_m_per_s.toFixed(0)} m/s+ </p>+ <input+ type="range"+ value={skeletonFilterConfig.max_velocity_m_per_s}+ onChange={(e) => updateSkeletonFilterConfig({max_velocity_m_per_s: parseFloat(e.target.value)})}+ min={5} max={200} step={1} disabled={isLoading}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}+ />+ </div>++ <div title="After this many consecutive velocity rejections, accept unconditionally to prevent permanent lockout.">+ <p className="text sm text-gray">+ Max Rejected Streak: {skeletonFilterConfig.max_rejected_streak}+ </p>+ <input+ type="range"+ value={skeletonFilterConfig.max_rejected_streak}+ onChange={(e) => updateSkeletonFilterConfig({max_rejected_streak: parseInt(e.target.value)})}+ min={1} max={30} step={1} disabled={isLoading}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}+ />+ </div>++ <div style={{height: 1, backgroundColor: 'var(--color-border-secondary)', margin: '4px 0'}} />{/* === One Euro Filter === */}- <Typography variant="caption" sx={{color: SECTION_COLOR, fontWeight: 600}}>- One Euro Filter- </Typography>-- <Tooltip title="Minimum cutoff frequency (Hz). Lower = heavier smoothing (less jitter, more lag). Higher = more responsive." placement="right" arrow>- <Box>- <Typography variant="caption" color="text.secondary">- Min Cutoff: {skeletonFilterConfig.min_cutoff.toFixed(4)}- </Typography>- <Slider- value={skeletonFilterConfig.min_cutoff}- onChange={(_, v) => updateSkeletonFilterConfig({min_cutoff: v as number})}- min={0.0001} max={0.1} step={0.0005} size="small" disabled={isLoading}- sx={sliderSx}- />- </Box>- </Tooltip>-- <Tooltip title="Speed coefficient. Higher = less lag during fast motion but more jitter. Zero = constant smoothing regardless of speed." placement="right" arrow>- <Box>- <Typography variant="caption" color="text.secondary">- Beta: {skeletonFilterConfig.beta.toFixed(2)}- </Typography>- <Slider- value={skeletonFilterConfig.beta}- onChange={(_, v) => updateSkeletonFilterConfig({beta: v as number})}- min={0} max={5} step={0.05} size="small" disabled={isLoading}- sx={sliderSx}- />- </Box>- </Tooltip>-- <Tooltip title="Cutoff frequency for the speed estimator. Controls how quickly the filter reacts to speed changes. Usually fine at 1.0." placement="right" arrow>- <Box>- <Typography variant="caption" color="text.secondary">- D Cutoff: {skeletonFilterConfig.d_cutoff.toFixed(2)}- </Typography>- <Slider- value={skeletonFilterConfig.d_cutoff}- onChange={(_, v) => updateSkeletonFilterConfig({d_cutoff: v as number})}- min={0.1} max={5} step={0.1} size="small" disabled={isLoading}- sx={sliderSx}- />- </Box>- </Tooltip>-- <Divider />+ <p className="text sm" style={{color: SECTION_COLOR, fontWeight: 600}}>One Euro Filter</p>++ <div title="Minimum cutoff frequency (Hz). Lower = heavier smoothing (less jitter, more lag). Higher = more responsive.">+ <p className="text sm text-gray">+ Min Cutoff: {skeletonFilterConfig.min_cutoff.toFixed(4)}+ </p>+ <input+ type="range"+ value={skeletonFilterConfig.min_cutoff}+ onChange={(e) => updateSkeletonFilterConfig({min_cutoff: parseFloat(e.target.value)})}+ min={0.0001} max={0.1} step={0.0005} disabled={isLoading}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}+ />+ </div>++ <div title="Speed coefficient. Higher = less lag during fast motion but more jitter. Zero = constant smoothing regardless of speed.">+ <p className="text sm text-gray">+ Beta: {skeletonFilterConfig.beta.toFixed(2)}+ </p>+ <input+ type="range"+ value={skeletonFilterConfig.beta}+ onChange={(e) => updateSkeletonFilterConfig({beta: parseFloat(e.target.value)})}+ min={0} max={5} step={0.05} disabled={isLoading}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}+ />+ </div>++ <div title="Cutoff frequency for the speed estimator. Controls how quickly the filter reacts to speed changes. Usually fine at 1.0.">+ <p className="text sm text-gray">+ D Cutoff: {skeletonFilterConfig.d_cutoff.toFixed(2)}+ </p>+ <input+ type="range"+ value={skeletonFilterConfig.d_cutoff}+ onChange={(e) => updateSkeletonFilterConfig({d_cutoff: parseFloat(e.target.value)})}+ min={0.1} max={5} step={0.1} disabled={isLoading}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}+ />+ </div>++ <div style={{height: 1, backgroundColor: 'var(--color-border-secondary)', margin: '4px 0'}} />{/* === FABRIK === */}- <Typography variant="caption" sx={{color: SECTION_COLOR, fontWeight: 600}}>- FABRIK- </Typography>-- <Tooltip title="Max solver iterations per frame for bone length constraint enforcement. 10–30 is usually plenty." placement="right" arrow>- <Box>- <Typography variant="caption" color="text.secondary">- Max Iterations: {skeletonFilterConfig.fabrik_max_iterations}- </Typography>- <Slider- value={skeletonFilterConfig.fabrik_max_iterations}- onChange={(_, v) => updateSkeletonFilterConfig({fabrik_max_iterations: v as number})}- min={1} max={100} step={1} size="small" disabled={isLoading}- sx={sliderSx}- />- </Box>- </Tooltip>-- <Divider />+ <p className="text sm" style={{color: SECTION_COLOR, fontWeight: 600}}>FABRIK</p>++ <div title="Max solver iterations per frame for bone length constraint enforcement. 10–30 is usually plenty.">+ <p className="text sm text-gray">+ Max Iterations: {skeletonFilterConfig.fabrik_max_iterations}+ </p>+ <input+ type="range"+ value={skeletonFilterConfig.fabrik_max_iterations}+ onChange={(e) => updateSkeletonFilterConfig({fabrik_max_iterations: parseInt(e.target.value)})}+ min={1} max={100} step={1} disabled={isLoading}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}+ />+ </div>- {/* === Body Model === */}- <Typography variant="caption" sx={{color: SECTION_COLOR, fontWeight: 600}}>- Body Model- </Typography>+ <div style={{height: 1, backgroundColor: 'var(--color-border-secondary)', margin: '4px 0'}} />- <Tooltip title="Subject's approximate height. Scales the anthropometric bone length prior. Doesn't need to be exact." placement="right" arrow>- <TextField- label="Height (m)"+ {/* === Body Model === */}+ <p className="text sm" style={{color: SECTION_COLOR, fontWeight: 600}}>Body Model</p>++ <div+ className="input-with-string"+ title="Subject's approximate height. Scales the anthropometric bone length prior. Doesn't need to be exact."+ >+ <input+ className="input-field text md"type="number"- size="small"value={skeletonFilterConfig.height_meters}onChange={(e) => {const val = parseFloat(e.target.value);@@ -196,25 +171,25 @@ export const SkeletonFilterConfigPanel: React.FC<SkeletonFilterConfigPanelProps>updateSkeletonFilterConfig({height_meters: val});}}}- inputProps={{step: 0.01, min: 0.5, max: 3.0}}+ step={0.01} min={0.5} max={3.0}disabled={isLoading}- fullWidth+ placeholder="Height (m)"+ />+ </div>++ <div title="Expected measurement noise (meters). Higher = trust raw positions less, rely more on prior estimates.">+ <p className="text sm text-gray">+ Noise Sigma: {skeletonFilterConfig.noise_sigma.toFixed(4)} m+ </p>+ <input+ type="range"+ value={skeletonFilterConfig.noise_sigma}+ onChange={(e) => updateSkeletonFilterConfig({noise_sigma: parseFloat(e.target.value)})}+ min={0.001} max={0.05} step={0.001} disabled={isLoading}+ className="w-full"+ style={{accentColor: 'var(--color-info)'}}/>- </Tooltip>-- <Tooltip title="Expected measurement noise (meters). Higher = trust raw positions less, rely more on prior estimates." placement="right" arrow>- <Box>- <Typography variant="caption" color="text.secondary">- Noise Sigma: {skeletonFilterConfig.noise_sigma.toFixed(4)} m- </Typography>- <Slider- value={skeletonFilterConfig.noise_sigma}- onChange={(_, v) => updateSkeletonFilterConfig({noise_sigma: v as number})}- min={0.001} max={0.05} step={0.001} size="small" disabled={isLoading}- sx={sliderSx}- />- </Box>- </Tooltip>- </Stack>+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConfigTree.tsx b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConfigTree.tsxindex 264eda6d..0cdfbefa 100644--- a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConfigTree.tsx+++ b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConfigTree.tsx@@ -1,15 +1,9 @@-import React, {useCallback, useState} from "react";-import {Box, Typography, useTheme} from "@mui/material";-import {SimpleTreeView} from "@mui/x-tree-view/SimpleTreeView";-import ExpandMore from "@mui/icons-material/ExpandMore";-import ChevronRight from "@mui/icons-material/ChevronRight";-+import React, {useCallback} from "react";import {RealtimePipelineStageTreeItem} from "./RealtimePipelineStageTreeItem";import {MediapipeConfigPanel} from "@/components/control-panels/mocap-control-panel/MediapipeConfigPanel";import {SkeletonFilterConfigPanel} from "@/components/control-panels/mocap-control-panel/SkeletonFilterConfigPanel";-import {useAppDispatch, useAppSelector} from "@/store/hooks";-import {applyRealtimePipeline, selectIsPipelineConnected, selectPipelineConfig} from "@/store/slices/realtime";import {useMocap} from "@/hooks/useMocap";+import {useRealtimePipelineSync} from "@/hooks/useRealtimePipelineSync";import {MediapipeDetectorConfig, RealtimeFilterConfig} from "@/store/slices/mocap";export type PipelineContext = "realtime" | "posthoc";@@ -31,35 +25,25 @@ interface PipelineConfigTreeProps {}export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({- context,- charucoEnabled,- onCharucoToggle,- skeletonEnabled,- onSkeletonToggle,- triangulateEnabled,- onTriangulateToggle,- filterEnabled,- onFilterToggle,- rigidBodyEnabled,- onRigidBodyToggle,- }) => {- const theme = useTheme();- const dispatch = useAppDispatch();- const isConnected = useAppSelector(selectIsPipelineConnected);- const pipelineConfig = useAppSelector(selectPipelineConfig);+ context,+ charucoEnabled,+ onCharucoToggle,+ skeletonEnabled,+ onSkeletonToggle,+ triangulateEnabled,+ onTriangulateToggle,+ filterEnabled,+ onFilterToggle,+ rigidBodyEnabled,+ onRigidBodyToggle,+}) => {const {updateDetectorConfigLocalOnly,replaceDetectorConfigLocalOnly,updateSkeletonFilterConfigLocalOnly,replaceSkeletonFilterConfigLocalOnly,} = useMocap();- const [expandedItems, setExpandedItems] = useState<string[]>([]);-- const triggerRealtimeApply = useCallback(() => {- if (isConnected) {- dispatch(applyRealtimePipeline(pipelineConfig));- }- }, [dispatch, isConnected, pipelineConfig]);+ const {triggerRealtimeApply} = useRealtimePipelineSync();const handleUpdateDetectorConfig = useCallback((updates: Partial<MediapipeDetectorConfig>) => {@@ -93,10 +77,8 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({[replaceSkeletonFilterConfigLocalOnly, context, triggerRealtimeApply]);- const isExpanded = (id: string) => expandedItems.includes(id);// ── 2D Tracking parent state ──────────────────────────────────────────────- // all on → checked; some on → indeterminate; none on → uncheckedconst tracking2dAllOn = charucoEnabled && skeletonEnabled;const tracking2dSomeOn = charucoEnabled || skeletonEnabled;const tracking2dIndeterminate = tracking2dSomeOn && !tracking2dAllOn;@@ -108,8 +90,6 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({const recon3dIndeterminate = recon3dSomeOn && !recon3dAllOn;const recon3dChecked = recon3dAllOn;- // Parent handlers receive the resolved newValue from the child- // (child already handles indeterminate → true logic before calling up)const handleToggle2dTracking = (newValue: boolean) => {onCharucoToggle(newValue);onSkeletonToggle(newValue);@@ -122,16 +102,7 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({};return (- <SimpleTreeView- expandedItems={expandedItems}- onExpandedItemsChange={(_, items) => setExpandedItems(items)}- disableSelection- expansionTrigger="iconContainer"- slots={{- collapseIcon: ExpandMore,- expandIcon: ChevronRight,- }}- >+ <div className="flex flex-col">{/* ── 2D Tracking ── */}<RealtimePipelineStageTreeItemitemId="2d-tracking"@@ -139,7 +110,7 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({checked={tracking2dChecked}indeterminate={tracking2dIndeterminate}onToggle={handleToggle2dTracking}- isExpanded={isExpanded("2d-tracking")}+summaryWhenCollapsed={[charucoEnabled && "Charuco", skeletonEnabled && "Skeleton"].filter(Boolean)@@ -152,13 +123,13 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({label="Charuco"checked={charucoEnabled}onToggle={onCharucoToggle}- isExpanded={isExpanded("2d-charuco")}+>- <Box sx={{p: 1, pl: 2}}>- <Typography variant="caption" color="text.secondary">+ <div className="p-1 pl-4">+ <p className="text sm text-gray">Settings from `Post Processing::Capture Volume Calibration` section- </Typography>- </Box>+ </p>+ </div></RealtimePipelineStageTreeItem>{/* Skeleton (MediaPipe) */}@@ -167,15 +138,15 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({label="Skeleton"checked={skeletonEnabled}onToggle={onSkeletonToggle}- isExpanded={isExpanded("2d-skeleton")}+summaryWhenCollapsed={context === "realtime" ? "Realtime preset" : "Posthoc preset"}>- <Box sx={{p: 1, pl: 2, borderLeft: `2px solid ${theme.palette.divider}`}}>+ <div className="p-1 border-1 border-mid-black pl-4" style={{borderLeft: '2px solid var(--color-border-secondary)'}}><MediapipeConfigPanelupdateDetectorConfig={handleUpdateDetectorConfig}replaceDetectorConfig={handleReplaceDetectorConfig}/>- </Box>+ </div></RealtimePipelineStageTreeItem></RealtimePipelineStageTreeItem>@@ -186,7 +157,7 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({checked={recon3dChecked}indeterminate={recon3dIndeterminate}onToggle={handleToggle3dReconstruction}- isExpanded={isExpanded("3d-reconstruction")}+summaryWhenCollapsed={[triangulateEnabled && "Triangulate", filterEnabled && "Filter", rigidBodyEnabled && "Skeleton"].filter(Boolean)@@ -199,13 +170,13 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({label="Triangulate"checked={triangulateEnabled}onToggle={onTriangulateToggle}- isExpanded={isExpanded("3d-triangulate")}+>- <Box sx={{p: 1, pl: 2}}>- <Typography variant="caption" color="text.secondary">+ <div className="p-1 pl-4">+ <p className="text sm text-gray">Triangulation settings — calibration TOML picker and parameters (placeholder)- </Typography>- </Box>+ </p>+ </div></RealtimePipelineStageTreeItem>{/* Filter */}@@ -214,15 +185,15 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({label="Filter"checked={filterEnabled}onToggle={onFilterToggle}- isExpanded={isExpanded("3d-filter")}+summaryWhenCollapsed="One Euro, FABRIK">- <Box sx={{p: 1, pl: 2, borderLeft: `2px solid ${theme.palette.divider}`}}>+ <div className="p-1 pl-4" style={{borderLeft: '2px solid var(--color-border-secondary)'}}><SkeletonFilterConfigPanelupdateSkeletonFilterConfig={handleUpdateSkeletonFilterConfig}replaceSkeletonFilterConfig={handleReplaceSkeletonFilterConfig}/>- </Box>+ </div></RealtimePipelineStageTreeItem>{/* Skeleton (rigid body) */}@@ -231,18 +202,15 @@ export const RealtimePipelineConfigTree: React.FC<PipelineConfigTreeProps> = ({label="Skeleton"checked={rigidBodyEnabled}onToggle={onRigidBodyToggle}- isExpanded={isExpanded("3d-skeleton")}+>- <Box sx={{p: 1, pl: 2}}>- <Typography variant="caption" color="text.secondary">+ <div className="p-1 pl-4">+ <p className="text sm text-gray">Rigid body and skeleton reconstruction parameters (placeholder)- </Typography>- </Box>+ </p>+ </div></RealtimePipelineStageTreeItem></RealtimePipelineStageTreeItem>-- </SimpleTreeView>--)- ;+ </div>+ );};diff --git a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConnectionStatus.tsx b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConnectionStatus.tsxindex 188f4be8..09c136ff 100644--- a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConnectionStatus.tsx+++ b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConnectionStatus.tsx@@ -1,6 +1,3 @@-import {Box, CircularProgress, Typography} from "@mui/material";-import CheckIcon from '@mui/icons-material/Check';-import CloseIcon from '@mui/icons-material/Close';import {useAppSelector} from "@/store/hooks";import {selectIsPipelineConnected,@@ -24,60 +21,47 @@ export const RealtimePipelineConnectionStatus = () => {const error = useAppSelector(selectPipelineError);return (- <Box- sx={{- display: 'flex',- justifyContent: 'flex-end',+ <div+ className="flex flex-col flex-end br-2"+ style={{padding: '10px',- flexDirection: 'column',- pl: 4,+ paddingLeft: 32,border: '4px solid rgb(0, 125, 125)',backgroundColor: isConnected ? '#005d94' : '#395067',- borderRadius: '8px',}}>- <Typography- variant="body1"- component="div"- sx={{- display: 'flex',- alignItems: 'center',- gap: 1,- }}- >- <Box sx={{- border: '1px solid rgba(255, 255, 255, 0.3)',- width: '24px',- height: '24px',- marginRight: '8px',- borderRadius: '4px',- transition: 'background-color 0.3s, border-color 0.3s',- backgroundColor: isConnected ? 'rgba(0, 255, 255, 0.1)' : 'rgba(255, 0, 0, 0.1)',- borderColor: isConnected ? 'rgba(0, 255, 255, 0.5)' : 'rgba(255, 0, 0, 0.5)',- boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)',- display: 'flex',- alignItems: 'center',- padding: '4px',- justifyContent: 'center',- }}>+ <div className="flex flex-row items-center gap-1">+ <div+ className="mr-2 br-1 flex items-center justify-center p-1"+ style={{+ border: `1px solid ${isConnected ? 'rgba(0,255,255,0.5)' : 'rgba(255,0,0,0.5)'}`,+ width: '24px',+ height: '24px',+ transition: 'background-color 0.3s, border-color 0.3s',+ backgroundColor: isConnected ? 'rgba(0,255,255,0.1)' : 'rgba(255,0,0,0.1)',+ boxShadow: '0 2px 4px rgba(0,0,0,0.1)',+ }}+ >{isLoading ? (- <CircularProgress size={16} sx={{color: 'cyan'}} />+ <span className="icon loader-icon icon-size-20" />) : isConnected ? (- <CheckIcon sx={{color: 'green'}} />+ <span style={{color: 'green', fontSize: 16, fontWeight: 700}}>✓</span>) : (- <CloseIcon fontSize="small" sx={{color: 'red'}} />+ <span style={{color: 'red', fontSize: 16, fontWeight: 700}}>✕</span>)}- </Box>+ </div>- Pipeline: {isConnected ? `connected (id: ${pipelineId})` : 'disconnected'}+ <p className="text md text-white">+ Pipeline: {isConnected ? `connected (id: ${pipelineId})` : 'disconnected'}+ </p>{error && (- <Typography variant="caption" color="error" sx={{ml: 1}}>+ <p className="text sm text-error ml-2">{error}- </Typography>+ </p>)}- </Typography>- </Box>+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConnectionToggle.tsx b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConnectionToggle.tsxdeleted file mode 100644index 79d9389b..00000000--- a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineConnectionToggle.tsx+++ /dev/null@@ -1,82 +0,0 @@-import React from "react";-import {CircularProgress, IconButton, Tooltip, useTheme} from "@mui/material";-import PowerSettingsNewIcon from "@mui/icons-material/PowerSettingsNew";-import {useAppDispatch, useAppSelector} from "@/store/hooks";-import {- applyRealtimePipeline,- closePipeline,- selectCanConnectPipeline,- selectCanDisconnectPipeline,- selectIsPipelineConnected,- selectIsPipelineLoading,- selectPipelineConfig,-} from "@/store/slices/realtime";--export const RealtimePipelineConnectionToggle: React.FC = () => {- const theme = useTheme();- const dispatch = useAppDispatch();-- const isConnected = useAppSelector(selectIsPipelineConnected);- const isLoading = useAppSelector(selectIsPipelineLoading);- const canConnect = useAppSelector(selectCanConnectPipeline);- const canDisconnect = useAppSelector(selectCanDisconnectPipeline);- const pipelineConfig = useAppSelector(selectPipelineConfig);-- const isClickable = canConnect || canDisconnect;-- const handleToggle = async (e: React.MouseEvent): Promise<void> => {- e.stopPropagation();- if (isLoading) return;-- if (isConnected) {- await dispatch(closePipeline());- } else {- await dispatch(applyRealtimePipeline(pipelineConfig));- }- };-- const tooltipText = isConnected- ? "Disconnect pipeline"- : canConnect- ? "Connect pipeline"- : "Select cameras first";-- return (- <Tooltip title={tooltipText}>- <span>- <IconButton- size="small"- onClick={handleToggle}- disabled={!isClickable || isLoading}- sx={{- color: "inherit",- border: "1.5px solid",- borderColor: isConnected- ? theme.palette.success.light- : "rgba(255,255,255,0.25)",- borderRadius: 1,- p: 0.5,- backgroundColor: isConnected- ? "rgba(76, 175, 80, 0.2)"- : "transparent",- "&:hover": {- backgroundColor: isConnected- ? "rgba(76, 175, 80, 0.3)"- : "rgba(255,255,255,0.1)",- },- "&.Mui-disabled": {- color: "rgba(255,255,255,0.3)",- borderColor: "rgba(255,255,255,0.1)",- },- }}- >- {isLoading ? (- <CircularProgress size={18} sx={{color: "inherit"}} />- ) : (- <PowerSettingsNewIcon fontSize="small" />- )}- </IconButton>- </span>- </Tooltip>- );-};diff --git a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelinePanel.tsx b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelinePanel.tsxdeleted file mode 100644index 818a080f..00000000--- a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelinePanel.tsx+++ /dev/null@@ -1,90 +0,0 @@-import React from "react";-import {Box} from "@mui/material";-import LanIcon from "@mui/icons-material/Lan";-import {CollapsibleSidebarSection} from "@/components/common/CollapsibleSidebarSection";-import {useAppDispatch, useAppSelector} from "@/store/hooks";-import {RealtimePipelineSummary} from "@/components/control-panels/realtime-panel/RealtimePipelineSummary";-import {RealtimePipelineConnectionToggle} from "@/components/control-panels/realtime-panel/RealtimePipelineConnectionToggle";-import {RealtimePipelineConfigTree} from "@/components/control-panels/realtime-panel/RealtimePipelineConfigTree";-import {- applyRealtimePipeline,- pipelineConfigUpdated,- selectAggregatorConfig,- selectCameraNodeConfig,- selectIsPipelineConnected,- selectPipelineConfig,-} from "@/store/slices/realtime";-import {RealtimePipelineConfig} from "@/store/slices/realtime/realtime-types";--export const RealtimePipelinePanel: React.FC = () => {- const dispatch = useAppDispatch();-- const isConnected = useAppSelector(selectIsPipelineConnected);- const pipelineConfig = useAppSelector(selectPipelineConfig);- const cameraNodeConfig = useAppSelector(selectCameraNodeConfig);- const aggregatorConfig = useAppSelector(selectAggregatorConfig);-- const handleConfigChange = (newConfig: RealtimePipelineConfig) => {- if (isConnected) {- dispatch(applyRealtimePipeline(newConfig));- } else {- dispatch(pipelineConfigUpdated(newConfig));- }- };-- const handleCharucoToggle = (value: boolean) =>- handleConfigChange({- ...pipelineConfig,- camera_node_config: {...cameraNodeConfig, charuco_tracking_enabled: value},- });-- const handleSkeletonToggle = (value: boolean) =>- handleConfigChange({- ...pipelineConfig,- camera_node_config: {...cameraNodeConfig, skeleton_tracking_enabled: value},- });-- const handleTriangulateToggle = (value: boolean) =>- handleConfigChange({- ...pipelineConfig,- aggregator_config: {...aggregatorConfig, triangulation_enabled: value},- });-- const handleFilterToggle = (value: boolean) =>- handleConfigChange({- ...pipelineConfig,- aggregator_config: {...aggregatorConfig, filter_enabled: value},- });-- const handleRigidBodyToggle = (value: boolean) =>- handleConfigChange({- ...pipelineConfig,- aggregator_config: {...aggregatorConfig, skeleton_enabled: value},- });-- return (- <CollapsibleSidebarSection- icon={<LanIcon sx={{transform: "scaleY(-1.05)", color: "inherit"}} />}- title="Realtime Pipeline"- summaryContent={<RealtimePipelineSummary />}- primaryControl={<RealtimePipelineConnectionToggle />}- defaultExpanded={false}- >- <Box sx={{p: 2}}>- <RealtimePipelineConfigTree- context="realtime"- charucoEnabled={cameraNodeConfig.charuco_tracking_enabled}- onCharucoToggle={handleCharucoToggle}- skeletonEnabled={cameraNodeConfig.skeleton_tracking_enabled}- onSkeletonToggle={handleSkeletonToggle}- triangulateEnabled={aggregatorConfig.triangulation_enabled}- onTriangulateToggle={handleTriangulateToggle}- filterEnabled={aggregatorConfig.filter_enabled}- onFilterToggle={handleFilterToggle}- rigidBodyEnabled={aggregatorConfig.skeleton_enabled}- onRigidBodyToggle={handleRigidBodyToggle}- />- </Box>- </CollapsibleSidebarSection>- );-};diff --git a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineStageTreeItem.tsx b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineStageTreeItem.tsxindex 338010e9..c9a24cb6 100644--- a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineStageTreeItem.tsx+++ b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineStageTreeItem.tsx@@ -1,12 +1,10 @@-import React from "react";-import {Box, Checkbox, Chip, Tooltip, Typography, useTheme} from "@mui/material";-import {TreeItem} from "@mui/x-tree-view/TreeItem";+import React, { useState } from "react";interface PipelineStageTreeItemProps {itemId: string;label: string;checked: boolean;- indeterminate?: boolean; // NEW: partial-child-selected state+ indeterminate?: boolean;onToggle: (newValue: boolean) => void;disabled?: boolean;disabledReason?: string;@@ -16,90 +14,62 @@ interface PipelineStageTreeItemProps {}export const RealtimePipelineStageTreeItem: React.FC<PipelineStageTreeItemProps> = ({- itemId,- label,- checked,- indeterminate = false,- onToggle,- disabled = false,- disabledReason,- summaryWhenCollapsed,- isExpanded = false,- children,- }) => {- const theme = useTheme();+ itemId,+ label,+ checked,+ indeterminate = false,+ onToggle,+ disabled = false,+ disabledReason,+ summaryWhenCollapsed,+ children,+}) => {+ const [expanded, setExpanded] = useState(false);const handleCheckboxClick = (e: React.MouseEvent) => {e.stopPropagation();- if (!disabled) {- // If any children are on (checked or indeterminate), turn all off; otherwise turn all on- onToggle(!(checked || indeterminate));- }+ if (!disabled) onToggle(!(checked || indeterminate));};- const checkbox = (- <Checkbox- size="small"+ const checkboxEl = (+ <input+ type="checkbox"checked={checked}- indeterminate={indeterminate}+ ref={(el) => { if (el) el.indeterminate = indeterminate; }}disabled={disabled}- onMouseDown={e => e.stopPropagation()}+ onMouseDown={(e) => e.stopPropagation()}onClick={handleCheckboxClick}- sx={{p: 0.5, flexShrink: 0}}+ onChange={() => {}}+ className="flex-shrink-0"+ style={{ accentColor: 'var(--color-info)' }}/>);- const labelContent = (- <Box- sx={{- display: "flex",- alignItems: "center",- py: 0.25,- minHeight: 32,- gap: 0.5,- }}- >- {disabled && disabledReason ? (- <Tooltip title={disabledReason} arrow>- <span>{checkbox}</span>- </Tooltip>- ) : (- checkbox- )}-- <Typography- variant="body2"- sx={{- flexShrink: 0,- color: disabled- ? theme.palette.text.disabled- : theme.palette.text.primary,- }}+ return (+ <div className="flex flex-col">+ <div+ className="flex flex-row items-center gap-1 p-1"++ onClick={() => children && setExpanded(v => !v)}>- {label}- </Typography>-- {!isExpanded && summaryWhenCollapsed && (- <Chip- label={summaryWhenCollapsed}- size="small"- variant="outlined"- sx={{- ml: 0.5,- height: 18,- fontSize: 10,- "& .MuiChip-label": {px: 0.75},- borderColor: theme.palette.divider,- color: theme.palette.text.secondary,- }}- />+ {disabled && disabledReason ? (+ <span title={disabledReason}>{checkboxEl}</span>+ ) : (+ checkboxEl+ )}+ <p className="text sm flex-1" style={{ color: disabled ? 'var(--color-text-disabled)' : 'var(--color-text-primary)' }}>+ {label}+ </p>+ {!expanded && summaryWhenCollapsed && (+ <span className="tag text sm" style={{ height: 18, fontSize: 10 }}>{summaryWhenCollapsed}</span>+ )}+ {children && (+ <span className="icon icon-size-20 collapse-icon" style={{ transform: expanded ? 'rotate(0deg)' : 'rotate(-90deg)' }} />+ )}+ </div>+ {expanded && children && (+ <div className="pl-2">{children}</div>)}- </Box>- );-- return (- <TreeItem itemId={itemId} label={labelContent}>- {children}- </TreeItem>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineSummary.tsx b/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineSummary.tsxdeleted file mode 100644index 7392005a..00000000--- a/freemocap-ui/src/components/control-panels/realtime-panel/RealtimePipelineSummary.tsx+++ /dev/null@@ -1,52 +0,0 @@-import React from "react";-import {Chip, Typography, useTheme} from "@mui/material";-import {useAppSelector} from "@/store/hooks";-import {selectIsPipelineConnected, selectPipelineError, selectPipelineId,} from "@/store/slices/realtime";--export const RealtimePipelineSummary: React.FC = () => {- const theme = useTheme();-- const isConnected = useAppSelector(selectIsPipelineConnected);- const pipelineId = useAppSelector(selectPipelineId);- const error = useAppSelector(selectPipelineError);-- if (error) {- return (- <Typography- variant="caption"- sx={{- color: theme.palette.error.light,- fontWeight: 500,- whiteSpace: "nowrap",- overflow: "hidden",- textOverflow: "ellipsis",- }}- >- Error- </Typography>- );- }-- const statusColor = isConnected- ? theme.palette.success.main- : theme.palette.grey[600];-- return (- <Chip- label={isConnected ? `Active (${pipelineId})` : "Inactive"}- size="small"- sx={{- height: 20,- fontSize: 11,- fontWeight: 600,- backgroundColor: statusColor,- color: theme.palette.getContrastText(statusColor),- maxWidth: 160,- "& .MuiChip-label": {- overflow: "hidden",- textOverflow: "ellipsis",- },- }}- />- );-};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/ProcessMocapPanel.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/ProcessMocapPanel.tsxnew file mode 100644index 00000000..501675a9--- /dev/null+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/ProcessMocapPanel.tsx@@ -0,0 +1,33 @@+import React, { useState } from "react";+import { useAppSelector } from "@/store";+import ButtonSm from "@/components/ui-components/ButtonSm";+import MocapSetupModal from "@/components/mocap-setup/mocap-setup-modal";++export const RecordingInfoPanel: React.FC = () => {+ const recordingInfo = useAppSelector((state) => state.recording);++ const [mocapSetupModalOpen, setMocapSetupModalOpen] = useState(false);++ return (+ <>+ <div className="main-side-actions flex flex-col gap-1 order-3">+ {/* Process group */}+ <div className="process-group bg-middark br-2 p-1 flex flex-col gap-1 br-1 p-2 pb-2 order-4">+ <div className="flex flex-row flex-1 items-center gap-1 w-full">+ <ButtonSm+ text="Continue to Mocap Setup"+ iconClass="processmocap-icon"+ className="accent text-nowrap flex flex-row flex-1 gap-1 br-1 button sm flex-inline text-left items-center full-width primary justify-center"+ onClick={() => setMocapSetupModalOpen(true)}+ />+ </div>+ </div>+ </div>++ {/* Mocap Setup Modal */}+ {mocapSetupModalOpen && (+ <MocapSetupModal onClose={() => setMocapSetupModalOpen(false)} />+ )}+ </>+ );+};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingCompleteDialog.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingCompleteDialog.tsxindex d6317948..01a38168 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingCompleteDialog.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingCompleteDialog.tsx@@ -1,28 +1,9 @@import React from 'react';-import {- Box,- Button,- Dialog,- DialogActions,- DialogContent,- DialogTitle,- Divider,- IconButton,- Table,- TableBody,- TableCell,- TableContainer,- TableHead,- TableRow,- Typography,-} from '@mui/material';-import ContentCopyIcon from '@mui/icons-material/ContentCopy';-import FolderOpenIcon from '@mui/icons-material/FolderOpen';-import PlayArrowIcon from '@mui/icons-material/PlayArrow';import {useNavigate} from 'react-router-dom';import {useAppDispatch, useAppSelector} from '@/store/hooks';import {recordingCompletionDismissed} from '@/store/slices/recording/recording-slice';import {useElectronIPC} from '@/services/electron-ipc/electron-ipc';+import IconButton from '@/components/ui-components/IconButton';import type {RecordingCompletionData, StatsSummary} from '@/store/slices/recording/recording-types';function formatStat(value: number, precision: number = 3): string {@@ -41,33 +22,35 @@ function TimingStatsTable({ data }: { data: RecordingCompletionData }) {{ label: 'Inter-Camera Frame Grab Sync (ms)', stats: data.inter_camera_grab_range_ms_stats },];+ const thStyle: React.CSSProperties = {fontWeight: 'bold', padding: '4px 8px', fontSize: '0.8rem', textAlign: 'left', borderBottom: '1px solid var(--color-border-secondary)'};+ const tdStyle: React.CSSProperties = {padding: '4px 8px', fontSize: '0.8rem'};+ const tdRightStyle: React.CSSProperties = {...tdStyle, textAlign: 'right'};+return (- <TableContainer>- <Table size="small" sx={{ '& td, & th': { py: 0.5, px: 1, fontSize: '0.8rem' } }}>- <TableHead>- <TableRow>- <TableCell sx={{ fontWeight: 'bold' }}>Metric</TableCell>- <TableCell align="right" sx={{ fontWeight: 'bold' }}>Median</TableCell>- <TableCell align="right" sx={{ fontWeight: 'bold' }}>Mean</TableCell>- <TableCell align="right" sx={{ fontWeight: 'bold' }}>Std</TableCell>- <TableCell align="right" sx={{ fontWeight: 'bold' }}>Min</TableCell>- <TableCell align="right" sx={{ fontWeight: 'bold' }}>Max</TableCell>- </TableRow>- </TableHead>- <TableBody>- {rows.map((row) => (- <TableRow key={row.label}>- <TableCell>{row.label}</TableCell>- <TableCell align="right">{formatStat(row.stats.median)}</TableCell>- <TableCell align="right">{formatStat(row.stats.mean)}</TableCell>- <TableCell align="right">{formatStat(row.stats.std)}</TableCell>- <TableCell align="right">{formatStat(row.stats.min)}</TableCell>- <TableCell align="right">{formatStat(row.stats.max)}</TableCell>- </TableRow>- ))}- </TableBody>- </Table>- </TableContainer>+ <table className="w-full" style={{borderCollapse: 'collapse'}}>+ <thead>+ <tr>+ <th style={thStyle}>Metric</th>+ <th style={{...thStyle, textAlign: 'right'}}>Median</th>+ <th style={{...thStyle, textAlign: 'right'}}>Mean</th>+ <th style={{...thStyle, textAlign: 'right'}}>Std</th>+ <th style={{...thStyle, textAlign: 'right'}}>Min</th>+ <th style={{...thStyle, textAlign: 'right'}}>Max</th>+ </tr>+ </thead>+ <tbody>+ {rows.map((row) => (+ <tr key={row.label}>+ <td style={tdStyle}>{row.label}</td>+ <td style={tdRightStyle}>{formatStat(row.stats.median)}</td>+ <td style={tdRightStyle}>{formatStat(row.stats.mean)}</td>+ <td style={tdRightStyle}>{formatStat(row.stats.std)}</td>+ <td style={tdRightStyle}>{formatStat(row.stats.min)}</td>+ <td style={tdRightStyle}>{formatStat(row.stats.max)}</td>+ </tr>+ ))}+ </tbody>+ </table>);}@@ -99,66 +82,67 @@ export const RecordingCompleteDialog: React.FC = () => {};return (- <Dialog open onClose={handleClose} maxWidth="md" fullWidth>- <DialogTitle sx={{ pb: 1 }}>Recording Complete!</DialogTitle>- <DialogContent>- <Box sx={{ display: 'flex', alignItems: 'center', gap: 1, mb: 2 }}>- <Typography- variant="body2"- sx={{+ <div+ className="splash-overlay inset-0"+ style={{position: 'fixed', zIndex: 100}}+ onClick={handleClose}+ >+ <div+ className="pos-rel bg-middark br-2 flex flex-col p-3 w-full"+ style={{minWidth: 480, maxWidth: 720}}+ onClick={(e) => e.stopPropagation()}+ >+ <div className="flex flex-row items-center justify-content-space-between pb-2">+ <p className="text bg text-white">Recording Complete!</p>+ <IconButton icon="close-icon" onClick={handleClose} title="Close" />+ </div>++ <div className="flex flex-row items-center gap-1 mb-2">+ <span+ className="text sm text-gray br-1 flex-1 overflow-hidden"+ style={{fontFamily: 'monospace',fontSize: '0.8rem',- bgcolor: 'action.hover',- px: 1,- py: 0.5,- borderRadius: 1,- flex: 1,- overflow: 'hidden',+ backgroundColor: 'var(--color-bg-elevated)',+ padding: '4px 8px',textOverflow: 'ellipsis',whiteSpace: 'nowrap',}}>{completionData.recording_path}- </Typography>- <IconButton size="small" onClick={handleCopyPath} title="Copy path">- <ContentCopyIcon fontSize="small" />- </IconButton>- <IconButton size="small" onClick={handleOpenFolder} title="Open folder">- <FolderOpenIcon fontSize="small" />- </IconButton>- </Box>-- <Typography variant="body2" sx={{ mb: 2, color: 'text.secondary' }}>+ </span>+ <IconButton icon="copy-icon" onClick={handleCopyPath} title="Copy path" />+ <IconButton icon="folder-icon" onClick={handleOpenFolder} title="Open folder" />+ </div>++ <p className="text sm text-gray mb-2">{completionData.number_of_cameras} camera{completionData.number_of_cameras !== 1 ? 's' : ''}- {' \u00B7 '}+ {' · '}{completionData.number_of_frames} frames- {' \u00B7 '}+ {' · '}{completionData.total_duration_sec}s- {' \u00B7 '}+ {' · '}{completionData.mean_framerate} Hz avg- </Typography>+ </p>- <Divider sx={{ mb: 1.5 }} />+ <div style={{height: 1, backgroundColor: 'var(--color-border-secondary)', margin: '4px 0 8px 0'}} />- <Typography variant="subtitle2" sx={{ mb: 1 }}>+ <p className="text sm text-white mb-2" style={{fontWeight: 600}}>Frame Timing Statistics- </Typography>+ </p><TimingStatsTable data={completionData} />- </DialogContent>- <DialogActions>- <Button- onClick={handleOpenInPlayback}- variant="outlined"- size="small"- startIcon={<PlayArrowIcon />}- >- Open in Playback- </Button>- <Button onClick={handleClose} variant="contained" size="small">- Close- </Button>- </DialogActions>- </Dialog>++ <div className="flex flex-row gap-1 mt-3 flex-end">+ <button className="button sm secondary" onClick={handleOpenInPlayback}>+ <span className="icon play-icon icon-size-20 mr-1" />+ Open in Playback+ </button>+ <button className="button sm primary" onClick={handleClose}>+ Close+ </button>+ </div>+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingControlPanel.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingControlPanel.tsxnew file mode 100644index 00000000..09bcb0c1--- /dev/null+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingControlPanel.tsx@@ -0,0 +1,241 @@+import React, { useEffect, useState } from "react";+import {+ autoProcessToggled,+ countdownSet,+ delaySecondsChanged,+ micDeviceIndexChanged,+ pendingOperationSet,+ recordingTypePresetChanged,+ useDelayStartToggled,+} from "@/store/slices/recording/recording-slice";+import type { RecordingTypePreset } from "@/store/slices/recording/recording-types";+import { useAppDispatch, useAppSelector } from "@/store";+import { startRecording, stopRecording } from "@/store";+import { calibrateRecording } from "@/store/slices/calibration/calibration-thunks";+import { processMocapRecording } from "@/store/slices/mocap/mocap-thunks";+import { PresetPicker } from "@/components/common/PresetPicker";+import { DelayRecordingStartControl } from "./recording-subcomponents/DelayRecordingStartControl";+import { MicrophoneSelector } from "@/components/control-panels/recording-info-panel/recording-subcomponents/MicrophoneSelector";+import { useServer } from "@/services/server/ServerContextProvider";+import { getTimestampString } from "@/components/control-panels/recording-info-panel/getTimestampString";+import { StartStopRecordingButton } from "./recording-subcomponents/StartStopRecordingButton";+import { useTranslation } from "react-i18next";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import MocapSetupModal from "@/components/mocap-setup/mocap-setup-modal";++export const RECORDING_TYPE_OPTIONS: {+ value: RecordingTypePreset;+ label: string;+}[] = [+ { value: "none", label: "None" },+ { value: "calibration", label: "Calibration" },+ { value: "mocap", label: "Mocap" },+];++export const RecordingControlPanel: React.FC = () => {+ const dispatch = useAppDispatch();+ const recordingInfo = useAppSelector((state) => state.recording);+ const { config, pendingOperation, countdown } = recordingInfo;+ const {+ useDelayStart,+ delaySeconds,+ micDeviceIndex,+ recordingTypePreset,+ autoProcess,+ } = config;++ const [mocapSetupModalOpen, setMocapSetupModalOpen] = useState(false);++ const { connectedCameraIds } = useServer();+ const { t } = useTranslation();+ const noCamerasConnected = connectedCameraIds.length === 0;++ useEffect(() => {+ if (!pendingOperation) return;+ const timeoutMs = 5000;+ const elapsed = Date.now() - pendingOperation.timestamp;+ const remaining = Math.max(0, timeoutMs - elapsed);+ const timer = setTimeout(() => {+ console.error(+ "Recording " ++ pendingOperation.type ++ " operation timed out after " ++ timeoutMs ++ "ms",+ );+ dispatch(pendingOperationSet(null));+ }, remaining);+ return () => clearTimeout(timer);+ }, [dispatch, pendingOperation]);++ useEffect(() => {+ if (countdown === null) return;+ if (countdown > 0) {+ const timer = setTimeout(+ () => dispatch(countdownSet(countdown - 1)),+ 1000,+ );+ return () => clearTimeout(timer);+ }+ dispatch(countdownSet(null));+ handleStartRecording();+ }, [countdown]);++ const handleStartRecording = async (): Promise<void> => {+ const ts = getTimestampString();+ const nameParts = config.useTimestamp ? [ts] : [config.baseName];+ if (recordingTypePreset !== "none") nameParts.push(recordingTypePreset);+ if (config.recordingTag) nameParts.push(config.recordingTag);+ const recordingName = nameParts.join("_");+ const subfolderName = config.createSubfolder+ ? config.customSubfolderName || getTimestampString()+ : "";+ const recordingPath = config.createSubfolder+ ? recordingInfo.recordingDirectory + "/" + subfolderName+ : recordingInfo.recordingDirectory;++ if (config.useIncrement) {+ // Import dynamically to avoid cycle+ const { currentIncrementIncremented } = await import("@/store/slices/recording/recording-slice");+ dispatch(currentIncrementIncremented());+ }+ dispatch(pendingOperationSet({ type: "start", timestamp: Date.now() }));++ try {+ await dispatch(+ startRecording({+ recordingName,+ recordingDirectory: recordingPath,+ micDeviceIndex,+ }),+ ).unwrap();+ } catch (error) {+ console.error("Failed to start recording:", error);+ dispatch(pendingOperationSet(null));+ throw error;+ }+ };++ const handleRecordButtonClick = async (): Promise<void> => {+ if (pendingOperation) return;++ if (recordingInfo.isRecording) {+ dispatch(pendingOperationSet({ type: "stop", timestamp: Date.now() }));+ try {+ const result = await dispatch(stopRecording()).unwrap();+ if (result && autoProcess && recordingTypePreset === "calibration") {+ dispatch(calibrateRecording());+ } else if (result && autoProcess && recordingTypePreset === "mocap") {+ dispatch(processMocapRecording());+ }+ } catch (error) {+ console.error("Failed to stop recording:", error);+ dispatch(pendingOperationSet(null));+ throw error;+ }+ } else if (countdown !== null) {+ // Cancel the countdown and return to idle state+ dispatch(countdownSet(null));+ } else if (useDelayStart) {+ dispatch(countdownSet(delaySeconds));+ } else {+ await handleStartRecording();+ }+ };++ const recordingStartTime = recordingInfo.startedAt+ ? new Date(recordingInfo.startedAt).getTime()+ : null;++ const handleToggleSettings = () => {+ setMocapSetupModalOpen(true);+ };++ return (+ <>+ <div className="record-group bg-middark br-2 p-1 flex flex-col gap-1 br-1 p-2 pb-2 order-4">+ <div+ className="flex flex-row flex-1 items-center gap-1 w-full"+ onClick={(e) => e.stopPropagation()}+ onMouseDown={(e) => e.stopPropagation()}+ >+ <StartStopRecordingButton+ isRecording={recordingInfo.isRecording}+ isPending={pendingOperation !== null}+ countdown={countdown}+ recordingStartTime={recordingStartTime}+ disabled={noCamerasConnected && !recordingInfo.isRecording}+ tooltipText={+ noCamerasConnected && !recordingInfo.isRecording+ ? t("connectCamerasToRecord")+ : undefined+ }+ onClick={handleRecordButtonClick}+ />+ </div>+ {/* Delay toggle */}+ <DelayRecordingStartControl+ useDelay={useDelayStart}+ delaySeconds={delaySeconds}+ onDelayToggle={(v) => dispatch(useDelayStartToggled(v))}+ onDelayChange={(v) => dispatch(delaySecondsChanged(v))}+ />+ {/* Preset + auto-process */}+ <div className="flex flex-start flex-col items-center gap-1">+ <PresetPicker+ value={recordingTypePreset}+ options={RECORDING_TYPE_OPTIONS}+ onChange={(v) => dispatch(recordingTypePresetChanged(v))}+ disabled={recordingInfo.isRecording}+ />+ <ToggleComponent+ text="Auto Process Mocap"+ isToggled={autoProcess}+ onToggle={(v) => dispatch(autoProcessToggled(v))}+ disabled={+ recordingTypePreset === "none" || recordingInfo.isRecording+ }+ />+ </div>+ {autoProcess && (+ <div+ className={+ "streaming-mode mocap-settings-button " ++ (recordingTypePreset !== "none" && !recordingInfo.isRecording+ ? ""+ : "disabled ") ++ "button sm flex-wrap flex pos-rel p-1 br-1 flex-row items-center justify-content-space-between"+ }+ onClick={handleToggleSettings}+ >+ <div className=" flex flex-row items-start items-center gap-1">+ <span className="icon subcat-icon icon-size-20" />+ <p className="text-gray text-nowrap text md text-align-left">+ Mocap Settings+ </p>+ </div>+ <div className="group-2 flex flex-row pos-rel items-center gap-1">+ <div className="group-2.2 pos-rel flex flex-col items-center">+ <span className="icon settings-icon icon-size-20" />+ </div>+ </div>+ </div>+ )}++ <MicrophoneSelector+ selectedMicIndex={micDeviceIndex}+ onMicSelected={(idx) => dispatch(micDeviceIndexChanged(idx))}+ disabled={recordingInfo.isRecording}+ />+ </div>++ {/* Mocap Setup Modal */}+ {mocapSetupModalOpen && (+ <MocapSetupModal+ mode="recording"+ onClose={() => setMocapSetupModalOpen(false)}+ />+ )}+ </>+ );+};\ No newline at end of filediff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingControlsTreeSection.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingControlsTreeSection.tsxindex a3f1b124..773e8233 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingControlsTreeSection.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingControlsTreeSection.tsx@@ -1,11 +1,4 @@import React from 'react';-import {Box} from '@mui/material';-import {- DelayRecordingStartControl-} from "@/components/control-panels/recording-info-panel/recording-subcomponents/DelayRecordingStartControl";-import {- BaseRecordingDirectoryInput-} from "@/components/control-panels/recording-info-panel/recording-subcomponents/BaseRecordingDirectoryInput";import {RecordingNamePreview} from "@/components/control-panels/recording-info-panel/recording-subcomponents/RecordingNamePreview";@@ -14,86 +7,47 @@ import {} from "@/components/control-panels/recording-info-panel/recording-subcomponents/RecordingSettingsSection";interface RecordingControlsSectionProps {- recordingDirectory: string;recordingName: string;recordingTag: string;- useDelayStart: boolean;- delaySeconds: number;useTimestamp: boolean;baseName: string;useIncrement: boolean;currentIncrement: number;- createSubfolder: boolean;- customSubfolderName: string;isRecording: boolean;- onDelayToggle: (value: boolean) => void;- onDelayChange: (value: number) => void;onTagChange: (value: string) => void;+ onNameChange: (value: string) => void;onUseTimestampChange: (value: boolean) => void;onBaseNameChange: (value: string) => void;onUseIncrementChange: (value: boolean) => void;onIncrementChange: (value: number) => void;- onCreateSubfolderChange: (value: boolean) => void;- onCustomSubfolderNameChange: (value: string) => void;}export const RecordingControlsSection: React.FC<RecordingControlsSectionProps> = ({- recordingDirectory,- recordingName,- recordingTag,- useDelayStart,- delaySeconds,- useTimestamp,- baseName,- useIncrement,- currentIncrement,- createSubfolder,- customSubfolderName,- isRecording,- onDelayToggle,- onDelayChange,- onTagChange,- onUseTimestampChange,- onBaseNameChange,- onUseIncrementChange,- onIncrementChange,- onCreateSubfolderChange,- onCustomSubfolderNameChange- }) => {+ recordingName, recordingTag,+ useTimestamp, baseName,+ useIncrement, currentIncrement,+ isRecording, onTagChange, onNameChange,+ onUseTimestampChange, onBaseNameChange, onUseIncrementChange, onIncrementChange,+}) => {return (- <Box sx={{pl: 2, pt: 1, display: 'flex', flexDirection: 'column', gap: 2}}>- <DelayRecordingStartControl- useDelay={useDelayStart}- delaySeconds={delaySeconds}- onDelayToggle={onDelayToggle}- onDelayChange={onDelayChange}- />-- <BaseRecordingDirectoryInput- value={recordingDirectory}- />-+ <div className="file-directory-secondary-group flex flex-col gap-2"><RecordingNamePreviewname={recordingName}tag={recordingTag}isRecording={isRecording}onTagChange={onTagChange}+ onNameChange={onNameChange}/>-<RecordingSettingsSectionuseTimestamp={useTimestamp}baseName={baseName}useIncrement={useIncrement}currentIncrement={currentIncrement}- createSubfolder={createSubfolder}- customSubfolderName={customSubfolderName}onUseTimestampChange={onUseTimestampChange}onBaseNameChange={onBaseNameChange}onUseIncrementChange={onUseIncrementChange}onIncrementChange={onIncrementChange}- onCreateSubfolderChange={onCreateSubfolderChange}- onCustomSubfolderNameChange={onCustomSubfolderNameChange}/>- </Box>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingHeaderButton.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingHeaderButton.tsxindex c046d0c7..f1d34451 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingHeaderButton.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingHeaderButton.tsx@@ -1,7 +1,5 @@import React from "react";-import {CircularProgress, IconButton, Tooltip} from "@mui/material";-import FiberManualRecordIcon from "@mui/icons-material/FiberManualRecord";-import StopIcon from "@mui/icons-material/Stop";+import IconButton from "@/components/ui-components/IconButton";interface RecordingHeaderButtonProps {isRecording: boolean;@@ -22,38 +20,18 @@ export const RecordingHeaderButton: React.FC<RecordingHeaderButtonProps> = ({};return (- <Tooltip title={isRecording ? "Stop Recording" : "Start Recording"}>- <span>- <IconButton- size="small"- onClick={handleClick}- disabled={disabled || isPending}- sx={{- padding: "4px",- color: isRecording ? "error.main" : "inherit",- opacity: disabled && !isRecording ? 0.4 : 1,- transition: "color 0.2s ease",- "&:hover": {- color: isRecording ? "error.light" : "primary.main",- },- ...(isRecording && {- animation: 'pulse-record 2s infinite ease-in-out',- '@keyframes pulse-record': {- '0%, 100%': { color: 'error.main' },- '50%': { color: 'error.dark' },- },- }),- }}- >- {isPending ? (- <CircularProgress size={20} sx={{ color: "inherit" }} />- ) : isRecording ? (- <StopIcon sx={{ fontSize: 24 }} />- ) : (- <FiberManualRecordIcon sx={{ fontSize: 24 }} />- )}- </IconButton>- </span>- </Tooltip>+ <IconButton+ icon={isPending ? "loader-icon" : isRecording ? "stop-icon" : "record-icon"}+ className="icon-size-25 p-1"+ onClick={handleClick}+ disabled={disabled || isPending}+ title={isRecording ? "Stop Recording" : "Start Recording"}+ style={{+ color: isRecording ? 'var(--color-danger)' : 'inherit',+ opacity: disabled && !isRecording ? 0.4 : 1,+ transition: "color 0.2s ease",+ animation: isRecording ? 'pulse-record 2s infinite ease-in-out' : undefined,+ }}+ />);};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingInfoPanel.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingInfoPanel.tsxindex bcea8566..23fe7f20 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingInfoPanel.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingInfoPanel.tsx@@ -1,307 +1,399 @@-import React, {useEffect} from "react";-import {Box, Checkbox, FormControlLabel, useTheme} from "@mui/material";-import {SimpleTreeView} from "@mui/x-tree-view/SimpleTreeView";-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";-import ChevronRightIcon from "@mui/icons-material/ChevronRight";-import FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord';-import {recordingInfoUpdated, startRecording, stopRecording, useAppDispatch, useAppSelector} from "@/store";+import React, { useEffect, useState } from "react";import {- autoProcessToggled,- baseNameChanged,- countdownSet,- createSubfolderToggled,- currentIncrementChanged,- currentIncrementIncremented,- customSubfolderNameChanged,- delaySecondsChanged,- micDeviceIndexChanged,- pendingOperationSet,- recordingTagChanged,- recordingTypePresetChanged,- useDelayStartToggled,- useIncrementToggled,- useTimestampToggled,-} from "@/store/slices/recording/recording-slice";-import type {RecordingTypePreset} from "@/store/slices/recording/recording-types";-import {calibrateRecording} from "@/store/slices/calibration/calibration-thunks";-import {processMocapRecording} from "@/store/slices/mocap/mocap-thunks";-import {PresetPicker} from "@/components/common/PresetPicker";-+ recordingInfoUpdated,+ startRecording,+ stopRecording,+ useAppDispatch,+ useAppSelector,+} from "@/store";import {- MicrophoneSelector-} from "@/components/control-panels/recording-info-panel/recording-subcomponents/MicrophoneSelector";-import {RecordingPathTreeItem} from "@/components/control-panels/recording-info-panel/RecordingPathTreeItem";-import {useElectronIPC} from "@/services/electron-ipc/electron-ipc";-import {useServer} from "@/services/server/ServerContextProvider";-import {getTimestampString} from "@/components/control-panels/recording-info-panel/getTimestampString";-import {CollapsibleSidebarSection} from "@/components/common/CollapsibleSidebarSection";-import {RecordingSummary} from "./RecordingSummary";-import {RecordingHeaderButton} from "./RecordingHeaderButton";+ autoProcessToggled,+ baseNameChanged,+ countdownSet,+ createSubfolderToggled,+ currentIncrementChanged,+ currentIncrementIncremented,+ customSubfolderNameChanged,+ delaySecondsChanged,+ micDeviceIndexChanged,+ pendingOperationSet,+ recordingTagChanged,+ recordingTypePresetChanged,+ useDelayStartToggled,+ useIncrementToggled,+ useTimestampToggled,+} from "@/store/slices/recording/recording-slice";+import type { RecordingTypePreset } from "@/store/slices/recording/recording-types";+import { calibrateRecording } from "@/store/slices/calibration/calibration-thunks";+import { processMocapRecording } from "@/store/slices/mocap/mocap-thunks";+import { PresetPicker } from "@/components/common/PresetPicker";+import { DelayRecordingStartControl } from "./recording-subcomponents/DelayRecordingStartControl";+import { MicrophoneSelector } from "@/components/control-panels/recording-info-panel/recording-subcomponents/MicrophoneSelector";+import { useElectronIPC } from "@/services/electron-ipc/electron-ipc";+import { useServer } from "@/services/server/ServerContextProvider";+import { getTimestampString } from "@/components/control-panels/recording-info-panel/getTimestampString";+import { StartStopRecordingButton } from "./recording-subcomponents/StartStopRecordingButton";+import { RecordingPathModal } from "./RecordingPathModal";+import TextSelector from "@/components/ui-components/TextSelector";+import { useTranslation } from "react-i18next";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import MocapSetupModal from "@/components/mocap-setup/mocap-setup-modal";+import IconButton from "@/components/ui-components/IconButton";+import { useRef } from "react";-export type {RecordingTypePreset};+export type { RecordingTypePreset };-export const RECORDING_TYPE_OPTIONS: { value: RecordingTypePreset; label: string }[] = [- {value: "none", label: "None"},- {value: "calibration", label: "Calibration"},- {value: "mocap", label: "Mocap"},+export const RECORDING_TYPE_OPTIONS: {+ value: RecordingTypePreset;+ label: string;+}[] = [+ { value: "none", label: "None" },+ { value: "calibration", label: "Calibration" },+ { value: "mocap", label: "Mocap" },];export const RecordingInfoPanel: React.FC = () => {- const theme = useTheme();- const dispatch = useAppDispatch();- const recordingInfo = useAppSelector((state) => state.recording);- const {config, pendingOperation, countdown} = recordingInfo;- const {- createSubfolder,- useDelayStart,- delaySeconds,- useTimestamp,- useIncrement,- currentIncrement,- baseName,- customSubfolderName,- recordingTag,- micDeviceIndex,- recordingTypePreset,- autoProcess,- } = config;+ const dispatch = useAppDispatch();+ const recordingInfo = useAppSelector((state) => state.recording);+ const { config, pendingOperation, countdown } = recordingInfo;+ const {+ createSubfolder,+ useDelayStart,+ delaySeconds,+ useTimestamp,+ useIncrement,+ currentIncrement,+ baseName,+ customSubfolderName,+ recordingTag,+ micDeviceIndex,+ recordingTypePreset,+ autoProcess,+ } = config;- const {isElectron, api} = useElectronIPC();- const {connectedCameraIds} = useServer();- const noCamerasConnected = connectedCameraIds.length === 0;+ const [pathModalOpen, setPathModalOpen] = useState(false);+ const [mocapSetupModalOpen, setMocapSetupModalOpen] = useState(false);+ const [tagInputVisible, setTagInputVisible] = useState(false);+ const tagInputContainerRef = useRef<HTMLDivElement>(null);+ const [previewTimestamp, setPreviewTimestamp] = useState(() =>+ getTimestampString(),+ );+ const { isElectron, api } = useElectronIPC();+ const { connectedCameraIds } = useServer();+ const { t } = useTranslation();+ const noCamerasConnected = connectedCameraIds.length === 0;- // Timeout fallback - clear pending after 5 seconds if thunk hasn't responded- useEffect(() => {- if (!pendingOperation) return;- const timeoutMs = 5000;- const elapsed = Date.now() - pendingOperation.timestamp;- const remaining = Math.max(0, timeoutMs - elapsed);- const timer = setTimeout(() => {- console.error("Recording " + pendingOperation.type + " operation timed out after " + timeoutMs + "ms");- dispatch(pendingOperationSet(null));- }, remaining);- return () => clearTimeout(timer);- }, [dispatch, pendingOperation]);+ useEffect(() => {+ if (recordingInfo.isRecording) return;+ const id = setInterval(+ () => setPreviewTimestamp(getTimestampString()),+ 1000,+ );+ return () => clearInterval(id);+ }, [recordingInfo.isRecording]);+ useEffect(() => {+ if (!pendingOperation) return;+ const timeoutMs = 5000;+ const elapsed = Date.now() - pendingOperation.timestamp;+ const remaining = Math.max(0, timeoutMs - elapsed);+ const timer = setTimeout(() => {+ console.error(+ "Recording " ++ pendingOperation.type ++ " operation timed out after " ++ timeoutMs ++ "ms",+ );+ dispatch(pendingOperationSet(null));+ }, remaining);+ return () => clearTimeout(timer);+ }, [dispatch, pendingOperation]);- // replace ~ with user's home directory- useEffect(() => {- if (recordingInfo?.recordingDirectory?.startsWith("~") && isElectron && api) {- api.fileSystem.getHomeDirectory.query()- .then((homePath: string) => {- const updatedDirectory = recordingInfo.recordingDirectory.replace(- "~",- homePath- ).replace(/\\/g, "/");- dispatch(recordingInfoUpdated({recordingDirectory: updatedDirectory}));- })- .catch((error: unknown) => {- console.error("Failed to get home directory:", error);- throw error; // Fail loudly as per preferences- });- }- }, [recordingInfo.recordingDirectory, isElectron, api, dispatch]);+ useEffect(() => {+ if (+ recordingInfo?.recordingDirectory?.startsWith("~") &&+ isElectron &&+ api+ ) {+ api.fileSystem.getHomeDirectory+ .query()+ .then((homePath: string) => {+ const updatedDirectory = recordingInfo.recordingDirectory+ .replace("~", homePath)+ .replace(/\\/g, "/");+ dispatch(+ recordingInfoUpdated({ recordingDirectory: updatedDirectory }),+ );+ })+ .catch((error: unknown) => {+ console.error("Failed to get home directory:", error);+ throw error;+ });+ }+ }, [recordingInfo.recordingDirectory, isElectron, api, dispatch]);- // Handle countdown timer- useEffect(() => {- if (countdown === null) return;- if (countdown > 0) {- const timer = setTimeout(() => dispatch(countdownSet(countdown - 1)), 1000);- return () => clearTimeout(timer);- }- // countdown === 0- dispatch(countdownSet(null));- handleStartRecording();- }, [countdown]);+ useEffect(() => {+ if (countdown === null) return;+ if (countdown > 0) {+ const timer = setTimeout(+ () => dispatch(countdownSet(countdown - 1)),+ 1000,+ );+ return () => clearTimeout(timer);+ }+ dispatch(countdownSet(null));+ handleStartRecording();+ }, [countdown]);+ const handleStartRecording = async (): Promise<void> => {+ const ts = getTimestampString();+ const nameParts = useTimestamp ? [ts] : [baseName];+ if (recordingTypePreset !== "none") nameParts.push(recordingTypePreset);+ if (recordingTag) nameParts.push(recordingTag);+ const recordingName = nameParts.join("_");+ const subfolderName = createSubfolder+ ? customSubfolderName || getTimestampString()+ : "";+ const recordingPath = createSubfolder+ ? recordingInfo.recordingDirectory + "/" + subfolderName+ : recordingInfo.recordingDirectory;- const handleStartRecording = async (): Promise<void> => {- console.log("Starting recording...");+ if (useIncrement) dispatch(currentIncrementIncremented());+ dispatch(pendingOperationSet({ type: "start", timestamp: Date.now() }));- const ts = getTimestampString();- const nameParts = useTimestamp ? [ts] : [baseName];- if (recordingTypePreset !== "none") nameParts.push(recordingTypePreset);- if (recordingTag) nameParts.push(recordingTag);- const recordingName = nameParts.join("_");- const subfolderName = createSubfolder- ? customSubfolderName || getTimestampString()- : "";- const recordingPath = createSubfolder- ? recordingInfo.recordingDirectory + "/" + subfolderName- : recordingInfo.recordingDirectory;+ try {+ await dispatch(+ startRecording({+ recordingName,+ recordingDirectory: recordingPath,+ micDeviceIndex,+ }),+ ).unwrap();+ } catch (error) {+ console.error("Failed to start recording:", error);+ dispatch(pendingOperationSet(null));+ throw error;+ }+ };- console.log("Recording path:", recordingPath);- console.log("Recording name:", recordingName);+ const handleRecordButtonClick = async (): Promise<void> => {+ if (pendingOperation) return;- if (useIncrement) {- dispatch(currentIncrementIncremented());+ if (recordingInfo.isRecording) {+ dispatch(pendingOperationSet({ type: "stop", timestamp: Date.now() }));+ try {+ const result = await dispatch(stopRecording()).unwrap();+ if (result && autoProcess && recordingTypePreset === "calibration") {+ dispatch(calibrateRecording());+ } else if (result && autoProcess && recordingTypePreset === "mocap") {+ dispatch(processMocapRecording());}+ } catch (error) {+ console.error("Failed to stop recording:", error);+ dispatch(pendingOperationSet(null));+ throw error;+ }+ } else if (countdown !== null) {+ // Cancel the countdown and return to idle state+ dispatch(countdownSet(null));+ } else if (useDelayStart) {+ dispatch(countdownSet(delaySeconds));+ } else {+ await handleStartRecording();+ }+ };- dispatch(pendingOperationSet({type: 'start', timestamp: Date.now()}));+ // Build display path for the read-only preview+ const previewNameParts = useTimestamp ? [previewTimestamp] : [baseName];+ if (recordingTypePreset !== "none")+ previewNameParts.push(recordingTypePreset);+ if (recordingTag) previewNameParts.push(recordingTag);+ if (useIncrement) previewNameParts.push(String(currentIncrement));+ const previewName = previewNameParts.join("_");+ const displayPath =+ createSubfolder && customSubfolderName+ ? `${recordingInfo.recordingDirectory}/${customSubfolderName}/${previewName}`+ : `${recordingInfo.recordingDirectory}/${previewName}`;- try {- await dispatch(- startRecording({- recordingName,- recordingDirectory: recordingPath,- micDeviceIndex,- })- ).unwrap();- } catch (error) {- console.error("Failed to start recording:", error);- dispatch(pendingOperationSet(null));- throw error; // Fail loudly as per preferences- }- };+ const recordingStartTime = recordingInfo.startedAt+ ? new Date(recordingInfo.startedAt).getTime()+ : null;- const handleRecordButtonClick = async (): Promise<void> => {- if (pendingOperation) {- return;- }+ const handleToggleSettings = () => {+ setMocapSetupModalOpen(true);+ };- if (recordingInfo.isRecording) {- console.log("Stopping recording...");- dispatch(pendingOperationSet({type: 'stop', timestamp: Date.now()}));+ const modalProps = {+ recordingDirectory: recordingInfo.recordingDirectory,+ countdown,+ recordingTag,+ useTimestamp,+ baseName,+ recordingTypePreset,+ useIncrement,+ currentIncrement,+ createSubfolder,+ customSubfolderName,+ isRecording: recordingInfo.isRecording,+ onTagChange: (v: string) => dispatch(recordingTagChanged(v)),+ onNameChange: (v: string) => {+ dispatch(useTimestampToggled(false));+ dispatch(baseNameChanged(v));+ },+ onUseTimestampChange: (v: boolean) => dispatch(useTimestampToggled(v)),+ onBaseNameChange: (v: string) => dispatch(baseNameChanged(v)),+ onUseIncrementChange: (v: boolean) => dispatch(useIncrementToggled(v)),+ onIncrementChange: (v: number) => dispatch(currentIncrementChanged(v)),+ onCreateSubfolderChange: (v: boolean) =>+ dispatch(createSubfolderToggled(v)),+ onCustomSubfolderNameChange: (v: string) =>+ dispatch(customSubfolderNameChanged(v)),+ };- try {- const result = await dispatch(stopRecording()).unwrap();- if (result && autoProcess && recordingTypePreset === "calibration") {- dispatch(calibrateRecording());- } else if (result && autoProcess && recordingTypePreset === "mocap") {- dispatch(processMocapRecording());- }- } catch (error) {- console.error("Failed to stop recording:", error);- dispatch(pendingOperationSet(null));- throw error; // Fail loudly as per preferences- }- } else if (useDelayStart) {- console.log("Starting countdown from " + delaySeconds + " seconds");- dispatch(countdownSet(delaySeconds));- } else {- await handleStartRecording();- }- };+ return (+ <>+ <div className="main-side-actions flex flex-col gap-1 order-3">+ {/* File directory group */}+ <div className="file-directory-group bg-middark br-2 p-1 flex flex-col gap-1 br-1 ">+ <div className="file-directory-group justify-content-space-between flex flex-row">+ <p className="text-nowrap text-left bg-md text-darkgray p-1">+ File directory+ </p>+ <IconButton+ icon={tagInputVisible ? "tag-active-icon" : "tag-icon"}+ tooltip={true}+ tooltipPosition="pos-left"+ tooltipText={tagInputVisible ? "Remove tag" : "Add tag"}+ className={`icon-size-25 ${tagInputVisible ? "activate" : ""}`}+ onClick={() => {+ const newState = !tagInputVisible;+ setTagInputVisible(newState);+ if (newState) {+ // Simulate click on the TextSelector button after render+ setTimeout(() => {+ const btn = tagInputContainerRef.current?.querySelector("button");+ btn?.click();+ }, 0);+ }+ }}+ />+ </div>+ {/* Read-only path preview */}+ <button+ className="button-sm-group gap-1 br-1 button items-center sm fit-content flex-inline text-left items-center text-black full-width w-full"+ onClick={() => setPathModalOpen(true)}+ >+ <span className="icon icon-size-20 subfolder-icon" />+ <p className="text-gray text-nowrap text md text-align-left flex flex-end">+ {displayPath || "Set recording path"}+ </p>+ </button>- return (- <CollapsibleSidebarSection- icon={<FiberManualRecordIcon sx={{color: "inherit"}}/>}- title={"Recording"}- summaryContent={- <RecordingSummary- isRecording={recordingInfo.isRecording}- startedAt={recordingInfo.startedAt}- />- }- primaryControl={- <RecordingHeaderButton- isRecording={recordingInfo.isRecording}- isPending={pendingOperation !== null}- disabled={noCamerasConnected && !recordingInfo.isRecording}- onClick={handleRecordButtonClick}- />- }- secondaryControls={- <Box sx={{display: 'flex', alignItems: 'center', gap: 0.5}}>- <PresetPicker- value={recordingTypePreset}- options={RECORDING_TYPE_OPTIONS}- onChange={(v) => dispatch(recordingTypePresetChanged(v))}- disabled={recordingInfo.isRecording}- size="small"- minWidth={70}- sx={{- '& .MuiSelect-select': {py: 0.25, fontSize: 11, color: 'inherit'},- '& .MuiOutlinedInput-notchedOutline': {borderColor: 'rgba(255,255,255,0.3)'},- '& .MuiSvgIcon-root': {color: 'inherit', fontSize: 14},- }}- />- <FormControlLabel- control={- <Checkbox- checked={autoProcess}- onChange={(e) => dispatch(autoProcessToggled(e.target.checked))}- disabled={recordingTypePreset === "none" || recordingInfo.isRecording}- size="small"- sx={{py: 0, '& .MuiSvgIcon-root': {fontSize: 14}}}- />- }- label="Auto Process"- sx={{- ml: 0,- mr: 0,- '& .MuiFormControlLabel-label': {- fontSize: 10,- opacity: recordingTypePreset === "none" ? 0.5 : 1,- },- }}- />- </Box>+ {/* Tag input */}+ <div ref={tagInputContainerRef}>+ {tagInputVisible && (+ <TextSelector+ value={recordingTag}+ onChange={(v) => dispatch(recordingTagChanged(v))}+ placeholder={t("recordingTagPlaceholder")}+ />+ )}+ </div>++ <RecordingPathModal+ open={pathModalOpen}+ onClose={() => setPathModalOpen(false)}+ {...modalProps}+ />+ </div>++ {/* Record group */}+ <div className="record-group bg-middark br-2 p-1 flex flex-col gap-1 br-1 p-2 pb-2 order-4">+ <div+ className="flex flex-row flex-1 items-center gap-1 w-full"+ onClick={(e) => e.stopPropagation()}+ onMouseDown={(e) => e.stopPropagation()}+ >+ <StartStopRecordingButton+ isRecording={recordingInfo.isRecording}+ isPending={pendingOperation !== null}+ countdown={countdown}+ recordingStartTime={recordingStartTime}+ disabled={noCamerasConnected && !recordingInfo.isRecording}+ tooltipText={+ noCamerasConnected && !recordingInfo.isRecording+ ? t("connectCamerasToRecord")+ : undefined+ }+ onClick={handleRecordButtonClick}+ />+ </div>+ {/* put the delay toggle below here */}+ <DelayRecordingStartControl+ useDelay={useDelayStart}+ delaySeconds={delaySeconds}+ onDelayToggle={(v) => dispatch(useDelayStartToggled(v))}+ onDelayChange={(v) => dispatch(delaySecondsChanged(v))}+ />+ {/* Preset + auto-process */}+ <div className="flex flex-start flex-col items-center gap-1">+ <PresetPicker+ value={recordingTypePreset}+ options={RECORDING_TYPE_OPTIONS}+ onChange={(v) => dispatch(recordingTypePresetChanged(v))}+ disabled={recordingInfo.isRecording}+ />+ <ToggleComponent+ text="Auto Process Mocap"+ isToggled={autoProcess}+ onToggle={(v) => dispatch(autoProcessToggled(v))}+ disabled={+ recordingTypePreset === "none" || recordingInfo.isRecording+ }+ />+ </div>+ <div+ className={+ "streaming-mode mocap-settings-button " ++ (autoProcess &&+ recordingTypePreset !== "none" &&+ !recordingInfo.isRecording+ ? ""+ : "disabled ") ++ "button sm flex-wrap flex pos-rel p-1 br-1 flex-row items-center justify-content-space-between"}- defaultExpanded={false}- >- <Box- sx={{- color: "text.primary",- backgroundColor: theme.palette.background.paper,- borderRadius: 1,- mx: 1,- my: 0.5,- }}- >- <SimpleTreeView- defaultExpandedItems={["recording-settings"]}- slots={{- collapseIcon: ExpandMoreIcon,- expandIcon: ChevronRightIcon,- }}- sx={{- flexGrow: 1,- '& .MuiTreeItem-content': {- padding: '2px 4px',- margin: '1px 0',- },- '& .MuiTreeItem-label': {- fontSize: 13,- padding: '1px 0',- },- }}- >- <Box sx={{px: 1, py: 1}}>- <MicrophoneSelector- selectedMicIndex={micDeviceIndex}- onMicSelected={(idx) => dispatch(micDeviceIndexChanged(idx))}- disabled={recordingInfo.isRecording}- />- </Box>+ onClick={handleToggleSettings}+ >+ <div className=" flex flex-row items-start items-center gap-1">+ <span className="icon subcat-icon icon-size-20" />+ <p className="text-gray text-nowrap text md text-align-left">+ Mocap Settings+ </p>+ </div>+ <div className="group-2 flex flex-row pos-rel items-center gap-1">+ <div className="group-2.2 pos-rel flex flex-col items-center">+ <span className="icon settings-icon icon-size-20" />+ </div>+ </div>+ </div>- <RecordingPathTreeItem- recordingDirectory={recordingInfo.recordingDirectory}- countdown={countdown}- recordingTag={recordingTag}- useDelayStart={useDelayStart}- delaySeconds={delaySeconds}- useTimestamp={useTimestamp}- baseName={baseName}- recordingTypePreset={recordingTypePreset}- useIncrement={useIncrement}- currentIncrement={currentIncrement}- createSubfolder={createSubfolder}- customSubfolderName={customSubfolderName}- isRecording={recordingInfo.isRecording}- onDelayToggle={(v) => dispatch(useDelayStartToggled(v))}- onDelayChange={(v) => dispatch(delaySecondsChanged(v))}- onTagChange={(v) => dispatch(recordingTagChanged(v))}- onUseTimestampChange={(v) => dispatch(useTimestampToggled(v))}- onBaseNameChange={(v) => dispatch(baseNameChanged(v))}- onUseIncrementChange={(v) => dispatch(useIncrementToggled(v))}- onIncrementChange={(v) => dispatch(currentIncrementChanged(v))}- onCreateSubfolderChange={(v) => dispatch(createSubfolderToggled(v))}- onCustomSubfolderNameChange={(v) => dispatch(customSubfolderNameChanged(v))}- />- </SimpleTreeView>- </Box>- </CollapsibleSidebarSection>- );-};+ <MicrophoneSelector+ selectedMicIndex={micDeviceIndex}+ onMicSelected={(idx) => dispatch(micDeviceIndexChanged(idx))}+ disabled={recordingInfo.isRecording}+ />+ </div>+ </div>++ {/* Mocap Setup Modal */}+ {mocapSetupModalOpen && (+ <MocapSetupModal+ mode="recording"+ onClose={() => setMocapSetupModalOpen(false)}+ />+ )}+ </>+ );+};\ No newline at end of filediff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingPathModal.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingPathModal.tsxnew file mode 100644index 00000000..d84e831f--- /dev/null+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingPathModal.tsx@@ -0,0 +1,74 @@+import React, {useEffect, useRef} from 'react';+import useDraggableTooltips from '@/hooks/useDraggableTooltips';+import SubactionHeader from '@/components/ui-components/SubactionHeader';+import IconButton from '@/components/ui-components/IconButton';+import {RecordingPathTreeItem} from './RecordingPathTreeItem';++interface RecordingPathModalProps {+ open: boolean;+ onClose: () => void;+ recordingDirectory: string;+ countdown: number | null;+ recordingTag: string;+ useTimestamp: boolean;+ baseName: string;+ recordingTypePreset: string;+ useIncrement: boolean;+ currentIncrement: number;+ createSubfolder: boolean;+ customSubfolderName: string;+ isRecording: boolean;+ onTagChange: (value: string) => void;+ onNameChange: (value: string) => void;+ onUseTimestampChange: (value: boolean) => void;+ onBaseNameChange: (value: string) => void;+ onUseIncrementChange: (value: boolean) => void;+ onIncrementChange: (value: number) => void;+ onCreateSubfolderChange: (value: boolean) => void;+ onCustomSubfolderNameChange: (value: string) => void;+}++export const RecordingPathModal: React.FC<RecordingPathModalProps> = ({open, onClose, ...itemProps}) => {+ useDraggableTooltips();++ const modalRef = useRef<HTMLDivElement>(null);++ useEffect(() => {+ if (!open) return;++ const handleKeyDown = (e: KeyboardEvent) => {+ if (e.key === 'Escape') onClose();+ };++ const handleClickOutside = (e: MouseEvent) => {+ if (modalRef.current && !modalRef.current.contains(e.target as Node)) {+ onClose();+ }+ };++ window.addEventListener('keydown', handleKeyDown);+ document.addEventListener('mousedown', handleClickOutside);++ return () => {+ window.removeEventListener('keydown', handleKeyDown);+ document.removeEventListener('mousedown', handleClickOutside);+ };+ }, [open, onClose]);++ if (!open) return null;++ return (+ <div+ ref={modalRef}+ className="file-directory-settings-container draggable border-1 border-black elevated-sharp flex flex-col p-1 bg-dark br-2 reveal fadeIn gap-1"+ >+ <div className="flex flex-col right-0 p-2 gap-1 bg-middark br-1 z-1">+ <div className="flex justify-content-space-between items-center">+ <SubactionHeader text="Recording Path & Settings" />+ <IconButton icon="close-icon" onClick={onClose} />+ </div>+ <RecordingPathTreeItem {...itemProps} />+ </div>+ </div>+ );+};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingPathPanel.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingPathPanel.tsxnew file mode 100644index 00000000..305abb08--- /dev/null+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingPathPanel.tsx@@ -0,0 +1,164 @@+import React, { useEffect, useRef, useState } from "react";+import {+ baseNameChanged,+ createSubfolderToggled,+ currentIncrementChanged,+ customSubfolderNameChanged,+ recordingInfoUpdated,+ recordingTagChanged,+ recordingTypePresetChanged,+ useIncrementToggled,+ useTimestampToggled,+} from "@/store/slices/recording/recording-slice";+import type { RecordingTypePreset } from "@/store/slices/recording/recording-types";+import { useAppDispatch, useAppSelector } from "@/store";+import { getTimestampString } from "@/components/control-panels/recording-info-panel/getTimestampString";+import { RecordingPathModal } from "./RecordingPathModal";+import TextSelector from "@/components/ui-components/TextSelector";+import IconButton from "@/components/ui-components/IconButton";+import { useTranslation } from "react-i18next";+import { useElectronIPC } from "@/services/electron-ipc/electron-ipc";++export const RecordingPathPanel: React.FC = () => {+ const dispatch = useAppDispatch();+ const recordingInfo = useAppSelector((state) => state.recording);+ const {+ createSubfolder,+ useTimestamp,+ useIncrement,+ currentIncrement,+ baseName,+ customSubfolderName,+ recordingTag,+ recordingTypePreset,+ } = recordingInfo.config;++ const [pathModalOpen, setPathModalOpen] = useState(false);+ const [tagInputVisible, setTagInputVisible] = useState(false);+ const tagInputContainerRef = useRef<HTMLDivElement>(null);+ const [previewTimestamp, setPreviewTimestamp] = useState(() =>+ getTimestampString(),+ );++ const { isElectron, api } = useElectronIPC();+ const { t } = useTranslation();++ useEffect(() => {+ if (recordingInfo.isRecording) return;+ const id = setInterval(+ () => setPreviewTimestamp(getTimestampString()),+ 1000,+ );+ return () => clearInterval(id);+ }, [recordingInfo.isRecording]);++ useEffect(() => {+ setTagInputVisible(!!recordingTag);+ }, [recordingTag]);++ // Build display path for the read-only preview+ const previewNameParts = useTimestamp ? [previewTimestamp] : [baseName];+ if (recordingTypePreset !== "none")+ previewNameParts.push(recordingTypePreset);+ if (recordingTag) previewNameParts.push(recordingTag);+ if (useIncrement) previewNameParts.push(String(currentIncrement));+ const previewName = previewNameParts.join("_");+ const displayPath =+ createSubfolder && customSubfolderName+ ? `${recordingInfo.recordingDirectory}/${customSubfolderName}/${previewName}`+ : `${recordingInfo.recordingDirectory}/${previewName}`;++ const modalProps = {+ recordingDirectory: recordingInfo.recordingDirectory,+ countdown: null,+ recordingTag,+ useTimestamp,+ baseName,+ recordingTypePreset,+ useIncrement,+ currentIncrement,+ createSubfolder,+ customSubfolderName,+ isRecording: recordingInfo.isRecording,+ onTagChange: (v: string) => dispatch(recordingTagChanged(v)),+ onNameChange: (v: string) => {+ dispatch(useTimestampToggled(false));+ dispatch(baseNameChanged(v));+ },+ onUseTimestampChange: (v: boolean) => dispatch(useTimestampToggled(v)),+ onBaseNameChange: (v: string) => dispatch(baseNameChanged(v)),+ onUseIncrementChange: (v: boolean) => dispatch(useIncrementToggled(v)),+ onIncrementChange: (v: number) => dispatch(currentIncrementChanged(v)),+ onCreateSubfolderChange: (v: boolean) =>+ dispatch(createSubfolderToggled(v)),+ onCustomSubfolderNameChange: (v: string) =>+ dispatch(customSubfolderNameChanged(v)),+ };++ return (+ <div className="file-directory-group bg-middark br-2 p-1 flex flex-col gap-1 br-1">+ <div className="file-directory-group justify-content-space-between flex flex-row items-center">+ <p className="text-nowrap text-left bg-md text-darkgray p-1">+ Set folder directory+ </p>++ <IconButton+ icon={tagInputVisible ? "tag-active-icon" : "tag-icon"}+ tooltip={true}+ tooltipPosition="pos-left"+ tooltipText={tagInputVisible ? "Remove tag" : "Add tag"}+ className={`icon-size-25 ${tagInputVisible ? "activate" : ""}`}+ onClick={() => {+ const newState = !tagInputVisible;+ setTagInputVisible(newState);+ if (newState) {+ setTimeout(() => {+ const btn = tagInputContainerRef.current?.querySelector("button");+ btn?.click();+ }, 0);+ } else {+ dispatch(recordingTagChanged(""));+ }+ }}+ />+ </div>+ {/* Read-only path preview */}+ <div className="file-directory-group justify-content-space-between flex flex-row items-center w-full">+ <button+ className="button-sm-group gap-1 br-1 w-full min-w-full justify-content-space-between button items-center sm fit-content flex-inline text-left items-center text-black "+ onClick={() => setPathModalOpen(true)}+ >+ <div className="gap-1 br-1 flex-1 min-w-0 items-center sm fit-content p-0 flex-inline text-left items-center text-black "+>+ <span className="icon icon-size-20 subfolder-icon" />+ <p className="text-gray text-nowrap text md text-align-left flex flex-end">+ {displayPath || "Set recording path"}+ </p>+ </div>+ <span className="icon icon-size-20 settings-icon"></span>+ </button>++ </div>++ {/* Tag input */}+ <div ref={tagInputContainerRef}>+ {tagInputVisible && (+ <div className="flex flex-row gap-1 p-2 items-center">+ <span className="icon icon-size-20 subcat-icon"></span>+ <TextSelector+ value={recordingTag}+ onChange={(v) => dispatch(recordingTagChanged(v))}+ placeholder={t("recordingTagPlaceholder")}+ />+ </div>+ )}+ </div>++ <RecordingPathModal+ open={pathModalOpen}+ onClose={() => setPathModalOpen(false)}+ {...modalProps}+ />+ </div>+ );+};\ No newline at end of filediff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingPathTreeItem.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingPathTreeItem.tsxindex fb597dbf..d625ba75 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingPathTreeItem.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingPathTreeItem.tsx@@ -1,18 +1,17 @@import React, {useEffect, useState} from 'react';-import {Box, Typography} from '@mui/material';-import {TreeItem} from '@mui/x-tree-view/TreeItem';-import {- FullRecordingPathPreview-} from "@/components/control-panels/recording-info-panel/recording-subcomponents/FullRecordingPathPreview";import {RecordingControlsSection} from "@/components/control-panels/recording-info-panel/RecordingControlsTreeSection";import {getTimestampString} from "@/components/control-panels/recording-info-panel/getTimestampString";+import SubactionHeader from '@/components/ui-components/SubactionHeader';+import TextSelector from '@/components/ui-components/TextSelector';+import {useAppDispatch} from '@/store';+import {recordingDirectoryChanged} from '@/store/slices/recording/recording-slice';+import {useElectronIPC} from '@/services';+import IconButton from '@/components/ui-components/IconButton';interface RecordingPathTreeItemProps {recordingDirectory: string;countdown: number | null;recordingTag: string;- useDelayStart: boolean;- delaySeconds: number;useTimestamp: boolean;baseName: string;recordingTypePreset: string;@@ -21,9 +20,8 @@ interface RecordingPathTreeItemProps {createSubfolder: boolean;customSubfolderName: string;isRecording: boolean;- onDelayToggle: (value: boolean) => void;- onDelayChange: (value: number) => void;onTagChange: (value: string) => void;+ onNameChange: (value: string) => void;onUseTimestampChange: (value: boolean) => void;onBaseNameChange: (value: string) => void;onUseIncrementChange: (value: boolean) => void;@@ -33,96 +31,122 @@ interface RecordingPathTreeItemProps {}export const RecordingPathTreeItem: React.FC<RecordingPathTreeItemProps> = ({- recordingDirectory,- countdown,- recordingTag,- useDelayStart,- delaySeconds,- useTimestamp,- baseName,- recordingTypePreset,- useIncrement,- currentIncrement,- createSubfolder,- customSubfolderName,- isRecording,- onDelayToggle,- onDelayChange,- onTagChange,- onUseTimestampChange,- onBaseNameChange,- onUseIncrementChange,- onIncrementChange,- onCreateSubfolderChange,- onCustomSubfolderNameChange- }) => {- // Tick once per second while not recording so the name preview stays current.- // Isolated here so only this subtree re-renders, not the entire panel.+ recordingDirectory,+ countdown,+ recordingTag,+ useTimestamp,+ baseName,+ recordingTypePreset,+ useIncrement,+ currentIncrement,+ createSubfolder,+ customSubfolderName,+ isRecording,+ onTagChange,+ onNameChange,+ onUseTimestampChange,+ onBaseNameChange,+ onUseIncrementChange,+ onIncrementChange,+ onCreateSubfolderChange,+ onCustomSubfolderNameChange,+}) => {+ const dispatch = useAppDispatch();+ const {api, isElectron} = useElectronIPC();const [previewTimestamp, setPreviewTimestamp] = useState<string>(() => getTimestampString());+useEffect(() => {if (isRecording) return;const id = setInterval(() => setPreviewTimestamp(getTimestampString()), 1000);return () => clearInterval(id);}, [isRecording]);+ const handleSelectDirectory = async (): Promise<void> => {+ if (!isElectron || !api) return;+ try {+ const result: string | null = await api.fileSystem.selectDirectory.mutate();+ if (result) dispatch(recordingDirectoryChanged(result));+ } catch (error) {+ console.error('Failed to select directory:', error);+ }+ };+const nameParts: string[] = [];- if (useTimestamp) {- nameParts.push(previewTimestamp);- } else {- nameParts.push(baseName);- }+ if (useTimestamp) nameParts.push(previewTimestamp);+ else nameParts.push(baseName);if (recordingTypePreset !== "none") nameParts.push(recordingTypePreset);if (recordingTag) nameParts.push(recordingTag);const recordingName = nameParts.join("_");- const subfolder = createSubfolder ? customSubfolderName || previewTimestamp : undefined;return (- <TreeItem- itemId="recording-path"- label={- <Box sx={{display: 'flex', alignItems: 'center', gap: 1}}>- <FullRecordingPathPreview- directory={recordingDirectory}- filename={recordingName}- subfolder={subfolder}- />- </Box>- }- >- <Box- onKeyDown={(e) => e.stopPropagation()}- sx={{pl: 2, pt: 1, display: 'flex', flexDirection: 'column', gap: 2}}- >- {countdown !== null && (- <Typography variant="h4" align="center" color="secondary">- Starting in {countdown}...- </Typography>- )}+ <div className="file-directory-settings-item flex flex-col gap-1" onKeyDown={(e) => e.stopPropagation()}>+ <SubactionHeader text="Recording Folder" />- <RecordingControlsSection- recordingDirectory={recordingDirectory}- recordingName={recordingName}- recordingTag={recordingTag}- useDelayStart={useDelayStart}- delaySeconds={delaySeconds}- useTimestamp={useTimestamp}- baseName={baseName}- useIncrement={useIncrement}- currentIncrement={currentIncrement}- createSubfolder={createSubfolder}- customSubfolderName={customSubfolderName}- isRecording={isRecording}- onDelayToggle={onDelayToggle}- onDelayChange={onDelayChange}- onTagChange={onTagChange}- onUseTimestampChange={onUseTimestampChange}- onBaseNameChange={onBaseNameChange}- onUseIncrementChange={onUseIncrementChange}- onIncrementChange={onIncrementChange}- onCreateSubfolderChange={onCreateSubfolderChange}- onCustomSubfolderNameChange={onCustomSubfolderNameChange}+ {/* Base folder row */}+ <div className="flex items-center gap-1">+ <button+ className="select-path button sm bg-middark br-1 border-1 border-black flex items-center gap-1 text-left flex-1"+ onClick={handleSelectDirectory}+ title="Click to select recording folder"+ disabled={!isElectron}+ >+ <span className="icon subfolder-icon icon-size-20" />+ <p className="recording-path-preview flex text-wrap flex-1 text md">+ {recordingDirectory}+ </p>+ </button>++ <IconButton+ icon="addsubfolder-icon"+ className={`icon-size-25 ${createSubfolder ? 'invisible' : ''}`}+ onClick={() => {+ onCreateSubfolderChange(true);+ onCustomSubfolderNameChange('NewSubfolder');+ }}+ title="Add subfolder"/>- </Box>- </TreeItem>+ </div>++ {/* Subfolder row */}+ {createSubfolder && (+ <div className="flex items-center gap-1 pl-2">+ <span className="icon icon-size-20 subcat-icon" />+ <TextSelector+ value={customSubfolderName}+ onChange={onCustomSubfolderNameChange}+ placeholder="subfolder name"+ popupClassName="directory-input-popup"+ />+ <IconButton+ icon="minus-icon"+ onClick={() => {+ onCreateSubfolderChange(false);+ onCustomSubfolderNameChange('');+ }}+ title="Remove subfolder"+ />+ </div>+ )}++ {countdown !== null && (+ <p className="recording-countdown">{`Starting in ${countdown}...`}</p>+ )}++ <RecordingControlsSection+ recordingName={recordingName}+ recordingTag={recordingTag}+ useTimestamp={useTimestamp}+ baseName={baseName}+ useIncrement={useIncrement}+ currentIncrement={currentIncrement}+ isRecording={isRecording}+ onTagChange={onTagChange}+ onNameChange={onNameChange}+ onUseTimestampChange={onUseTimestampChange}+ onBaseNameChange={onBaseNameChange}+ onUseIncrementChange={onUseIncrementChange}+ onIncrementChange={onIncrementChange}+ />+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingSummary.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingSummary.tsxindex 47c50a2c..0bd74a01 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingSummary.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingSummary.tsx@@ -1,6 +1,4 @@import React, {useEffect, useState} from "react";-import {Chip, Typography, useTheme} from "@mui/material";-import FiberManualRecordIcon from "@mui/icons-material/FiberManualRecord";function formatDuration(startedAt: string): string {const seconds = Math.floor((Date.now() - new Date(startedAt).getTime()) / 1000);@@ -34,48 +32,25 @@ export const RecordingSummary: React.FC<RecordingSummaryProps> = ({const id = setInterval(() => setRecordingDuration(formatDuration(startedAt)), 1000);return () => clearInterval(id);}, [isRecording, startedAt]);- const theme = useTheme();if (!isRecording) {return (- <Typography- variant="caption"- sx={{- color: theme.palette.grey[400],- fontWeight: 500,- whiteSpace: "nowrap",- }}- >+ <span className="text sm text-gray text-nowrap" style={{fontWeight: 500}}>Ready- </Typography>+ </span>);}return (- <Chip- icon={<FiberManualRecordIcon sx={{ fontSize: 10 }} />}- label={recordingDuration || "Recording..."}- size="small"- sx={{- height: 20,- fontSize: 11,- fontWeight: 600,- backgroundColor: theme.palette.error.main,- color: theme.palette.error.contrastText,+ <span+ className="tag text sm"+ style={{+ backgroundColor: 'var(--color-danger)',+ color: '#fff',animation: 'pulse-record 2s infinite ease-in-out',- '@keyframes pulse-record': {- '0%, 100%': { opacity: 1 },- '50%': { opacity: 0.7 },- },- "& .MuiChip-icon": {- color: "inherit",- animation: 'pulse-dot 1s infinite ease-in-out',- '@keyframes pulse-dot': {- '0%, 100%': { opacity: 1 },- '50%': { opacity: 0.4 },- },- },}}- />+ >+ {recordingDuration || "Recording..."}+ </span>);};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/BaseRecordingDirectoryInput.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/BaseRecordingDirectoryInput.tsxdeleted file mode 100644index 4a73452b..00000000--- a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/BaseRecordingDirectoryInput.tsx+++ /dev/null@@ -1,78 +0,0 @@-import React from 'react';-import {useTranslation} from 'react-i18next';-import {IconButton, InputAdornment, TextField} from '@mui/material';-import FolderOpenIcon from '@mui/icons-material/FolderOpen';-import {useAppDispatch} from '@/store';-import {recordingDirectoryChanged} from '@/store/slices/recording/recording-slice';-import {useElectronIPC} from '@/services';--interface DirectoryInputProps {- value: string;-}--export const BaseRecordingDirectoryInput: React.FC<DirectoryInputProps> = ({ value }) => {- const dispatch = useAppDispatch();- const { api, isElectron } = useElectronIPC();- const { t } = useTranslation();-- const handleSelectDirectory = async (): Promise<void> => {- // Only try to use electron API if we're in electron environment- if (!isElectron || !api) {- console.warn('Electron API not available');- return;- }-- try {- const result: string | null = await api.fileSystem.selectDirectory.mutate();- if (result) {- // Use the specific action for recording directory changes- dispatch(recordingDirectoryChanged(result));- }- } catch (error) {- console.error('Failed to select directory:', error);- }- };-- const handleInputChange = async (e: React.ChangeEvent<HTMLInputElement>): Promise<void> => {- const newPath: string = e.target.value;-- // Handle tilde expansion for home directory- if (newPath.includes('~') && isElectron && api) {- try {- const home: string = await api.fileSystem.getHomeDirectory.query();- // Replace ~ at the beginning of the path with home directory- const expanded: string = newPath.replace(/^~(\/|\\)?/, home ? `${home}$1` : '');- dispatch(recordingDirectoryChanged(expanded));- } catch (error) {- console.error('Failed to expand home directory:', error);- // Fall back to using the path as-is- dispatch(recordingDirectoryChanged(newPath));- }- } else {- dispatch(recordingDirectoryChanged(newPath));- }- };-- return (- <TextField- label={t("recordingDirectory")}- value={value}- onChange={handleInputChange}- fullWidth- size="small"- InputProps={{- endAdornment: (- <InputAdornment position="end">- <IconButton- onClick={handleSelectDirectory}- edge="end"- disabled={!isElectron}- >- <FolderOpenIcon />- </IconButton>- </InputAdornment>- ),- }}- />- );-};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/DelayRecordingStartControl.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/DelayRecordingStartControl.tsxindex a82a97c8..bad1f194 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/DelayRecordingStartControl.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/DelayRecordingStartControl.tsx@@ -1,45 +1,47 @@-import React from 'react';-import {useTranslation} from 'react-i18next';-import {Box, Checkbox, FormControlLabel, TextField, useTheme} from '@mui/material';+import React from "react";+import { useTranslation } from "react-i18next";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import ValueSelector from "@/components/ui-components/ValueSelector";interface DelayStartControlProps {- useDelay: boolean;- delaySeconds: number;- onDelayToggle: (checked: boolean) => void;- onDelayChange: (seconds: number) => void;+ useDelay: boolean;+ delaySeconds: number;+ onDelayToggle: (checked: boolean) => void;+ onDelayChange: (seconds: number) => void;}export const DelayRecordingStartControl: React.FC<DelayStartControlProps> = ({- useDelay,- delaySeconds,- onDelayToggle,- onDelayChange- }) => {- const theme = useTheme();- const { t } = useTranslation();- return (- <Box display="flex" alignItems="center" gap={2}>- <FormControlLabel- control={- <Checkbox- checked={useDelay}- onChange={(e) => onDelayToggle(e.target.checked)}- color="primary"- />- }- label={t("delayStart")}+ useDelay,+ delaySeconds,+ onDelayToggle,+ onDelayChange,+}) => {+ const { t } = useTranslation();+ return (+ <div className="delay-recording flex items-center gap-1 flex-wrap align-end flex-end">+ <ToggleComponent+ text={t("delayStart")}+ isToggled={useDelay}+ onToggle={onDelayToggle}+ />+ <div className="w-full flex items-center gap-1 flex-wrap justify-content-space-between">++ {useDelay && (+ <div className="flex flex-row justify-content-space-between items-center w-full px-2">+ <div className="flex items-center gap-1 flex-wrap">+ <span className="icon icon-size-20 subcat-icon"></span>+ <p className="text-left text-white">{t("StartAfter")}</p>+ </div>+ <ValueSelector+ value={delaySeconds}+ min={1}+ max={60}+ unit="s"+ onChange={onDelayChange}/>- {useDelay && (- <TextField- label={t("seconds")}- type="number"- value={delaySeconds}- onChange={(e) => onDelayChange(Math.max(1, parseInt(e.target.value) || 1))}- inputProps={{min: 1, step: 1}}- size="small"- sx={{width: 100}}- />- )}- </Box>- );+ </div>+ )}+ </div>+ </div>+ );};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/FullRecordingPathPreview.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/FullRecordingPathPreview.tsxdeleted file mode 100644index 5228baca..00000000--- a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/FullRecordingPathPreview.tsx+++ /dev/null@@ -1,143 +0,0 @@-// freemocap-ui/src/components/recording-info-panel/recording-subcomponents/FullRecordingPathPreview.tsx-import React from 'react';-import {Box, IconButton, Paper, Tooltip, Typography, useTheme} from '@mui/material';-import FolderIcon from '@mui/icons-material/Folder';-import FolderSpecialIcon from '@mui/icons-material/FolderSpecial';-import {useTranslation} from "react-i18next";-import ChevronRightIcon from '@mui/icons-material/ChevronRight';-import FolderOpenIcon from '@mui/icons-material/FolderOpen';-import {useElectronIPC} from "@/services";---interface FullPathPreviewProps {- directory: string;- subfolder?: string;- filename: string;-}--export const FullRecordingPathPreview: React.FC<FullPathPreviewProps> = ({- directory,- filename,- subfolder- }) => {- const theme = useTheme();- const { t } = useTranslation();- const { api } = useElectronIPC()- const parts = [- {icon: <FolderIcon/>, text: directory},- ...(subfolder ? [{icon: <FolderIcon/>, text: subfolder}] : []),- {icon: <FolderSpecialIcon/>, text: filename}- ];-- const fullPath: string = parts.map(p => p.text).join('/');-- // Get the directory path only (without the filename)- const directoryToOpen: string = subfolder- ? `${directory}/${subfolder}`- : directory;--- const handleOpenFolder = async () => {- try {- await api?.fileSystem.openFolder.mutate({ path: directoryToOpen });- } catch (error) {- console.error('Failed to open folder:', error);- }- };-- return (- <Paper- elevation={0}- sx={{- p: 1.5,- backgroundColor: theme.palette.mode === 'dark'- ? 'rgba(255, 255, 255, 0.05)'- : 'rgba(0, 0, 0, 0.04)',- borderRadius: 1,- borderStyle: 'solid',- borderColor: theme.palette.divider,- }}- >- <Box sx={{- display: 'flex',- justifyContent: 'space-between',- alignItems: 'center',- mb: 1- }}>--- {/* Mobile/Narrow view */}- <Box sx={{display: {xs: 'block', md: 'none'}}}>- <Tooltip title={fullPath} placement="bottom-start">- <Typography- noWrap- sx={{- fontFamily: 'monospace',- fontSize: '0.9rem',- cursor: 'pointer'- }}- >- {fullPath}- </Typography>- </Tooltip>- </Box>-- {/* Desktop view */}- <Box- sx={{- display: {xs: 'none', md: 'flex'},- alignItems: 'center',- flexWrap: 'wrap',- gap: 0.5- }}- >- {parts.map((part, index) => (- <React.Fragment key={index}>- <Box sx={{- display: 'flex',- alignItems: 'center',- color: 'text.secondary',- // backgroundColor: 'background.paper',- borderRadius: 1,- px: 1,- py: 0.5,- }}>- {part.icon}- <Typography- sx={{- ml: 0.5,- fontFamily: 'monospace',- fontSize: '0.9rem'- }}- >- {part.text}- </Typography>- </Box>- {index < parts.length - 1 && (- <ChevronRightIcon sx={{color: 'text.secondary'}}/>- )}- </React.Fragment>- ))}- </Box>-- <Tooltip title={t("openFolder")}>- <IconButton- size="small"- onClick={handleOpenFolder}- sx={{- color: theme.palette.primary.contrastText,- '&:hover': {- backgroundColor: theme.palette.mode === 'dark'- ? 'rgba(255, 255, 255, 0.08)'- : 'rgba(0, 0, 0, 0.04)'- }- }}- >- <FolderOpenIcon fontSize="small"/>- </IconButton>- </Tooltip>- </Box>-- </Paper>- );-};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/MicrophoneSelector.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/MicrophoneSelector.tsxindex e2926a42..45a4b8a5 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/MicrophoneSelector.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/MicrophoneSelector.tsx@@ -1,112 +1,118 @@-import React, {useEffect, useState} from "react";-import {useTranslation} from "react-i18next";-import {Box, FormControl, IconButton, MenuItem, Select, Tooltip, Typography,} from "@mui/material";-import {Mic, MicOff, Refresh} from "@mui/icons-material";-import {serverUrls} from "@/services";+import React, { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";+import clsx from "clsx";+import NameDropdownSelector from "@/components/ui-components/NameDropdownSelector";+import ButtonSm from "@/components/ui-components/ButtonSm";+import { serverUrls } from "@/services";type MicrophoneSelectorProps = {- selectedMicIndex: number;- onMicSelected: (micIndex: number) => void;- disabled: boolean;+ selectedMicIndex: number;+ onMicSelected: (micIndex: number) => void;+ disabled: boolean;};type MicrophoneMap = Record<number, string>;+const NO_MIC_LABEL = "No microphone";+export const MicrophoneSelector: React.FC<MicrophoneSelectorProps> = ({- selectedMicIndex,- onMicSelected,- disabled,+ selectedMicIndex,+ onMicSelected,+ disabled,}) => {- const [microphones, setMicrophones] = useState<MicrophoneMap>({});- const [loading, setLoading] = useState<boolean>(false);- const [error, setError] = useState<string | null>(null);- const { t } = useTranslation();-- const detectMicrophones = async (): Promise<void> => {- setLoading(true);- setError(null);- try {- const response = await fetch(serverUrls.endpoints.detectMicrophones);- if (!response.ok) {- throw new Error(`Failed to detect microphones: ${response.statusText}`);- }- const data = await response.json();- setMicrophones(data.microphones ?? {});- } catch (e) {- const msg = e instanceof Error ? e.message : String(e);- setError(msg);- console.error("Microphone detection failed:", msg);- } finally {- setLoading(false);- }- };+ const [microphones, setMicrophones] = useState<MicrophoneMap>({});+ const [loading, setLoading] = useState<boolean>(false);+ const [error, setError] = useState<string | null>(null);+ const { t } = useTranslation();- // Detect on mount- useEffect(() => {- detectMicrophones();- }, []);+ const detectMicrophones = async (): Promise<void> => {+ setLoading(true);+ setError(null);+ try {+ const response = await fetch(serverUrls.endpoints.detectMicrophones);+ if (!response.ok) throw new Error(`Failed: ${response.statusText}`);+ const data = await response.json();+ setMicrophones(data.microphones ?? {});+ } catch (e) {+ const msg = e instanceof Error ? e.message : String(e);+ setError(msg);+ console.error("Microphone detection failed:", msg);+ } finally {+ setLoading(false);+ }+ };- const micEntries = Object.entries(microphones).map(([id, name]) => ({- id: Number(id),- name: name as string,- }));+ useEffect(() => {+ detectMicrophones();+ }, []);- const isActive = selectedMicIndex >= 0;+ const micEntries = Object.entries(microphones).map(([id, name]) => ({+ id: Number(id),+ name: name as string,+ }));- return (- <Box sx={{display: "flex", alignItems: "center", gap: 0.5, minWidth: 0}}>- <Tooltip title={isActive ? t("audioRecordingEnabled") : t("noMicrophoneSelected")}>- {isActive ? (- <Mic sx={{fontSize: 16, color: "success.main", flexShrink: 0}}/>- ) : (- <MicOff sx={{fontSize: 16, color: "text.disabled", flexShrink: 0}}/>- )}- </Tooltip>+ const options = [NO_MIC_LABEL, ...micEntries.map((m) => m.name)];+ const selectedName =+ selectedMicIndex >= 0+ ? (micEntries.find((m) => m.id === selectedMicIndex)?.name ??+ NO_MIC_LABEL)+ : NO_MIC_LABEL;- <FormControl size="small" sx={{minWidth: 120, flex: 1}} disabled={disabled || loading}>- <Select- value={selectedMicIndex}- onChange={(e) => onMicSelected(Number(e.target.value))}- displayEmpty- sx={{- fontSize: "0.75rem",- height: 28,- "& .MuiSelect-select": {py: 0.25},- }}- >- <MenuItem value={-1}>- <Typography variant="caption" color="text.secondary">- {t('noMicrophone')}- </Typography>- </MenuItem>- {micEntries.map(({id, name}) => (- <MenuItem key={id} value={id}>- <Typography variant="caption" noWrap>- {name}- </Typography>- </MenuItem>- ))}- </Select>- </FormControl>+ const handleChange = (name: string) => {+ if (name === NO_MIC_LABEL) {+ onMicSelected(-1);+ return;+ }+ const mic = micEntries.find((m) => m.name === name);+ if (mic) onMicSelected(mic.id);+ };- <Tooltip title={t("refreshMicrophoneList")}>- <span>- <IconButton- size="small"- onClick={detectMicrophones}- disabled={disabled || loading}- sx={{p: 0.25, flexShrink: 0}}- >- <Refresh sx={{fontSize: 14}}/>- </IconButton>- </span>- </Tooltip>-- {error && (- <Typography variant="caption" color="error" noWrap sx={{fontSize: "0.65rem"}}>- {error}- </Typography>+ return (+ <div className="microphone-selector-group flex flex-row gap-1">+ <div className="flex items-center gap-1 flex-row justify-content-space-between min-w-0 w-full">+ <div className="flex items-center gap-1 flex-1 flex-row min-w-0">+ <span+ className={clsx(+ "icon icon-size-20",+ selectedMicIndex >= 0 ? "mic-active-icon" : "mic-icon",+ )}+ />+ <div+ className={clsx(+ "flex-1 w-full w-inherit min-w-0",+ (disabled || loading) && "disabled",)}- </Box>- );+ >+ <NameDropdownSelector+ DropdownclassName="bottom-100 top-unset left-0 w-inherit min-w-0"+ className=""+ options={options}+ initialValue={selectedName}+ onChange={handleChange}+ />+ </div>+ </div>+ <ButtonSm+ iconClass={loading ? "loader-icon" : "rotate-icon"}+ text=""+ textColor="text-gray"+ onClick={detectMicrophones}+ buttonType={disabled || loading ? "disabled" : ""}+ title={t("refreshMicrophoneList")}+ tooltip={true}+ tooltipPosition="pos-left"+ tooltipText={t("refreshMicrophoneList")}+ />+ </div>+ {error && (+ <p+ className="error-message text-center text sm text-error text-nowrap overflow-hidden"+ style={{ textOverflow: "ellipsis" }}+ title={error}+ >+ {error}+ </p>+ )}+ </div>+ );};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/RecordingNamePreview.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/RecordingNamePreview.tsxindex e7877915..ea1a46ed 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/RecordingNamePreview.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/RecordingNamePreview.tsx@@ -1,39 +1,40 @@import React from 'react';-import {useTranslation} from 'react-i18next';-import {TextField, Typography} from '@mui/material';+import { useTranslation } from 'react-i18next';+import TextSelector from '@/components/ui-components/TextSelector';+import SubactionHeader from '@/components/ui-components/SubactionHeader';interface RecordingNamePreviewProps {name: string;tag: string;isRecording: boolean;onTagChange: (tag: string) => void;+ onNameChange: (name: string) => void;}export const RecordingNamePreview: React.FC<RecordingNamePreviewProps> = ({- name,- tag,- isRecording,- onTagChange- }) => {+ name, tag, isRecording, onTagChange, onNameChange,+}) => {const { t } = useTranslation();return (- <>- <Typography variant="body2" sx={{mb: 1}}>- {t('recordingName', { name })}- </Typography>+ <div className="flex flex-col gap-1">+ <SubactionHeader text="Recording Name" />+ {!isRecording ? (+ <TextSelector+ value={name}+ onChange={onNameChange}+ placeholder={t("recordingName")}+ popupClassName="directory-input-popup"+ />+ ) : (+ <p className="text sm text-gray recording-path-preview">{name}</p>+ )}{!isRecording && (- <TextField- label={t("recordingTag")}+ <TextSelectorvalue={tag}- onChange={(e) => onTagChange(e.target.value)}- onKeyDown={(e) => {- // Stop the TreeView from intercepting keyboard navigation- e.stopPropagation();}}- size="small"- fullWidth+ onChange={onTagChange}placeholder={t("recordingTagPlaceholder")}/>)}- </>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/RecordingSettingsSection.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/RecordingSettingsSection.tsxindex a22b8282..8fe8f960 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/RecordingSettingsSection.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/RecordingSettingsSection.tsx@@ -1,155 +1,62 @@import React from 'react';-import {useTranslation} from 'react-i18next';-import {Box, Checkbox, FormControlLabel, TextField, Typography, useTheme} from '@mui/material';+import { useTranslation } from 'react-i18next';+import ToggleComponent from '@/components/ui-components/ToggleComponent';+import SubactionHeader from '@/components/ui-components/SubactionHeader';+import TextSelector from '@/components/ui-components/TextSelector';+import ValueSelector from '@/components/ui-components/ValueSelector';interface RecordingSettingsProps {useTimestamp: boolean;baseName: string;useIncrement: boolean;currentIncrement: number;- createSubfolder: boolean;- customSubfolderName: string;onUseTimestampChange: (value: boolean) => void;onBaseNameChange: (value: string) => void;onUseIncrementChange: (value: boolean) => void;onIncrementChange: (value: number) => void;- onCreateSubfolderChange: (value: boolean) => void;- onCustomSubfolderNameChange: (value: string) => void;}-/** A compact row: checkbox on the left, optional input filling remaining space. */-const SettingRow: React.FC<{- checked: boolean;- label: string;- onCheck: (value: boolean) => void;- children?: React.ReactNode;-}> = ({checked, label, onCheck, children}) => (- <Box sx={{display: 'flex', alignItems: 'center', gap: 0.5, minHeight: 32}}>- <FormControlLabel- control={- <Checkbox- checked={checked}- onChange={(e) => onCheck(e.target.checked)}- size="small"- sx={{p: 0.25}}- />- }- label={label}- sx={{- mr: 0,- flexShrink: 0,- whiteSpace: 'nowrap',- '& .MuiFormControlLabel-label': {fontSize: 12},- }}- />- {children && (- <Box sx={{flex: 1, minWidth: 0}}>- {children}- </Box>- )}- </Box>-);--/** Compact text field that aligns vertically with checkboxes (no floating label). */-const CompactTextField: React.FC<{- value: string | number;- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;- placeholder: string;- disabled: boolean;- type?: string;- inputProps?: React.InputHTMLAttributes<HTMLInputElement>;- fullWidth?: boolean;- sx?: object;-}> = ({value, onChange, placeholder, disabled, type, inputProps, fullWidth = true, sx}) => (- <TextField- value={value}- onChange={onChange}- placeholder={placeholder}- disabled={disabled}- type={type}- inputProps={inputProps}- size="small"- fullWidth={fullWidth}- sx={{- '& .MuiOutlinedInput-root': {- height: 28,- fontSize: 12,- },- '& .MuiOutlinedInput-input': {- py: 0.5,- px: 1,- },- ...sx,- }}- />-);-export const RecordingSettingsSection: React.FC<RecordingSettingsProps> = ({- useTimestamp,- baseName,- useIncrement,- currentIncrement,- createSubfolder,- customSubfolderName,- onUseTimestampChange,- onBaseNameChange,- onUseIncrementChange,- onIncrementChange,- onCreateSubfolderChange,- onCustomSubfolderNameChange,- }) => {- const theme = useTheme();+ useTimestamp, baseName, useIncrement, currentIncrement,+ onUseTimestampChange, onBaseNameChange, onUseIncrementChange, onIncrementChange,+}) => {const { t } = useTranslation();return (- <Box sx={{- mt: 1,- p: 1.5,- bgcolor: theme.palette.mode === 'dark'- ? 'rgba(255, 255, 255, 0.05)'- : 'rgba(0, 0, 0, 0.04)',- borderRadius: 1,- display: 'flex',- flexDirection: 'column',- gap: 0.5,- }}>- <Typography variant="subtitle2" sx={{mb: 0.5, fontSize: 13, fontWeight: 600}}>- {t('recordingSettings')}- </Typography>-- {/* Timestamp toggle + base name input */}- <SettingRow checked={useTimestamp} label={t("timestamp")} onCheck={onUseTimestampChange}>- <CompactTextField- value={baseName}- onChange={(e) => onBaseNameChange(e.target.value)}- placeholder={t("baseName")}- disabled={useTimestamp}+ <div className="flex flex-col gap-1 bg-middark br-1">+ <SubactionHeader text={t('recordingSettings')} />++ <div className="flex flex-col gap-1">+ <ToggleComponent+ text={t("timestamp")}+ isToggled={useTimestamp}+ onToggle={onUseTimestampChange}/>- </SettingRow>-- {/* Subfolder toggle + custom name input */}- <SettingRow checked={createSubfolder} label={t("subfolder")} onCheck={onCreateSubfolderChange}>- <CompactTextField- value={customSubfolderName}- onChange={(e) => onCustomSubfolderNameChange(e.target.value)}- placeholder={t("subfolderPlaceholder")}- disabled={!createSubfolder}- />- </SettingRow>-- {/* Auto-increment toggle + number input */}- <SettingRow checked={useIncrement} label={t("increment")} onCheck={onUseIncrementChange}>- <CompactTextField- value={currentIncrement}- onChange={(e) => onIncrementChange(parseInt(e.target.value) || 1)}- placeholder="#"- disabled={!useIncrement}- type="number"- inputProps={{min: 1, step: 1}}- fullWidth={false}- sx={{maxWidth: 64}}+ {!useTimestamp && (+ <TextSelector+ value={baseName}+ onChange={onBaseNameChange}+ placeholder={t("baseName")}+ />+ )}+ </div>++ <div className="flex flex-col gap-1 align-end">+ <ToggleComponent+ text={t("increment")}+ isToggled={useIncrement}+ onToggle={onUseIncrementChange}/>- </SettingRow>- </Box>+ {useIncrement && (+ <ValueSelector+ value={currentIncrement}+ min={1}+ max={9999}+ unit=""+ onChange={onIncrementChange}+ />+ )}+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/StartStopRecordingButton.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/StartStopRecordingButton.tsxindex 01e57270..ecd5068b 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/StartStopRecordingButton.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/recording-subcomponents/StartStopRecordingButton.tsx@@ -1,6 +1,5 @@import React, {useEffect, useState} from 'react';-import {Box, Button, CircularProgress, keyframes, Typography} from '@mui/material';-import {styled} from '@mui/system';+import clsx from 'clsx';import {useTranslation} from 'react-i18next';interface StartStopButtonProps {@@ -10,149 +9,88 @@ interface StartStopButtonProps {recordingStartTime: number | null;disabled: boolean;onClick: () => void;+ tooltipText?: string;}-const pulseAnimation = keyframes`- 0% {- background-color: #fb1402;- }- 50% {- background-color: #711c1c;- }- 100% {- background-color: #fb1402;- }-`;--// Use shouldForwardProp to prevent custom props from being passed to the DOM-const PulsingButton = styled(Button, {- shouldForwardProp: (prop) => !['isRecording', 'isPending'].includes(prop as string)-})<{ isRecording: boolean; isPending: boolean }>(({ isRecording, isPending }) => ({- backgroundColor: isRecording ? '#8d0a02' : '#005d94',- borderStyle: 'solid',- borderWidth: '3px',- borderColor: isPending ? '#ffa500' : '#ff55ff',- padding: 10,- position: 'relative',- transition: 'all 0.3s ease',- opacity: isPending ? 0.8 : 1,- '&:hover': {- borderColor: isPending ? '#ffa500' : '#fb1402',- borderWidth: '3px',- },- '&:disabled': {- opacity: 0.8,- cursor: 'not-allowed',- },- ...(isRecording && !isPending && {- animation: `${pulseAnimation} 3s infinite ease-in-out`,- }),-}));-const formatDuration = (seconds: number): string => {const hours = Math.floor(seconds / 3600);const minutes = Math.floor((seconds % 3600) / 60);const secs = seconds % 60;-const parts: string[] = [];- if (hours > 0) {- parts.push(hours.toString().padStart(2, '0'));- }+ if (hours > 0) parts.push(hours.toString().padStart(2, '0'));parts.push(minutes.toString().padStart(2, '0'));parts.push(secs.toString().padStart(2, '0'));-return parts.join(':');};export const StartStopRecordingButton: React.FC<StartStopButtonProps> = ({- isRecording,- isPending,- countdown,- recordingStartTime,- disabled,- onClick+ isRecording, isPending, countdown, recordingStartTime, disabled, onClick, tooltipText,}) => {const [recordingDuration, setRecordingDuration] = useState<number>(0);- const { t } = useTranslation();+ const {t} = useTranslation();- // Update recording duration every seconduseEffect(() => {if (!isRecording || !recordingStartTime || isPending) {setRecordingDuration(0);return;}-- const updateDuration = (): void => {- const now = Date.now();- const duration = Math.floor((now - recordingStartTime) / 1000);- setRecordingDuration(duration);- };-- // Update immediately- updateDuration();-- // Then update every second- const interval = setInterval(updateDuration, 1000);-+ const update = () => setRecordingDuration(Math.floor((Date.now() - recordingStartTime) / 1000));+ update();+ const interval = setInterval(update, 1000);return () => clearInterval(interval);}, [isRecording, recordingStartTime, isPending]);- const getButtonContent = (): React.ReactNode => {- // Show countdown if active- if (countdown !== null && countdown > 0) {- return (- <Box display="flex" alignItems="center" gap={1}>- <Typography variant="h6">- {t('startingIn', { countdown })}- </Typography>- </Box>- );- }-- // Show pending state- if (isPending) {- return (- <Box display="flex" alignItems="center" gap={1}>- <CircularProgress size={20} color="inherit" />- <Typography variant="h6">- {isRecording ? t('stopping') : t('starting')}- </Typography>- </Box>- );- }+ const isDisabled = disabled || isPending;- // Show recording state with duration- if (isRecording) {- return (- <Box display="flex" flexDirection="column" alignItems="center">- <Typography variant="h6">- {t('stopRecordingButton')}- </Typography>- <Typography variant="caption" sx={{ fontSize: '0.9rem', fontFamily: 'monospace' }}>- {formatDuration(recordingDuration)}- </Typography>- </Box>- );- }+ const buttonEl = (+ <button+ className={clsx(+ "accent text-nowrap flex flex-row flex-1 gap-1 br-1 button sm min-w-fit-content flex-inline text-left items-center full-width primary justify-center",+ isRecording ? "record-button-active" : isPending ? "record-button-pending" : "accent",+ )}+ onClick={onClick}+ disabled={isDisabled}+ style={isDisabled && tooltipText ? {pointerEvents: "none"} : undefined}+ >+ {countdown !== null && countdown > 0 ? (+ <div className="flex items-center gap-1">+ <span className="icon loader-icon icon-size-20" />+ <p className="text bg text-white">{t('startingIn', {countdown})}</p>+ </div>+ ) : isPending ? (+ <div className="flex items-center gap-1">+ <span className="icon loader-icon icon-size-20" />+ <p className="text bg text-white">{isRecording ? t('stopping') : t('starting')}</p>+ </div>+ ) : isRecording ? (+ <div className="flex flex-row items-center gap-1">+ <div className="flex items-center gap-1">+ <span className="icon stop-icon icon-size-20" />+ <p className="text bg text-white">{t('stopRecordingButton')}</p>+ </div>+ <p className="record-button-duration text bg text-white items-center">{formatDuration(recordingDuration)}</p>+ </div>+ ) : (+ <div className="flex items-center gap-1">+ <span className="icon record-icon icon-size-20" />+ <p className="text bg text-white">{t('startRecordingButton')}</p>+ </div>+ )}+ </button>+ );- // Default start state+ if (isDisabled && tooltipText) {return (- <Typography variant="h6">- {t('startRecordingButton')}- </Typography>+ <div className="tooltip-wrapper pos-rel flex flex-1 w-full" style={{opacity: 0.5, cursor: "not-allowed"}}>+ {buttonEl}+ <div className={clsx("tooltip-container elevated-sharp pos-top p-01 br-2 bg-dark")}>+ <div className="tooltip-inner br-1 pl-2 pr-2 pt-1 pb-1 border-1 border-mid-black border-solid">+ <p className="text-white text md">{tooltipText}</p>+ </div>+ </div>+ </div>);- };+ }- return (- <PulsingButton- onClick={onClick}- variant="contained"- isRecording={isRecording}- isPending={isPending}- disabled={disabled || isPending || countdown !== null}- fullWidth- >- {getButtonContent()}- </PulsingButton>- );+ return buttonEl;};diff --git a/freemocap-ui/src/components/control-panels/server-connection/ServerConnectionStatus.tsx b/freemocap-ui/src/components/control-panels/server-connection/ServerConnectionStatus.tsxindex 5cecfbab..86f82273 100644--- a/freemocap-ui/src/components/control-panels/server-connection/ServerConnectionStatus.tsx+++ b/freemocap-ui/src/components/control-panels/server-connection/ServerConnectionStatus.tsx@@ -1,31 +1,269 @@-import React from 'react';-import {Box, Collapse} from '@mui/material';-import {useServerPanel} from './useServerPanel';-import {ServerStatusBar} from './ServerStatusBar';-import {ServerProcessSection} from './ServerProcessSection';-import {WebSocketSection} from './WebSocketSection';--export const ServerConnectionStatus: React.FC = () => {+import React, { useState } from 'react';+import { useTranslation } from 'react-i18next';+import { useServerPanel } from './useServerPanel';+import DropdownButton from '@/components/ui-components/DropdownButton';+import ToggleButtonComponent from '@/components/ui-components/ToggleButtonComponent';+import ToggleComponent from '@/components/ui-components/ToggleComponent';+import SubactionHeader from '@/components/ui-components/SubactionHeader';+import NameDropdownSelector from '@/components/ui-components/NameDropdownSelector';+import IconButton from '@/components/ui-components/IconButton';+import ButtonSm from '@/components/ui-components/ButtonSm';+import { STATES } from '@/components/ui-components/states';++export const ServerConnectionStatus: React.FC<{ compact?: boolean }> = ({ compact = false }) => {+ const { t } = useTranslation();const panel = useServerPanel();- const {theme, expanded, setExpanded, isElectron} = panel;+ const {+ isConnected, connectedCameraIds, isElectron,+ autoConnectWs, autoLaunchServer,+ serverRunning, serverLoading, currentExePath,+ candidates, candidatesLoading, processInfo, error,+ selectedExePath, setSelectedExePath,+ hostDraft, setHostDraft, portDraft, setPortDraft,+ startServer, stopServer, resetServer,+ refreshCandidates, browseForExecutable,+ handleToggleAutoLaunch, handleToggleAutoConnectWs,+ handleToggleServerRunning, handleToggleWsConnected,+ applyHostPort, handleHostPortKeyDown,+ } = panel;++ const [showAdvancedSettings, setShowAdvancedSettings] = useState(false);++ const serverState = serverRunning ? STATES.CONNECTED : serverLoading ? STATES.CONNECTING : STATES.DISCONNECTED;+ const wsState = isConnected ? STATES.CONNECTED : autoConnectWs ? STATES.CONNECTING : STATES.DISCONNECTED;++ const getOverallStatus = () => {+ const states = isElectron ? [serverState, wsState] : [wsState];+ if (states.every((s) => s === STATES.CONNECTED)) return { text: t('connected'), iconClass: 'connected-icon' };+ if (states.some((s) => s === STATES.CONNECTING)) return { text: t('connecting'), iconClass: 'loader-icon' };+ if (states.some((s) => s === STATES.CONNECTED)) return { text: 'Connected', iconClass: 'connected-icon' };+ return { text: 'Not Connected', iconClass: 'warning-icon' };+ };++ const overallStatus = getOverallStatus();+ const cameraCountSuffix = isConnected && connectedCameraIds.length > 0+ ? ` (${connectedCameraIds.length} cam${connectedCameraIds.length !== 1 ? 's' : ''})`+ : '';++ const rowIconClass = (state: string) => {+ if (state === STATES.CONNECTED) return 'connected-icon';+ if (state === STATES.CONNECTING) return 'loader-icon';+ return 'warning-icon';+ };++ const toggleConfig = {+ connectConfig: { text: 'Connect', extraClasses: '' },+ connectingConfig: { text: 'Connecting...', extraClasses: 'loading disabled' },+ connectedConfig: { text: 'Connected', extraClasses: 'activated' },+ };++ if (compact) {+ return <IconButton icon={overallStatus.iconClass} />;+ }++ const executableOptions = [+ ...candidates.filter((c) => c.isValid).map((c) => c.path),+ ...candidates.filter((c) => !c.isValid).map((c) => c.path),+ ];++ const serverStatusColor = serverRunning ? 'bg-pink' : 'bg-red';+ const wsStatusColor = isConnected ? 'bg-pink' : 'bg-red';return (- <Box- sx={{- borderBottom: `1px solid ${theme.palette.divider}`,- backgroundColor: theme.palette.mode === 'dark'- ? 'rgba(0, 0, 0, 0.2)'- : 'rgba(0, 0, 0, 0.02)',+ <DropdownButton+ buttonProps={{+ text: overallStatus.text + cameraCountSuffix,+ iconClass: overallStatus.iconClass,+ rightSideIcon: 'dropdown',+ textColor: 'text-gray',+ className: 'connection-status-button-opener full-width',}}- >- <ServerStatusBar {...panel} setExpanded={setExpanded} expanded={expanded}/>-- <Collapse in={expanded}>- <Box sx={{px: 1.5, pb: 1.5, display: 'flex', flexDirection: 'column', gap: 1.5}}>- {isElectron && <ServerProcessSection {...panel}/>}- <WebSocketSection {...panel}/>- </Box>- </Collapse>- </Box>+ dropdownClassName="connection-status-dropdown bg-dark"+ dropdownItems={+ <div className="connection-container flex flex-col p-1 gap-2 br-1 bg-darkgray border-mid-black">+ <div className="group-0 connection-group flex flex-col gap-1 bg-middark br-1 p-1">+ {/* Python server row (Electron only) */}+ {isElectron && (+ <div className="row-1 gap-1 p-1 br-1 flex justify-content-space-between items-center h-25">+ <div className="text-container overflow-hidden flex items-center gap-1">+ <span className={`icon icon-size-20 ${rowIconClass(serverState)}`} />+ <p className="text text-nowrap text-left bg">Python server</p>+ </div>+ <ToggleButtonComponent+ state={serverState}+ {...toggleConfig}+ textColor="text-white"+ onConnect={startServer}+ onDisconnect={stopServer}+ />+ </div>+ )}++ {/* WebSocket row */}+ <div className="row-2 gap-1 p-1 br-1 flex justify-content-space-between items-center h-25">+ <div className="text-container overflow-hidden flex items-center gap-1">+ <span className={`icon icon-size-20 ${rowIconClass(wsState)}`} />+ <p className="text text-nowrap text-left bg">Websocket</p>+ </div>+ <ToggleButtonComponent+ state={wsState}+ {...toggleConfig}+ textColor="text-white"+ onConnect={() => { handleToggleAutoConnectWs(true); }}+ onDisconnect={() => { handleToggleAutoConnectWs(false); }}+ />+ </div>+ </div>++ {/* Advanced settings toggle */}+ <div className="open-advanced-settings-button-container flex flex-row flex-wrap justify-content-center pl-1 pr-1">+ <ButtonSm+ text={showAdvancedSettings ? 'Hide settings and preferences' : 'Show settings and preferences'}+ onClick={() => setShowAdvancedSettings((prev) => !prev)}+ iconClass="settings-icon"+ className="full-width text-center"+ rightSideIcon="dropdown"+ />+ </div>++ {/* Detailed settings */}+ {showAdvancedSettings && (+ <>+ {/* Server Process Section (Electron only) */}+ {isElectron && (+ <div className="server-process-section bg-middark flex flex-col gap-1 br-1 p-2">+ <SubactionHeader text="Server Process" />++ <ToggleComponent+ text={t('autoLaunch')}+ isToggled={autoLaunchServer}+ onToggle={handleToggleAutoLaunch}+ />++ {/* Status dot */}+ <div className="flex items-center gap-1 p-1">+ <div+ className={`${serverStatusColor} br-5 flex-shrink-0`}+ style={{ width: 8, height: 8 }}+ />+ <p className="text sm text-gray">+ {serverRunning ? t('running') : t('stopped')}+ {processInfo?.pid ? ` (PID: ${processInfo.pid})` : ''}+ </p>+ </div>++ {/* Executable selector */}+ <div className="executable-selector-container flex flex-col gap-1 p-1">+ <div className="flex flex-row items-center justify-content-space-between">+ <p className="text md text-nowrap">{t('executable')}</p>+ <div className="executable-actions flex gap-1">+ <IconButton+ icon="subfolder-icon"+ onClick={browseForExecutable}+ disabled={serverRunning || serverLoading}+ title={t('browseForExecutable')}+ className="icon-size-25"+ tooltip={true}+ tooltipText={t('browseForExecutable')}+ tooltipPosition="pos-bottom"+ />+ <IconButton+ icon="rotate-icon"+ onClick={refreshCandidates}+ disabled={serverRunning || candidatesLoading}+ title={t('refreshCandidates')}+ className={`icon-size-25${candidatesLoading ? ' loader-icon' : ''}`}+ tooltip={true}+ tooltipText={t('refreshCandidates')}+ tooltipPosition="pos-bottom"+ />+ </div>+ </div>+ <NameDropdownSelector+ options={executableOptions}+ initialValue={selectedExePath}+ onChange={setSelectedExePath}+ className="flex flex-row"+ />+ </div>++ {/* Launch / Stop / Reset */}+ <div className="launch-section flex flex-row flex-wrap gap-2 flex-end">+ <ButtonSm+ text={t('launchServer')}+ onClick={startServer}+ disabled={serverRunning || serverLoading}+ className="primary flex-1"+ />+ <ButtonSm+ text={t('stopServer')}+ onClick={stopServer}+ disabled={!serverRunning || serverLoading}+ className="secondary flex-1"+ />+ <ButtonSm+ text="Reset"+ onClick={resetServer}+ disabled={!serverRunning || serverLoading}+ className="flex-1"+ />+ </div>++ {currentExePath && (+ <p className="text sm text-gray text-nowrap overflow-hidden" title={currentExePath}>+ {t('runningPath', { path: currentExePath })}+ </p>+ )}++ {error && (+ <p className="text sm text-warning p-2 mt-1 border-1 border-warning br-1 text-wrap">{error}</p>+ )}+ </div>+ )}++ {/* WebSocket Section */}+ <div className="websocket-section bg-middark flex flex-col gap-1 br-1 p-2">+ <SubactionHeader text="Websocket Connection" />++ <ToggleComponent+ text={t('autoConnect')}+ isToggled={autoConnectWs}+ onToggle={handleToggleAutoConnectWs}+ />++ <div className="flex gap-1">+ <div className="input-with-string flex-3">+ <input+ className="input-field"+ placeholder={t('host')}+ value={hostDraft}+ onChange={(e) => setHostDraft(e.target.value)}+ onBlur={applyHostPort}+ onKeyDown={handleHostPortKeyDown}+ disabled={isConnected}+ />+ </div>+ <div className="input-with-unit">+ <input+ className="input-field numeric-input"+ type="number"+ placeholder={t('port')}+ value={portDraft}+ min={1}+ max={65535}+ onChange={(e) => setPortDraft(e.target.value)}+ onBlur={applyHostPort}+ onKeyDown={handleHostPortKeyDown}+ disabled={isConnected}+ />+ </div>+ </div>+ </div>+ </>+ )}+ </div>+ }++ />);};diff --git a/freemocap-ui/src/components/control-panels/server-connection/ServerProcessSection.tsx b/freemocap-ui/src/components/control-panels/server-connection/ServerProcessSection.tsxdeleted file mode 100644index 7ca920db..00000000--- a/freemocap-ui/src/components/control-panels/server-connection/ServerProcessSection.tsx+++ /dev/null@@ -1,285 +0,0 @@-import React from 'react';-import {- Box,- Button,- CircularProgress,- FormControl,- FormControlLabel,- IconButton,- InputLabel,- MenuItem,- Select,- Switch,- Tooltip,- Typography,-} from '@mui/material';-import PlayArrowIcon from '@mui/icons-material/PlayArrow';-import StopIcon from '@mui/icons-material/Stop';-import RestartAltIcon from '@mui/icons-material/RestartAlt';-import RefreshIcon from '@mui/icons-material/Refresh';-import FolderOpenIcon from '@mui/icons-material/FolderOpen';-import {useTranslation} from 'react-i18next';-import {ServerPanelState} from './useServerPanel';--type Props = Pick<- ServerPanelState,- | 'theme'- | 'serverRunning'- | 'serverLoading'- | 'processInfo'- | 'currentExePath'- | 'autoLaunchServer'- | 'selectedExePath'- | 'setSelectedExePath'- | 'candidates'- | 'candidatesLoading'- | 'validCandidates'- | 'invalidCandidates'- | 'error'- | 'startServer'- | 'stopServer'- | 'resetServer'- | 'refreshCandidates'- | 'browseForExecutable'- | 'handleToggleAutoLaunch'->;--export const ServerProcessSection: React.FC<Props> = ({- theme,- serverRunning,- serverLoading,- processInfo,- currentExePath,- autoLaunchServer,- selectedExePath,- setSelectedExePath,- candidatesLoading,- validCandidates,- invalidCandidates,- error,- startServer,- stopServer,- resetServer,- refreshCandidates,- browseForExecutable,- handleToggleAutoLaunch,-}) => {- const {t} = useTranslation();-- return (- <Box sx={{border: `1px solid ${theme.palette.divider}`, borderRadius: 1, p: 1}}>- {/* Header */}- <Box sx={{display: 'flex', alignItems: 'center', justifyContent: 'space-between', mb: 0.5}}>- <Typography variant="caption" sx={{fontWeight: 600, color: theme.palette.text.secondary}}>- SERVER PROCESS- </Typography>- <FormControlLabel- control={- <Switch- size="small"- checked={autoLaunchServer}- onClick={handleToggleAutoLaunch}- onChange={() => {}}- />- }- label={- <Typography variant="caption" sx={{fontSize: '0.65rem', color: theme.palette.text.secondary}}>- {t('autoLaunch')}- </Typography>- }- sx={{mr: 0, ml: 0, height: 24}}- labelPlacement="start"- />- </Box>-- {/* Status dot */}- <Box sx={{display: 'flex', alignItems: 'center', gap: 0.5, mb: 1}}>- <Box- sx={{- width: 8,- height: 8,- borderRadius: '50%',- backgroundColor: serverRunning- ? theme.palette.success.main- : theme.palette.error.main,- }}- />- <Typography variant="caption" sx={{color: theme.palette.text.primary}}>- {serverRunning ? t('running') : t('stopped')}- {processInfo?.pid && ` (PID: ${processInfo.pid})`}- </Typography>- </Box>-- {/* Executable selector */}- <FormControl fullWidth size="small" sx={{mb: 1}}>- <InputLabel sx={{fontSize: '0.75rem'}}>{t('executable')}</InputLabel>- <Select- value={selectedExePath}- onChange={(e) => setSelectedExePath(e.target.value)}- label={t('executable')}- disabled={serverRunning || serverLoading}- sx={{fontSize: '0.75rem'}}- renderValue={(value) => (- <Tooltip title={value as string} placement="bottom-start">- <Box- sx={{- overflow: 'auto',- whiteSpace: 'nowrap',- '&::-webkit-scrollbar': {height: 4},- '&::-webkit-scrollbar-track': {background: 'transparent'},- '&::-webkit-scrollbar-thumb': {background: theme.palette.divider, borderRadius: 2},- }}- >- <Typography variant="caption" sx={{fontSize: '0.75rem'}}>- {value as string}- </Typography>- </Box>- </Tooltip>- )}- >- {validCandidates.map((candidate) => (- <MenuItem key={candidate.path} value={candidate.path} sx={{fontSize: '0.75rem'}}>- <Tooltip title={candidate.path} placement="right">- <Box sx={{minWidth: 0, maxWidth: 400}}>- <Typography variant="caption" sx={{fontWeight: 600}}>- {candidate.name}- </Typography>- <Typography- variant="caption"- sx={{- display: 'block',- color: theme.palette.text.secondary,- fontSize: '0.65rem',- whiteSpace: 'nowrap',- }}- >- {candidate.path}- </Typography>- </Box>- </Tooltip>- </MenuItem>- ))}- {invalidCandidates.length > 0 && validCandidates.length > 0 && (- <MenuItem disabled divider sx={{fontSize: '0.65rem', opacity: 0.5}}>- — invalid —- </MenuItem>- )}- {invalidCandidates.map((candidate) => (- <MenuItem- key={candidate.path}- value={candidate.path}- disabled- sx={{fontSize: '0.75rem', opacity: 0.4}}- >- <Tooltip title={candidate.error || t('invalid')} placement="right">- <Typography variant="caption">- {candidate.name} — {candidate.error || 'not found'}- </Typography>- </Tooltip>- </MenuItem>- ))}- </Select>- </FormControl>-- {/* Browse + Refresh */}- <Box sx={{display: 'flex', gap: 0.5, mb: 1}}>- <Tooltip title={t('browseForExecutable')}>- <IconButton- size="small"- onClick={browseForExecutable}- disabled={serverRunning || serverLoading}- sx={{border: `1px solid ${theme.palette.divider}`, borderRadius: 1}}- >- <FolderOpenIcon sx={{fontSize: 16}}/>- </IconButton>- </Tooltip>- <Tooltip title={t('refreshCandidates')}>- <IconButton- size="small"- onClick={refreshCandidates}- disabled={serverRunning || candidatesLoading}- sx={{border: `1px solid ${theme.palette.divider}`, borderRadius: 1}}- >- {candidatesLoading ? (- <CircularProgress size={14}/>- ) : (- <RefreshIcon sx={{fontSize: 16}}/>- )}- </IconButton>- </Tooltip>- </Box>-- {/* Action buttons */}- <Box sx={{display: 'flex', gap: 0.5}}>- <Button- variant="contained"- size="small"- color="success"- startIcon={serverLoading ? <CircularProgress size={14} color="inherit"/> : <PlayArrowIcon/>}- onClick={() => startServer()}- disabled={serverRunning || serverLoading}- sx={{flex: 1, fontSize: '0.7rem', textTransform: 'none'}}- >- Launch- </Button>- <Button- variant="contained"- size="small"- color="error"- startIcon={serverLoading ? <CircularProgress size={14} color="inherit"/> : <StopIcon/>}- onClick={() => stopServer()}- disabled={!serverRunning || serverLoading}- sx={{flex: 1, fontSize: '0.7rem', textTransform: 'none'}}- >- Stop- </Button>- <Button- variant="outlined"- size="small"- startIcon={serverLoading ? <CircularProgress size={14}/> : <RestartAltIcon/>}- onClick={() => resetServer()}- disabled={!serverRunning || serverLoading}- sx={{flex: 1, fontSize: '0.7rem', textTransform: 'none'}}- >- Reset- </Button>- </Box>-- {/* Running executable path */}- {currentExePath && (- <Tooltip title={currentExePath} placement="bottom">- <Typography- variant="caption"- sx={{- mt: 0.5,- display: 'block',- color: theme.palette.text.secondary,- fontSize: '0.6rem',- overflow: 'hidden',- textOverflow: 'ellipsis',- whiteSpace: 'nowrap',- }}- >- {t('runningPath', {path: currentExePath})}- </Typography>- </Tooltip>- )}-- {/* Error */}- {error && (- <Typography- variant="caption"- sx={{- mt: 0.5,- display: 'block',- color: theme.palette.error.main,- fontSize: '0.65rem',- wordBreak: 'break-word',- }}- >- {error}- </Typography>- )}- </Box>- );-};diff --git a/freemocap-ui/src/components/control-panels/server-connection/ServerStatusBar.tsx b/freemocap-ui/src/components/control-panels/server-connection/ServerStatusBar.tsxdeleted file mode 100644index cf30c467..00000000--- a/freemocap-ui/src/components/control-panels/server-connection/ServerStatusBar.tsx+++ /dev/null@@ -1,134 +0,0 @@-import React from 'react';-import {Box, Chip, IconButton, Tooltip, Typography} from '@mui/material';-import {CircularProgress} from '@mui/material';-import WifiIcon from '@mui/icons-material/Wifi';-import WifiOffIcon from '@mui/icons-material/WifiOff';-import PlayArrowIcon from '@mui/icons-material/PlayArrow';-import StopIcon from '@mui/icons-material/Stop';-import ExpandMoreIcon from '@mui/icons-material/ExpandMore';-import ExpandLessIcon from '@mui/icons-material/ExpandLess';-import {useTranslation} from 'react-i18next';-import {ServerPanelState} from './useServerPanel';--type Props = Pick<- ServerPanelState,- | 'theme'- | 'isConnected'- | 'connectedCameraIds'- | 'isElectron'- | 'expanded'- | 'setExpanded'- | 'serverRunning'- | 'serverLoading'- | 'autoConnectWs'- | 'wsStatusColor'- | 'serverStatusColor'- | 'handleToggleWsConnected'- | 'handleToggleServerRunning'->;--export const ServerStatusBar: React.FC<Props> = ({- theme,- isConnected,- connectedCameraIds,- isElectron,- expanded,- setExpanded,- serverRunning,- serverLoading,- autoConnectWs,- wsStatusColor,- serverStatusColor,- handleToggleWsConnected,- handleToggleServerRunning,-}) => {- const {t} = useTranslation();-- return (- <Box- onClick={() => setExpanded((prev) => !prev)}- sx={{- display: 'flex',- alignItems: 'center',- gap: 0.5,- px: 1.5,- py: 0.5,- cursor: 'pointer',- '&:hover': {backgroundColor: 'rgba(255,255,255,0.03)'},- }}- >- <Box sx={{display: 'flex', alignItems: 'center', gap: 0.5, flex: 1, minWidth: 0}}>- <Tooltip title={isConnected ? t('disconnectWebSocket') : t('connectWebSocket')}>- <IconButton- size="small"- onClick={handleToggleWsConnected}- sx={{p: 0.25, color: wsStatusColor}}- >- {isConnected ? (- <WifiIcon sx={{fontSize: 16}}/>- ) : (- <WifiOffIcon sx={{fontSize: 16}}/>- )}- </IconButton>- </Tooltip>-- <Typography- variant="caption"- sx={{fontWeight: 500, color: wsStatusColor, whiteSpace: 'nowrap', fontSize: '0.7rem'}}- >- {isConnected ? t('connected') : autoConnectWs ? t('connecting') : t('off')}- </Typography>-- {isElectron && (- <>- <Box sx={{mx: 0.25, color: theme.palette.text.disabled, fontSize: '0.7rem'}}>|</Box>-- <Tooltip title={serverRunning ? t('stopServer') : t('launchServer')}>- <IconButton- size="small"- onClick={handleToggleServerRunning}- disabled={serverLoading}- sx={{p: 0.25, color: serverStatusColor}}- >- {serverLoading ? (- <CircularProgress size={14}/>- ) : serverRunning ? (- <StopIcon sx={{fontSize: 16}}/>- ) : (- <PlayArrowIcon sx={{fontSize: 16}}/>- )}- </IconButton>- </Tooltip>-- <Typography- variant="caption"- sx={{fontWeight: 500, color: serverStatusColor, whiteSpace: 'nowrap', fontSize: '0.7rem'}}- >- {serverLoading ? t('working') : serverRunning ? t('running') : t('stopped')}- </Typography>- </>- )}-- {isConnected && connectedCameraIds.length > 0 && (- <Chip- label={`${connectedCameraIds.length} cam${connectedCameraIds.length !== 1 ? 's' : ''}`}- size="small"- sx={{- height: 18,- fontSize: '0.6rem',- ml: 0.5,- backgroundColor: 'rgba(0, 255, 255, 0.1)',- color: '#00ffff',- }}- />- )}- </Box>-- {expanded ? (- <ExpandLessIcon sx={{fontSize: 16, color: theme.palette.text.secondary}}/>- ) : (- <ExpandMoreIcon sx={{fontSize: 16, color: theme.palette.text.secondary}}/>- )}- </Box>- );-};diff --git a/freemocap-ui/src/components/control-panels/server-connection/WebSocketSection.tsx b/freemocap-ui/src/components/control-panels/server-connection/WebSocketSection.tsxdeleted file mode 100644index d767bd7e..00000000--- a/freemocap-ui/src/components/control-panels/server-connection/WebSocketSection.tsx+++ /dev/null@@ -1,133 +0,0 @@-import React from 'react';-import {Box, Button, FormControlLabel, Switch, TextField, Typography} from '@mui/material';-import WifiIcon from '@mui/icons-material/Wifi';-import WifiOffIcon from '@mui/icons-material/WifiOff';-import {useTranslation} from 'react-i18next';-import {ServerPanelState} from './useServerPanel';--type Props = Pick<- ServerPanelState,- | 'theme'- | 'isConnected'- | 'connectedCameraIds'- | 'autoConnectWs'- | 'hostDraft'- | 'setHostDraft'- | 'portDraft'- | 'setPortDraft'- | 'applyHostPort'- | 'handleHostPortKeyDown'- | 'handleToggleAutoConnectWs'- | 'handleToggleWsConnected'->;--export const WebSocketSection: React.FC<Props> = ({- theme,- isConnected,- connectedCameraIds,- autoConnectWs,- hostDraft,- setHostDraft,- portDraft,- setPortDraft,- applyHostPort,- handleHostPortKeyDown,- handleToggleAutoConnectWs,- handleToggleWsConnected,-}) => {- const {t} = useTranslation();-- return (- <Box sx={{border: `1px solid ${theme.palette.divider}`, borderRadius: 1, p: 1}}>- {/* Header */}- <Box sx={{display: 'flex', alignItems: 'center', justifyContent: 'space-between', mb: 0.5}}>- <Typography variant="caption" sx={{fontWeight: 600, color: theme.palette.text.secondary}}>- WEBSOCKET CONNECTION- </Typography>- <FormControlLabel- control={- <Switch- size="small"- checked={autoConnectWs}- onClick={handleToggleAutoConnectWs}- onChange={() => {}}- />- }- label={- <Typography variant="caption" sx={{fontSize: '0.65rem', color: theme.palette.text.secondary}}>- {t('autoConnect')}- </Typography>- }- sx={{mr: 0, ml: 0, height: 24}}- labelPlacement="start"- />- </Box>-- {/* Host / Port inputs */}- <Box sx={{display: 'flex', gap: 0.5, mb: 1}}>- <TextField- size="small"- label={t('host')}- value={hostDraft}- onChange={(e) => setHostDraft(e.target.value)}- onBlur={applyHostPort}- onKeyDown={handleHostPortKeyDown}- disabled={isConnected}- slotProps={{- inputLabel: {sx: {fontSize: '0.7rem'}},- input: {sx: {fontSize: '0.75rem'}},- }}- sx={{flex: 3}}- />- <TextField- size="small"- label={t('port')}- type="number"- value={portDraft}- onChange={(e) => setPortDraft(e.target.value)}- onBlur={applyHostPort}- onKeyDown={handleHostPortKeyDown}- disabled={isConnected}- slotProps={{- inputLabel: {sx: {fontSize: '0.7rem'}},- input: {sx: {fontSize: '0.75rem'}},- htmlInput: {min: 1, max: 65535},- }}- sx={{flex: 1}}- />- </Box>-- {/* Status + connect button */}- <Box sx={{display: 'flex', alignItems: 'center', gap: 1}}>- <Box- sx={{- width: 8,- height: 8,- borderRadius: '50%',- backgroundColor: isConnected ? '#00ffff' : theme.palette.error.main,- }}- />- <Typography variant="caption" sx={{color: theme.palette.text.primary, flex: 1}}>- {isConnected ? t('connected') : autoConnectWs ? t('connecting') : t('disconnected')}- {isConnected && connectedCameraIds.length > 0- ? ` — ${connectedCameraIds.length} camera${connectedCameraIds.length !== 1 ? 's' : ''}`- : ''}- </Typography>-- <Button- variant={isConnected ? 'outlined' : 'contained'}- size="small"- color={isConnected ? 'error' : 'info'}- startIcon={isConnected ? <WifiOffIcon/> : <WifiIcon/>}- onClick={(e) => {- e.stopPropagation();- handleToggleWsConnected(e);- }}- sx={{fontSize: '0.7rem', textTransform: 'none'}}- >- {isConnected ? t('disconnect') : t('connect')}- </Button>- </Box>- </Box>- );-};diff --git a/freemocap-ui/src/components/control-panels/server-connection/useServerPanel.ts b/freemocap-ui/src/components/control-panels/server-connection/useServerPanel.tsindex 2d328e6a..08dbcb3b 100644--- a/freemocap-ui/src/components/control-panels/server-connection/useServerPanel.ts+++ b/freemocap-ui/src/components/control-panels/server-connection/useServerPanel.ts@@ -1,5 +1,4 @@import React, {useCallback, useEffect, useRef, useState} from 'react';-import {Theme, useTheme} from '@mui/material/styles';import {useServer} from '@/services/server/ServerContextProvider';import {useTranslation} from 'react-i18next';import {useElectronIPC} from '@/services';@@ -8,8 +7,6 @@ import {ExecutableCandidate, WS_RECONNECT_INTERVAL_MS} from './types';import {STORAGE_KEYS, loadFromStorage, saveToStorage} from './storage';export interface ServerPanelState {- // theme- theme: Theme;// server contextisConnected: boolean;connectedCameraIds: string[];@@ -44,10 +41,10 @@ export interface ServerPanelState {refreshCandidates: () => Promise<void>;browseForExecutable: () => Promise<void>;// toggle handlers- handleToggleAutoLaunch: (e: React.MouseEvent) => void;- handleToggleAutoConnectWs: (e: React.MouseEvent) => void;- handleToggleServerRunning: (e: React.MouseEvent) => void;- handleToggleWsConnected: (e: React.MouseEvent) => void;+ handleToggleAutoLaunch: (newState: boolean) => void;+ handleToggleAutoConnectWs: (newState: boolean) => void;+ handleToggleServerRunning: () => void;+ handleToggleWsConnected: () => void;// host/portapplyHostPort: () => void;handleHostPortKeyDown: (e: React.KeyboardEvent) => void;@@ -59,7 +56,6 @@ export interface ServerPanelState {}export function useServerPanel(): ServerPanelState {- const theme = useTheme();const {isConnected, connect, disconnect, connectedCameraIds, updateServerConnection} = useServer();const {t} = useTranslation();const {isElectron, api} = useElectronIPC();@@ -272,28 +268,21 @@ export function useServerPanel(): ServerPanelState {// ── Toggle handlers ──- const handleToggleAutoLaunch = useCallback((e: React.MouseEvent) => {- e.stopPropagation();- setAutoLaunchServer((prev) => !prev);+ const handleToggleAutoLaunch = useCallback((newState: boolean) => {+ setAutoLaunchServer(newState);}, []);- const handleToggleAutoConnectWs = useCallback((e: React.MouseEvent) => {- e.stopPropagation();- setAutoConnectWs((prev) => {- const next = !prev;- if (!next) disconnect();- return next;- });+ const handleToggleAutoConnectWs = useCallback((newState: boolean) => {+ setAutoConnectWs(newState);+ if (!newState) disconnect();}, [disconnect]);- const handleToggleServerRunning = useCallback((e: React.MouseEvent) => {- e.stopPropagation();+ const handleToggleServerRunning = useCallback(() => {if (serverRunning) stopServer();else startServer();}, [serverRunning, startServer, stopServer]);- const handleToggleWsConnected = useCallback((e: React.MouseEvent) => {- e.stopPropagation();+ const handleToggleWsConnected = useCallback(() => {if (isConnected) {setAutoConnectWs(false);disconnect();@@ -322,12 +311,11 @@ export function useServerPanel(): ServerPanelState {// ── Derived values ──const wsStatusColor = isConnected ? '#00ffff' : '#f44336';- const serverStatusColor = serverRunning ? theme.palette.success.main : theme.palette.text.disabled;+ const serverStatusColor = serverRunning ? 'var(--color-success)' : 'var(--color-text-muted)';const validCandidates = candidates.filter((c) => c.isValid);const invalidCandidates = candidates.filter((c) => !c.isValid);return {- theme,isConnected,connectedCameraIds,isElectron,diff --git a/freemocap-ui/src/components/framerate-viewer/BaseD3ChartView.tsx b/freemocap-ui/src/components/framerate-viewer/BaseD3ChartView.tsxindex ec3ab776..4302d68e 100644--- a/freemocap-ui/src/components/framerate-viewer/BaseD3ChartView.tsx+++ b/freemocap-ui/src/components/framerate-viewer/BaseD3ChartView.tsx@@ -1,9 +1,8 @@// src/components/framerate-viewer/BaseD3ChartView.tsximport {memo, useCallback, useEffect, useRef, useState} from "react"import * as d3 from "d3"-import {Box, Fade, IconButton, Tooltip, Typography} from "@mui/material"-import {RestartAlt, ZoomIn, ZoomOut} from "@mui/icons-material"import {useTranslation} from "react-i18next"+import IconButton from "@/components/ui-components/IconButton"export type ChartMargins = {top: number@@ -62,11 +61,9 @@ export default memo(function BaseD3ChartView({const [showControls, setShowControls] = useState(false)const [containerSize, setContainerSize] = useState<{width: number; height: number}>({width: 0, height: 0})- // Always holds the latest updateChart without triggering re-renders.const updateChartRef = useRef(updateChart)updateChartRef.current = updateChart- // Track container size with ResizeObserveruseEffect(() => {const container = containerRef.currentif (!container) return@@ -86,11 +83,9 @@ export default memo(function BaseD3ChartView({return () => observer.disconnect()}, [])- // Build chart scaffolding on mount/resize — runs rarelyuseEffect(() => {if (!svgRef.current || containerSize.width === 0 || containerSize.height === 0) return- // Tear down previous scaffoldingd3.select(svgRef.current).selectAll("*").remove()if (chartStateRef.current.cleanup) {chartStateRef.current.cleanup()@@ -131,7 +126,6 @@ export default memo(function BaseD3ChartView({chartStateRef.current.onZoom = result.onZoom}- // Set up zoom behaviorconst zoom = d3.zoom<SVGSVGElement, unknown>().scaleExtent([0.5, 20])@@ -151,9 +145,6 @@ export default memo(function BaseD3ChartView({}}, [initChart, margin, containerSize])- // Imperative D3 data update on a fixed interval. The updateChart callback- // (stored in the ref) reads directly from the FramerateStore each tick,- // so no React state or re-renders are involved in the data path.useEffect(() => {const tick = () => {const scaffolding = chartStateRef.current.scaffolding@@ -183,77 +174,43 @@ export default memo(function BaseD3ChartView({}, [])return (- <Box+ <divref={containerRef}- sx={{- width: "100%",- height: "100%",- position: "relative",- overflow: "hidden",- }}+ className="pos-rel overflow-hidden w-full h-full"onMouseEnter={() => setShowControls(true)}onMouseLeave={() => setShowControls(false)}>{title && (- <Typography- variant="caption"- sx={{- position: "absolute",- top: 2,- left: 8,- fontSize: "0.7rem",- opacity: 0.9,- zIndex: 5,- bgcolor: "background.default",- px: 0.5,- borderRadius: 0.5,- lineHeight: 1.4,- }}- >+ <p className="text sm text-gray pos-abs top-2 left-8 z-5 m-0" style={{++ opacity: 0.9,+ backgroundColor: "var(--color-bg-default)",+ padding: "0 4px",+ borderRadius: 2,+ lineHeight: 1.4,+ }}>{title}- </Typography>+ </p>)}- <Fade in={showControls}>- <Box- sx={{- position: "absolute",- top: "50%",- right: 5,- transform: "translateY(-50%)",- zIndex: 10,- bgcolor: "background.paper",- borderRadius: 1,- boxShadow: 1,- display: "flex",- flexDirection: "column",- }}- >- <Tooltip title={t("zoomIn")} placement="right">- <IconButton size="small" onClick={handleZoomIn} sx={{p: 0.5}}>- <ZoomIn fontSize="small" />- </IconButton>- </Tooltip>- <Tooltip title={t("zoomOut")} placement="right">- <IconButton size="small" onClick={handleZoomOut} sx={{p: 0.5}}>- <ZoomOut fontSize="small" />- </IconButton>- </Tooltip>- <Tooltip title={t("resetZoom")} placement="right">- <IconButton size="small" onClick={handleResetZoom} sx={{p: 0.5}}>- <RestartAlt fontSize="small" />- </IconButton>- </Tooltip>- </Box>- </Fade>+ {showControls && (+ <div className="flex flex-col bg-middark br-1 pos-abs top-50 z-10" style={{+ right: 5,+ boxShadow: "0 1px 4px rgba(0,0,0,0.4)",+ }}>+ <IconButton icon="plus-icon" title={t("zoomIn")} onClick={handleZoomIn}/>+ <IconButton icon="minus-icon" title={t("zoomOut")} onClick={handleZoomOut}/>+ <IconButton icon="back-icon" title={t("resetZoom")} onClick={handleResetZoom}/>+ </div>+ )}<svgref={svgRef}width={containerSize.width}height={containerSize.height}- style={{display: "block", overflow: "hidden"}}+ className="block overflow-hidden"/>- </Box>+ </div>)}, (prev, next) => {return prev.title === next.titlediff --git a/freemocap-ui/src/components/framerate-viewer/FrameRateViewer.tsx b/freemocap-ui/src/components/framerate-viewer/FrameRateViewer.tsxindex 5805910f..a4921d1f 100644--- a/freemocap-ui/src/components/framerate-viewer/FrameRateViewer.tsx+++ b/freemocap-ui/src/components/framerate-viewer/FrameRateViewer.tsx@@ -1,189 +1,114 @@// src/components/framerate-viewer/FrameRateViewer.tsximport {useEffect, useRef, useState} from "react"-import {Box, IconButton, Paper, Stack, Tooltip, Typography} from "@mui/material"-import {BarChart, ShowChart, TableChart} from "@mui/icons-material"-import {alpha, useTheme} from "@mui/material/styles"+import clsx from "clsx"import FramerateTimeseriesView from "./FramerateTimeseriesView"import FramerateHistogramView from "./FramerateHistogramView"import FramerateStatisticsView from "./FramerateStatisticsView"-import {useTranslation} from "react-i18next";-import {useServer} from "@/services/server/ServerContextProvider";-import {DetailedFramerate} from "@/services/server/server-helpers/framerate-store";+import { useTranslation } from "react-i18next"+import { useServer } from "@/services/server/ServerContextProvider"-export const frontendColor: string = "#1976D2"-export const backendColor: string = "#ff4d00"+export const frontendColor: string = "var(--chart-frontend)"+export const backendColor: string = "var(--chart-backend)"-const fmtFps = (fr: DetailedFramerate | null): string => {- if (!fr || !fr.frame_duration_mean || fr.frame_duration_mean <= 0) return "-- fps";- return `${(1000 / fr.frame_duration_mean).toFixed(1)} fps ±${fr.frame_duration_stddev.toFixed(1)}ms`;-};+const COLLAPSED_POLL_MS = 500;const FramerateCollapsedView = () => {- const {getFramerateStore} = useServer();- const backendRef = useRef<HTMLSpanElement>(null);- const frontendRef = useRef<HTMLSpanElement>(null);+ const { t } = useTranslation()+ const { getFramerateStore } = useServer()+ const serverRef = useRef<HTMLSpanElement>(null)+ const displayRef = useRef<HTMLSpanElement>(null)useEffect(() => {const tick = () => {- const snap = getFramerateStore().getSnapshot();- if (backendRef.current) backendRef.current.textContent = fmtFps(snap.aggregateBackendFramerate);- if (frontendRef.current) frontendRef.current.textContent = fmtFps(snap.aggregateFrontendFramerate);- };- tick();- const id = setInterval(tick, 1000);- return () => clearInterval(id);- }, [getFramerateStore]);+ const snap = getFramerateStore().getSnapshot()+ const serverFps = snap.currentBackendFramerate?.mean_frames_per_second+ const displayFps = snap.currentFrontendFramerate?.mean_frames_per_second+ if (serverRef.current) serverRef.current.textContent = serverFps != null ? serverFps.toFixed(1) : "--"+ if (displayRef.current) displayRef.current.textContent = displayFps != null ? displayFps.toFixed(1) : "--"+ }+ tick()+ const id = setInterval(tick, COLLAPSED_POLL_MS)+ return () => clearInterval(id)+ }, [getFramerateStore])return (- <Box sx={{height: '100%', display: 'flex', alignItems: 'center', gap: 1.5, px: 1, overflow: 'hidden'}}>- <Typography noWrap sx={{fontSize: '0.75rem', fontWeight: 'bold', color: 'text.secondary', flexShrink: 0}}>- Camera Performance- </Typography>- <Typography noWrap sx={{fontSize: '0.75rem', color: backendColor, flexShrink: 0}}>- Server: <span ref={backendRef}>-- fps</span>- </Typography>- <Typography noWrap sx={{fontSize: '0.75rem', color: frontendColor, flexShrink: 0}}>- Display: <span ref={frontendRef}>-- fps</span>- </Typography>- </Box>- );-};--export const FramerateViewerPanel = ({isCollapsed = false}: { isCollapsed?: boolean }) => {- if (isCollapsed) return <FramerateCollapsedView/>;- return <FramerateViewerPanelExpanded/>;-};+ <div className="framerate-collapsed-summary flex items-center h-full gap-2">+ <p className="text bg text-gray">{t("cameraPerformanceMetrics")}</p>+ <p className="text sm text-gray">|</p>+ <p className="text sm text-gray">{t("server")}: <span ref={serverRef}>--</span> fps</p>+ <p className="text sm text-gray">|</p>+ <p className="text sm text-gray">{t("display")}: <span ref={displayRef}>--</span> fps</p>+ </div>+ )+}-const FramerateViewerPanelExpanded = () => {- const theme = useTheme()- const { t } = useTranslation();+export const FramerateViewerPanel = ({ isCollapsed = false }: { isCollapsed?: boolean }) => {+ const { t } = useTranslation()const [showStats, setShowStats] = useState(true)const [showTimeseries, setShowTimeseries] = useState(true)const [showHistogram, setShowHistogram] = useState(true)- return (- <Box sx={{- height: '100%',- display: 'flex',- flexDirection: 'column',- backgroundColor: theme.palette.background.default,- p: 0.5,- overflow: 'hidden'- }}>- {/* Ultra-compact header with controls */}- <Box sx={{- display: 'flex',- justifyContent: 'space-between',- alignItems: 'center',- mb: 0.25,- px: 0.5- }}>- <Typography variant="body2" fontWeight="medium" noWrap sx={{fontSize: '0.75rem'}}>- {t('cameraPerformanceMetrics')}- </Typography>+ if (isCollapsed) return <FramerateCollapsedView />- {/* View type selector as icon buttons */}- <Stack direction="row" spacing={0.25}>- <Tooltip title={t("statisticsView")}>- <IconButton- size="small"- onClick={() => setShowStats((v) => !v)}- sx={{padding: '2px', opacity: showStats ? 1 : 0.3}}- >- <TableChart sx={{fontSize: '1rem'}}/>- </IconButton>- </Tooltip>- <Tooltip title={t("timelineView")}>- <IconButton- size="small"- onClick={() => setShowTimeseries((v) => !v)}- sx={{padding: '2px', opacity: showTimeseries ? 1 : 0.3}}- >- <ShowChart sx={{fontSize: '1rem'}}/>- </IconButton>- </Tooltip>- <Tooltip title={t("distributionView")}>- <IconButton- size="small"- onClick={() => setShowHistogram((v) => !v)}- sx={{padding: '2px', opacity: showHistogram ? 1 : 0.3}}- >- <BarChart sx={{fontSize: '1rem'}}/>- </IconButton>- </Tooltip>- </Stack>- </Box>+ return (+ <div className="framerate-viewer br-1">+ {/* Header */}+ <div className="framerate-viewer-header">+ <p className="text bg text-gray">{t('cameraPerformanceMetrics')}</p>+ <div className="flex gap-1">+ <button+ className={clsx("button sm br-1", showStats && "isOn")}+ onClick={() => setShowStats(v => !v)}+ title={t("statisticsView")}+ >+ <p className="text sm">Stats</p>+ </button>+ <button+ className={clsx("button sm br-1", showTimeseries && "isOn")}+ onClick={() => setShowTimeseries(v => !v)}+ title={t("timelineView")}+ >+ <p className="text sm">Timeline</p>+ </button>+ <button+ className={clsx("button sm br-1", showHistogram && "isOn")}+ onClick={() => setShowHistogram(v => !v)}+ title={t("distributionView")}+ >+ <p className="text sm">Distribution</p>+ </button>+ </div>+ </div>- {/* Stats section - ultra compact */}+ {/* Stats table */}{showStats && (- <Box sx={{- px: 0.25,- mb: 0.25,- }}>- <Paper- elevation={0}- sx={{- p: 0.25,- bgcolor: alpha(theme.palette.background.paper, theme.palette.mode === 'dark' ? 0.15 : 0.05),- border: `1px solid ${alpha(theme.palette.divider, 0.1)}`- }}- >- <FramerateStatisticsView- compact={true}- />- </Paper>- </Box>+ <div className="framerate-stats-wrapper br-1 border-1 border-black p-1">+ <FramerateStatisticsView compact={true} />+ </div>)}- {/* Main visualization area with flex-based layout */}- <Box sx={{- flex: 1,- display: 'flex',- flexDirection: (showTimeseries && showHistogram) ? 'row' : 'column',- gap: 0.25,- overflow: 'hidden'- }}>+ {/* Chart area */}+ <div className={clsx("framerate-charts-area", showTimeseries && showHistogram ? "row" : "column")}>{showTimeseries && (- <Paper- elevation={0}- sx={{- flex: 1,- display: 'flex',- flexDirection: 'column',- border: '1px solid',- borderColor: alpha(theme.palette.divider, 0.2),- overflow: 'hidden'- }}- >+ <div className="framerate-chart-panel border-1 border-black br-1"><FramerateTimeseriesViewfrontendColor={frontendColor}backendColor={backendColor}title={t("framerateTimeline")}/>- </Paper>+ </div>)}-{showHistogram && (- <Paper- elevation={0}- sx={{- flex: 1,- display: 'flex',- flexDirection: 'column',- border: '1px solid',- borderColor: alpha(theme.palette.divider, 0.2),- overflow: 'hidden'- }}- >+ <div className="framerate-chart-panel border-1 border-black br-1"><FramerateHistogramViewfrontendColor={frontendColor}backendColor={backendColor}title={t("framerateDistribution")}/>- </Paper>+ </div>)}- </Box>- </Box>+ </div>+ </div>)}diff --git a/freemocap-ui/src/components/framerate-viewer/FramerateHistogramView.tsx b/freemocap-ui/src/components/framerate-viewer/FramerateHistogramView.tsxindex a385f09a..a1617d23 100644--- a/freemocap-ui/src/components/framerate-viewer/FramerateHistogramView.tsx+++ b/freemocap-ui/src/components/framerate-viewer/FramerateHistogramView.tsx@@ -1,8 +1,7 @@// src/components/framerate-viewer/FramerateHistogramView.tsximport {useCallback, useRef} from "react"import * as d3 from "d3"-import {useTheme} from "@mui/material/styles"-import {applyAxisStyles} from "./d3ChartUtils"+import {applyAxisStyles, darkChartTheme} from "./d3ChartUtils"import BaseD3ChartView, {ChartLifecycle, ChartScaffolding} from "@/components/framerate-viewer/BaseD3ChartView"import {useTranslation} from "react-i18next"import {useServer} from "@/services/server/ServerContextProvider"@@ -16,9 +15,6 @@ type FramerateHistogramProps = {type HistogramBin = {x0: number; x1: number; count: number; density: number}-/**- * Build histogram bins with a domain tight to the actual data range.- */function buildHistogram(fpsValues: number[]): {bins: HistogramBin[]maxDensity: number@@ -58,10 +54,6 @@ function buildHistogram(fpsValues: number[]): {return {bins, maxDensity}}-/**- * Convert duration samples to FPS in-place into a reusable output array.- * Avoids allocating a fresh array on every update call.- */function toFpsInPlace(samples: TimestampedSample[], out: number[]): void {out.length = 0for (let i = 0; i < samples.length; i++) {@@ -70,9 +62,6 @@ function toFpsInPlace(samples: TimestampedSample[], out: number[]): void {}}-/**- * Persistent mutable state shared between initChart and updateChart.- */type ChartState = {frontendBarGroup: d3.Selection<SVGGElement, unknown, null, undefined>backendBarGroup: d3.Selection<SVGGElement, unknown, null, undefined>@@ -88,22 +77,18 @@ export default function FramerateHistogramView({backendColor,title = "Framerate Distribution",}: FramerateHistogramProps) {- const theme = useTheme()const {t} = useTranslation()const stateRef = useRef<ChartState | null>(null)const {getFramerateStore} = useServer()- // initChart — creates persistent groupsconst initChart = useCallback(({svg, chartArea, width, height}: ChartScaffolding): ChartLifecycle => {const xScale = d3.scaleLinear().range([0, width])const yScale = d3.scaleLinear().range([height, 0])- // Persistent bar groups — one per series, never removedconst frontendBarGroup = chartArea.append("g").attr("class", "bars-frontend")const backendBarGroup = chartArea.append("g").attr("class", "bars-backend")- // Axis labels (appended to svg root group, outside clip-path)svg.append("text").attr("class", "x-axis-label").attr("x", width / 2)@@ -111,7 +96,7 @@ export default function FramerateHistogramView({.attr("text-anchor", "middle").style("font-family", "monospace").style("font-size", "10px")- .style("fill", theme.palette.text.secondary)+ .style("fill", darkChartTheme.textSecondaryColor).text("FPS")svg.append("text")@@ -122,10 +107,9 @@ export default function FramerateHistogramView({.attr("text-anchor", "middle").style("font-family", "monospace").style("font-size", "10px")- .style("fill", theme.palette.text.secondary)+ .style("fill", darkChartTheme.textSecondaryColor).text("Density")- // Persistent empty-state text (hidden by default)chartArea.append("text").attr("class", "empty-text").attr("x", width / 2)@@ -134,7 +118,7 @@ export default function FramerateHistogramView({.attr("dominant-baseline", "central").style("font-family", "monospace").style("font-size", "12px")- .style("fill", theme.palette.text.disabled)+ .style("fill", darkChartTheme.textDisabledColor).style("display", "none")stateRef.current = {@@ -153,16 +137,14 @@ export default function FramerateHistogramView({},}},- [theme, frontendColor, backendColor]+ [frontendColor, backendColor])- // updateChart — uses D3 data join for minimal DOM mutationsconst updateChart = useCallback(({svg, chartArea, xAxisG, yAxisG, width, height}: ChartScaffolding) => {const state = stateRef.currentif (!state) return- // Read fresh data directly from the store — no React state involved.const snapshot = getFramerateStore().getSnapshot()const recentFrontendDurations = snapshot.recentFrontendDurationsconst recentBackendDurations = snapshot.recentBackendDurations@@ -180,7 +162,6 @@ export default function FramerateHistogramView({const emptyText = chartArea.select<SVGTextElement>(".empty-text")if (!frontendHist && !backendHist) {- // Clear all barsstate.frontendBarGroup.selectAll("rect").remove()state.backendBarGroup.selectAll("rect").remove()emptyText.style("display", null).text(t("waitingForData"))@@ -189,7 +170,6 @@ export default function FramerateHistogramView({emptyText.style("display", "none")- // Compute domain from all binslet minX = Infinitylet maxX = -Infinitylet maxDensity = 0@@ -213,7 +193,6 @@ export default function FramerateHistogramView({state.xScale.domain([minX - xPad, maxX + xPad])state.yScale.domain([0, maxDensity * 1.15])- // Update axes in-placeconst xAxisGen = d3.axisBottom(state.xScale).ticks(Math.max(2, Math.min(8, Math.floor(width / 50))))@@ -225,9 +204,8 @@ export default function FramerateHistogramView({xAxisG.call(xAxisGen)yAxisG.call(yAxisGen)- applyAxisStyles(svg, theme)+ applyAxisStyles(svg, darkChartTheme)- // D3 data join for bars — enter/update/exit patternconst numSources = [frontendHist, backendHist].filter(Boolean).lengthconst barInset = numSources > 1 ? 1 : 0@@ -240,18 +218,15 @@ export default function FramerateHistogramView({const bars = group.selectAll<SVGRectElement, HistogramBin>("rect").data(bins, (d) => `${d.x0}-${d.x1}`)- // EXIT: remove bars for bins that no longer existbars.exit().remove()- // ENTER: create new barsconst entered = bars.enter().append("rect").attr("fill", color)- .attr("stroke", theme.palette.background.paper)+ .attr("stroke", darkChartTheme.backgroundPaperColor).attr("stroke-width", 0.5).attr("opacity", 0.7)- // UPDATE + ENTER: update positions and sizes for all barsentered.merge(bars).attr("x", (d) => state.xScale(d.x0) + srcIdx * barInset).attr("width", (d) => {@@ -272,7 +247,7 @@ export default function FramerateHistogramView({updateBars(state.frontendBarGroup, frontendHist?.bins ?? [], frontendColor, 0)updateBars(state.backendBarGroup, backendHist?.bins ?? [], backendColor, numSources > 1 ? 1 : 0)},- [getFramerateStore, frontendColor, backendColor, theme, t]+ [getFramerateStore, frontendColor, backendColor, t])return <BaseD3ChartView title={title} initChart={initChart} updateChart={updateChart}diff --git a/freemocap-ui/src/components/framerate-viewer/FramerateStatisticsView.tsx b/freemocap-ui/src/components/framerate-viewer/FramerateStatisticsView.tsxindex d167adf7..bad9e3dd 100644--- a/freemocap-ui/src/components/framerate-viewer/FramerateStatisticsView.tsx+++ b/freemocap-ui/src/components/framerate-viewer/FramerateStatisticsView.tsx@@ -1,19 +1,5 @@// src/components/framerate-viewer/FramerateStatisticsView.tsximport React, {useEffect, useRef, useState} from "react";-import {- Box,- Divider,- Paper,- Table,- TableBody,- TableCell,- TableContainer,- TableHead,- TableRow,- Tooltip,- Typography,-} from "@mui/material";-import {alpha, useTheme} from "@mui/material/styles";import {DetailedFramerate} from "@/services/server/server-helpers/framerate-store";import {backendColor, frontendColor} from "@/components/framerate-viewer/FrameRateViewer";import {useTranslation} from "react-i18next";@@ -29,8 +15,6 @@ const formatNumber = (num: number | null, precision = 3): string => {return num !== null ? num.toFixed(precision) : "N/A";};-// --- Progressive tooltip (renders once, state is local to tooltip interaction) ----type ProgressiveTooltipProps = {shortInfo: string;longInfo: string;@@ -43,38 +27,15 @@ export const ProgressiveTooltip = ({children,}: ProgressiveTooltipProps) => {const [isExpanded, setIsExpanded] = useState(false);- const theme = useTheme();- const {t} = useTranslation();return (- <Tooltip- title={- <Box onClick={(e) => { e.preventDefault(); setIsExpanded(!isExpanded); }} sx={{cursor: "pointer"}}>- <Typography variant="body2">- {isExpanded ? longInfo : shortInfo}- </Typography>- <Typography variant="caption" color="text.secondary" sx={{display: "block", mt: 1, textAlign: "center"}}>- {isExpanded ? t("clickToShowLess") : t("clickToLearnMore")}- </Typography>- </Box>- }- arrow- placement="top"- componentsProps={{- tooltip: {- sx: {- backgroundColor: theme.palette.background.paper,- color: theme.palette.text.primary,- border: `1px solid ${theme.palette.divider}`,- boxShadow: theme.shadows[3],- maxWidth: isExpanded ? 500 : 300,- p: 1.5,- },- },- }}+ <span+ title={isExpanded ? longInfo : shortInfo}+ onClick={() => setIsExpanded(v => !v)}+ style={{cursor: 'help'}}>{children}- </Tooltip>+ </span>);};@@ -82,8 +43,8 @@ type HeaderCellWithTooltipProps = {label: string;shortInfo: string;longInfo: string;- style?: object;- align?: "inherit" | "left" | "center" | "right" | "justify";+ style?: React.CSSProperties;+ align?: "left" | "center" | "right";};export const HeaderCellWithTooltip = ({@@ -92,15 +53,20 @@ export const HeaderCellWithTooltip = ({longInfo,style = {},align = "center",-}: HeaderCellWithTooltipProps) => (- <ProgressiveTooltip shortInfo={shortInfo} longInfo={longInfo}>- <TableCell align={align} sx={style}>- {label}- </TableCell>- </ProgressiveTooltip>-);+}: HeaderCellWithTooltipProps) => {+ const [isExpanded, setIsExpanded] = useState(false);+ const {t} = useTranslation();-// --- Ref key types ---+ return (+ <th+ title={isExpanded ? longInfo : shortInfo}+ style={{...style, textAlign: align, cursor: 'help', userSelect: 'none'}}+ onClick={() => setIsExpanded(v => !v)}+ >+ {label}+ </th>+ );+};const METRIC_KEYS = ["recent", "mean", "median", "stdDev", "max", "min"] as const;type MetricKey = typeof METRIC_KEYS[number];@@ -108,8 +74,6 @@ const ROW_KEYS = ["backend", "frontend"] as const;type RowKey = typeof ROW_KEYS[number];type RefKey = `${RowKey}-${MetricKey}-${"primary" | "secondary"}` | `${RowKey}-samples`;-// --- Extract display strings from store data ----function computeCellValues(currentData: DetailedFramerate | null,aggregateData: DetailedFramerate | null,@@ -146,13 +110,18 @@ function computeCellValues(};}-// --- Main component: renders MUI table once, updates numbers via refs ---+const colorMap: Record<string, string> = {+ recent: '#66bb6a',+ mean: '#ffa726',+ median: '#f57c00',+ stdDev: '#42a5f5',+ max: '#ef5350',+ min: '#29b6f6',+};export default function FramerateStatisticsView({compact = false,}: FramerateStatisticsViewProps) {- const theme = useTheme();- const isDarkMode = theme.palette.mode === "dark";const {t} = useTranslation();const {getFramerateStore} = useServer();@@ -161,7 +130,6 @@ export default function FramerateStatisticsView({spanRefs.current[key] = el;};- // Poll the store and write to DOM spans — zero React re-renders.useEffect(() => {const tick = () => {const snapshot = getFramerateStore().getSnapshot();@@ -187,25 +155,6 @@ export default function FramerateStatisticsView({return () => clearInterval(id);}, [getFramerateStore, t]);- // --- Static styles ----- const colorMap: Record<string, string> = {- recent: isDarkMode ? theme.palette.success.light : theme.palette.success.main,- mean: isDarkMode ? theme.palette.warning.light : theme.palette.warning.main,- median: isDarkMode ? theme.palette.warning.dark : theme.palette.warning.dark,- stdDev: isDarkMode ? theme.palette.primary.light : theme.palette.primary.main,- max: isDarkMode ? theme.palette.error.light : theme.palette.error.main,- min: isDarkMode ? theme.palette.info.light : theme.palette.info.main,- };-- const getCellStyle = (metricType: string) => ({- backgroundColor: alpha(colorMap[metricType] || theme.palette.grey[500], isDarkMode ? 0.2 : 0.1),- borderBottom: "none",- padding: "2px 4px",- });-- const headerCellStyle = {fontWeight: "bold", paddingY: 0.5};-const tooltips = {source: {short: t("statsSourceShort"), long: t("statsSourceLong")},recent: {short: t("statsCurrentShort"), long: t("statsCurrentLong")},@@ -216,60 +165,70 @@ export default function FramerateStatisticsView({min: {short: t("statsMinShort"), long: t("statsMinLong")},};- // --- Render helpers (called once at mount) ---+ const cellStyle = (metric: string): React.CSSProperties => ({+ backgroundColor: colorMap[metric] ? colorMap[metric] + '22' : undefined,+ borderBottom: 'none',+ padding: '2px 4px',+ textAlign: 'center',+ });const renderMetricCell = (rowKey: RowKey, metric: MetricKey) => (- <TableCell key={metric} align="center" sx={getCellStyle(metric)}>- <Typography fontWeight="bold" fontFamily="monospace" color={colorMap[metric]} sx={{fontSize: "0.7rem", whiteSpace: "nowrap"}}>+ <td key={metric} style={cellStyle(metric)}>+ <div><span ref={setSpanRef(`${rowKey}-${metric}-primary`)}>--</span>- </Typography>- <Typography variant="caption" color={colorMap[metric]} sx={{fontSize: "0.6rem", opacity: 0.9, whiteSpace: "nowrap"}}>+ </div>+ <div><span ref={setSpanRef(`${rowKey}-${metric}-secondary`)}>--</span>- </Typography>- </TableCell>+ </div>+ </td>);const renderRow = (rowKey: RowKey, sourceColor: string, sourceLabel: string, shortTooltip: string, longTooltip: string) => (- <TableRow key={rowKey}>- <ProgressiveTooltip shortInfo={shortTooltip} longInfo={longTooltip}>- <TableCell sx={{fontWeight: "bold", borderLeft: `4px solid ${sourceColor}`, backgroundColor: `${sourceColor}22`, paddingY: 0.5, paddingLeft: 1, color: sourceColor, cursor: "help"}}>- {sourceLabel}- <Typography variant="caption" display="block" color="text.secondary" sx={{fontSize: "0.6rem"}}>- <span ref={setSpanRef(`${rowKey}-samples`)}>--</span>- </Typography>- </TableCell>- </ProgressiveTooltip>+ <tr key={rowKey}>+ <td+ title={shortTooltip}+ style={{fontWeight: '800', borderLeft: `4px solid ${sourceColor}`, backgroundColor: `${sourceColor}22`, padding: '2px 4px 2px 8px', color: sourceColor, cursor: 'help'}}+ >+ {sourceLabel}+ <div style={{color: 'var(--color-text-secondary)'}}>+ <span ref={setSpanRef(`${rowKey}-samples`)}>--</span>+ </div>+ </td>{METRIC_KEYS.map((metric) => renderMetricCell(rowKey, metric))}- </TableRow>+ </tr>);- // --- Static MUI table (rendered once) ---+ const thStyle: React.CSSProperties = {};return (- <TableContainer component={Paper} elevation={0} sx={{backgroundColor: "transparent", border: "none", overflowX: "auto"}}>- <Table size="small" padding="none" sx={{"& .MuiTableCell-root": {fontSize: "0.65rem", lineHeight: "1.1", whiteSpace: "nowrap"}}}>- <TableHead>- <TableRow>- <HeaderCellWithTooltip label={t("source")} shortInfo={tooltips.source.short} longInfo={tooltips.source.long} style={{...headerCellStyle, width: "12%", color: theme.palette.text.primary}} align="left" />- <HeaderCellWithTooltip label={t("Recent")} shortInfo={tooltips.recent.short} longInfo={tooltips.recent.long} style={{...headerCellStyle, ...getCellStyle("recent")}} />- <HeaderCellWithTooltip label={t("mean")} shortInfo={tooltips.mean.short} longInfo={tooltips.mean.long} style={{...headerCellStyle, ...getCellStyle("mean")}} />- <HeaderCellWithTooltip label={t("median")} shortInfo={tooltips.median.short} longInfo={tooltips.median.long} style={{...headerCellStyle, ...getCellStyle("median")}} />- <HeaderCellWithTooltip label={t("stdDevCv")} shortInfo={tooltips.stdDev.short} longInfo={tooltips.stdDev.long} style={{...headerCellStyle, ...getCellStyle("stdDev")}} />- <HeaderCellWithTooltip label={t("max")} shortInfo={tooltips.max.short} longInfo={tooltips.max.long} style={{...headerCellStyle, ...getCellStyle("max")}} />- <HeaderCellWithTooltip label={t("min")} shortInfo={tooltips.min.short} longInfo={tooltips.min.long} style={{...headerCellStyle, ...getCellStyle("min")}} />- </TableRow>- <TableRow>- <TableCell colSpan={7} sx={{padding: 0}}><Divider sx={{borderColor: theme.palette.divider}} /></TableCell>- </TableRow>- </TableHead>- <TableBody>+ <div className="overflow-x">+ <table className="w-full text sm" style={{}}>+ <thead>+ <tr>+ <HeaderCellWithTooltip label={t("source")} shortInfo={tooltips.source.short} longInfo={tooltips.source.long} style={{...thStyle, width: '12%', color: 'var(--color-text-primary)', textAlign: 'left'}} align="left" />+ <HeaderCellWithTooltip label={t("Recent")} shortInfo={tooltips.recent.short} longInfo={tooltips.recent.long} style={{...thStyle, ...{backgroundColor: colorMap.recent + '22'}}} />+ <HeaderCellWithTooltip label={t("mean")} shortInfo={tooltips.mean.short} longInfo={tooltips.mean.long} style={{...thStyle, ...{backgroundColor: colorMap.mean + '22'}}} />+ <HeaderCellWithTooltip label={t("median")} shortInfo={tooltips.median.short} longInfo={tooltips.median.long} style={{...thStyle, ...{backgroundColor: colorMap.median + '22'}}} />+ <HeaderCellWithTooltip label={t("stdDevCv")} shortInfo={tooltips.stdDev.short} longInfo={tooltips.stdDev.long} style={{...thStyle, ...{backgroundColor: colorMap.stdDev + '22'}}} />+ <HeaderCellWithTooltip label={t("max")} shortInfo={tooltips.max.short} longInfo={tooltips.max.long} style={{...thStyle, ...{backgroundColor: colorMap.max + '22'}}} />+ <HeaderCellWithTooltip label={t("min")} shortInfo={tooltips.min.short} longInfo={tooltips.min.long} style={{...thStyle, ...{backgroundColor: colorMap.min + '22'}}} />+ </tr>+ <tr>+ <td colSpan={7} className="p-0">+ <div style={{height: 1, backgroundColor: 'var(--color-border-secondary)', margin: '4px 0'}} />+ </td>+ </tr>+ </thead>+ <tbody>{renderRow("backend", backendColor, t("server"), t("capturesFramesFromCamera"), "Server represents the camera frame-grabbing performance. This is the true rate at which frames are pulled from the camera and saved during recording. This is the most important metric for recording quality and should remain stable even if display performance fluctuates.")}- <TableRow>- <TableCell colSpan={7} sx={{padding: 0}}><Divider sx={{borderColor: theme.palette.divider}} /></TableCell>- </TableRow>+ <tr>+ <td colSpan={7} className="p-0">+ <div style={{height: 1, backgroundColor: 'var(--color-border-secondary)', margin: '4px 0'}} />+ </td>+ </tr>{renderRow("frontend", frontendColor, t("display"), t("rendersReceivedFrames"), t("displayTooltipLong"))}- </TableBody>- </Table>- </TableContainer>+ </tbody>+ </table>+ </div>);}diff --git a/freemocap-ui/src/components/framerate-viewer/FramerateTimeseriesView.tsx b/freemocap-ui/src/components/framerate-viewer/FramerateTimeseriesView.tsxindex 3d9a8a45..c5484634 100644--- a/freemocap-ui/src/components/framerate-viewer/FramerateTimeseriesView.tsx+++ b/freemocap-ui/src/components/framerate-viewer/FramerateTimeseriesView.tsx@@ -1,9 +1,8 @@// src/components/framerate-viewer/FramerateTimeseriesView.tsximport {useCallback, useRef} from "react"import * as d3 from "d3"-import {useTheme} from "@mui/material/styles"import {TimestampedSample} from "@/services/server/server-helpers/framerate-store"-import {applyAxisStyles} from "@/components/framerate-viewer/d3ChartUtils"+import {applyAxisStyles, darkChartTheme} from "@/components/framerate-viewer/d3ChartUtils"import BaseD3ChartView, {ChartLifecycle, ChartScaffolding} from "@/components/framerate-viewer/BaseD3ChartView"import {useTranslation} from "react-i18next"import {useServer} from "@/services/server/ServerContextProvider"@@ -16,17 +15,10 @@ type FramerateTimeseriesProps = {type FpsSample = { timestamp: number; value: number }-/** How many seconds of data the rolling window shows. */const WINDOW_SECONDS = 60-/** Fixed relative-time tick positions (seconds ago). These never change,- * so D3's axis join always matches existing tick elements — zero DOM churn. */const RELATIVE_TICK_SECONDS = [0, -15, -30, -45, -60]-/**- * Convert duration samples to FPS in-place into a reusable output array.- * Avoids allocating a fresh array on every update call.- */function toFpsInPlace(samples: TimestampedSample[],out: FpsSample[],@@ -47,11 +39,6 @@ function toFpsInPlace(out.length = writeIdx}-/**- * Persistent mutable state shared between initChart and updateChart.- * Stored in a ref so it survives across data updates without triggering- * React re-renders or D3 DOM teardown.- */type ChartState = {frontendPath: d3.Selection<SVGPathElement, unknown, null, undefined>backendPath: d3.Selection<SVGPathElement, unknown, null, undefined>@@ -60,7 +47,6 @@ type ChartState = {frontendData: FpsSample[]backendData: FpsSample[]windowEnd: number- // Reusable scratch arrays to avoid per-update allocationsfrontendFpsBuf: FpsSample[]backendFpsBuf: FpsSample[]}@@ -70,20 +56,15 @@ export default function FramerateTimeseriesView({backendColor,title = "Framerate Over Time",}: FramerateTimeseriesProps) {- const theme = useTheme()const {t} = useTranslation()const stateRef = useRef<ChartState | null>(null)const {getFramerateStore} = useServer()- // initChart — creates persistent SVG elements that live for the chart's lifetimeconst initChart = useCallback(({svg, chartArea, xAxisG, yAxisG, width, height}: ChartScaffolding): ChartLifecycle => {- // X-axis uses relative seconds (0 = now, -60 = oldest).- // Fixed domain means axis ticks never enter/exit — zero DOM churn.const xScale = d3.scaleLinear().domain([-WINDOW_SECONDS, 0]).range([0, width])const yScale = d3.scaleLinear().range([height, 0])- // Build the x-axis once with fixed tick valuesconst xAxisGen = d3.axisBottom(xScale).tickValues(RELATIVE_TICK_SECONDS)@@ -94,16 +75,14 @@ export default function FramerateTimeseriesView({})xAxisG.call(xAxisGen)- // Build the y-axis with initial placeholder ticksconst yAxisGen = d3.axisLeft(yScale).ticks(Math.max(2, Math.min(5, Math.floor(height / 30)))).tickSize(-width)yAxisG.call(yAxisGen)- applyAxisStyles(chartArea, theme)+ applyAxisStyles(chartArea, darkChartTheme)- // Axis labels (appended to svg root group, outside clip-path)svg.append("text").attr("class", "x-axis-label").attr("x", width / 2)@@ -111,7 +90,7 @@ export default function FramerateTimeseriesView({.attr("text-anchor", "middle").style("font-family", "monospace").style("font-size", "10px")- .style("fill", theme.palette.text.secondary)+ .style("fill", darkChartTheme.textSecondaryColor).text("Time")svg.append("text")@@ -122,10 +101,9 @@ export default function FramerateTimeseriesView({.attr("text-anchor", "middle").style("font-family", "monospace").style("font-size", "10px")- .style("fill", theme.palette.text.secondary)+ .style("fill", darkChartTheme.textSecondaryColor).text("FPS")- // Persistent path elements — one per series, never removedconst frontendPath = chartArea.append("path").attr("fill", "none").attr("stroke", frontendColor)@@ -136,7 +114,6 @@ export default function FramerateTimeseriesView({.attr("stroke", backendColor).attr("stroke-width", 1.5)- // Persistent empty-state text (hidden by default)chartArea.append("text").attr("class", "empty-text").attr("x", width / 2)@@ -145,7 +122,7 @@ export default function FramerateTimeseriesView({.attr("dominant-baseline", "central").style("font-family", "monospace").style("font-size", "12px")- .style("fill", theme.palette.text.disabled)+ .style("fill", darkChartTheme.textDisabledColor).style("display", "none")stateRef.current = {@@ -166,21 +143,18 @@ export default function FramerateTimeseriesView({},}},- [theme, frontendColor, backendColor]+ [frontendColor, backendColor])- // updateChart — only mutates path `d` attrs and y-axis ticks. Zero DOM adds/removes for x-axis.const updateChart = useCallback(({svg, yAxisG, width, height}: ChartScaffolding) => {const state = stateRef.currentif (!state) return- // Read fresh data directly from the store — no React state involved.const snapshot = getFramerateStore().getSnapshot()const recentFrontendDurations = snapshot.recentFrontendDurationsconst recentBackendDurations = snapshot.recentBackendDurations- // Convert durations→FPS using reusable scratch bufferstoFpsInPlace(recentFrontendDurations, state.frontendFpsBuf)toFpsInPlace(recentBackendDurations, state.backendFpsBuf)@@ -198,7 +172,6 @@ export default function FramerateTimeseriesView({emptyText.style("display", "none")- // Find latest timestamp without allocatinglet latestTimestamp = -Infinityfor (let i = 0; i < frontendFps.length; i++) {if (frontendFps[i].timestamp > latestTimestamp) latestTimestamp = frontendFps[i].timestamp@@ -211,7 +184,6 @@ export default function FramerateTimeseriesView({const windowStart = windowEnd - WINDOW_SECONDS * 1000state.windowEnd = windowEnd- // Filter to windowstate.frontendData = frontendFps.filter((d) => d.timestamp >= windowStart)state.backendData = backendFps.filter((d) => d.timestamp >= windowStart)@@ -222,7 +194,6 @@ export default function FramerateTimeseriesView({return}- // Compute y-domain without allocating a merged arraylet yMin = Infinitylet yMax = -Infinityfor (let i = 0; i < state.frontendData.length; i++) {@@ -240,16 +211,13 @@ export default function FramerateTimeseriesView({const yPadding = Math.max(1, yRange * 0.3)state.yScale.domain([Math.max(0, yMin - yPadding), yMax + yPadding])- // Only y-axis needs updating (domain changes with data).- // X-axis is fixed at [-60, 0] with stable tick elements.const yAxisGen = d3.axisLeft(state.yScale).ticks(Math.max(2, Math.min(5, Math.floor(height / 30)))).tickSize(-width)yAxisG.call(yAxisGen)- applyAxisStyles(svg, theme)+ applyAxisStyles(svg, darkChartTheme)- // Line generator maps absolute timestamps → relative seconds for the fixed x-axisconst line = d3.line<FpsSample>().x((d) => state.xScale((d.timestamp - windowEnd) / 1000))@@ -259,7 +227,7 @@ export default function FramerateTimeseriesView({state.frontendPath.attr("d", state.frontendData.length > 0 ? line(state.frontendData) : null)state.backendPath.attr("d", state.backendData.length > 0 ? line(state.backendData) : null)},- [getFramerateStore, frontendColor, backendColor, theme, t]+ [getFramerateStore, frontendColor, backendColor, t])return <BaseD3ChartView title={title} initChart={initChart} updateChart={updateChart}diff --git a/freemocap-ui/src/components/framerate-viewer/d3ChartUtils.ts b/freemocap-ui/src/components/framerate-viewer/d3ChartUtils.tsindex 1e7c70fc..9ebe8a25 100644--- a/freemocap-ui/src/components/framerate-viewer/d3ChartUtils.ts+++ b/freemocap-ui/src/components/framerate-viewer/d3ChartUtils.ts@@ -1,26 +1,39 @@// src/components/framerate-viewer/d3ChartUtils.tsimport * as d3 from "d3"-import {Theme} from "@mui/material/styles"++export type ChartTheme = {+ dividerColor: string+ textSecondaryColor: string+ textDisabledColor: string+ backgroundPaperColor: string+}++export const darkChartTheme: ChartTheme = {+ dividerColor: "rgba(255,255,255,0.12)",+ textSecondaryColor: "rgba(255,255,255,0.6)",+ textDisabledColor: "rgba(255,255,255,0.3)",+ backgroundPaperColor: "#1e1e2e",+}export function applyAxisStyles(svg: d3.Selection<SVGGElement, unknown, null, undefined>,- theme: Theme+ theme: ChartTheme = darkChartTheme): void {svg.selectAll(".tick line")- .attr("stroke", theme.palette.divider)+ .attr("stroke", theme.dividerColor).attr("stroke-dasharray", "2,2")svg.selectAll(".tick text").style("font-family", "monospace").style("font-size", "10px")- .style("color", theme.palette.text.secondary)+ .style("color", theme.textSecondaryColor)}export function renderEmptyChart(svg: d3.Selection<SVGGElement, unknown, null, undefined>,width: number,height: number,- theme: Theme,+ theme: ChartTheme = darkChartTheme,text: string = "Waiting for data…"): void {svg@@ -31,7 +44,7 @@ export function renderEmptyChart(.attr("dominant-baseline", "central").style("font-family", "monospace").style("font-size", "12px")- .style("fill", theme.palette.text.disabled)+ .style("fill", theme.textDisabledColor).text(text)}diff --git a/freemocap-ui/src/components/languages/LanguageSwitcher.tsx b/freemocap-ui/src/components/languages/LanguageSwitcher.tsxindex efe4b1f3..714e8b08 100644--- a/freemocap-ui/src/components/languages/LanguageSwitcher.tsx+++ b/freemocap-ui/src/components/languages/LanguageSwitcher.tsx@@ -1,163 +1,104 @@-import React, {useCallback} from "react";-import {useTranslation} from "react-i18next";-import {Box, Chip, FormControl, InputLabel, MenuItem, Select, Tooltip, Typography,} from "@mui/material";-import type {SelectChangeEvent} from "@mui/material/Select";-import SmartToyIcon from "@mui/icons-material/SmartToy";-import VerifiedIcon from "@mui/icons-material/Verified";-import {EXTERNAL_URLS} from "@/constants/external-urls";-import {useAppDispatch, useAppSelector} from "@/store";-import {localeChanged, selectLocale, selectShowTranslationIndicator,} from "@/store/slices/locale";-import type {SupportedLocale} from "@/i18n";-import {getTranslationSource, SUPPORTED_LOCALES,} from "@/i18n";+import React, { useCallback, useEffect, useRef, useState } from "react";+import { useTranslation } from "react-i18next";+import clsx from "clsx";+import { EXTERNAL_URLS } from "@/constants/external-urls";+import { useAppDispatch, useAppSelector } from "@/store";+import { localeChanged, selectLocale, selectShowTranslationIndicator } from "@/store/slices/locale";+import { SUPPORTED_LOCALES, getTranslationSource } from "@/i18n";+import type { SupportedLocale } from "@/i18n";import * as Flags from "country-flag-icons/react/3x2";-import {CherokeeFlag} from "@/components/languages/custom-flag-icons/CherokeeFlag";-import {YiddishFlag} from "@/components/languages/custom-flag-icons/YiddishFlag";+import { CherokeeFlag } from "@/components/languages/custom-flag-icons/CherokeeFlag";+import { YiddishFlag } from "@/components/languages/custom-flag-icons/YiddishFlag";const FlagIcon: React.FC<{ countryCode: string }> = ({ countryCode }) => {- if (countryCode === "CHEROKEE") return <CherokeeFlag />;- if (countryCode === "YIDDISH") return <YiddishFlag />;- const Flag = Flags[countryCode as keyof typeof Flags];- if (!Flag) return null;- return <Flag style={{ width: 20, height: 14, borderRadius: 2, flexShrink: 0 }} />;+ if (countryCode === "CHEROKEE") return <CherokeeFlag />;+ if (countryCode === "YIDDISH") return <YiddishFlag />;+ const Flag = Flags[countryCode as keyof typeof Flags];+ if (!Flag) return null;+ return <Flag className="flex-shrink-0" style={{ width: 20, height: 14, borderRadius: 2 }} />;};export const LanguageSwitcher: React.FC = () => {- const { t } = useTranslation();- const dispatch = useAppDispatch();- const currentLocale = useAppSelector(selectLocale);- const showIndicator = useAppSelector(selectShowTranslationIndicator);- const translationSource = getTranslationSource(currentLocale);+ const { t } = useTranslation();+ const dispatch = useAppDispatch();+ const currentLocale = useAppSelector(selectLocale);+ const showIndicator = useAppSelector(selectShowTranslationIndicator);+ const translationSource = getTranslationSource(currentLocale);- const handleChange = useCallback(- (event: SelectChangeEvent<string>) => {- dispatch(localeChanged(event.target.value as SupportedLocale));- },- [dispatch]- );+ const [open, setOpen] = useState(false);+ const containerRef = useRef<HTMLDivElement>(null);- const sourceLabel =- translationSource === "human-authored"- ? t("humanTranslated")- : translationSource === "human-validated"- ? t("humanValidated")- : t("aiTranslated");+ useEffect(() => {+ const handleClickOutside = (e: MouseEvent) => {+ if (containerRef.current && !containerRef.current.contains(e.target as Node)) {+ setOpen(false);+ }+ };+ document.addEventListener("mousedown", handleClickOutside);+ return () => document.removeEventListener("mousedown", handleClickOutside);+ }, []);- const sourceIcon =- translationSource === "ai-generated" ? (- <SmartToyIcon sx={{ fontSize: 14 }} />- ) : (- <VerifiedIcon sx={{ fontSize: 14 }} />- );+ const handleSelect = useCallback((code: SupportedLocale) => {+ dispatch(localeChanged(code));+ setOpen(false);+ }, [dispatch]);++ const currentLocaleData = SUPPORTED_LOCALES[currentLocale];- const sourceColor =- translationSource === "ai-generated"- ? "warning"- : translationSource === "human-validated"- ? "success"- : ("info" as const);+ const badgeClass = translationSource === "ai-generated" ? "ai"+ : translationSource === "human-validated" ? "human"+ : "native";++ const sourceLabel = translationSource === "human-authored" ? t("humanTranslated")+ : translationSource === "human-validated" ? t("humanValidated")+ : t("aiTranslated");- return (- <Box- sx={{- display: "flex",- alignItems: "center",- gap: 1,- }}- >- <FormControl size="small" sx={{- minWidth: 200,- "& .MuiInputLabel-root": {- color: "text.secondary",- },- "& .MuiInputLabel-root.Mui-focused": {- color: "text.primary",- },- }}>- <InputLabel id="language-select-label">{t("language")}</InputLabel>- <Select- labelId="language-select-label"- value={currentLocale}- label={t("language")}- onChange={handleChange}- sx={{- fontSize: 13,- "& .MuiSelect-select": {- py: 0.75,- },- }}- >- {Object.entries(SUPPORTED_LOCALES).map(([code, { label, englishName, dir, flag }]) => (- <MenuItem key={code} value={code}>- <Box sx={{ display: "flex", alignItems: "center", gap: 1 }}>- <FlagIcon countryCode={flag} />- <Typography- component="span"- sx={{- fontSize: 13,- direction: dir,- }}+ return (+ <div className="flex items-center gap-1 flex-wrap">+ <div ref={containerRef} className="language-dropdown-container">+ <button+ className="gap-1 br-1 button sm fit-content flex-inline items-center dropdown"+ onClick={() => setOpen((prev) => !prev)}>- {label}- </Typography>- {label !== englishName && (- <Typography- component="span"- sx={{- fontSize: 11,- color: "text.secondary",- }}- >- {englishName}- </Typography>+ <FlagIcon countryCode={currentLocaleData?.flag ?? ""} />+ <p className="text-gray text md text-align-left text-nowrap">+ {currentLocaleData?.label ?? currentLocale}+ </p>+ </button>++ {open && (+ <div className="language-dropdown-panel dropdown-container border-1 border-black elevated-sharp bg-dark br-2 reveal slide-down">+ <div className="flex flex-col p-1 gap-1 bg-middark br-1">+ {Object.entries(SUPPORTED_LOCALES).map(([code, { label, englishName, flag }]) => (+ <button+ key={code}+ className={clsx("language-option button sm br-1", code === currentLocale && "selected")}+ onClick={() => handleSelect(code as SupportedLocale)}+ >+ <FlagIcon countryCode={flag} />+ <p className="text-gray text md text-nowrap">{label}</p>+ {label !== englishName && (+ <p className="text-darkgray text sm text-nowrap">{englishName}</p>+ )}+ <p className="text-darkgray text sm" style={{ fontFamily: "monospace" }}>{code}</p>+ </button>+ ))}+ </div>+ </div>)}- <Typography- component="span"- sx={{- fontSize: 11,- color: "text.disabled",- fontFamily: "monospace",- }}- >- {code}- </Typography>- </Box>- </MenuItem>- ))}- </Select>- </FormControl>+ </div>- {showIndicator && translationSource !== "human-authored" && (- <Tooltip- title={- translationSource === "ai-generated"- ? t("aiTranslatedTooltip")- : t("humanValidatedTooltip")- }- arrow- placement="bottom"- >- <Chip- icon={sourceIcon}- label={sourceLabel}- size="small"- color={sourceColor}- variant="outlined"- clickable- component="a"- href={EXTERNAL_URLS.TRANSLATION_LOCALES}- target="_blank"- rel="noopener noreferrer"- sx={{- height: 24,- fontSize: 11,- cursor: "pointer",- "& .MuiChip-icon": {- fontSize: 14,- },- }}- />- </Tooltip>- )}- </Box>- );+ {showIndicator && translationSource !== "human-authored" && (+ <a+ href={EXTERNAL_URLS.TRANSLATION_LOCALES}+ target="_blank"+ rel="noopener noreferrer"+ className={clsx("translation-badge pos-abs", badgeClass)}+ title={translationSource === "ai-generated" ? t("aiTranslatedTooltip") : t("humanValidatedTooltip")}+ >+ <span className="text sm">{sourceLabel}</span>+ </a>+ )}+ </div>+ );};diff --git a/freemocap-ui/src/components/languages/custom-flag-icons/CherokeeFlag.tsx b/freemocap-ui/src/components/languages/custom-flag-icons/CherokeeFlag.tsxindex 6c320a2b..229b7684 100644--- a/freemocap-ui/src/components/languages/custom-flag-icons/CherokeeFlag.tsx+++ b/freemocap-ui/src/components/languages/custom-flag-icons/CherokeeFlag.tsx@@ -33,7 +33,8 @@ export const CherokeeFlag: React.FC<React.SVGProps<SVGSVGElement>> = (props) =>viewBox="0 0 20 14"width={20}height={14}- style={{ borderRadius: 2, flexShrink: 0 }}+ className="flex-shrink-0"+ style={{ borderRadius: 2 }}{...props}><rect width="20" height="14" fill="#CF6924" />diff --git a/freemocap-ui/src/components/languages/custom-flag-icons/YiddishFlag.tsx b/freemocap-ui/src/components/languages/custom-flag-icons/YiddishFlag.tsxindex a5c55de9..058d1e97 100644--- a/freemocap-ui/src/components/languages/custom-flag-icons/YiddishFlag.tsx+++ b/freemocap-ui/src/components/languages/custom-flag-icons/YiddishFlag.tsx@@ -14,7 +14,8 @@ export const YiddishFlag: React.FC<React.SVGProps<SVGSVGElement>> = (props) => (viewBox="0 0 60 42"width={20}height={14}- style={{ borderRadius: 2, flexShrink: 0 }}+ className="flex-shrink-0"+ style={{ borderRadius: 2 }}{...props}>{/* White background */}diff --git a/freemocap-ui/src/components/log-terminal/Linkify.tsx b/freemocap-ui/src/components/log-terminal/Linkify.tsxdeleted file mode 100644index 961f14ad..00000000--- a/freemocap-ui/src/components/log-terminal/Linkify.tsx+++ /dev/null@@ -1,31 +0,0 @@-import React from 'react';--// Splits text on http/https URLs. When split() is called with a capture group,-// matched segments land at odd indices, so i % 2 === 1 identifies URLs.-const URL_REGEX = /(https?:\/\/[^\s)"'>\]]+)/g;--export const Linkify = ({text}: {text: string}) => {- const parts = text.split(URL_REGEX);- if (parts.length === 1) return <>{text}</>;-- return (- <>- {parts.map((part, i) =>- i % 2 === 1 ? (- <a- key={i}- href={part}- target="_blank"- rel="noopener noreferrer"- style={{color: "#58a6ff", textDecoration: "underline"}}- onClick={(e) => e.stopPropagation()}- >- {part}- </a>- ) : (- <span key={i}>{part}</span>- )- )}- </>- );-};diff --git a/freemocap-ui/src/components/log-terminal/LogEntryDetail.tsx b/freemocap-ui/src/components/log-terminal/LogEntryDetail.tsxdeleted file mode 100644index 721f37a1..00000000--- a/freemocap-ui/src/components/log-terminal/LogEntryDetail.tsx+++ /dev/null@@ -1,63 +0,0 @@-import React from 'react';-import {useTranslation} from 'react-i18next';-import {LogRecord} from '@/services/server/server-helpers/log-store';-import {Linkify} from './Linkify';--interface Props {- log: LogRecord;- color: string;-}--export const LogEntryDetail: React.FC<Props> = ({log, color}) => {- const {t} = useTranslation();-- return (- <div- style={{- paddingLeft: 16,- paddingTop: 6,- paddingBottom: 6,- fontSize: '0.8em',- color: '#888',- borderTop: '1px solid rgba(255,255,255,0.1)',- whiteSpace: 'pre-wrap',- lineHeight: '1.4',- overflow: 'visible',- }}- onClick={(e) => e.stopPropagation()}- >- <div>Location: {log.module}:{log.funcName}:Line#{log.lineno}</div>- <div>{t('fileLabel')}: {log.filename}</div>- <div>{t('timeDelta')}: {log.delta_t}</div>- <div>{t('pathLabel')}: <Linkify text={log.pathname}/></div>- {log.formatted_message && (- <div>{t('rawMessage')}: <Linkify text={log.formatted_message}/></div>- )}- <div>Thread: {log.threadName} (ID: {log.thread})</div>- <div>Process: {log.processName} (ID: {log.process})</div>- {(log.exc_info || log.exc_text) && (- <div>- <div>{t('exceptionDetails')}:</div>- {log.exc_info && <div><Linkify text={log.exc_info}/></div>}- {log.exc_text && <div><Linkify text={log.exc_text}/></div>}- </div>- )}- {log.stack_info && (- <div>- <div>{t('stackTrace')}:</div>- <pre- style={{- whiteSpace: 'pre-wrap',- background: '#111',- padding: 8,- borderRadius: 4,- margin: '8px 0',- }}- >- <Linkify text={log.stack_info}/>- </pre>- </div>- )}- </div>- );-};diff --git a/freemocap-ui/src/components/log-terminal/LogEntryRow.tsx b/freemocap-ui/src/components/log-terminal/LogEntryRow.tsxdeleted file mode 100644index ef25f1f6..00000000--- a/freemocap-ui/src/components/log-terminal/LogEntryRow.tsx+++ /dev/null@@ -1,166 +0,0 @@-import React, {useRef, useState, useEffect} from 'react';-import {LogRecord} from '@/services/server/server-helpers/log-store';-import {LOG_COLORS, LINE_HEIGHT, ROW_PADDING} from './constants';-import {Linkify} from './Linkify';-import {LogEntryDetail} from './LogEntryDetail';--interface Props {- log: LogRecord;- style: React.CSSProperties;-}--export const LogEntryRow = React.memo(({log, style}: Props) => {- // ── Divider entry: session boundary marker ───────────────────────────- if (log.type === 'divider') {- return (- <div- style={{- ...style,- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- paddingLeft: 16,- paddingRight: 16,- }}- >- <div- style={{- flex: 1,- height: 1,- backgroundColor: 'rgba(255,255,255,0.12)',- }}- />- <span- style={{- flexShrink: 0,- padding: '0 12px',- fontSize: '0.7em',- fontFamily: 'monospace',- color: 'rgba(255,255,255,0.25)',- whiteSpace: 'nowrap',- }}- >- {log.message}- </span>- <div- style={{- flex: 1,- height: 1,- backgroundColor: 'rgba(255,255,255,0.12)',- }}- />- </div>- );- }-- // ── Normal log entry ─────────────────────────────────────────────────- const [expanded, setExpanded] = useState(false);- const rowRef = useRef<HTMLDivElement>(null);- const color = LOG_COLORS[log.levelname.toUpperCase()] || '#ccc';- const multiLine = log.message.includes('\n');-- useEffect(() => {- if (!expanded) return;- const handleClickOutside = (e: MouseEvent) => {- if (rowRef.current && !rowRef.current.contains(e.target as Node)) {- setExpanded(false);- }- };- document.addEventListener('mousedown', handleClickOutside);- return () => document.removeEventListener('mousedown', handleClickOutside);- }, [expanded]);-- return (- <div- ref={rowRef}- style={{- ...style,- borderLeft: `2px solid ${color}`,- paddingLeft: 8,- paddingTop: ROW_PADDING / 2,- paddingBottom: ROW_PADDING / 2,- backgroundColor: expanded ? `${color}1a` : 'rgba(0,0,0,0.2)',- cursor: 'pointer',- fontFamily: 'monospace',- fontSize: '0.85em',- lineHeight: `${LINE_HEIGHT}px`,- overflow: expanded ? 'visible' : 'hidden',- position: 'relative',- }}- onClick={() => setExpanded((prev) => !prev)}- >- {/* Header line: timestamp + level badge + first (or only) message line */}- <div style={{whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis'}}>- <span style={{color: '#888', marginRight: 8, fontSize: '0.7em'}}>- {log.asctime}- </span>- <span- style={{- backgroundColor: color,- color: '#000',- padding: '1px 5px',- borderRadius: 2,- fontSize: '0.5em',- fontWeight: 600,- marginRight: 4,- display: 'inline-block',- lineHeight: 'normal',- verticalAlign: 'middle',- }}- >- {log.levelname}- </span>- {/*Show UI vs Server tag*/}- {/*<span*/}- {/* style={{*/}- {/* backgroundColor: log.source === 'ui' ? '#FF9944' : '#4488aa',*/}- {/* color: '#000',*/}- {/* padding: '1px 5px',*/}- {/* borderRadius: 2,*/}- {/* fontSize: '0.75em',*/}- {/* fontWeight: 600,*/}- {/* marginRight: 8,*/}- {/* display: 'inline-block',*/}- {/* lineHeight: 'normal',*/}- {/* verticalAlign: 'middle',*/}- {/* }}*/}- {/*>*/}- {/* {log.source === 'ui' ? 'UI' : 'SERVER'}*/}- {/*</span>*/}- <span style={{color: color, fontSize: '0.75em'}}>- <Linkify text={multiLine ? log.message.split('\n')[0] : log.message}/>- </span>- </div>-- {/* Remaining lines for multi-line messages */}- {multiLine && (- <div style={{whiteSpace: 'pre', fontSize: '0.75em', color: color, paddingLeft: 4}}>- <Linkify text={log.message.split('\n').slice(1).join('\n')}/>- </div>- )}-- {/* Expanded metadata overlay */}- {expanded && (- <div- style={{- position: 'absolute',- top: '100%',- left: 0,- right: 0,- zIndex: 10,- backgroundColor: '#1a1a1a',- borderLeft: `2px solid ${color}`,- borderBottom: `1px solid ${color}`,- boxShadow: '0 4px 12px rgba(0,0,0,0.5)',- overflow: 'auto',- maxHeight: 400,- }}- onClick={(e) => e.stopPropagation()}- >- <LogEntryDetail log={log} color={color}/>- </div>- )}- </div>- );-});-LogEntryRow.displayName = 'LogEntryRow';diff --git a/freemocap-ui/src/components/log-terminal/LogSearchBar.tsx b/freemocap-ui/src/components/log-terminal/LogSearchBar.tsxdeleted file mode 100644index c4d19092..00000000--- a/freemocap-ui/src/components/log-terminal/LogSearchBar.tsx+++ /dev/null@@ -1,29 +0,0 @@-import React from 'react';-import {Box, TextField, useTheme} from '@mui/material';-import {Search as SearchIcon} from '@mui/icons-material';-import {useTranslation} from 'react-i18next';--interface Props {- searchText: string;- onSearchChange: (text: string) => void;-}--export const LogSearchBar: React.FC<Props> = ({searchText, onSearchChange}) => {- const theme = useTheme();- const {t} = useTranslation();-- return (- <Box sx={{p: 1, borderBottom: '1px solid', borderColor: theme.palette.divider}}>- <TextField- size="small"- fullWidth- placeholder={t('searchLogs')}- value={searchText}- onChange={(e) => onSearchChange(e.target.value)}- InputProps={{- startAdornment: <SearchIcon sx={{mr: 1, color: 'text.secondary'}}/>,- }}- />- </Box>- );-};diff --git a/freemocap-ui/src/components/log-terminal/LogTerminal.tsx b/freemocap-ui/src/components/log-terminal/LogTerminal.tsxindex 979f4f55..690de567 100644--- a/freemocap-ui/src/components/log-terminal/LogTerminal.tsx+++ b/freemocap-ui/src/components/log-terminal/LogTerminal.tsx@@ -1,95 +1,507 @@-import React from 'react';-import {Box, useTheme} from '@mui/material';-import {Warning as WarningIcon} from '@mui/icons-material';-import {useLogTerminal} from './useLogTerminal';-import {LogToolbar} from './LogToolbar';-import {LogSearchBar} from './LogSearchBar';-import {VirtualLogList} from './VirtualLogList';-import {LogSnapshot, LogRecord} from '@/services/server/server-helpers/log-store';-import {LOG_COLORS} from './constants';--const LogCollapsedView: React.FC<{snapshot: LogSnapshot; filteredLogs: LogRecord[]}> = ({snapshot, filteredLogs}) => {- const theme = useTheme();- const mostRecent = filteredLogs[filteredLogs.length - 1] ?? snapshot.entries[snapshot.entries.length - 1];- const color = mostRecent- ? (LOG_COLORS[mostRecent.levelname.toUpperCase()] ?? theme.palette.text.primary)- : theme.palette.text.secondary;+// LogTerminal.tsx+import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";+import clsx from "clsx";+import { useServer } from "@/services/server/ServerContextProvider";+import { LogRecord, LogSnapshot } from "@/services/server/server-helpers/log-store";+import { useTranslation } from "react-i18next";+import ButtonSm from "@/components/ui-components/ButtonSm";++const LOG_POLL_INTERVAL_MS = 500;+const LINE_HEIGHT = 20;+const ROW_PADDING = 8;+const OVERSCAN = 10;++const LOG_LEVELS = ["TRACE", "DEBUG", "INFO", "SUCCESS", "API", "WARNING", "ERROR", "CRITICAL"];++// ---------------------------------------------------------------------------+// URL linkification+// ---------------------------------------------------------------------------++const URL_REGEX = /(https?:\/\/[^\s)"'>\]]+)/g;++const Linkify = ({ text }: { text: string }) => {+ const parts = text.split(URL_REGEX);+ if (parts.length === 1) return <>{text}</>;return (- <Box sx={{- height: '100%',- display: 'flex',- alignItems: 'center',- gap: 1,- px: 1,- overflow: 'hidden',- backgroundColor: theme.palette.mode === 'dark' ? '#1a1a1a' : theme.palette.grey[100],- }}>- <span style={{fontSize: '0.8em', fontWeight: 'bold', color: theme.palette.text.primary as string, flexShrink: 0}}>- Server Logs- </span>- {snapshot.hasErrors && (- <WarningIcon sx={{color: LOG_COLORS.ERROR, fontSize: '1em', flexShrink: 0}}/>+ <>+ {parts.map((part, i) =>+ i % 2 === 1 ? (+ <a key={i} href={part} target="_blank" rel="noopener noreferrer"+ className="log-link" onClick={(e) => e.stopPropagation()}>+ {part}+ </a>+ ) : (+ <span key={i}>{part}</span>+ ))}- <span style={{fontSize: '0.75em', color, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>- {mostRecent ? `[${mostRecent.levelname}] ${mostRecent.message}` : 'No logs yet'}- </span>- </Box>+ </>);};-export const LogTerminal: React.FC<{isCollapsed?: boolean}> = ({isCollapsed = false}) => {- const theme = useTheme();- const terminal = useLogTerminal();+// ---------------------------------------------------------------------------+// Variable-height virtualization helpers+// ---------------------------------------------------------------------------- if (isCollapsed) {- return <LogCollapsedView snapshot={terminal.snapshot} filteredLogs={terminal.filteredLogs}/>;+const countLines = (text: string): number => {+ if (!text) return 1;+ let count = 1;+ for (let i = 0; i < text.length; i++) {+ if (text[i] === "\n") count++;}+ return count;+};++const getRowHeight = (log: LogRecord): number => {+ const lines = countLines(log.message);+ if (lines === 1) return LINE_HEIGHT + ROW_PADDING;+ return LINE_HEIGHT + lines * LINE_HEIGHT + ROW_PADDING;+};++const buildPrefixHeights = (logs: LogRecord[]): number[] => {+ const prefixes = new Array<number>(logs.length + 1);+ prefixes[0] = 0;+ for (let i = 0; i < logs.length; i++) {+ prefixes[i + 1] = prefixes[i] + getRowHeight(logs[i]);+ }+ return prefixes;+};++const findStartIndex = (prefixHeights: number[], y: number): number => {+ let lo = 0;+ let hi = prefixHeights.length - 2;+ while (lo < hi) {+ const mid = (lo + hi) >>> 1;+ if (prefixHeights[mid + 1] <= y) lo = mid + 1;+ else hi = mid;+ }+ return lo;+};++// ---------------------------------------------------------------------------+// Log entry row+// ---------------------------------------------------------------------------++const LogEntryRow = React.memo(({ log, style }: { log: LogRecord; style: React.CSSProperties }) => {+ const [expanded, setExpanded] = useState(false);+ const level = log.levelname.toLowerCase();+ const multiLine = log.message.includes("\n");return (- <Box- sx={{- height: '100%',- display: 'flex',- flexDirection: 'column',- backgroundColor: theme.palette.mode === 'dark' ? '#1a1a1a' : theme.palette.grey[100],- }}+ <div+ className={clsx("log-entry", level, expanded && "expanded")}+ style={style}+ onClick={() => setExpanded((prev) => !prev)}>- <LogToolbar- snapshot={terminal.snapshot}- isPaused={terminal.isPaused}- copyFeedback={terminal.copyFeedback}- showSearch={terminal.showSearch}- showLevelFilters={terminal.showLevelFilters}- selectedLevels={terminal.selectedLevels}- onLevelToggle={terminal.handleLevelToggle}- onPauseToggle={terminal.handlePauseToggle}- onClear={terminal.handleClear}- onCopyToClipboard={terminal.handleCopyToClipboard}- onSaveToDisk={terminal.handleSaveToDisk}- onScrollToBottom={terminal.scrollToBottom}- onToggleSearch={() => terminal.setShowSearch((prev) => !prev)}- onToggleLevelFilters={() => terminal.setShowLevelFilters((prev) => !prev)}- />-- {terminal.showSearch && (- <LogSearchBar- searchText={terminal.searchText}- onSearchChange={terminal.setSearchText}- />+ <div className="log-entry-header">+ <span className="log-timestamp">{log.asctime}</span>+ <span className={clsx("log-level-badge", level)}>{log.levelname}</span>+ <span className="log-message-text">+ <Linkify text={multiLine ? log.message.split("\n")[0] : log.message} />+ </span>+ </div>++ {multiLine && (+ <div className="log-multiline-body">+ <Linkify text={log.message.split("\n").slice(1).join("\n")} />+ </div>)}- <VirtualLogList- filteredLogs={terminal.filteredLogs}- prefixHeights={terminal.prefixHeights}- totalHeight={terminal.totalHeight}- startIdx={terminal.startIdx}- endIdx={terminal.endIdx}- offsetY={terminal.offsetY}- isPaused={terminal.isPaused}- scrollContainerRef={terminal.scrollContainerRef}- onScroll={terminal.handleScroll}- />- </Box>+ {expanded && (+ <div className="log-entry-detail-overlay" onClick={(e) => e.stopPropagation()}>+ <LogEntryDetail log={log} />+ </div>+ )}+ </div>+ );+});+LogEntryRow.displayName = "LogEntryRow";++const LogEntryDetail = ({ log }: { log: LogRecord }) => {+ const { t } = useTranslation();++ return (+ <div className="log-entry-detail" onClick={(e) => e.stopPropagation()}>+ <div className="log-entry-detail-message"><Linkify text={log.message} /></div>+ <div>Location: {log.module}:{log.funcName}:Line#{log.lineno}</div>+ <div>{t("fileLabel")}: {log.filename}</div>+ <div>{t("timeDelta")}: {log.delta_t}</div>+ <div>{t("pathLabel")}: <Linkify text={log.pathname} /></div>+ {log.formatted_message && <div>{t("rawMessage")}: <Linkify text={log.formatted_message} /></div>}+ <div>Thread: {log.threadName} (ID: {log.thread})</div>+ <div>Process: {log.processName} (ID: {log.process})</div>+ {(log.exc_info || log.exc_text) && (+ <div>+ <div>{t("exceptionDetails")}:</div>+ {log.exc_info && <div><Linkify text={log.exc_info} /></div>}+ {log.exc_text && <div><Linkify text={log.exc_text} /></div>}+ </div>+ )}+ {log.stack_info && (+ <div>+ <div>{t("stackTrace")}:</div>+ <pre className="log-stack-trace">+ <Linkify text={log.stack_info} />+ </pre>+ </div>+ )}+ </div>+ );+};++// ---------------------------------------------------------------------------+// Filtering+// ---------------------------------------------------------------------------++function applyFilters(entries: LogRecord[], selectedLevels: string[], searchText: string): LogRecord[] {+ let filtered = entries;+ if (selectedLevels.length > 0) {+ filtered = filtered.filter(log => selectedLevels.includes(log.levelname.toLowerCase()));+ }+ if (searchText) {+ const searchLower = searchText.toLowerCase();+ filtered = filtered.filter(log =>+ log.message.toLowerCase().includes(searchLower) ||+ log.module.toLowerCase().includes(searchLower) ||+ log.funcName.toLowerCase().includes(searchLower) ||+ log.formatted_message?.toLowerCase().includes(searchLower)+ );+ }+ return filtered;+}++// ---------------------------------------------------------------------------+// Collapsed summary view+// ---------------------------------------------------------------------------++const LogCollapsedView = ({ getLogStore, selectedLevels }: { getLogStore: ReturnType<typeof useServer>["getLogStore"]; selectedLevels: string[] }) => {+ const { t } = useTranslation();+ const [lastEntry, setLastEntry] = useState<LogRecord | null>(null);++ useEffect(() => {+ const poll = () => {+ const snap = getLogStore().getSnapshot();+ const entries = snap.entries;+ const visible = selectedLevels.length > 0+ ? entries.filter(e => selectedLevels.includes(e.levelname.toLowerCase()))+ : entries;+ setLastEntry(visible.length > 0 ? visible[visible.length - 1] : null);+ };+ poll();+ const id = setInterval(poll, LOG_POLL_INTERVAL_MS);+ return () => clearInterval(id);+ }, [getLogStore, selectedLevels]);++ if (!lastEntry) return (+ <div className="log-collapsed-summary flex items-center h-full gap-1">+ <p className="text bg text-gray">{t("serverLogs")}</p>+ </div>+ );++ const level = lastEntry.levelname.toLowerCase();+ const firstLine = lastEntry.message.split("\n")[0];++ return (+ <div className="log-collapsed-summary flex items-center h-full gap-1 overflow-hidden">+ <p className="text bg text-gray">{t("serverLogs")}</p>+ <p className="text sm text-gray">|</p>+ <span className={clsx("log-level-badge", level)}>{lastEntry.levelname}</span>+ <span className="log-timestamp">{lastEntry.asctime}</span>+ <span className="log-message-text text-nowrap overflow-hidden" style={{ textOverflow: "ellipsis" }}>+ {firstLine}+ </span>+ </div>+ );+};++// ---------------------------------------------------------------------------+// LogTerminal (full view)+// ---------------------------------------------------------------------------++interface LogTerminalFullProps {+ selectedLevels: string[];+ setSelectedLevels: React.Dispatch<React.SetStateAction<string[]>>;+ searchText: string;+ setSearchText: React.Dispatch<React.SetStateAction<string>>;+ showSearch: boolean;+ setShowSearch: React.Dispatch<React.SetStateAction<boolean>>;+ isPaused: boolean;+ setIsPaused: React.Dispatch<React.SetStateAction<boolean>>;+}++const LogTerminalFull = ({+ selectedLevels,+ setSelectedLevels,+ searchText,+ setSearchText,+ showSearch,+ setShowSearch,+ isPaused,+ setIsPaused,+}: LogTerminalFullProps) => {+ const { t } = useTranslation();+ const { getLogStore } = useServer();++ const [snapshot, setSnapshot] = useState<LogSnapshot>({+ entries: [],+ hasErrors: false,+ countsByLevel: {},+ version: 0,+ });++ const [copyFeedback, setCopyFeedback] = useState(false);++ const scrollContainerRef = useRef<HTMLDivElement>(null);+ const [scrollTop, setScrollTop] = useState(0);+ const [containerHeight, setContainerHeight] = useState(0);+ const shouldAutoScroll = useRef(true);+ const lastVersionRef = useRef(-1);++ useEffect(() => {+ if (isPaused) return;+ const poll = () => {+ const snap = getLogStore().getSnapshot();+ if (snap.version === lastVersionRef.current) return;+ lastVersionRef.current = snap.version;+ setSnapshot(snap);+ };+ poll();+ const interval = setInterval(poll, LOG_POLL_INTERVAL_MS);+ return () => clearInterval(interval);+ }, [getLogStore, isPaused]);++ const filteredLogs = applyFilters(snapshot.entries, selectedLevels, searchText);+ const prefixHeights = useMemo(() => buildPrefixHeights(filteredLogs), [filteredLogs]);+ const totalHeight = prefixHeights[filteredLogs.length] || 0;++ useEffect(() => {+ const container = scrollContainerRef.current;+ if (!container) return;+ const observer = new ResizeObserver((entries) => {+ for (const entry of entries) {+ setContainerHeight(Math.round(entry.contentRect.height));+ }+ });+ observer.observe(container);+ return () => observer.disconnect();+ }, []);++ useEffect(() => {+ if (!isPaused && shouldAutoScroll.current && scrollContainerRef.current) {+ requestAnimationFrame(() => {+ const el = scrollContainerRef.current;+ if (el) el.scrollTop = el.scrollHeight;+ });+ }+ }, [filteredLogs, isPaused]);++ const handleScroll = useCallback(() => {+ const el = scrollContainerRef.current;+ if (!el) return;+ setScrollTop(el.scrollTop);+ const isAtBottom = el.scrollHeight - el.scrollTop - el.clientHeight < 2;+ shouldAutoScroll.current = isAtBottom;+ }, []);++ const scrollToBottom = useCallback(() => {+ const el = scrollContainerRef.current;+ if (el) {+ el.scrollTop = el.scrollHeight;+ shouldAutoScroll.current = true;+ }+ }, []);++ const startIdx = Math.max(0, findStartIndex(prefixHeights, scrollTop) - OVERSCAN);+ const endIdx = Math.min(filteredLogs.length, findStartIndex(prefixHeights, scrollTop + containerHeight) + 1 + OVERSCAN);+ const offsetY = prefixHeights[startIdx];++ const formatLogsForExport = useCallback((): string => {+ return filteredLogs.map((log) =>+ `[${log.asctime}] [${log.levelname}] ${log.module}:${log.funcName}:${log.lineno} - ${log.message}`+ ).join('\n');+ }, [filteredLogs]);++ const handleCopyToClipboard = useCallback(async () => {+ await navigator.clipboard.writeText(formatLogsForExport());+ setCopyFeedback(true);+ setTimeout(() => setCopyFeedback(false), 2000);+ }, [formatLogsForExport]);++ const handleSaveToDisk = useCallback(() => {+ const text = formatLogsForExport();+ const blob = new Blob([text], { type: 'text/plain' });+ const url = URL.createObjectURL(blob);+ const a = document.createElement('a');+ a.href = url;+ a.download = `freemocap-logs-${new Date().toISOString().replace(/[:.]/g, '-')}.txt`;+ document.body.appendChild(a);+ a.click();+ document.body.removeChild(a);+ URL.revokeObjectURL(url);+ }, [formatLogsForExport]);++ const toggleLevel = (level: string) => {+ setSelectedLevels(prev =>+ prev.includes(level) ? prev.filter(l => l !== level) : [...prev, level]+ );+ };++ const handleClear = () => {+ getLogStore().clear();+ setSelectedLevels([]);+ setSearchText("");+ setShowSearch(false);+ setIsPaused(false);+ lastVersionRef.current = -1;+ setSnapshot({ entries: [], hasErrors: false, countsByLevel: {}, version: 0 });+ };++ return (+ <div className="log-terminal">+ {/* Toolbar */}+ <div className="log-toolbar flex items-center gap-1 p-1 flex-wrap">+ <div className="ml-1 log-toolbar-inner flex items-center gap-1 flex-wrap">+ <p className="text bg text-gray">{t('serverLogs')}</p>+ {snapshot.hasErrors && (+ <span className="icon warning-icon icon-size-20" title={t("errorsDetected")} />+ )}+ {/* Level filter buttons */}+ <div className="flex gap-1 flex-wrap">+ {LOG_LEVELS.map((level) => {+ const count = snapshot.countsByLevel[level] || 0;+ const isActive = selectedLevels.includes(level.toLowerCase());+ return (+ <button+ key={level}+ className={clsx("button sm br-1 log-level-filter", level.toLowerCase(), isActive && "active")}+ onClick={() => toggleLevel(level.toLowerCase())}+ >+ <p className="text sm">{level}{count > 0 ? ` (${count})` : ''}</p>+ </button>+ );+ })}+ </div>+ </div>++ {/* Action buttons */}+ <div className="log-actions flex gap-1">+ <ButtonSm+ text={copyFeedback ? "" : ""}+ iconClass={copyFeedback ? "copied-icon" : "copy-icon"}+ textColor="text-gray"+ onClick={handleCopyToClipboard}+ tooltip={true}+ tooltipText={copyFeedback ? "Copied!" : "Copy to clipboard"}+ tooltipPosition="pos-bottom"+ />+ <ButtonSm+ text=""+ iconClass="save-icon"+ textColor="text-gray"+ onClick={handleSaveToDisk}+ tooltip={true}+ tooltipText="Save"+ tooltipPosition="pos-bottom"+ />+ <ButtonSm+ text=""+ iconClass="scrolldown-icon"+ textColor="text-gray"+ onClick={scrollToBottom}+ tooltip={true}+ tooltipText="Scroll to bottom"+ tooltipPosition="pos-bottom"+ />+ <ButtonSm+ text=""+ iconClass="search-icon"+ textColor={showSearch ? "text-white" : "text-gray"}+ buttonType={showSearch ? "activated" : ""}+ onClick={() => setShowSearch(!showSearch)}+ tooltip={true}+ tooltipText="Search"+ tooltipPosition="pos-bottom"+ />+ <ButtonSm+ text=""+ iconClass={isPaused ? "play-icon" : "pause-icon"}+ textColor={isPaused ? "text-warning" : "text-gray"}+ onClick={() => setIsPaused(prev => !prev)}+ tooltip={true}+ tooltipText={isPaused ? "Resume" : "Pause"}+ tooltipPosition="pos-bottom"+ />+ <ButtonSm+ text=""+ iconClass="clear-icon"+ textColor="text-gray"+ onClick={handleClear}+ tooltip={true}+ tooltipText="Clear"+ tooltipPosition="pos-bottom"+ />+ </div>+ </div>++ {/* Search bar */}+ {showSearch && (+ <div className="log-search-bar p-1">+ <div className="input-with-string w-full">+ <input+ className="input-field"+ placeholder={t("searchLogs")}+ value={searchText}+ onChange={(e) => setSearchText(e.target.value)}+ autoFocus+ />+ </div>+ </div>+ )}++ {/* Virtualized log list */}+ <div ref={scrollContainerRef} onScroll={handleScroll} className="log-scroll-area">+ {filteredLogs.length === 0 ? (+ <div className="log-empty-state">+ {isPaused ? t("loggingPaused") : t("noLogsToDisplay")}+ </div>+ ) : (+ <div className="log-virtual-track" style={{ height: totalHeight }}>+ <div className="log-virtual-window" style={{ top: offsetY }}>+ {filteredLogs.slice(startIdx, endIdx).map((log, i) => {+ const rowIdx = startIdx + i;+ const rowHeight = prefixHeights[rowIdx + 1] - prefixHeights[rowIdx];+ return (+ <LogEntryRow+ key={`${log.created}-${log.thread}-${rowIdx}`}+ log={log}+ style={{ height: rowHeight }}+ />+ );+ })}+ </div>+ </div>+ )}+ </div>+ </div>+ );+};++export const LogTerminal = ({ isCollapsed = false }: { isCollapsed?: boolean }) => {+ const { getLogStore } = useServer();+ const [selectedLevels, setSelectedLevels] = useState<string[]>([]);+ const [searchText, setSearchText] = useState("");+ const [showSearch, setShowSearch] = useState(false);+ const [isPaused, setIsPaused] = useState(false);++ if (isCollapsed) return (+ <LogCollapsedView getLogStore={getLogStore} selectedLevels={selectedLevels} />+ );+ return (+ <LogTerminalFull+ selectedLevels={selectedLevels} setSelectedLevels={setSelectedLevels}+ searchText={searchText} setSearchText={setSearchText}+ showSearch={showSearch} setShowSearch={setShowSearch}+ isPaused={isPaused} setIsPaused={setIsPaused}+ />);};diff --git a/freemocap-ui/src/components/log-terminal/LogToolbar.tsx b/freemocap-ui/src/components/log-terminal/LogToolbar.tsxdeleted file mode 100644index 2af854eb..00000000--- a/freemocap-ui/src/components/log-terminal/LogToolbar.tsx+++ /dev/null@@ -1,193 +0,0 @@-import React, {memo} from 'react';-import {alpha, Box, IconButton, ToggleButton, ToggleButtonGroup, Tooltip, useTheme} from '@mui/material';-import {- ContentCopy as ContentCopyIcon,- DeleteSweep as DeleteSweepIcon,- Pause as PauseIcon,- PlayArrow as PlayArrowIcon,- Save as SaveIcon,- SaveAlt as ScrollToBottomIcon,- FilterList as FilterListIcon,- Search as SearchIcon,- Warning as WarningIcon,-} from '@mui/icons-material';-import {useTranslation} from 'react-i18next';-import {LogSnapshot} from '@/services/server/server-helpers/log-store';-import {LOG_COLORS} from './constants';--interface Props {- snapshot: LogSnapshot;- isPaused: boolean;- copyFeedback: boolean;- showSearch: boolean;- showLevelFilters: boolean;- selectedLevels: string[];- onLevelToggle: (e: React.MouseEvent<HTMLElement>, newLevels: string[]) => void;- onPauseToggle: () => void;- onClear: () => void;- onCopyToClipboard: () => Promise<void>;- onSaveToDisk: () => void;- onScrollToBottom: () => void;- onToggleSearch: () => void;- onToggleLevelFilters: () => void;-}--export const LogToolbar = memo(function LogToolbar({- snapshot,- isPaused,- copyFeedback,- showSearch,- showLevelFilters,- selectedLevels,- onLevelToggle,- onPauseToggle,- onClear,- onCopyToClipboard,- onSaveToDisk,- onScrollToBottom,- onToggleSearch,- onToggleLevelFilters,-}: Props) {- const theme = useTheme();- const {t} = useTranslation();-- return (- <Box- sx={{- p: 0.5,- borderBottom: '1px solid',- borderColor: theme.palette.divider,- display: 'flex',- gap: 1,- alignItems: 'center',- flexWrap: 'wrap',- }}- >- <span style={{color: theme.palette.text.primary, fontSize: '0.9em', fontWeight: 'bold'}}>- {t('serverLogs')}- </span>-- {snapshot.hasErrors && (- <Tooltip title={t('errorsDetected')}>- <WarningIcon- sx={{- color: LOG_COLORS.ERROR,- fontSize: '1.2em',- animation: 'pulse 2s infinite',- '@keyframes pulse': {- '0%, 100%': {opacity: 1},- '50%': {opacity: 0.5},- },- }}- />- </Tooltip>- )}-- {showLevelFilters && (- <ToggleButtonGroup- size="small"- value={selectedLevels}- onChange={onLevelToggle}- sx={{- '.MuiToggleButtonGroup-grouped': {- border: `1px solid ${theme.palette.divider} !important`,- mx: '1px',- '&:not(:first-of-type)': {borderRadius: '2px'},- '&:first-of-type': {borderRadius: '2px'},- },- }}- >- {Object.entries(LOG_COLORS).map(([level, color]) => {- const count = snapshot.countsByLevel[level] || 0;- return (- <ToggleButton- key={level}- value={level.toLowerCase()}- sx={{- py: 0.25,- px: 1,- minWidth: 0,- fontSize: '0.75em',- position: 'relative',- color: alpha(color, 0.7),- '&.Mui-selected': {- backgroundColor: alpha(color, 0.15),- color: color,- '&:hover': {backgroundColor: alpha(color, 0.2)},- },- '&:hover': {backgroundColor: alpha(color, 0.1)},- }}- >- {level}- {count > 0 && (- <span style={{marginLeft: '4px', fontSize: '0.8em', opacity: 0.7}}>- ({count})- </span>- )}- </ToggleButton>- );- })}- </ToggleButtonGroup>- )}-- <Box sx={{ml: 'auto', display: 'flex', gap: 0.5}}>- <Tooltip title={copyFeedback ? t('copied') : t('copyLogsToClipboard')}>- <IconButton- size="small"- onClick={onCopyToClipboard}- sx={{color: copyFeedback ? theme.palette.success.main : theme.palette.text.secondary}}- >- <ContentCopyIcon fontSize="small"/>- </IconButton>- </Tooltip>-- <Tooltip title={t('saveLogsToFile')}>- <IconButton size="small" onClick={onSaveToDisk} sx={{color: theme.palette.text.secondary}}>- <SaveIcon fontSize="small"/>- </IconButton>- </Tooltip>-- <Tooltip title="Scroll to bottom">- <IconButton size="small" onClick={onScrollToBottom} sx={{color: theme.palette.text.secondary}}>- <ScrollToBottomIcon fontSize="small"/>- </IconButton>- </Tooltip>-- <IconButton- size="small"- onClick={onToggleLevelFilters}- sx={{color: showLevelFilters ? theme.palette.primary.main : theme.palette.text.secondary}}- >- <FilterListIcon fontSize="small"/>- </IconButton>-- <IconButton- size="small"- onClick={onToggleSearch}- sx={{color: showSearch ? theme.palette.primary.main : theme.palette.text.secondary}}- >- <SearchIcon fontSize="small"/>- </IconButton>-- <IconButton- size="small"- onClick={onPauseToggle}- sx={{color: isPaused ? theme.palette.warning.main : theme.palette.text.secondary}}- >- {isPaused ? <PlayArrowIcon fontSize="small"/> : <PauseIcon fontSize="small"/>}- </IconButton>-- <IconButton size="small" onClick={onClear} sx={{color: theme.palette.text.secondary}}>- <DeleteSweepIcon fontSize="small"/>- </IconButton>- </Box>- </Box>- );-}, (prev, next) =>- prev.snapshot.version === next.snapshot.version &&- prev.isPaused === next.isPaused &&- prev.copyFeedback === next.copyFeedback &&- prev.showSearch === next.showSearch &&- prev.showLevelFilters === next.showLevelFilters &&- prev.selectedLevels === next.selectedLevels,-);diff --git a/freemocap-ui/src/components/log-terminal/VirtualLogList.tsx b/freemocap-ui/src/components/log-terminal/VirtualLogList.tsxdeleted file mode 100644index dfa02b46..00000000--- a/freemocap-ui/src/components/log-terminal/VirtualLogList.tsx+++ /dev/null@@ -1,79 +0,0 @@-import React from 'react';-import {useTheme} from '@mui/material';-import {useTranslation} from 'react-i18next';-import {LogRecord} from '@/services/server/server-helpers/log-store';-import {LogEntryRow} from './LogEntryRow';--interface Props {- filteredLogs: LogRecord[];- prefixHeights: number[];- totalHeight: number;- startIdx: number;- endIdx: number;- offsetY: number;- isPaused: boolean;- scrollContainerRef: React.RefObject<HTMLDivElement | null>;- onScroll: () => void;-}--export const VirtualLogList: React.FC<Props> = ({- filteredLogs,- prefixHeights,- totalHeight,- startIdx,- endIdx,- offsetY,- isPaused,- scrollContainerRef,- onScroll,-}) => {- const theme = useTheme();- const {t} = useTranslation();-- return (- <div- ref={scrollContainerRef}- onScroll={onScroll}- style={{- flex: 1,- overflowY: 'auto',- overflowX: 'auto',- position: 'relative',- scrollbarWidth: 'thin' as React.CSSProperties['scrollbarWidth'],- scrollbarColor: theme.palette.mode === 'dark'- ? 'rgba(255, 255, 255, 0.2) transparent'- : 'rgba(0, 0, 0, 0.2) transparent',- }}- >- {filteredLogs.length === 0 ? (- <div- style={{- display: 'flex',- justifyContent: 'center',- alignItems: 'center',- height: '100%',- color: theme.palette.text.disabled,- }}- >- {isPaused ? t('loggingPaused') : t('noLogsToDisplay')}- </div>- ) : (- <div style={{height: totalHeight, position: 'relative'}}>- <div style={{position: 'absolute', top: offsetY, left: 0, right: 0}}>- {filteredLogs.slice(startIdx, endIdx).map((log, i) => {- const rowIdx = startIdx + i;- const rowHeight = prefixHeights[rowIdx + 1] - prefixHeights[rowIdx];- return (- <LogEntryRow- key={`${log.created}-${log.thread}-${rowIdx}`}- log={log}- style={{height: rowHeight}}- />- );- })}- </div>- </div>- )}- </div>- );-};diff --git a/freemocap-ui/src/components/log-terminal/constants.ts b/freemocap-ui/src/components/log-terminal/constants.tsdeleted file mode 100644index 1a5f9591..00000000--- a/freemocap-ui/src/components/log-terminal/constants.ts+++ /dev/null@@ -1,21 +0,0 @@-export const LOG_POLL_INTERVAL_MS = 500;--/** Height of a single line of monospace text in the log view. */-export const LINE_HEIGHT = 15;--/** Vertical padding added to each log entry. */-export const ROW_PADDING = 1;--/** Extra rows rendered above/below the visible viewport. */-export const OVERSCAN = 10;--export const LOG_COLORS: Record<string, string> = {- TRACE: "#ccc",- DEBUG: "#88ccFF",- INFO: "#00E5FF",- SUCCESS: "#FF66FF",- API: "#66FF66",- WARNING: "#FFFF66",- ERROR: "#FF6666",- CRITICAL: "#FF0000",-};diff --git a/freemocap-ui/src/components/log-terminal/filtering.ts b/freemocap-ui/src/components/log-terminal/filtering.tsdeleted file mode 100644index 010116b0..00000000--- a/freemocap-ui/src/components/log-terminal/filtering.ts+++ /dev/null@@ -1,27 +0,0 @@-import {LogRecord} from '@/services/server/server-helpers/log-store';--export function applyFilters(- entries: LogRecord[],- selectedLevels: string[],- searchText: string,-): LogRecord[] {- let filtered = entries;-- if (selectedLevels.length > 0) {- filtered = filtered.filter((log) =>- selectedLevels.includes(log.levelname.toLowerCase())- );- }-- if (searchText) {- const searchLower = searchText.toLowerCase();- filtered = filtered.filter((log) =>- log.message.toLowerCase().includes(searchLower) ||- log.module.toLowerCase().includes(searchLower) ||- log.funcName.toLowerCase().includes(searchLower) ||- log.formatted_message?.toLowerCase().includes(searchLower)- );- }-- return filtered;-}diff --git a/freemocap-ui/src/components/log-terminal/useLogTerminal.ts b/freemocap-ui/src/components/log-terminal/useLogTerminal.tsdeleted file mode 100644index 14a1af2c..00000000--- a/freemocap-ui/src/components/log-terminal/useLogTerminal.ts+++ /dev/null@@ -1,207 +0,0 @@-import {useCallback, useEffect, useMemo, useRef, useState} from 'react';-import {useServer} from '@/services/server/ServerContextProvider';-import {LogSnapshot} from '@/services/server/server-helpers/log-store';-import {applyFilters} from './filtering';-import {buildPrefixHeights, findStartIndex} from './virtualization';-import {LOG_POLL_INTERVAL_MS, OVERSCAN} from './constants';--export interface LogTerminalState {- // data- snapshot: LogSnapshot;- filteredLogs: ReturnType<typeof applyFilters>;- prefixHeights: number[];- totalHeight: number;- // virtualization- scrollContainerRef: React.RefObject<HTMLDivElement | null>;- startIdx: number;- endIdx: number;- offsetY: number;- // ui state- isPaused: boolean;- selectedLevels: string[];- searchText: string;- showSearch: boolean;- showLevelFilters: boolean;- copyFeedback: boolean;- // actions- handleScroll: () => void;- scrollToBottom: () => void;- handleCopyToClipboard: () => Promise<void>;- handleSaveToDisk: () => void;- handleLevelToggle: (e: React.MouseEvent<HTMLElement>, newLevels: string[]) => void;- handlePauseToggle: () => void;- handleClear: () => void;- setSearchText: React.Dispatch<React.SetStateAction<string>>;- setShowSearch: React.Dispatch<React.SetStateAction<boolean>>;- setShowLevelFilters: React.Dispatch<React.SetStateAction<boolean>>;-}--export function useLogTerminal(): LogTerminalState {- const {getLogStore} = useServer();-- const [snapshot, setSnapshot] = useState<LogSnapshot>({- entries: [],- hasErrors: false,- countsByLevel: {},- version: 0,- });- const [isPaused, setIsPaused] = useState(false);- const [selectedLevels, setSelectedLevels] = useState<string[]>([]);- const [searchText, setSearchText] = useState('');- const [showSearch, setShowSearch] = useState(false);- const [showLevelFilters, setShowLevelFilters] = useState(false);- const [copyFeedback, setCopyFeedback] = useState(false);-- // Virtualization state- const scrollContainerRef = useRef<HTMLDivElement>(null);- const [scrollTop, setScrollTop] = useState(0);- const [containerHeight, setContainerHeight] = useState(0);- const shouldAutoScroll = useRef(true);- const lastVersionRef = useRef(-1);-- // Poll the mutable LogStore on a fixed interval.- useEffect(() => {- if (isPaused) return;-- const poll = () => {- const snap = getLogStore().getSnapshot();- if (snap.version === lastVersionRef.current) return;- lastVersionRef.current = snap.version;- setSnapshot(snap);- };-- poll();-- const interval = setInterval(poll, LOG_POLL_INTERVAL_MS);- return () => clearInterval(interval);- }, [getLogStore, isPaused]);-- const filteredLogs = useMemo(- () => applyFilters(snapshot.entries, selectedLevels, searchText),- [snapshot.entries, selectedLevels, searchText]- );-- const prefixHeights = useMemo(() => buildPrefixHeights(filteredLogs), [filteredLogs]);- const totalHeight = prefixHeights[filteredLogs.length] || 0;-- // Track container height via ResizeObserver- useEffect(() => {- const container = scrollContainerRef.current;- if (!container) return;-- const observer = new ResizeObserver((entries) => {- for (const entry of entries) {- setContainerHeight(Math.round(entry.contentRect.height));- }- });- observer.observe(container);- return () => observer.disconnect();- }, []);-- // Auto-scroll to bottom when new logs arrive.- // Deferred via requestAnimationFrame so the DOM has painted the updated- // totalHeight before we read scrollHeight, preventing a visible bounce.- useEffect(() => {- if (!isPaused && shouldAutoScroll.current && scrollContainerRef.current) {- requestAnimationFrame(() => {- const el = scrollContainerRef.current;- if (el) el.scrollTop = el.scrollHeight;- });- }- }, [filteredLogs, isPaused]);-- const handleScroll = useCallback(() => {- const el = scrollContainerRef.current;- if (!el) return;- setScrollTop(el.scrollTop);- // Tight tolerance accounts for sub-pixel rounding while ensuring the- // user must be truly at the bottom to re-engage auto-scroll.- const isAtBottom = el.scrollHeight - el.scrollTop - el.clientHeight < 2;- shouldAutoScroll.current = isAtBottom;- }, []);-- const scrollToBottom = useCallback(() => {- const el = scrollContainerRef.current;- if (el) {- el.scrollTop = el.scrollHeight;- shouldAutoScroll.current = true;- }- }, []);-- const formatLogsForExport = useCallback((): string => {- return filteredLogs- .map((log) => `[${log.asctime}] [${log.levelname}] ${log.module}:${log.funcName}:${log.lineno} - ${log.message}`)- .join('\n');- }, [filteredLogs]);-- const handleCopyToClipboard = useCallback(async () => {- await navigator.clipboard.writeText(formatLogsForExport());- setCopyFeedback(true);- setTimeout(() => setCopyFeedback(false), 2000);- }, [formatLogsForExport]);-- const handleSaveToDisk = useCallback(() => {- const text = formatLogsForExport();- const blob = new Blob([text], {type: 'text/plain'});- const url = URL.createObjectURL(blob);- const a = document.createElement('a');- a.href = url;- a.download = `freemocap-logs-${new Date().toISOString().replace(/[:.]/g, '-')}.txt`;- document.body.appendChild(a);- a.click();- document.body.removeChild(a);- URL.revokeObjectURL(url);- }, [formatLogsForExport]);-- const handleLevelToggle = useCallback((_: React.MouseEvent<HTMLElement>, newLevels: string[]) => {- setSelectedLevels(newLevels);- }, []);-- const handlePauseToggle = useCallback(() => {- setIsPaused((prev) => !prev);- }, []);-- const handleClear = useCallback(() => {- getLogStore().clear();- setSelectedLevels([]);- setSearchText('');- setShowSearch(false);- setShowLevelFilters(false);- setIsPaused(false);- lastVersionRef.current = -1;- setSnapshot({entries: [], hasErrors: false, countsByLevel: {}, version: 0});- }, [getLogStore]);-- // Compute visible row window- const startIdx = Math.max(0, findStartIndex(prefixHeights, scrollTop) - OVERSCAN);- const endScrollTop = scrollTop + containerHeight;- const endIdx = Math.min(filteredLogs.length, findStartIndex(prefixHeights, endScrollTop) + 1 + OVERSCAN);- const offsetY = prefixHeights[startIdx];-- return {- snapshot,- filteredLogs,- prefixHeights,- totalHeight,- scrollContainerRef,- startIdx,- endIdx,- offsetY,- isPaused,- selectedLevels,- searchText,- showSearch,- showLevelFilters,- copyFeedback,- handleScroll,- scrollToBottom,- handleCopyToClipboard,- handleSaveToDisk,- handleLevelToggle,- handlePauseToggle,- handleClear,- setSearchText,- setShowSearch,- setShowLevelFilters,- };-}diff --git a/freemocap-ui/src/components/log-terminal/virtualization.ts b/freemocap-ui/src/components/log-terminal/virtualization.tsdeleted file mode 100644index 1651dda4..00000000--- a/freemocap-ui/src/components/log-terminal/virtualization.ts+++ /dev/null@@ -1,55 +0,0 @@-import {LogRecord} from '@/services/server/server-helpers/log-store';-import {LINE_HEIGHT, ROW_PADDING} from './constants';--/** Count lines in a message. A message with no newlines has 1 line. */-export const countLines = (text: string): number => {- if (!text) return 1;- let count = 1;- for (let i = 0; i < text.length; i++) {- if (text[i] === '\n') count++;- }- return count;-};--/** Compute the pixel height of a log entry based on its line count. */-export const getRowHeight = (log: LogRecord): number => {- // Divider entries get a compact fixed height (short horizontal rule).- if (log.type === 'divider') {- return LINE_HEIGHT + 8;- }- const lines = countLines(log.message);- if (lines === 1) {- return LINE_HEIGHT + ROW_PADDING;- }- // Multi-line: header line + all message lines + padding- return LINE_HEIGHT + lines * LINE_HEIGHT + ROW_PADDING;-};--/**- * Build a prefix-sum array of cumulative heights for variable-height virtualization.- * prefixHeights[i] = total height of rows 0..i-1 (the Y offset of row i).- * prefixHeights[n] = total height of all rows.- */-export const buildPrefixHeights = (logs: LogRecord[]): number[] => {- const prefixes = new Array<number>(logs.length + 1);- prefixes[0] = 0;- for (let i = 0; i < logs.length; i++) {- prefixes[i + 1] = prefixes[i] + getRowHeight(logs[i]);- }- return prefixes;-};--/** Binary search for the first row whose bottom edge is past the given Y offset. */-export const findStartIndex = (prefixHeights: number[], y: number): number => {- let lo = 0;- let hi = prefixHeights.length - 2;- while (lo < hi) {- const mid = (lo + hi) >>> 1;- if (prefixHeights[mid + 1] <= y) {- lo = mid + 1;- } else {- hi = mid;- }- }- return lo;-};diff --git a/freemocap-ui/src/components/mocap-setup/mocap-3dreconstruction-settings.tsx b/freemocap-ui/src/components/mocap-setup/mocap-3dreconstruction-settings.tsxnew file mode 100644index 00000000..51f0f833--- /dev/null+++ b/freemocap-ui/src/components/mocap-setup/mocap-3dreconstruction-settings.tsx@@ -0,0 +1,243 @@+import React, { useCallback, useEffect, useRef } from "react";+import SubactionHeader from "@/components/ui-components/SubactionHeader";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import ValueSelector from "@/components/ui-components/ValueSelector";+import { useMocap } from "@/hooks/useMocap";+import { useRealtimePipelineSync } from "@/hooks/useRealtimePipelineSync";+import {+ DEFAULT_REALTIME_FILTER_CONFIG,+ RealtimeFilterConfig,+} from "@/store/slices/mocap";+import IconButton from "@/components/ui-components/IconButton";+interface MOCAPthreeDReconstructionSettingsProps {+ open: boolean;+ onClose: () => void;+}++const MOCAPthreeDReconstructionSettings: React.FC<+ MOCAPthreeDReconstructionSettingsProps+> = ({ open, onClose }) => {+ const modalRef = useRef<HTMLDivElement>(null);++ const {+ skeletonFilterConfig,+ updateSkeletonFilterConfigLocalOnly,+ replaceSkeletonFilterConfigLocalOnly,+ isLoading,+ } = useMocap();+ const {+ triggerRealtimeApply,+ applyOrUpdatePipelineConfig,+ pipelineConfig,+ aggregatorConfig,+ } = useRealtimePipelineSync();++ const handleUpdateSkeletonFilterConfig = useCallback(+ (updates: Partial<RealtimeFilterConfig>) => {+ updateSkeletonFilterConfigLocalOnly(updates);+ triggerRealtimeApply();+ },+ [updateSkeletonFilterConfigLocalOnly, triggerRealtimeApply],+ );++ const handleResetDefaults = useCallback(() => {+ replaceSkeletonFilterConfigLocalOnly({ ...DEFAULT_REALTIME_FILTER_CONFIG });+ triggerRealtimeApply();+ }, [replaceSkeletonFilterConfigLocalOnly, triggerRealtimeApply]);++ const handleSkeletonToggle = useCallback(+ (value: boolean) =>+ applyOrUpdatePipelineConfig({+ ...pipelineConfig,+ aggregator_config: { ...aggregatorConfig, skeleton_enabled: value },+ }),+ [applyOrUpdatePipelineConfig, pipelineConfig, aggregatorConfig],+ );++ useEffect(() => {+ if (!open) return;++ const handleKeyDown = (e: KeyboardEvent) => {+ if (e.key === "Escape") onClose();+ };++ const handleClickOutside = (e: MouseEvent) => {+ if (modalRef.current && !modalRef.current.contains(e.target as Node)) {+ onClose();+ }+ };++ window.addEventListener("keydown", handleKeyDown);+ document.addEventListener("mousedown", handleClickOutside);++ return () => {+ window.removeEventListener("keydown", handleKeyDown);+ document.removeEventListener("mousedown", handleClickOutside);+ };+ }, [open, onClose]);++ if (!open) return null;++ return (+ <div+ ref={modalRef}+ className="flex flex-col w-full br-2 reveal fadeIn gap-1"+ >+ <div className="gap-1 flex flex-col">+ {/* Header */}+ <div className="flex justify-content-space-between items-center">+ <SubactionHeader text="Point Gate settings" />+ <div className="flex flex-row gap-1 items-center">+ <IconButton+ icon="clear-icon"+ className="button sm"+ onClick={handleResetDefaults}+ disabled={isLoading}+ tooltip+ tooltipText="Reset to defaults"+ tooltipPosition="pos-left"+ />++ {/* <IconButton+ icon="close-icon"+ className="button sm"+ onClick={onClose}+ /> */}+ </div>+ </div>++ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Max Reproj Error</span>++ <ValueSelector+ value={skeletonFilterConfig.max_reprojection_error_px}+ min={5}+ max={200}+ step={1}+ unit="px"+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ max_reprojection_error_px: v })+ }+ />+ </div>+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Max Velocity</span>++ <ValueSelector+ value={skeletonFilterConfig.max_velocity_m_per_s}+ min={5}+ max={200}+ step={1}+ unit="m/s"+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ max_velocity_m_per_s: v })+ }+ />+ </div>+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Max Rejected streaks</span>++ <ValueSelector+ value={skeletonFilterConfig.max_rejected_streak}+ min={1}+ max={30}+ step={1}+ unit=""+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ max_rejected_streak: v })+ }+ />+ </div>++ <SubactionHeader text="One Euro Filter" />+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Min Cutoff</span>+ <ValueSelector+ value={skeletonFilterConfig.min_cutoff}+ min={0.0001}+ max={0.1}+ step={0.0005}+ unit=""+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ min_cutoff: v })+ }+ />+ </div>+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Beta</span>+ <ValueSelector+ value={skeletonFilterConfig.beta}+ min={0}+ max={5}+ step={0.05}+ unit=""+ onChange={(v) => handleUpdateSkeletonFilterConfig({ beta: v })}+ />+ </div>+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">D Cutoff</span>+ <ValueSelector+ value={skeletonFilterConfig.d_cutoff}+ min={0.1}+ max={5}+ step={0.1}+ unit=""+ onChange={(v) => handleUpdateSkeletonFilterConfig({ d_cutoff: v })}+ />+ </div>++ <SubactionHeader text="Fabrik" />+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Max iterations</span>+ <ValueSelector+ value={skeletonFilterConfig.fabrik_max_iterations}+ min={1}+ max={100}+ step={1}+ unit=""+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ fabrik_max_iterations: v })+ }+ />+ </div>++ <SubactionHeader text="Body Model" />+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Height</span>+ <ValueSelector+ value={skeletonFilterConfig.height_meters}+ min={0.5}+ max={3.0}+ step={0.01}+ unit="m"+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ height_meters: v })+ }+ />+ </div>+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Noise sigma</span>+ <ValueSelector+ value={skeletonFilterConfig.noise_sigma}+ min={0.001}+ max={0.05}+ step={0.001}+ unit="m"+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ noise_sigma: v })+ }+ />+ </div>++ <ToggleComponent+ text="Skeleton"+ isToggled={aggregatorConfig.skeleton_enabled}+ onToggle={handleSkeletonToggle}+ disabled={isLoading}+ />+ </div>+ </div>+ );+};++export default MOCAPthreeDReconstructionSettings;diff --git a/freemocap-ui/src/components/mocap-setup/mocap-blender-settings.tsx b/freemocap-ui/src/components/mocap-setup/mocap-blender-settings.tsxnew file mode 100644index 00000000..850d0e6d--- /dev/null+++ b/freemocap-ui/src/components/mocap-setup/mocap-blender-settings.tsx@@ -0,0 +1,191 @@+import React, { useEffect, useRef } from "react";+import SubactionHeader from "@/components/ui-components/SubactionHeader";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import ButtonSm from "@/components/ui-components/ButtonSm";+import { useMocap } from "@/hooks/useMocap";+import { useBlender } from "@/hooks/useBlender";+import { useElectronIPC } from "@/services";++interface MOCAPBlenderSettingsProps {+ open: boolean;+ onClose: () => void;+}++const MOCAPBlenderSettings: React.FC<MOCAPBlenderSettingsProps> = ({+ open,+ onClose,+}) => {+ const modalRef = useRef<HTMLDivElement>(null);++ const { mocapRecordingPath } = useMocap();+ const { api, isElectron } = useElectronIPC();+ const {+ effectiveBlenderExePath,+ isUsingManualBlenderPath,+ exportToBlenderEnabled,+ autoOpenBlendFile,+ isExporting,+ isDetecting,+ isOpening,+ lastBlendFilePath,+ redetectBlender,+ setBlenderExePath,+ setExportToBlenderEnabled,+ setAutoOpenBlendFile,+ triggerBlenderExport,+ triggerOpenInBlender,+ } = useBlender();++ const handleSelectBlenderExe = async (): Promise<void> => {+ if (!isElectron || !api) return;+ try {+ const result: string | null = await api.fileSystem.selectExecutableFile.mutate();+ if (result) setBlenderExePath(result);+ } catch (error) {+ console.error("Failed to select Blender executable:", error);+ }+ };++ const handleProcessWithBlender = (): void => {+ if (!mocapRecordingPath) return;+ void triggerBlenderExport(mocapRecordingPath);+ };++ const handleOpenInBlender = (): void => {+ if (!mocapRecordingPath) return;+ void triggerOpenInBlender(mocapRecordingPath);+ };++ const canExport =+ !!mocapRecordingPath && !!effectiveBlenderExePath && !isExporting;++ const canOpen =+ !!mocapRecordingPath && !!effectiveBlenderExePath && !isOpening;++ useEffect(() => {+ if (!open) return;++ const handleKeyDown = (e: KeyboardEvent) => {+ if (e.key === "Escape") onClose();+ };++ const handleClickOutside = (e: MouseEvent) => {+ if (modalRef.current && !modalRef.current.contains(e.target as Node)) {+ onClose();+ }+ };++ window.addEventListener("keydown", handleKeyDown);+ document.addEventListener("mousedown", handleClickOutside);++ return () => {+ window.removeEventListener("keydown", handleKeyDown);+ document.removeEventListener("mousedown", handleClickOutside);+ };+ }, [open, onClose]);++ if (!open) return null;++ return (+ <div+ ref={modalRef}+ className="flex flex-col w-full br-2 reveal fadeIn gap-1"+ >+ <div className="gap-1 flex flex-col">+ {/* Header */}+ <div className="flex justify-content-space-between items-center">+ <SubactionHeader text="Blender settings" />+ </div>+ <div className="flex flex-row justify-content-space-between items-center">+ <div className="flex flex-row items-center">+ <span className="icon icon-size-20 blender-icon"></span>+ <p className="p-1 text-gray">Blender executable</p>+ </div>+ <ButtonSm+ text={isDetecting ? "Detecting..." : "Autodetect"}+ onClick={redetectBlender}+ disabled={isDetecting}+ tooltip={true}+ tooltipPosition="pos-top-right"+ tooltipText="Automatically find Blender installation on your system"+ />+ </div>++ {/* Blender executable selector */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <button+ className="select-path button sm bg-middark br-1 border-1 border-black flex items-center gap-1 text-left flex-1"+ onClick={handleSelectBlenderExe}+ title="Click to select Blender executable"+ disabled={!isElectron}+ style={{ minWidth: 0, overflow: "hidden" }}+ >+ {effectiveBlenderExePath ? (+ <p+ className="recording-path-preview flex-1 text md"+ style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}+ >+ {effectiveBlenderExePath}+ </p>+ ) : (+ <p+ className="text-gray flex-1 text md"+ style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}+ >+ {isDetecting ? "Detecting…" : "Select Blender executable"}+ </p>+ )}+ </button>+ </div>+ <p className="text sm text-gray p-1 mb-3">+ {isUsingManualBlenderPath+ ? "Using manually selected Blender"+ : effectiveBlenderExePath+ ? "Auto-detected Blender"+ : "Click to browse for blender.exe"}+ </p>++ {/* Toggles */}+ <ToggleComponent+ text="Export to Blender after mocap processing"+ isToggled={exportToBlenderEnabled}+ onToggle={setExportToBlenderEnabled}+ />++ <ToggleComponent+ text="Auto-open .blend file in Blender when done"+ isToggled={autoOpenBlendFile}+ onToggle={setAutoOpenBlendFile}+ />++ <ButtonSm+ text={isExporting ? "Exporting to Blender…" : "Process Recording with Blender"}+ onClick={handleProcessWithBlender}+ disabled={!canExport}+ className="full-width quaternary mt-3"+ tooltip={true}+ tooltipPosition="pos-bottom-left"+ tooltipText="Send your motion capture recording to Blender for further processing"+ />++ <ButtonSm+ text={isOpening ? "Opening…" : "Open .blend in Blender"}+ onClick={handleOpenInBlender}+ disabled={!canOpen}+ className="full-width quaternary"+ tooltip={true}+ tooltipPosition="pos-bottom-left"+ tooltipText="Launch Blender and open the .blend file"+ />++ {lastBlendFilePath && (+ <p className="text sm text-gray p-1 mb-3">+ Last export: {lastBlendFilePath}+ </p>+ )}+ </div>+ </div>+ );+};++export default MOCAPBlenderSettings;diff --git a/freemocap-ui/src/components/mocap-setup/mocap-mediapipedetector-settings.tsx b/freemocap-ui/src/components/mocap-setup/mocap-mediapipedetector-settings.tsxnew file mode 100644index 00000000..7d816581--- /dev/null+++ b/freemocap-ui/src/components/mocap-setup/mocap-mediapipedetector-settings.tsx@@ -0,0 +1,190 @@+import React, { useCallback, useEffect, useRef } from 'react';+import SubactionHeader from '@/components/ui-components/SubactionHeader';+import IconButton from '@/components/ui-components/IconButton';+import NameDropdownSelector from '@/components/ui-components/NameDropdownSelector';+import ToggleComponent from '@/components/ui-components/ToggleComponent';+import ValueSelector from '@/components/ui-components/ValueSelector';+import { useMocap } from '@/hooks/useMocap';+import { useRealtimePipelineSync } from '@/hooks/useRealtimePipelineSync';+import {+ detectPreset,+ MEDIAPIPE_POSTHOC_PRESET,+ MEDIAPIPE_REALTIME_PRESET,+ MediapipeDetectorConfig,+} from '@/store/slices/mocap';++interface MOCAPMediaPipeDetectorSettingsProps {+ open: boolean;+ onClose: () => void;+}++const PRESET_OPTIONS = ["Lite (Fastest)", "PostHog (Accurate)", "Custom"];++const presetLabelToTarget: Record<string, "realtime" | "posthoc"> = {+ "Lite (Fastest)": "realtime",+ "PostHog (Accurate)": "posthoc",+};++const presetValueToLabel: Record<string, string> = {+ realtime: "Lite (Fastest)",+ posthoc: "PostHog (Accurate)",+ custom: "Custom",+};++const MOCAPMediaPipeDetectorSettings: React.FC<+ MOCAPMediaPipeDetectorSettingsProps+> = ({ open, onClose }) => {+ const modalRef = useRef<HTMLDivElement>(null);++ const {+ detectorConfig,+ updateDetectorConfigLocalOnly,+ replaceDetectorConfigLocalOnly,+ isLoading,+ } = useMocap();+ const { triggerRealtimeApply } = useRealtimePipelineSync();++ const handleUpdateDetectorConfig = useCallback(+ (updates: Partial<MediapipeDetectorConfig>) => {+ updateDetectorConfigLocalOnly(updates);+ triggerRealtimeApply();+ },+ [updateDetectorConfigLocalOnly, triggerRealtimeApply]+ );++ const handleReplaceDetectorConfig = useCallback(+ (config: MediapipeDetectorConfig) => {+ replaceDetectorConfigLocalOnly(config);+ triggerRealtimeApply();+ },+ [replaceDetectorConfigLocalOnly, triggerRealtimeApply]+ );++ const currentPreset = detectPreset(detectorConfig);++ const handlePresetChange = useCallback(+ (label: string) => {+ const target = presetLabelToTarget[label];+ if (target === "realtime") handleReplaceDetectorConfig({...MEDIAPIPE_REALTIME_PRESET});+ else if (target === "posthoc") handleReplaceDetectorConfig({...MEDIAPIPE_POSTHOC_PRESET});+ },+ [handleReplaceDetectorConfig]+ );++ useEffect(() => {+ if (!open) return;++ const handleKeyDown = (e: KeyboardEvent) => {+ if (e.key === 'Escape') onClose();+ };++ const handleClickOutside = (e: MouseEvent) => {+ if (modalRef.current && !modalRef.current.contains(e.target as Node)) {+ onClose();+ }+ };++ window.addEventListener('keydown', handleKeyDown);+ document.addEventListener('mousedown', handleClickOutside);++ return () => {+ window.removeEventListener('keydown', handleKeyDown);+ document.removeEventListener('mousedown', handleClickOutside);+ };+ }, [open, onClose]);++ if (!open) return null;++ return (+ <div+ ref={modalRef}+ className="flex flex-col w-full br-2 reveal fadeIn gap-1"+ >+ <div className="gap-1 flex flex-col">++ {/* Header */}+ <div className="flex justify-content-space-between items-center">+ <SubactionHeader text="MediaPipe Settings" />+ {/* <IconButton icon="close-icon" onClick={onClose} /> */}+ </div>++ {/* Preset dropdown */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Preset</span>++ <NameDropdownSelector+ key={currentPreset}+ options={PRESET_OPTIONS}+ initialValue={presetValueToLabel[currentPreset]}+ onChange={handlePresetChange}+ className="flex flex-row"+ />+ </div>++ {/* Min Detection Confidence */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Min detection confidence</span>+ <ValueSelector+ value={detectorConfig.min_detection_confidence}+ min={0}+ max={1}+ step={0.05}+ unit=""+ onChange={(v) => handleUpdateDetectorConfig({ min_detection_confidence: v })}+ />+ </div>++ {/* Min Tracking Confidence */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Min tracking confidence</span>+ <ValueSelector+ value={detectorConfig.min_tracking_confidence}+ min={0}+ max={1}+ step={0.05}+ unit=""+ onChange={(v) => handleUpdateDetectorConfig({ min_tracking_confidence: v })}+ />+ </div>++ {/* Toggles */}+ <ToggleComponent+ text="Smooth landmarks"+ isToggled={detectorConfig.smooth_landmarks}+ onToggle={(checked) => handleUpdateDetectorConfig({ smooth_landmarks: checked })}+ disabled={isLoading}+ />++ <ToggleComponent+ text="Segmentation"+ isToggled={detectorConfig.enable_segmentation}+ onToggle={(checked) => handleUpdateDetectorConfig({ enable_segmentation: checked })}+ disabled={isLoading}+ />++ <ToggleComponent+ text="Smooth segmentation"+ isToggled={detectorConfig.smooth_segmentation}+ onToggle={(checked) => handleUpdateDetectorConfig({ smooth_segmentation: checked })}+ disabled={isLoading || !detectorConfig.enable_segmentation}+ />++ <ToggleComponent+ text="Refine face landmarks"+ isToggled={detectorConfig.refine_face_landmarks}+ onToggle={(checked) => handleUpdateDetectorConfig({ refine_face_landmarks: checked })}+ disabled={isLoading}+ />++ <ToggleComponent+ text="Static image mode"+ isToggled={detectorConfig.static_image_mode}+ onToggle={(checked) => handleUpdateDetectorConfig({ static_image_mode: checked })}+ disabled={isLoading}+ />+ </div>+ </div>+ );+};++export default MOCAPMediaPipeDetectorSettings;diff --git a/freemocap-ui/src/components/mocap-setup/mocap-processing-directory.tsx b/freemocap-ui/src/components/mocap-setup/mocap-processing-directory.tsxnew file mode 100644index 00000000..647f336b--- /dev/null+++ b/freemocap-ui/src/components/mocap-setup/mocap-processing-directory.tsx@@ -0,0 +1,147 @@+import React, { useEffect, useRef } from "react";+import SubactionHeader from "@/components/ui-components/SubactionHeader";+import IconButton from "@/components/ui-components/IconButton";+import { useMocap } from "@/hooks/useMocap";+import { useElectronIPC } from "@/services";++interface ProcessDirectoryModuleProps {+ open: boolean;+ onClose: () => void;+}++const ProcessDirectoryModule: React.FC<ProcessDirectoryModuleProps> = ({+ open,+ onClose,+}) => {+ const modalRef = useRef<HTMLDivElement>(null);++ const {+ mocapRecordingPath,+ isUsingManualPath,+ isLoading,+ setManualRecordingPath,+ clearManualRecordingPath,+ validateDirectory,+ } = useMocap();+ const { api, isElectron } = useElectronIPC();++ const handleSelectDirectory = async (): Promise<void> => {+ if (!isElectron || !api) return;+ try {+ const result: string | null = await api.fileSystem.selectDirectory.mutate();+ if (result) await setManualRecordingPath(result);+ } catch (error) {+ console.error("Failed to select directory:", error);+ }+ };++ const handleOpenFolder = async (): Promise<void> => {+ if (!isElectron || !api || !mocapRecordingPath) return;+ try {+ await api.fileSystem.openFolder.mutate({ path: mocapRecordingPath });+ } catch (error) {+ console.error("Failed to open folder:", error);+ }+ };++ useEffect(() => {+ if (!open) return;++ const handleKeyDown = (e: KeyboardEvent) => {+ if (e.key === "Escape") onClose();+ };++ const handleClickOutside = (e: MouseEvent) => {+ if (modalRef.current && !modalRef.current.contains(e.target as Node)) {+ onClose();+ }+ };++ window.addEventListener("keydown", handleKeyDown);+ document.addEventListener("mousedown", handleClickOutside);++ return () => {+ window.removeEventListener("keydown", handleKeyDown);+ document.removeEventListener("mousedown", handleClickOutside);+ };+ }, [open, onClose]);++ if (!open) return null;++ return (+ <div+ ref={modalRef}+ className="flex flex-col w-full br-2 reveal fadeIn gap-1"+ >+ <div className="gap-1 flex flex-col">+ {/* Header */}+ <div className="flex justify-content-space-between items-center">+ <SubactionHeader text="Process Directory" />+ </div>++ {/* Process directory selector */}+ <div className="set-mocap-directory flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="icon icon-size-20 subcat-icon"></span>+ <button+ className="select-path button sm bg-middark br-1 border-1 border-black flex items-center gap-1 text-left flex-1"+ onClick={handleSelectDirectory}+ title="Click to select Process directory"+ disabled={!isElectron}+ style={{ minWidth: 0, overflow: "hidden" }}+ >+ {mocapRecordingPath ? (+ <p+ className="recording-path-preview flex-1 text md"+ style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}+ >+ {mocapRecordingPath}+ </p>+ ) : (+ <p+ className="text-gray flex-1 text md"+ style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}+ >+ Select a folder where the mocap process will be saved.+ </p>+ )}+ </button>+ <div className="flex flex-row gap-1" style={{ flexShrink: 0 }}>+ {isUsingManualPath && (+ <IconButton+ icon="clear-icon"+ onClick={clearManualRecordingPath}+ title="Clear manual path (revert to default)"+ tooltip={true}+ tooltipPosition="pos-top-right"+ tooltipText="Clear manual path (revert to default)"+ />+ )}+ <IconButton+ icon="checkUpdate-icon"+ onClick={() => mocapRecordingPath && validateDirectory(mocapRecordingPath)}+ disabled={!mocapRecordingPath || isLoading}+ title="Re-check folder"+ tooltip={true}+ tooltipPosition="pos-top-right"+ tooltipText="Re-check folder"+ />+ <IconButton+ icon="subfolder-icon"+ onClick={handleOpenFolder}+ disabled={!isElectron || !mocapRecordingPath}+ title="Open folder in file explorer"+ tooltip={true}+ tooltipPosition="pos-top-right"+ tooltipText="Open folder in file explorer"+ />+ </div>+ </div>+ <p className="text sm text-gray p-1">+ {isUsingManualPath ? "Using custom path" : "Using default recording directory"}+ </p>+ </div>+ </div>+ );+};++export default ProcessDirectoryModule;diff --git a/freemocap-ui/src/components/mocap-setup/mocap-setup-modal.tsx b/freemocap-ui/src/components/mocap-setup/mocap-setup-modal.tsxnew file mode 100644index 00000000..c165cf7e--- /dev/null+++ b/freemocap-ui/src/components/mocap-setup/mocap-setup-modal.tsx@@ -0,0 +1,256 @@+import React, { useState, useRef, useEffect, useCallback } from "react";+import ButtonSm from "@/components/ui-components/ButtonSm";+import SubactionHeader from "@/components/ui-components/SubactionHeader";++import ProcessingDirectorySettings from "@/components/mocap-setup/mocap-processing-directory";+import CalibrationModule from "@/components/pipeline-progress/calibration-progress/calibration-module";+import MOCAPthreeDReconstructionSettings from "@/components/mocap-setup/mocap-3dreconstruction-settings";+import MOCAPMediaPipeDetectorSettings from "@/components/mocap-setup/mocap-mediapipedetector-settings";+import MOCAPBlenderSettings from "@/components/mocap-setup/mocap-blender-settings";+import { useMocap } from "@/hooks/useMocap";++type MocapMode = "recording" | "playback";++interface MocapSetupModalProps {+ onClose?: () => void;+ mode?: MocapMode;+}++const MocapSetupModal: React.FC<MocapSetupModalProps> = ({+ onClose,+ mode = "playback",+}) => {+ const { canProcessMocapRecording, isLoading, dispatchProcessMocapRecording } =+ useMocap();+ const [activeButton, setActiveButton] = useState<+ "button1" | "button2" | "button3" | "button4" | "button5"+ >("button1");++ const scrollContainerRef = useRef<HTMLDivElement>(null);+ const panel1Ref = useRef<HTMLDivElement>(null);+ const panel2Ref = useRef<HTMLDivElement>(null);+ const panel3Ref = useRef<HTMLDivElement>(null);+ const panel4Ref = useRef<HTMLDivElement>(null);+ const panel5Ref = useRef<HTMLDivElement>(null);++ const scrollToPanel = useCallback((panelIndex: number) => {+ const refs = [panel1Ref, panel2Ref, panel3Ref, panel4Ref, panel5Ref];+ const targetRef = refs[panelIndex];+ if (targetRef.current && scrollContainerRef.current) {+ targetRef.current.scrollIntoView({+ behavior: "smooth",+ block: "start",+ inline: "nearest",+ });+ setActiveButton(+ ["button1", "button2", "button3", "button4", "button5"][panelIndex] as+ | "button1"+ | "button2"+ | "button3"+ | "button4"+ | "button5",+ );+ }+ }, []);++ // IntersectionObserver to detect which panel is visible on scroll+ useEffect(() => {+ const observer = new IntersectionObserver(+ (entries) => {+ entries.forEach((entry) => {+ if (entry.isIntersecting) {+ const id = entry.target.getAttribute("data-panel");+ if (id === "panel1") setActiveButton("button1");+ else if (id === "panel2") setActiveButton("button2");+ else if (id === "panel3") setActiveButton("button3");+ else if (id === "panel4") setActiveButton("button4");+ else if (id === "panel5") setActiveButton("button5");+ }+ });+ },+ {+ root: scrollContainerRef.current,+ rootMargin: "0px 0px -50% 0px",+ threshold: 0.5,+ },+ );++ const panels = [panel1Ref, panel2Ref, panel3Ref, panel4Ref, panel5Ref];+ panels.forEach((ref) => {+ if (ref.current) observer.observe(ref.current);+ });++ return () => {+ observer.disconnect();+ };+ }, []);++ return (+ <>+ {/* Backdrop overlay */}+ <div+ className="pos-fixed inset-0 bg-surface-overlay z-10"+ onClick={onClose}+ />++ {/* Modal */}+ <div className="mocap-settings-modal bg-primary border-1 border-black pos-fixed gap-1 elevated-sharp p-1 b-2 flex flex-col br-2">+ {/* Row 1 */}+ <div className="inner-container-settings gap-1 flex flex-row flex-1 br-2">+ {/* Column 1 - Buttons */}+ <div+ className="left-section-actions br-1 p-2 bg-tertiary flex flex-col flex-1 gap-2"+ style={{ maxWidth: 146, flexShrink: 0 }}+ >+ <SubactionHeader text="Mocap setup" className="text-gray" />+ <ButtonSm+ text="Processing Directory"+ buttonType={activeButton === "button1" ? "activated" : "idle"}+ className="full-width quaternary"+ onClick={() => scrollToPanel(0)}+ />+ <ButtonSm+ text="Calibration"+ buttonType={activeButton === "button2" ? "activated" : "idle"}+ className="full-width quaternary"+ onClick={() => scrollToPanel(1)}+ />+ <ButtonSm+ text="3D Reconstruction"+ buttonType={activeButton === "button3" ? "activated" : "idle"}+ className="full-width quaternary"+ onClick={() => scrollToPanel(2)}+ />+ <ButtonSm+ text="MediaPipe Detector"+ buttonType={activeButton === "button4" ? "activated" : "idle"}+ className="full-width quaternary"+ onClick={() => scrollToPanel(3)}+ />+ <ButtonSm+ text="Blender"+ buttonType={activeButton === "button5" ? "activated" : "idle"}+ className="full-width quaternary"+ onClick={() => scrollToPanel(4)}+ />+ </div>++ {/* Column 2 - Dynamic Content */}+ <div+ ref={scrollContainerRef}+ className="right-side-settings-container bg-primary br-1 overflow-y flex-1 flex flex-col gap-1 w-full flex-row overflow-y-auto"+ >+ {/* <div className="flex flex-col gap-2 w-full"> */}+ {/* Panel 1 - Processing Directory */}+ <div+ ref={panel1Ref}+ data-panel="panel1"+ className="bg-secondary p-2 br-1"+ >+ <ProcessingDirectorySettings open={true} onClose={() => {}} />+ </div>++ {/* Panel 2 - Calibration */}+ <div+ ref={panel2Ref}+ data-panel="panel2"+ className="bg-secondary p-2 br-1"+ >+ <CalibrationModule+ appModeOverride={mode === "playback" ? "playback" : "streaming"}+ />+ </div>++ {/* Panel 3 - 3D Reconstruction */}+ <div+ ref={panel3Ref}+ data-panel="panel3"+ className="bg-secondary p-2 br-1"+ >+ <MOCAPthreeDReconstructionSettings+ open={true}+ onClose={() => {}}+ />+ </div>++ {/* Panel 4 - MediaPipe Detector */}+ <div+ ref={panel4Ref}+ data-panel="panel4"+ className="bg-secondary p-2 br-1"+ >+ <MOCAPMediaPipeDetectorSettings open={true} onClose={() => {}} />+ </div>++ {/* Panel 5 - Blender */}+ <div+ ref={panel5Ref}+ data-panel="panel5"+ className="bg-secondary p-2 br-1"+ >+ <MOCAPBlenderSettings open={true} onClose={() => {}} />+ </div>++ {/* Dummy div for extra scroll space */}+ <div+ className="bg-secondary p-2"+ style={{ minHeight: "220px", transform: "translateY(-6px)" }}+ ></div>+ {/* </div> */}+ </div>+ </div>++ {/* Row 2 */}+ <div className="bottom-area-action-container p-2 br-2 flex flex-col align-end bottom-row gap-2 pt-0">+ {/* Column 1 - Two buttons */}+ <div className="flex flex-row gap-2 h-full">+ <ButtonSm+ text="Cancel"+ buttonType="quaternary"+ className=""+ onClick={onClose}+ />+ {mode === "playback" ? (+ <ButtonSm+ text="Process Mocap"+ textColor="text-white"+ iconClass="processmocap-icon"+ buttonType=""+ className="primary accent"+ onClick={() => {+ dispatchProcessMocapRecording();+ onClose?.();+ }}+ disabled={!canProcessMocapRecording || isLoading}+ tooltip={true}+ tooltipPosition="pos-top"+ tooltipText="Start mocap processing"+ />+ ) : (+ <ButtonSm+ text="Save"+ textColor="text-white"+ buttonType=""+ className="primary accent"+ onClick={onClose}+ tooltip={true}+ tooltipPosition="pos-top"+ tooltipText="Save mocap settings"+ />+ )}+ </div>+ {mode === "playback" && (+ <div className="flex flex-row gap-2 h-full">+ <p className="text sm text-gray">+ Processing may take hours, depending on your system, ideally avoid+ using your computer.+ </p>+ </div>+ )}+ </div>+ </div>+ </>+ );+};++export default MocapSetupModal;diff --git a/freemocap-ui/src/components/pipeline-progress/PipelineGroupCard.tsx b/freemocap-ui/src/components/pipeline-progress/PipelineGroupCard.tsxindex 7a35cc41..4fd05ae6 100644--- a/freemocap-ui/src/components/pipeline-progress/PipelineGroupCard.tsx+++ b/freemocap-ui/src/components/pipeline-progress/PipelineGroupCard.tsx@@ -1,18 +1,10 @@-import Box from '@mui/material/Box';-import IconButton from '@mui/material/IconButton';-import LinearProgress from '@mui/material/LinearProgress';-import Tooltip from '@mui/material/Tooltip';-import Typography from '@mui/material/Typography';-import CloseIcon from '@mui/icons-material/Close';-import FolderOpenIcon from '@mui/icons-material/FolderOpen';-import PlayArrowIcon from '@mui/icons-material/PlayArrow';-import StopIcon from '@mui/icons-material/Stop';import {useNavigate} from 'react-router-dom';import {useAppDispatch} from '@/store/hooks';import {activeRecordingSet} from '@/store/slices/active-recording/active-recording-slice';import {useElectronIPC} from '@/services';import {PipelineGroup, PipelinePhase, PipelineProgress, PHASE_LABELS, PIPELINE_TYPE_CONFIG} from '@/store/slices/pipelines';import {stopPipeline} from '@/store/slices/pipelines/pipelines-thunks';+import IconButton from '@/components/ui-components/IconButton';function formatTimeAgo(timestamp: number): string {const seconds = Math.floor((Date.now() - timestamp) / 1000);@@ -31,7 +23,6 @@ function SubProgressBar({pipeline, label, isAggregator = false}: {const isFailed = pipeline.phase === PipelinePhase.FAILED;const isComplete = pipeline.phase === PipelinePhase.COMPLETE;const isTerminal = isComplete || isFailed;- // Aggregator uses indeterminate except when collecting real frame data (SETTING_UP) or at terminal stateconst isIndeterminate = isAggregator && !isTerminal && pipeline.phase !== PipelinePhase.SETTING_UP;const rightText = isTerminal && pipeline.completedAt@@ -40,37 +31,36 @@ function SubProgressBar({pipeline, label, isAggregator = false}: {? (pipeline.detail || PHASE_LABELS[pipeline.phase]): `${pipeline.progress}%`;+ const progressColor = isFailed ? 'var(--color-error)' : isComplete ? 'var(--color-success)' : 'var(--color-info)';+return (- <Box sx={{mb: 0.5, opacity: isTerminal ? 0.6 : 1}}>- <Box sx={{display: 'flex', justifyContent: 'space-between', alignItems: 'baseline', mb: 0.125}}>- <Typography variant="caption" noWrap- sx={{flex: 1, mr: 1, color: 'text.secondary', fontSize: '0.68rem'}}>+ <div className="mb-1" style={{opacity: isTerminal ? 0.6 : 1}}>+ <div className="flex flex-row justify-content-space-between items-center" style={{marginBottom: 1}}>+ <p className="text sm text-gray flex-1 mr-1 m-0" style={{overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', fontSize: '0.68rem'}}>{label}- </Typography>- <Typography variant="caption" color="text.secondary"- sx={{fontSize: '0.65rem', flexShrink: 0, maxWidth: 160}} noWrap>+ </p>+ <p className="text sm text-gray flex-shrink-0 m-0" style={{fontSize: '0.65rem', maxWidth: 160, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>{rightText}- </Typography>- </Box>- <LinearProgress- variant={isIndeterminate ? 'indeterminate' : 'determinate'}- value={isIndeterminate ? undefined : pipeline.progress}- color={isFailed ? 'error' : isComplete ? 'success' : 'primary'}- sx={{height: 4, borderRadius: 1}}- />+ </p>+ </div>+ <div className="update-progress-track" style={{height: 4, borderRadius: 2}}>+ {!isIndeterminate && (+ <div className="update-progress-fill h-full" style={{width: `${pipeline.progress}%`, backgroundColor: progressColor, borderRadius: 2}}/>+ )}+ {isIndeterminate && (+ <div className="h-full" style={{width: '40%', backgroundColor: progressColor, borderRadius: 2, animation: 'indeterminateProgress 1.5s infinite ease-in-out'}}/>+ )}+ </div>{isFailed && pipeline.detail && (- <Tooltip title={pipeline.detail} placement="bottom" arrow>- <Typography- variant="caption"- color="error"- noWrap- sx={{display: 'block', fontSize: '0.62rem', mt: 0.25, cursor: 'default'}}- >- {pipeline.detail}- </Typography>- </Tooltip>+ <p+ title={pipeline.detail}+ className="text sm text-error block m-0"+ style={{fontSize: '0.62rem', marginTop: 2, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', cursor: 'default'}}+ >+ {pipeline.detail}+ </p>)}- </Box>+ </div>);}@@ -88,10 +78,10 @@ export default function PipelineGroupCard({group, onDismiss}: {? Math.round(group.videoNodes.reduce((sum, n) => sum + n.progress, 0) / group.videoNodes.length): 0);- const borderColor = group.isFailed ? 'error.main' : group.isComplete ? 'success.main' : 'divider';+ const borderColor = group.isFailed ? 'var(--color-error)' : group.isComplete ? 'var(--color-success)' : 'var(--color-border-secondary)';const typeConfig = group.pipelineType ? PIPELINE_TYPE_CONFIG[group.pipelineType] : null;const fullPath = group.recordingPath || undefined;- const recordingName = group.recordingName+ const recordingName = group.recordingName;const pipelineId = group.basePipelineId;const handleOpenFolder = async () => {@@ -113,86 +103,62 @@ export default function PipelineGroupCard({group, onDismiss}: {};return (- <Box- sx={{- mx: 1,- my: 0.75,- p: 1,- border: 1,- borderColor,- borderRadius: 1,- opacity: group.isActive ? 1 : 0.6,- }}- >- <Box sx={{display: 'flex', alignItems: 'center', mb: 0.5}}>+ <div className="br-1" style={{margin: '6px 8px', padding: 8, border: `1px solid ${borderColor}`, opacity: group.isActive ? 1 : 0.6}}>+ <div className="flex flex-row items-center mb-1">{typeConfig && (- <Box sx={{- px: 0.75, py: 0.125, mr: 0.75, borderRadius: 1, flexShrink: 0,- bgcolor: typeConfig.color + '22',+ <div className="flex-shrink-0 br-1" style={{+ padding: '1px 6px', marginRight: 6,+ backgroundColor: typeConfig.color + '22',border: `1px solid ${typeConfig.color}66`,}}>- <Typography variant="caption" sx={{fontSize: '0.62rem', fontWeight: 600, color: typeConfig.color, lineHeight: 1.4}}>+ <p className="text sm m-0" style={{fontSize: '0.62rem', fontWeight: 600, color: typeConfig.color, lineHeight: 1.4}}>{typeConfig.label}- </Typography>- </Box>+ </p>+ </div>)}- <Typography variant="caption" noWrap sx={{flex: 1, minWidth: 0}}>- <Typography component="span" variant="caption" color="text.secondary">Pipeline: </Typography>- <Typography component="span" variant="caption" fontWeight="bold">{pipelineId}</Typography>- </Typography>+ <p className="text sm flex-1 min-w-0 m-0" style={{overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>+ <span className="text-gray">Pipeline: </span>+ <span style={{fontWeight: 'bold'}}>{pipelineId}</span>+ </p>-- <Typography variant="caption" color="text.secondary" sx={{flexShrink: 0, fontSize: '0.7rem'}}>+ <p className="text sm text-gray flex-shrink-0 m-0" style={{fontSize: '0.7rem'}}>{overallProgress}%- </Typography>- <Tooltip title="Open folder" placement="top">- <span>- <IconButton size="small" onClick={handleOpenFolder} disabled={!fullPath} sx={{p: 0.25}}>- <FolderOpenIcon sx={{fontSize: '0.85rem'}}/>- </IconButton>- </span>- </Tooltip>- <Tooltip title="Load in playback" placement="top">- <IconButton size="small" onClick={handleLoadPlayback} sx={{p: 0.25}}>- <PlayArrowIcon sx={{fontSize: '0.85rem'}}/>- </IconButton>- </Tooltip>+ </p>+ <IconButton title="Open folder" icon="load-icon" className="icon-size-25 p-01" iconStyle={{fontSize: '0.85rem'}} onClick={handleOpenFolder} disabled={!fullPath}/>+ <IconButton title="Load in playback" icon="play-icon" className="icon-size-25 p-01" iconStyle={{fontSize: '0.85rem'}} onClick={handleLoadPlayback}/>{group.isActive && (- <Tooltip title="Stop pipeline" placement="top">- <IconButton- size="small"- onClick={() => dispatch(stopPipeline(group.basePipelineId))}- sx={{p: 0.25, color: 'error.main'}}- >- <StopIcon sx={{fontSize: '0.85rem'}}/>- </IconButton>- </Tooltip>+ <IconButton+ title="Stop pipeline"+ icon="close-icon"+ className="icon-size-25 p-01"+ iconStyle={{fontSize: '0.85rem'}}+ onClick={() => dispatch(stopPipeline(group.basePipelineId))}+ style={{color: 'var(--color-error)'}}+ />)}{onDismiss && (- <IconButton size="small" onClick={onDismiss} sx={{p: 0.25}}>- <CloseIcon sx={{fontSize: '0.75rem'}}/>- </IconButton>+ <IconButton icon="close-icon" className="icon-size-25 p-01" iconStyle={{fontSize: '0.75rem'}} onClick={onDismiss}/>)}- </Box>- <Tooltip title={fullPath} placement="top" arrow>- <Typography variant="caption" noWrap sx={{flex: 1, minWidth: 0}}>- <Typography component="span" variant="caption" color="text.secondary">Recording: </Typography>- <Typography component="span" variant="caption" fontWeight="bold">{recordingName}</Typography>- </Typography>- </Tooltip>+ </div>+ <div title={fullPath}>+ <p className="text sm flex-1 min-w-0 m-0" style={{overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>+ <span className="text-gray">Recording: </span>+ <span style={{fontWeight: 'bold'}}>{recordingName}</span>+ </p>+ </div>{group.videoNodes.length > 0 && (- <Box sx={{pl: 1, borderLeft: 2, borderColor: 'divider', mb: group.aggregator ? 0.75 : 0}}>+ <div className="pl-2" style={{borderLeft: '2px solid var(--color-border-secondary)', marginBottom: group.aggregator ? 6 : 0}}>{group.videoNodes.map((node) => {const cameraId = node.pipelineId.includes(':')? node.pipelineId.split(':').slice(1).join(':'): node.pipelineId;return <SubProgressBar key={node.pipelineId} pipeline={node} label={`Camera: ${cameraId}`}/>;})}- </Box>+ </div>)}{group.aggregator && (- <Box sx={{mt: 0.5}}>+ <div className="mt-1"><SubProgressBarpipeline={group.aggregator}isAggregator={true}@@ -206,8 +172,8 @@ export default function PipelineGroupCard({group, onDismiss}: {: PHASE_LABELS[group.aggregator.phase]}/>- </Box>+ </div>)}- </Box>+ </div>);}diff --git a/freemocap-ui/src/components/pipeline-progress/PipelineProgressBar.tsx b/freemocap-ui/src/components/pipeline-progress/PipelineProgressBar.tsxindex 4dd1878c..bc6f82df 100644--- a/freemocap-ui/src/components/pipeline-progress/PipelineProgressBar.tsx+++ b/freemocap-ui/src/components/pipeline-progress/PipelineProgressBar.tsx@@ -1,6 +1,3 @@-import Box from '@mui/material/Box';-import LinearProgress from '@mui/material/LinearProgress';-import Typography from '@mui/material/Typography';import {PipelineProgress, PipelinePhase, PHASE_LABELS} from '@/store/slices/pipelines';function formatTimeAgo(timestamp: number): string {@@ -22,30 +19,29 @@ export default function PipelineProgressBar({pipeline}: PipelineProgressBarPropsconst isComplete = pipeline.phase === PipelinePhase.COMPLETE;const isTerminal = isComplete || isFailed;+ const progressColor = isFailed ? 'var(--color-error)' : isComplete ? 'var(--color-success)' : 'var(--color-info)';+return (- <Box sx={{px: 1, py: 0.5, opacity: isTerminal ? 0.5 : 1}}>- <Box sx={{display: 'flex', justifyContent: 'space-between', alignItems: 'baseline', mb: 0.25}}>- <Typography variant="caption" fontWeight="bold" noWrap sx={{flex: 1, mr: 1}}>+ <div style={{padding: '4px 8px', opacity: isTerminal ? 0.5 : 1}}>+ <div className="flex flex-row justify-content-space-between items-center" style={{marginBottom: 2}}>+ <p className="text sm text-white flex-1 mr-1 m-0" style={{fontWeight: 'bold', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>{pipeline.pipelineType} — {pipeline.pipelineId}- </Typography>- <Typography variant="caption" color="text.secondary">+ </p>+ <p className="text sm text-gray m-0 flex-shrink-0">{isTerminal && pipeline.completedAt? `${phaseLabel} ${formatTimeAgo(pipeline.completedAt)}`: `${phaseLabel} ${pipeline.progress}%`}- </Typography>- </Box>- <LinearProgress- variant="determinate"- value={pipeline.progress}- color={isFailed ? 'error' : isComplete ? 'success' : 'primary'}- sx={{height: 6, borderRadius: 1}}- />+ </p>+ </div>+ <div className="update-progress-track">+ <div className="update-progress-fill" style={{width: `${pipeline.progress}%`, backgroundColor: progressColor}}/>+ </div>{pipeline.detail && (- <Typography variant="caption" color="text.secondary" noWrap sx={{display: 'block', mt: 0.25}}>+ <p className="text sm text-gray block m-0" style={{marginTop: 2, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>{pipeline.detail}- </Typography>+ </p>)}- </Box>+ </div>);}diff --git a/freemocap-ui/src/components/pipeline-progress/PipelineProgressPanel.tsx b/freemocap-ui/src/components/pipeline-progress/PipelineProgressPanel.tsxindex 58687914..7d057b23 100644--- a/freemocap-ui/src/components/pipeline-progress/PipelineProgressPanel.tsx+++ b/freemocap-ui/src/components/pipeline-progress/PipelineProgressPanel.tsx@@ -1,8 +1,3 @@-import Box from '@mui/material/Box';-import Typography from '@mui/material/Typography';-import TextField from '@mui/material/TextField';-import FormControlLabel from '@mui/material/FormControlLabel';-import Checkbox from '@mui/material/Checkbox';import {useAppDispatch, useAppSelector} from '@/store/hooks';import {selectGroupedPipelines,@@ -13,6 +8,7 @@ import {filterTextChanged,} from '@/store/slices/pipelines';import PipelineGroupCard from './PipelineGroupCard';+import ToggleComponent from '@/components/ui-components/ToggleComponent';export default function PipelineProgressPanel() {const groups = useAppSelector(selectGroupedPipelines);@@ -22,47 +18,37 @@ export default function PipelineProgressPanel() {const dispatch = useAppDispatch();return (- <Box sx={{height: '100%', display: 'flex', flexDirection: 'column'}}>- <Box sx={{display: 'flex', alignItems: 'center', gap: 1, px: 1, py: 0.5, flexShrink: 0}}>- <TextField- size="small"- placeholder="Filter..."- value={filterText}- onChange={(e) => dispatch(filterTextChanged(e.target.value))}- sx={{- flex: 1,- '& .MuiInputBase-root': {height: 28, fontSize: '0.75rem'},- }}- />+ <div className="flex flex-col h-full">+ <div className="flex flex-col gap-1 flex-shrink-0" style={{padding: '4px 8px'}}>+ <div className="input-with-string">+ <input+ className="input-field text md"+ placeholder="Filter..."+ value={filterText}+ onChange={(e) => dispatch(filterTextChanged(e.target.value))}+ style={{height: 28, fontSize: '0.75rem'}}+ />+ </div>{hasCompleted && (- <FormControlLabel- control={- <Checkbox- size="small"- checked={showCompleted}- onChange={() => dispatch(toggleShowCompleted())}- sx={{p: 0.25}}- />- }- label={<Typography variant="caption">Show completed</Typography>}- sx={{mr: 0, ml: 0}}+ <ToggleComponent+ text="Show completed"+ isToggled={showCompleted}+ onToggle={() => dispatch(toggleShowCompleted())}/>)}- </Box>+ </div>- <Box sx={{flex: 1, overflow: 'auto'}}>+ <div className="flex-1 overflow-y">{groups.length === 0 ? (- <Box sx={{height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center'}}>- <Typography variant="caption" color="text.secondary">- No active pipelines- </Typography>- </Box>+ <div className="flex items-center justify-center h-full">+ <p className="text sm text-gray">No active pipelines</p>+ </div>) : (groups.map((group) => (<PipelineGroupCard key={group.basePipelineId} group={group}/>)))}- </Box>- </Box>+ </div>+ </div>);}diff --git a/freemocap-ui/src/components/pipeline-progress/PipelineProgressSnackbar.tsx b/freemocap-ui/src/components/pipeline-progress/PipelineProgressSnackbar.tsxindex 5472d9d2..a6cf73e8 100644--- a/freemocap-ui/src/components/pipeline-progress/PipelineProgressSnackbar.tsx+++ b/freemocap-ui/src/components/pipeline-progress/PipelineProgressSnackbar.tsx@@ -1,21 +1,9 @@import * as React from 'react';-import Box from '@mui/material/Box';-import IconButton from '@mui/material/IconButton';-import LinearProgress from '@mui/material/LinearProgress';-import Paper from '@mui/material/Paper';-import Typography from '@mui/material/Typography';-import CloseIcon from '@mui/icons-material/Close';-import DeleteSweepIcon from '@mui/icons-material/DeleteSweep';-import DragIndicatorIcon from '@mui/icons-material/DragIndicator';-import ExpandLessIcon from '@mui/icons-material/ExpandLess';-import ExpandMoreIcon from '@mui/icons-material/ExpandMore';-import StopCircleIcon from '@mui/icons-material/StopCircle';import {useAppDispatch, useAppSelector} from '@/store/hooks';import {allPipelinesCleared,pipelineDismissed,pipelineSnackbarHidden,- pipelineSnackbarShown,selectActiveBasePipelineCount,selectDismissedBasePipelineIds,selectGroupedPipelinesAll,@@ -23,7 +11,7 @@ import {} from '@/store/slices/pipelines';import {stopAllPipelines} from '@/store/slices/pipelines/pipelines-thunks';import PipelineGroupCard from './PipelineGroupCard';-import {useTheme} from "@mui/material";+import IconButton from '@/components/ui-components/IconButton';const DEFAULT_WIDTH = 360;const DEFAULT_HEIGHT = 420;@@ -42,8 +30,8 @@ const CURSOR: Record<ResizeHandle, string> = {const EDGE = 6;const CORN = 14;-function handleSx(h: ResizeHandle) {- const base = {position: 'absolute', zIndex: 10} as const;+function handleStyle(h: ResizeHandle): React.CSSProperties {+ const base: React.CSSProperties = {position: 'absolute', zIndex: 10};switch (h) {case 'n': return {...base, top: -EDGE/2, left: CORN, right: CORN, height: EDGE, cursor: CURSOR.n};case 's': return {...base, bottom: -EDGE/2, left: CORN, right: CORN, height: EDGE, cursor: CURSOR.s};@@ -60,7 +48,6 @@ const HANDLES: ResizeHandle[] = ['n', 's', 'e', 'w', 'ne', 'nw', 'se', 'sw'];export default function PipelineProgressSnackbar() {const dispatch = useAppDispatch();- const theme = useTheme()const groups = useAppSelector(selectGroupedPipelinesAll);const activeCount = useAppSelector(selectActiveBasePipelineCount);const open = useAppSelector(selectSnackbarVisible);@@ -148,11 +135,9 @@ export default function PipelineProgressSnackbar() {};}, []);-const visibleGroups = groups.filter(g => !dismissedIds.includes(g.basePipelineId));const hasRunningVisible = visibleGroups.some(g => !g.isComplete && !g.isFailed);- // Summary info for collapsed view — prefer active, fall back to most recentconst summaryGroup = visibleGroups.find(g => g.isActive) ?? visibleGroups[0] ?? null;const summaryProgress = summaryGroup? (summaryGroup.aggregator?.progress@@ -166,144 +151,102 @@ export default function PipelineProgressSnackbar() {if (!open) return null;- const positionSx: React.CSSProperties = dragPos- ? {position: 'fixed', left: dragPos.left, top: dragPos.top, zIndex: 1400}- : {position: 'fixed', bottom: 8, right: 8, zIndex: 1400};+ const containerStyle: React.CSSProperties = dragPos+ ? {position: 'fixed', left: dragPos.left, top: dragPos.top, zIndex: 1400, width: size.width, ...(collapsed ? {} : {height: size.height})}+ : {position: 'fixed', bottom: 8, right: 8, zIndex: 1400, width: size.width, ...(collapsed ? {} : {height: size.height})};return (- <Box- ref={containerRef}- sx={{- ...positionSx,- width: size.width,- // collapsed: auto-height (just the header); expanded: full tracked height- ...(collapsed ? {} : {height: size.height}),- }}- >- {/* Width handles always available; height/corner handles only when expanded */}+ <div ref={containerRef} style={containerStyle}>{HANDLES.filter(h => !collapsed || h === 'e' || h === 'w').map(h => (- <Box key={h} sx={handleSx(h)} onMouseDown={(e) => startResize(h, e)}/>+ <div key={h} style={handleStyle(h)} onMouseDown={(e) => startResize(h, e)}/>))}- <Paper- elevation={6}- sx={{- width: '100%',- height: collapsed ? 'auto' : '100%',- display: 'flex',- flexDirection: 'column',- borderRadius: 2,- overflow: 'hidden',- border: 1,- borderColor: hasRunningVisible ? '#FF00FF' : 'transparent',- }}- >- {/* Header — always visible */}- <Box+ <div className="bg-middark flex flex-col w-full overflow-hidden" style={{+ height: collapsed ? 'auto' : '100%',+ borderRadius: 8,+ border: `1px solid ${hasRunningVisible ? '#FF00FF' : 'transparent'}`,+ boxShadow: '0 4px 20px rgba(0,0,0,0.4)',+ }}>+ <divonMouseDown={handleHeaderMouseDown}- sx={{- display: 'flex',- alignItems: 'center',- px: 1,- py: 0.75,- borderBottom: collapsed ? 0 : 1,- borderColor: 'divider',- flexShrink: 0,+ className="flex flex-row items-center flex-shrink-0"+ style={{+ padding: '6px 8px',+ borderBottom: collapsed ? 'none' : '1px solid var(--color-border-secondary)',cursor: 'grab',userSelect: 'none',- '&:active': {cursor: 'grabbing'},}}>{collapsed ? (- // Collapsed summary: name + progress bar + %- <Box sx={{flex: 1, minWidth: 0, mr: 1}}>- <Box sx={{display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', mb: 0.25}}>- <Typography variant="caption" noWrap sx={{fontSize: '0.72rem', flex: 1, mr: 0.5}}>+ <div className="flex-1 min-w-0 mr-1">+ <div className="flex flex-row items-center justify-content-space-between" style={{marginBottom: 2}}>+ <p className="text sm flex-1 mr-1 m-0" style={{overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', fontSize: '0.72rem'}}>{summaryLabel}- </Typography>- <Typography variant="caption" color="text.secondary" sx={{fontSize: '0.68rem', flexShrink: 0}}>+ </p>+ <p className="text sm text-gray flex-shrink-0 m-0" style={{fontSize: '0.68rem'}}>{summaryProgress}%- </Typography>- </Box>+ </p>+ </div>{summaryGroup?.isActive && (- <LinearProgress- variant="determinate"- value={summaryProgress}- sx={{height: 3, borderRadius: 1}}- />+ <div className="update-progress-track" style={{height: 3, borderRadius: 2}}>+ <div className="update-progress-fill h-full" style={{width: `${summaryProgress}%`, borderRadius: 2}}/>+ </div>)}- </Box>+ </div>) : (- // Expanded title- <Typography variant="subtitle2" sx={{flex: 1}}>- Pipeline Progress- </Typography>+ <p className="text md text-white flex-1 m-0" style={{fontWeight: 600}}>Pipeline Progress</p>)}{hasRunningVisible && (- <Box sx={{- width: 7, height: 7, borderRadius: '50%', bgcolor: 'primary.main', mr: 1, flexShrink: 0,+ <div className="flex-shrink-0 mr-1" style={{+ width: 7, height: 7, borderRadius: '50%', backgroundColor: 'var(--color-info)',animation: 'fmcPulse 1.4s ease-in-out infinite',- '@keyframes fmcPulse': {- '0%, 100%': {opacity: 1, transform: 'scale(1)'},- '50%': {opacity: 0.3, transform: 'scale(0.7)'},- },}}/>)}<IconButton- size="small"+ icon={collapsed ? 'expand-icon' : 'collapse-icon'}+ className="icon-size-25 p-01"onMouseDown={e => e.stopPropagation()}onClick={() => setCollapsed(c => !c)}- sx={{p: 0.25}}- >- {collapsed ? <ExpandLessIcon fontSize="small"/> : <ExpandMoreIcon fontSize="small"/>}- </IconButton>+ />{hasRunningVisible && (<IconButton- size="small"+ icon="close-icon"+ className="icon-size-25 p-01"onMouseDown={e => e.stopPropagation()}onClick={() => dispatch(stopAllPipelines())}title="Stop all pipelines"- sx={{p: 0.25, color: 'error.main'}}- >- <StopCircleIcon fontSize="small"/>- </IconButton>+ style={{color: 'var(--color-error)'}}+ />)}<IconButton- size="small"+ icon="clear-icon"+ className="icon-size-25 p-01"onMouseDown={e => e.stopPropagation()}onClick={() => dispatch(allPipelinesCleared())}disabled={visibleGroups.length === 0}title="Clear all pipelines"- sx={{p: 0.25}}- >- <DeleteSweepIcon fontSize="small"/>- </IconButton>+ /><IconButton- size="small"+ icon="close-icon"+ className="icon-size-25 p-01"onMouseDown={e => e.stopPropagation()}onClick={() => dispatch(pipelineSnackbarHidden())}- sx={{p: 0.25}}- >- <CloseIcon fontSize="small"/>- </IconButton>+ />- <DragIndicatorIcon sx={{fontSize: '0.9rem', color: 'text.disabled', ml: 0.25, flexShrink: 0, cursor: 'grab'}}/>- </Box>+ <span className="icon settings-icon icon-size-20 flex-shrink-0" style={{color: 'var(--color-text-disabled)', marginLeft: 2, cursor: 'grab'}}/>+ </div>- {/* Scrollable content — hidden when collapsed */}{!collapsed && (- <Box sx={{overflow: 'auto', flex: 1, minHeight: 0}}>+ <div className="overflow-y flex-1 min-h-0">{visibleGroups.length === 0 ? (- <Box sx={{py: 2, display: 'flex', justifyContent: 'center'}}>- <Typography variant="caption" color="text.secondary">- No active pipelines- </Typography>- </Box>+ <div className="flex justify-center" style={{paddingTop: 16, paddingBottom: 16}}>+ <p className="text sm text-gray">No active pipelines</p>+ </div>) : (visibleGroups.map((group) => (<PipelineGroupCard@@ -313,9 +256,9 @@ export default function PipelineProgressSnackbar() {/>)))}- </Box>+ </div>)}- </Paper>- </Box>+ </div>+ </div>);}diff --git a/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-module.tsx b/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-module.tsxnew file mode 100644index 00000000..381c2ccd--- /dev/null+++ b/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-module.tsx@@ -0,0 +1,474 @@+import React, { useCallback, useMemo, useState, useEffect } from "react";+import { useLocation } from "react-router-dom";+import SubactionHeader from "@/components/ui-components/SubactionHeader";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import IconButton from "@/components/ui-components/IconButton";+import DropdownButton from "@/components/ui-components/DropdownButton.tsx";+import CalibrationSettings from "./calibration-settings";+import ButtonSm from "@/components/ui-components/ButtonSm";+import { useCalibration } from "@/hooks/useCalibration";+import { useElectronIPC, useServer } from "@/services";+import { useAppDispatch, useAppSelector } from "@/store";+import {+ calibrationAutoLoadDismissed,+ calibrationLoadedFromBundle,+ loadCalibrationToml,+ selectLoadedCalibration,+} from "@/store/slices/calibration";++type CalibrationSource = "record" | "import-videos" | "import-toml";++/**+ * Represents the current operating mode of the application.+ * - "streaming": real-time camera capture mode (all calibration options available, including "Record and Calibrate")+ * - "playback": video playback mode ("Record and Calibrate" option should be hidden from the dropdown)+ *+ * TODO[INTEGRATION]: Replace this dummy state with the actual mode from the app's+ * global state or server. For example, you might fetch this from:+ * - A Redux selector like `useAppSelector(selectAppMode)`+ * - An IPC call to the backend+ * - A context provider+ */+type AppMode = "streaming" | "playback";++const SOURCE_ICONS: Record<CalibrationSource, string> = {+ record: "record-icon",+ "import-videos": "importVideos-icon",+ "import-toml": "tomlfile-icon",+};++interface CalibrationModuleProps {+ isCalibrated?: boolean;+ /**+ * Optionally override the app mode detection.+ * When provided, this takes precedence over route-based mode detection.+ */+ appModeOverride?: "streaming" | "playback";+}++const CalibrationModule = ({+ isCalibrated: isCalibratedProp,+ appModeOverride,+}: CalibrationModuleProps) => {+ const dispatch = useAppDispatch();+ const { api, isElectron } = useElectronIPC();+ const { connectedCameraIds } = useServer();+ const loadedCalibration = useAppSelector(selectLoadedCalibration);++ const noCamerasConnected = connectedCameraIds.length === 0;++ const {+ config,+ error,+ isLoading,+ isRecording,+ recordingProgress,+ canStartRecording,+ updateCalibrationConfig,+ setManualRecordingPath,+ dispatchStartCalibrationRecording,+ dispatchStopCalibrationRecording,+ calibrateSelectedRecording,+ clearError,+ } = useCalibration();++ const [showCalibrationSettings, setShowCalibrationSettings] = useState(false);+ const [calibrationSource, setCalibrationSource] =+ useState<CalibrationSource>("record");++ // Derive app mode from the current route, unless overridden by props+ const location = useLocation();+ const appMode: AppMode = appModeOverride ?? (location.pathname === "/playback" ? "playback" : "streaming");++ // Cycling calibration messages during recording+ const calibrationMessages = [+ "Hold up the calibration board",+ "Check all cameras have a clear view",+ "Recording in progress",+ ];+ const [messageIndex, setMessageIndex] = useState(0);++ useEffect(() => {+ if (!isRecording) {+ setMessageIndex(0);+ return;+ }+ const interval = setInterval(() => {+ setMessageIndex((prev) => (prev + 1) % calibrationMessages.length);+ }, 3000);+ return () => clearInterval(interval);+ }, [isRecording, calibrationMessages.length]);+++ const isCalibrated = isCalibratedProp ?? !!loadedCalibration;++ const [calibrationPathDir, calibrationPathFilename] = useMemo(() => {+ const path = loadedCalibration?.path ?? "";+ const splitIndex =+ path.lastIndexOf("/") !== -1+ ? path.lastIndexOf("/")+ : path.lastIndexOf("\\");+ if (splitIndex === -1) return ["", path];+ return [path.slice(0, splitIndex + 1), path.slice(splitIndex + 1)];+ }, [loadedCalibration?.path]);++ const charucoTags = [+ `${config.charucoBoard.squares_x}x${config.charucoBoard.squares_y}`,+ `${config.charucoBoard.square_length_mm}mm`,+ config.solverMethod === "anipose" ? "Anipose" : "Pyceres",+ ];++ const handleToggleSettings = () => {+ setShowCalibrationSettings(!showCalibrationSettings);+ };++ const handleCloseSettings = () => {+ setShowCalibrationSettings(false);+ };++ const handleRecordAndCalibrate = useCallback(() => {+ setCalibrationSource("record");+ dispatch(calibrationAutoLoadDismissed(null));+ dispatchStartCalibrationRecording();+ }, [dispatch, dispatchStartCalibrationRecording]);++ const handleImportVideos = useCallback(async () => {+ if (!isElectron || !api) return;+ const result: string | null = await api.fileSystem.selectDirectory.mutate();+ if (result) {+ await setManualRecordingPath(result);+ setCalibrationSource("import-videos");+ dispatch(calibrationAutoLoadDismissed(null));+ calibrateSelectedRecording();+ }+ }, [+ api,+ isElectron,+ dispatch,+ setManualRecordingPath,+ calibrateSelectedRecording,+ ]);++ const handleImportToml = useCallback(async () => {+ if (!isElectron || !api) return;+ const result: string | null = await api.fileSystem.selectTomlFile.mutate();+ if (result) {+ setCalibrationSource("import-toml");+ dispatch(calibrationAutoLoadDismissed(null));+ dispatch(loadCalibrationToml({ path: result, force: true }));+ }+ }, [api, isElectron, dispatch]);++ const handleClearCalibration = useCallback(() => {+ if (loadedCalibration) {+ dispatch(calibrationAutoLoadDismissed(loadedCalibration.path));+ }+ dispatch(calibrationLoadedFromBundle(null));+ }, [dispatch, loadedCalibration]);++ /**+ * Whether the "Record and Calibrate" option should appear in the dropdown.+ *+ * - Streaming mode: show "Record and Calibrate" (real-time recording is possible).+ * - Playback mode: hide "Record and Calibrate" (not applicable when playing back videos).+ */+ const shouldShowRecordAndCalibrate = appMode === "streaming";++ /**+ * Build the dropdown items for the calibration dropdown.+ * The dropdown itself is always visible, but the "Record and Calibrate" option+ * is conditionally hidden in playback mode.+ */+ const dropdownItems = (+ <div className="flex flex-col gap-1 calibrate-module-dropdown-list">+ {/*+ "Record and Calibrate" is only available in streaming mode.+ In playback mode, this option is hidden since recording doesn't make sense.+ */}+ {shouldShowRecordAndCalibrate && (+ <ButtonSm+ iconClass="record-icon"+ text="Record and Calibrate"+ className="full-width"+ textClass="text-align-left"+ onClick={handleRecordAndCalibrate}+ disabled={noCamerasConnected && !isLoading}+ tooltip={true}+ tooltipPosition="pos-right"+ tooltipText={+ noCamerasConnected ? "Connect cameras to record" : undefined+ }+ />+ )}+ <ButtonSm+ iconClass="importVideos-icon"+ text="Import Calibration videos"+ className="full-width"+ textClass="text-align-left"+ onClick={handleImportVideos}+ disabled={!isElectron || isLoading}+ />+ <ButtonSm+ iconClass="tomlfile-icon"+ text="Import .toml file"+ className="full-width"+ textClass="text-align-left"+ onClick={handleImportToml}+ disabled={!isElectron || isLoading}+ />+ </div>+ );++ const errorBanner = error && (+ <div className="toast-notification gap-4 error flex items-center justify-content-space-between elevated-sharp">+ <p className="text sm">{error}</p>+ <IconButton icon="close-icon" onClick={clearError} />+ </div>+ );++ // Recording in progress+ if (isRecording) {+ return (+ <div className="calibration-module-recording flex flex-col p-1 bg-middark br-2 pos-rel gap-1">+ {errorBanner}+ <div className="flex flex-row items-center">+ <div className="flex flex-col flex-1 justify-content-space-between items-center">+ <div className="flex flex-row flex-1 justify-content-space-between items-center w-full">+ <div className="flex flex-row gap-1 items-center w-full text-nowrap">+ <span className="icon icon-size-20 calibrating-icon"></span>+ <SubactionHeader+ className="text-white calibration-header-shimmer text-nowrap"+ text={calibrationMessages[messageIndex]}+ />+ </div>++ <div className="flex flex-row flex-1 items-center">+ {/* TODO: recordingProgress doesn't update during recording, fix and re-enable+ <span className="text md text-gray p-1">+ {recordingProgress.toFixed(0)}%+ </span>+ */}+ <IconButton+ icon="explainer-icon"+ className="button sm"+ onClick={() => {}} // shows onboarding tooltips+ tooltip+ tooltipText="How to calibrate"+ tooltipPosition="pos-left"+ />+ </div>+ </div>+ {/* TODO: recordingProgress doesn't update during recording, fix and re-enable+ <div className="calibration-progress-columns w-full overflow-hidden br-1 flex items-end">+ {Array.from({ length: 26 }).map((_, index) => {+ const isActive = (index / 26) * 100 <= recordingProgress;+ return (+ <div key={index} className={isActive ? "is-active" : ""} />+ );+ })}+ </div>+ */}+ </div>+ </div>+ <div className="charuco-settings-action-container while-recording flex flex-row items-center gap-1">+ {charucoTags.map((tag) => (+ <span+ key={tag}+ className="text-gray tag text-nowrap text md text-align-left"+ >+ {tag}+ </span>+ ))}+ </div>+ <div className="stop-calibration flex flex-row flex-1 justify-content-space-between items-center w-full">+ <ButtonSm+ iconClass=""+ text="Stop Recording & Calibrate"+ className="accent button min-w-full full-width-text-center"+ onClick={dispatchStopCalibrationRecording}+ tooltip={true}+ tooltipText="Stop Recording & Calibrate"+ tooltipPosition="pos-top"+ />+ </div>+ </div>+ );+ }++ // Calibrated+ if (isCalibrated) {+ return (+ <div+ className="calibration-module-calibarted z-4 flex flex-col p-1 bg-middark br-1 pos-rel"+ style={{ minWidth: 0 }}+ >+ {errorBanner}+ <div className="flex flex-row items-center">+ <div+ className="flex flex-row flex-1 justify-content-space-between items-center w-full"+ style={{ minWidth: 0 }}+ >+ <div+ className="flex flex-row items-center flex-1"+ style={{ minWidth: 0 }}+ >+ <div className="calibrate-icon-group flex flex-row items-center">+ <span className="icon calibrated-icon icon-size-20" />+ <p className="text md text-success p-1">Calibrated</p>+ </div>+ <div+ className="recording-path-preview tooltip-wrapper pos-rel flex flex-row items-center flex-1 p-1"+ style={{ minWidth: 0, overflow: "visible" }}+ >+ <div className="recording-path-part">+ <p className="text-gray text md">{calibrationPathDir}</p>+ </div>+ <p+ className="text-gray text md text-nowrap text-align-left"+ style={{ flexShrink: 0 }}+ >+ {calibrationPathFilename}+ </p>+ {loadedCalibration?.path && (+ <div+ className="tooltip-container elevated-sharp pos-bottom p-01 br-2 bg-dark"+ style={{ minWidth: "auto", width: 270, maxWidth: "90vw" }}+ >+ <div className="tooltip-inner br-1 pl-2 pr-2 pt-1 pb-1 border-1 border-mid-black border-solid">+ <p+ className="text-white text md"+ style={{+ fontFamily: "monospace",+ whiteSpace: "normal",+ wordBreak: "break-all",+ }}+ >+ {loadedCalibration.path}+ </p>+ </div>+ </div>+ )}+ </div>+ </div>+ <div className="flex flex-row gap-1 items-center">+ <IconButton+ icon="explainer-icon"+ className="button sm"+ onClick={() => {}} // shows onboarding tooltips+ tooltip+ tooltipText="How to calibrate"+ tooltipPosition="pos-left"+ />+ </div>+ </div>+ </div>+ <div className="groupe-2-action- flex flex-row pos-rel justify-content-space-between items-center gap-1">+ <div className="flex flex-row items-center how-it-was-made-group">+ <div className="how-it-was-made-inner-group pos-rel flex flex-row items-center">+ <span+ className={`icon ${SOURCE_ICONS[calibrationSource]} icon-size-20`}+ />+ <span className="icon snaptogrid-icon icon-size-20" />+ </div>+ <div className="charuco-group-on-it-was-adhjusted- charuco-settings-action-container flex flex-row items-center gap-1">+ {charucoTags.map((tag) => (+ <span+ key={tag}+ className="text-gray tag text-nowrap text md text-align-left"+ >+ {tag}+ </span>+ ))}+ </div>+ </div>+ <IconButton+ icon="cancelcalibrate-icon"+ className="button sm"+ onClick={handleClearCalibration}+ tooltip+ tooltipText="Clear calibration"+ tooltipPosition="pos-left"+ />+ </div>+ </div>+ );+ }++ // Not calibrated, not recording+ return (+ <div className="calibration-module-idle flex flex-col p-1 bg-middark br-2 pos-rel order-2 ">+ {errorBanner}+ <div className="flex flex-row items-center">+ <div className="flex flex-row flex-1 justify-content-space-between items-center w-100">+ <SubactionHeader text="Calibration" />+ <div className="flex flex-row gap-1 items-center">+ <IconButton+ icon="explainer-icon"+ className="button sm"+ onClick={() => {}} // shows onboarding tooltips+ tooltip+ tooltipText="How to calibrate"+ tooltipPosition="pos-left"+ />+ </div>+ </div>+ </div>+ <div+ className="button sm trigger-charuco-settings-flyout flex-wrap flex pos-rel p-1 br-1 flex-row items-center justify-content-space-between"+ onClick={handleToggleSettings}+ >+ <div className="group-1 flex flex-col items-start">+ <p className="text-gray text-nowrap text md text-align-left">+ Charuco board+ </p>+ </div>+ <div className="group-2 flex flex-row pos-rel items-center gap-1">+ <div className="group-2.1 charuco-settings-action-container flex flex-row items-center gap-1">+ {charucoTags.map((tag) => (+ <span+ key={tag}+ className="text-gray tag text-nowrap text md text-align-left"+ >+ {tag}+ </span>+ ))}+ </div>+ <div className="group-2.2 pos-rel flex flex-col items-center">+ <span className="icon settings-icon icon-size-20" />+ </div>+ </div>+ </div>+ {showCalibrationSettings && (+ <CalibrationSettings onClose={handleCloseSettings} />+ )}+ <div className="p-1 group-3 calibration-action-container flex flex-row items-center">+ {/*+ The calibration dropdown is always visible.+ However, the "Record and Calibrate" option inside it is hidden in playback mode.+ */}+ <DropdownButton+ buttonProps={{+ text: "Calibrate",+ iconClass: "calibrate-icon",+ className: "button sm min-w-full justify-center",+ buttonType: "secondary",+ textClass: "text-center text bg",+ }}+ dropdownItems={dropdownItems}+ dropdownClassName=""+ />+ </div>+ <ToggleComponent+ text="Align to initial Charuco ground plane"+ iconClass="snaptogrid-icon"+ isToggled={config.useGroundplane}+ onToggle={(checked) =>+ updateCalibrationConfig({ useGroundplane: checked })+ }+ disabled={isLoading}+ />+ </div>+ );+};++export default CalibrationModule;diff --git a/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-settings.tsx b/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-settings.tsxnew file mode 100644index 00000000..de7c8e09--- /dev/null+++ b/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-settings.tsx@@ -0,0 +1,198 @@+import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";+import SubactionHeader from "@/components/ui-components/SubactionHeader";+import ValueSelector from "@/components/ui-components/ValueSelector";+import IconButton from "@/components/ui-components/IconButton";+import NameDropdownSelector from "@/components/ui-components/NameDropdownSelector";+import { useCalibration } from "@/hooks/useCalibration";+import { CalibrationSolverMethod } from "@/store/slices/calibration";++type BoardPreset = "5 x 3" | "7 x 5" | "Custom";++interface BoardPresetDims {+ squares_x: number;+ squares_y: number;+}++const BOARD_PRESETS: Record<Exclude<BoardPreset, "Custom">, BoardPresetDims> = {+ "5 x 3": { squares_x: 5, squares_y: 3 },+ "7 x 5": { squares_x: 7, squares_y: 5 },+};++const PRESET_OPTIONS: BoardPreset[] = ["5 x 3", "7 x 5", "Custom"];++const PRESET_OPTIONS_SOLVER = ["Anipose legacy", "Accurate"];++const solverLabelToMethod: Record<string, CalibrationSolverMethod> = {+ "Anipose legacy": "anipose",+ "Accurate": "pyceres",+};++const solverMethodToLabel: Record<CalibrationSolverMethod, string> = {+ anipose: "Anipose legacy",+ pyceres: "Accurate",+};++interface CalibrationSettingsProps {+ onClose?: () => void;+}++const CalibrationSettings = ({ onClose }: CalibrationSettingsProps) => {+ const modalRef = useRef<HTMLDivElement>(null);+ const { config, updateCalibrationConfig } = useCalibration();+ const board = config.charucoBoard;++ const handleClose = useCallback(() => {+ if (onClose) onClose();+ }, [onClose]);++ useEffect(() => {+ const handleClickOutside = (event: MouseEvent) => {+ if (modalRef.current && !modalRef.current.contains(event.target as Node)) {+ handleClose();+ }+ };++ const handleKeyDown = (event: KeyboardEvent) => {+ if (event.key === "Escape") handleClose();+ };++ document.addEventListener("mousedown", handleClickOutside);+ window.addEventListener("keydown", handleKeyDown);+ return () => {+ document.removeEventListener("mousedown", handleClickOutside);+ window.removeEventListener("keydown", handleKeyDown);+ };+ }, [handleClose]);++ const currentPreset = useMemo<BoardPreset>(() => {+ for (const [preset, dims] of Object.entries(BOARD_PRESETS)) {+ if (dims.squares_x === board.squares_x && dims.squares_y === board.squares_y) {+ return preset as BoardPreset;+ }+ }+ return "Custom";+ }, [board.squares_x, board.squares_y]);++ const [forcedCustom, setForcedCustom] = useState(false);++ const displayedPreset: BoardPreset = forcedCustom ? "Custom" : currentPreset;++ const handlePresetChange = useCallback(+ (value: string) => {+ const preset = value as BoardPreset;+ if (preset === "Custom") {+ setForcedCustom(true);+ return;+ }+ setForcedCustom(false);+ updateCalibrationConfig({+ charucoBoard: { ...board, ...BOARD_PRESETS[preset] },+ });+ },+ [board, updateCalibrationConfig],+ );++ const handleSolverChange = useCallback(+ (value: string) => {+ const method = solverLabelToMethod[value];+ if (method) updateCalibrationConfig({ solverMethod: method });+ },+ [updateCalibrationConfig],+ );++ return (+ <div+ className="z-10 calibration-settings-flyout pos-fixed draggable border-1 border-black elevated-sharp flex flex-col p-1 bg-dark br-2 reveal fadeIn gap-1"+ >+ <div className="gap-1 flex flex-col right-0 p-2 bg-middark br-1 z-1" ref={modalRef} onClick={(e) => e.stopPropagation()}>+ {/* Header */}+ <div className="flex flex-row justify-content-space-between items-center">+ <div className="flex flex-row flex-1 justify-content-space-between items-center w-100">+ <SubactionHeader text="Charuco board settings" />+ <div className="flex flex-row gap-1 items-center">+ <IconButton+ icon="explainer-icon"+ className="button sm"+ onClick={() => {}} // Does nothing but clicks+ tooltip+ tooltipText="Learn about calibration"+ tooltipPosition="pos-left"+ />+ </div>+ </div>+ </div>++ {/* Preset dropdown */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Preset</span>+ <NameDropdownSelector+ key={displayedPreset}+ options={PRESET_OPTIONS}+ initialValue={displayedPreset}+ onChange={handlePresetChange}+ className="flex flex-row"+ />+ </div>++ {/* X Square Size */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">X Square Size</span>+ <ValueSelector+ value={board.squares_x}+ min={2}+ max={20}+ step={1}+ unit=""+ disabled={displayedPreset !== "Custom"}+ onChange={(v) => updateCalibrationConfig({ charucoBoard: { ...board, squares_x: v } })}+ />+ </div>++ {/* Y Square Size */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Y Square Size</span>+ <ValueSelector+ value={board.squares_y}+ min={2}+ max={20}+ step={1}+ unit=""+ disabled={displayedPreset !== "Custom"}+ onChange={(v) => updateCalibrationConfig({ charucoBoard: { ...board, squares_y: v } })}+ />+ </div>++ <SubactionHeader text="Board Dimensions" />++ {/* Square length */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Square length</span>+ <ValueSelector+ value={board.square_length_mm}+ min={1}+ max={9999999}+ step={0.1}+ unit="mm"+ onChange={(v) => updateCalibrationConfig({ charucoBoard: { ...board, square_length_mm: v } })}+ />+ </div>++ <SubactionHeader text="Solver settings" />++ {/* Method dropdown */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Method</span>+ <NameDropdownSelector+ key={config.solverMethod}+ options={PRESET_OPTIONS_SOLVER}+ initialValue={solverMethodToLabel[config.solverMethod]}+ onChange={handleSolverChange}+ className="flex flex-row"+ />+ </div>+ </div>+ </div>+ );+};++export default CalibrationSettings;diff --git a/freemocap-ui/src/components/pipeline-progress/realtime/realtimepipeline-3dreconstruction-settings.tsx b/freemocap-ui/src/components/pipeline-progress/realtime/realtimepipeline-3dreconstruction-settings.tsxnew file mode 100644index 00000000..e135fe81--- /dev/null+++ b/freemocap-ui/src/components/pipeline-progress/realtime/realtimepipeline-3dreconstruction-settings.tsx@@ -0,0 +1,243 @@+import React, { useCallback, useEffect, useRef } from "react";+import SubactionHeader from "@/components/ui-components/SubactionHeader";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import ValueSelector from "@/components/ui-components/ValueSelector";+import { useMocap } from "@/hooks/useMocap";+import { useRealtimePipelineSync } from "@/hooks/useRealtimePipelineSync";+import {+ DEFAULT_REALTIME_FILTER_CONFIG,+ RealtimeFilterConfig,+} from "@/store/slices/mocap";+import IconButton from "@/components/ui-components/IconButton";+interface RTPthreeDReconstructionSettingsProps {+ open: boolean;+ onClose: () => void;+}++const RTPthreeDReconstructionSettings: React.FC<+ RTPthreeDReconstructionSettingsProps+> = ({ open, onClose }) => {+ const modalRef = useRef<HTMLDivElement>(null);++ const {+ skeletonFilterConfig,+ updateSkeletonFilterConfigLocalOnly,+ replaceSkeletonFilterConfigLocalOnly,+ isLoading,+ } = useMocap();+ const {+ triggerRealtimeApply,+ applyOrUpdatePipelineConfig,+ pipelineConfig,+ aggregatorConfig,+ } = useRealtimePipelineSync();++ const handleUpdateSkeletonFilterConfig = useCallback(+ (updates: Partial<RealtimeFilterConfig>) => {+ updateSkeletonFilterConfigLocalOnly(updates);+ triggerRealtimeApply();+ },+ [updateSkeletonFilterConfigLocalOnly, triggerRealtimeApply],+ );++ const handleResetDefaults = useCallback(() => {+ replaceSkeletonFilterConfigLocalOnly({ ...DEFAULT_REALTIME_FILTER_CONFIG });+ triggerRealtimeApply();+ }, [replaceSkeletonFilterConfigLocalOnly, triggerRealtimeApply]);++ const handleSkeletonToggle = useCallback(+ (value: boolean) =>+ applyOrUpdatePipelineConfig({+ ...pipelineConfig,+ aggregator_config: { ...aggregatorConfig, skeleton_enabled: value },+ }),+ [applyOrUpdatePipelineConfig, pipelineConfig, aggregatorConfig],+ );++ useEffect(() => {+ if (!open) return;++ const handleKeyDown = (e: KeyboardEvent) => {+ if (e.key === "Escape") onClose();+ };++ const handleClickOutside = (e: MouseEvent) => {+ if (modalRef.current && !modalRef.current.contains(e.target as Node)) {+ onClose();+ }+ };++ window.addEventListener("keydown", handleKeyDown);+ document.addEventListener("mousedown", handleClickOutside);++ return () => {+ window.removeEventListener("keydown", handleKeyDown);+ document.removeEventListener("mousedown", handleClickOutside);+ };+ }, [open, onClose]);++ if (!open) return null;++ return (+ <div+ ref={modalRef}+ className="RTP-settings-flyout pos-abs top-5 right-0 draggable border-1 border-black elevated-sharp flex flex-col p-1 bg-dark br-2 reveal fadeIn gap-1"+ >+ <div className="gap-1 flex flex-col right-0 p-2 bg-middark br-1 z-1">+ {/* Header */}+ <div className="flex justify-content-space-between items-center">+ <SubactionHeader text="Point Gate settings" />+ <div className="flex flex-row gap-1 items-center">+ <IconButton+ icon="clear-icon"+ className="button sm"+ onClick={handleResetDefaults}+ disabled={isLoading}+ tooltip+ tooltipText="Reset to defaults"+ tooltipPosition="pos-left"+ />++ <IconButton+ icon="close-icon"+ className="button sm"+ onClick={onClose}+ />+ </div>+ </div>++ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Max Reproj Error</span>++ <ValueSelector+ value={skeletonFilterConfig.max_reprojection_error_px}+ min={5}+ max={200}+ step={1}+ unit="px"+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ max_reprojection_error_px: v })+ }+ />+ </div>+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Max Velocity</span>++ <ValueSelector+ value={skeletonFilterConfig.max_velocity_m_per_s}+ min={5}+ max={200}+ step={1}+ unit="m/s"+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ max_velocity_m_per_s: v })+ }+ />+ </div>+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Max Rejected streaks</span>++ <ValueSelector+ value={skeletonFilterConfig.max_rejected_streak}+ min={1}+ max={30}+ step={1}+ unit=""+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ max_rejected_streak: v })+ }+ />+ </div>++ <SubactionHeader text="One Euro Filter" />+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Min Cutoff</span>+ <ValueSelector+ value={skeletonFilterConfig.min_cutoff}+ min={0.0001}+ max={0.1}+ step={0.0005}+ unit=""+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ min_cutoff: v })+ }+ />+ </div>+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Beta</span>+ <ValueSelector+ value={skeletonFilterConfig.beta}+ min={0}+ max={5}+ step={0.05}+ unit=""+ onChange={(v) => handleUpdateSkeletonFilterConfig({ beta: v })}+ />+ </div>+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">D Cutoff</span>+ <ValueSelector+ value={skeletonFilterConfig.d_cutoff}+ min={0.1}+ max={5}+ step={0.1}+ unit=""+ onChange={(v) => handleUpdateSkeletonFilterConfig({ d_cutoff: v })}+ />+ </div>++ <SubactionHeader text="Fabrik" />+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Max iterations</span>+ <ValueSelector+ value={skeletonFilterConfig.fabrik_max_iterations}+ min={1}+ max={100}+ step={1}+ unit=""+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ fabrik_max_iterations: v })+ }+ />+ </div>++ <SubactionHeader text="Body Model" />+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Height</span>+ <ValueSelector+ value={skeletonFilterConfig.height_meters}+ min={0.5}+ max={3.0}+ step={0.01}+ unit="m"+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ height_meters: v })+ }+ />+ </div>+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Noise sigma</span>+ <ValueSelector+ value={skeletonFilterConfig.noise_sigma}+ min={0.001}+ max={0.05}+ step={0.001}+ unit="m"+ onChange={(v) =>+ handleUpdateSkeletonFilterConfig({ noise_sigma: v })+ }+ />+ </div>++ <ToggleComponent+ text="Skeleton"+ isToggled={aggregatorConfig.skeleton_enabled}+ onToggle={handleSkeletonToggle}+ disabled={isLoading}+ />+ </div>+ </div>+ );+};++export default RTPthreeDReconstructionSettings;diff --git a/freemocap-ui/src/components/pipeline-progress/realtime/realtimepipeline-mediapipedetector-settings.tsx b/freemocap-ui/src/components/pipeline-progress/realtime/realtimepipeline-mediapipedetector-settings.tsxnew file mode 100644index 00000000..7db130e6--- /dev/null+++ b/freemocap-ui/src/components/pipeline-progress/realtime/realtimepipeline-mediapipedetector-settings.tsx@@ -0,0 +1,190 @@+import React, { useCallback, useEffect, useRef } from 'react';+import SubactionHeader from '@/components/ui-components/SubactionHeader';+import IconButton from '@/components/ui-components/IconButton';+import NameDropdownSelector from '@/components/ui-components/NameDropdownSelector';+import ToggleComponent from '@/components/ui-components/ToggleComponent';+import ValueSelector from '@/components/ui-components/ValueSelector';+import { useMocap } from '@/hooks/useMocap';+import { useRealtimePipelineSync } from '@/hooks/useRealtimePipelineSync';+import {+ detectPreset,+ MEDIAPIPE_POSTHOC_PRESET,+ MEDIAPIPE_REALTIME_PRESET,+ MediapipeDetectorConfig,+} from '@/store/slices/mocap';++interface RTPMediaPipeDetectorSettingsProps {+ open: boolean;+ onClose: () => void;+}++const PRESET_OPTIONS = ["Lite (Fastest)", "PostHog (Accurate)", "Custom"];++const presetLabelToTarget: Record<string, "realtime" | "posthoc"> = {+ "Lite (Fastest)": "realtime",+ "PostHog (Accurate)": "posthoc",+};++const presetValueToLabel: Record<string, string> = {+ realtime: "Lite (Fastest)",+ posthoc: "PostHog (Accurate)",+ custom: "Custom",+};++const RTPMediaPipeDetectorSettings: React.FC<+ RTPMediaPipeDetectorSettingsProps+> = ({ open, onClose }) => {+ const modalRef = useRef<HTMLDivElement>(null);++ const {+ detectorConfig,+ updateDetectorConfigLocalOnly,+ replaceDetectorConfigLocalOnly,+ isLoading,+ } = useMocap();+ const { triggerRealtimeApply } = useRealtimePipelineSync();++ const handleUpdateDetectorConfig = useCallback(+ (updates: Partial<MediapipeDetectorConfig>) => {+ updateDetectorConfigLocalOnly(updates);+ triggerRealtimeApply();+ },+ [updateDetectorConfigLocalOnly, triggerRealtimeApply]+ );++ const handleReplaceDetectorConfig = useCallback(+ (config: MediapipeDetectorConfig) => {+ replaceDetectorConfigLocalOnly(config);+ triggerRealtimeApply();+ },+ [replaceDetectorConfigLocalOnly, triggerRealtimeApply]+ );++ const currentPreset = detectPreset(detectorConfig);++ const handlePresetChange = useCallback(+ (label: string) => {+ const target = presetLabelToTarget[label];+ if (target === "realtime") handleReplaceDetectorConfig({...MEDIAPIPE_REALTIME_PRESET});+ else if (target === "posthoc") handleReplaceDetectorConfig({...MEDIAPIPE_POSTHOC_PRESET});+ },+ [handleReplaceDetectorConfig]+ );++ useEffect(() => {+ if (!open) return;++ const handleKeyDown = (e: KeyboardEvent) => {+ if (e.key === 'Escape') onClose();+ };++ const handleClickOutside = (e: MouseEvent) => {+ if (modalRef.current && !modalRef.current.contains(e.target as Node)) {+ onClose();+ }+ };++ window.addEventListener('keydown', handleKeyDown);+ document.addEventListener('mousedown', handleClickOutside);++ return () => {+ window.removeEventListener('keydown', handleKeyDown);+ document.removeEventListener('mousedown', handleClickOutside);+ };+ }, [open, onClose]);++ if (!open) return null;++ return (+ <div+ ref={modalRef}+ className="RTP-settings-flyout pos-abs top-5 right-0 draggable border-1 border-black elevated-sharp flex flex-col p-1 bg-dark br-2 reveal fadeIn gap-1"+ >+ <div className="gap-1 flex flex-col right-0 p-2 bg-middark br-1 z-1">++ {/* Header */}+ <div className="flex justify-content-space-between items-center">+ <SubactionHeader text="MediaPipe Settings" />+ <IconButton icon="close-icon" onClick={onClose} />+ </div>++ {/* Preset dropdown */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Preset</span>++ <NameDropdownSelector+ key={currentPreset}+ options={PRESET_OPTIONS}+ initialValue={presetValueToLabel[currentPreset]}+ onChange={handlePresetChange}+ className="flex flex-row"+ />+ </div>++ {/* Min Detection Confidence */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Min detection confidence</span>+ <ValueSelector+ value={detectorConfig.min_detection_confidence}+ min={0}+ max={1}+ step={0.05}+ unit=""+ onChange={(v) => handleUpdateDetectorConfig({ min_detection_confidence: v })}+ />+ </div>++ {/* Min Tracking Confidence */}+ <div className="flex p-1 flex-row gap-1 items-center justify-content-space-between">+ <span className="text-sm">Min tracking confidence</span>+ <ValueSelector+ value={detectorConfig.min_tracking_confidence}+ min={0}+ max={1}+ step={0.05}+ unit=""+ onChange={(v) => handleUpdateDetectorConfig({ min_tracking_confidence: v })}+ />+ </div>++ {/* Toggles */}+ <ToggleComponent+ text="Smooth landmarks"+ isToggled={detectorConfig.smooth_landmarks}+ onToggle={(checked) => handleUpdateDetectorConfig({ smooth_landmarks: checked })}+ disabled={isLoading}+ />++ <ToggleComponent+ text="Segmentation"+ isToggled={detectorConfig.enable_segmentation}+ onToggle={(checked) => handleUpdateDetectorConfig({ enable_segmentation: checked })}+ disabled={isLoading}+ />++ <ToggleComponent+ text="Smooth segmentation"+ isToggled={detectorConfig.smooth_segmentation}+ onToggle={(checked) => handleUpdateDetectorConfig({ smooth_segmentation: checked })}+ disabled={isLoading || !detectorConfig.enable_segmentation}+ />++ <ToggleComponent+ text="Refine face landmarks"+ isToggled={detectorConfig.refine_face_landmarks}+ onToggle={(checked) => handleUpdateDetectorConfig({ refine_face_landmarks: checked })}+ disabled={isLoading}+ />++ <ToggleComponent+ text="Static image mode"+ isToggled={detectorConfig.static_image_mode}+ onToggle={(checked) => handleUpdateDetectorConfig({ static_image_mode: checked })}+ disabled={isLoading}+ />+ </div>+ </div>+ );+};++export default RTPMediaPipeDetectorSettings;diff --git a/freemocap-ui/src/components/playback/PlaybackControls.tsx b/freemocap-ui/src/components/playback/PlaybackControls.tsxindex 2a5d48d8..3a37cf0b 100644--- a/freemocap-ui/src/components/playback/PlaybackControls.tsx+++ b/freemocap-ui/src/components/playback/PlaybackControls.tsx@@ -1,32 +1,14 @@-import React, {useMemo, useState} from 'react';-import {- Box,- Checkbox,- Collapse,- FormControlLabel,- IconButton,- MenuItem,- Popover,- Select,- Slider,- ToggleButton,- ToggleButtonGroup,- Tooltip,- Typography,- useTheme,-} from '@mui/material';-import {createTheme, ThemeProvider} from '@mui/material/styles';-import PlayArrowIcon from '@mui/icons-material/PlayArrow';-import PauseIcon from '@mui/icons-material/Pause';-import SkipPreviousIcon from '@mui/icons-material/SkipPrevious';-import SkipNextIcon from '@mui/icons-material/SkipNext';-import FirstPageIcon from '@mui/icons-material/FirstPage';-import LastPageIcon from '@mui/icons-material/LastPage';-import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';-import RepeatIcon from '@mui/icons-material/Repeat';-import SettingsIcon from '@mui/icons-material/Settings';-import type {PlaybackSettings} from './SyncedVideoPlayer';-import {useTranslation} from 'react-i18next';+import React, { useEffect, useMemo, useRef, useState } from "react";+import clsx from "clsx";+import SegmentedControl from "@/components/ui-components/SegmentedControl";+import Checkbox from "@/components/ui-components/Checkbox";+import type { PlaybackSettings } from "./SyncedVideoPlayer";+import { useTranslation } from "react-i18next";+import IconButton from "@/components/ui-components/IconButton";+import PromptTooltip from "@/components/ui-components/PromptTooltip";+import SubactionHeader from "@/components/ui-components/SubactionHeader";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import { useDismissibleTooltip } from "@/hooks/useDismissibleTooltip";interface PlaybackControlsProps {isPlaying: boolean;@@ -55,11 +37,19 @@ interface PlaybackControlsProps {const PLAYBACK_RATES = [0.1, 0.25, 0.5, 1, 1.5, 2, 4, 8];-function formatTime(seconds: number): string {- const mins = Math.floor(seconds / 60);+function formatTimecode(seconds: number, fps: number): string {+ const hrs = Math.floor(seconds / 3600);+ const mins = Math.floor((seconds % 3600) / 60);const secs = Math.floor(seconds % 60);- const ms = Math.floor((seconds % 1) * 100);- return `${mins}:${secs.toString().padStart(2, '0')}.${ms.toString().padStart(2, '0')}`;+ const frames = Math.floor((seconds % 1) * fps);+ return `${hrs.toString().padStart(2, "0")}:${mins.toString().padStart(2, "0")}:${secs.toString().padStart(2, "0")}:${frames.toString().padStart(2, "0")}`;+}++function formatTimestamp(seconds: number, fps: number, format: "seconds" | "timecode"): string {+ if (format === "timecode") {+ return formatTimecode(seconds, fps);+ }+ return `${seconds.toFixed(3)}s`;}export const PlaybackControls: React.FC<PlaybackControlsProps> = ({@@ -86,416 +76,302 @@ export const PlaybackControls: React.FC<PlaybackControlsProps> = ({selectedSource,onSourceChange,}) => {- const theme = useTheme();const { t } = useTranslation();- const monoFont = '"JetBrains Mono", "Fira Code", "SF Mono", monospace';- const isDark = theme.palette.mode === 'dark';-- // MUI Slider reads direction from the theme, not CSS.- // Force LTR so the playback slider never reverses in RTL locales.- const ltrTheme = useMemo(() => createTheme({ ...theme, direction: 'ltr' }), [theme]);- // Visible accent colors that work on dark backgrounds- const accentGreen = '#00ff88';- const accentBlue = '#29b6f6'; // info.main from theme- const sliderColor = isDark ? accentBlue : theme.palette.primary.main;- const playBtnColor = isDark ? '#4caf50' : theme.palette.primary.main;+ const [settingsOpen, setSettingsOpen] = useState(false);+ const settingsButtonRef = useRef<HTMLButtonElement>(null);+ const settingsPopupRef = useRef<HTMLDivElement>(null);+ const [settingsStyle, setSettingsStyle] = useState<React.CSSProperties>({});- // Settings popover- const [settingsAnchor, setSettingsAnchor] = useState<HTMLElement | null>(null);- const settingsOpen = Boolean(settingsAnchor);+ const [speedDropdownOpen, setSpeedDropdownOpen] = useState(false);+ const speedButtonRef = useRef<HTMLButtonElement>(null);+ const speedPopupRef = useRef<HTMLDivElement>(null);- // Sync info collapse- const [syncInfoOpen, setSyncInfoOpen] = useState(true);+ const [syncInfoOpen, openSyncInfo, dismissSyncInfo] = useDismissibleTooltip(+ "freemocap:tooltip:syncInfo",+ );const updateSetting = <K extends keyof PlaybackSettings>(key: K, value: PlaybackSettings[K]) => {onSettingsChange({ ...settings, [key]: value });};- return (- <Box- sx={{- display: 'flex',- flexDirection: 'column',- gap: 0.5,- px: 2,- py: 1,- backgroundColor: theme.palette.background.paper,- borderTop: `1px solid ${theme.palette.divider}`,- }}- >- {/* Frame-based slider */}- <Box sx={{ display: 'flex', alignItems: 'center', gap: 1.5 }}>- <Tooltip title={t("estimatedTime")} placement="top">- <Typography variant="caption" sx={{- fontFamily: monoFont, minWidth: 70, textAlign: 'right',- color: accentGreen, fontWeight: 600, fontSize: '0.8rem',- }}>- ~{formatTime(currentTime)}- </Typography>- </Tooltip>- <ThemeProvider theme={ltrTheme}>- <Slider- value={currentFrame}- min={0}- max={Math.max(totalFrames - 1, 1)}- step={1}- onChange={(_, value) => onSeekDrag(value as number)}- onChangeCommitted={(_, value) => onSeekCommit(value as number)}- sx={{- flex: 1,- color: sliderColor,- '& .MuiSlider-thumb': {- width: 14, height: 14,- transition: 'none',- backgroundColor: sliderColor,- '&:hover, &.Mui-focusVisible': {- boxShadow: `0 0 0 8px ${isDark ? 'rgba(41, 182, 246, 0.16)' : 'rgba(25, 118, 210, 0.16)'}`,- },- },- '& .MuiSlider-track': { transition: 'none', backgroundColor: sliderColor },- '& .MuiSlider-rail': { backgroundColor: isDark ? 'rgba(255,255,255,0.2)' : 'rgba(0,0,0,0.2)' },- }}- size="small"- />- </ThemeProvider>- <Tooltip title={t("estimatedDuration")} placement="top">- <Typography variant="caption" sx={{- fontFamily: monoFont, minWidth: 70,- color: theme.palette.text.secondary,- }}>- ~{formatTime(duration)}- </Typography>- </Tooltip>- </Box>+ const handleOpenSettings = () => {+ if (!settingsOpen && settingsButtonRef.current) {+ const rect = settingsButtonRef.current.getBoundingClientRect();+ setSettingsStyle({+ position: "fixed",+ bottom: window.innerHeight - rect.top + 4,+ right: window.innerWidth - rect.right,+ zIndex: 200,+ });+ }+ setSettingsOpen((prev) => !prev);+ };- {/* Transport controls */}- <Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 0.5 }}>- {/* Left: frame info + recording stats */}- <Box sx={{ minWidth: 240, textAlign: 'right', mr: 2, display: 'flex', alignItems: 'center', gap: 1.5, justifyContent: 'flex-end' }}>- {/* Frame counter badge */}- <Typography- component="span"- sx={{- fontFamily: monoFont,- fontSize: '0.85rem',- fontWeight: 700,- color: accentGreen,- backgroundColor: 'rgba(0,255,136,0.08)',- px: 1, py: 0.25, borderRadius: 1,- border: '1px solid rgba(0,255,136,0.2)',- }}- >- Frame {currentFrame} / {totalFrames}- </Typography>+ const timestampOptions = useMemo(+ () => [+ { label: "1.234s", value: "seconds" },+ { label: "HH:MM:SS:FF", value: "timecode" },+ ],+ [],+ );- {/* Recording FPS badge — clearly labeled */}- {recordingFps != null && recordingFps > 0 && (- <Tooltip title={t("recordingCaptureFps")}>- <Typography- component="span"- sx={{- fontFamily: monoFont,- fontSize: '0.7rem',- color: isDark ? '#ffcc80' : theme.palette.warning.dark,- backgroundColor: isDark ? 'rgba(255,204,128,0.08)' : 'rgba(255,152,0,0.08)',- px: 0.75, py: 0.2, borderRadius: 1,- border: `1px solid ${isDark ? 'rgba(255,204,128,0.2)' : 'rgba(255,152,0,0.2)'}`,- whiteSpace: 'nowrap',- }}- >- rec: {recordingFps} fps- </Typography>- </Tooltip>- )}- </Box>+ useEffect(() => {+ if (!settingsOpen && !speedDropdownOpen) return;- {/* Center: transport buttons — bright colors for visibility */}- <Tooltip title={t("jumpToStart")}>- <IconButton size="small" onClick={onSeekToStart}- sx={{ color: isDark ? '#b3b9c6' : undefined }}>- <FirstPageIcon />- </IconButton>- </Tooltip>+ const handleClick = (e: MouseEvent) => {+ if (+ settingsPopupRef.current &&+ !settingsPopupRef.current.contains(e.target as Node) &&+ settingsButtonRef.current &&+ !settingsButtonRef.current.contains(e.target as Node)+ ) {+ setSettingsOpen(false);+ }+ if (+ speedPopupRef.current &&+ !speedPopupRef.current.contains(e.target as Node) &&+ speedButtonRef.current &&+ !speedButtonRef.current.contains(e.target as Node)+ ) {+ setSpeedDropdownOpen(false);+ }+ };- <Tooltip title={t("previousFrame")}>- <IconButton size="small" onClick={() => onFrameStep(-1)}- sx={{ color: isDark ? '#b3b9c6' : undefined }}>- <SkipPreviousIcon />- </IconButton>- </Tooltip>+ document.addEventListener("mousedown", handleClick);+ return () => document.removeEventListener("mousedown", handleClick);+ }, [settingsOpen, speedDropdownOpen]);- <Tooltip title={isPlaying ? 'Pause (Space)' : 'Play (Space)'}>- <IconButton- onClick={onPlayPause}- sx={{- mx: 1,- color: playBtnColor,- border: `2px solid ${playBtnColor}`,- '&:hover': {- backgroundColor: `${playBtnColor}22`,- borderColor: playBtnColor,- },- }}- >- {isPlaying ? <PauseIcon fontSize="large" /> : <PlayArrowIcon fontSize="large" />}- </IconButton>- </Tooltip>+ const validSources = availableSources && selectedSource && onSourceChange+ ? Object.entries(availableSources).filter(([, s]) => s.available && s.valid).map(([key]) => key)+ : [];++ return (+ <div className="playback-controls bg-dark br-2 flex flex-row flex-wrap row-reverse justify-center gap-2 p-2 m-1 mt-0">+ {/* Timeline Scrubber */}+ <div className="playback-timeline-scrubber flex flex-row items-center">+ <div className="playback-timeline-track flex-1 bg-middark relative">+ <input+ type="range"+ dir="ltr"+ className="playback-timeline-input"+ min={0}+ max={Math.max(totalFrames - 1, 1)}+ step={1}+ value={currentFrame}+ style={+ {+ "--progress-percent": `${totalFrames > 1 ? (currentFrame / (totalFrames - 1)) * 100 : 0}%`,+ } as React.CSSProperties+ }+ onChange={(e) => onSeekDrag(Number(e.target.value))}+ onMouseUp={(e) => onSeekCommit(Number(e.currentTarget.value))}+ onTouchEnd={(e) => onSeekCommit(Number(e.currentTarget.value))}+ />- <Tooltip title={t("nextFrame")}>- <IconButton size="small" onClick={() => onFrameStep(1)}- sx={{ color: isDark ? '#b3b9c6' : undefined }}>- <SkipNextIcon />- </IconButton>- </Tooltip>+ <div className="playback-timeline-frame-counter pos-abs z-2 text-white gap-3 flex flex-row items-center">+ Frame {currentFrame} / {totalFrames}+ {recordingFps != null && recordingFps > 0 && (+ <span title={t("recordingCaptureFps")}>+ · Rec: {recordingFps} fps+ </span>+ )}+ </div>++ <span className="playback-timeline-start-time pos-abs z-2 text-white" title={t("estimatedTime")}>+ {formatTimestamp(currentTime, fps, settings.timestampFormat)}+ </span>- <Tooltip title={t("jumpToEnd")}>- <IconButton size="small" onClick={onSeekToEnd}- sx={{ color: isDark ? '#b3b9c6' : undefined }}>- <LastPageIcon />- </IconButton>- </Tooltip>+ <span className="playback-timeline-end-time pos-abs z-2 text-white" title={t("estimatedDuration")}>+ {formatTimestamp(duration, fps, settings.timestampFormat)}+ </span>+ </div>+ </div>- <Tooltip title={isLooping ? t("loopOn") : t("loopOff")}>+ {/* Transport Controls Row */}+ <div className="flex items-center justify-center controls-group-section gap-2 flex-wrap">+ {/* Loop & Speed Group */}+ <div className="playback-controls-group-loop-speed flex bg-middark br-2 flex-row p-1 gap-1"><IconButton- size="small"+ icon={isLooping ? "loopactive-icon" : "loop-icon"}onClick={onToggleLoop}- sx={{- color: isLooping- ? accentBlue- : (isDark ? '#b3b9c6' : undefined),- backgroundColor: isLooping- ? (isDark ? 'rgba(41, 182, 246, 0.15)' : 'rgba(25, 118, 210, 0.1)')- : undefined,- border: isLooping ? `1px solid ${accentBlue}` : '1px solid transparent',- '&:hover': {- backgroundColor: isLooping- ? (isDark ? 'rgba(41, 182, 246, 0.25)' : 'rgba(25, 118, 210, 0.2)')- : undefined,- },- }}- >- <RepeatIcon fontSize="small" />- </IconButton>- </Tooltip>+ title={isLooping ? t("loopOn") : t("loopOff")}+ className={clsx("icon-size-25", isLooping && "activated")}+ tooltip={true}+ tooltipText={isLooping ? t("loopOn") : t("loopOff")}+ tooltipPosition="pos-top"+ />- {/* Video source toggle — only when 2+ valid sources available */}- {availableSources && selectedSource && onSourceChange && (() => {- const validSources = Object.entries(availableSources)- .filter(([, s]) => s.available && s.valid)- .map(([key]) => key);- if (validSources.length < 2) return null;- return (- <ToggleButtonGroup- value={selectedSource}- exclusive- onChange={(_, val) => { if (val) onSourceChange(val); }}- size="small"- sx={{- ml: 2,- '& .MuiToggleButton-root': {- fontSize: '0.7rem',- fontFamily: monoFont,- py: 0.3,- px: 1,- textTransform: 'capitalize',- color: isDark ? '#b3b9c6' : theme.palette.text.secondary,- borderColor: isDark ? 'rgba(255,255,255,0.2)' : theme.palette.divider,- '&.Mui-selected': {- color: '#fff',- backgroundColor: isDark ? 'rgba(41,182,246,0.25)' : theme.palette.primary.main,- borderColor: accentBlue,- '&:hover': {- backgroundColor: isDark ? 'rgba(41,182,246,0.35)' : theme.palette.primary.dark,- },- },- },- }}+ <div className="playback-speed-button-containter pos-rel">+ <button+ ref={speedButtonRef}+ className="playback-speed-button icon-size-25 button icon-button sm fit-content flex-inline items-center gap-1 br-1"+ onClick={() => setSpeedDropdownOpen((prev) => !prev)}+ title={t("playbackSpeed")}>- <ToggleButton value="annotated">Annotated</ToggleButton>- <ToggleButton value="synchronized">Synchronized</ToggleButton>- </ToggleButtonGroup>- );- })()}+ <span className="text-gray text md text-nowrap">{playbackRate}×</span>+ <div className="tooltip-container elevated-sharp pos-top p-01 br-2 bg-dark">+ <div className="tooltip-inner br-1 pl-2 pr-2 pt-1 pb-1 border-1 border-mid-black border-solid">+ <p className="text-white text md">{t("playbackSpeed")}</p>+ </div>+ </div>+ </button>- {/* Right: speed selector + settings */}- <Box sx={{ display: 'flex', alignItems: 'center', ml: 2, gap: 1 }}>- <Tooltip title={t("playbackSpeed")}>- <Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>- <Typography variant="caption" sx={{ color: isDark ? '#b3b9c6' : 'text.secondary' }}>- Speed:- </Typography>- <Select- value={playbackRate}- onChange={(e) => onPlaybackRateChange(Number(e.target.value))}- size="small"- variant="outlined"- sx={{- minWidth: 70,- '& .MuiSelect-select': {- py: 0.25, fontSize: '0.8rem', fontFamily: monoFont,- color: isDark ? '#fff' : undefined,- },- '& .MuiOutlinedInput-notchedOutline': {- borderColor: isDark ? 'rgba(255,255,255,0.25)' : undefined,- },- '&:hover .MuiOutlinedInput-notchedOutline': {- borderColor: isDark ? 'rgba(255,255,255,0.5)' : undefined,- },- '& .MuiSvgIcon-root': {- color: isDark ? 'rgba(255,255,255,0.5)' : undefined,- },- }}+ {speedDropdownOpen && (+ <div+ ref={speedPopupRef}+ className="reveal slide-up right-0 z-10 pos-abs bottom-36 playback-speed-settings-popup border-1 border-solid bg-dark border-black br-2 elevated-sharp flex flex-col gap-2 p-1">- {PLAYBACK_RATES.map((rate) => (- <MenuItem key={rate} value={rate}>{rate}×</MenuItem>- ))}- </Select>- </Box>- </Tooltip>+ <div className="bg-middark br-1 flex flex-col gap-1 p-1">+ {PLAYBACK_RATES.map((rate) => (+ <button+ key={rate}+ className={`gap-1 br-1 button sm fit-content flex-inline text-left items-center full-width ${playbackRate === rate ? "selected" : ""}`}+ onClick={() => {+ onPlaybackRateChange(rate);+ setSpeedDropdownOpen(false);+ }}+ >+ <p className="text-gray text md text-align-left text-nowrap">{rate}×</p>+ </button>+ ))}+ </div>+ </div>+ )}+ </div>+ </div>- {/* Sync info */}- <Tooltip title={t("syncInfo")}>- <IconButton- size="small"- onClick={() => setSyncInfoOpen((prev) => !prev)}- sx={{- color: syncInfoOpen- ? (isDark ? '#ffcc80' : theme.palette.warning.dark)- : (isDark ? 'rgba(255,255,255,0.3)' : theme.palette.text.disabled),- fontSize: '0.85rem',- }}- >- <InfoOutlinedIcon sx={{ fontSize: 16 }} />- </IconButton>- </Tooltip>-- {/* Settings gear */}- <Tooltip title={t("playbackSettings")}>- <IconButton- size="small"- onClick={(e) => setSettingsAnchor(e.currentTarget)}- sx={{- color: settingsOpen- ? accentBlue- : (isDark ? '#b3b9c6' : theme.palette.text.secondary),- }}- >- <SettingsIcon fontSize="small" />- </IconButton>- </Tooltip>- </Box>- </Box>+ {/* Step & Skip Group */}+ <div className="playback-controls-group-step-skip bg-middark br-2 gap-1 flex flex-row p-1 items-center">+ <IconButton+ icon="skipbackward-icon"+ onClick={onSeekToStart}+ title={t("jumpToStart")}+ className="icon-size-25"+ tooltip={true}+ tooltipText={t("jumpToStart")}+ tooltipPosition="pos-top"+ />+ <IconButton+ icon="framebackward-icon"+ onClick={() => onFrameStep(-1)}+ title={t("previousFrame")}+ className="icon-size-25"+ tooltip={true}+ tooltipText={t("previousFrame")}+ tooltipPosition="pos-top"+ />+ <IconButton+ icon={isPlaying ? "pause-icon" : "play-icon"}+ onClick={onPlayPause}+ title={isPlaying ? "Pause (Space)" : "Play (Space)"}+ className={clsx("playback-btn-play", "icon-size-25", isPlaying && "playing")}+ tooltip={true}+ tooltipText={isPlaying ? t("pause") : t("play")}+ tooltipPosition="pos-top"+ />+ <IconButton+ icon="frameforward-icon"+ onClick={() => onFrameStep(1)}+ title={t("nextFrame")}+ className="icon-size-25"+ tooltip={true}+ tooltipText={t("nextFrame")}+ tooltipPosition="pos-top"+ />+ <IconButton+ icon="skipforward-icon"+ onClick={onSeekToEnd}+ title={t("jumpToEnd")}+ className="icon-size-25"+ tooltip={true}+ tooltipText={t("jumpToEnd")}+ tooltipPosition="pos-top"+ />+ </div>- {/* Settings popover */}- <Popover- open={settingsOpen}- anchorEl={settingsAnchor}- onClose={() => setSettingsAnchor(null)}- anchorOrigin={{ vertical: 'top', horizontal: 'right' }}- transformOrigin={{ vertical: 'bottom', horizontal: 'right' }}- slotProps={{- paper: {- sx: {- p: 2,- minWidth: 260,- backgroundColor: theme.palette.background.paper,- border: `1px solid ${theme.palette.divider}`,- },- },- }}- >- <Typography variant="subtitle2" sx={{ mb: 1.5, fontWeight: 600, color: theme.palette.text.primary }}>- Display Settings- </Typography>+ {/* Source Switcher (freemocap-only) */}+ {validSources.length >= 2 && selectedSource && onSourceChange && (+ <div className="flex bg-middark br-2 flex-row p-1 gap-1">+ {["annotated", "synchronized"].map((src) => (+ <button+ key={src}+ className={`button sm br-1 ${selectedSource === src ? "selected" : ""}`}+ onClick={() => onSourceChange(src)}+ style={{textTransform: "capitalize", fontSize: "0.7rem"}}+ >+ {src}+ </button>+ ))}+ </div>+ )}- <FormControlLabel- control={- <Checkbox- checked={settings.showOverlays}- onChange={(e) => updateSetting('showOverlays', e.target.checked)}- size="small"- sx={{- color: isDark ? 'rgba(255,255,255,0.5)' : undefined,- '&.Mui-checked': { color: accentBlue },- }}+ {/* Info & Settings Group */}+ <div className="playback-controls-group-info-settings flex items-center gap-1 flow-row p-1 bg-middark br-2">+ <div className="flex pos-rel items-center onclick-tooltip-wrapper">+ <PromptTooltip+ show={syncInfoOpen}+ title="Recording Playback Timing Issue"+ text={t("syncInfoTitle")}+ position="pos-top"+ variant="warning"+ onClose={dismissSyncInfo}/>- }- label={- <Typography variant="body2" sx={{ color: theme.palette.text.primary }}>- Show frame overlays- </Typography>- }- sx={{ mb: 1.5, ml: 0 }}- />-- <Typography variant="caption" sx={{ mb: 0.75, display: 'block', color: theme.palette.text.secondary }}>- Timestamp format- </Typography>- <ToggleButtonGroup- value={settings.timestampFormat}- exclusive- onChange={(_, val) => { if (val) updateSetting('timestampFormat', val); }}- size="small"- fullWidth- sx={{- '& .MuiToggleButton-root': {- fontSize: '0.75rem',- fontFamily: monoFont,- py: 0.5,- color: isDark ? '#b3b9c6' : theme.palette.text.secondary,- borderColor: isDark ? 'rgba(255,255,255,0.2)' : theme.palette.divider,- '&.Mui-selected': {- color: '#fff',- backgroundColor: isDark ? 'rgba(41,182,246,0.25)' : theme.palette.primary.main,- borderColor: accentBlue,- '&:hover': {- backgroundColor: isDark ? 'rgba(41,182,246,0.35)' : theme.palette.primary.dark,- },- },- },- }}- >- <ToggleButton value="seconds">1.234s</ToggleButton>- <ToggleButton value="timecode">HH:MM:SS:FF</ToggleButton>- </ToggleButtonGroup>- </Popover>+ <IconButton+ icon="warning-icon"+ onClick={() => (syncInfoOpen ? dismissSyncInfo() : openSyncInfo())}+ title={t("syncInfo")}+ className={clsx("icon-size-25", syncInfoOpen && "activated")}+ tooltip={true}+ tooltipText={t("syncInfo")}+ tooltipPosition="pos-top"+ />+ </div>- {/* Sync info panel */}- <Collapse in={syncInfoOpen}>- <Box- sx={{- px: 2,- py: 1,- mt: 0.5,- borderRadius: 1,- backgroundColor: isDark ? 'rgba(255, 204, 128, 0.06)' : 'rgba(255, 152, 0, 0.05)',- border: `1px solid ${isDark ? 'rgba(255, 204, 128, 0.15)' : 'rgba(255, 152, 0, 0.2)'}`,- }}- >- <Typography- variant="caption"- sx={{- display: 'block',- color: isDark ? '#ffcc80' : theme.palette.warning.dark,- fontWeight: 600,- mb: 0.5,- }}- >- {t("syncInfoTitle")}- </Typography>- {/*<Typography*/}- {/* variant="caption"*/}- {/* sx={{*/}- {/* display: 'block',*/}- {/* color: theme.palette.text.secondary,*/}- {/* lineHeight: 1.5,*/}- {/* }}*/}- {/*>*/}- {/* {t("syncInfoBody")}*/}- {/*</Typography>*/}- </Box>- </Collapse>- </Box>+ <div className="playback-settings-button-opener flex pos-rel items-center onclick-tooltip-wrapper">+ <IconButton+ icon="settings-icon"+ ref={settingsButtonRef}+ onClick={handleOpenSettings}+ title={t("playbackSettings")}+ className={clsx("icon-size-25", settingsOpen && "activated")}+ tooltip={true}+ tooltipText={t("playbackSettings")}+ tooltipPosition="pos-top"+ />+ {settingsOpen && (+ <div+ ref={settingsPopupRef}+ style={settingsStyle}+ className="reveal slide-up right-0 z-10 pos-abs bottom-36 playback-settings-popup border-1 border-solid bg-dark border-black br-2 elevated-sharp flex flex-col gap-2 p-1"+ >+ <div className="bg-middark br-1 flex flex-col gap-2 p-2">+ <SubactionHeader text="Display settings" />+ <ToggleComponent+ text="Show frame overlays"+ isToggled={settings.showOverlays}+ onToggle={(state) => updateSetting("showOverlays", state)}+ />+ <div className="timestamp-format-section flex flex-col gap-2 p-1">+ <div className="flex items-center justify-between">+ <p className="text sm text-gray">Timestamp format</p>+ </div>+ <SegmentedControl+ options={timestampOptions}+ value={settings.timestampFormat}+ onChange={(val) =>+ updateSetting("timestampFormat", val as "seconds" | "timecode")+ }+ size="sm"+ className="bg-darkgray segmented-control-sm gap-2"+ />+ </div>+ </div>+ </div>+ )}+ </div>+ </div>+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/playback/RecordingBrowser.tsx b/freemocap-ui/src/components/playback/RecordingBrowser.tsxindex 5b3251c2..ef75e3b4 100644--- a/freemocap-ui/src/components/playback/RecordingBrowser.tsx+++ b/freemocap-ui/src/components/playback/RecordingBrowser.tsx@@ -1,45 +1,11 @@/*** RecordingBrowser — lists available recording sessions from the server,* with search filtering, multi-field sorting, and rich per-recording metadata.- *- * Uses a Redux-cached batch response (fetchAllRecordings) so expanding a row- * doesn't trigger individual HTTP requests. The cache is populated on app- * startup and refreshed when the user navigates to the recordings tab.*/import React, {useCallback, useEffect, useMemo, useState} from 'react';-import {- Box,- Button,- Chip,- CircularProgress,- Collapse,- IconButton,- InputAdornment,- List,- ListItem,- ListItemButton,- ListItemIcon,- ListItemText,- MenuItem,- Select,- type SelectChangeEvent,- TextField,- Tooltip,- Typography,- useTheme,-} from '@mui/material';-import CheckCircleIcon from '@mui/icons-material/CheckCircle';-import ExpandMoreIcon from '@mui/icons-material/ExpandMore';-import FolderIcon from '@mui/icons-material/Folder';-import PlayArrowIcon from '@mui/icons-material/PlayArrow';-import RefreshIcon from '@mui/icons-material/Refresh';-import VideocamIcon from '@mui/icons-material/Videocam';-import StorageIcon from '@mui/icons-material/Storage';-import AccessTimeIcon from '@mui/icons-material/AccessTime';-import SearchIcon from '@mui/icons-material/Search';-import SortIcon from '@mui/icons-material/Sort';-import {serverUrls} from '@/constants/server-urls';+import clsx from 'clsx';import {useTranslation} from 'react-i18next';+import {useElectronIPC} from '@/services';import {RecordingStatusPanel} from '@/components/common/RecordingStatusPanel';import {useRecordingStatus} from '@/hooks/useRecordingStatus';import {useAppDispatch, useAppSelector} from '@/store';@@ -60,11 +26,13 @@ import {selectRecordingsFetchedAt,selectRecordingsIsLoading,} from '@/store/slices/recording-status/recording-status-slice';+import {serverUrls} from '@/constants/server-urls';+import ButtonSm from '@/components/ui-components/ButtonSm';+import SubactionHeader from '@/components/ui-components/SubactionHeader';+import IconButton from '@/components/ui-components/IconButton';-/** Re-exported for PlaybackContext / PlaybackPage consumers. */export type RecordingEntry = RecordingListEntry;-/** Shape passed up to the parent when a recording is loaded */export interface LoadedVideo {videoId: string;filename: string;@@ -80,17 +48,12 @@ interface RecordingBrowserProps {sources?: Record<string, { available: boolean; valid: boolean; video_count: number; videos: LoadedVideo[] }>,preferred?: string,) => void;- /** Name/path of the recording currently loaded into the Playback view — highlighted in the list. */activeRecordingPath?: string | null;}type SortField = 'date' | 'name' | 'size' | 'cameras' | 'frames' | 'duration';type SortDirection = 'asc' | 'desc';-// ----------------------------------------------------------------------------// Formatting helpers-// ----------------------------------------------------------------------------function formatBytes(bytes: number): string {if (bytes <= 0) return '0 B';const k = 1024;@@ -111,15 +74,7 @@ function formatDuration(seconds: number): string {return `${m}m ${s}s`;}-/**- * Try to parse an ISO-like timestamp from a recording folder name.- * Handles patterns like:- * 2026-02-18_09-24-12_GMT-5- * 2026-02-18T09_24_12- * 2026-02-18- */function parseTimestampFromName(name: string): Date | null {- // Full datetime: 2026-02-18_09-24-12 or 2026-02-18T09:24:12const fullMatch = name.match(/(\d{4})-(\d{2})-(\d{2})[T_](\d{2})[_:\-](\d{2})[_:\-](\d{2})/);@@ -127,7 +82,6 @@ function parseTimestampFromName(name: string): Date | null {const [, y, mo, d, h, mi, s] = fullMatch;return new Date(+y, +mo - 1, +d, +h, +mi, +s);}- // Date only: 2026-02-18const dateMatch = name.match(/(\d{4})-(\d{2})-(\d{2})/);if (dateMatch) {const [, y, mo, d] = dateMatch;@@ -154,10 +108,6 @@ function formatRelativeTime(date: Date): string {});}-// ----------------------------------------------------------------------------// Sort helpers-// ----------------------------------------------------------------------------function getSortValue(rec: RecordingEntry, field: SortField): number | string {switch (field) {case 'date': {@@ -194,14 +144,6 @@ function compareRecordings(return direction === 'desc' ? -cmp : cmp;}-// ----------------------------------------------------------------------------// Constants-// -----------------------------------------------------------------------------const MONO_FONT = '"JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", monospace';-const ACCENT_BLUE = '#29b6f6';-const ACCENT_GREEN = '#00ff88';-const SORT_OPTIONS: { value: SortField; labelKey: string }[] = [{ value: 'date', labelKey: 'date' },{ value: 'name', labelKey: 'name' },@@ -211,17 +153,11 @@ const SORT_OPTIONS: { value: SortField; labelKey: string }[] = [{ value: 'duration', labelKey: 'duration' },];-// ----------------------------------------------------------------------------// Component-// ----------------------------------------------------------------------------export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingLoaded, activeRecordingPath }) => {- const theme = useTheme();const { t } = useTranslation();- const isDark = theme.palette.mode === 'dark';const dispatch = useAppDispatch();+ const { api, isElectron } = useElectronIPC();- // Data from Redux cache (prefetched on app startup)const recordings = useAppSelector(selectRecordingsList);const recordingsFetchedAt = useAppSelector(selectRecordingsFetchedAt);const isLoadingList = useAppSelector(selectRecordingsIsLoading);@@ -230,17 +166,11 @@ export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingLconst [error, setError] = useState<string | null>(null);const [loadingPath, setLoadingPath] = useState<string | null>(null);- // Manual path inputconst [manualPath, setManualPath] = useState('');-- // Filter / sortconst [filterText, setFilterText] = useState('');const [sortField, setSortField] = useState<SortField>('date');const [sortDir, setSortDir] = useState<SortDirection>('desc');- // ------------------------------------------------------------------------ // Fetch the list of recordings from the server (cache-aware)- // -----------------------------------------------------------------------const fetchRecordings = useCallback(async (force = false) => {const MAX_CACHE_AGE_MS = 30_000;if (!force && recordingsFetchedAt && Date.now() - recordingsFetchedAt < MAX_CACHE_AGE_MS) {@@ -254,31 +184,20 @@ export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingL}, [dispatch, recordingsFetchedAt]);useEffect(() => {- // Fetch on mount if cache is empty (belt-and-suspenders with AppContent prefetch)if (recordings.length === 0) {fetchRecordings();}}, []); // eslint-disable-line react-hooks/exhaustive-deps- // ------------------------------------------------------------------------ // Apply filter + sort- // -----------------------------------------------------------------------const filteredSorted = useMemo(() => {let result = recordings;-- // Text filterif (filterText.trim()) {const q = filterText.trim().toLowerCase();result = result.filter((r) => r.name.toLowerCase().includes(q));}-- // Sortreturn [...result].sort((a, b) => compareRecordings(a, b, sortField, sortDir));}, [recordings, filterText, sortField, sortDir]);- // ------------------------------------------------------------------------ // Load a specific recording- // -----------------------------------------------------------------------const loadRecording = useCallback(async (recordingPath: string) => {setIsLoadingRecording(true);@@ -286,7 +205,6 @@ export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingLsetError(null);try {- // Determine recording ID (name) and parent directoryconst rec = recordings.find((r) => r.path === recordingPath);const recName = rec ? rec.name : recordingPath.split(/[\\/]/).pop() || recordingPath;const parsed = rec?.path ? splitParentAndName(rec.path) : null;@@ -313,7 +231,6 @@ export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingLlet sources: Record<string, {available: boolean; valid: boolean; video_count: number; videos: LoadedVideo[]}> | undefined;let preferred: string | undefined;- // New structured response: { preferred_source, sources: { annotated, synchronized } }if (data.sources) {sources = {};for (const [key, src] of Object.entries(data.sources) as [string, any][]) {@@ -333,7 +250,6 @@ export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingLpreferred = resolvedPreferred;videos = sources[resolvedPreferred]?.videos ?? [];} else {- // Fallback: old flat-array responsevideos = data.map((v: {video_id: string;@@ -351,7 +267,6 @@ export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingLconst recFps = rec?.fps ?? undefined;- // Promote this recording to the app-wide active recording.const layoutPreset = rec?.layout_validation? detectLayoutPreset(rec.layout_validation): undefined;@@ -362,7 +277,6 @@ export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingLlayoutPreset,}));- // Context callback is view-model only (loadedVideos/fps/sources).onRecordingLoaded(videos, recName, recFps, sources, preferred);} catch (e) {setError(e instanceof Error ? e.message : 'Failed to load recording');@@ -374,277 +288,136 @@ export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingL[onRecordingLoaded, recordings, dispatch],);- const handleLoadManualPath = useCallback(() => {- const trimmed = manualPath.trim();- if (trimmed) loadRecording(trimmed);- }, [manualPath, loadRecording]);-- // ------------------------------------------------------------------------ // Sort controls- // ------------------------------------------------------------------------ const handleSortFieldChange = (e: SelectChangeEvent) => {- setSortField(e.target.value as SortField);- };+ const handleBrowseDirectory = useCallback(async () => {+ if (!isElectron || !api) return;+ const result: string | null = await api.fileSystem.selectDirectory.mutate();+ if (!result) return;+ const trimmed = result.trim().replace(/[\\/]+$/, '');+ setManualPath(trimmed);+ loadRecording(trimmed);+ }, [api, isElectron, loadRecording]);const toggleSortDir = () => {setSortDir((d) => (d === 'desc' ? 'asc' : 'desc'));};- // ------------------------------------------------------------------------ // Render- // -----------------------------------------------------------------------return (- <Box- sx={{- display: 'flex',- flexDirection: 'column',- gap: 2,- p: 2,- height: '100%',- overflow: 'hidden',- }}- >- {/* ── Manual path input ── */}- <Box sx={{ display: 'flex', gap: 1, alignItems: 'flex-start' }}>- <TextField- fullWidth- size="small"- label={t("recordingFolderPath")}- placeholder="~/freemocap_data/recordings/2024-01-01..."- value={manualPath}- onChange={(e) => setManualPath(e.target.value)}- onKeyDown={(e) => {- if (e.key === 'Enter') handleLoadManualPath();- }}- disabled={isLoadingRecording}- sx={{ '& input': { fontFamily: MONO_FONT, fontSize: '0.85rem' } }}- />- <Button- variant="contained"- onClick={handleLoadManualPath}- disabled={!manualPath.trim() || isLoadingRecording}- startIcon={- isLoadingRecording && !loadingPath ? (- <CircularProgress size={16} />- ) : (- <PlayArrowIcon />- )- }- sx={{- whiteSpace: 'nowrap',- backgroundColor: isDark ? '#4caf50' : undefined,- color: isDark ? '#fff' : undefined,- '&:hover': { backgroundColor: isDark ? '#66bb6a' : undefined },- }}- >- {t('load')}- </Button>- </Box>-- {/* ── Error ── */}- {error && (- <Typography color="error" variant="body2" sx={{ px: 1 }}>- {error}- </Typography>- )}-- {/* ── Header bar: title, filter, sort, refresh ── */}- <Box- sx={{- display: 'flex',- alignItems: 'center',- justifyContent: 'space-between',- flexWrap: 'wrap',- gap: 1,- }}- >- {/* Left: title + count */}- <Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>- <Typography- variant="subtitle2"- sx={{- color: theme.palette.text.primary,- fontWeight: 600,- }}- >- {t('recordings')}- </Typography>- {recordings.length > 0 && (- <Chip- label={- filterText- ? `${filteredSorted.length} / ${recordings.length}`- : String(recordings.length)- }- size="small"- variant="outlined"- sx={{- height: 20,- fontSize: '0.7rem',- borderColor: isDark ? 'rgba(255,255,255,0.2)' : undefined,- color: isDark ? '#b3b9c6' : undefined,- }}- />- )}- </Box>-- {/* Right: filter + sort + refresh */}- <Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>- {/* Search filter */}- <TextField- size="small"- placeholder={t("filter")}- value={filterText}- onChange={(e) => setFilterText(e.target.value)}- InputProps={{- startAdornment: (- <InputAdornment position="start">- <SearchIcon- sx={{- fontSize: 16,- color: isDark- ? 'rgba(255,255,255,0.4)'- : 'rgba(0,0,0,0.4)',- }}- />- </InputAdornment>- ),- }}- sx={{- width: 160,- '& input': { fontSize: '0.8rem', py: 0.5 },- }}+ <div className="playback-file-directory-inner-content flex playback-page-content pos-rel flex flex-col gap-1 h-full overflow-hidden">+ {/* Folder selector */}+ <div className="load-group bg-middark br-1 p-1 flex flex-start flex-wrap gap-1 items-center">+ <div className="flex flex-col flex-start gap-1 items-center w-full">+ <SubactionHeader text="Folder Directory" />+ <ButtonSm+ iconClass="subfolder-icon"+ text={manualPath || "Select recording folder"}+ onClick={handleBrowseDirectory}+ title="Click to select recording folder"+ disabled={!isElectron}+ className="select-path bg-middark flex-1 w-full min-w-full"+ textClass="text-wrap flex-1"/>-- {/* Sort field dropdown */}- <Select- value={sortField}- onChange={handleSortFieldChange}- size="small"- variant="outlined"- sx={{- minWidth: 100,- '& .MuiSelect-select': {- py: 0.4,- fontSize: '0.75rem',- color: isDark ? '#b3b9c6' : undefined,- },- '& .MuiOutlinedInput-notchedOutline': {- borderColor: isDark- ? 'rgba(255,255,255,0.2)'- : undefined,- },- '& .MuiSvgIcon-root': {- color: isDark- ? 'rgba(255,255,255,0.4)'- : undefined,- },- }}- >- {SORT_OPTIONS.map((opt) => (- <MenuItem key={opt.value} value={opt.value}>- {t(opt.labelKey)}- </MenuItem>- ))}- </Select>-- {/* Sort direction toggle */}- <Tooltip- title={`Sort ${sortDir === 'desc' ? 'newest first' : 'oldest first'} — click to toggle`}- >- <IconButton- size="small"- onClick={toggleSortDir}- sx={{- color: isDark ? '#b3b9c6' : theme.palette.text.secondary,- }}- >- <SortIcon- sx={{- fontSize: 18,- transform: sortDir === 'asc' ? 'scaleY(-1)' : 'none',- transition: 'transform 0.2s ease',- }}+ </div>+ </div>++ {error && <p className="pl-2 flex flex-row text sm text-error">{error}</p>}++ {/* Header + list wrapper */}+ <div className="flex flex-col flex-1 overflow-hidden bg-middark br-1 p-1 gap-2">+ {/* Header bar */}+ <div className="recording-group flex flex-row flex-wrap flex-start items-center gap-1 justify-content-space-between">+ <div className="flex header-holder-for-recording items-center gap-1">+ {recordings.length > 0 && (+ <p className="tag camera-status-badge">+ {filterText+ ? `${filteredSorted.length} / ${recordings.length}`+ : recordings.length}+ </p>+ )}+ <SubactionHeader text={t("recordings")} />+ </div>++ <div className="flex flex-wrap flex-row items-center gap-1 justify-content-space-between min-w-full">+ <div className="input-with-string flex flex-1">+ <input+ className="input-field"+ placeholder={t("filter")}+ value={filterText}+ onChange={(e) => setFilterText(e.target.value)}/>- </IconButton>- </Tooltip>-- {/* Refresh */}- <Button- size="small"- startIcon={<RefreshIcon />}- onClick={() => fetchRecordings(true)}- disabled={isLoadingList}- sx={{ color: isDark ? '#b3b9c6' : undefined }}- >- {t('refresh')}- </Button>- </Box>- </Box>-- {/* ── Recording list ── */}- {isLoadingList ? (- <Box sx={{ display: 'flex', justifyContent: 'center', py: 4 }}>- <CircularProgress size={24} sx={{ color: ACCENT_BLUE }} />- </Box>- ) : filteredSorted.length === 0 ? (- <Typography- variant="body2"- color="text.secondary"- sx={{ textAlign: 'center', py: 4 }}- >- {recordings.length === 0- ? t('noRecordingsFound')- : 'No recordings match your filter.'}- </Typography>- ) : (- <List- dense- sx={{- flex: 1,- overflow: 'auto',- border: `1px solid ${theme.palette.divider}`,- borderRadius: 1,- '& .MuiListItemButton-root + .MuiListItemButton-root': {- borderTop: `1px solid ${theme.palette.divider}`,- },- }}- >- {filteredSorted.map((rec) => (- <RecordingRow- key={rec.path}- rec={rec}- isLoading={loadingPath === rec.path}- isAnyLoading={isLoadingRecording}- isDark={isDark}- isActive={!!activeRecordingPath && (activeRecordingPath === rec.name || activeRecordingPath === rec.path)}- onClick={() => loadRecording(rec.path)}- recordingsRootPath={rec.path.slice(0, Math.max(rec.path.lastIndexOf('/'), rec.path.lastIndexOf('\\'))) || null}+ </div>+ <select+ className="sort-select input-field"+ value={sortField}+ onChange={(e) => setSortField(e.target.value as SortField)}+ >+ {SORT_OPTIONS.map((opt) => (+ <option key={opt.value} value={opt.value}>+ {t(opt.labelKey)}+ </option>+ ))}+ </select>+ <ButtonSm+ text={sortDir === 'desc' ? '↓' : '↑'}+ onClick={toggleSortDir}+ tooltip={true}+ tooltipText={sortDir === 'desc' ? t('sortDescending') : t('sortAscending')}+ tooltipPosition="pos-bottom"/>- ))}- </List>- )}- </Box>+ <ButtonSm+ text={t("refresh")}+ onClick={() => fetchRecordings(true)}+ disabled={isLoadingList}+ iconClass="rotate-icon"+ tooltip={true}+ tooltipText={t("refresh")}+ tooltipPosition="pos-bottom"+ />+ </div>+ </div>++ {/* List */}+ {isLoadingList ? (+ <div className="flex items-center justify-center py-4">+ <span className="icon loader-icon icon-size-20" />+ </div>+ ) : filteredSorted.length === 0 ? (+ <div className="recording-warning-container flex flex-col flex-wrap p-6 m-4 text-center gap-1 items-center justify-center br-2">+ <span className="icon warning-icon icon-size-32" />+ <p className="text md text-white text-center">+ {recordings.length === 0 ? t('noRecordingsFound') : 'No recordings match your filter.'}+ </p>+ </div>+ ) : (+ <div className="recording-list flex-1 overflow-y br-2 p-1">+ {filteredSorted.map((rec) => (+ <RecordingRow+ key={rec.path}+ rec={rec}+ isLoading={loadingPath === rec.path}+ isAnyLoading={isLoadingRecording}+ isActive={!!activeRecordingPath && (activeRecordingPath === rec.name || activeRecordingPath === rec.path)}+ onClick={() => loadRecording(rec.path)}+ recordingsRootPath={rec.path.slice(0, Math.max(rec.path.lastIndexOf('/'), rec.path.lastIndexOf('\\'))) || null}+ />+ ))}+ </div>+ )}+ </div>+ </div>);};-// ----------------------------------------------------------------------------// RecordingRow — a single recording in the list-// ----------------------------------------------------------------------------interface RecordingRowProps {rec: RecordingEntry;isLoading: boolean;isAnyLoading: boolean;- isDark: boolean;isActive: boolean;onClick: () => void;recordingsRootPath: string | null;}const RecordingRow: React.FC<RecordingRowProps> = React.memo(- ({ rec, isLoading, isAnyLoading, isDark, isActive, onClick, recordingsRootPath }) => {- const theme = useTheme();+ ({ rec, isLoading, isAnyLoading, isActive, onClick, recordingsRootPath }) => {const parsedDate = parseTimestampFromName(rec.name);const { t } = useTranslation();const [expanded, setExpanded] = useState(false);@@ -678,307 +451,135 @@ const RecordingRow: React.FC<RecordingRowProps> = React.memo(};return (- <ListItem- disablePadding- sx={{- flexDirection: 'column',- alignItems: 'stretch',- ...(isActive && {- backgroundColor: isDark ? 'rgba(41,182,246,0.12)' : 'rgba(41,182,246,0.10)',- borderLeft: `3px solid ${ACCENT_BLUE}`,- }),- }}+ <div+ className={clsx(+ "br-1 recording-row flex text-white flex-col flex-start",+ isAnyLoading && !isLoading && "recording-row-disabled",+ )}+ style={isActive ? {+ backgroundColor: 'rgba(41,182,246,0.12)',+ borderLeft: '3px solid var(--color-info)',+ } : undefined}>- <Box sx={{display: 'flex', alignItems: 'stretch'}}>- <ListItemButton- onClick={onClick}- disabled={isAnyLoading}- sx={{- py: 1.25,- px: 2,- flex: 1,- opacity: isAnyLoading && !isLoading ? 0.5 : 1,- }}- >- {/* Folder icon or spinner */}- <ListItemIcon sx={{ minWidth: 36 }}>- {isLoading ? (- <CircularProgress size={20} sx={{ color: ACCENT_BLUE }} />- ) : (- <FolderIcon- fontSize="small"- sx={{- color: isDark- ? ACCENT_BLUE- : theme.palette.primary.main,- }}- />- )}- </ListItemIcon>-- <ListItemText- disableTypography- primary={- <Box sx={{display: 'flex', alignItems: 'center', gap: 1, mb: 0.5}}>- <Typography- variant="body2"- sx={{- fontFamily: MONO_FONT,+ <div className="flex flex-row items-center">+ <button+ className="flex flex-row flex-1 items-center gap-1 text-left"+ onClick={onClick}+ disabled={isAnyLoading}+ style={{+ background: 'none',+ border: 'none',+ cursor: 'pointer',+ padding: '10px 16px',+ opacity: isAnyLoading && !isLoading ? 0.5 : 1,+ }}+ >+ <div className="flex-shrink-0" style={{minWidth: 36}}>+ {isLoading+ ? <span className="icon loader-icon icon-size-20" style={{color: 'var(--color-info)'}}/>+ : <span className="icon load-icon icon-size-20" style={{color: 'var(--color-info)'}}/>}+ </div>++ <div className="flex-1">+ <div className="flex flex-row items-center gap-1 mb-1">+ <p className="text md text-white recording-name m-0" style={{fontWeight: 600,- fontSize: '0.85rem',- color: isActive- ? (isDark ? ACCENT_BLUE : theme.palette.primary.main)- : theme.palette.text.primary,- }}- >- {rec.name}- </Typography>- {isActive && (- <Chip- size="small"- icon={<PlayArrowIcon sx={{fontSize: '12px !important'}}/>}- label="loaded in playback"- sx={{- height: 18,- fontSize: '0.65rem',- fontFamily: MONO_FONT,- backgroundColor: isDark ? `${ACCENT_BLUE}22` : 'rgba(41,182,246,0.15)',- color: isDark ? ACCENT_BLUE : theme.palette.primary.main,- border: `1px solid ${isDark ? `${ACCENT_BLUE}55` : 'rgba(41,182,246,0.4)'}`,- '& .MuiChip-icon': {color: 'inherit'},- '& .MuiChip-label': {px: 0.75},- }}- />- )}- {isLegacyLayout && (- <Tooltip- title={- <Box sx={{fontFamily: MONO_FONT, fontSize: '0.7rem'}}>- <div>Legacy folder layout (legacy_v1)</div>- {legacyMarkers.length > 0 && (- <ul style={{margin: '4px 0 0 16px', padding: 0}}>- {legacyMarkers.map((marker) => (- <li key={marker}>{marker}</li>- ))}- </ul>- )}- </Box>- }- arrow- >- <Chip- size="small"- label="Legacy"- sx={{- height: 18,- fontSize: '0.65rem',- fontFamily: MONO_FONT,- backgroundColor: isDark ? 'rgba(255,167,38,0.18)' : 'rgba(255,167,38,0.15)',- color: isDark ? '#ffb74d' : '#e65100',- border: `1px solid ${isDark ? 'rgba(255,167,38,0.5)' : 'rgba(230,81,0,0.4)'}`,- '& .MuiChip-label': {px: 0.75},- }}- />- </Tooltip>- )}- </Box>- }- secondary={- <Box- sx={{- display: 'flex',- flexWrap: 'wrap',- gap: 1.5,- alignItems: 'center',- }}- >- {/* Camera count */}- <StatBadge- icon={- <VideocamIcon- sx={{- fontSize: 14,- color: theme.palette.text.secondary,- }}- />- }- label={`${rec.video_count} cam${rec.video_count !== 1 ? 's' : ''}`}- tooltip="Camera streams"- />+ color: isActive ? 'var(--color-info)' : undefined,+ }}>+ {rec.name}+ </p>+ {isActive && (+ <span className="tag text sm" style={{fontSize: '0.65rem', backgroundColor: 'rgba(41,182,246,0.13)', color: 'var(--color-info)', border: '1px solid rgba(41,182,246,0.33)'}}>+ loaded in playback+ </span>+ )}+ {isLegacyLayout && (+ <span+ className="tag text sm"+ title={`Legacy folder layout (legacy_v1)${legacyMarkers.length > 0 ? ': ' + legacyMarkers.join(', ') : ''}`}+ style={{fontSize: '0.65rem', backgroundColor: 'rgba(255,167,38,0.18)', color: '#ffb74d', border: '1px solid rgba(255,167,38,0.5)'}}+ >+ Legacy+ </span>+ )}+ </div>- {/* Size */}- {rec.total_size_bytes != null &&- rec.total_size_bytes > 0 && (- <StatBadge- icon={- <StorageIcon- sx={{- fontSize: 14,- color: theme.palette.text- .secondary,- }}- />- }- label={formatBytes(rec.total_size_bytes)}- tooltip="Total size on disk"- />+ <div className="flex flex-row items-center flex-wrap gap-3">+ <span className="text sm text-gray" title="Camera streams">+ {`${rec.video_count} cam${rec.video_count !== 1 ? 's' : ''}`}+ </span>++ {rec.total_size_bytes != null && rec.total_size_bytes > 0 && (+ <span className="text sm text-gray" title="Total size on disk">+ {formatBytes(rec.total_size_bytes)}+ </span>+ )}++ {rec.duration_seconds != null && rec.duration_seconds > 0 && (+ <span className="text sm text-gray" title="Recording duration">+ {formatDuration(rec.duration_seconds)}+ </span>)}- {/* Duration */}- {rec.duration_seconds != null &&- rec.duration_seconds > 0 && (- <StatBadge- icon={- <AccessTimeIcon- sx={{- fontSize: 14,- color: theme.palette.text- .secondary,- }}- />- }- label={formatDuration(rec.duration_seconds)}- tooltip="Recording duration"- />+ {rec.total_frames != null && rec.total_frames > 0 && (+ <span+ title={t("frameCountPerCamera")}+ className="camera-config-chip text-gray"+ >+ {`${rec.total_frames.toLocaleString()} frames`}+ </span>)}- {/* Frame count chip */}- {rec.total_frames != null && rec.total_frames > 0 && (- <Tooltip title={t("frameCountPerCamera")}>- <Chip- label={`${rec.total_frames.toLocaleString()} frames`}- size="small"- variant="outlined"- sx={{- height: 18,- fontSize: '0.65rem',- fontFamily: MONO_FONT,- '& .MuiChip-label': { px: 0.75 },- borderColor: isDark- ? `${ACCENT_GREEN}44`- : undefined,- color: isDark- ? ACCENT_GREEN- : undefined,- }}- />- </Tooltip>- )}-- {/* FPS chip */}- {rec.fps != null && rec.fps > 0 && (- <Tooltip title={t("recordingCaptureFps")}>- <Chip- label={`${rec.fps} fps`}- size="small"- variant="outlined"- sx={{- height: 18,- fontSize: '0.65rem',- fontFamily: MONO_FONT,- '& .MuiChip-label': { px: 0.75 },- borderColor: isDark- ? `${ACCENT_BLUE}44`- : undefined,- color: isDark- ? ACCENT_BLUE- : theme.palette.info.main,- }}- />- </Tooltip>- )}-- {/* Relative time */}- {parsedDate && (- <Tooltip title={parsedDate.toLocaleString()}>- <Typography- variant="caption"- sx={{- color: theme.palette.text.disabled,- fontStyle: 'italic',- }}+ {rec.fps != null && rec.fps > 0 && (+ <span+ title={t("recordingCaptureFps")}+ className="camera-config-chip text-gray">+ {`${rec.fps} fps`}+ </span>+ )}++ {parsedDate && (+ <span title={parsedDate.toLocaleString()} className="text sm text-gray" style={{fontStyle: 'italic'}}>{formatRelativeTime(parsedDate)}- </Typography>- </Tooltip>- )}-- {/* Status summary */}- {summary && (- <Tooltip- title={- ready- ? 'All pipeline stages complete — ready for Blender'- : `${stagesComplete}/${stagesTotal} pipeline stages complete`- }- >- <Chip- size="small"- label={- ready- ? 'Blender ready'- : `${stagesComplete}/${stagesTotal} stages`- }- color={ready ? 'success' : 'default'}- icon={ready ? <CheckCircleIcon/> : undefined}- variant={ready ? 'filled' : 'outlined'}- sx={{height: 18, fontSize: '0.65rem', '& .MuiChip-label': {px: 0.75}}}- />- </Tooltip>- )}- </Box>- }- />- </ListItemButton>- <Tooltip title={expanded ? 'Hide folder detail' : 'Show folder detail'}>+ </span>+ )}++ {summary && (+ <span+ title={ready ? 'All pipeline stages complete — ready for Blender' : `${stagesComplete}/${stagesTotal} pipeline stages complete`}+ className="tag text sm"+ style={{fontSize: '0.65rem', color: ready ? 'var(--color-success)' : undefined}}+ >+ {ready ? 'Blender ready' : `${stagesComplete}/${stagesTotal} stages`}+ </span>+ )}+ </div>+ </div>+ </button>+<IconButton- size="small"+ title={expanded ? 'Hide folder detail' : 'Show folder detail'}+ icon="expand-icon"+ className="icon-size-25 mr-2"onClick={toggleExpand}- sx={{- mr: 1,- alignSelf: 'center',- transform: expanded ? 'rotate(180deg)' : 'rotate(0deg)',- transition: 'transform 0.2s ease',- }}- >- <ExpandMoreIcon fontSize="small"/>- </IconButton>- </Tooltip>- </Box>- <Collapse in={expanded} unmountOnExit>- <Box sx={{px: 2, pb: 2}}>+ style={{transform: expanded ? 'rotate(180deg)' : 'rotate(0deg)', transition: 'transform 0.2s ease', alignSelf: 'center'}}+ />+ </div>++ {expanded && (+ <div className="pl-4 pr-4 pb-4"><RecordingStatusPanelstatus={detailedStatus}isLoading={statusLoading}error={statusError}onRefresh={refreshStatus}/>- </Box>- </Collapse>- </ListItem>+ </div>+ )}+ </div>);},);RecordingRow.displayName = 'RecordingRow';--// ----------------------------------------------------------------------------// StatBadge — tiny icon + label used in the secondary line-// -----------------------------------------------------------------------------interface StatBadgeProps {- icon: React.ReactNode;- label: string;- tooltip: string;-}--const StatBadge: React.FC<StatBadgeProps> = ({ icon, label, tooltip }) => (- <Tooltip title={tooltip}>- <Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>- {icon}- <Typography variant="caption" color="text.secondary">- {label}- </Typography>- </Box>- </Tooltip>-);diff --git a/freemocap-ui/src/components/playback/RecordingBrowserSection.tsx b/freemocap-ui/src/components/playback/RecordingBrowserSection.tsxindex fbad6d5d..57297690 100644--- a/freemocap-ui/src/components/playback/RecordingBrowserSection.tsx+++ b/freemocap-ui/src/components/playback/RecordingBrowserSection.tsx@@ -1,25 +1,17 @@import React from 'react';-import VideoLibraryIcon from '@mui/icons-material/VideoLibrary';-import {CollapsibleSidebarSection} from '@/components/common/CollapsibleSidebarSection';import {RecordingBrowser} from './RecordingBrowser';import {usePlaybackContext} from './PlaybackContext';-import {useTranslation} from 'react-i18next';export const RecordingBrowserSection: React.FC = () => {- const {t} = useTranslation();const ctx = usePlaybackContext();if (!ctx) return null;return (- <CollapsibleSidebarSection- icon={<VideoLibraryIcon sx={{fontSize: 20}}/>}- title={t('recordings')}- defaultExpanded- >+ <div className="recording-browser-sidebar-panel flex flex-col flex-1 bg-middark br-2 p-1 min-h-0"><RecordingBrowseronRecordingLoaded={ctx.onRecordingLoaded}/>- </CollapsibleSidebarSection>+ </div>);};diff --git a/freemocap-ui/src/components/playback/SyncedVideoPlayer.tsx b/freemocap-ui/src/components/playback/SyncedVideoPlayer.tsxindex 9069fcbe..a64df297 100644--- a/freemocap-ui/src/components/playback/SyncedVideoPlayer.tsx+++ b/freemocap-ui/src/components/playback/SyncedVideoPlayer.tsx@@ -1,5 +1,4 @@import React, {useMemo} from 'react';-import {Box, Typography, useTheme} from '@mui/material';import ReactGridLayout, {noCompactor} from 'react-grid-layout';import 'react-grid-layout/css/styles.css';import 'react-resizable/css/styles.css';@@ -21,11 +20,8 @@ export interface PlaybackSettings {interface SyncedVideoPlayerProps {videos: VideoEntry[];- /** null = auto-optimize, number = manual column count */manualColumns: number | null;- /** Increment to force layout reset */resetKey: number;- /** Playback controller from usePlaybackController */controller: PlaybackController;}@@ -55,17 +51,12 @@ function formatSeconds(frame: number, fps: number): string {return `${(frame / fps).toFixed(3)}s`;}-/**- * Pure video grid renderer. All playback state is managed externally- * via the PlaybackController from usePlaybackController.- */export const SyncedVideoPlayer: React.FC<SyncedVideoPlayerProps> = ({videos,manualColumns,resetKey,controller,}) => {- const theme = useTheme();const {t} = useTranslation();const {@@ -75,16 +66,15 @@ export const SyncedVideoPlayer: React.FC<SyncedVideoPlayerProps> = ({settings,allReady,videosReady,+ erroredVideos,setVideoRef,setFrameOverlayRef,setTimeOverlayRef,handleLoadedMetadata,+ handleVideoError,frameTimestampsRef,} = controller;- // ------------------------------------------------------------------------ // Grid layout- // -----------------------------------------------------------------------const videoIds = useMemo(() => videos.map(v => v.videoId), [videos]);const {@@ -101,17 +91,15 @@ export const SyncedVideoPlayer: React.FC<SyncedVideoPlayerProps> = ({measureParent: true,});- // ------------------------------------------------------------------------ // Render- // -----------------------------------------------------------------------if (videos.length === 0) {return (- <Box+ <divref={containerRef}- sx={{display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%', color: 'text.secondary'}}+ className="flex items-center justify-center h-full"+ style={{color: 'var(--color-text-secondary)'}}>- <Typography>{t("noVideosLoaded")}</Typography>- </Box>+ <p className="text md text-gray">{t("noVideosLoaded")}</p>+ </div>);}@@ -142,23 +130,10 @@ export const SyncedVideoPlayer: React.FC<SyncedVideoPlayerProps> = ({}return (- <Box+ <divref={containerRef}- sx={{- position: 'relative',- width: '100%',- height: '100%',- overflow: 'hidden',- backgroundColor: '#0a0a0a',- '& .react-grid-placeholder': {- backgroundColor: 'primary.main',- opacity: 0.15,- borderRadius: '4px',- },- '& .react-resizable-handle': {- zIndex: 10,- },- }}+ className="br-2 pos-rel overflow-hidden w-full h-full"+><ReactGridLayoutwidth={width}@@ -170,13 +145,10 @@ export const SyncedVideoPlayer: React.FC<SyncedVideoPlayerProps> = ({{...gridHandlers}>{videos.map((video) => (- <Box+ <divkey={video.videoId}- sx={{- overflow: 'hidden',- borderRadius: '4px',- border: '1px solid rgba(255,255,255,0.15)',- }}+ className="video-feed-tile overflow-hidden br-1"+><ZoomableVideoTilevideoId={video.videoId}@@ -187,30 +159,22 @@ export const SyncedVideoPlayer: React.FC<SyncedVideoPlayerProps> = ({initialFrameText={initialFrameText}initialTimeText={initialTimeText}timestampsAreReal={timestampsAreReal}+ hasError={erroredVideos.has(video.videoId)}setVideoRef={setVideoRef}setFrameOverlayRef={setFrameOverlayRef}setTimeOverlayRef={setTimeOverlayRef}handleLoadedMetadata={handleLoadedMetadata}+ handleVideoError={handleVideoError}/>- </Box>+ </div>))}</ReactGridLayout>{!allReady && videos.length > 0 && (- <Box sx={{- position: 'absolute',- bottom: 0,- left: 0,- right: 0,- zIndex: 10,- textAlign: 'center',- py: 0.5,- backgroundColor: theme.palette.warning.dark,- color: '#fff',- }}>- <Typography variant="caption">{t("loadingVideos", {ready: videosReady, total: videos.length})}</Typography>- </Box>+ <div className="pos-abs bottom-0 left-0 right-0 z-10 text-center">+ <p className="text sm m-0">{t("loadingVideos", {ready: videosReady, total: videos.length})}</p>+ </div>)}- </Box>+ </div>);};diff --git a/freemocap-ui/src/components/playback/ZoomableVideoTile.tsx b/freemocap-ui/src/components/playback/ZoomableVideoTile.tsxindex 9d4903e5..d84c7238 100644--- a/freemocap-ui/src/components/playback/ZoomableVideoTile.tsx+++ b/freemocap-ui/src/components/playback/ZoomableVideoTile.tsx@@ -1,5 +1,4 @@import React, {useRef} from 'react';-import {Box, Tooltip} from '@mui/material';import {useTranslation} from 'react-i18next';import {useZoomTransform} from '@/hooks/useZoomTransform';import type {PlaybackController} from './usePlaybackController';@@ -13,19 +12,14 @@ interface ZoomableVideoTileProps {initialFrameText: string;initialTimeText: string;timestampsAreReal: boolean;+ hasError: boolean;setVideoRef: PlaybackController['setVideoRef'];setFrameOverlayRef: PlaybackController['setFrameOverlayRef'];setTimeOverlayRef: PlaybackController['setTimeOverlayRef'];handleLoadedMetadata: PlaybackController['handleLoadedMetadata'];+ handleVideoError: PlaybackController['handleVideoError'];}-/**- * Renders a single video tile with scroll-to-zoom, drag-to-pan,- * and pinch-to-zoom. Can be used as a direct child of ReactGridLayout- * because the root div has no ref — GridItem's cloneElement safely- * adds its own ref for drag/resize without clobbering containerRef.- * The inner div handles zoom coordinate calculations.- */export const ZoomableVideoTile: React.FC<ZoomableVideoTileProps> = ({videoId,streamUrl,@@ -34,10 +28,12 @@ export const ZoomableVideoTile: React.FC<ZoomableVideoTileProps> = ({initialFrameText,initialTimeText,timestampsAreReal,+ hasError,setVideoRef,setFrameOverlayRef,setTimeOverlayRef,handleLoadedMetadata,+ handleVideoError,}) => {const containerRef = useRef<HTMLDivElement>(null);const { zoomWrapperStyle, cursor, containerHandlers } = useZoomTransform(containerRef);@@ -45,12 +41,9 @@ export const ZoomableVideoTile: React.FC<ZoomableVideoTileProps> = ({return (<div+ className="w-full h-full overflow-hidden pos-rel"style={{- width: '100%',- height: '100%',- overflow: 'hidden',backgroundColor: '#000',- position: 'relative',cursor,}}{...containerHandlers}@@ -62,7 +55,8 @@ export const ZoomableVideoTile: React.FC<ZoomableVideoTileProps> = ({preload="auto"mutedplaysInline- style={{ width: '100%', height: '100%', objectFit: 'contain', display: 'block' }}+ className="w-full h-full block"+ style={{ objectFit: 'contain' }}onLoadedMetadata={handleLoadedMetadata}onError={(e) => {const v = e.currentTarget as HTMLVideoElement;@@ -71,60 +65,66 @@ export const ZoomableVideoTile: React.FC<ZoomableVideoTileProps> = ({`[playback] video error for ${videoId}: ` +`code=${err?.code} message="${err?.message ?? 'unknown'}" src=${v.src}`);+ handleVideoError(videoId);}}/></div>+ {hasError && (+ <div className="pos-abs inset-0 flex flex-col items-center justify-center gap-1 p-4 text-center z-5" style={{+ backgroundColor: 'rgba(0, 0, 0, 0.85)',+ color: 'var(--color-error, #ff6b6b)',+ }}>+ <span className="text sm" style={{fontWeight: 600}}>{t("videoPlaybackError")}</span>+ <span className="text xs" style={{color: '#aaa', wordBreak: 'break-all'}}>{filename}</span>+ </div>+ )}+{showOverlays && (<>- {/* FRAME NUMBER */}- <Box+ <divref={(el: HTMLElement | null) => setFrameOverlayRef(videoId, el)}- sx={{- position: 'absolute', top: 6, right: 6,+ className="pos-abs top-6 right-6 z-10 text-center"+ style={{backgroundColor: 'rgba(0, 0, 0, 0.88)',color: '#00ff88',- px: 1.25, py: 0.4, borderRadius: '4px',+ padding: '4px 10px', borderRadius: '4px',fontSize: '14px', fontWeight: 700,fontFamily: '"JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", monospace',letterSpacing: '0.5px', lineHeight: 1,border: '1px solid rgba(0, 255, 136, 0.3)',textShadow: '0 0 6px rgba(0, 255, 136, 0.4)',- minWidth: 60, textAlign: 'center',- userSelect: 'none', pointerEvents: 'none', zIndex: 10,+ minWidth: 60,+ userSelect: 'none', pointerEvents: 'none',}}>{initialFrameText}- </Box>+ </div>- {/* CAMERA ID */}- <Box sx={{- position: 'absolute', bottom: 6, left: 6,+ <div className="pos-abs bottom-6 left-6 z-10" style={{backgroundColor: 'rgba(0, 0, 0, 0.75)',- color: '#ccc', px: 1, py: 0.25, borderRadius: '3px',+ color: '#ccc', padding: '2px 8px', borderRadius: '3px',fontSize: '11px',fontFamily: '"JetBrains Mono", "Fira Code", monospace',- userSelect: 'none', pointerEvents: 'none', zIndex: 10,+ userSelect: 'none', pointerEvents: 'none',}}>{filename}- </Box>+ </div>- {/* TIMECODE */}- <Tooltip title={timestampsAreReal ? t("timestampFromRecording") : t("estimatedFromFrameNumber")} placement="top-end">- <Box- ref={(el: HTMLElement | null) => setTimeOverlayRef(videoId, el)}- sx={{- position: 'absolute', bottom: 6, right: 6,- backgroundColor: 'rgba(0, 0, 0, 0.75)',- color: '#aaa', px: 0.75, py: 0.25, borderRadius: '3px',- fontSize: '10px',- fontFamily: '"JetBrains Mono", "Fira Code", monospace',- userSelect: 'none', zIndex: 10,- }}- >- {initialTimeText}- </Box>- </Tooltip>+ <div+ ref={(el: HTMLElement | null) => setTimeOverlayRef(videoId, el)}+ title={timestampsAreReal ? t("timestampFromRecording") : t("estimatedFromFrameNumber")}+ className="pos-abs bottom-6 right-6 z-10"+ style={{+ backgroundColor: 'rgba(0, 0, 0, 0.75)',+ color: '#aaa', padding: '2px 6px', borderRadius: '3px',+ fontSize: '10px',+ fontFamily: '"JetBrains Mono", "Fira Code", monospace',+ userSelect: 'none',+ }}+ >+ {initialTimeText}+ </div></>)}</div>diff --git a/freemocap-ui/src/components/playback/usePlaybackController.ts b/freemocap-ui/src/components/playback/usePlaybackController.tsindex cfb55b02..fb4255bb 100644--- a/freemocap-ui/src/components/playback/usePlaybackController.ts+++ b/freemocap-ui/src/components/playback/usePlaybackController.ts@@ -92,6 +92,7 @@ export function usePlaybackController({});const [isLooping, setIsLooping] = useState(false);const isLoopingRef = useRef(false);+ const [erroredVideos, setErroredVideos] = useState<Set<string>>(new Set());const fps = recordingFps || 30;const allReady = videosReady >= videos.length && videos.length > 0;@@ -105,19 +106,26 @@ export function usePlaybackController({if (recordingFps && recordingFps > 0) fpsRef.current = recordingFps;}, [recordingFps]);- // Track the previous set of video IDs so we only reset state when the- // actual composition changes. The `videos` prop is a fresh array on every- // render (from loadedVideos.map() in PlaybackPage), so we can't use- // array reference equality.+ // Track the previous set of video IDs+URLs so we reset state whenever the+ // recording changes — even when the same cameras are used across recordings.+ // The `videos` prop is a fresh array on every render (from loadedVideos.map()+ // in PlaybackPage), so we can't use array reference equality.const prevVideoIdsRef = useRef<string>('');- // Elect leader and reset per-video-set state only when video IDs change+ // Elect leader and reset per-video-set state when video IDs or stream URLs changeuseEffect(() => {- const currentIds = videos.map(v => v.videoId).sort().join('|');+ const currentIds = videos.map(v => `${v.videoId}::${v.streamUrl}`).sort().join('|');if (currentIds !== prevVideoIdsRef.current) {prevVideoIdsRef.current = currentIds;+ isPlayingRef.current = false;+ setIsPlaying(false);setVideosReady(0);+ setErroredVideos(new Set());+ setTotalFrames(0);+ setDuration(0);+ setCurrentFrame(0);totalFramesRef.current = 0;+ currentFrameRef.current = 0;didSeekInitialRef.current = false;}leaderIdRef.current = videos.length > 0 ? videos[0].videoId : null;@@ -282,6 +290,18 @@ export function usePlaybackController({setVideosReady((prev) => prev + 1);}, []);+ // Error handler — called by video elements via onError. Counts the video as+ // "ready" (so the loading gate doesn't hang forever) and records it as failed.+ const handleVideoError = useCallback((videoId: string) => {+ setErroredVideos((prev) => {+ if (prev.has(videoId)) return prev;+ const next = new Set(prev);+ next.add(videoId);+ return next;+ });+ setVideosReady((prev) => prev + 1);+ }, []);+// Playback commandsconst handlePlayPause = useCallback(() => {if (isPlayingRef.current) {@@ -418,6 +438,7 @@ export function usePlaybackController({isLooping,allReady,videosReady,+ erroredVideos,// SetterssetSettings,@@ -432,6 +453,7 @@ export function usePlaybackController({handleSeekToEnd,handleToggleLoop,handleLoadedMetadata,+ handleVideoError,// Ref registrationsetVideoRef,diff --git a/freemocap-ui/src/components/tabbed-bottom-panel/TabbedBottomLeftPanel.tsx b/freemocap-ui/src/components/tabbed-bottom-panel/TabbedBottomLeftPanel.tsxdeleted file mode 100644index ea9607f1..00000000--- a/freemocap-ui/src/components/tabbed-bottom-panel/TabbedBottomLeftPanel.tsx+++ /dev/null@@ -1,43 +0,0 @@-import Box from '@mui/material/Box';-import FramerateViewerPanel from '@/components/framerate-viewer/FrameRateViewer';-import PipelineProgressPanel from '@/components/pipeline-progress/PipelineProgressPanel';-import {TabbedContent} from '@/components/ui-components/TabbedContent';-import {useAppSelector} from '@/store/hooks';-import {selectActiveBasePipelineCount} from '@/store/slices/pipelines';--function PipelineTabLabel() {- const activeCount = useAppSelector(selectActiveBasePipelineCount);- return (- <Box sx={{display: 'flex', alignItems: 'center', gap: 0.75}}>- Pipelines- {activeCount > 0 && (- <Box- sx={{- width: 7,- height: 7,- borderRadius: '50%',- bgcolor: 'primary.main',- flexShrink: 0,- animation: 'fmcPulse 1.4s ease-in-out infinite',- '@keyframes fmcPulse': {- '0%, 100%': {opacity: 1, transform: 'scale(1)'},- '50%': {opacity: 0.3, transform: 'scale(0.7)'},- },- }}- />- )}- </Box>- );-}--export default function TabbedBottomLeftPanel({isCollapsed = false}: { isCollapsed?: boolean }) {- if (isCollapsed) {- return <FramerateViewerPanel isCollapsed={true}/>;- }- return (- <TabbedContent tabs={[- {label: 'Framerate', content: <FramerateViewerPanel/>},- // {label: <PipelineTabLabel/>, content: <PipelineProgressPanel/>},- ]}/>- );-}diff --git a/freemocap-ui/src/components/ui-components/ButtonCard.tsx b/freemocap-ui/src/components/ui-components/ButtonCard.tsxnew file mode 100644index 00000000..cc53475d--- /dev/null+++ b/freemocap-ui/src/components/ui-components/ButtonCard.tsx@@ -0,0 +1,22 @@+import React from "react";++interface ButtonCardProps {+ text: string;+ iconClass: string;+ onClick: () => void;+ className?: string;+}++const ButtonCard: React.FC<ButtonCardProps> = ({ text, iconClass, onClick, className = "" }) => {+ return (+ <div+ className={`button items-center text-nowrap flex-col justify-content-space-between p-3 button card bg-dark flex-1 br-2 flex items-center justify-center text-white ${className}`}+ onClick={onClick}+ >+ <span className={`icon m-3 ${iconClass}`} />+ <p className="text-center text bg">{text}</p>+ </div>+ );+};++export default ButtonCard;diff --git a/freemocap-ui/src/components/ui-components/ButtonSm.tsx b/freemocap-ui/src/components/ui-components/ButtonSm.tsxnew file mode 100644index 00000000..c71b60f7--- /dev/null+++ b/freemocap-ui/src/components/ui-components/ButtonSm.tsx@@ -0,0 +1,85 @@+import React from "react";+import clsx from "clsx";+import { TooltipPosition } from "./types";++interface ButtonSmProps {+ iconClass?: string;+ buttonType?: string;+ text: string;+ onClick?: () => void;+ rightSideIcon?: string;+ textColor?: string;+ title?: string;+ disabled?: boolean;+ className?: string;+ textClass?: string;+ tooltip?: boolean;+ tooltipText?: string;+ tooltipPosition?: TooltipPosition;+}++const ButtonSm: React.FC<ButtonSmProps> = ({+ iconClass = "",+ buttonType = "",+ text,+ onClick = () => {},+ rightSideIcon = "",+ textColor = "text-gray",+ title,+ disabled = false,+ className = "",+ textClass = "",+ tooltip = false,+ tooltipText = "",+ tooltipPosition = "pos-bottom",+}) => {+ const innerContent = (+ <>+ {iconClass && <span className={clsx("icon icon-size-20", iconClass)} />}+ <p className={clsx(textColor, "text-nowrap text bg text-align-left", textClass)}>+ {text}+ </p>+ </>+ );++ const tooltipEl = tooltip && tooltipText && (+ <div className={clsx("tooltip-container elevated-sharp", tooltipPosition, "p-01 br-2 bg-dark")}>+ <div className="tooltip-inner br-1 pl-2 pr-2 pt-1 pb-1 border-1 border-mid-black border-solid">+ <p className="text-white text bg">{tooltipText}</p>+ </div>+ </div>+ );++ if (disabled && tooltip && tooltipText) {+ return (+ <div+ className={clsx("button-sm-group pos-rel fit-content flex-inline")}+ style={{ opacity: 0.5, cursor: "not-allowed" }}+ >+ <button+ disabled+ title={title}+ className={clsx("gap-1 br-1 button items-center sm fit-content flex-inline text-left items-center text-black", buttonType, rightSideIcon, className)}+ style={{ pointerEvents: "none" }}+ >+ {innerContent}+ </button>+ {tooltipEl}+ </div>+ );+ }++ return (+ <button+ onClick={onClick}+ title={title}+ disabled={disabled}+ className={clsx("button-sm-group gap-1 br-1 button items-center sm fit-content flex-inline text-left items-center text-black", buttonType, rightSideIcon, className)}+ >+ {innerContent}+ {tooltipEl}+ </button>+ );+};++export default ButtonSm;diff --git a/freemocap-ui/src/components/ui-components/Checkbox.tsx b/freemocap-ui/src/components/ui-components/Checkbox.tsxnew file mode 100644index 00000000..e86225aa--- /dev/null+++ b/freemocap-ui/src/components/ui-components/Checkbox.tsx@@ -0,0 +1,52 @@+import React from "react";++interface CheckboxProps {+ label: string;+ checked?: boolean;+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;+ inputClassName?: string;+ className?: string;+ disabled?: boolean;+}++const Checkbox: React.FC<CheckboxProps> = ({+ label,+ checked = false,+ onChange,+ inputClassName = "",+ className = "",+ disabled = false,+}) => {+ return (+ <label+ className={`+ checkbox+ text-nowrap+ button+ p-2+ select-none+ cursor-pointer+ ${className}+ ${disabled ? "opacity-50 cursor-not-allowed" : ""}+ `}+ >+ <input+ type="checkbox"+ checked={checked}+ onChange={onChange}+ disabled={disabled}+ className={`+ button+ flex-shrink-0+ ${inputClassName}+ `.trim()}+ />++ <p className="text-gray text md text-align-left">+ {label}+ </p>+ </label>+ );+};++export default Checkbox;diff --git a/freemocap-ui/src/components/ui-components/DropdownButton.tsx b/freemocap-ui/src/components/ui-components/DropdownButton.tsxnew file mode 100644index 00000000..9e9dc4d3--- /dev/null+++ b/freemocap-ui/src/components/ui-components/DropdownButton.tsx@@ -0,0 +1,64 @@+import React, { useState, useEffect, useRef, ReactNode } from "react";+import clsx from "clsx";+import ButtonSm from "./ButtonSm";++interface DropdownButtonProps {+ buttonProps: {+ text: string;+ iconClass?: string;+ rightSideIcon?: string;+ textColor?: string;+ buttonType?: string;+ className?: string;+ dropdownClassName?: string; // Changed from DropdownclassName to dropdownClassName+ onClick?: () => void;+ };+ dropdownItems?: ReactNode;+ containerClassName?: string;+ dropdownClassName?: string; // Added proper prop at component level+}++export default function DropdownButton({+ buttonProps,+ dropdownItems,+ dropdownClassName, // Changed from DropdownclassName to dropdownClassName+ containerClassName,+}: DropdownButtonProps) {+ const [open, setOpen] = useState(false);+ const buttonRef = useRef<HTMLDivElement>(null);+ const popupRef = useRef<HTMLDivElement>(null);++ useEffect(() => {+ if (!open) return;+ function handleClickOutside(event: MouseEvent) {+ if (+ popupRef.current && !popupRef.current.contains(event.target as Node) &&+ buttonRef.current && !buttonRef.current.contains(event.target as Node)+ ) {+ setOpen(false);+ }+ }+ document.addEventListener("mousedown", handleClickOutside);+ return () => document.removeEventListener("mousedown", handleClickOutside);+ }, [open]);++ const handleButtonClick = () => {+ setOpen((prev) => !prev);+ buttonProps.onClick?.();+ };++ return (+ <div ref={buttonRef} className={clsx("flex flex-row w-full pos-rel", containerClassName)}>+ <ButtonSm {...buttonProps} onClick={handleButtonClick} />++ {open && (+ <div+ ref={popupRef}+ className={clsx("pos-abs z-2 left-0 top-30 w-full dropdown-container flex flex-row reveal slide-down elevated-sharp dropdown-container border-1 border-black bg-middark br-2 flex flex-col gap-1 p-1", dropdownClassName)}+ >+ {dropdownItems}+ </div>+ )}+ </div>+ );+}\ No newline at end of filediff --git a/freemocap-ui/src/components/ui-components/Footer.tsx b/freemocap-ui/src/components/ui-components/Footer.tsxindex 632e0557..e8100f3b 100644--- a/freemocap-ui/src/components/ui-components/Footer.tsx+++ b/freemocap-ui/src/components/ui-components/Footer.tsx@@ -1,30 +1,21 @@-import Typography from "@mui/material/Typography";-import Link from "@mui/material/Link";import * as React from "react";-import {useTheme} from "@mui/material";import {useTranslation} from "react-i18next";import {EXTERNAL_URLS} from "@/constants/external-urls";export const Footer = function () {- const theme = useTheme();const {t} = useTranslation();return (- <Typography- variant="body2"- color={theme.palette.mode === 'dark' ? "rgba(255,255,255,0.5)" : "rgba(0,0,0,0.45)"}- align="center"- >+ <p className="text sm text-gray text-center">{t('footerWith') + ' '}- <Link color="inherit" href={EXTERNAL_URLS.GITHUB_ORG} target="_blank" rel="noopener noreferrer"- sx={{display: 'inline-flex', alignItems: 'center', textDecoration: 'none'}}>+ <a href={EXTERNAL_URLS.GITHUB_ORG} target="_blank" rel="noopener noreferrer">❤️- </Link>{' ' + t('footerFrom') + ' '}- <Link color="inherit" href={EXTERNAL_URLS.GITHUB_ORG} target="_blank" rel="noopener noreferrer"- sx={{display: 'inline-flex', alignItems: 'center', textDecoration: 'none', '&:hover': { textDecoration: 'underline' }}}>+ </a>+ {' ' + t('footerFrom') + ' '}+ <a href={EXTERNAL_URLS.GITHUB_ORG} target="_blank" rel="noopener noreferrer">{t('footerOrgName')}- </Link>{' '}- {new Date().getFullYear()}- </Typography>+ </a>+ {' '}{new Date().getFullYear()}+ </p>);}diff --git a/freemocap-ui/src/components/ui-components/GridSettingsOverlay.tsx b/freemocap-ui/src/components/ui-components/GridSettingsOverlay.tsxnew file mode 100644index 00000000..87bb9994--- /dev/null+++ b/freemocap-ui/src/components/ui-components/GridSettingsOverlay.tsx@@ -0,0 +1,169 @@+import React, { useState } from "react";+import { useServer } from "@/services/server/ServerContextProvider";+import { useTranslation } from "react-i18next";+import type {+ CameraSettings,+ LayoutDirection,+} from "@/pages/StreamingViewPage";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import ValueSelector from "@/components/ui-components/ValueSelector";+import IconButton from "@/components/ui-components/IconButton";++interface GridSettingsOverlayProps {+ settings: CameraSettings;+ onSettingsChange: (partial: Partial<CameraSettings>) => void;+}++export const GridSettingsOverlay: React.FC<GridSettingsOverlayProps> = ({+ settings,+ onSettingsChange,+}) => {+ const { connectedCameraIds } = useServer();+ const { t } = useTranslation();++ const [isOpen, setIsOpen] = useState<boolean>(false);+ const [isAuto, setIsAuto] = useState<boolean>(settings.columns === null);+ const [manualColumns, setManualColumns] = useState<number>(+ settings.columns ?? 2,+ );++ const getAutoColumns = (total: number): number => {+ if (total <= 1) return 1;+ if (total <= 4) return 2;+ if (total <= 9) return 3;+ return 4;+ };++ const autoColumns = getAutoColumns(connectedCameraIds.length);++ const handleAutoChange = (checked: boolean) => {+ setIsAuto(checked);+ onSettingsChange({ columns: checked ? null : manualColumns });+ };++ const handleColumnsChange = (value: number) => {+ setManualColumns(value);+ if (isAuto) setIsAuto(false);+ onSettingsChange({ columns: value });+ };++ const handle3dViewToggle = (checked: boolean) => {+ onSettingsChange({ show3dView: checked });+ };++ const handleLayoutDirectionChange = (newDirection: LayoutDirection) => {+ onSettingsChange({ layoutDirection: newDirection });+ };++ return (+ <>+ <div className="streaming-bar-setting-action-bar z-2 pos-abs flex flex-row gap-3 top-0 right-0">+ <IconButton+ icon={isOpen ? "close-icon" : "settings-icon"}+ className="icon-size-25 br-2 bg-middark"+ onClick={() => setIsOpen(!isOpen)}+ title={isOpen ? t("closeSettings") : t("gridSettings")}+ />++ {/* SETTINGS PANEL */}+ {isOpen && (+ <div+ className="bg-middark br-2 elevated-sharp flex flex-col gap-2 p-2"+ style={{+ position: "absolute",+ top: 0,+ right: 16,+ zIndex: 999,+ minWidth: 260,+ }}+ >+ <div className="flex flex-col gap-1">+ <div className="flex flex-row items-center gap-1">+ <span className="icon grid4-icon icon-size-20" />+ <p className="text bg text-white">{t("gridColumns")}</p>+ </div>++ <ToggleComponent+ text={t("auto")}+ isToggled={isAuto}+ onToggle={handleAutoChange}+ />++ <ValueSelector+ value={isAuto ? autoColumns : manualColumns}+ min={1}+ max={12}+ onChange={handleColumnsChange}+ />++ <p className="text sm text-gray">+ {isAuto+ ? `Auto-detected: ${autoColumns} Columns`+ : "Enter any positive number"}+ </p>+ </div>++ <div+ style={{+ height: 1,+ backgroundColor: "var(--color-border-secondary)",+ }}+ />++ <div className="flex flex-col gap-1">+ <ToggleComponent+ text="3D Viewport"+ iconClass="streaming-icon"+ isToggled={settings.show3dView}+ onToggle={handle3dViewToggle}+ />+ </div>++ {settings.show3dView && (+ <>+ <div+ style={{+ height: 1,+ backgroundColor: "var(--color-border-secondary)",+ }}+ />++ <div className="flex flex-col gap-1">+ <p className="text bg text-white">Layout</p>++ <div className="flex flex-row gap-1">+ <button+ className={`button sm flex-1 ${+ settings.layoutDirection === "horizontal"+ ? "primary"+ : "secondary"+ }`}+ onClick={() =>+ handleLayoutDirectionChange("horizontal")+ }+ >+ <p className="text sm">Side by side</p>+ </button>++ <button+ className={`button sm flex-1 ${+ settings.layoutDirection === "vertical"+ ? "primary"+ : "secondary"+ }`}+ onClick={() =>+ handleLayoutDirectionChange("vertical")+ }+ >+ <p className="text sm">Stacked</p>+ </button>+ </div>+ </div>+ </>+ )}+ </div>+ )}+ </div>+ </>+ );+};diff --git a/freemocap-ui/src/components/ui-components/Header.tsx b/freemocap-ui/src/components/ui-components/Header.tsxindex d772c476..2de613e8 100644--- a/freemocap-ui/src/components/ui-components/Header.tsx+++ b/freemocap-ui/src/components/ui-components/Header.tsx@@ -1,32 +1,10 @@import * as React from 'react';-import AppBar from '@mui/material/AppBar';-import Toolbar from '@mui/material/Toolbar';-import Typography from '@mui/material/Typography';-import {Box, useTheme} from '@mui/material';-import ThemeToggle from './ThemeToggle';export const Header = function () {- const theme = useTheme();-return (- <AppBar- color="primary"- position="sticky"- elevation={0}- sx={{- borderBottom: '1px solid',- borderColor: theme.palette.divider- }}- >- <Toolbar>- <Typography variant="h6" color="inherit" sx={{flexGrow: 1}}>- FreeMoCap 💀✨- </Typography>- <Box sx={{display: 'flex', alignItems: 'center', gap: 1}}>- <ThemeToggle/>- </Box>- </Toolbar>- </AppBar>+ <div className="header-panel top-header flex flex-row items-center pl-2 pr-2" style={{ minHeight: 40 }}>+ <h1 className="title text-white flex-1">FreeMocap</h1>+ </div>);}diff --git a/freemocap-ui/src/components/ui-components/IconButton.tsx b/freemocap-ui/src/components/ui-components/IconButton.tsxnew file mode 100644index 00000000..1f2c3b38--- /dev/null+++ b/freemocap-ui/src/components/ui-components/IconButton.tsx@@ -0,0 +1,83 @@+import React from "react";+import clsx from "clsx";+import { TooltipPosition } from "./types";++interface IconButtonProps {+ icon: string;+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;+ onMouseDown?: (e: React.MouseEvent) => void;+ disabled?: boolean;+ title?: string;+ className?: string;+ iconSize?: string;+ style?: React.CSSProperties;+ iconStyle?: React.CSSProperties;+ tooltip?: boolean;+ tooltipText?: string;+ tooltipPosition?: TooltipPosition;+}++const IconButton = React.forwardRef<HTMLButtonElement, IconButtonProps>(({+ icon,+ onClick = () => {},+ onMouseDown,+ disabled = false,+ title,+ className = "icon-size-25",+ iconSize = "icon-size-20",+ style,+ iconStyle,+ tooltip = false,+ tooltipText = "",+ tooltipPosition = "pos-bottom",+}, ref) => {+ const iconEl = <span className={clsx("icon", icon, iconSize)} style={iconStyle} />;++ const tooltipEl = tooltip && tooltipText && (+ <div className={clsx("tooltip-container elevated-sharp", tooltipPosition, "p-01 br-2 bg-dark")}>+ <div className="tooltip-inner br-1 pl-2 pr-2 pt-1 pb-1 border-1 border-mid-black border-solid">+ <p className="text-white text md">{tooltipText}</p>+ </div>+ </div>+ );++ if (disabled && tooltip && tooltipText) {+ return (+ <div+ className="tooltip-wrapper pos-rel flex-inline"+ title={title}+ style={{ opacity: 0.5, cursor: "not-allowed" }}+ >+ <button+ ref={ref}+ disabled+ onMouseDown={onMouseDown}+ className={clsx("button icon-button icon-size-25 pos-rel br-1", className)}+ style={{ ...style, pointerEvents: "none" }}+ >+ {iconEl}+ </button>+ {tooltipEl}+ </div>+ );+ }++ return (+ <button+ ref={ref}+ onClick={onClick}+ onMouseDown={onMouseDown}+ disabled={disabled}+ title={title}+ className={clsx("button icon-button pos-rel br-1", className)}+ style={style}+ >+ {iconEl}+ {tooltipEl}+ </button>+ );+});++IconButton.displayName = "IconButton";++export default IconButton;diff --git a/freemocap-ui/src/components/ui-components/MainNavTabs.tsx b/freemocap-ui/src/components/ui-components/MainNavTabs.tsxindex be425552..30e95058 100644--- a/freemocap-ui/src/components/ui-components/MainNavTabs.tsx+++ b/freemocap-ui/src/components/ui-components/MainNavTabs.tsx@@ -1,37 +1,31 @@-import {useLocation, useNavigate} from "react-router-dom";-import {useCallback, useMemo} from "react";-import {alpha, darken} from "@mui/material/styles";-import {Box, Chip, Link, Tab, Tabs, Tooltip, Typography} from "@mui/material";-import FolderOpenIcon from "@mui/icons-material/FolderOpen";-import {useAppDispatch, useAppSelector} from "@/store";+import React, { useCallback, useMemo } from "react";+import { useLocation, useNavigate } from "react-router-dom";+import { useAppDispatch, useAppSelector } from "@/store";import {activeRecordingCleared,selectActiveRecordingFullPath,selectActiveRecordingName,} from "@/store/slices/active-recording/active-recording-slice";-import {useElectronIPC} from "@/services";+import { useElectronIPC } from "@/services";+import IconButton from "@/components/ui-components/IconButton";const NAV_TABS = [- {path: '/welcome', label: 'Home'},- {path: '/streaming', label: 'Streaming'},- {path: '/playback', label: 'Playback'},- {path: '/browse', label: 'Recordings'},- {path: '/active-recording', label: 'Active Recording'},+ { path: '/streaming', label: 'Streaming' },+ { path: '/playback', label: 'Playback' },+ { path: '/active-recording', label: 'Active Recording' },] as const;-const MONO_FONT = '"JetBrains Mono", "Fira Code", "SF Mono", monospace';--const ActiveRecordingTabLabel: React.FC<{isActive: boolean}> = ({isActive}) => {+const ActiveRecordingLabel: React.FC = () => {const dispatch = useAppDispatch();const recordingName = useAppSelector(selectActiveRecordingName);const fullPath = useAppSelector(selectActiveRecordingFullPath);- const {api} = useElectronIPC();+ const { api } = useElectronIPC();const handleOpenFolder = async (e: React.MouseEvent) => {e.stopPropagation();if (!fullPath) return;try {- await api?.fileSystem.openFolder.mutate({path: fullPath});+ await api?.fileSystem.openFolder.mutate({ path: fullPath });} catch (err) {console.error('Failed to open recording folder:', err);}@@ -42,63 +36,30 @@ const ActiveRecordingTabLabel: React.FC<{isActive: boolean}> = ({isActive}) => {dispatch(activeRecordingCleared());};- const tooltipContent = fullPath ? (- <Box sx={{p: 0.5}}>- <Typography variant="caption" sx={{fontFamily: MONO_FONT, display: 'block', mb: 0.5}}>- {fullPath}- </Typography>- <Link- component="button"- onClick={handleOpenFolder}- underline="hover"- sx={{display: 'inline-flex', alignItems: 'center', gap: 0.5, fontSize: '0.7rem'}}- >- <FolderOpenIcon sx={{fontSize: 14}}/>- Open in Explorer- </Link>- </Box>- ) : (- <Typography variant="caption">No active recording</Typography>- );-return (- <Tooltip title={tooltipContent} placement="bottom" arrow>- <Box sx={{display: 'inline-flex', alignItems: 'center', gap: 0.75}}>- <Typography component="span" sx={{fontSize: 'inherit'}}>Active Recording</Typography>- {recordingName ? (- <Chip- size="small"- label={recordingName}- onDelete={handleClearRecording}- sx={{- height: 18,- fontSize: '0.65rem',- fontFamily: MONO_FONT,- maxWidth: 220,- '& .MuiChip-label': {- px: 0.75,- overflow: 'hidden',- textOverflow: 'ellipsis',- whiteSpace: 'nowrap',- },- '& .MuiChip-deleteIcon': {- fontSize: 12,- opacity: 0,- transition: 'opacity 0.15s',- },- '&:hover .MuiChip-deleteIcon': {opacity: 1},- }}+ <span className="flex flex-row items-center gap-1">+ <span className="text-gray">Active Recording</span>+ {recordingName ? (+ <span+ className="flex flex-row text-nowrap tag text sm text-white"+ style={{ fontFamily: 'monospace', maxWidth: 180, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}+ title={fullPath ?? recordingName}+ onClick={handleOpenFolder}+ >+ {recordingName}+ <IconButton+ icon="close-icon"+ iconSize="icon-size-12"+ className="ml-1"+ onClick={handleClearRecording}+ style={{ lineHeight: 1 }}+ title="Clear active recording"/>- ) : (- <Typography- component="span"- sx={{fontSize: '0.65rem', color: 'text.disabled', fontStyle: 'italic'}}- >- (none)- </Typography>- )}- </Box>- </Tooltip>+ </span>+ ) : (+ <span className="text sm text-gray" style={{ fontStyle: 'italic' }}>(none)</span>+ )}+ </span>);};@@ -106,53 +67,34 @@ export const MainNavTabs = () => {const location = useLocation();const navigate = useNavigate();- const activeTab = useMemo(() => {+ const activeIdx = useMemo(() => {const idx = NAV_TABS.findIndex(t => location.pathname === t.path);return idx >= 0 ? idx : 0;}, [location.pathname]);- const handleTabChange = useCallback((_: React.SyntheticEvent, index: number) => {- navigate(NAV_TABS[index].path);+ const handleClick = useCallback((path: string) => {+ navigate(path);}, [navigate]);return (- <Tabs- value={activeTab}- onChange={handleTabChange}- sx={(theme) => ({- minHeight: 28,- px: 0.5,- borderRadius: 1,- backgroundColor: darken(theme.palette.background.default, 0.2),- borderBottom: `1px solid ${alpha(theme.palette.divider, 0.2)}`,- '& .MuiTab-root': {- minHeight: 28,- fontSize: '0.75rem',- py: 0.5,- borderRadius: 0.75,- position: 'relative',- textTransform: 'none',- },- '& .MuiTab-root:not(:last-of-type)::after': {- content: '""',- position: 'absolute',- right: 0,- top: '22%',- height: '56%',- borderRight: `1px solid ${alpha(theme.palette.divider, 0.15)}`,- },- '& .MuiTab-root.Mui-selected': {- backgroundColor: darken(theme.palette.background.paper, 0.15),- },- })}- >- {NAV_TABS.map((tab, idx) => {- const isActive = idx === activeTab;- const label = tab.path === '/active-recording'- ? <ActiveRecordingTabLabel isActive={isActive}/>- : tab.label;- return <Tab key={tab.path} label={label}/>;- })}- </Tabs>+ <div className="main-tab-bar main-tab-bar-container pos-abs top-0 left-0 main-segmented-control-container">+ <div className="segmented-control-container bg-middark br-2 gap-1 p-1 z-1 flex flex-row">+ {NAV_TABS.map((tab, idx) => {+ const isActive = idx === activeIdx;+ return (+ <button+ key={tab.path}+ className={`segmented-control-button justify-center button pl-2 pr-2 gap-1 br-1 flex-inline items-center${isActive ? ' bg-dark' : ''}`}+ onClick={() => handleClick(tab.path)}+ >+ {tab.path === '/active-recording'+ ? <ActiveRecordingLabel />+ : <p className={`text md text-center p-1 ${isActive ? ' text-white' : ' text-gray'}`}>{tab.label}</p>+ }+ </button>+ );+ })}+ </div>+ </div>);};diff --git a/freemocap-ui/src/components/ui-components/NameDropdownSelector.tsx b/freemocap-ui/src/components/ui-components/NameDropdownSelector.tsxnew file mode 100644index 00000000..56f44b33--- /dev/null+++ b/freemocap-ui/src/components/ui-components/NameDropdownSelector.tsx@@ -0,0 +1,68 @@+import React, { useState, useEffect, useRef } from "react";++interface NameDropdownSelectorProps {+ options?: string[];+ initialValue?: string;+ onChange?: (value: string) => void;+ className?: string;+ DropdownclassName?: string;+}++const NameDropdownSelector: React.FC<NameDropdownSelectorProps> = ({+ options = [],+ initialValue = "",+ onChange,+ className = "",+ DropdownclassName = "",+}) => {+ const [selected, setSelected] = useState(initialValue);+ const [open, setOpen] = useState(false);+ const containerRef = useRef<HTMLDivElement>(null);++ useEffect(() => {+ const handleClickOutside = (e: MouseEvent) => {+ if (containerRef.current && !containerRef.current.contains(e.target as Node)) {+ setOpen(false);+ }+ };+ document.addEventListener("mousedown", handleClickOutside);+ return () => document.removeEventListener("mousedown", handleClickOutside);+ }, []);++ const handleSelect = (option: string) => {+ setSelected(option);+ onChange?.(option);+ setOpen(false);+ };++ return (+ <div ref={containerRef} className={`name-dropdown-selector min-w-0 w-inherit pos-rel inline-block ${className}`}>+ <button+ className="flex flex-1 min-w-full flex-1 gap-1 br-1 button sm flex-inline text-left items-center dropdown border-1 border-mid-black"+ onClick={() => setOpen((prev) => !prev)}+ >+ <p className="text-gray text md text-align-left text-nowrap">+ {selected || "Select..."}+ </p>+ </button>++ {open && (+ <div className={`dropdown-container top-30 border-1 min-w-full border-black elevated-sharp pos-abs flex flex-col right-0 p-1 bg-dark br-2 z-1 reveal slide-down ${DropdownclassName}`}>+ <div className="w-full flex flex-col right-0 p-1 gap-2 bg-middark br-1 z-1">+ {options.map((option, index) => (+ <button+ key={index}+ className={`w-full gap-1 br-1 button sm fit-content flex-inline text-left items-center full-width ${selected === option ? "selected" : ""}`}+ onClick={() => handleSelect(option)}+ >+ <p className="text-gray text md text-align-left text-nowrap">{option}</p>+ </button>+ ))}+ </div>+ </div>+ )}+ </div>+ );+};++export default NameDropdownSelector;\ No newline at end of filediff --git a/freemocap-ui/src/components/ui-components/PromptTooltip.tsx b/freemocap-ui/src/components/ui-components/PromptTooltip.tsxnew file mode 100644index 00000000..4ad1e505--- /dev/null+++ b/freemocap-ui/src/components/ui-components/PromptTooltip.tsx@@ -0,0 +1,131 @@+import React, { useEffect, useState } from "react";+import clsx from "clsx";+import IconButton from "./IconButton";+import ButtonSm from "./ButtonSm";++type TooltipPosition = "pos-top" | "pos-bottom" | "pos-left" | "pos-right";+type TooltipVariant = "default" | "warning" | "boarding";++interface PromptTooltipProps {+ show?: boolean;+ title?: string;+ text: string;+ image?: boolean;+ imageSrc?: string;+ button?: boolean;+ buttonText?: string;+ buttonType?: string;+ buttonIcon?: string;+ onButtonClick?: () => void;+ onClose?: () => void;+ __floatingOnboardingUnmount?: () => void;+ position?: TooltipPosition;+ variant?: TooltipVariant;+ className?: string;+ innerClassName?: string;+}++const PromptTooltip: React.FC<PromptTooltipProps> = ({+ show = false,+ title = "",+ text,+ image = false,+ imageSrc = "",+ button = false,+ buttonText = "Continue",+ buttonType = "",+ buttonIcon = "",+ onButtonClick = () => {},+ onClose = () => {},+ __floatingOnboardingUnmount = () => {},+ position = "pos-right",+ variant = "default",+ className = "",+ innerClassName = "",+}) => {+ const [isVisible, setIsVisible] = useState(show);++ useEffect(() => {+ setIsVisible(show);+ }, [show]);++ if (!isVisible) return null;++ const variantClasses = {+ default: "border-gray800",+ warning: "border-warning",+ boarding: "border-blue",+ };++ const handleClose = () => {+ setIsVisible(false);+ onClose();+ __floatingOnboardingUnmount();+ };++ return (+ <div+ className={clsx(+ "prompt-tooltip-container text-wrap border-1 border-solid border-mid-black tooltip-container elevated-sharp",+ position,+ "p-01 br-3 bg-dark",+ className,+ )}+ >+ <div+ className={clsx(+ "tooltip-inner",+ "gap-2",+ "flex",+ "flex-col",+ "pos-rel",+ "br-2",+ "border-1 border-solid",+ "p-2",+ variantClasses[variant],+ innerClassName,+ )}+ >+ <div className="icon-button-holder flex flex-row pos-abs top-4 right-4 z-2">+ <IconButton+ icon="close-icon"+ onClick={handleClose}+ className="tertiary icon-size-20"+ />+ </div>++ {title && (+ <div className="tooltip-title-holder flex flex-row pos-rel">+ <h3 className="text-white text lg mb-2">{title}</h3>+ </div>+ )}++ {image && imageSrc && (+ <div className="tooltip-image-holder br-1 overflow-hidden flex flex-row pos-rel">+ <div className="image-container width-200 height-80 overflow-hidden flex flex-row pos-rel">+ <img src={imageSrc} className="object-contain width-full height-full" />+ </div>+ </div>+ )}++ <div className="tooltip-description-holder flex flex-row pos-rel">+ <p className="text-white text md">{text}</p>+ </div>++ {button && (+ <div className="tooltip-button-holder flex flex-row flex-1 items-center gap-1 fit-content w-full min-w-full">+ <ButtonSm+ text={buttonText}+ iconClass={buttonIcon}+ buttonType={buttonType}+ onClick={onButtonClick}+ className="flex-1 externallink tertiary full-width flex-inline text-left items-center full-width justify-center"+ />+ </div>+ )}+ </div>+ </div>+ );+};++export default PromptTooltip;diff --git a/freemocap-ui/src/components/ui-components/Row.tsx b/freemocap-ui/src/components/ui-components/Row.tsxnew file mode 100644index 00000000..21282d37--- /dev/null+++ b/freemocap-ui/src/components/ui-components/Row.tsx@@ -0,0 +1,13 @@+import React from 'react';++export const Row: React.FC<{label: string; indent?: boolean; children: React.ReactNode}> = ({label, indent, children}) => (+ <div className="text-input-container gap-1 p-1 br-1 flex justify-content-space-between items-center">+ <p className="text md text-gray text-nowrap flex items-center gap-1" style={{minWidth: 80}}>+ {indent && <span className="icon icon-size-20 subcat-icon" />}+ {label}+ </p>+ <div className="flex-1 flex flex-end">+ {children}+ </div>+ </div>+);diff --git a/freemocap-ui/src/components/ui-components/SegmentedControl.tsx b/freemocap-ui/src/components/ui-components/SegmentedControl.tsxnew file mode 100644index 00000000..eb197745--- /dev/null+++ b/freemocap-ui/src/components/ui-components/SegmentedControl.tsx@@ -0,0 +1,70 @@+import React, { useState, useEffect } from "react";++interface SegmentedControlOption {+ label: string;+ value: string;+ iconClass?: string;+}++interface SegmentedControlProps {+ options: SegmentedControlOption[];+ defaultValue?: string;+ onChange?: (value: string) => void;+ className?: string;+ size?: "sm" | "md";+ value?: string;+}++const SegmentedControl: React.FC<SegmentedControlProps> = ({+ options,+ defaultValue,+ onChange,+ className = "",+ size = "md",+ value: controlledValue,+}) => {+ const isControlled = controlledValue !== undefined;+ const [activeValue, setActiveValue] = useState(+ isControlled ? controlledValue : defaultValue || options[0]?.value+ );++ useEffect(() => {+ if (isControlled && controlledValue !== activeValue) {+ setActiveValue(controlledValue);+ }+ }, [controlledValue, isControlled, activeValue]);++ const handleClick = (value: string) => {+ if (!isControlled) {+ setActiveValue(value);+ }+ if (onChange) onChange(value);+ };++ const textSizeClass = size === "sm" ? "sm" : "md";++ return (+ <div+ className={`segmented-control-container br-1-1 gap-1 p-1 bg-middark flex flex-row main-segmented-control ${className}`}+ >+ {options.map((option) => (+ <button+ key={option.value}+ className={`segmented-control-button justify-center button pl-2 pr-2 gap-1 br-1 flex-inline items-center ${+ activeValue === option.value+ ? "active text-white bg-dark"+ : "idle text-gray"+ }`}+ onClick={() => handleClick(option.value)}+ >+ {option.iconClass && <i className={option.iconClass} />}+ <p className={`${textSizeClass} text text-center p-1`}>+ {option.label}+ </p>+ </button>+ ))}+ </div>+ );+};++export default SegmentedControl;diff --git a/freemocap-ui/src/components/ui-components/SettingsOverlay.tsx b/freemocap-ui/src/components/ui-components/SettingsOverlay.tsxindex 4e3007d0..e82d85f6 100644--- a/freemocap-ui/src/components/ui-components/SettingsOverlay.tsx+++ b/freemocap-ui/src/components/ui-components/SettingsOverlay.tsx@@ -1,212 +1,347 @@-import React, {useState} from 'react';-import {- Box,- Checkbox,- Divider,- FormControlLabel,- IconButton,- Paper,- Switch,- TextField,- ToggleButton,- ToggleButtonGroup,- Tooltip,-} from '@mui/material';-import SettingsIcon from '@mui/icons-material/Settings';-import CloseIcon from '@mui/icons-material/Close';-import GridViewIcon from '@mui/icons-material/GridView';-import ViewSidebarIcon from '@mui/icons-material/ViewSidebar';-import SplitscreenIcon from '@mui/icons-material/Splitscreen';-import ViewAgendaIcon from '@mui/icons-material/ViewAgenda';-import {useServer} from '@/services/server/ServerContextProvider';-import {useTranslation} from 'react-i18next';-import type {CameraSettings, LayoutDirection} from '@/pages/StreamingViewPage';+import React, { useState } from "react";+import { useServer } from "@/services/server/ServerContextProvider";+import { useTranslation } from "react-i18next";+import type {+ CameraSettings,+ LayoutDirection,+} from "@/pages/StreamingViewPage";+import ToggleComponent from "@/components/ui-components/ToggleComponent";+import IconButton from "@/components/ui-components/IconButton";+import ValueSelector from "@/components/ui-components/ValueSelector";+import { useRealtimePipelineSync } from "@/hooks/useRealtimePipelineSync";++import RTPMediaPipeDetectorSettings from "@/components/pipeline-progress/realtime/realtimepipeline-mediapipedetector-settings";+import RTPthreeDReconstructionSettings from "@/components/pipeline-progress/realtime/realtimepipeline-3dreconstruction-settings";interface SettingsOverlayProps {- settings: CameraSettings;- onSettingsChange: (partial: Partial<CameraSettings>) => void;- onResetLayout: () => void;+ settings: CameraSettings;+ onSettingsChange: (partial: Partial<CameraSettings>) => void;+ onResetLayout: () => void;}+type ActiveState = {+ trackingSettings: boolean;+ filterSettings: boolean;+};+export const SettingsOverlay: React.FC<SettingsOverlayProps> = ({- settings,- onSettingsChange,- onResetLayout,+ settings,+ onSettingsChange,+ onResetLayout,}) => {- const { connectedCameraIds } = useServer();- const { t } = useTranslation();- const [isOpen, setIsOpen] = useState<boolean>(false);- const [isAuto, setIsAuto] = useState<boolean>(settings.columns === null);- const [manualColumns, setManualColumns] = useState<number>(settings.columns ?? 2);-- const getAutoColumns = (total: number): number => {- if (total <= 1) return 1;- if (total <= 4) return 2;- if (total <= 9) return 3;- return 4;- };-- const autoColumns = getAutoColumns(connectedCameraIds.length);-- const handleAutoChange = (event: React.ChangeEvent<HTMLInputElement>) => {- const checked = event.target.checked;- setIsAuto(checked);- onSettingsChange({ columns: checked ? null : manualColumns });- };-- const handleColumnsChange = (event: React.ChangeEvent<HTMLInputElement>) => {- const value = parseInt(event.target.value);- if (!isNaN(value) && value > 0) {- setManualColumns(value);- if (isAuto) setIsAuto(false);- onSettingsChange({ columns: value });- }- };-- const handle3dViewToggle = (event: React.ChangeEvent<HTMLInputElement>) => {- onSettingsChange({ show3dView: event.target.checked });- };-- const handleLayoutDirectionChange = (- _event: React.MouseEvent<HTMLElement>,- newDirection: LayoutDirection | null,- ) => {- if (newDirection !== null) {- onSettingsChange({ layoutDirection: newDirection });- }- };-- return (- <>- {/* Settings toggle button */}- <Box sx={{ position: 'absolute', top: 16, right: 16, zIndex: 1000 }}>- <Tooltip title={isOpen ? t('closeSettings') : t('gridSettings')}>- <IconButton- onClick={() => setIsOpen(!isOpen)}- sx={{- backgroundColor: 'background.paper',- boxShadow: 2,- '&:hover': { backgroundColor: 'action.hover' },- }}- >- {isOpen ? <CloseIcon /> : <SettingsIcon />}- </IconButton>- </Tooltip>- </Box>-- {/* Settings panel */}- {isOpen && (- <Paper- elevation={8}- sx={{- position: 'absolute',- top: 70,- right: 16,- zIndex: 999,- padding: 2,- minWidth: 260,- display: 'flex',- flexDirection: 'column',- gap: 2,- }}- >- {/* ── Grid columns ──────────────────────────── */}- <Box>- <Box sx={{ display: 'flex', alignItems: 'center', gap: 1, mb: 1.5 }}>- <GridViewIcon fontSize="small" />- <Box sx={{ fontWeight: 600, fontSize: '0.875rem' }}>{t('gridColumns')}</Box>- </Box>-- <Box sx={{ display: 'flex', alignItems: 'flex-start', gap: 1 }}>- <FormControlLabel- control={- <Checkbox- checked={isAuto}- onChange={handleAutoChange}- sx={{ '&.Mui-checked': { color: 'text.primary' } }}- />- }- label={t('auto')}- />- <TextField- type="number"- label={t('columns')}- value={isAuto ? autoColumns : manualColumns}- onChange={handleColumnsChange}- fullWidth- inputProps={{ min: 1, step: 1 }}- helperText={- isAuto- ? `Auto-detected: ${autoColumns}`- : 'Enter any positive number'- }- />- </Box>- </Box>-- <Divider />-- {/* ── 3D viewport toggle ────────────────────── */}- <Box>- <Box sx={{ display: 'flex', alignItems: 'center', gap: 1, mb: 0.5 }}>- <ViewSidebarIcon fontSize="small" />- <Box sx={{ fontWeight: 600, fontSize: '0.875rem' }}>3D Viewport</Box>- </Box>-- <FormControlLabel- control={- <Switch- checked={settings.show3dView}- onChange={handle3dViewToggle}- size="small"- />- }- label={settings.show3dView ? 'Visible' : 'Hidden'}- sx={{ ml: 0 }}- />- </Box>-- {/* ── Layout direction (only when 3D is on) ─── */}- {settings.show3dView && (- <>- <Divider />-- <Box>- <Box sx={{ display: 'flex', alignItems: 'center', gap: 1, mb: 1 }}>- <SplitscreenIcon fontSize="small" />- <Box sx={{ fontWeight: 600, fontSize: '0.875rem' }}>Layout</Box>- </Box>-- <ToggleButtonGroup- value={settings.layoutDirection}- exclusive- onChange={handleLayoutDirectionChange}- size="small"- fullWidth- >- <ToggleButton value="horizontal" aria-label="side by side">- <Tooltip title="Side by side">- <Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>- {/* Two vertical panels icon */}- <ViewSidebarIcon fontSize="small" />- <Box sx={{ fontSize: '0.75rem' }}>Side by side</Box>- </Box>- </Tooltip>- </ToggleButton>- <ToggleButton value="vertical" aria-label="stacked">- <Tooltip title="Stacked">- <Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>- <ViewAgendaIcon fontSize="small" />- <Box sx={{ fontSize: '0.75rem' }}>Stacked</Box>- </Box>- </Tooltip>- </ToggleButton>- </ToggleButtonGroup>- </Box>- </>- )}- </Paper>- )}- </>- );-};+ const { connectedCameraIds } = useServer();+ const { t } = useTranslation();++ const [isOpen, setIsOpen] = useState<boolean>(false);+ const [isAuto, setIsAuto] = useState<boolean>(settings.columns === null);+ const [manualColumns, setManualColumns] = useState<number>(+ settings.columns ?? 2,+ );++ const [active, setActive] = useState<ActiveState>({+ trackingSettings: false,+ filterSettings: false,+ });++ const toggleActive = (key: keyof ActiveState) => {+ setActive((prev) => ({+ ...prev,+ [key]: !prev[key],+ }));+ };++ const {+ pipelineConfig,+ cameraNodeConfig,+ aggregatorConfig,+ applyOrUpdatePipelineConfig,+ isConnected,+ isLoading: isPipelineLoading,+ canConnect,+ canDisconnect,+ toggleConnection,+ } = useRealtimePipelineSync();++ const charucoEnabled = cameraNodeConfig.charuco_tracking_enabled;+ const skeletonEnabled = cameraNodeConfig.skeleton_tracking_enabled;+ const triangulateEnabled = aggregatorConfig.triangulation_enabled;+ const filterEnabled = aggregatorConfig.filter_enabled;++ const handleCharucoToggle = () =>+ applyOrUpdatePipelineConfig({+ ...pipelineConfig,+ camera_node_config: { ...cameraNodeConfig, charuco_tracking_enabled: !charucoEnabled },+ });++ const handleSkeletonToggle = () =>+ applyOrUpdatePipelineConfig({+ ...pipelineConfig,+ camera_node_config: { ...cameraNodeConfig, skeleton_tracking_enabled: !skeletonEnabled },+ });++ const handleTriangulateToggle = () =>+ applyOrUpdatePipelineConfig({+ ...pipelineConfig,+ aggregator_config: { ...aggregatorConfig, triangulation_enabled: !triangulateEnabled },+ });++ const handleFilterToggle = () =>+ applyOrUpdatePipelineConfig({+ ...pipelineConfig,+ aggregator_config: { ...aggregatorConfig, filter_enabled: !filterEnabled },+ });++ const liveClickable = canConnect || canDisconnect;+ const handleLiveStreamClick = () => {+ toggleConnection();+ };++ const getAutoColumns = (total: number): number => {+ if (total <= 1) return 1;+ if (total <= 4) return 2;+ if (total <= 9) return 3;+ return 4;+ };++ const autoColumns = getAutoColumns(connectedCameraIds.length);++ const handleAutoChange = (checked: boolean) => {+ setIsAuto(checked);+ onSettingsChange({ columns: checked ? null : manualColumns });+ };++ const handleColumnsChange = (value: number) => {+ setManualColumns(value);+ if (isAuto) setIsAuto(false);+ onSettingsChange({ columns: value });+ };++ const handle3dViewToggle = (checked: boolean) => {+ onSettingsChange({ show3dView: checked });+ };++ const handleLayoutDirectionChange = (newDirection: LayoutDirection) => {+ onSettingsChange({ layoutDirection: newDirection });+ };++ return (+ <>+ <div className="streaming-bar-setting-action-bar z-2 pos-abs flex flex-row gap-3 top-0 right-0">+ <div className="live-action-buttons-container flex flex-row gap-32">++ {/* GROUP 1 */}+ <div className="p-1 br-2 bg-gray live-action-buttons-group-1 flex flex-row items-center gap-1">++ <IconButton+ icon={skeletonEnabled ? "twodtracking-active-icon" : "twodtracking-icon"}+ onClick={handleSkeletonToggle}+ tooltip+ tooltipText="2D Tracking"+ tooltipPosition="pos-bottom"+ disabled={false}+ className={`icon-size-25 ${skeletonEnabled ? "active" : ""}`}+ />++ <IconButton+ icon={charucoEnabled ? "charuco-active-icon" : "charuco-icon"}+ onClick={handleCharucoToggle}+ tooltip+ tooltipText="Charuco Board"+ tooltipPosition="pos-bottom"+ disabled={false}+ className={`icon-size-25 ${charucoEnabled ? "active" : ""}`}+ />++ <div className="modal-container pos-rel">+ <IconButton+ icon={active.trackingSettings ? "skeleton-active-icon" : "skeleton-icon"}+ onClick={() => toggleActive("trackingSettings")}+ tooltip+ tooltipText="Skeleton Setup"+ tooltipPosition="pos-bottom"+ disabled={false}+ className={`icon-size-25 ${active.trackingSettings ? "active" : ""}`}+ />+ {/* RTP MediaPipe Settings Modal */}+ <RTPMediaPipeDetectorSettings+ open={active.trackingSettings}+ onClose={() => toggleActive("trackingSettings")}+ />+ </div>+ </div>++ {/* GROUP 2 */}+ <div className="p-1 br-2 bg-gray live-action-buttons-group-2 flex flex-row items-center gap-1">++ <IconButton+ icon={triangulateEnabled ? "threedtracking-active-icon" : "threedtracking-icon"}+ onClick={handleTriangulateToggle}+ tooltip+ tooltipText="3D Tracking"+ tooltipPosition="pos-bottom"+ disabled={false}+ className={`icon-size-25 ${triangulateEnabled ? "active" : ""}`}+ />++ <IconButton+ icon={filterEnabled ? "skeletonfilter-active-icon" : "skeletonfilter-icon"}+ onClick={handleFilterToggle}+ tooltip+ tooltipText="Skeleton Filter"+ tooltipPosition="pos-bottom"+ disabled={false}+ className={`icon-size-25 ${filterEnabled ? "active" : ""}`}+ />++ <div className="modal-container pos-rel">+ <IconButton+ icon={active.filterSettings ? "settings-icon" : "settings-icon"}+ onClick={() => toggleActive("filterSettings")}+ tooltip+ tooltipText="Filter Settings"+ tooltipPosition="pos-bottom"+ disabled={false}+ className={`icon-size-25 ${active.filterSettings ? "active" : ""}`}+ />+ {/* RTP 3D Reconstructions Settings Modal */}+ <RTPthreeDReconstructionSettings+ open={active.filterSettings}+ onClose={() => toggleActive("filterSettings")}+ />+ </div>+ </div>++ {/* GROUP 3 */}+ <div className="p-1 br-2 bg-gray live-action-buttons-group-3 flex flex-row items-center gap-1">++ <IconButton+ icon={isConnected ? "live-active-icon" : "live-icon"}+ onClick={handleLiveStreamClick}+ tooltip+ tooltipText={+ isConnected+ ? "Disconnect pipeline"+ : canConnect+ ? "Connect pipeline"+ : "Select cameras first"+ }+ tooltipPosition="pos-bottom-right"+ disabled={!liveClickable || isPipelineLoading}+ className={`icon-size-25 ${isConnected ? "active" : ""} ${!liveClickable ? "" : ""}`}+ />+ </div>++ </div>++ <div className="modal-container pos-rel">+ <IconButton+ icon={isOpen ? "close-icon" : "settings-icon"}+ className="icon-size-25 br-2"+ onClick={() => setIsOpen(!isOpen)}+ title={isOpen ? t("closeSettings") : t("gridSettings")}+ />++ {/* SETTINGS PANEL */}+ {isOpen && (+ <div+ className="bg-middark br-2 elevated-sharp flex flex-col gap-2 p-2"+ style={{+ position: "absolute",+ top: "100%",+ right: 0,+ marginTop: 8,+ zIndex: 999,+ minWidth: 260,+ }}+ >+ <div className="flex flex-col gap-1">+ <div className="flex flex-row items-center gap-1">+ <span className="icon grid4-icon icon-size-20" />+ <p className="text bg text-white">{t("gridColumns")}</p>+ </div>++ <ToggleComponent+ text={t("auto")}+ isToggled={isAuto}+ onToggle={handleAutoChange}+ />++ <ValueSelector+ value={isAuto ? autoColumns : manualColumns}+ min={1}+ max={12}+ onChange={handleColumnsChange}+ />++ <p className="text sm text-gray">+ {isAuto+ ? `Auto-detected: ${autoColumns} Columns`+ : "Enter any positive number"}+ </p>+ </div>++ <div+ style={{+ height: 1,+ backgroundColor: "var(--color-border-secondary)",+ }}+ />++ <div className="flex flex-col gap-1">+ <ToggleComponent+ text="3D Viewport"+ iconClass="streaming-icon"+ isToggled={settings.show3dView}+ onToggle={handle3dViewToggle}+ />+ </div>++ {settings.show3dView && (+ <>+ <div+ style={{+ height: 1,+ backgroundColor: "var(--color-border-secondary)",+ }}+ />++ <div className="flex flex-col gap-1">+ <p className="text bg text-white">Layout</p>++ <div className="flex flex-row gap-1">+ <button+ className={`button sm flex-1 ${+ settings.layoutDirection === "horizontal"+ ? "primary"+ : "secondary"+ }`}+ onClick={() =>+ handleLayoutDirectionChange("horizontal")+ }+ >+ <p className="text sm">Side by side</p>+ </button>++ <button+ className={`button sm flex-1 ${+ settings.layoutDirection === "vertical"+ ? "primary"+ : "secondary"+ }`}+ onClick={() =>+ handleLayoutDirectionChange("vertical")+ }+ >+ <p className="text sm">Stacked</p>+ </button>+ </div>+ </div>+ </>+ )}+ </div>+ )}+ </div>+ </div>+ </>+ );+};\ No newline at end of filediff --git a/freemocap-ui/src/components/ui-components/SubactionHeader.tsx b/freemocap-ui/src/components/ui-components/SubactionHeader.tsxnew file mode 100644index 00000000..050fa9e8--- /dev/null+++ b/freemocap-ui/src/components/ui-components/SubactionHeader.tsx@@ -0,0 +1,23 @@+import React from "react";++interface SubactionHeaderProps {+ text?: string;+ className?: string;+}++const SubactionHeader: React.FC<SubactionHeaderProps> = ({+ text = "",+ className = "",+}) => {+ return (+ <div className="subaction-header-container gap-1 br-1 flex justify-between items-center h-25 p-1">+ <div className="text-container overflow-hidden flex items-center">+ <p className={`${className} text-nowrap text-left bg-md text-darkgray `}>+ {text}+ </p>+ </div>+ </div>+ );+};++export default SubactionHeader;\ No newline at end of filediff --git a/freemocap-ui/src/components/ui-components/TabbedContent.tsx b/freemocap-ui/src/components/ui-components/TabbedContent.tsxindex b8b2f53d..cddd5627 100644--- a/freemocap-ui/src/components/ui-components/TabbedContent.tsx+++ b/freemocap-ui/src/components/ui-components/TabbedContent.tsx@@ -1,8 +1,4 @@-import React, {useState} from 'react';-import Box from '@mui/material/Box';-import Tabs from '@mui/material/Tabs';-import Tab from '@mui/material/Tab';-import type {SxProps, Theme} from '@mui/material/styles';+import React, { useState } from 'react';export interface TabDef {label: React.ReactNode;@@ -13,44 +9,36 @@ interface TabbedContentProps {tabs: TabDef[];activeTab?: number;onTabChange?: (index: number) => void;- tabsSx?: SxProps<Theme>;}-/**- * Generic tabbed content container.- * All tab panels stay mounted — only visibility is toggled (display block/none).- * Can be controlled (activeTab + onTabChange) or uncontrolled (internal state).- */-export function TabbedContent({tabs, activeTab, onTabChange, tabsSx}: TabbedContentProps) {+export function TabbedContent({ tabs, activeTab, onTabChange }: TabbedContentProps) {const [internalTab, setInternalTab] = useState(0);const controlled = activeTab !== undefined;const currentTab = controlled ? activeTab : internalTab;- const handleChange = (_: React.SyntheticEvent, value: number) => {- if (onTabChange) onTabChange(value);- if (!controlled) setInternalTab(value);+ const handleClick = (idx: number) => {+ if (onTabChange) onTabChange(idx);+ if (!controlled) setInternalTab(idx);};return (- <Box sx={{height: '100%', display: 'flex', flexDirection: 'column'}}>- <Tabs- value={currentTab}- onChange={handleChange}- sx={{- minHeight: 28,- '& .MuiTab-root': {minHeight: 28, py: 0, fontSize: '0.75rem'},- ...tabsSx as any,- }}- >+ <div className="h-full flex flex-col">+ <div className="main-tab-bar">{tabs.map((t, i) => (- <Tab key={i} label={t.label}/>+ <button+ key={i}+ className={`segmented-control-button button${currentTab === i ? ' activated' : ''}`}+ onClick={() => handleClick(i)}+ >+ <p className={`text md${currentTab === i ? ' text-white' : ' text-gray'}`}>{t.label}</p>+ </button>))}- </Tabs>+ </div>{tabs.map((t, i) => (- <Box key={i} sx={{flex: 1, overflow: 'hidden', display: currentTab === i ? 'block' : 'none'}}>+ <div key={i} className="flex-1 overflow-hidden" style={{ display: currentTab === i ? 'block' : 'none' }}>{t.content}- </Box>+ </div>))}- </Box>+ </div>);}diff --git a/freemocap-ui/src/components/ui-components/TextSelector.tsx b/freemocap-ui/src/components/ui-components/TextSelector.tsxnew file mode 100644index 00000000..350306fd--- /dev/null+++ b/freemocap-ui/src/components/ui-components/TextSelector.tsx@@ -0,0 +1,88 @@+import React, { useState, useEffect, useRef } from "react";++interface TextSelectorProps {+ initialValue?: string;+ onChange?: (value: string) => void;+ value?: string;+ placeholder?: string;+ popupClassName?: string;+}++const TextSelector: React.FC<TextSelectorProps> = ({+ initialValue = "",+ onChange,+ value,+ placeholder = "Enter text",+ popupClassName = "",+}) => {+ const [open, setOpen] = useState(false);+ const containerRef = useRef<HTMLDivElement>(null);+ const inputRef = useRef<HTMLInputElement>(null);++ const currentValue = value !== undefined ? value : initialValue;++ useEffect(() => {+ const handleClickOutside = (e: MouseEvent) => {+ if (+ containerRef.current &&+ !containerRef.current.contains(e.target as Node)+ ) {+ setOpen(false);+ }+ };+ document.addEventListener("mousedown", handleClickOutside);+ return () => document.removeEventListener("mousedown", handleClickOutside);+ }, []);++ useEffect(() => {+ if (open && inputRef.current) {+ inputRef.current.focus();+ inputRef.current.select();+ }+ }, [open]);++ const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {+ if (e.key === "Enter") {+ setOpen(false);+ inputRef.current?.blur();+ }+ };++ return (+ <div+ ref={containerRef}+ className="flex flex-1 text-selector pos-rel inline-block"+ >+ <button+ className="recording-name-field-container overflow-hidden input-with-string flex-1 button sm w-full dropdown"+ onClick={() => setOpen((prev) => !prev)}+ >+ <span className="text-nowrap value-label text md">+ {currentValue || placeholder}+ </span>+ </button>++ {open && (+ <div+ className={`string-selector pos-abs border-1 w-full border-black elevated-sharp flex flex-row p-1 bg-dark br-2 z-1 reveal slide-down ${popupClassName}`}+ >+ <div className="min-w-full w-full flex p-2 gap-2 bg-middark br-1">+ <div className="text-input w-full">+ <input+ ref={inputRef}+ type="text"+ value={currentValue}+ onChange={(e) => onChange?.(e.target.value)}+ onKeyDown={handleKeyDown}+ placeholder={placeholder}+ className={`text-nowrap w-full input-field text md text-center ${popupClassName}`}+ />+ </div>+ </div>+ </div>+ )}+ </div>+ );+};++export default TextSelector;diff --git a/freemocap-ui/src/components/ui-components/ThemeToggle.tsx b/freemocap-ui/src/components/ui-components/ThemeToggle.tsxdeleted file mode 100644index 1405a07d..00000000--- a/freemocap-ui/src/components/ui-components/ThemeToggle.tsx+++ /dev/null@@ -1,35 +0,0 @@-import React from 'react';-import {IconButton, Tooltip, useTheme} from '@mui/material';-import Brightness4Icon from '@mui/icons-material/Brightness4'; // Dark mode icon-import Brightness7Icon from '@mui/icons-material/Brightness7'; // Light mode icon-import {useAppDispatch, useAppSelector} from '@/store';-import {themeModeToggled} from '@/store/slices/theme';-import {useTranslation} from 'react-i18next';--export const ThemeToggle: React.FC = () => {- const dispatch = useAppDispatch();- const theme = useTheme();- const { t } = useTranslation();- const themeMode = useAppSelector(state => state.theme.mode);- const isDarkMode = themeMode === 'dark';-- return (- <Tooltip title={isDarkMode ? t("switchToLight") : t("switchToDark")}>- <IconButton- onClick={() => dispatch(themeModeToggled())}- color="inherit"- aria-label={t("toggleTheme")}- edge="end"- sx={{- '&:hover': {- backgroundColor: theme.palette.action.hover,- },- }}- >- {isDarkMode ? <Brightness7Icon /> : <Brightness4Icon />}- </IconButton>- </Tooltip>- );-};--export default ThemeToggle;diff --git a/freemocap-ui/src/components/ui-components/ToggleButtonComponent.tsx b/freemocap-ui/src/components/ui-components/ToggleButtonComponent.tsxnew file mode 100644index 00000000..15e5dcac--- /dev/null+++ b/freemocap-ui/src/components/ui-components/ToggleButtonComponent.tsx@@ -0,0 +1,52 @@+import React from "react";+import clsx from "clsx";+import { STATES } from "./states";++interface ToggleButtonComponentProps {+ state: string;+ connectConfig: { text: string; iconClass?: string; rightSideIcon?: string; extraClasses?: string };+ connectingConfig: { text: string; iconClass?: string; rightSideIcon?: string; extraClasses?: string };+ connectedConfig: { text: string; iconClass?: string; rightSideIcon?: string; extraClasses?: string };+ textColor?: string;+ onConnect?: () => void;+ onDisconnect?: () => void;+}++const ToggleButtonComponent: React.FC<ToggleButtonComponentProps> = ({+ state,+ connectConfig,+ connectingConfig,+ connectedConfig,+ textColor = "text-gray",+ onConnect = () => {},+ onDisconnect = () => {},+}) => {+ const handleClick = () => {+ if (state === STATES.DISCONNECTED) onConnect();+ else if (state === STATES.CONNECTED) onDisconnect();+ };++ const getButtonConfig = () => {+ switch (state) {+ case STATES.CONNECTING: return connectingConfig;+ case STATES.CONNECTED: return connectedConfig;+ default: return connectConfig;+ }+ };++ const { text, iconClass, rightSideIcon, extraClasses } = getButtonConfig();++ return (+ <button+ onClick={handleClick}+ disabled={state === STATES.CONNECTING}+ className={clsx("gap-1 br-1 button sm fit-content flex-inline text-left items-center", extraClasses)}+ >+ {iconClass && <span className={`icon icon-size-20 ${iconClass}`} />}+ <p className={`${textColor} text md text-align-left`}>{text}</p>+ {rightSideIcon && <span className={`icon icon-size-20 ${rightSideIcon}`} />}+ </button>+ );+};++export default ToggleButtonComponent;diff --git a/freemocap-ui/src/components/ui-components/ToggleComponent.tsx b/freemocap-ui/src/components/ui-components/ToggleComponent.tsxnew file mode 100644index 00000000..50823c3c--- /dev/null+++ b/freemocap-ui/src/components/ui-components/ToggleComponent.tsx@@ -0,0 +1,51 @@+import React, { useState } from "react";+import clsx from "clsx";++interface ToggleProps {+ text: string;+ className?: string;+ iconClass?: string;+ defaultToggelState?: boolean;+ isToggled?: boolean;+ onToggle?: (state: boolean) => void;+ disabled?: boolean;+}++const ToggleComponent: React.FC<ToggleProps> = ({+ text,+ className = "",+ iconClass,+ defaultToggelState = false,+ isToggled,+ onToggle,+ disabled = false,+}) => {+ const [internalToggle, setInternalToggle] = useState(defaultToggelState);+ const toggled = isToggled !== undefined ? isToggled : internalToggle;++ const handleToggle = () => {+ if (disabled) return;+ const newState = !toggled;+ if (isToggled === undefined) setInternalToggle(newState);+ onToggle?.(newState);+ };++ return (+ <div+ className={`min-w-full button toggle-button gap-1 p-1 br-1 flex justify-content-space-between items-center h-25 ${className} ${disabled ? "disabled" : ""}`}+ onClick={handleToggle}+ >+ <div className="text-container overflow-hidden flex items-center gap-1">+ {iconClass && <span className={`icon icon-size-20 ${iconClass}`} />}+ <p className={clsx("text text-nowrap text-left md", toggled && "color-white")}>+ {text}+ </p>+ </div>+ <div className={`icon toggle-container ${toggled ? "on" : "off"}`}>+ <div className="icon toggle-circle" />+ </div>+ </div>+ );+};++export default ToggleComponent;diff --git a/freemocap-ui/src/components/ui-components/UpdateBanner.tsx b/freemocap-ui/src/components/ui-components/UpdateBanner.tsxindex 4959de01..74aeea32 100644--- a/freemocap-ui/src/components/ui-components/UpdateBanner.tsx+++ b/freemocap-ui/src/components/ui-components/UpdateBanner.tsx@@ -1,7 +1,6 @@import React from 'react';-import {Alert, Box, Button, LinearProgress, Typography} from '@mui/material';-import {useTranslation} from 'react-i18next';-import {useAutoUpdate} from '@/hooks/useAutoUpdate';+import { useTranslation } from 'react-i18next';+import { useAutoUpdate } from '@/hooks/useAutoUpdate';export const UpdateBanner: React.FC = () => {const { t } = useTranslation();@@ -13,43 +12,37 @@ export const UpdateBanner: React.FC = () => {if (status === 'error') {return (- <Alert severity="error" sx={{ borderRadius: 0 }}>- {t('updateError')}: {errorMessage}- </Alert>+ <div className="update-banner update-banner-error">+ <span className="text sm">{t('updateError')}: {errorMessage}</span>+ </div>);}if (status === 'downloading') {return (- <Box sx={{ px: 2, py: 1, bgcolor: 'info.main', color: 'info.contrastText' }}>- <Typography variant="body2" sx={{ mb: 0.5 }}>- {t('downloading')} {version && `v${version}`}- </Typography>- <LinearProgress variant="determinate" value={progress} sx={{ borderRadius: 1 }} />- </Box>+ <div className="update-banner update-banner-info">+ <span className="text sm">{t('downloading')} {version && `v${version}`}</span>+ <div className="update-progress-track">+ <div className="update-progress-fill" style={{ width: `${progress}%` }} />+ </div>+ </div>);}if (status === 'ready') {return (- <Alert- severity="success"- sx={{ borderRadius: 0 }}- action={- <Button color="inherit" size="small" onClick={installUpdate}>- {t('restartToUpdate')}- </Button>- }- >- {t('downloadComplete')} — v{version}- </Alert>+ <div className="update-banner update-banner-success">+ <span className="text sm">{t('downloadComplete')} — v{version}</span>+ <button className="button sm" onClick={installUpdate}>+ {t('restartToUpdate')}+ </button>+ </div>);}- // status === 'available'return (- <Alert severity="info" sx={{ borderRadius: 0 }}>- {t('updateAvailableMessage', { version })}- </Alert>+ <div className="update-banner update-banner-info">+ <span className="text sm">{t('updateAvailableMessage', { version })}</span>+ </div>);};diff --git a/freemocap-ui/src/components/ui-components/ValueSelector.tsx b/freemocap-ui/src/components/ui-components/ValueSelector.tsxnew file mode 100644index 00000000..a99e9046--- /dev/null+++ b/freemocap-ui/src/components/ui-components/ValueSelector.tsx@@ -0,0 +1,92 @@+import React, {useRef} from "react";+import IconButton from "@/components/ui-components/IconButton";++/** Rounds to the precision of `step` and clamps to [min, max], avoiding float drift like 0.005 - 0.0005 = 0.0045000000000000005. */+function roundToStep(value: number, step: number, min: number, max: number): number {+ const decimals = (step.toString().split(".")[1] || "").length;+ const rounded = Number(value.toFixed(decimals));+ return Math.max(min, Math.min(max, rounded));+}++interface InputWithUnitProps {+ value: number;+ onChange: (value: number) => void;+ unit?: string;+ min?: number;+ max?: number;+ step?: number;+ disabled?: boolean;+}++const InputWithUnit: React.FC<InputWithUnitProps> = ({value, onChange, unit = "", min = 1, max = 999, step = 1, disabled = false}) => {+ const inputRef = useRef<HTMLInputElement>(null);++ const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {+ if (e.key === "Enter") {+ inputRef.current?.blur();+ }+ };++ return (+ <div className="input-with-unit tooltip">+ <input+ ref={inputRef}+ type="number"+ value={value}+ min={min}+ max={max}+ step={step}+ disabled={disabled}+ onChange={e => onChange(Math.max(min, Math.min(max, Number(e.target.value) || min)))}+ onFocus={e => e.target.select()}+ onKeyDown={handleKeyDown}+ className="input-field text md w-full text-center"+ />+ {unit && <span className="unit-label text md">{unit}</span>}+ </div>+ );+};++interface ValueSelectorProps {+ value?: number;+ unit?: string;+ min?: number;+ max?: number;+ step?: number;+ onChange?: (value: number) => void;+ disabled?: boolean;+}++const ValueSelector: React.FC<ValueSelectorProps> = ({value, unit = "", min = 1, max = 999, step = 1, onChange, disabled = false}) => {+ const currentValue = value ?? min;++ return (+ <div className={`value-selector-container flex flex-row items-center gap-2 bg-middark br-1 ${disabled ? "disabled" : ""}`}>+ <IconButton+ icon="minus-icon"+ onClick={() => currentValue > min && onChange?.(roundToStep(currentValue - step, step, min, max))}+ disabled={disabled || currentValue <= min}+ className={`icon-size-25 ${disabled || currentValue <= min ? "deactivated" : ""}`}+ iconSize="icon-size-20"+ />+ <InputWithUnit+ value={currentValue}+ onChange={onChange ?? (() => {})}+ unit={unit}+ min={min}+ max={max}+ step={step}+ disabled={disabled}+ />+ <IconButton+ icon="plus-icon"+ onClick={() => currentValue < max && onChange?.(roundToStep(currentValue + step, step, min, max))}+ disabled={disabled || currentValue >= max}+ className={`icon-size-25 ${disabled || currentValue >= max ? "deactivated" : ""}`}+ iconSize="icon-size-20"+ />+ </div>+ );+};++export default ValueSelector;diff --git a/freemocap-ui/src/components/ui-components/VersionChip.tsx b/freemocap-ui/src/components/ui-components/VersionChip.tsxindex bd9939d8..7d233f56 100644--- a/freemocap-ui/src/components/ui-components/VersionChip.tsx+++ b/freemocap-ui/src/components/ui-components/VersionChip.tsx@@ -1,129 +1,91 @@-import React, {useEffect, useRef, useState} from 'react';-import type {AlertColor} from '@mui/material';-import {Alert, Box, Chip, CircularProgress, IconButton, Snackbar, Tooltip} from '@mui/material';-import OpenInNewIcon from '@mui/icons-material/OpenInNew';-import UpdateIcon from '@mui/icons-material/Update';-import CheckCircleIcon from '@mui/icons-material/CheckCircle';-import {useTranslation} from 'react-i18next';-import {useAppVersion} from '@/hooks/useAppVersion';-import {useAutoUpdate} from '@/hooks/useAutoUpdate';-import {EXTERNAL_URLS} from '@/constants/external-urls';+import React, { useEffect, useRef, useState } from 'react';+import clsx from 'clsx';+import { useTranslation } from 'react-i18next';+import { useAppVersion } from '@/hooks/useAppVersion';+import { useAutoUpdate } from '@/hooks/useAutoUpdate';+import { EXTERNAL_URLS } from '@/constants/external-urls';+import ButtonSm from '@/components/ui-components/ButtonSm';interface VersionChipProps {- /** compact = small inline style for footers; full = larger for settings */variant?: 'compact' | 'full';+ className?: string;+ style?: React.CSSProperties;}-export const VersionChip: React.FC<VersionChipProps> = ({ variant = 'full' }) => {+type ToastType = 'success' | 'error' | 'info';++export const VersionChip: React.FC<VersionChipProps> = ({ variant = 'full', className, style }) => {const { t } = useTranslation();const version = useAppVersion();const { status, version: updateVersion, errorMessage, checkForUpdate } = useAutoUpdate();const isChecking = status === 'checking';- const size = variant === 'compact' ? 'small' : 'medium';-- // Snackbar feedback for update check resultsconst prevStatusRef = useRef(status);- const [snackbar, setSnackbar] = useState<{ open: boolean; severity: AlertColor; message: string }>({- open: false, severity: 'info', message: '',- });- // Brief success state on the chip itselfconst [showSuccess, setShowSuccess] = useState(false);- const successTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);+ const [toast, setToast] = useState<{ message: string; type: ToastType } | null>(null);useEffect(() => {const prev = prevStatusRef.current;prevStatusRef.current = status;-- // Only react to transitions from 'checking' to a terminal stateif (prev !== 'checking') return;if (status === 'up-to-date') {- setSnackbar({ open: true, severity: 'success', message: t('upToDate') });+ setToast({ message: t('upToDate'), type: 'success' });setShowSuccess(true);- if (successTimerRef.current) clearTimeout(successTimerRef.current);- successTimerRef.current = setTimeout(() => setShowSuccess(false), 3000);+ setTimeout(() => setShowSuccess(false), 3000);} else if (status === 'available') {- setSnackbar({- open: true,- severity: 'info',- message: t('updateAvailableMessage', { version: updateVersion }),- });+ setToast({ message: t('updateAvailableMessage', { version: updateVersion }), type: 'info' });} else if (status === 'error') {- setSnackbar({- open: true,- severity: 'error',+ setToast({message: errorMessage ? `${t('updateError')}: ${errorMessage}` : t('updateError'),+ type: 'error',});}-- return () => {- if (successTimerRef.current) clearTimeout(successTimerRef.current);- };}, [status, updateVersion, errorMessage, t]);- if (!version) return null;+ useEffect(() => {+ if (!toast) return;+ const timer = setTimeout(() => setToast(null), 4000);+ return () => clearTimeout(timer);+ }, [toast]);- const chipIcon = isChecking- ? <CircularProgress size={14} color="inherit" />- : showSuccess- ? <CheckCircleIcon sx={{ fontSize: variant === 'compact' ? 14 : 18, color: 'success.main' }} />- : <UpdateIcon sx={{ fontSize: variant === 'compact' ? 14 : 18 }} />;+ if (!version) return null;return (- <>- <Box sx={{ display: 'inline-flex', alignItems: 'center', gap: 0.5 }}>- <Tooltip title={t('checkForUpdates')} arrow>- <Chip- icon={chipIcon}- label={`v${version}`}- size={size}- variant="outlined"- onClick={checkForUpdate}- disabled={isChecking}- color={showSuccess ? 'success' : 'default'}- sx={{- cursor: 'pointer',- fontFamily: 'monospace',- fontSize: variant === 'compact' ? 10 : 12,- height: variant === 'compact' ? 22 : undefined,- transition: 'all 0.3s ease',- '& .MuiChip-icon': {- marginLeft: variant === 'compact' ? '4px' : undefined,- },- }}- />- </Tooltip>- <Tooltip title="GitHub Releases" arrow>- <IconButton- size="small"- onClick={() => window.open(EXTERNAL_URLS.GITHUB_RELEASES, '_blank')}- sx={{- padding: variant === 'compact' ? '2px' : '4px',- opacity: 0.6,- '&:hover': { opacity: 1 },- }}- >- <OpenInNewIcon sx={{ fontSize: variant === 'compact' ? 13 : 16 }} />- </IconButton>- </Tooltip>- </Box>- <Snackbar- open={snackbar.open}- autoHideDuration={4000}- onClose={() => setSnackbar(prev => ({ ...prev, open: false }))}- anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}- >- <Alert- onClose={() => setSnackbar(prev => ({ ...prev, open: false }))}- severity={snackbar.severity}- variant="filled"- sx={{ width: '100%' }}- >- {snackbar.message}- </Alert>- </Snackbar>- </>+ <div className={`version-button-container flex-start flex flex-col items-center gap-0${className ? ` ${className}` : ''}`} style={style}>+ <ButtonSm+ text={`v${version}`}+ onClick={checkForUpdate}+ textColor="text-gray"+ disabled={isChecking}+ tooltip={true}+ tooltipText={t('checkForUpdates')}+ tooltipPosition="pos-right"+ className={clsx("version-badge", showSuccess && "success")}+ iconClass={clsx(+ "icon icon-size-20",+ isChecking+ ? "updateAvailable-icon"+ : showSuccess+ ? "upToDate-icon"+ : "checkUpdate-icon"+ )}+ />+ <ButtonSm+ text="Releases"+ onClick={() => window.open(EXTERNAL_URLS.GITHUB_RELEASES, '_blank')}+ textColor="text-gray"+ className="externallink"+ tooltip={true}+ tooltipText="view all releases on GitHub"+ tooltipPosition="pos-right"+ />+ {toast && (+ <div className={clsx("toast-notification", toast.type)}>+ <p className="text sm">{toast.message}</p>+ </div>+ )}+ </div>);};diff --git a/freemocap-ui/src/components/ui-components/WelcomeModal.tsx b/freemocap-ui/src/components/ui-components/WelcomeModal.tsxnew file mode 100644index 00000000..8c17c472--- /dev/null+++ b/freemocap-ui/src/components/ui-components/WelcomeModal.tsx@@ -0,0 +1,185 @@+import React, { useEffect, useState, useRef, useCallback } from 'react';+import { useNavigate } from 'react-router-dom';+import { useTranslation } from 'react-i18next';+import { useElectronIPC } from '@/services';+import { useServer } from '@/services/server/ServerContextProvider';+import { LanguageSwitcher } from '@/components/languages/LanguageSwitcher';+import { VersionChip } from '@/components/ui-components/VersionChip';+import { useAppDispatch, useAppSelector } from '@/store';+import { camerasConnectOrUpdate, detectCameras } from '@/store/slices/cameras/cameras-thunks';+import { selectCameras } from '@/store/slices/cameras/cameras-selectors';+import { EXTERNAL_URLS } from '@/constants/external-urls';+import ButtonSm from '@/components/ui-components/ButtonSm';+import ButtonCard from '@/components/ui-components/ButtonCard';+import IconButton from '@/components/ui-components/IconButton';+import ToggleComponent from '@/components/ui-components/ToggleComponent';++interface WelcomeModalProps {+ open: boolean;+ onClose: () => void;+}++export const WelcomeModal: React.FC<WelcomeModalProps> = ({ open, onClose }) => {+ const { t } = useTranslation();+ const navigate = useNavigate();+ const dispatch = useAppDispatch();+ const [telemetryEnabled, setTelemetryEnabled] = useState<boolean>(true);+ const [telemetryLoaded, setTelemetryLoaded] = useState<boolean>(false);+ const { isElectron, api } = useElectronIPC();+ const { connectedCameraIds } = useServer();+ const cameras = useAppSelector(selectCameras);+ const prevCountRef = useRef(connectedCameraIds.length);++ // Close automatically when cameras first connect+ useEffect(() => {+ if (!open) return;+ const prevCount = prevCountRef.current;+ const currentCount = connectedCameraIds.length;+ if (prevCount === 0 && currentCount > 0) onClose();+ prevCountRef.current = currentCount;+ }, [connectedCameraIds, open, onClose]);++ useEffect(() => {+ const loadTelemetryPref = async (): Promise<void> => {+ try {+ if (isElectron && api) {+ const enabled = await api.telemetry.getEnabled.query();+ setTelemetryEnabled(enabled);+ }+ } catch (error) {+ console.error('Failed to load telemetry preference:', error);+ } finally {+ setTelemetryLoaded(true);+ }+ };+ loadTelemetryPref();+ }, [isElectron, api]);++ useEffect(() => {+ if (!open) return;+ const handleKeyDown = (e: KeyboardEvent) => {+ if (e.key === 'Escape') onClose();+ };+ window.addEventListener('keydown', handleKeyDown);+ return () => window.removeEventListener('keydown', handleKeyDown);+ }, [open, onClose]);++ const handleTelemetryToggle = useCallback(async (checked: boolean) => {+ setTelemetryEnabled(checked);+ try {+ if (isElectron && api) {+ await api.telemetry.setEnabled.mutate({ enabled: checked });+ }+ } catch (error) {+ console.error('Failed to save telemetry preference:', error);+ }+ }, [isElectron, api]);++ const handleGoToCameras = useCallback(async () => {+ navigate('/streaming');+ onClose();+ if (cameras.length === 0) {+ try {+ await dispatch(detectCameras({ filterVirtual: true })).unwrap();+ } catch {+ return;+ }+ }+ dispatch(camerasConnectOrUpdate());+ }, [navigate, onClose, dispatch, cameras.length]);++ const handleGoToPlayback = useCallback(() => {+ navigate('/playback');+ onClose();+ }, [navigate, onClose]);++ if (!open) return null;++ return (+ <div+ className="splash-overlay inset-0 reveal fadeIn"+ style={{ position: "fixed", zIndex: 100 }}+ onClick={onClose}+ >+ <div+ className="pos-rel splash-modal fade reveal main-container br-2 flex flex-col p-1 bg-dark border-1 border-black"+ onClick={(e) => e.stopPropagation()}+ >+ <div className="overflow-hidden flex-1 bg-middark br-1 flex flex-row gap-3 p-2">+ <div className="icon-button-holder flex flex-row pos-abs top-4 right-4 z-2">+ <IconButton+ icon="icon close-icon icon-size-20"+ onClick={onClose}+ className="pos-abs top-0 right-0 tertiary"+ />+ </div>++ {/* Left column — splash art */}+ <div className="splash-image-container flex flex-1 pos-rel">+ <div className="pos-abs bottom-10 left-10 fit-content">+ <VersionChip variant="compact" />+ </div>+ </div>++ {/* Right column — content */}+ <div className="splash-action-group flex-1 flex flex-col gap-1 p-1 justify-content-space-between">+ {/* Top actions */}+ <div className="flex flex-col pl-2 pr-2 pt-2 pb-0 mb-0">+ <h1 className="title flex flex-col gap-1">+ <span className="text-white">{t('welcomeTitle')}</span>+ <span className="text-gray">{t('welcomeSubtitle')}</span>+ </h1>++ {/* Primary navigation cards */}+ <div className="flex gap-2 mt-3">+ <ButtonCard+ text={t('connectToCameras')}+ iconClass="live-icon icon-size-42"+ onClick={handleGoToCameras}+ />+ <ButtonCard+ text={t('videoPlayback')}+ iconClass="importVideos-icon icon-size-42"+ onClick={handleGoToPlayback}+ />+ </div>++ {/* Telemetry toggle */}+ {telemetryLoaded && (+ <div className="mt-2">+ <ToggleComponent+ text={t('sendAnonymousPings')}+ isToggled={telemetryEnabled}+ onToggle={handleTelemetryToggle}+ />+ </div>+ )}++ <div className="pos-abs top-10 left-10 fit-content">+ <LanguageSwitcher />+ </div>+ </div>++ {/* Bottom links */}+ <div className="splash-bottom-links flex flex-col gap-1 pl-1">+ <ButtonSm+ iconClass="learn-icon"+ text={t('documentation')}+ rightSideIcon="externallink"+ textColor="text-gray"+ onClick={() => window.open(EXTERNAL_URLS.DOCS, '_blank')}+ />+ <ButtonSm+ iconClass=""+ text={t('roadmap')}+ rightSideIcon="externallink"+ textColor="text-gray"+ onClick={() => window.open(EXTERNAL_URLS.ROADMAP, '_blank')}+ />+ </div>+ </div>+ </div>+ </div>+ </div>+ );+};diff --git a/freemocap-ui/src/components/ui-components/camerasEmptyState.tsx b/freemocap-ui/src/components/ui-components/camerasEmptyState.tsxnew file mode 100644index 00000000..0f4638d7--- /dev/null+++ b/freemocap-ui/src/components/ui-components/camerasEmptyState.tsx@@ -0,0 +1,24 @@+import React from 'react';++const NUM_TILES = 6;++const CameraEmptyState: React.FC = () => {+ return (+ <div className="video-container flex flex-row flex-wrap justify-center gap-2 flex-1 flex-start mt-1">+ {Array.from({ length: NUM_TILES }).map((_, index) => (+ <div+ key={index}+ className={`flex p-1 gap-1 flex-col video-tile camera-source br-2 pos-rel size-3 bg-middark empty video-tile-${index}`}+ >+ <div className="video-feed-container overflow-hidden br-1">+ <div className="flex w-full h-full items-center justify-center text-gray-400 text-sm">+ {/* Optional placeholder text or icon can go here */}+ </div>+ </div>+ </div>+ ))}+ </div>+ );+};++export default CameraEmptyState;\ No newline at end of filediff --git a/freemocap-ui/src/components/ui-components/states.ts b/freemocap-ui/src/components/ui-components/states.tsnew file mode 100644index 00000000..2b7ea97a--- /dev/null+++ b/freemocap-ui/src/components/ui-components/states.ts@@ -0,0 +1,5 @@+export const STATES = {+ DISCONNECTED: "disconnected",+ CONNECTING: "connecting",+ CONNECTED: "connected",+};diff --git a/freemocap-ui/src/components/ui-components/types.ts b/freemocap-ui/src/components/ui-components/types.tsnew file mode 100644index 00000000..b90b223c--- /dev/null+++ b/freemocap-ui/src/components/ui-components/types.ts@@ -0,0 +1,7 @@+export type TooltipPosition =+ | "pos-top"+ | "pos-bottom"+ | "pos-bottom-left"+ | "pos-bottom-right"+ | "pos-left"+ | "pos-right";diff --git a/freemocap-ui/src/components/viewport3d/ThreeJsCanvas.tsx b/freemocap-ui/src/components/viewport3d/ThreeJsCanvas.tsxindex f6a4cc82..c4127113 100644--- a/freemocap-ui/src/components/viewport3d/ThreeJsCanvas.tsx+++ b/freemocap-ui/src/components/viewport3d/ThreeJsCanvas.tsx@@ -1,336 +1,305 @@import { useCallback, useEffect, useRef } from "react";-import { Box } from "@mui/material";import { Object3D } from "three";-import { ViewportStateProvider, useViewportState } from "./scene/ViewportStateContext";+import {+ ViewportStateProvider,+ useViewportState,+} from "./scene/ViewportStateContext";import { ViewportOverlay } from "./scene/ViewportOverlay";-import { useHasKeypointsSourceProvider, useKeypointsSource } from "./KeypointsSourceContext";+import {+ useHasKeypointsSourceProvider,+ useKeypointsSource,+} from "./KeypointsSourceContext";import { useServer } from "@/services";import { useAppSelector } from "@/store";import {- selectCalibrationConfig,- selectLoadedCalibration,+ selectCalibrationConfig,+ selectLoadedCalibration,} from "@/store/slices/calibration/calibration-slice";import { useCalibrationTomlLoader } from "./hooks/useCalibrationTomlLoader";import { type ViewportStats } from "./helpers/viewport3d-types";-// FreeMoCap's world is Z-up — set once before any Three.js objects are created.Object3D.DEFAULT_UP.set(0, 0, 1);-// ----------------------------------------------------------------------------// Worker (module-level singleton — survives React re-renders / StrictMode)-// ----------------------------------------------------------------------------console.log("[ThreeJsCanvas] creating viewport3d worker");export const VIEWPORT_WORKER = new Worker(- new URL("./viewport3d.worker.tsx", import.meta.url),- { type: "module" },+ new URL("./viewport3d.worker.tsx", import.meta.url),+ { type: "module" },);console.log("[ThreeJsCanvas] viewport3d worker created", VIEWPORT_WORKER);VIEWPORT_WORKER.addEventListener("error", (e) =>- console.error("[ThreeJsCanvas] worker error", e),+ console.error("[ThreeJsCanvas] worker error", e),);VIEWPORT_WORKER.addEventListener("messageerror", (e) =>- console.error("[ThreeJsCanvas] worker messageerror", e),+ console.error("[ThreeJsCanvas] worker messageerror", e),);-// transferControlToOffscreen() can only be called once per HTMLCanvasElement.-// React 19 StrictMode double-mounts components in dev; it reuses the same DOM-// element across the mount→unmount→remount cycle, so a module-level flag that-// gets reset in a cleanup function will still double-transfer the same element.-//-// Instead we mark the DOM element itself via a data attribute. This survives-// StrictMode's double-mount (same element, attribute persists) but naturally-// expires on tab switches (old element destroyed, new element is clean).--// ----------------------------------------------------------------------------// Helper components rendered inside ViewportStateProvider-// -----------------------------------------------------------------------------/** Forwards visibility changes to the worker so the scene shows/hides layers. */function VisibilityForwarder() {- const { visibility } = useViewportState();- useEffect(() => {- VIEWPORT_WORKER.postMessage({ type: "visibility", data: visibility });- }, [visibility]);- return null;+ const { visibility } = useViewportState();+ useEffect(() => {+ VIEWPORT_WORKER.postMessage({ type: "visibility", data: visibility });+ }, [visibility]);+ return null;}-/** Receives stats from the worker and writes them into the main-thread statsRef. */function WorkerStatsReceiver() {- const { statsRef } = useViewportState();- useEffect(() => {- const handler = (e: MessageEvent<{ type?: string; data?: ViewportStats }>) => {- if (e.data?.type === "stats" && e.data.data) {- Object.assign(statsRef.current, e.data.data);- }- };- VIEWPORT_WORKER.addEventListener("message", handler);- return () => VIEWPORT_WORKER.removeEventListener("message", handler);- }, [statsRef]);- return null;+ const { statsRef } = useViewportState();+ useEffect(() => {+ const handler = (+ e: MessageEvent<{ type?: string; data?: ViewportStats }>,+ ) => {+ if (e.data?.type === "stats" && e.data.data) {+ Object.assign(statsRef.current, e.data.data);+ }+ };+ VIEWPORT_WORKER.addEventListener("message", handler);+ return () => VIEWPORT_WORKER.removeEventListener("message", handler);+ }, [statsRef]);+ return null;}-// ----------------------------------------------------------------------------// DOM-event serialization for forwarding to the worker-//-// CameraControls reads these fields off the events it receives. Stripping the-// rest avoids sending non-cloneable structures (target, view, etc.) over-// postMessage and keeps the payload small enough to forward at full input rate.-// ----------------------------------------------------------------------------function serializePointerEvent(e: PointerEvent, rect: DOMRect) {- return {- eventType: e.type,- init: {- pointerId: e.pointerId,- pointerType: e.pointerType,- isPrimary: e.isPrimary,- button: e.button,- buttons: e.buttons,- clientX: e.clientX - rect.left,- clientY: e.clientY - rect.top,- offsetX: e.offsetX,- offsetY: e.offsetY,- pageX: e.pageX - rect.left,- pageY: e.pageY - rect.top,- screenX: e.screenX,- screenY: e.screenY,- movementX: e.movementX,- movementY: e.movementY,- ctrlKey: e.ctrlKey,- shiftKey: e.shiftKey,- altKey: e.altKey,- metaKey: e.metaKey,- },- };+ return {+ eventType: e.type,+ init: {+ pointerId: e.pointerId,+ pointerType: e.pointerType,+ isPrimary: e.isPrimary,+ button: e.button,+ buttons: e.buttons,+ clientX: e.clientX - rect.left,+ clientY: e.clientY - rect.top,+ offsetX: e.offsetX,+ offsetY: e.offsetY,+ pageX: e.pageX - rect.left,+ pageY: e.pageY - rect.top,+ screenX: e.screenX,+ screenY: e.screenY,+ movementX: e.movementX,+ movementY: e.movementY,+ ctrlKey: e.ctrlKey,+ shiftKey: e.shiftKey,+ altKey: e.altKey,+ metaKey: e.metaKey,+ },+ };}function serializeWheelEvent(e: WheelEvent, rect: DOMRect) {- return {- eventType: "wheel",- init: {- deltaX: e.deltaX,- deltaY: e.deltaY,- deltaZ: e.deltaZ,- deltaMode: e.deltaMode,- clientX: e.clientX - rect.left,- clientY: e.clientY - rect.top,- ctrlKey: e.ctrlKey,- shiftKey: e.shiftKey,- altKey: e.altKey,- metaKey: e.metaKey,- },- };+ return {+ eventType: "wheel",+ init: {+ deltaX: e.deltaX,+ deltaY: e.deltaY,+ deltaZ: e.deltaZ,+ deltaMode: e.deltaMode,+ clientX: e.clientX - rect.left,+ clientY: e.clientY - rect.top,+ ctrlKey: e.ctrlKey,+ shiftKey: e.shiftKey,+ altKey: e.altKey,+ metaKey: e.metaKey,+ },+ };}-// ----------------------------------------------------------------------------// Main component-// ----------------------------------------------------------------------------export function ThreeJsCanvas() {- const server = useServer();- const calibrationConfig = useAppSelector(selectCalibrationConfig);- const loadedCalibration = useAppSelector(selectLoadedCalibration);- const { subscribeToKeypointsRaw, subscribeToKeypointsFiltered, getLatestKeypointsRaw } =- useKeypointsSource();- const isPlayback = useHasKeypointsSourceProvider();- const containerRef = useRef<HTMLDivElement>(null);- const canvasRef = useRef<HTMLCanvasElement>(null);+ const server = useServer();+ const calibrationConfig = useAppSelector(selectCalibrationConfig);+ const loadedCalibration = useAppSelector(selectLoadedCalibration);+ const {+ subscribeToKeypointsRaw,+ subscribeToKeypointsFiltered,+ getLatestKeypointsRaw,+ } = useKeypointsSource();+ const isPlayback = useHasKeypointsSourceProvider();+ const containerRef = useRef<HTMLDivElement>(null);+ const canvasRef = useRef<HTMLCanvasElement>(null);- useCalibrationTomlLoader();+ useCalibrationTomlLoader();- // ── OffscreenCanvas transfer + worker init ────────────────────────────- // Uses a data-attribute on the DOM element itself (not a module-level flag)- // to prevent double-transfer. React StrictMode reuses the same canvas DOM- // element across its mount→unmount→remount cycle, so the attribute survives- // the cleanup/remount and correctly blocks the second transfer. On a real- // tab switch the old element is destroyed — the new element has no attribute.- //- // No cleanup teardown message: on a real unmount the worker's existing root- // may briefly become orphaned (rendering to a now-detached OffscreenCanvas),- // but the next mount's "init" triggers initRoot() which tears down any stale- // root before creating a new one. This avoids the StrictMode false-positive- // where cleanup→reinit would race with the async root.configure().- useEffect(() => {- const canvas = canvasRef.current;- const container = containerRef.current;- if (!canvas || !container) return;- if (canvas.dataset.offscreenTransferred === "true") return;- canvas.dataset.offscreenTransferred = "true";+ useEffect(() => {+ const canvas = canvasRef.current;+ const container = containerRef.current;+ if (!canvas || !container) return;+ if (canvas.dataset.offscreenTransferred === "true") return;+ canvas.dataset.offscreenTransferred = "true";- const rect = container.getBoundingClientRect();- const width = Math.max(1, Math.floor(rect.width));- const height = Math.max(1, Math.floor(rect.height));- const pixelRatio = Math.min(globalThis.devicePixelRatio ?? 1, 2);+ const rect = container.getBoundingClientRect();+ const width = Math.max(1, Math.floor(rect.width));+ const height = Math.max(1, Math.floor(rect.height));+ const pixelRatio = Math.min(globalThis.devicePixelRatio ?? 1, 2);- const offscreen = canvas.transferControlToOffscreen();- VIEWPORT_WORKER.postMessage(- {- type: "init",- payload: { canvas: offscreen, width, height, pixelRatio },- },- [offscreen],- );- }, []);+ const offscreen = canvas.transferControlToOffscreen();+ VIEWPORT_WORKER.postMessage(+ {+ type: "init",+ payload: { canvas: offscreen, width, height, pixelRatio },+ },+ [offscreen],+ );+ }, []);- // ── High-frequency streaming data ────────────────────────────────────────- // Frames are structured-cloned across the worker boundary. The Float32Array- // inside each KeypointsFrame is copied, not transferred, so the main thread- // retains access for getLatestKeypointsRaw (camera fit).- useEffect(() => {- return subscribeToKeypointsRaw((frame) => {- VIEWPORT_WORKER.postMessage({ type: "keypointsRaw", data: frame });- });- }, [subscribeToKeypointsRaw]);+ useEffect(() => {+ return subscribeToKeypointsRaw((frame) => {+ VIEWPORT_WORKER.postMessage({ type: "keypointsRaw", data: frame });+ });+ }, [subscribeToKeypointsRaw]);- useEffect(() => {- return subscribeToKeypointsFiltered((frame) => {- VIEWPORT_WORKER.postMessage({ type: "keypointsFiltered", data: frame });- });- }, [subscribeToKeypointsFiltered]);+ useEffect(() => {+ return subscribeToKeypointsFiltered((frame) => {+ VIEWPORT_WORKER.postMessage({ type: "keypointsFiltered", data: frame });+ });+ }, [subscribeToKeypointsFiltered]);- // ── Low-frequency config data ─────────────────────────────────────────────- // During playback, FileKeypointsSourceProvider owns the schema (fetched from- // the recording's tracker_schema.json). Pushing the live-server schema here- // would overwrite it with rtmpose_wholebody, breaking hand/face connections.- useEffect(() => {- if (isPlayback) return;- VIEWPORT_WORKER.postMessage({- type: "schemaState",- data: {- activeTrackerId: server.activeTrackerId,- trackerSchemas: server.trackerSchemas,- },- });- }, [isPlayback, server.activeTrackerId, server.trackerSchemas]);+ useEffect(() => {+ if (isPlayback) return;+ VIEWPORT_WORKER.postMessage({+ type: "schemaState",+ data: {+ activeTrackerId: server.activeTrackerId,+ trackerSchemas: server.trackerSchemas,+ },+ });+ }, [isPlayback, server.activeTrackerId, server.trackerSchemas]);- useEffect(() => {- VIEWPORT_WORKER.postMessage({ type: "calibrationConfig", data: calibrationConfig });- }, [calibrationConfig]);+ useEffect(() => {+ VIEWPORT_WORKER.postMessage({+ type: "calibrationConfig",+ data: calibrationConfig,+ });+ }, [calibrationConfig]);- useEffect(() => {- VIEWPORT_WORKER.postMessage({ type: "calibration", data: loadedCalibration });- }, [loadedCalibration]);+ useEffect(() => {+ VIEWPORT_WORKER.postMessage({+ type: "calibration",+ data: loadedCalibration,+ });+ }, [loadedCalibration]);- // ── Camera commands ───────────────────────────────────────────────────────- const handleFit = useCallback(() => {- VIEWPORT_WORKER.postMessage({ type: "fitCamera", data: getLatestKeypointsRaw() });- }, [getLatestKeypointsRaw]);+ const handleFit = useCallback(() => {+ VIEWPORT_WORKER.postMessage({+ type: "fitCamera",+ data: getLatestKeypointsRaw(),+ });+ }, [getLatestKeypointsRaw]);- const handleReset = useCallback(() => {- VIEWPORT_WORKER.postMessage({ type: "resetCamera" });- }, []);+ const handleReset = useCallback(() => {+ VIEWPORT_WORKER.postMessage({ type: "resetCamera" });+ }, []);- // ── Resize ───────────────────────────────────────────────────────────────- useEffect(() => {- const el = containerRef.current;- const canvas = canvasRef.current;- if (!el || !canvas) return;- const ro = new ResizeObserver((entries) => {- const { width, height } = entries[0].contentRect;- if (width === 0 && height === 0) return;- // Read layout properties BEFORE writing CSS to avoid forced reflow.- const top = el.offsetTop;- const left = el.offsetLeft;- // Set CSS size on the visible canvas — the OffscreenCanvas backing- // store is sized by the worker via root.configure({size}).- canvas.style.width = `${width}px`;- canvas.style.height = `${height}px`;- VIEWPORT_WORKER.postMessage({- type: "resize",- payload: {- width: Math.floor(width),- height: Math.floor(height),- top,- left,- },- });- });- ro.observe(el);- return () => ro.disconnect();- }, []);+ useEffect(() => {+ const el = containerRef.current;+ const canvas = canvasRef.current;+ if (!el || !canvas) return;+ const ro = new ResizeObserver((entries) => {+ const { width, height } = entries[0].contentRect;+ if (width === 0 && height === 0) return;+ const top = el.offsetTop;+ const left = el.offsetLeft;+ canvas.style.width = `${width}px`;+ canvas.style.height = `${height}px`;+ VIEWPORT_WORKER.postMessage({+ type: "resize",+ payload: {+ width: Math.floor(width),+ height: Math.floor(height),+ top,+ left,+ },+ });+ });+ ro.observe(el);+ return () => ro.disconnect();+ }, []);- // ── Pointer / wheel event forwarding ─────────────────────────────────────- useEffect(() => {- const canvas = canvasRef.current;- if (!canvas) return;+ useEffect(() => {+ const canvas = canvasRef.current;+ if (!canvas) return;- const onPointer = (e: PointerEvent) => {- // capture pointer on the visible element so move/up still fire after leaving the canvas- if (e.type === "pointerdown") {- try { canvas.setPointerCapture(e.pointerId); } catch { /* noop */ }- }- const rect = canvas.getBoundingClientRect();- VIEWPORT_WORKER.postMessage({- type: "domEvent",- payload: serializePointerEvent(e, rect),- });- };- const onWheel = (e: WheelEvent) => {- e.preventDefault();- const rect = canvas.getBoundingClientRect();- VIEWPORT_WORKER.postMessage({- type: "domEvent",- payload: serializeWheelEvent(e, rect),- });- };- const onContextMenu = (e: Event) => e.preventDefault();+ const onPointer = (e: PointerEvent) => {+ if (e.type === "pointerdown") {+ try {+ canvas.setPointerCapture(e.pointerId);+ } catch {+ /* noop */+ }+ }+ const rect = canvas.getBoundingClientRect();+ VIEWPORT_WORKER.postMessage({+ type: "domEvent",+ payload: serializePointerEvent(e, rect),+ });+ };+ const onWheel = (e: WheelEvent) => {+ e.preventDefault();+ const rect = canvas.getBoundingClientRect();+ VIEWPORT_WORKER.postMessage({+ type: "domEvent",+ payload: serializeWheelEvent(e, rect),+ });+ };+ const onContextMenu = (e: Event) => e.preventDefault();- const pointerTypes = [- "pointerdown",- "pointermove",- "pointerup",- "pointercancel",- "pointerleave",- ] as const;- pointerTypes.forEach((t) =>- canvas.addEventListener(t, onPointer as EventListener, { passive: false }),- );- canvas.addEventListener("wheel", onWheel as EventListener, { passive: false });- canvas.addEventListener("contextmenu", onContextMenu);- return () => {- pointerTypes.forEach((t) =>- canvas.removeEventListener(t, onPointer as EventListener),- );- canvas.removeEventListener("wheel", onWheel as EventListener);- canvas.removeEventListener("contextmenu", onContextMenu);- };- }, []);+ const pointerTypes = [+ "pointerdown",+ "pointermove",+ "pointerup",+ "pointercancel",+ "pointerleave",+ ] as const;+ pointerTypes.forEach((t) =>+ canvas.addEventListener(t, onPointer as EventListener, {+ passive: false,+ }),+ );+ canvas.addEventListener("wheel", onWheel as EventListener, {+ passive: false,+ });+ canvas.addEventListener("contextmenu", onContextMenu);+ return () => {+ pointerTypes.forEach((t) =>+ canvas.removeEventListener(t, onPointer as EventListener),+ );+ canvas.removeEventListener("wheel", onWheel as EventListener);+ canvas.removeEventListener("contextmenu", onContextMenu);+ };+ }, []);- // ── "F" key shortcut ─────────────────────────────────────────────────────- useEffect(() => {- const el = containerRef.current;- if (!el) return;- const onKey = (e: KeyboardEvent) => {- if (e.key === "f" || e.key === "F") {- e.preventDefault();- handleFit();- }- };- el.addEventListener("keydown", onKey);- return () => el.removeEventListener("keydown", onKey);- }, [handleFit]);+ useEffect(() => {+ const el = containerRef.current;+ if (!el) return;+ const onKey = (e: KeyboardEvent) => {+ if (e.key === "f" || e.key === "F") {+ e.preventDefault();+ handleFit();+ }+ };+ el.addEventListener("keydown", onKey);+ return () => el.removeEventListener("keydown", onKey);+ }, [handleFit]);- return (- <ViewportStateProvider>- <VisibilityForwarder />- <WorkerStatsReceiver />- <Box- ref={containerRef}- tabIndex={0}- sx={{ width: "100%", height: "100%", position: "relative", outline: "none" }}- >- <canvas- ref={canvasRef}- style={{- width: "100%",- height: "100%",- display: "block",- touchAction: "none",- }}- />- <ViewportOverlay onFitCamera={handleFit} onResetCamera={handleReset} />- </Box>- </ViewportStateProvider>- );+ return (+ <ViewportStateProvider>+ <VisibilityForwarder />+ <WorkerStatsReceiver />+ <div+ ref={containerRef}+ tabIndex={0}+ className="3d-viewport-container pos-rel w-full h-full"+ style={{ outline: "none" }}+ >+ <canvas+ ref={canvasRef}+ className="3d-viewport br-2 w-full h-full block"+ style={{+ touchAction: "none",++ background: "var(--color-bg-primary)",+ }}++ />+ <ViewportOverlay onFitCamera={handleFit} onResetCamera={handleReset} />+ </div>+ </ViewportStateProvider>+ );}diff --git a/freemocap-ui/src/components/viewport3d/hooks/useCalibrationTomlLoader.ts b/freemocap-ui/src/components/viewport3d/hooks/useCalibrationTomlLoader.tsindex a6010394..9b431ef1 100644--- a/freemocap-ui/src/components/viewport3d/hooks/useCalibrationTomlLoader.ts+++ b/freemocap-ui/src/components/viewport3d/hooks/useCalibrationTomlLoader.ts@@ -2,6 +2,7 @@ import { useEffect } from "react";import { useAppDispatch, useAppSelector } from "@/store";import {selectCalibrationDirectoryInfo,+ selectDismissedCalibrationPath,selectLoadedCalibration,} from "@/store/slices/calibration/calibration-slice";import { loadCalibrationToml } from "@/store/slices/calibration/calibration-thunks";@@ -11,17 +12,23 @@ import { loadCalibrationToml } from "@/store/slices/calibration/calibration-thun* watcher surfaces a new `lastSuccessfulCalibrationTomlPath`. Loads the file* through the Electron tRPC endpoint which parses the TOML in the main* process and returns structured camera data.+ *+ * Skips reloading a path the user has explicitly dismissed (e.g. via+ * "Clear calibration") until a new calibration is recorded/imported and+ * clears the dismissal.*/export function useCalibrationTomlLoader() {const dispatch = useAppDispatch();const directoryInfo = useAppSelector(selectCalibrationDirectoryInfo);const loaded = useAppSelector(selectLoadedCalibration);+ const dismissedPath = useAppSelector(selectDismissedCalibrationPath);const path = directoryInfo?.lastSuccessfulCalibrationTomlPath ?? null;useEffect(() => {if (!path) return;+ if (path === dismissedPath) return;if (loaded && loaded.path === path) return;dispatch(loadCalibrationToml({ path }));- }, [dispatch, path, loaded]);+ }, [dispatch, path, loaded, dismissedPath]);}diff --git a/freemocap-ui/src/components/viewport3d/scene/ViewportOverlay.tsx b/freemocap-ui/src/components/viewport3d/scene/ViewportOverlay.tsxindex 5c45528b..6433c442 100644--- a/freemocap-ui/src/components/viewport3d/scene/ViewportOverlay.tsx+++ b/freemocap-ui/src/components/viewport3d/scene/ViewportOverlay.tsx@@ -1,153 +1,205 @@import { memo, useCallback, useEffect, useRef, useState } from "react";-import {- Box,- Checkbox,- Collapse,- FormControlLabel,- IconButton,- Paper,- Tooltip,- Typography,-} from "@mui/material";-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";-import ExpandLessIcon from "@mui/icons-material/ExpandLess";-import CenterFocusStrongIcon from "@mui/icons-material/CenterFocusStrong";-import HomeIcon from "@mui/icons-material/Home";import { ViewportVisibility } from "../helpers/viewport3d-types";import { useViewportState } from "./ViewportStateContext";+import IconButton from "@/components/ui-components/IconButton";interface ViewportOverlayProps {- onFitCamera: () => void;- onResetCamera: () => void;+ onFitCamera: () => void;+ onResetCamera: () => void;}-export function ViewportOverlay({ onFitCamera, onResetCamera }: ViewportOverlayProps) {- const { visibility, setVisibility, statsRef } = useViewportState();- const [expanded, setExpanded] = useState(false);+export function ViewportOverlay({+ onFitCamera,+ onResetCamera,+}: ViewportOverlayProps) {+ const { visibility, setVisibility, statsRef } = useViewportState();+ const [expanded, setExpanded] = useState(false);- // DOM refs for count spans — mutated directly so stats never trigger React re-renders.- const rawCountRef = useRef<HTMLSpanElement | null>(null);- const filteredCountRef = useRef<HTMLSpanElement | null>(null);- const rigidBodiesCountRef = useRef<HTMLSpanElement | null>(null);- const facePointsCountRef = useRef<HTMLSpanElement | null>(null);- const connectionsCountRef = useRef<HTMLSpanElement | null>(null);- const camerasCountRef = useRef<HTMLSpanElement | null>(null);- const totalPointsRef = useRef<HTMLSpanElement | null>(null);- const totalBodiesRef = useRef<HTMLSpanElement | null>(null);+ const rawCountRef = useRef<HTMLSpanElement | null>(null);+ const filteredCountRef = useRef<HTMLSpanElement | null>(null);+ const rigidBodiesCountRef = useRef<HTMLSpanElement | null>(null);+ const facePointsCountRef = useRef<HTMLSpanElement | null>(null);+ const connectionsCountRef = useRef<HTMLSpanElement | null>(null);+ const camerasCountRef = useRef<HTMLSpanElement | null>(null);+ const totalPointsRef = useRef<HTMLSpanElement | null>(null);+ const totalBodiesRef = useRef<HTMLSpanElement | null>(null);- useEffect(() => {- const id = setInterval(() => {- const s = statsRef.current;- if (rawCountRef.current) rawCountRef.current.textContent = String(s.keypointsRaw);- if (filteredCountRef.current) filteredCountRef.current.textContent = String(s.keypointsFiltered);- if (rigidBodiesCountRef.current) rigidBodiesCountRef.current.textContent = String(s.rigidBodies);- if (facePointsCountRef.current) facePointsCountRef.current.textContent = String(s.facePoints);- if (connectionsCountRef.current) connectionsCountRef.current.textContent = String(s.connections);- if (camerasCountRef.current) camerasCountRef.current.textContent = String(s.cameras);- if (totalPointsRef.current) totalPointsRef.current.textContent = String(s.keypointsRaw + s.keypointsFiltered + s.facePoints);- if (totalBodiesRef.current) totalBodiesRef.current.textContent = String(s.rigidBodies);- }, 500);- return () => clearInterval(id);- }, [statsRef]);+ useEffect(() => {+ const id = setInterval(() => {+ const s = statsRef.current;+ if (rawCountRef.current)+ rawCountRef.current.textContent = String(s.keypointsRaw);+ if (filteredCountRef.current)+ filteredCountRef.current.textContent = String(s.keypointsFiltered);+ if (rigidBodiesCountRef.current)+ rigidBodiesCountRef.current.textContent = String(s.rigidBodies);+ if (facePointsCountRef.current)+ facePointsCountRef.current.textContent = String(s.facePoints);+ if (connectionsCountRef.current)+ connectionsCountRef.current.textContent = String(s.connections);+ if (camerasCountRef.current)+ camerasCountRef.current.textContent = String(s.cameras);+ if (totalPointsRef.current)+ totalPointsRef.current.textContent = String(+ s.keypointsRaw + s.keypointsFiltered + s.facePoints,+ );+ if (totalBodiesRef.current)+ totalBodiesRef.current.textContent = String(s.rigidBodies);+ }, 500);+ return () => clearInterval(id);+ }, [statsRef]);- const toggle = useCallback((key: keyof ViewportVisibility) => {- setVisibility(prev => ({ ...prev, [key]: !prev[key] }));- }, [setVisibility]);+ const toggle = useCallback(+ (key: keyof ViewportVisibility) => {+ setVisibility((prev) => ({ ...prev, [key]: !prev[key] }));+ },+ [setVisibility],+ );- const toggleEnvironment = useCallback(() => toggle("environment"), [toggle]);- const toggleKeypointsRaw = useCallback(() => toggle("keypointsRaw"), [toggle]);- const toggleFiltered = useCallback(() => toggle("keypointsFiltered"), [toggle]);- const toggleRigidBodies = useCallback(() => toggle("rigidBodies"), [toggle]);- const toggleFace = useCallback(() => toggle("face"), [toggle]);- const toggleConnections = useCallback(() => toggle("connections"), [toggle]);- const toggleCameras = useCallback(() => toggle("cameras"), [toggle]);+ const toggleEnvironment = useCallback(() => toggle("environment"), [toggle]);+ const toggleKeypointsRaw = useCallback(+ () => toggle("keypointsRaw"),+ [toggle],+ );+ const toggleFiltered = useCallback(+ () => toggle("keypointsFiltered"),+ [toggle],+ );+ const toggleRigidBodies = useCallback(() => toggle("rigidBodies"), [toggle]);+ const toggleFace = useCallback(() => toggle("face"), [toggle]);+ const toggleConnections = useCallback(() => toggle("connections"), [toggle]);+ const toggleCameras = useCallback(() => toggle("cameras"), [toggle]);- return (- <>- {/* Top-left: visibility + stats */}- <Paper- sx={{- position: "absolute", top: 8, left: 8,- p: 1, bgcolor: "rgba(0,0,0,0.75)", color: "#ccc",- minWidth: 180, userSelect: "none",- }}- elevation={3}- >- <Box sx={{ display: "flex", alignItems: "center", justifyContent: "space-between" }}>- <Typography variant="caption" fontWeight="bold">Viewport</Typography>- <IconButton size="small" onClick={() => setExpanded(e => !e)} sx={{ color: "#ccc" }}>- {expanded ? <ExpandLessIcon fontSize="small" /> : <ExpandMoreIcon fontSize="small" />}- </IconButton>- </Box>+ return (+ <>+ <div+ className="viewport-options pos-abs top-8 left-8 p-2 br-1"+ style={{+ minWidth: 180,+ userSelect: "none",+ }}+ >+ <div className="flex flex-row items-center justify-content-space-between">+ <p className="text sm m-0" style={{ fontWeight: "bold" }}>+ Viewport+ </p>+ <IconButton+ icon={expanded ? "arrowup-icon" : "arrowdown-icon"}+ className="icon-size-25 p-1"+ onClick={() => setExpanded((e) => !e)}+ style={{ color: "#ccc" }}+ tooltip={true}+ tooltipText="bodies & points"+ tooltipPosition="pos-left"+ />+ </div>- <VisToggle label="Environment" checked={visibility.environment} onChange={toggleEnvironment} />- <VisToggle label="Raw" countRef={rawCountRef} checked={visibility.keypointsRaw} onChange={toggleKeypointsRaw} />- <VisToggle label="Filtered" countRef={filteredCountRef} checked={visibility.keypointsFiltered} onChange={toggleFiltered} />- <VisToggle label="Rigid bodies" countRef={rigidBodiesCountRef} checked={visibility.rigidBodies} onChange={toggleRigidBodies} />- <VisToggle label="Face" countRef={facePointsCountRef} checked={visibility.face} onChange={toggleFace} />- <VisToggle label="Connections" countRef={connectionsCountRef} checked={visibility.connections} onChange={toggleConnections} />- <VisToggle label="Cameras" countRef={camerasCountRef} checked={visibility.cameras} onChange={toggleCameras} />+ <VisToggle+ label="Environment"+ checked={visibility.environment}+ onChange={toggleEnvironment}+ />+ <VisToggle+ label="Raw"+ countRef={rawCountRef}+ checked={visibility.keypointsRaw}+ onChange={toggleKeypointsRaw}+ />+ <VisToggle+ label="Filtered"+ countRef={filteredCountRef}+ checked={visibility.keypointsFiltered}+ onChange={toggleFiltered}+ />+ <VisToggle+ label="Rigid bodies"+ countRef={rigidBodiesCountRef}+ checked={visibility.rigidBodies}+ onChange={toggleRigidBodies}+ />+ <VisToggle+ label="Face"+ countRef={facePointsCountRef}+ checked={visibility.face}+ onChange={toggleFace}+ />+ <VisToggle+ label="Connections"+ countRef={connectionsCountRef}+ checked={visibility.connections}+ onChange={toggleConnections}+ />+ <VisToggle+ label="Cameras"+ countRef={camerasCountRef}+ checked={visibility.cameras}+ onChange={toggleCameras}+ />- <Collapse in={expanded}>- <Typography variant="caption" sx={{ mt: 1, display: "block", color: "#888" }}>- Total points: <span ref={totalPointsRef}>0</span>- <br />- Total bodies: <span ref={totalBodiesRef}>0</span>- </Typography>- </Collapse>- </Paper>+ {expanded && (+ <p className="text sm mt-1 block" style={{ color: "#888" }}>+ Total points: <span ref={totalPointsRef}>0</span>+ <br />+ Total bodies: <span ref={totalBodiesRef}>0</span>+ </p>+ )}+ </div>- {/* Bottom-right: camera buttons */}- <Box sx={{ position: "absolute", bottom: 8, right: 8, display: "flex", gap: 0.5 }}>- <Tooltip title="Fit to skeleton (F)">- <IconButton onClick={onFitCamera} size="small" sx={btnSx}>- <CenterFocusStrongIcon fontSize="small" />- </IconButton>- </Tooltip>- <Tooltip title="Reset view">- <IconButton onClick={onResetCamera} size="small" sx={btnSx}>- <HomeIcon fontSize="small" />- </IconButton>- </Tooltip>- </Box>+ <div className="flex flex-row gap-1 pos-abs bottom-8 right-8">+ <IconButton+ icon="frame-icon"+ onClick={onFitCamera}+ tooltip={true}+ tooltipText="Fit to skeleton F"+ tooltipPosition="pos-top"+ />+ <IconButton+ icon="rotate-icon"+ onClick={onResetCamera}+ tooltip={true}+ tooltipText="Reset view"+ tooltipPosition="pos-top-right"+ />+ </div>- {/* Bottom-left: hint */}- <Typography- variant="caption"- sx={{ position: "absolute", bottom: 8, left: 8, color: "#666", pointerEvents: "none" }}- >- Rotate: drag · Zoom: scroll · Pan: right-drag- </Typography>- </>- );+ <p+ className="text sm pos-abs bottom-8 left-8 m-0"+ style={{ color: "#666", pointerEvents: "none" }}+ >+ Rotate: drag · Zoom: scroll · Pan: right-drag+ </p>+ </>+ );}const VisToggle = memo(function VisToggle({- label,- countRef,- checked,- onChange,+ label,+ countRef,+ checked,+ onChange,}: {- label: string;- countRef?: React.RefObject<HTMLSpanElement | null>;- checked: boolean;- onChange: () => void;+ label: string;+ countRef?: React.RefObject<HTMLSpanElement | null>;+ checked: boolean;+ onChange: () => void;}) {- const labelNode = countRef- ? <span>{ label } (<span ref={countRef}>0</span>)</span>- : label;- return (- <FormControlLabel- sx={{ m: 0, ml: -0.5, "& .MuiTypography-root": { fontSize: "0.7rem" } }}- control={<Checkbox size="small" checked={checked} onChange={onChange} sx={{ p: 0.3, color: "#888", "&.Mui-checked": { color: "#aaa" } }} />}- label={labelNode}- />- );+ const labelNode = countRef ? (+ <span>+ {label} (<span ref={countRef}>0</span>)+ </span>+ ) : (+ label+ );+ return (+ <div+ className="flex flex-row items-center justify-content-space-between gap-1"+ style={{ margin: "2px 0", cursor: "pointer" }}+ onClick={onChange}+ >+ <span style={{ fontSize: "0.7rem", color: "#ccc" }}>{labelNode}</span>+ <div className={`icon toggle-container sm ${checked ? "on" : "off"}`}>+ <div className="icon toggle-circle" />+ </div>+ </div>+ );});--const btnSx = {- bgcolor: "rgba(0,0,0,0.6)",- color: "#ccc",- boxShadow: 2,- "&:hover": { bgcolor: "rgba(60,60,60,0.8)" },-};diff --git a/freemocap-ui/src/hooks/useDismissibleTooltip.ts b/freemocap-ui/src/hooks/useDismissibleTooltip.tsnew file mode 100644index 00000000..ead22892--- /dev/null+++ b/freemocap-ui/src/hooks/useDismissibleTooltip.ts@@ -0,0 +1,16 @@+import { useState, useCallback } from "react";++export function useDismissibleTooltip(storageKey: string) {+ const [isOpen, setIsOpen] = useState(+ () => localStorage.getItem(storageKey) !== "true",+ );++ const dismiss = useCallback(() => {+ localStorage.setItem(storageKey, "true");+ setIsOpen(false);+ }, [storageKey]);++ const open = useCallback(() => setIsOpen(true), []);++ return [isOpen, open, dismiss] as const;+}diff --git a/freemocap-ui/src/hooks/useDraggableTooltips.tsx b/freemocap-ui/src/hooks/useDraggableTooltips.tsxnew file mode 100644index 00000000..eb0e0cfa--- /dev/null+++ b/freemocap-ui/src/hooks/useDraggableTooltips.tsx@@ -0,0 +1,214 @@+/* * ::::: by Pooya Moradi M. 2025 <[email protected]> :::::+ *+ * 🔧 React Hook: useDraggableTooltips+ *+ * 📘 PURPOSE:+ * This hook enables draggable behavior for any DOM element+ * that has the CSS class `.draggable`.+ * It supports both mouse and touch input, prevents jumpy movement,+ * and disables text selection while dragging for a smooth UX.+ * Uses CSS transform for positioning, so it works with ANY positioning+ * properties (left, right, top, bottom, or combinations).+ * Properly handles nested components with fixed or absolute positioning.+ *+ * 🚀 HOW TO USE (React):+ * 1. Save this file as: `src/hooks/useDraggableTooltips.ts` (or .js)+ * 2. Import and call the hook once in a component that mounts globally,+ * such as App.tsx or a Layout component:+ *+ * ```jsx+ * import useDraggableTooltips from "@/hooks/useDraggableTooltips";+ *+ * export default function App() {+ * useDraggableTooltips(); // Activates draggable behavior globally+ *+ * return (+ * <div>+ * <div className="draggable" style={{ position: "absolute", top: "100px", left: "50px" }}>+ * <div style={{ position: "fixed", top: 0, right: 0 }}>+ * This will move with the parent!+ * </div>+ * <div style={{ position: "absolute", bottom: 0 }}>+ * So will this!+ * </div>+ * Drag the parent around!+ * </div>+ * </div>+ * );+ * }+ * ```+ *+ * 3. Any element with the `.draggable` class will automatically+ * become movable on the screen.+ *+ * 🧩 NOTES:+ * - The hook automatically observes newly added `.draggable` elements.+ * - Elements with `position: static` are changed to `absolute` for proper movement.+ * - Uses `transform: translate()` internally, so it works with any combination+ * of CSS positioning properties (left, right, top, bottom).+ * - Inner components with position: fixed or absolute move correctly with the parent.+ * - Fixed positioned nested elements are temporarily converted to absolute during drag+ * to ensure they follow the parent element, then restored to fixed after dragging.+ * - Nested absolute positioned elements maintain their relative positioning.+ * - Cursor changes between "grab" and "grabbing" while dragging.+ * - For accessibility, avoid attaching `.draggable` to buttons or inputs directly.+ *+ * ✅ Example Styles (optional):+ * .draggable {+ * cursor: grab;+ * user-select: none;+ * touch-action: none;+ * }+ */+import { useEffect } from "react";++export default function useDraggableTooltips(): void {+ useEffect(() => {+ const DRAG_THRESHOLD = 4; // px before drag starts++ const toggleUserSelect = (on: boolean): void => {+ document.documentElement.style.userSelect = on ? "" : "none";+ };++ const makeDraggable = (el: HTMLElement): void => {+ if ((el as any).__draggable_installed) return;+ (el as any).__draggable_installed = true;++ el.style.touchAction = "none";+ el.style.cursor = "grab";++ const computedPos = window.getComputedStyle(el).position;+ if (computedPos === "static") {+ el.style.position = "absolute";+ }++ // Ensure the element creates a stacking context for nested positioned elements+ el.style.willChange = "transform";++ // Establish transform origin and ensure proper context for nested fixed/absolute elements+ if (!el.style.transformOrigin) {+ el.style.transformOrigin = "0 0";+ }++ let isPointerDown = false;+ let dragging = false;+ let startPointerX = 0;+ let startPointerY = 0;+ let currentTranslateX = 0;+ let currentTranslateY = 0;+ let accumulatedTranslateX = 0;+ let accumulatedTranslateY = 0;+ let originalChildPositions: Map<HTMLElement, string> = new Map();+ let originalChildZIndexes: Map<HTMLElement, string> = new Map();++ const onPointerDown = (ev: PointerEvent): void => {+ if (ev.pointerType === "mouse" && ev.button !== 0) return;++ const target = ev.target as HTMLElement;+ if (target.closest("button, input, textarea, select, a")) return;++ isPointerDown = true;+ startPointerX = ev.pageX;+ startPointerY = ev.pageY;++ // Store the accumulated offset from previous drags+ accumulatedTranslateX = currentTranslateX;+ accumulatedTranslateY = currentTranslateY;++ // Visually indicate active grab+ el.style.cursor = "grabbing";++ // Fix nested positioned elements before dragging starts+ const fixedElements = el.querySelectorAll<HTMLElement>("[style*='position: fixed'], [style*='position:fixed']");+ const absoluteElements = el.querySelectorAll<HTMLElement>("[style*='position: absolute'], [style*='position:absolute']");++ fixedElements.forEach((child) => {+ originalChildPositions.set(child, child.style.position);+ originalChildZIndexes.set(child, child.style.zIndex);+ child.style.position = "absolute";+ child.style.zIndex = "auto";+ });++ absoluteElements.forEach((child) => {+ originalChildZIndexes.set(child, child.style.zIndex);+ child.style.zIndex = "auto";+ });+ };++ const onPointerMove = (ev: PointerEvent): void => {+ if (!isPointerDown) return;++ const dx = ev.pageX - startPointerX;+ const dy = ev.pageY - startPointerY;++ if (!dragging && Math.abs(dx) + Math.abs(dy) > DRAG_THRESHOLD) {+ dragging = true;+ toggleUserSelect(false);+ el.style.zIndex = "9999";++ // Ensure parent has position context for nested elements+ if (window.getComputedStyle(el).position === "static") {+ el.style.position = "relative";+ }+ }++ if (dragging) {+ ev.preventDefault();++ // Apply new drag relative to the accumulated offset+ currentTranslateX = accumulatedTranslateX + dx;+ currentTranslateY = accumulatedTranslateY + dy;+ el.style.transform = `translate(${currentTranslateX}px, ${currentTranslateY}px)`;+ }+ };++ const onPointerUp = (): void => {+ if (dragging) {+ toggleUserSelect(true);++ // Restore original positioning of nested elements+ originalChildPositions.forEach((originalPos, child) => {+ child.style.position = originalPos;+ });+ originalChildZIndexes.forEach((originalZIndex, child) => {+ child.style.zIndex = originalZIndex;+ });++ // Clear the maps for the next drag+ originalChildPositions.clear();+ originalChildZIndexes.clear();+ }+ isPointerDown = false;+ dragging = false;+ el.style.cursor = "grab";+ };++ el.addEventListener("pointerdown", onPointerDown);+ window.addEventListener("pointermove", onPointerMove, { passive: false });+ window.addEventListener("pointerup", onPointerUp);+ };++ // Initialize all existing draggable elements+ document.querySelectorAll<HTMLElement>(".draggable").forEach(makeDraggable);++ // Observe dynamically added draggable elements+ const observer = new MutationObserver((mutations) => {+ for (const m of mutations) {+ for (const node of m.addedNodes) {+ if (!(node instanceof HTMLElement)) continue;+ if (node.classList.contains("draggable")) makeDraggable(node);+ node.querySelectorAll<HTMLElement>(".draggable").forEach(makeDraggable);+ }+ }+ });++ observer.observe(document.documentElement, { childList: true, subtree: true });++ console.log("✅ Draggable tooltips enabled (no-jump version).");++ return () => {+ observer.disconnect();+ toggleUserSelect(true);+ };+ }, []);+}diff --git a/freemocap-ui/src/hooks/useMenuActions.ts b/freemocap-ui/src/hooks/useMenuActions.tsindex 0b4a02d5..7abf436b 100644--- a/freemocap-ui/src/hooks/useMenuActions.ts+++ b/freemocap-ui/src/hooks/useMenuActions.ts@@ -3,7 +3,6 @@ import {useEffect} from 'react';import {useNavigate} from 'react-router-dom';import {useTranslation} from 'react-i18next';import {useAppDispatch, useAppSelector} from '@/store';-import {themeModeToggled} from '@/store/slices/theme';import {camerasConnectOrUpdate, closeCameras, detectCameras, pauseUnpauseCameras} from '@/store/slices/cameras';import {stopRecording} from '@/store/slices/recording';import {selectVideoLoadFolder} from '@/store/slices/videos';@@ -116,9 +115,6 @@ export function useMenuActions({ onToggleSidebar }: UseMenuActionsParams): voidbreak;// View- case 'toggle-theme':- dispatch(themeModeToggled());- break;case 'toggle-sidebar':onToggleSidebar();break;diff --git a/freemocap-ui/src/hooks/useRealtimePipelineSync.ts b/freemocap-ui/src/hooks/useRealtimePipelineSync.tsnew file mode 100644index 00000000..9d31566b--- /dev/null+++ b/freemocap-ui/src/hooks/useRealtimePipelineSync.ts@@ -0,0 +1,74 @@+import {useCallback} from "react";+import {useAppDispatch, useAppSelector} from "@/store/hooks";+import {+ applyRealtimePipeline,+ closePipeline,+ pipelineConfigUpdated,+ selectAggregatorConfig,+ selectCameraNodeConfig,+ selectCanConnectPipeline,+ selectCanDisconnectPipeline,+ selectIsPipelineConnected,+ selectIsPipelineLoading,+ selectPipelineConfig,+} from "@/store/slices/realtime";+import {RealtimePipelineConfig} from "@/store/slices/realtime/realtime-types";++/**+ * Shared realtime-pipeline sync logic used by the Realtime Pipeline sidebar panel,+ * the streaming-view settings overlay, and the RTP settings modals — keeping all of+ * them in sync with the same `realtime` slice state and apply/connect behavior.+ */+export function useRealtimePipelineSync() {+ const dispatch = useAppDispatch();++ const isConnected = useAppSelector(selectIsPipelineConnected);+ const isLoading = useAppSelector(selectIsPipelineLoading);+ const canConnect = useAppSelector(selectCanConnectPipeline);+ const canDisconnect = useAppSelector(selectCanDisconnectPipeline);+ const pipelineConfig = useAppSelector(selectPipelineConfig);+ const cameraNodeConfig = useAppSelector(selectCameraNodeConfig);+ const aggregatorConfig = useAppSelector(selectAggregatorConfig);++ /** Applies a new pipeline config live if connected, otherwise updates local config only. */+ const applyOrUpdatePipelineConfig = useCallback(+ (newConfig: RealtimePipelineConfig) => {+ if (isConnected) {+ dispatch(applyRealtimePipeline(newConfig));+ } else {+ dispatch(pipelineConfigUpdated(newConfig));+ }+ },+ [dispatch, isConnected]+ );++ /** Re-applies the current pipeline config if connected — call after a mocap detector/filter config change. */+ const triggerRealtimeApply = useCallback(() => {+ if (isConnected) {+ dispatch(applyRealtimePipeline(pipelineConfig));+ }+ }, [dispatch, isConnected, pipelineConfig]);++ /** Connects or disconnects the realtime pipeline. */+ const toggleConnection = useCallback(async () => {+ if (isLoading) return;+ if (isConnected) {+ await dispatch(closePipeline());+ } else {+ await dispatch(applyRealtimePipeline(pipelineConfig));+ }+ }, [dispatch, isConnected, isLoading, pipelineConfig]);++ return {+ isConnected,+ isLoading,+ canConnect,+ canDisconnect,+ pipelineConfig,+ cameraNodeConfig,+ aggregatorConfig,+ applyOrUpdatePipelineConfig,+ triggerRealtimeApply,+ toggleConnection,+ };+}diff --git a/freemocap-ui/src/i18n/locales/am-amharic.json b/freemocap-ui/src/i18n/locales/am-amharic.jsonindex 8612de5a..74ed78fe 100644--- a/freemocap-ui/src/i18n/locales/am-amharic.json+++ b/freemocap-ui/src/i18n/locales/am-amharic.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "እንኳን ወደ FreeMoCap በደህና መጡ","welcomeSubtitle": "የተመሳሰሉ ቪዲዮዎችን ይቅረጹ እና ይመልከቱ","sendAnonymousPings": "ስም-አልባ የአጠቃቀም ፒንጎችን ላክ",diff --git a/freemocap-ui/src/i18n/locales/bn-bangla.json b/freemocap-ui/src/i18n/locales/bn-bangla.jsonindex 43519830..b2877f4f 100644--- a/freemocap-ui/src/i18n/locales/bn-bangla.json+++ b/freemocap-ui/src/i18n/locales/bn-bangla.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "FreeMoCap-এ স্বাগতম","welcomeSubtitle": "সিঙ্ক্রোনাইজড ভিডিও রেকর্ড ও দেখুন","sendAnonymousPings": "বেনামী ব্যবহার ডেটা পাঠান",diff --git a/freemocap-ui/src/i18n/locales/ca-catala.json b/freemocap-ui/src/i18n/locales/ca-catala.jsonindex ae305f35..86a06648 100644--- a/freemocap-ui/src/i18n/locales/ca-catala.json+++ b/freemocap-ui/src/i18n/locales/ca-catala.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Benvingut a FreeMoCap","welcomeSubtitle": "Enregistra i visualitza vídeos sincronitzats","sendAnonymousPings": "Envia pings d'ús anònims",diff --git a/freemocap-ui/src/i18n/locales/chr-tsalagi.json b/freemocap-ui/src/i18n/locales/chr-tsalagi.jsonindex 1fe92304..ad4ffe50 100644--- a/freemocap-ui/src/i18n/locales/chr-tsalagi.json+++ b/freemocap-ui/src/i18n/locales/chr-tsalagi.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-24"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "ᏙᎯᏱ FreeMoCap","welcomeSubtitle": "ᏗᏓᎴᏂᏍᎬ ᎠᎴ ᎠᎦᏎᏍᏗ ᎤᎾᎵᎪᏒ ᏗᏓᏴᎳᏛᏍᎩ","sendAnonymousPings": "ᎠᏓᏅᏖᏗ ᎦᎸᎳᏗ ᎪᏪᎵᏍᎩ ᏗᎧᏃᎩᏍᏗ",diff --git a/freemocap-ui/src/i18n/locales/cs-cestina.json b/freemocap-ui/src/i18n/locales/cs-cestina.jsonindex 39e617cb..549b86f2 100644--- a/freemocap-ui/src/i18n/locales/cs-cestina.json+++ b/freemocap-ui/src/i18n/locales/cs-cestina.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Vítejte v FreeMoCap","welcomeSubtitle": "Nahrávejte a prohlížejte synchronizovaná videa","sendAnonymousPings": "Odesílat anonymní data o využití",diff --git a/freemocap-ui/src/i18n/locales/de-deutsch.json b/freemocap-ui/src/i18n/locales/de-deutsch.jsonindex 919a5c3a..686aa4d8 100644--- a/freemocap-ui/src/i18n/locales/de-deutsch.json+++ b/freemocap-ui/src/i18n/locales/de-deutsch.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Willkommen bei FreeMoCap","welcomeSubtitle": "Synchronisierte Videos aufnehmen und ansehen","sendAnonymousPings": "Anonyme Nutzungsdaten senden",diff --git a/freemocap-ui/src/i18n/locales/el-ellinika.json b/freemocap-ui/src/i18n/locales/el-ellinika.jsonindex 58364908..6e8f93b8 100644--- a/freemocap-ui/src/i18n/locales/el-ellinika.json+++ b/freemocap-ui/src/i18n/locales/el-ellinika.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Καλώς ήρθατε στο FreeMoCap","welcomeSubtitle": "Εγγραφή και Προβολή Συγχρονισμένων Βίντεο","sendAnonymousPings": "Αποστολή ανώνυμων ping χρήσης",diff --git a/freemocap-ui/src/i18n/locales/en-english.json b/freemocap-ui/src/i18n/locales/en-english.jsonindex 749b5bf7..be348ba1 100644--- a/freemocap-ui/src/i18n/locales/en-english.json+++ b/freemocap-ui/src/i18n/locales/en-english.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-22"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Welcome to FreeMoCap","welcomeSubtitle": "Record and View Synchronized Videos","sendAnonymousPings": "Send anonymous usage pings",@@ -85,6 +85,7 @@"extractFramesOnLoad": "Extract frames on load","generateThumbnails": "Generate thumbnails","noVideosLoaded": "No videos loaded",+ "videoPlaybackError": "Video format not supported by this player","filterVideos": "Filter videos...","openVideo": "Open video","openFolder": "Open folder in file explorer",@@ -93,10 +94,13 @@"jumpToEnd": "Jump to end (End)","loopOn": "Loop is on (L to toggle)","loopOff": "Loop playback (L)",+"syncInfo": "Sync info","syncInfoTitle": "Recording playback may show desynchronization not present in the recorded videos. Matched frame numbers represent images from the same time slice. We are working on a fix. ","syncInfoBody": "Browser video playback does not guarantee sample-accurate synchronization across multiple streams. The player uses a leader-follower strategy and corrects drift when it exceeds a small tolerance, but minor desynchronization (1–2 frames) can occur","previousFrame": "Previous frame (← / Shift+← for 10)",+ "pause": "Pause (Space)",+ "play": "Play (Space)","nextFrame": "Next frame (→ / Shift+→ for 10)","zoomIn": "Zoom In","zoomOut": "Zoom Out",@@ -124,8 +128,8 @@"aiTranslated": "AI-translated","humanTranslated": "Human-translated","humanValidated": "Human-validated",- "connectCameras": "Connect to selected cameras or update connected cameras",- "connectToCameras": "Connect to Cameras",+ "connectCameras": "Connect Cameras",+ "connectToCameras": "Connect Cameras","documentation": "Documentation","roadmap": "Roadmap","resumeStreaming": "Resume streaming",@@ -175,8 +179,8 @@"startingIn": "Starting in {{countdown}}...","stopping": "Stopping...","starting": "Starting...",- "stopRecordingButton": "🔴 Stop Recording",- "startRecordingButton": "🔴 Start Recording",+ "stopRecordingButton": "Stop Recording",+ "startRecordingButton": "Start Recording","camerasCount": "Cameras ({{count}})","availableCamerasCount": "Available ({{count}})","server": "Server",diff --git a/freemocap-ui/src/i18n/locales/es-espanol.json b/freemocap-ui/src/i18n/locales/es-espanol.jsonindex 3b477f2e..325b07d3 100644--- a/freemocap-ui/src/i18n/locales/es-espanol.json+++ b/freemocap-ui/src/i18n/locales/es-espanol.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-22"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Bienvenido a FreeMoCap","welcomeSubtitle": "Graba y visualiza videos sincronizados","sendAnonymousPings": "Enviar pings de uso anónimos",diff --git a/freemocap-ui/src/i18n/locales/fa-farsi.json b/freemocap-ui/src/i18n/locales/fa-farsi.jsonindex 6830b939..1894161b 100644--- a/freemocap-ui/src/i18n/locales/fa-farsi.json+++ b/freemocap-ui/src/i18n/locales/fa-farsi.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "به FreeMoCap خوش آمدید","welcomeSubtitle": "ضبط و مشاهده ویدیوهای همگامسازی شده","sendAnonymousPings": "ارسال دادههای استفاده ناشناس",diff --git a/freemocap-ui/src/i18n/locales/fr-francais.json b/freemocap-ui/src/i18n/locales/fr-francais.jsonindex b265778e..e42ee1ea 100644--- a/freemocap-ui/src/i18n/locales/fr-francais.json+++ b/freemocap-ui/src/i18n/locales/fr-francais.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Bienvenue sur FreeMoCap","welcomeSubtitle": "Enregistrez et visionnez des vidéos synchronisées","sendAnonymousPings": "Envoyer des données d'utilisation anonymes",diff --git a/freemocap-ui/src/i18n/locales/hi-hindi.json b/freemocap-ui/src/i18n/locales/hi-hindi.jsonindex 43862d79..849e0472 100644--- a/freemocap-ui/src/i18n/locales/hi-hindi.json+++ b/freemocap-ui/src/i18n/locales/hi-hindi.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "FreeMoCap में आपका स्वागत है","welcomeSubtitle": "सिंक्रनाइज़्ड वीडियो रिकॉर्ड और देखें","sendAnonymousPings": "गुमनाम उपयोग डेटा भेजें",diff --git a/freemocap-ui/src/i18n/locales/hr-hrvatski.json b/freemocap-ui/src/i18n/locales/hr-hrvatski.jsonindex 17a221bc..5bf5d7b9 100644--- a/freemocap-ui/src/i18n/locales/hr-hrvatski.json+++ b/freemocap-ui/src/i18n/locales/hr-hrvatski.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Dobrodošli u FreeMoCap","welcomeSubtitle": "Snimajte i gledajte sinkronizirane videozapise","sendAnonymousPings": "Šalji anonimne pingove korištenja",diff --git a/freemocap-ui/src/i18n/locales/hu-magyar.json b/freemocap-ui/src/i18n/locales/hu-magyar.jsonindex db07ca5b..b292bb7b 100644--- a/freemocap-ui/src/i18n/locales/hu-magyar.json+++ b/freemocap-ui/src/i18n/locales/hu-magyar.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Üdvözöljük a FreeMoCap-ben","welcomeSubtitle": "Szinkronizált Videók Rögzítése és Megtekintése","sendAnonymousPings": "Anonim használati pingek küldése",diff --git a/freemocap-ui/src/i18n/locales/id-bahasa-indonesia.json b/freemocap-ui/src/i18n/locales/id-bahasa-indonesia.jsonindex 41c9d102..ff08e8f2 100644--- a/freemocap-ui/src/i18n/locales/id-bahasa-indonesia.json+++ b/freemocap-ui/src/i18n/locales/id-bahasa-indonesia.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Selamat datang di FreeMoCap","welcomeSubtitle": "Rekam dan lihat video tersinkronisasi","sendAnonymousPings": "Kirim data penggunaan anonim",diff --git a/freemocap-ui/src/i18n/locales/it-italiano.json b/freemocap-ui/src/i18n/locales/it-italiano.jsonindex 85ff757c..3f09ebcc 100644--- a/freemocap-ui/src/i18n/locales/it-italiano.json+++ b/freemocap-ui/src/i18n/locales/it-italiano.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Benvenuto in FreeMoCap","welcomeSubtitle": "Registra e visualizza video sincronizzati","sendAnonymousPings": "Invia dati di utilizzo anonimi",diff --git a/freemocap-ui/src/i18n/locales/ja-nihongo.json b/freemocap-ui/src/i18n/locales/ja-nihongo.jsonindex b83fba56..bf1b6e83 100644--- a/freemocap-ui/src/i18n/locales/ja-nihongo.json+++ b/freemocap-ui/src/i18n/locales/ja-nihongo.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "FreeMoCapへようこそ","welcomeSubtitle": "同期ビデオの録画と再生","sendAnonymousPings": "匿名使用データを送信",diff --git a/freemocap-ui/src/i18n/locales/ka-kartuli.json b/freemocap-ui/src/i18n/locales/ka-kartuli.jsonindex e558c6f8..a2dd2ec6 100644--- a/freemocap-ui/src/i18n/locales/ka-kartuli.json+++ b/freemocap-ui/src/i18n/locales/ka-kartuli.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "კეთილი იყოს თქვენი მობრძანება FreeMoCap-ში","welcomeSubtitle": "ჩაწერეთ და ნახეთ სინქრონიზებული ვიდეოები","sendAnonymousPings": "ანონიმური გამოყენების პინგების გაგზავნა",diff --git a/freemocap-ui/src/i18n/locales/ko-hangugeo.json b/freemocap-ui/src/i18n/locales/ko-hangugeo.jsonindex 93015daa..2814e8fa 100644--- a/freemocap-ui/src/i18n/locales/ko-hangugeo.json+++ b/freemocap-ui/src/i18n/locales/ko-hangugeo.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "FreeMoCap에 오신 것을 환영합니다","welcomeSubtitle": "동기화된 비디오 녹화 및 보기","sendAnonymousPings": "익명 사용 데이터 보내기",diff --git a/freemocap-ui/src/i18n/locales/ms-melayu.json b/freemocap-ui/src/i18n/locales/ms-melayu.jsonindex 1c8744cf..d2e98482 100644--- a/freemocap-ui/src/i18n/locales/ms-melayu.json+++ b/freemocap-ui/src/i18n/locales/ms-melayu.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Selamat Datang ke FreeMoCap","welcomeSubtitle": "Rakam dan Tonton Video Tersegerak","sendAnonymousPings": "Hantar ping penggunaan tanpa nama",diff --git a/freemocap-ui/src/i18n/locales/my-myanmar.json b/freemocap-ui/src/i18n/locales/my-myanmar.jsonindex f2568066..74de0d5d 100644--- a/freemocap-ui/src/i18n/locales/my-myanmar.json+++ b/freemocap-ui/src/i18n/locales/my-myanmar.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "FreeMoCap မှ ကြိုဆိုပါသည်","welcomeSubtitle": "ချိန်ကိုက်ထားသော ဗီဒီယိုများကို ရိုက်ကူးပြီး ကြည့်ရှုပါ","sendAnonymousPings": "အမည်မသိ အသုံးပြုမှု ping များ ပို့ပါ",diff --git a/freemocap-ui/src/i18n/locales/ne-nepali.json b/freemocap-ui/src/i18n/locales/ne-nepali.jsonindex a55923fd..c237c468 100644--- a/freemocap-ui/src/i18n/locales/ne-nepali.json+++ b/freemocap-ui/src/i18n/locales/ne-nepali.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "FreeMoCap मा स्वागत छ","welcomeSubtitle": "सिङ्क्रोनाइज गरिएका भिडियोहरू रेकर्ड गर्नुहोस् र हेर्नुहोस्","sendAnonymousPings": "अज्ञात प्रयोग पिङहरू पठाउनुहोस्",diff --git a/freemocap-ui/src/i18n/locales/nl-nederlands.json b/freemocap-ui/src/i18n/locales/nl-nederlands.jsonindex 1f25c80d..daf15ea1 100644--- a/freemocap-ui/src/i18n/locales/nl-nederlands.json+++ b/freemocap-ui/src/i18n/locales/nl-nederlands.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Welkom bij FreeMoCap","welcomeSubtitle": "Neem gesynchroniseerde video's op en bekijk ze","sendAnonymousPings": "Anonieme gebruiksgegevens verzenden",diff --git a/freemocap-ui/src/i18n/locales/pl-polski.json b/freemocap-ui/src/i18n/locales/pl-polski.jsonindex 152e38d9..0072fe05 100644--- a/freemocap-ui/src/i18n/locales/pl-polski.json+++ b/freemocap-ui/src/i18n/locales/pl-polski.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Witamy w FreeMoCap","welcomeSubtitle": "Nagrywaj i przeglądaj zsynchronizowane wideo","sendAnonymousPings": "Wysyłaj anonimowe dane użycia",diff --git a/freemocap-ui/src/i18n/locales/pt-BR-portugues-brasil.json b/freemocap-ui/src/i18n/locales/pt-BR-portugues-brasil.jsonindex f6fe9603..418c0160 100644--- a/freemocap-ui/src/i18n/locales/pt-BR-portugues-brasil.json+++ b/freemocap-ui/src/i18n/locales/pt-BR-portugues-brasil.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Bem-vindo ao FreeMoCap","welcomeSubtitle": "Grave e visualize vídeos sincronizados","sendAnonymousPings": "Enviar dados de uso anônimos",diff --git a/freemocap-ui/src/i18n/locales/ro-romana.json b/freemocap-ui/src/i18n/locales/ro-romana.jsonindex 7b98c994..9eb8164d 100644--- a/freemocap-ui/src/i18n/locales/ro-romana.json+++ b/freemocap-ui/src/i18n/locales/ro-romana.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Bun venit la FreeMoCap","welcomeSubtitle": "Înregistrează și Vizualizează Videoclipuri Sincronizate","sendAnonymousPings": "Trimite ping-uri anonime de utilizare",diff --git a/freemocap-ui/src/i18n/locales/ru-russkiy.json b/freemocap-ui/src/i18n/locales/ru-russkiy.jsonindex 14aaaaaa..dac4747b 100644--- a/freemocap-ui/src/i18n/locales/ru-russkiy.json+++ b/freemocap-ui/src/i18n/locales/ru-russkiy.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Добро пожаловать в FreeMoCap","welcomeSubtitle": "Записывайте и просматривайте синхронизированные видео","sendAnonymousPings": "Отправлять анонимные данные об использовании",diff --git a/freemocap-ui/src/i18n/locales/si-sinhala.json b/freemocap-ui/src/i18n/locales/si-sinhala.jsonindex c9b667ef..810ba4df 100644--- a/freemocap-ui/src/i18n/locales/si-sinhala.json+++ b/freemocap-ui/src/i18n/locales/si-sinhala.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "FreeMoCap වෙත සාදරයෙන් පිළිගනිමු","welcomeSubtitle": "සමමුහුර්ත වීඩියෝ පටිගත කර බලන්න","sendAnonymousPings": "නිර්නාමික භාවිත ping යවන්න",diff --git a/freemocap-ui/src/i18n/locales/sr-srpski.json b/freemocap-ui/src/i18n/locales/sr-srpski.jsonindex 7203a3ef..0b7995e9 100644--- a/freemocap-ui/src/i18n/locales/sr-srpski.json+++ b/freemocap-ui/src/i18n/locales/sr-srpski.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Добро дошли у FreeMoCap","welcomeSubtitle": "Снимајте и гледајте синхронизоване видео записе","sendAnonymousPings": "Шаљи анонимне пингове коришћења",diff --git a/freemocap-ui/src/i18n/locales/sv-svenska.json b/freemocap-ui/src/i18n/locales/sv-svenska.jsonindex 23fc4c87..bfd816d5 100644--- a/freemocap-ui/src/i18n/locales/sv-svenska.json+++ b/freemocap-ui/src/i18n/locales/sv-svenska.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Välkommen till FreeMoCap","welcomeSubtitle": "Spela in och visa synkroniserade videor","sendAnonymousPings": "Skicka anonym användningsdata",diff --git a/freemocap-ui/src/i18n/locales/sw-kiswahili.json b/freemocap-ui/src/i18n/locales/sw-kiswahili.jsonindex ffb3aa6e..46565a0a 100644--- a/freemocap-ui/src/i18n/locales/sw-kiswahili.json+++ b/freemocap-ui/src/i18n/locales/sw-kiswahili.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Karibu FreeMoCap","welcomeSubtitle": "Rekodi na Utazame Video Zilizosawazishwa","sendAnonymousPings": "Tuma pings za matumizi bila kutambulishwa",diff --git a/freemocap-ui/src/i18n/locales/ta-tamil.json b/freemocap-ui/src/i18n/locales/ta-tamil.jsonindex f698428c..292d7398 100644--- a/freemocap-ui/src/i18n/locales/ta-tamil.json+++ b/freemocap-ui/src/i18n/locales/ta-tamil.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "FreeMoCap-க்கு வரவேற்கிறோம்","welcomeSubtitle": "ஒத்திசைக்கப்பட்ட வீடியோக்களைப் பதிவுசெய்து பாருங்கள்","sendAnonymousPings": "அநாமதேய பயன்பாட்டு பிங்குகளை அனுப்பு",diff --git a/freemocap-ui/src/i18n/locales/th-thai.json b/freemocap-ui/src/i18n/locales/th-thai.jsonindex 056516a4..d1967b11 100644--- a/freemocap-ui/src/i18n/locales/th-thai.json+++ b/freemocap-ui/src/i18n/locales/th-thai.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMoCap","welcomeTitle": "ยินดีต้อนรับสู่ FreeMoCap","welcomeSubtitle": "บันทึกและดูวิดีโอที่ซิงค์","sendAnonymousPings": "ส่งข้อมูลการใช้งานแบบไม่ระบุตัวตน",diff --git a/freemocap-ui/src/i18n/locales/tl-tagalog.json b/freemocap-ui/src/i18n/locales/tl-tagalog.jsonindex 6578bbf3..0e351505 100644--- a/freemocap-ui/src/i18n/locales/tl-tagalog.json+++ b/freemocap-ui/src/i18n/locales/tl-tagalog.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMoCap","welcomeTitle": "Maligayang pagdating sa FreeMoCap","welcomeSubtitle": "Mag-record at Manood ng Naka-sync na mga Video","sendAnonymousPings": "Magpadala ng anonymous na usage pings",diff --git a/freemocap-ui/src/i18n/locales/tr-turkce.json b/freemocap-ui/src/i18n/locales/tr-turkce.jsonindex daf5acb7..b779880d 100644--- a/freemocap-ui/src/i18n/locales/tr-turkce.json+++ b/freemocap-ui/src/i18n/locales/tr-turkce.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "FreeMoCap'e Hoş Geldiniz","welcomeSubtitle": "Senkronize videoları kaydedin ve izleyin","sendAnonymousPings": "Anonim kullanım verileri gönder",diff --git a/freemocap-ui/src/i18n/locales/uk-ukrainska.json b/freemocap-ui/src/i18n/locales/uk-ukrainska.jsonindex e3ca3edf..9b79c60c 100644--- a/freemocap-ui/src/i18n/locales/uk-ukrainska.json+++ b/freemocap-ui/src/i18n/locales/uk-ukrainska.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Ласкаво просимо до FreeMoCap","welcomeSubtitle": "Записуйте та переглядайте синхронізовані відео","sendAnonymousPings": "Надсилати анонімні дані використання",diff --git a/freemocap-ui/src/i18n/locales/ur-urdu.json b/freemocap-ui/src/i18n/locales/ur-urdu.jsonindex 42cb6671..564ab02a 100644--- a/freemocap-ui/src/i18n/locales/ur-urdu.json+++ b/freemocap-ui/src/i18n/locales/ur-urdu.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "FreeMoCap میں خوش آمدید","welcomeSubtitle": "ہم آہنگ ویڈیوز ریکارڈ اور دیکھیں","sendAnonymousPings": "گمنام استعمال کے پنگ بھیجیں",diff --git a/freemocap-ui/src/i18n/locales/vi-tieng-viet.json b/freemocap-ui/src/i18n/locales/vi-tieng-viet.jsonindex 8506a12e..acc1ab93 100644--- a/freemocap-ui/src/i18n/locales/vi-tieng-viet.json+++ b/freemocap-ui/src/i18n/locales/vi-tieng-viet.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-23"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "Chào mừng đến với FreeMoCap","welcomeSubtitle": "Ghi và xem video đồng bộ","sendAnonymousPings": "Gửi dữ liệu sử dụng ẩn danh",diff --git a/freemocap-ui/src/i18n/locales/yi-yidish.json b/freemocap-ui/src/i18n/locales/yi-yidish.jsonindex f9691f1b..c4c250ea 100644--- a/freemocap-ui/src/i18n/locales/yi-yidish.json+++ b/freemocap-ui/src/i18n/locales/yi-yidish.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-24"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "ברוכים הבאים צו FreeMoCap","welcomeSubtitle": "אויפֿנעמען און באַקוקן סינכראָניזירטע ווידעאָס","sendAnonymousPings": "שיקן אַנאָנימע באַניצונג פּינגס",diff --git a/freemocap-ui/src/i18n/locales/zh-CN-zhongwen.json b/freemocap-ui/src/i18n/locales/zh-CN-zhongwen.jsonindex 170cebca..f65aa6f7 100644--- a/freemocap-ui/src/i18n/locales/zh-CN-zhongwen.json+++ b/freemocap-ui/src/i18n/locales/zh-CN-zhongwen.json@@ -5,7 +5,7 @@"lastUpdated": "2026-02-22"},"appName": "FreeMoCap",- "appNameDecorated": "FreeMoCap 💀✨",+ "appNameDecorated": "FreeMocap","welcomeTitle": "欢迎使用 FreeMoCap","welcomeSubtitle": "录制和查看同步视频","sendAnonymousPings": "发送匿名使用数据",diff --git a/freemocap-ui/src/index.css b/freemocap-ui/src/index.cssindex e79b5fbc..6b830d65 100644--- a/freemocap-ui/src/index.css+++ b/freemocap-ui/src/index.css@@ -1,99 +1 @@-@tailwind base;-@tailwind components;-@tailwind utilities;--:root {- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;- line-height: 1.5;- font-weight: 400;-- color-scheme: light dark;- color: rgba(255, 255, 255, 0.87);- background-color: #242424;-- font-synthesis: none;- text-rendering: optimizeLegibility;- -webkit-font-smoothing: antialiased;- -moz-osx-font-smoothing: grayscale;- -webkit-text-size-adjust: 100%;-}--a {- font-weight: 500;- color: #646cff;- text-decoration: inherit;-}--a:hover {- color: #535bf2;-}--body {- margin: 0;- padding: 0;- width: 100%;- height: 100vh;- overflow: hidden;-}--h1 {- font-size: 3.2em;- line-height: 1.1;-}--button {- border-radius: 8px;- border: 1px solid transparent;- padding: 0.6em 1.2em;- font-size: 1em;- font-weight: 500;- font-family: inherit;- background-color: #1a1a1a;- cursor: pointer;- transition: border-color 0.25s;-}--button:hover {- border-color: #646cff;-}--button:focus,-button:focus-visible {- outline: 4px auto -webkit-focus-ring-color;-}--code {- background-color: #1a1a1a;- padding: 2px 4px;- margin: 0 4px;- border-radius: 4px;-}--.card {- padding: 2em;-}--#root {- width: 100%;- height: 100vh;- overflow: hidden;-}--@media (prefers-color-scheme: light) {- :root {- color: #213547;- background-color: #ffffff;- }-- a:hover {- color: #747bff;- }-- button {- background-color: #f9f9f9;- }-- code {- background-color: #f9f9f9;- }-}+@import './styles/App.css';diff --git a/freemocap-ui/src/layout/BasePanelLayout.tsx b/freemocap-ui/src/layout/BasePanelLayout.tsxindex d533f63e..4a7ac18d 100644--- a/freemocap-ui/src/layout/BasePanelLayout.tsx+++ b/freemocap-ui/src/layout/BasePanelLayout.tsx@@ -1,27 +1,25 @@-// freemocap-ui/src/layout/BasePanelLayout.tsx-import React, {useCallback, useRef, useState} from "react";+import React, {useCallback, useEffect, useRef, useState} from "react";import {ImperativePanelHandle, Panel, PanelGroup, PanelResizeHandle} from "react-resizable-panels";import {SidePanelContent} from "@/layout/content/SidePanelContent";import BottomPanelContent from "@/layout/content/BottomPanelContent";-import {useTheme} from "@mui/material/styles";-import {Box} from "@mui/material";import {useMenuActions} from "@/hooks/useMenuActions";import {useKeyboardShortcuts} from "@/hooks/useKeyboardShortcuts";import {RecordingCompleteDialog} from "@/components/control-panels/recording-info-panel/RecordingCompleteDialog";import {MainNavTabs} from "@/components/ui-components/MainNavTabs";--export const BasePanelLayout = ({children}: { children?: React.ReactNode }) => {- const theme = useTheme();+export const BasePanelLayout = ({children, onOpenWelcome}: { children?: React.ReactNode; onOpenWelcome?: () => void }) => {const leftPanelRef = useRef<ImperativePanelHandle>(null);const bottomPanelRef = useRef<ImperativePanelHandle>(null);const [isCollapsed, setIsCollapsed] = useState(false);- const [isBottomCollapsed, setIsBottomCollapsed] = useState(false);+const [isBottomCollapsed, setIsBottomCollapsed] = useState(true);++ useEffect(() => {+ bottomPanelRef.current?.collapse();+ }, []);const handleToggleCollapse = useCallback(() => {const panel = leftPanelRef.current;if (!panel) return;-if (panel.isCollapsed()) {panel.expand();} else {@@ -29,33 +27,26 @@ export const BasePanelLayout = ({children}: { children?: React.ReactNode }) => {}}, []);- const handlePanelCollapse = useCallback(() => {- setIsCollapsed(true);- }, []);-- const handlePanelExpand = useCallback(() => {- setIsCollapsed(false);- }, []);-+ const handlePanelCollapse = useCallback(() => setIsCollapsed(true), []);+ const handlePanelExpand = useCallback(() => setIsCollapsed(false), []);const handleBottomPanelCollapse = useCallback(() => setIsBottomCollapsed(true), []);const handleBottomPanelExpand = useCallback(() => setIsBottomCollapsed(false), []);- // Connect native menu actions to the appuseMenuActions({ onToggleSidebar: handleToggleCollapse });-- // Register global keyboard shortcuts (Ctrl+Shift+L, Shift+Space, etc.)useKeyboardShortcuts();return (- <Box sx={{display: 'flex', flexDirection: 'column', height: '100vh'}}>- <PanelGroup- direction="vertical"- style={{flex: 1}}- >+ <div className="main-app-container flex flex-col" style={{ height: '100vh' }}>+ <PanelGroup className="app-container flex-1" direction="vertical">{/* Top section (horizontal panels) */}- <Panel defaultSize={87} minSize={20}>- <PanelGroup direction="horizontal" style={{direction: "ltr"}}>+ <Panel className="app-container-inner" defaultSize={87} minSize={20}>+ <PanelGroup+ className="pos-rel app-container-sub pr-1 pl-1 pt-1 pb-0"+ direction="horizontal"+ style={{ direction: "ltr" }}+ ><Panel+ className="left-side-panel p-1 action-container bg-darkgray br-2 border-mid-black border-1"ref={leftPanelRef}collapsibledefaultSize={24}@@ -65,38 +56,34 @@ export const BasePanelLayout = ({children}: { children?: React.ReactNode }) => {onExpand={handlePanelExpand}><SidePanelContent- // isCollapsed={isCollapsed}- // onToggleCollapse={handleToggleCollapse}+ isCollapsed={isCollapsed}+ onToggleCollapse={handleToggleCollapse}+ onOpenWelcome={onOpenWelcome}/></Panel>- {/* Horizontal Resize Handle */}<PanelResizeHandle- style={{- width: "4px",- cursor: "col-resize",- backgroundColor: theme.palette.primary.light,- }}+ className="resizable-component"+ style={{ width: "4px", cursor: "col-resize", backgroundColor: "var(--color-surface-active)" }}/>-- {/* Main/Central Content Panel */}- <Panel defaultSize={76} minSize={10}>- <MainNavTabs/>- {children}+ <Panel className="right-side-panel" defaultSize={76} minSize={10}>+ <div className="flex flex-col h-full pos-rel bg-darkgray br-2">+ <MainNavTabs />+ <div className="flex-1 min-h-0 mt-45">+ {children}+ </div>+ </div><RecordingCompleteDialog /></Panel></PanelGroup></Panel>- {/* Vertical Resize Handle */}<PanelResizeHandle- style={{- height: "4px",- cursor: "row-resize",- backgroundColor: theme.palette.primary.light,- }}+ className="resizable-component"+ style={{ height: "4px", cursor: "row-resize", backgroundColor: "var(--color-surface-active)" }}/><Panel+ className="console-area pr-1 pl-1 pb-1"ref={bottomPanelRef}collapsibledefaultSize={13}@@ -105,9 +92,9 @@ export const BasePanelLayout = ({children}: { children?: React.ReactNode }) => {onCollapse={handleBottomPanelCollapse}onExpand={handleBottomPanelExpand}>- <BottomPanelContent isCollapsed={isBottomCollapsed}/>+ <BottomPanelContent isCollapsed={isBottomCollapsed} /></Panel></PanelGroup>- </Box>+ </div>);};diff --git a/freemocap-ui/src/layout/content/BaseContentRouter.tsx b/freemocap-ui/src/layout/content/BaseContentRouter.tsxindex 1fe42656..0c7a2647 100644--- a/freemocap-ui/src/layout/content/BaseContentRouter.tsx+++ b/freemocap-ui/src/layout/content/BaseContentRouter.tsx@@ -1,21 +1,18 @@import React from 'react';import {Navigate, Route, Routes} from 'react-router-dom';-import WelcomePage from "@/pages/WelcomePage";import {StreamingViewPage} from "@/pages/StreamingViewPage";import PlaybackPage from "@/pages/PlaybackPage";-import BrowserPage from "@/pages/BrowserPage";import ActiveRecordingPage from "@/pages/ActiveRecordingPage";export const BaseContentRouter: React.FC = () => {return (<Routes>- <Route path="/" element={<Navigate to="/welcome" replace/>}/>- <Route path="/welcome" element={<WelcomePage/>}/>+ <Route path="/" element={<Navigate to="/streaming" replace/>}/><Route path="/streaming" element={<StreamingViewPage/>}/>- <Route path="/browse" element={<BrowserPage/>}/>+ <Route path="/browse" element={<Navigate to="/playback" replace/>}/><Route path="/playback" element={<PlaybackPage/>}/><Route path="/active-recording" element={<ActiveRecordingPage/>}/>- <Route path="*" element={<Navigate to="/welcome" replace/>}/>+ <Route path="*" element={<Navigate to="/streaming" replace/>}/></Routes>);};diff --git a/freemocap-ui/src/layout/content/BottomPanelContent.tsx b/freemocap-ui/src/layout/content/BottomPanelContent.tsxindex bfe341d0..0e0f7ca3 100644--- a/freemocap-ui/src/layout/content/BottomPanelContent.tsx+++ b/freemocap-ui/src/layout/content/BottomPanelContent.tsx@@ -1,40 +1,30 @@-// freemocap-ui/src/components/ui-components/BottomPanelContent.tsximport * as React from 'react';-import Box from '@mui/material/Box';+import {useLocation} from "react-router-dom";import {LogTerminal} from "@/components/log-terminal";import {Panel, PanelGroup, PanelResizeHandle} from "react-resizable-panels";-import {useTheme} from "@mui/material/styles";-import TabbedBottomLeftPanel from "@/components/tabbed-bottom-panel/TabbedBottomLeftPanel";+import FramerateViewerPanel from "@/components/framerate-viewer/FrameRateViewer";export default function BottomPanelContent({isCollapsed}: { isCollapsed: boolean }) {- const theme = useTheme();+ const location = useLocation();+ const isPlayback = location.pathname.startsWith('/playback');return (- <Box sx={{width: '100%', height: '100%'}}>- <PanelGroup direction="horizontal" style={{direction: "ltr"}}>- {/* Framerate Viewer Panel */}- <Panel defaultSize={30} minSize={20}>- <Box sx={{height: '100%', overflow: 'auto'}}>- <TabbedBottomLeftPanel isCollapsed={isCollapsed}/>- </Box>- </Panel>-- {/* Resize Handle */}- <PanelResizeHandle- style={{- width: "4px",- cursor: "col-resize",- backgroundColor: theme.palette.primary.light,- }}- />-- {/* Logs Terminal Panel */}- <Panel defaultSize={70} minSize={20}>- <Box sx={{height: '100%', overflow: 'auto'}}>- <LogTerminal isCollapsed={isCollapsed}/>- </Box>- </Panel>- </PanelGroup>- </Box>+ <div className="bottom-info-container br-2 flex h-full">+ {isPlayback ? (+ <div className="server-logs-container text-nowrap bg-middark bg-darkgray p-1 br-1 w-full h-full">+ <LogTerminal isCollapsed={isCollapsed} />+ </div>+ ) : (+ <PanelGroup className="console-area p-0" direction="horizontal" style={{direction: "ltr"}}>+ <Panel className="camera-performance-metric-container bg-middark bg-darkgray p-1 br-1" defaultSize={30} minSize={15}>+ <FramerateViewerPanel isCollapsed={isCollapsed} />+ </Panel>+ <PanelResizeHandle className="info-panel-divider resizable-component" />+ <Panel className="server-logs-container text-nowrap bg-middark bg-darkgray p-1 br-1" defaultSize={70} minSize={20}>+ <LogTerminal isCollapsed={isCollapsed} />+ </Panel>+ </PanelGroup>+ )}+ </div>);}diff --git a/freemocap-ui/src/layout/content/SidePanelContent.tsx b/freemocap-ui/src/layout/content/SidePanelContent.tsxindex e1c7e1ea..25692888 100644--- a/freemocap-ui/src/layout/content/SidePanelContent.tsx+++ b/freemocap-ui/src/layout/content/SidePanelContent.tsx@@ -1,275 +1,126 @@-import React, {useCallback, useMemo, useState} from 'react';-import Box from '@mui/material/Box';-import {IconButton, List, ListItem, useTheme} from '@mui/material';-import {- closestCenter,- DndContext,- DragEndEvent,- KeyboardSensor,- PointerSensor,- useSensor,- useSensors,-} from '@dnd-kit/core';-import {arrayMove, SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy,} from '@dnd-kit/sortable';-import {restrictToParentElement, restrictToVerticalAxis} from '@dnd-kit/modifiers';-import ThemeToggle from '@/components/ui-components/ThemeToggle';-import HomeIcon from '@mui/icons-material/Home';-import {useLocation, useNavigate} from 'react-router-dom';-import DirectionsRunIcon from '@mui/icons-material/DirectionsRun';--import {SortableSectionWrapper} from '@/components/common/SortableSectionWrapper';-import {- CameraConfigTreeView-} from '@/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeView';-import {RecordingInfoPanel} from "@/components/control-panels/recording-info-panel/RecordingInfoPanel";-import {RealtimePipelinePanel} from "@/components/control-panels/realtime-panel/RealtimePipelinePanel";+import React, {useMemo} from 'react';+import {useLocation} from 'react-router-dom';+import {useTranslation} from 'react-i18next';+import IconButton from '@/components/ui-components/IconButton';++import {CameraConfigTreeView} from '@/components/control-panels/camera-config-panel/camera-config-tree-view/CameraConfigTreeView';+import {RecordingPathPanel} from "@/components/control-panels/recording-info-panel/RecordingPathPanel";+import {RecordingControlPanel} from "@/components/control-panels/recording-info-panel/RecordingControlPanel";+import {RecordingInfoPanel as ProcessMocapPanel} from "@/components/control-panels/recording-info-panel/ProcessMocapPanel";import {MocapPanel} from "@/components/control-panels/mocap-control-panel/MocapPanel";-import {CalibrationPanel} from "@/components/control-panels/calibration-control-panel/CalibrationPanel";import {ServerConnectionStatus} from "@/components/control-panels/server-connection";+import {RecordingBrowserSection} from "@/components/playback/RecordingBrowserSection";+import CalibrationModule from "@/components/pipeline-progress/calibration-progress/calibration-module";-const STORAGE_KEY = 'freemocap-sidebar-section-order';--const DEFAULT_SECTION_ORDER = [+const SECTION_ORDER = [+ 'recordings','cameras',- 'recording',- 'realtime','calibration',+ 'recording_path',+ 'recording_control',+ 'process_mocap','mocap',] as const;-type SectionId = (typeof DEFAULT_SECTION_ORDER)[number];+type SectionId = (typeof SECTION_ORDER)[number];++const STREAMING_ONLY_SECTIONS = new Set<SectionId>(['cameras', 'recording_path', 'recording_control']);+const PLAYBACK_ONLY_SECTIONS = new Set<SectionId>(['recordings', 'process_mocap']);const SECTION_COMPONENTS: Record<SectionId, React.FC> = {- realtime: RealtimePipelinePanel,cameras: CameraConfigTreeView,- recording: RecordingInfoPanel,- calibration: CalibrationPanel,+ calibration: CalibrationModule,+ process_mocap: ProcessMocapPanel,+ recording_path: RecordingPathPanel,+ recording_control: RecordingControlPanel,mocap: MocapPanel,+ recordings: RecordingBrowserSection,};-function loadSectionOrder(): SectionId[] {- try {- const stored = localStorage.getItem(STORAGE_KEY);- if (!stored) return [...DEFAULT_SECTION_ORDER];- const parsed = JSON.parse(stored) as string[];- const defaultSet = new Set<string>(DEFAULT_SECTION_ORDER);- const parsedSet = new Set(parsed);- if (- parsed.length !== DEFAULT_SECTION_ORDER.length ||- !parsed.every((id) => defaultSet.has(id)) ||- !DEFAULT_SECTION_ORDER.every((id) => parsedSet.has(id))- ) {- return [...DEFAULT_SECTION_ORDER];- }- return parsed as SectionId[];- } catch {- return [...DEFAULT_SECTION_ORDER];- }-}--function saveSectionOrder(order: SectionId[]): void {- try {- localStorage.setItem(STORAGE_KEY, JSON.stringify(order));- } catch {- // Storage full or unavailable — silently ignore- }+interface SidePanelContentProps {+ isCollapsed?: boolean;+ onToggleCollapse?: () => void;+ onOpenWelcome?: () => void;}-const scrollbarStyles = {- '&::-webkit-scrollbar': {- width: '6px',- backgroundColor: 'transparent',- },- '&::-webkit-scrollbar-thumb': {- backgroundColor: (theme: { palette: { mode: string } }) =>- theme.palette.mode === 'dark'- ? 'rgba(255, 255, 255, 0.2)'- : 'rgba(0, 0, 0, 0.2)',- borderRadius: '3px',- '&:hover': {- backgroundColor: (theme: { palette: { mode: string } }) =>- theme.palette.mode === 'dark'- ? 'rgba(255, 255, 255, 0.3)'- : 'rgba(0, 0, 0, 0.3)',- },- },- '&::-webkit-scrollbar-track': {- backgroundColor: 'transparent',- },- scrollbarWidth: 'thin',- scrollbarColor: (theme: { palette: { mode: string } }) =>- theme.palette.mode === 'dark'- ? 'rgba(255, 255, 255, 0.2) transparent'- : 'rgba(0, 0, 0, 0.2) transparent',+const CollapsedToolbar: React.FC<{ onToggleCollapse: () => void }> = ({ onToggleCollapse }) => {+ const { t } = useTranslation();+ return (+ <div className="collapsed-sidebar items-center flex flex-col items-center w-full h-full pt-1 gap-1">+ <IconButton+ icon="expand-icon"+ onClick={onToggleCollapse}+ tooltip={true}+ tooltipText={t('expandSidebar')}+ tooltipPosition="pos-right"+ />+ <ServerConnectionStatus compact />+ </div>+ );};-export const SidePanelContent = () => {- const theme = useTheme();- const navigate = useNavigate();- const location = useLocation();- const [sectionOrder, setSectionOrder] = useState<SectionId[]>(loadSectionOrder);-- const sensors = useSensors(- useSensor(PointerSensor, {- activationConstraint: {- distance: 5,- },- }),- useSensor(KeyboardSensor, {- coordinateGetter: sortableKeyboardCoordinates,- }),+export const SidePanelContent = ({ isCollapsed = false, onToggleCollapse, onOpenWelcome }: SidePanelContentProps) => {+ const { pathname } = useLocation();+ const isStreaming = pathname === '/streaming';+ const isPlayback = pathname === '/playback';+ const isActiveRecording = pathname === '/active-recording';+ const visibleSections = useMemo(+ () => SECTION_ORDER.filter(id =>+ (isStreaming || !STREAMING_ONLY_SECTIONS.has(id)) &&+ (isPlayback || isActiveRecording || !PLAYBACK_ONLY_SECTIONS.has(id))+ ),+ [isStreaming, isPlayback, isActiveRecording],);- const handleDragEnd = useCallback((event: DragEndEvent) => {- const { active, over } = event;- if (!over || active.id === over.id) return;-- setSectionOrder((prev) => {- const oldIndex = prev.indexOf(active.id as SectionId);- const newIndex = prev.indexOf(over.id as SectionId);- const newOrder = arrayMove(prev, oldIndex, newIndex);- saveSectionOrder(newOrder);- return newOrder;- });- }, []);-- const modifiers = useMemo(- () => [restrictToVerticalAxis, restrictToParentElement],- [],- );+ const { t } = useTranslation();return (- <Box- sx={{- width: '100%',- height: '100%',- backgroundColor:- theme.palette.mode === 'dark'- ? theme.palette.background.paper- : theme.palette.grey[50],- color: theme.palette.text.primary,- display: 'flex',- flexDirection: 'column',- overflowY: 'auto',- overflowX: 'hidden',- ...scrollbarStyles,- }}- >- {/* Header */}- <List disablePadding>- <ListItem- sx={{- borderBottom:- theme.palette.mode === 'dark'- ? '1px solid rgba(255,255,255,0.08)'- : '1px solid rgba(0,0,0,0.08)',- py: 0.75,- px: 1.5,- minHeight: 40,- display: 'flex',- justifyContent: 'space-between',- alignItems: 'center',- }}- >- <Box- component="span"- sx={{- fontSize: 16,- fontWeight: 600,- color: theme.palette.text.primary,- }}- >- FreeMoCap 💀✨- </Box>-- <Box sx={{ display: 'flex', alignItems: 'center', gap: 0.25 }}>- <IconButton- size="small"- onClick={() => navigate('/')}- sx={{- padding: '4px',- color:- location.pathname === '/'- ? theme.palette.success.main- : theme.palette.text.secondary,- }}- >- <HomeIcon sx={{ fontSize: 18 }} />- </IconButton>- <IconButton- color="inherit"- onClick={() => navigate('/viewport')}- >- <DirectionsRunIcon />- </IconButton>-- {/*<IconButton*/}- {/* size="small"*/}- {/* onClick={() => navigate('/cameras')}*/}- {/* sx={{*/}- {/* padding: '4px',*/}- {/* color:*/}- {/* location.pathname === '/cameras'*/}- {/* ? theme.palette.success.main*/}- {/* : theme.palette.text.secondary,*/}- {/* }}*/}- {/*>*/}- {/* <VideocamIcon sx={{ fontSize: 18 }} />*/}- {/*</IconButton>*/}-- {/*<Tooltip title="Settings">*/}- {/* <IconButton*/}- {/* size="small"*/}- {/* onClick={() => navigate('/settings')}*/}- {/* sx={{*/}- {/* padding: '4px',*/}- {/* color:*/}- {/* location.pathname === '/settings'*/}- {/* ? theme.palette.success.main*/}- {/* : theme.palette.text.secondary,*/}- {/* }}*/}- {/* >*/}- {/* <TuneIcon sx={{ fontSize: 18 }} />*/}- {/* </IconButton>*/}- {/*</Tooltip>*/}+ <>+ {isCollapsed && onToggleCollapse && (+ <CollapsedToolbar onToggleCollapse={onToggleCollapse} />+ )}- <ThemeToggle />- </Box>- </ListItem>- </List>- <ServerConnectionStatus/>+ <div className="playback-mode left-side-panel flex gap-1 flex-col bg-darkgray br-2 w-full h-full"+ style={{ display: isCollapsed ? 'none' : 'flex' }}>+ {/* Header — home + connection + collapse button */}- {/* Sidebar Sections — drag-reorderable */}- <DndContext- sensors={sensors}- collisionDetection={closestCenter}- modifiers={modifiers}- onDragEnd={handleDragEnd}- >- <SortableContext- items={sectionOrder}- strategy={verticalListSortingStrategy}+ <div className="left-side-top-bar flex flex-row items-center gap-1 p-1">- <Box- sx={{- display: 'flex',- flexDirection: 'column',- gap: 0.75,- p: 0.75,- pb: 2,- }}+ {onOpenWelcome && (+ <IconButton+ icon="home-icon"+ onClick={onOpenWelcome}+ tooltip={true}+ tooltipText="Home"+ tooltipPosition="pos-right"+ />+ )}+ <div+ data-warning="service-unavailable"+ className="flex-1 overflow-hidden min-w-0">- {sectionOrder.map((sectionId) => {- const Component = SECTION_COMPONENTS[sectionId];- return (- <SortableSectionWrapper key={sectionId} id={sectionId}>- <Component />- </SortableSectionWrapper>- );- })}- </Box>- </SortableContext>- </DndContext>- </Box>+ <ServerConnectionStatus />+ </div>+ {onToggleCollapse && (+ <IconButton+ icon="collapse-icon"+ onClick={onToggleCollapse}+ tooltip={true}+ tooltipText={t('collapseSidebar')}+ tooltipPosition="pos-left"+ className="icon-size-25"+ />+ )}+ </div>++ {/* Sidebar Sections */}+ <div className="playback-mode left-side-panel flex flex-col gap-1 min-h-0 h-full">+ {visibleSections.map((sectionId) => {+ const Component = SECTION_COMPONENTS[sectionId];+ return <Component key={sectionId} />;+ })}+ </div>+ </div>+ </>);};diff --git a/freemocap-ui/src/layout/paperbase-theme.ts b/freemocap-ui/src/layout/paperbase-theme.tsdeleted file mode 100644index 5f537bc4..00000000--- a/freemocap-ui/src/layout/paperbase-theme.ts+++ /dev/null@@ -1,412 +0,0 @@-// freemocap-ui/src/layout/paperbase_theme/paperbase-theme.ts-import {createTheme, PaletteMode} from '@mui/material/styles';--// Define common theme settings-const getBaseTheme = (mode: PaletteMode) => ({- typography: {- h5: {- fontWeight: 500,- fontSize: 22,- letterSpacing: 0.5,- },- h6: {- fontSize: 16,- fontWeight: 500,- },- subtitle2: {- fontSize: 13,- fontWeight: 500,- },- body2: {- fontSize: 13,- },- caption: {- fontSize: 11,- }- },- shape: {- borderRadius: 6,- },- mixins: {- toolbar: {- minHeight: 40,- },- },- components: {- MuiTab: {- defaultProps: {- disableRipple: true,- },- },- },-});--// Define the dark theme palette with better visibility-const darkPalette = {- mode: 'dark' as PaletteMode,- primary: {- light: '#90b4f8',- main: '#5e92f3',- dark: '#163a6d',- contrastText: '#ffffff',- },- secondary: {- light: '#ff6090',- main: '#f50057',- dark: '#c51162',- contrastText: '#ffffff',- },- background: {- default: '#0a0e1a',- paper: '#262f44',- },- text: {- primary: '#ffffff',- secondary: '#b3b9c6',- },- divider: 'rgba(255, 255, 255, 0.12)',- action: {- active: '#ffffff',- hover: 'rgba(255, 255, 255, 0.08)',- selected: 'rgba(255, 255, 255, 0.16)',- disabled: 'rgba(255, 255, 255, 0.3)',- disabledBackground: 'rgba(255, 255, 255, 0.12)',- },- success: {- main: '#4caf50',- light: '#80e27e',- dark: '#087f23',- },- warning: {- main: '#ff9800',- light: '#ffcc80',- dark: '#c66900',- },- error: {- main: '#f44336',- light: '#ff7961',- dark: '#ba000d',- },- info: {- main: '#29b6f6',- light: '#73e8ff',- dark: '#0086c3',- },- grey: {- 50: '#fafafa',- 100: '#f5f5f5',- 200: '#eeeeee',- 300: '#e0e0e0',- 400: '#bdbdbd',- 500: '#9e9e9e',- 600: '#757575',- 700: '#616161',- 800: '#424242',- 900: '#212121',- },-};--// Define the light theme palette-const lightPalette = {- mode: 'light' as PaletteMode,- primary: {- light: '#4791db',- main: '#1976d2',- dark: '#115293',- contrastText: '#ffffff',- },- secondary: {- light: '#ff5983',- main: '#f50057',- dark: '#ab003c',- contrastText: '#ffffff',- },- background: {- default: '#f5f7fa',- paper: '#ffffff',- },- text: {- primary: '#2c3e50',- secondary: '#546e7a',- },- divider: 'rgba(0, 0, 0, 0.12)',- action: {- active: 'rgba(0, 0, 0, 0.54)',- hover: 'rgba(0, 0, 0, 0.04)',- selected: 'rgba(0, 0, 0, 0.08)',- disabled: 'rgba(0, 0, 0, 0.26)',- disabledBackground: 'rgba(0, 0, 0, 0.12)',- },- success: {- main: '#4caf50',- light: '#80e27e',- dark: '#087f23',- },- warning: {- main: '#ff9800',- light: '#ffcc80',- dark: '#c66900',- },- error: {- main: '#f44336',- light: '#ff7961',- dark: '#ba000d',- },- info: {- main: '#2196f3',- light: '#64b5f6',- dark: '#1565c0',- },-};--// Create theme based on the palette mode-export const createAppTheme = (mode: PaletteMode) => {- const baseTheme = getBaseTheme(mode);- const palette = mode === 'dark' ? darkPalette : lightPalette;-- return createTheme({- ...baseTheme,- palette,- });-};--// Export base themes for reference-export const paperbaseThemeLight = createAppTheme('light');-export const paperbaseThemeDark = createAppTheme('dark');--// Create the extended theme components that apply to both light/dark modes-export const createExtendedTheme = (mode: PaletteMode) => {- const baseTheme = createAppTheme(mode);-- return {- ...baseTheme,- components: {- ...baseTheme.components,- MuiDrawer: {- styleOverrides: {- paper: {- backgroundColor: mode === 'dark' ? '#0f1419' : '#f8f9fa',- },- },- },- MuiButton: {- styleOverrides: {- root: {- textTransform: 'none',- fontSize: 12,- padding: '4px 12px',- minHeight: 28,- },- contained: {- boxShadow: 'none',- '&:active': {- boxShadow: 'none',- },- },- },- },- MuiIconButton: {- styleOverrides: {- root: {- padding: 6,- },- small: {- padding: 4,- },- },- },- MuiCheckbox: {- styleOverrides: {- root: {- color: mode === 'dark' ? baseTheme.palette.grey[400] : baseTheme.palette.grey[600],- '&.Mui-checked': {- color: mode === 'dark' ? baseTheme.palette.info.main : baseTheme.palette.primary.main,- },- '&.Mui-disabled': {- color: mode === 'dark' ? baseTheme.palette.grey[700] : baseTheme.palette.grey[400],- },- },- },- },- MuiRadio: {- styleOverrides: {- root: {- color: mode === 'dark' ? baseTheme.palette.grey[400] : baseTheme.palette.grey[600],- '&.Mui-checked': {- color: mode === 'dark' ? baseTheme.palette.info.main : baseTheme.palette.primary.main,- },- },- },- },- MuiSwitch: {- styleOverrides: {- root: {- padding: 8,- },- switchBase: {- padding: 9,- '&.Mui-checked': {- color: baseTheme.palette.primary.main,- '& + .MuiSwitch-track': {- backgroundColor: baseTheme.palette.primary.light,- opacity: 0.7,- },- },- },- track: {- backgroundColor: mode === 'dark' ? baseTheme.palette.grey[700] : baseTheme.palette.grey[400],- },- },- },- MuiFormControlLabel: {- styleOverrides: {- root: {- marginLeft: 0,- marginRight: 0,- },- label: {- fontSize: 12,- },- },- },- MuiTreeItem: {- styleOverrides: {- content: {- padding: '2px 8px',- margin: '2px 0',- },- label: {- fontSize: 13,- padding: '2px 0',- },- },- },- MuiChip: {- styleOverrides: {- root: {- height: 20,- fontSize: 11,- },- sizeSmall: {- height: 18,- fontSize: 10,- },- },- },- MuiTextField: {- styleOverrides: {- root: {- '& .MuiOutlinedInput-root': {- color: mode === 'dark' ? 'white' : 'rgba(0, 0, 0, 0.87)',- '& fieldset': {- borderColor: mode === 'dark' ? 'rgba(255, 255, 255, 0.3)' : 'rgba(0, 0, 0, 0.23)',- },- '&:hover fieldset': {- borderColor: mode === 'dark' ? 'rgba(255, 255, 255, 0.5)' : 'rgba(0, 0, 0, 0.87)',- },- '&.Mui-focused fieldset': {- borderColor: baseTheme.palette.primary.main,- },- },- '& .MuiInputLabel-root': {- color: mode === 'dark' ? 'rgba(255, 255, 255, 0.7)' : 'rgba(0, 0, 0, 0.6)',- fontSize: 13,- },- '& .MuiInputBase-input': {- color: mode === 'dark' ? 'white' : 'rgba(0, 0, 0, 0.87)',- fontSize: 13,- padding: '8px 12px',- },- '& .MuiInputBase-inputSizeSmall': {- padding: '4px 8px',- fontSize: 12,- },- },- },- },- MuiSelect: {- styleOverrides: {- root: {- fontSize: 13,- },- select: {- padding: '8px 12px',- },- },- },- MuiPaper: {- styleOverrides: {- root: {- backgroundImage: 'none',- },- },- },- MuiCard: {- styleOverrides: {- root: {- backgroundImage: 'none',- },- },- },- MuiTypography: {- styleOverrides: {- root: {- color: mode === 'dark' ? 'white' : 'rgba(0, 0, 0, 0.87)',- },- },- },- MuiDivider: {- styleOverrides: {- root: {- backgroundColor: mode === 'dark' ? 'rgba(255,255,255,0.08)' : 'rgba(0,0,0,0.08)',- },- },- },- MuiTooltip: {- styleOverrides: {- tooltip: {- borderRadius: 4,- fontSize: 11,- },- },- },- MuiListItemButton: {- styleOverrides: {- root: {- padding: '4px 8px',- '&.Mui-selected': {- backgroundColor: mode === 'dark'- ? 'rgba(25, 118, 210, 0.16)'- : 'rgba(25, 118, 210, 0.08)',- color: baseTheme.palette.primary.main,- },- },- },- },- MuiListItemText: {- styleOverrides: {- primary: {- fontSize: 13,- fontWeight: baseTheme.typography.fontWeightMedium,- },- },- },- MuiListItemIcon: {- styleOverrides: {- root: {- color: 'inherit',- minWidth: 'auto',- marginRight: baseTheme.spacing(1),- '& svg': {- fontSize: 18,- },- },- },- },- },- };-};--// Re-export the default theme for backward compatibility-export const paperbaseTheme = paperbaseThemeDark;-export default createExtendedTheme('dark');diff --git a/freemocap-ui/src/pages/ActiveRecordingPage.tsx b/freemocap-ui/src/pages/ActiveRecordingPage.tsxindex 95dfabc9..6f87651f 100644--- a/freemocap-ui/src/pages/ActiveRecordingPage.tsx+++ b/freemocap-ui/src/pages/ActiveRecordingPage.tsx@@ -1,8 +1,4 @@import React, {useCallback} from 'react';-import {Box, Button, Chip, Stack, Tooltip, Typography, useTheme} from '@mui/material';-import FolderOpenIcon from '@mui/icons-material/FolderOpen';-import VideoLibraryIcon from '@mui/icons-material/VideoLibrary';-import PlayArrowIcon from '@mui/icons-material/PlayArrow';import {useNavigate} from 'react-router-dom';import {Footer} from '@/components/ui-components/Footer';import ErrorBoundary from '@/components/common/ErrorBoundary';@@ -19,9 +15,8 @@ import {import {useElectronIPC} from '@/services';import {useTranslation} from 'react-i18next';import {useBlender} from "@/hooks/useBlender";-import LaunchIcon from "@mui/icons-material/Launch";-import {RecordingInfoPanel} from '@/components/control-panels/recording-info-panel/RecordingInfoPanel';-import {CalibrationPanel} from '@/components/control-panels/calibration-control-panel/CalibrationPanel';+import {RecordingPathPanel} from '@/components/control-panels/recording-info-panel/RecordingPathPanel';+import {RecordingControlPanel} from '@/components/control-panels/recording-info-panel/RecordingControlPanel';import {MocapPanel} from '@/components/control-panels/mocap-control-panel/MocapPanel';const MONO_FONT = '"JetBrains Mono", "Fira Code", "SF Mono", monospace';@@ -34,15 +29,12 @@ const ORIGIN_LABEL: Record<string, string> = {};const ActiveRecordingPage: React.FC = () => {- const theme = useTheme();const {t} = useTranslation();const navigate = useNavigate();const {api} = useElectronIPC();const {triggerOpenInBlender} = useBlender();- const isDark = theme.palette.mode === 'dark';-const recordingName = useAppSelector(selectActiveRecordingName);const baseDirectory = useAppSelector(selectActiveRecordingBaseDirectory);const fullPath = useAppSelector(selectActiveRecordingFullPath);@@ -72,154 +64,70 @@ const ActiveRecordingPage: React.FC = () => {void triggerOpenInBlender(fullPath);}, [structure?.blendPath, triggerOpenInBlender]);--- const pageBg = theme.palette.mode === 'dark'- ? theme.palette.background.default- : theme.palette.background.paper;-return (- <Box- sx={{- width: '100%',- height: '100%',- display: 'flex',- flexDirection: 'column',- overflowY: 'auto',- overflowX: 'hidden',- backgroundColor: pageBg,- borderStyle: 'solid',- borderWidth: '1px',- borderColor: theme.palette.divider,- }}- >- <Box sx={{display: 'flex', flexDirection: 'column', p: 2, gap: 2}}>+ <div className="flex flex-col w-full overflow-y overflow-hidden bg-dark h-full" style={{border: '1px solid var(--color-border-secondary)'}}>+ <div className="flex flex-col p-2 gap-2"><ErrorBoundary>{!recordingName ? (- <Box sx={{py: 4, px: 2}}>- <Stack spacing={2} alignItems="flex-start">- <Typography variant="body2" color="text.disabled" sx={{fontStyle: 'italic'}}>+ <div className="pl-4 pr-4" style={{paddingTop: 32}}>+ <div className="flex flex-col gap-2">+ <p className="text sm text-gray" style={{fontStyle: 'italic'}}>No active recording. This folder will be created when you start recording.- </Typography>- <Stack direction="row" spacing={1} sx={{mt: 1}}>- <Button variant="outlined" onClick={() => navigate('/streaming')}>+ </p>+ <div className="flex flex-row gap-1 mt-1">+ <button className="button sm secondary" onClick={() => navigate('/streaming')}>Go to Streaming- </Button>- <Button variant="outlined" onClick={() => navigate('/browse')}>+ </button>+ <button className="button sm secondary" onClick={() => navigate('/browse')}>Browse recordings- </Button>- </Stack>- </Stack>- <RecordingInfoPanel/>- </Box>+ </button>+ </div>+ </div>+ <RecordingPathPanel />+ <RecordingControlPanel />+ </div>) : (<>- {/* Identity header */}- <Box- sx={{- p: 2,- borderRadius: 1,- border: `1px solid ${theme.palette.divider}`,- backgroundColor: isDark ? 'rgba(255,255,255,0.03)' : 'rgba(0,0,0,0.02)',- }}- >- <Stack direction="row" alignItems="center" spacing={1} sx={{mb: 1, flexWrap: 'wrap'}}>- <Typography- variant="h6"- sx={{fontFamily: MONO_FONT, fontWeight: 600}}- >+ <div className="p-2 br-1 border-1 border-mid-black">+ <div className="flex flex-row items-center gap-1 mb-1 flex-wrap">+ <p className="text bg text-white m-0" style={{fontFamily: MONO_FONT, fontWeight: 600}}>{recordingName}- </Typography>+ </p>{origin && (- <Chip- label={ORIGIN_LABEL[origin] ?? origin}- size="small"- variant="outlined"- sx={{height: 20, fontSize: '0.7rem'}}- />+ <span className="tag text sm">+ {ORIGIN_LABEL[origin] ?? origin}+ </span>)}- </Stack>- <Tooltip title={fullPath ?? ''}>- <Typography- variant="body2"- sx={{- fontFamily: MONO_FONT,- color: theme.palette.text.secondary,- overflow: 'hidden',- textOverflow: 'ellipsis',- whiteSpace: 'nowrap',- }}- >- {fullPath}- </Typography>- </Tooltip>- <Stack direction="row" spacing={1} sx={{mt: 2, flexWrap: 'wrap'}}>- <Button- size="small"- variant="outlined"- startIcon={<FolderOpenIcon/>}- onClick={handleOpenFolder}- >+ </div>+ <p+ title={fullPath ?? ''}+ className="text sm text-gray m-0 overflow-hidden"+ style={{fontFamily: MONO_FONT, textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}+ >+ {fullPath}+ </p>+ <div className="flex flex-row gap-1 mt-2 flex-wrap">+ <button className="button sm secondary" onClick={handleOpenFolder}>+ <span className="icon load-icon icon-size-20"/>{t('openFolder')}- </Button>- <Button- size="small"- variant="outlined"- startIcon={<PlayArrowIcon/>}- onClick={() => navigate('/playback')}- >+ </button>+ <button className="button sm secondary" onClick={() => navigate('/playback')}>+ <span className="icon play-icon icon-size-20"/>Open in Playback- </Button>- <Button- size="small"- variant="outlined"- startIcon={<LaunchIcon/>}- onClick={handleOpenInBlender}- >+ </button>+ <button className="button sm secondary" onClick={handleOpenInBlender}>+ <span className="icon expand-icon icon-size-20"/>Open in Blender- </Button>- <Button- size="small"- variant="outlined"- startIcon={<VideoLibraryIcon/>}- onClick={() => navigate('/browse')}- >+ </button>+ <button className="button sm secondary" onClick={() => navigate('/browse')}>+ <span className="icon load-icon icon-size-20"/>Browse recordings- </Button>- </Stack>- </Box>-- {/*/!* Derived-path summary *!/*/}- {/*{structure && (*/}- {/* <Box*/}- {/* sx={{*/}- {/* p: 2,*/}- {/* borderRadius: 1,*/}- {/* border: `1px solid ${theme.palette.divider}`,*/}- {/* }}*/}- {/* >*/}- {/* <Typography variant="subtitle2" sx={{mb: 1}}>Canonical layout</Typography>*/}- {/* <Stack spacing={0.5}>*/}- {/* <PathRow label="videos/synchronized" value={structure.videosSynchronizedDir}/>*/}- {/* <PathRow label="videos/annotated" value={structure.videosAnnotatedDir}/>*/}- {/* <PathRow label="output/" value={structure.outputDir}/>*/}- {/* <PathRow label="calibration.toml" value={structure.calibrationTomlPath}/>*/}- {/* <PathRow label="recording_info.json" value={structure.recordingInfoPath}/>*/}- {/* <PathRow label="data.parquet" value={structure.dataParquetPath}/>*/}- {/* <PathRow label=".blend" value={structure.blendPath}/>*/}- {/* </Stack>*/}- {/* </Box>*/}- {/*)}*/}+ </button>+ </div>+ </div>- {/* Stage checklist */}- <Box- sx={{- p: 2,- borderRadius: 1,- border: `1px solid ${theme.palette.divider}`,- }}- >- <Typography variant="subtitle2" sx={{mb: 1}}>Pipeline stages</Typography>+ <div className="p-2 br-1 border-1 border-mid-black">+ <p className="text md text-white m-0" style={{fontWeight: 600}}>Pipeline stages</p><RecordingStatusPanelstatus={status}isLoading={statusLoading}@@ -228,37 +136,30 @@ const ActiveRecordingPage: React.FC = () => {defaultExpandedrecordingFolderPath={fullPath}/>- </Box>+ </div>- {/* Control panels */}- <CalibrationPanel/><MocapPanel/></>)}</ErrorBoundary>- </Box>- <Box component="footer" sx={{p: 0.5}}>+ </div>+ <footer className="p-1"><Footer/>- </Box>- </Box>+ </footer>+ </div>);};const PathRow: React.FC<{ label: string; value: string }> = ({label, value}) => (- <Stack direction="row" spacing={1} sx={{alignItems: 'center'}}>- <Typography variant="caption" sx={{minWidth: 160, color: 'text.secondary'}}>{label}</Typography>- <Typography- variant="caption"- sx={{- fontFamily: MONO_FONT,- overflow: 'hidden',- textOverflow: 'ellipsis',- whiteSpace: 'nowrap',- }}+ <div className="flex flex-row gap-1 items-center">+ <span className="text sm text-gray" style={{minWidth: 160}}>{label}</span>+ <span+ className="text sm overflow-hidden"+ style={{fontFamily: MONO_FONT, textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>{value}- </Typography>- </Stack>+ </span>+ </div>);export default ActiveRecordingPage;diff --git a/freemocap-ui/src/pages/BrowserPage.tsx b/freemocap-ui/src/pages/BrowserPage.tsxdeleted file mode 100644index a018e188..00000000--- a/freemocap-ui/src/pages/BrowserPage.tsx+++ /dev/null@@ -1,50 +0,0 @@-import React from 'react';-import {Box, useTheme} from '@mui/material';-import {useNavigate} from 'react-router-dom';-import {Footer} from '@/components/ui-components/Footer';-import ErrorBoundary from '@/components/common/ErrorBoundary';-import {RecordingBrowser} from '@/components/playback/RecordingBrowser';-import {usePlaybackContext} from '@/components/playback/PlaybackContext';-import {useAppSelector} from '@/store';-import {selectActiveRecordingFullPath} from '@/store/slices/active-recording/active-recording-slice';--const BrowserPage: React.FC = () => {- const theme = useTheme();- const navigate = useNavigate();- const ctx = usePlaybackContext();- const activeRecordingPath = useAppSelector(selectActiveRecordingFullPath);-- return (- <Box- sx={{- flex: 1,- display: 'flex',- flexDirection: 'column',- height: '100%',- backgroundColor: theme.palette.mode === 'dark'- ? theme.palette.background.default- : theme.palette.background.paper,- borderStyle: 'solid',- borderWidth: '1px',- borderColor: theme.palette.divider,- }}- >- <Box sx={{flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden'}}>- <ErrorBoundary>- <RecordingBrowser- activeRecordingPath={activeRecordingPath}- onRecordingLoaded={(videos, recPath, recFps, sources, preferred) => {- ctx?.onRecordingLoaded(videos, recPath, recFps, sources, preferred);- navigate('/playback');- }}- />- </ErrorBoundary>- </Box>- <Box component="footer" sx={{p: 0.5}}>- <Footer/>- </Box>- </Box>- );-};--export default BrowserPage;diff --git a/freemocap-ui/src/pages/PlaybackPage.tsx b/freemocap-ui/src/pages/PlaybackPage.tsxindex 0a9629a0..d5c72e97 100644--- a/freemocap-ui/src/pages/PlaybackPage.tsx+++ b/freemocap-ui/src/pages/PlaybackPage.tsx@@ -1,9 +1,4 @@-import React, {useCallback, useEffect, useState} from 'react';-import {Box, Chip, IconButton, Tooltip, Typography, useTheme} from '@mui/material';-import VideocamIcon from '@mui/icons-material/Videocam';-import StorageIcon from '@mui/icons-material/Storage';-import FolderOpenIcon from '@mui/icons-material/FolderOpen';-import VideoLibraryIcon from '@mui/icons-material/VideoLibrary';+import React, {useCallback, useEffect, useRef, useState} from 'react';import {Footer} from '@/components/ui-components/Footer';import ErrorBoundary from '@/components/common/ErrorBoundary';import {SyncedVideoPlayer} from '@/components/playback/SyncedVideoPlayer';@@ -12,9 +7,9 @@ import {usePlaybackController} from '@/components/playback/usePlaybackControllerimport {usePlaybackContext} from '@/components/playback/PlaybackContext';import {useElectronIPC} from '@/services';import {useTranslation} from 'react-i18next';-import {useNavigate} from 'react-router-dom';import type {CameraSettings} from '@/pages/StreamingViewPage';-import {SettingsOverlay} from "@/components/ui-components/SettingsOverlay";+import {GridSettingsOverlay} from "@/components/ui-components/GridSettingsOverlay";+import IconButton from "@/components/ui-components/IconButton";import {Panel, PanelGroup, PanelResizeHandle} from "react-resizable-panels";import {ThreeJsCanvas} from "@/components/viewport3d/ThreeJsCanvas";import {FileKeypointsSourceProvider} from "@/components/viewport3d/FileKeypointsSourceProvider";@@ -26,12 +21,8 @@ import {} from "@/store/slices/active-recording/active-recording-slice";const PlaybackPage: React.FC = () => {- const theme = useTheme();const {t} = useTranslation();const {api} = useElectronIPC();- const navigate = useNavigate();- const isDark = theme.palette.mode === 'dark';-const ctx = usePlaybackContext();const activeRecordingPath = useAppSelector(selectActiveRecordingFullPath);const activeRecordingName = useAppSelector(selectActiveRecordingName);@@ -82,7 +73,6 @@ const PlaybackPage: React.FC = () => {streamUrl: v.streamUrl,}));- // Playback controller — owns all playback state/logicconst controller = usePlaybackController({videos: videoEntries,recordingFps,@@ -91,220 +81,111 @@ const PlaybackPage: React.FC = () => {onFrameChange,});+ // If every video in the current source fails to play (e.g. annotated videos+ // encoded with a codec the player doesn't support), fall back to another+ // available/valid source (e.g. synchronized).+ const triedFallbackSourcesRef = useRef<Set<string>>(new Set());+ const fallbackRecordingRef = useRef<string | null>(null);++ useEffect(() => {+ if (recordingPath !== fallbackRecordingRef.current) {+ fallbackRecordingRef.current = recordingPath ?? null;+ triedFallbackSourcesRef.current = new Set();+ }+ }, [recordingPath]);++ useEffect(() => {+ if (!controller.allReady || videoEntries.length === 0) return;+ if (controller.erroredVideos.size < videoEntries.length) return;+ if (!availableSources || !selectedSource || !setSelectedSource) return;++ triedFallbackSourcesRef.current.add(selectedSource);++ const fallback = Object.entries(availableSources).find(+ ([key, info]) =>+ key !== selectedSource &&+ info.available &&+ info.valid &&+ info.videos.length > 0 &&+ !triedFallbackSourcesRef.current.has(key),+ );++ if (fallback) {+ console.warn(+ `[playback] all videos in source '${selectedSource}' failed to play — falling back to '${fallback[0]}'`,+ );+ setSelectedSource(fallback[0]);+ }+ }, [controller.allReady, controller.erroredVideos, videoEntries.length, availableSources, selectedSource, setSelectedSource]);+return (- <Box- sx={{- flex: 1,- display: 'flex',- flexDirection: 'column',- height: '100%',- backgroundColor: theme.palette.mode === 'dark'- ? theme.palette.background.default- : theme.palette.background.paper,- borderStyle: 'solid',- borderWidth: '1px',- borderColor: theme.palette.divider,- }}- >- <Box sx={{flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden'}}>- <ErrorBoundary>- <Box sx={{display: 'flex', flexDirection: 'column', height: '100%', position: 'relative'}}>- {/* Settings overlay for grid columns */}- <SettingsOverlay- settings={settings}- onSettingsChange={handleSettingsChange}- onResetLayout={handleResetLayout}- />+ <div className="playback-mode-main-container flex flex-col flex-1 pos-rel h-full">+ <GridSettingsOverlay+ settings={settings}+ onSettingsChange={handleSettingsChange}+ />- {/* Recording header bar */}- <Box- sx={{- display: 'flex',- alignItems: 'center',- gap: 1.5,- px: 1.5,- py: 0.75,- borderBottom: `1px solid ${theme.palette.divider}`,- backgroundColor: isDark ? 'rgba(255,255,255,0.03)' : 'rgba(0,0,0,0.02)',- minHeight: 40,- flexWrap: 'wrap',- }}- >- {/* Recording name */}- <Typography- variant="body2"- sx={{- fontFamily: monoFont,- fontWeight: 600,- color: theme.palette.text.primary,- overflow: 'hidden',- textOverflow: 'ellipsis',- whiteSpace: 'nowrap',- }}- >+ <div className="flex flex-col flex-1 overflow-hidden">+ <ErrorBoundary>+ <div className="flex flex-col pos-rel flex-1 min-h-0">+ <div className="playback-mode-top-mid-bar flex flex-row items-center gap-1 flex-wrap p-2">+ {/* <IconButton+ title={t('openFolder')}+ icon="load-icon"+ onClick={handleOpenFolder}+ /> */}+ <p className="text md text-nowrap m-0">{recordingName}- </Typography>+ </p>- {/* Browse Recordings button — navigates to the Browse tab */}- <Tooltip title="Browse recordings">- <IconButton- size="small"- onClick={() => navigate('/browse')}- sx={{- color: isDark ? '#b3b9c6' : theme.palette.text.secondary,- border: `1px solid ${isDark ? 'rgba(255,255,255,0.15)' : theme.palette.divider}`,- borderRadius: '6px',- px: 1,- gap: 0.5,- fontSize: '0.75rem',- fontFamily: monoFont,- '&:hover': {- backgroundColor: isDark ? 'rgba(255,255,255,0.05)' : 'rgba(0,0,0,0.04)',- },- }}- >- <VideoLibraryIcon sx={{fontSize: 16}}/>- Browse- </IconButton>- </Tooltip>- {/* Open Folder button */}- <Tooltip title={t('openFolder')}>- <IconButton- size="small"- onClick={handleOpenFolder}- sx={{- color: isDark ? '#ffcc80' : theme.palette.warning.dark,- border: `1px solid ${isDark ? 'rgba(255,204,128,0.3)' : theme.palette.warning.light}`,- borderRadius: '6px',- px: 1,- gap: 0.5,- fontSize: '0.75rem',- fontFamily: monoFont,- '&:hover': {- backgroundColor: isDark ? 'rgba(255,204,128,0.1)' : 'rgba(255,152,0,0.08)',- },- }}- >- <FolderOpenIcon sx={{fontSize: 16}}/>- </IconButton>- </Tooltip>+ <div className="flex-1"/>- {/* Spacer */}- <Box sx={{flex: 1}}/>-- {/* Stats chips */}- <Tooltip title={t('cameraStreams')}>- <Chip- icon={<VideocamIcon sx={{fontSize: '14px !important'}}/>}- label={t('cameraCount', {count: loadedVideos.length})}- size="small"- variant="outlined"- sx={{- fontFamily: monoFont,- fontSize: '0.75rem',- height: 24,- borderColor: isDark ? 'rgba(41,182,246,0.3)' : undefined,- color: isDark ? '#29b6f6' : theme.palette.info.main,- '& .MuiChip-icon': {color: 'inherit'},- }}- />- </Tooltip>+ <span title={t('cameraStreams')} className="tag text sm">+ {t('cameraCount', {count: loadedVideos.length})}+ </span>{totalSize > 0 && (- <Tooltip title={t('totalRecordingSize')}>- <Chip- icon={<StorageIcon sx={{fontSize: '14px !important'}}/>}- label={formatBytes(totalSize)}- size="small"- variant="outlined"- sx={{- fontFamily: monoFont,- fontSize: '0.75rem',- height: 24,- borderColor: isDark ? 'rgba(255,255,255,0.15)' : undefined,- color: isDark ? '#b3b9c6' : theme.palette.text.secondary,- '& .MuiChip-icon': {color: 'inherit'},- }}- />- </Tooltip>+ <span title={t('totalRecordingSize')} className="tag text sm">+ {formatBytes(totalSize)}+ </span>)}{recordingFps != null && recordingFps > 0 && (- <Tooltip title={t('recordingCaptureFps')}>- <Chip- label={`rec: ${recordingFps} fps`}- size="small"- variant="outlined"- sx={{- fontFamily: monoFont,- fontSize: '0.75rem',- height: 24,- borderColor: isDark ? 'rgba(255,204,128,0.3)' : undefined,- color: isDark ? '#ffcc80' : theme.palette.warning.dark,- }}- />- </Tooltip>+ <span title={t('recordingCaptureFps')} className="tag text sm">+ rec: {recordingFps} fps+ </span>)}- </Box>+ </div>- {/* Video + 3D viewport area */}- <Box sx={{ flex: 1, minHeight: 0, display: 'flex', flexDirection: 'column' }}>+ <div className="playback-mode-below-main p-1 flex flex-col flex-1 min-h-0">{settings.show3dView ? (<PanelGroupkey={`main-panels-${resetKey}-${settings.layoutDirection}`}direction={settings.layoutDirection}><Panel defaultSize={60} minSize={20}>- <Box sx={{height: '100%', display: 'flex', flexDirection: 'column'}}>+ <div className="playback-mode-video-feed-container br-2 flex flex-col h-full"><SyncedVideoPlayervideos={videoEntries}manualColumns={settings.columns}resetKey={resetKey}controller={controller}/>- </Box>+ </div></Panel>- <PanelResizeHandle>- <Box- sx={{- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- backgroundColor: theme.palette.divider,- transition: 'background-color 0.15s ease',- cursor: isHorizontal ? 'col-resize' : 'row-resize',- ...(isHorizontal- ? {width: '6px', height: '100%', flexDirection: 'column'}- : {height: '6px', width: '100%', flexDirection: 'row'}- ),- '&:hover': {- backgroundColor: theme.palette.primary.main,- },- '&:active': {- backgroundColor: theme.palette.primary.dark,- },- }}- >- {[0, 1, 2].map((i) => (- <Box- key={i}- sx={{- width: 4,- height: 4,- borderRadius: '50%',- backgroundColor: theme.palette.text.disabled,- m: isHorizontal ? '2px 0' : '0 2px',- flexShrink: 0,- }}- />- ))}- </Box>- </PanelResizeHandle>+ <PanelResizeHandle+ className="resizable-component"+ style={{+ width: "4px",+ cursor: "col-resize",+ backgroundColor: "var(--color-surface-active)",+ }}+ /><Panel defaultSize={40} minSize={10}>- <Box sx={{height: '100%'}}>+ <div className="h-full"><FileKeypointsSourceProviderrecordingId={activeRecordingName}recordingParentDirectory={activeRecordingBaseDirectory}@@ -312,7 +193,7 @@ const PlaybackPage: React.FC = () => {><ThreeJsCanvas/></FileKeypointsSourceProvider>- </Box>+ </div></Panel></PanelGroup>) : (@@ -323,9 +204,8 @@ const PlaybackPage: React.FC = () => {controller={controller}/>)}- </Box>-- {/* Playback controls — full width below video + 3D area */}+ </div>+<PlaybackControlsisPlaying={controller.isPlaying}currentTime={controller.currentTime}@@ -350,14 +230,10 @@ const PlaybackPage: React.FC = () => {selectedSource={selectedSource}onSourceChange={setSelectedSource}/>- </Box>+ </div></ErrorBoundary>- </Box>-- <Box component="footer" sx={{p: 0.5}}>- <Footer/>- </Box>- </Box>+ </div>+ </div>);};diff --git a/freemocap-ui/src/pages/StreamingViewPage.tsx b/freemocap-ui/src/pages/StreamingViewPage.tsxindex c5ccfed7..72d16f48 100644--- a/freemocap-ui/src/pages/StreamingViewPage.tsx+++ b/freemocap-ui/src/pages/StreamingViewPage.tsx@@ -1,138 +1,97 @@-import React, {useCallback, useState} from 'react';-import Box from "@mui/material/Box";+import React, { useCallback, useState } from "react";import ErrorBoundary from "@/components/common/ErrorBoundary";-import {Footer} from "@/components/ui-components/Footer";-import {useTheme} from "@mui/material/styles";-import {CameraViewsGrid} from "@/components/camera-views/CameraViewsGrid";-import {Panel, PanelGroup, PanelResizeHandle} from "react-resizable-panels";-import {ThreeJsCanvas} from "@/components/viewport3d/ThreeJsCanvas";-import {- SettingsOverlay-} from "@/components/ui-components/SettingsOverlay";+import { Footer } from "@/components/ui-components/Footer";+import { CameraViewsGrid } from "@/components/camera-views/CameraViewsGrid";+import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels";+import { ThreeJsCanvas } from "@/components/viewport3d/ThreeJsCanvas";+import { SettingsOverlay } from "@/components/ui-components/SettingsOverlay";-export type LayoutDirection = 'vertical' | 'horizontal';+export type LayoutDirection = "vertical" | "horizontal";export interface CameraSettings {- columns: number | null;- show3dView: boolean;- layoutDirection: LayoutDirection;+ columns: number | null;+ show3dView: boolean;+ layoutDirection: LayoutDirection;}export const StreamingViewPage = () => {- const theme = useTheme();- const [resetKey, setResetKey] = useState<number>(0);- const [settings, setSettings] = useState<CameraSettings>({- columns: null,- show3dView: true,- layoutDirection: 'horizontal',- });+ const [resetKey, setResetKey] = useState<number>(0);+ const [settings, setSettings] = useState<CameraSettings>({+ columns: null,+ show3dView: true,+ layoutDirection: "horizontal",+ });- const handleSettingsChange = useCallback((partial: Partial<CameraSettings>) => {- setSettings((prev) => ({...prev, ...partial}));- }, []);+ const handleSettingsChange = useCallback(+ (partial: Partial<CameraSettings>) => {+ setSettings((prev) => ({ ...prev, ...partial }));+ },+ [],+ );- const handleResetLayout = useCallback(() => {- setResetKey((v) => v + 1);- }, []);+ const handleResetLayout = useCallback(() => {+ setResetKey((v) => v + 1);+ }, []);- const isHorizontal = settings.layoutDirection === 'horizontal';+ const isHorizontal = settings.layoutDirection === "horizontal";- return (- <React.Fragment>- <Box sx={{- py: 1,- px: 1,- flex: 1,- display: 'flex',- flexDirection: 'column',- height: '100%',- width: '100%',- backgroundColor: theme.palette.mode === 'dark'- ? theme.palette.background.default- : theme.palette.background.paper,- overflow: "hidden",- position: 'relative',- }}>- <SettingsOverlay- settings={settings}- onSettingsChange={handleSettingsChange}- onResetLayout={handleResetLayout}- />+ return (+ <React.Fragment>+ <div className="streaming-page p-1 flex flex-col pos-rel flex-1 h-full w-full">+ <SettingsOverlay+ settings={settings}+ onSettingsChange={handleSettingsChange}+ onResetLayout={handleResetLayout}+ />- <Box sx={{flex: 1, overflow: 'hidden'}}>- {settings.show3dView ? (- <PanelGroup- key={`main-panels-${resetKey}-${settings.layoutDirection}`}- direction={settings.layoutDirection}- >- {/* Camera Grid View Panel */}- <Panel defaultSize={60} minSize={20}>- <Box sx={{height: '100%', overflow: 'auto'}}>- <ErrorBoundary>- <CameraViewsGrid manualColumns={settings.columns} resetKey={resetKey}/>- </ErrorBoundary>- </Box>- </Panel>+ <div className="flex-1 overflow-hidden">+ {settings.show3dView ? (+ <PanelGroup+ key={`main-panels-${resetKey}-${settings.layoutDirection}`}+ direction={settings.layoutDirection}+ >+ <Panel defaultSize={60} minSize={20}>+ <div className="streaming-page-camera-feed-container br-2 h-full overflow-y">+ <ErrorBoundary>+ <CameraViewsGrid+ manualColumns={settings.columns}+ resetKey={resetKey}+ />+ </ErrorBoundary>+ </div>+ </Panel>- {/* Resize Handle — direction-aware sizing and drag indicator */}- <PanelResizeHandle>- <Box- sx={{- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- backgroundColor: theme.palette.divider,- transition: 'background-color 0.15s ease',- cursor: isHorizontal ? 'col-resize' : 'row-resize',- ...(isHorizontal- ? {width: '6px', height: '100%', flexDirection: 'column'}- : {height: '6px', width: '100%', flexDirection: 'row'}- ),- '&:hover': {- backgroundColor: theme.palette.primary.main,- },- '&:active': {- backgroundColor: theme.palette.primary.dark,- },- }}- >- {/* Drag grip dots */}- {[0, 1, 2].map((i) => (- <Box- key={i}- sx={{- width: isHorizontal ? 4 : 4,- height: isHorizontal ? 4 : 4,- borderRadius: '50%',- backgroundColor: theme.palette.text.disabled,- m: isHorizontal ? '2px 0' : '0 2px',- flexShrink: 0,- }}- />- ))}- </Box>- </PanelResizeHandle>+ <PanelResizeHandle+ className="resizable-component"+ style={{+ width: "4px",+ cursor: "col-resize",+ backgroundColor: "var(--color-surface-active)",+ }}+ />- {/* 3D View Panel */}- <Panel defaultSize={40} minSize={10}>- <Box sx={{height: '100%'}}>- <ThreeJsCanvas/>- </Box>- </Panel>- </PanelGroup>- ) : (- <Box sx={{height: '100%', overflow: 'auto'}}>- <ErrorBoundary>- <CameraViewsGrid manualColumns={settings.columns} resetKey={resetKey}/>- </ErrorBoundary>- </Box>- )}- </Box>+ <Panel defaultSize={40} minSize={10}>+ <div className="h-full 3d-viewport-master">+ <ThreeJsCanvas />+ </div>+ </Panel>+ </PanelGroup>+ ) : (+ <div className="h-full overflow-y">+ <ErrorBoundary>+ <CameraViewsGrid+ manualColumns={settings.columns}+ resetKey={resetKey}+ />+ </ErrorBoundary>+ </div>+ )}+ </div>- <Box component="footer" sx={{p: 1, flexShrink: 0}}>- <Footer/>- </Box>- </Box>- </React.Fragment>- );+ {/* <footer className="p-2 flex-shrink-0">+ <Footer />+ </footer> */}+ </div>+ </React.Fragment>+ );};diff --git a/freemocap-ui/src/pages/WelcomePage.tsx b/freemocap-ui/src/pages/WelcomePage.tsxdeleted file mode 100644index 0ee20650..00000000--- a/freemocap-ui/src/pages/WelcomePage.tsx+++ /dev/null@@ -1,419 +0,0 @@-import React, {useCallback, useEffect, useRef, useState} from 'react';-import {- Box,- Button,- Checkbox,- CircularProgress,- Container,- darken,- Divider,- Fade,- FormControlLabel,- Grow,- Link as MuiLink,- Paper,- Stack,- Typography-} from '@mui/material';-import {useNavigate} from 'react-router-dom';-import {useTheme} from '@mui/material/styles';-import VideocamIcon from '@mui/icons-material/Videocam';-import OpenInNewIcon from '@mui/icons-material/OpenInNew';-import {Footer} from '@/components/ui-components/Footer';-import {useElectronIPC} from "@/services";-import {useServer} from "@/services/server/ServerContextProvider";-import {useTranslation} from "react-i18next";-import {LanguageSwitcher} from "@/components/languages/LanguageSwitcher";-import {VersionChip} from "@/components/ui-components/VersionChip";-import {useAppDispatch} from "@/store";-import {camerasConnectOrUpdate} from "@/store/slices/cameras/cameras-thunks";-import {EXTERNAL_URLS} from "@/constants/external-urls";--const WelcomePage: React.FC = () => {- const {t} = useTranslation();- const theme = useTheme();- const navigate = useNavigate();- const [logoDataUrl, setLogoDataUrl] = useState<string | null>(null);- const [telemetryEnabled, setTelemetryEnabled] = useState<boolean>(true);- const [telemetryLoaded, setTelemetryLoaded] = useState<boolean>(false);- const {isElectron, api} = useElectronIPC();- const {connectedCameraIds} = useServer();- const dispatch = useAppDispatch();- const [isConnecting, setIsConnecting] = useState(false);-- // Track previous camera count to detect 0 -> >0 transition- const prevCountRef = useRef(connectedCameraIds.length);-- useEffect(() => {- const prevCount = prevCountRef.current;- const currentCount = connectedCameraIds.length;-- // Auto-navigate to cameras page when first camera connects (0 -> >0 transition)- if (prevCount === 0 && currentCount > 0) {- navigate('/streaming');- }-- prevCountRef.current = currentCount;- }, [connectedCameraIds, navigate]);-- useEffect(() => {- const fetchLogo = async (): Promise<void> => {- try {- if (isElectron && api) {- const dataUrl = await api.assets.getLogoBase64.query();- if (dataUrl) {- setLogoDataUrl(dataUrl);- } else {- console.warn('Logo image not found...');- }- }- } catch (error) {- console.error('Failed to load logo:', error);- }- };-- fetchLogo();- }, [isElectron, api]);-- // Load telemetry preference on mount- useEffect(() => {- const loadTelemetryPref = async (): Promise<void> => {- try {- if (isElectron && api) {- const enabled = await api.telemetry.getEnabled.query();- setTelemetryEnabled(enabled);- }- } catch (error) {- console.error('Failed to load telemetry preference:', error);- } finally {- setTelemetryLoaded(true);- }- };-- loadTelemetryPref();- }, [isElectron, api]);-- const handleTelemetryToggle = useCallback(async (_event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {- setTelemetryEnabled(checked);- try {- if (isElectron && api) {- await api.telemetry.setEnabled.mutate({enabled: checked});- }- } catch (error) {- console.error('Failed to save telemetry preference:', error);- }- }, [isElectron, api]);-- const handleConnectCameras = useCallback(async () => {- setIsConnecting(true);- try {- await dispatch(camerasConnectOrUpdate()).unwrap();- } catch (error) {- console.error('Error connecting cameras:', error);- } finally {- setIsConnecting(false);- }- }, [dispatch]);-- return (- <Box sx={{- width: '100%',- height: '100%',- bgcolor: theme.palette.background.default,- display: 'flex',- flexDirection: 'column',- overflowY: 'auto',- overflowX: 'hidden',- }}>- <Container maxWidth="md" sx={{- py: 4,- display: 'flex',- flexDirection: 'column',- alignItems: 'center',- flex: '0 0 auto',- }}>- <Fade in={true} timeout={800}>- <Paper- elevation={6}- sx={{- p: {xs: 3, sm: 5},- display: 'flex',- flexDirection: 'column',- alignItems: 'center',- width: '100%',- backgroundColor: theme.palette.background.paper,- mx: 'auto',- borderRadius: 3,- boxShadow: theme.palette.mode === 'dark'- ? '0 8px 32px rgba(0, 0, 0, 0.5)'- : '0 8px 32px rgba(0, 0, 0, 0.1)',- overflow: 'hidden',- position: 'relative'- }}- >- {/* Gradient accent bar */}- <Box sx={{- position: 'absolute',- top: 0,- left: 0,- width: '100%',- height: '8px',- background: `linear-gradient(90deg, ${theme.palette.primary.light}, ${theme.palette.info.main})`,- }}/>-- {/* ── HERO SECTION ── */}- <Box sx={{display: 'flex', flexDirection: 'column', alignItems: 'center', mb: 2}}>- <Grow in={true} timeout={1000}>- <Box- sx={{- width: 180,- height: 180,- mb: 2,- mt: 2,- display: 'flex',- justifyContent: 'center',- alignItems: 'center',- transition: 'transform 0.3s ease-in-out',- '&:hover': {- transform: 'scale(1.05)'- }- }}- >- {logoDataUrl && (- <img- src={logoDataUrl}- alt="FreeMoCap Logo"- style={{- maxWidth: '100%',- maxHeight: '100%',- objectFit: 'contain',- filter: theme.palette.mode === 'dark'- ? 'drop-shadow(0 0 10px rgba(255,255,255,0.2))'- : 'drop-shadow(0 0 10px rgba(0,0,0,0.1))'- }}- />- )}- </Box>- </Grow>-- <Typography- variant="h3"- component="h1"- gutterBottom- sx={{- fontWeight: 'bold',- textAlign: 'center',- background: theme.palette.text.primary,- WebkitBackgroundClip: 'text',- WebkitTextFillColor: 'transparent',- backgroundClip: 'text',- textFillColor: 'transparent',- mb: 1- }}- >- {t('welcomeTitle')}- </Typography>-- <Typography- variant="subtitle1"- color="text.secondary"- sx={{- mb: 1,- textAlign: 'center',- maxWidth: '80%',- fontSize: '1.1rem'- }}- >- {t('welcomeSubtitle')}- </Typography>- </Box>-- {/* ── PRIMARY CTA ── */}- <Box sx={{width: '100%', display: 'flex', justifyContent: 'center', mb: 2}}>- <Button- variant="contained"- size="large"- startIcon={isConnecting- ? <CircularProgress size={24} color="inherit"/>- : <VideocamIcon sx={{fontSize: 28}}/>- }- onClick={handleConnectCameras}- disabled={isConnecting}- sx={{- '&&': {- px: 6,- py: 2,- fontSize: '1.25rem',- fontWeight: 600,- minHeight: 56,- padding: '16px 48px',- },- width: '100%',- maxWidth: 400,- borderRadius: 3,- textTransform: 'none',- background: darken(theme.palette.info.dark, .4),- color: theme.palette.text.primary,- border: `4px solid ${theme.palette.secondary.main}`,- boxShadow: `0 4px 20px rgba(245, 0, 87, 0.25)`,- '&:hover': {- background: theme.palette.info.dark,- boxShadow: `0 6px 28px rgba(245, 0, 87, 0.4)`,- transform: 'translateY(-1px)',- border: `4px solid ${theme.palette.secondary.light}`,- color: theme.palette.text.primary,- },- transition: 'all 0.2s ease-in-out',- }}- >- {t('connectToCameras')}- </Button>- </Box>--- {/* ── SETTINGS AREA ── */}- <Divider sx={{width: '60%', my: 1.5}}/>- <Box sx={{display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 1, mb: 2}}>- <LanguageSwitcher/>- {telemetryLoaded && (- <Fade in={true} timeout={600}>- <FormControlLabel- control={- <Checkbox- checked={telemetryEnabled}- onChange={handleTelemetryToggle}- size="small"- />- }- label={- <Typography variant="body2" color="text.secondary">- {t('sendAnonymousPings')}- </Typography>- }- />- </Fade>- )}- <VersionChip variant="compact"/>- </Box>-- {/* ── SECONDARY LINKS ── */}- <Stack direction="row" spacing={2} sx={{mb: 2}}>- <Button- variant="text"- size="small"- color="inherit"- endIcon={<OpenInNewIcon sx={{fontSize: 14}}/>}- onClick={() => window.open(EXTERNAL_URLS.DOCS, '_blank')}- sx={{- textTransform: 'none',- color: theme.palette.info.light,- '&:hover': {color: theme.palette.info.main},- }}- >- {t('documentation')}- </Button>- <Button- variant="text"- size="small"- color="inherit"- endIcon={<OpenInNewIcon sx={{fontSize: 14}}/>}- onClick={() => window.open(EXTERNAL_URLS.ROADMAP, '_blank')}- sx={{- textTransform: 'none',- color: theme.palette.info.light,- '&:hover': {color: theme.palette.info.main},- }}- >- {t('roadmap')}- </Button>- </Stack>-- {/* ── FOOTER ── */}- <Box sx={{textAlign: 'center'}}>- <Footer/>- </Box>- </Paper>- </Fade>-- {/* Research Tool Disclaimer - Outside main clickable area */}- <Paper- elevation={1}- sx={{- p: 2.5,- width: '100%',- backgroundColor: theme.palette.mode === 'dark'- ? 'rgba(255, 255, 255, 0.03)'- : 'rgba(0, 0, 0, 0.02)',- borderRadius: 2,- mt: 2,- }}- >- <Typography- variant="body2"- color="text.secondary"- sx={{- fontSize: '0.85rem',- lineHeight: 1.8,- '& a': {- color: theme.palette.mode === 'dark'- ? theme.palette.primary.light- : theme.palette.primary.main,- textDecoration: 'none',- fontWeight: 500,- transition: 'all 0.2s',- '&:hover': {- textDecoration: 'underline',- color: theme.palette.mode === 'dark'- ? theme.palette.primary.main- : theme.palette.primary.dark- }- }- }}- >- FreeMoCap is not cleared by the FDA for clinical use and should to be used in clinical diagnosis and treatment.- Motion capture devices are regulated under{' '}- <MuiLink- href="https://www.ecfr.gov/current/title-21/chapter-I/subchapter-H/part-890"- target="_blank"- rel="noopener noreferrer"- onClick={(e: React.MouseEvent) => e.stopPropagation()}- >- 21 CFR Part 890 (Physical Medicine Devices)- </MuiLink>- {' '}and require{' '}- <MuiLink- href="https://www.fda.gov/medical-devices/premarket-submissions-selecting-and-preparing-correct-submission/premarket-notification-510k"- target="_blank"- rel="noopener noreferrer"- onClick={(e: React.MouseEvent) => e.stopPropagation()}- >- 510(k) clearance- </MuiLink>- {' '}for clinical applications.- <br/>- <br/>- <MuiLink- href="https://aaroncherian.github.io/freemocap_validation/"- target="_blank"- rel="noopener noreferrer"- onClick={(e: React.MouseEvent) => e.stopPropagation()}- >- - View our validation studies- </MuiLink>- <br/>- <MuiLink- href="https://github.com/freemocap/freemocap_foundation/issues/32"- target="_blank"- rel="noopener noreferrer"- onClick={(e: React.MouseEvent) => e.stopPropagation()}- >- - Join our journey towards FDA certification- </MuiLink>- </Typography>- </Paper>- </Container>- </Box>- );-};--export default WelcomePage;diff --git a/freemocap-ui/src/services/server/ServerContextProvider.tsx b/freemocap-ui/src/services/server/ServerContextProvider.tsxindex a213c627..9af97037 100644--- a/freemocap-ui/src/services/server/ServerContextProvider.tsx+++ b/freemocap-ui/src/services/server/ServerContextProvider.tsx@@ -689,15 +689,21 @@ export const ServerContextProvider: React.FC<{ children: ReactNode }> = ({childr}, []);const updateServerConnection = useCallback((host: string, port: number): void => {+ const currentUrl = serverUrls.getWebSocketUrl();+// Update the singleton so HTTP endpoints also updateserverUrls.setHost(host);serverUrls.setPort(port);- // Update the WebSocket URL and reconnect+ const newUrl = serverUrls.getWebSocketUrl();++ // Only disconnect and reconnect if the URL actually changed — calling this+ // on every mount (e.g. when CollapsedToolbar mounts on sidebar collapse)+ // with the same URL was causing a spurious disconnect → "no cameras" flash.const ws = wsConnectionRef.current;- if (ws) {+ if (ws && newUrl !== currentUrl) {ws.disconnect();- ws.updateUrl(serverUrls.getWebSocketUrl());+ ws.updateUrl(newUrl);// The auto-reconnect loop in ServerConnectionStatus will re-trigger connect()}}, []);diff --git a/freemocap-ui/src/store/index.ts b/freemocap-ui/src/store/index.tsindex 68de5457..54fe5887 100644--- a/freemocap-ui/src/store/index.ts+++ b/freemocap-ui/src/store/index.ts@@ -6,7 +6,6 @@ export { useAppDispatch, useAppSelector } from './hooks';// Re-export all slice actions and selectors for a nice 'barrel' design pattern, which makes imports cleanerexport * from './slices/cameras';export * from './slices/recording';-export * from './slices/theme';export * from './slices/videos';export * from './slices/realtime';export * from './slices/mocap';diff --git a/freemocap-ui/src/store/slices/calibration/calibration-slice.ts b/freemocap-ui/src/store/slices/calibration/calibration-slice.tsindex 6c272b25..d586b73c 100644--- a/freemocap-ui/src/store/slices/calibration/calibration-slice.ts+++ b/freemocap-ui/src/store/slices/calibration/calibration-slice.ts@@ -42,6 +42,7 @@ export interface CalibrationState {error: string | null;directoryInfo: CalibrationDirectoryInfo | null;loadedCalibration: LoadedCalibration | null;+ dismissedCalibrationPath: string | null;}const DEFAULT_CALIBRATION_CONFIG: CalibrationConfig = {@@ -62,6 +63,7 @@ const initialState: CalibrationState = {error: null,directoryInfo: null,loadedCalibration: null,+ dismissedCalibrationPath: null,};export const calibrationSlice = createSlice({@@ -88,6 +90,9 @@ export const calibrationSlice = createSlice({calibrationLoadedFromBundle: (state, action: PayloadAction<LoadedCalibration | null>) => {state.loadedCalibration = action.payload;},+ calibrationAutoLoadDismissed: (state, action: PayloadAction<string | null>) => {+ state.dismissedCalibrationPath = action.payload;+ },resetCalibrationState: () => initialState,},extraReducers: (builder) => {@@ -164,6 +169,7 @@ export const selectCalibrationProgress = (state: RootState) => state.calibrationexport const selectCalibrationError = (state: RootState) => state.calibration.error;export const selectCalibrationDirectoryInfo = (state: RootState) => state.calibration.directoryInfo;export const selectLoadedCalibration = (state: RootState) => state.calibration.loadedCalibration;+export const selectDismissedCalibrationPath = (state: RootState) => state.calibration.dismissedCalibrationPath;export const selectCalibrationRecordingPath = selectActiveRecordingFullPath;@@ -208,5 +214,6 @@ export const {calibrationDirectoryInfoUpdated,calibrationPipelineProgressReceived,calibrationLoadedFromBundle,+ calibrationAutoLoadDismissed,resetCalibrationState,} = calibrationSlice.actions;diff --git a/freemocap-ui/src/store/slices/cameras/cameras-slice.ts b/freemocap-ui/src/store/slices/cameras/cameras-slice.tsindex db92004a..30f1935c 100644--- a/freemocap-ui/src/store/slices/cameras/cameras-slice.ts+++ b/freemocap-ui/src/store/slices/cameras/cameras-slice.ts@@ -136,7 +136,21 @@ export const cameraSlice = createSlice({}).addCase(detectCameras.fulfilled, (state, action) => {state.isLoading = false;- state.cameras = action.payload;+ const previousCameras = state.cameras;+ state.cameras = action.payload.map(camera => {+ const existing = previousCameras.find(cam => cam.id === camera.id);+ if (!existing) return camera;+ return {+ ...camera,+ actualConfig: existing.actualConfig,+ desiredConfig: existing.desiredConfig,+ hasConfigMismatch: existing.hasConfigMismatch,+ connectionStatus: existing.connectionStatus,+ selected: existing.selected,+ realtimeEnabled: existing.realtimeEnabled,+ metrics: existing.metrics,+ };+ });persistAllCameraSettings(state);}).addCase(detectCameras.rejected, (state, action) => {diff --git a/freemocap-ui/src/store/slices/cameras/cameras-thunks.ts b/freemocap-ui/src/store/slices/cameras/cameras-thunks.tsindex 6fe2404e..9629d8f3 100644--- a/freemocap-ui/src/store/slices/cameras/cameras-thunks.ts+++ b/freemocap-ui/src/store/slices/cameras/cameras-thunks.ts@@ -29,10 +29,7 @@ export const detectCameras = createAsyncThunk<{ state: RootState }>('cameras/detect',- async (request = { filterVirtual: true }, { getState }) => {- const state = getState();- const existingCameras = state.cameras.cameras;-+ async (request = { filterVirtual: true }) => {const response = await fetch(serverUrls.endpoints.detectCameras, {method: 'POST',headers: { 'Content-Type': 'application/json' },@@ -67,7 +64,6 @@ export const detectCameras = createAsyncThunk<return data.cameras.map((serverCamera): Camera => {const cameraId = serverCamera.camera_id;- const existing = existingCameras.find(cam => cam.id === cameraId);const saved = prunedPersisted[cameraId];const defaultConfig = createDefaultCameraConfig(@@ -76,25 +72,24 @@ export const detectCameras = createAsyncThunk<serverCamera.name,);- // Priority: existing in-memory state > persisted localStorage > defaults- const desiredConfig: CameraConfig = existing?.desiredConfig- ?? (saved ? { ...defaultConfig, ...saved.desiredConfig } : { ...defaultConfig });-- const selected: boolean = existing?.selected- ?? saved?.selected- ?? true;+ // Priority: persisted localStorage > defaults+ // (in-memory state for an already-known camera is merged in by the+ // reducer, using the state at fulfillment time rather than this+ // stale dispatch-time snapshot)+ const desiredConfig: CameraConfig = saved+ ? { ...defaultConfig, ...saved.desiredConfig }+ : { ...defaultConfig };- const realtimeEnabled: boolean = existing?.realtimeEnabled- ?? saved?.realtimeEnabled- ?? true;+ const selected: boolean = saved?.selected ?? true;+ const realtimeEnabled: boolean = saved?.realtimeEnabled ?? true;return {id: cameraId,name: serverCamera.name,index: serverCamera.index,- actualConfig: existing?.actualConfig || defaultConfig,+ actualConfig: defaultConfig,desiredConfig,- hasConfigMismatch: existing?.hasConfigMismatch ?? false,+ hasConfigMismatch: false,connectionStatus: 'available',selected,realtimeEnabled,@@ -102,7 +97,7 @@ export const detectCameras = createAsyncThunk<vendorId: serverCamera.vendor_id,productId: serverCamera.product_id,},- metrics: existing?.metrics,+ metrics: undefined,};});}@@ -135,7 +130,10 @@ export const camerasConnectOrUpdate = createAsyncThunk<}// RECOMMEND triggers a slow backend algorithm; give it enough time.- const timeoutMs = hasRecommend ? 60_000 : 3_000;+ // Opening camera devices for the first time can also be much slower+ // than re-applying config to cameras that are already running.+ const anyConnected = state.cameras.cameras.some(c => c.connectionStatus === 'connected');+ const timeoutMs = hasRecommend ? 60_000 : anyConnected ? 3_000 : 15_000;const controller = new AbortController();const timeout = setTimeout(() => controller.abort(), timeoutMs);let response: Response;diff --git a/freemocap-ui/src/store/slices/mocap/mocap-slice.ts b/freemocap-ui/src/store/slices/mocap/mocap-slice.tsindex ca3888ca..d38e591f 100644--- a/freemocap-ui/src/store/slices/mocap/mocap-slice.ts+++ b/freemocap-ui/src/store/slices/mocap/mocap-slice.ts@@ -111,6 +111,25 @@ export const DEFAULT_ESTIMATOR_CONFIG: EstimatorConfig = {iqr_confidence_sensitivity: 10.0,};+export type DetectorPreset = "realtime" | "posthoc" | "custom";++/** Detects which preset (if any) the current detector config matches. */+export function detectPreset(+ config: { model_complexity: number; enable_segmentation: boolean; smooth_segmentation: boolean }+): DetectorPreset {+ if (+ config.model_complexity === 0 &&+ !config.enable_segmentation &&+ !config.smooth_segmentation+ ) return "realtime";+ if (+ config.model_complexity === 2 &&+ config.enable_segmentation &&+ config.smooth_segmentation+ ) return "posthoc";+ return "custom";+}+/** Default RealtimeFilterConfig matching backend defaults. */export const DEFAULT_REALTIME_FILTER_CONFIG: RealtimeFilterConfig = {min_cutoff: 0.005,diff --git a/freemocap-ui/src/store/slices/theme/index.ts b/freemocap-ui/src/store/slices/theme/index.tsindex dd1ab93b..f9eb4abe 100644--- a/freemocap-ui/src/store/slices/theme/index.ts+++ b/freemocap-ui/src/store/slices/theme/index.ts@@ -1,3 +1,2 @@export * from './theme-slice';export * from './theme-types';-export * from './theme-selectors';diff --git a/freemocap-ui/src/store/slices/theme/theme-selectors.ts b/freemocap-ui/src/store/slices/theme/theme-selectors.tsindex f9d12576..8b137891 100644--- a/freemocap-ui/src/store/slices/theme/theme-selectors.ts+++ b/freemocap-ui/src/store/slices/theme/theme-selectors.ts@@ -1,5 +1 @@-import {RootState} from '../../types';-export const selectThemeMode = (state: RootState) => state.theme.mode;-export const selectSystemThemePreference = (state: RootState) =>- state.theme.systemPreference;diff --git a/freemocap-ui/src/store/store.ts b/freemocap-ui/src/store/store.tsindex 564473a2..ec7a9a20 100644--- a/freemocap-ui/src/store/store.ts+++ b/freemocap-ui/src/store/store.ts@@ -3,7 +3,6 @@ import {cameraConfigListenerMiddleware} from "@/store/camera-config-listener";import {persistenceListenerMiddleware} from "@/store/persistence-listener";import {cameraSlice} from "@/store/slices/cameras";import {recordingSlice} from "@/store/slices/recording";-import {themeSlice} from "@/store/slices/theme";import {videosSlice} from "@/store/slices/videos";import {realtimeSlice} from "@/store/slices/realtime";import {calibrationSlice} from "@/store/slices/calibration/calibration-slice";@@ -23,7 +22,6 @@ export const store = configureStore({reducer: {cameras: cameraSlice.reducer,recording: recordingSlice.reducer,- theme: themeSlice.reducer,videos: videosSlice.reducer,realtime: realtimeSlice.reducer,calibration: calibrationSlice.reducer,diff --git a/freemocap-ui/src/styles/App.css b/freemocap-ui/src/styles/App.cssnew file mode 100644index 00000000..a230f4d1--- /dev/null+++ b/freemocap-ui/src/styles/App.css@@ -0,0 +1,636 @@+@import './reset.css';+@import './font.css';+@import './icons.css';+@import './color.css';+@import './animation.css';+@import './log-terminal.css';+@import './framerate.css';+@import './camera.css';+@import './checkbox.css';+@import './components.css';+@import './calibration-module.css';+@import './playback.css';+@import './tooltips.css';+@import './toggle.css';+@import './button-sm.css';++/* base / reset */+++/* =========================+ UTILITIES (Tailwind-like)+ ========================= */++.overflow-hidden {+ overflow: hidden;+}++.overflow-y {+ overflow-y: auto;+}++.overflow-x {+ overflow-x: auto;+}++.overflow-x-hidden {+ overflow-x: hidden;+}++/* ==========================+ Global Scrollbar Styling+ Applies to all scrollbars+ ========================== */++/* Track */+::-webkit-scrollbar-track {+ border-radius: 10px;+ background-color: transparent;+}++/* Scrollbar */+::-webkit-scrollbar {+ width: calc(12px - 4px);+ height: 12px;+ background-color: transparent;+}++/* Thumb */+::-webkit-scrollbar-thumb {+ border-radius: 99px;+ background-color: var(--color-border-secondary);+ cursor: grab;+ border: 2px solid var(--color-bg-secondary);+}++/* Thumb hover */+::-webkit-scrollbar-thumb:hover {+ background-color: var(--color-bg-primary);+}++/* Thumb active */+::-webkit-scrollbar-thumb:active {+ background-color: var(--color-bg-primary);+ cursor: grabbing;+}++a,+a.link {+ text-decoration: underline;+ text-underline-offset: 3px;+ color: inherit;+ transition: filter var(--speed-1) ease-in-out;+}++a:hover,+a.link:hover {+ filter: brightness(0.8);+ transition: filter var(--speed-1) ease-in-out;+}++/* a:not(.ai)::after {+ content: var(--externallink-icon);+ display: inline-block;+ position: absolute;+ margin-left: 2px;+} */++/* =========================+ Z-INDEX+ ========================= */++.z-1 { z-index: 1; }+.z-2 { z-index: 2; }+.z-3 { z-index: 3; }+.z-4 { z-index: 4; }+.z-5 { z-index: 5; }+.z-6 { z-index: 6; }+.z-7 { z-index: 7; }+.z-8 { z-index: 8; }+.z-9 { z-index: 9; }+.z-10 { z-index: 10; }+.z-110i { z-index: 110!important; }++/* =========================+ POSITIONS+ ========================= */++.pos-rel {+ position: relative;+}++.pos-abs {+ position: absolute;+}++.pos-sticky {+ position: sticky;+}+.pos-fixed {+ position: fixed;+}++/* Position helpers */++.top-0 { top: 0; }+.top-2 { top: 2px; }+.top-4 { top: 4px; }+.top-6 { top: 6px; }+.top-8 { top: 8px; }+.top-10 { top: 10px; }+.top-12 { top: 12px; }+.top-14 { top: 14px; }+.top-16 { top: 16px; }+.top-18 { top: 18px; }+.top-20 { top: 20px; }+.top-22 { top: 22px; }+.top-24 { top: 24px; }+.top-26 { top: 26px; }+.top-28 { top: 28px; }+.top-30 { top: 30px; }++.top-unset { top: unset; }+.top-50 {+ top: 50%;+ transform: translateY(-50%);+}++.left-0 { left: 0; }+.left-2 { left: 2px; }+.left-4 { left: 4px; }+.left-6 { left: 6px; }+.left-8 { left: 8px; }+.left-10 { left: 10px; }+.left-12 { left: 12px; }++.left-50 {+ left: 50%;+ transform: translateX(-50%) translateY(6px);+}++.right-0 { right: 0; }+.right-2 { right: 2px; }+.right-4 { right: 4px; }+.right-6 { right: 6px; }+.right-8 { right: 8px; }+.right-10 { right: 10px; }+.right-12 { right: 12px; }++.right-50 {+ right: 50%;+ transform: translateX(-50%) translateY(6px);+}++.bottom-0 { bottom: 0; }+.bottom-2 { bottom: 2px; }+.bottom-4 { bottom: 4px; }+.bottom-6 { bottom: 6px; }+.bottom-8 { bottom: 8px; }+.bottom-10 { bottom: 10px; }+.bottom-12 { bottom: 12px; }+.bottom-36 { bottom: 36px; }++.bottom-100 { bottom: 100%; }+.inset-0 {+ inset: 0;+}++/* =========================+ DISPLAY / FLEX+ ========================= */++.flex {+ display: flex;+}++.flex-inline {+ display: inline-flex;+}++.flex-row {+ flex-direction: row;+}++.row-reverse {+ flex-direction: row-reverse;+}++.flex-col {+ flex-direction: column;+}++.flex-wrap {+ flex-wrap: wrap;+}+.flex-nowrap {+ flex-wrap: nowrap;+}++.items-center {+ align-items: center;+}++.justify-center {+ justify-content: center;+}++.flex-start {+ align-items: flex-start;+}++.align-content-start {+ align-content: flex-start;+}++.align-end {+ align-items: flex-end;+}++.flex-end {+ justify-content: flex-end;+}++.justify-content-space-between {+ justify-content: space-between;+}++.align-items-end {+ align-items: flex-end;+}++/* =========================+ DISPLAY / BLOCK+ ========================= */++.block {+ display: block;+}++/* =========================+ FLEX PROPORTIONS+ ========================= */++.flex-1 { flex: 1; }+.flex-2 { flex: 2; }+.flex-3 { flex: 3; }+.flex-4 { flex: 4; }+.flex-5 { flex: 5; }+.flex-6 { flex: 6; }++.flex-15 {+ flex: 1.5;+}++.flex-grow {+ flex-grow: 1;+}++.flex-shrink-0 {+ flex-shrink: 0;+}++/* =========================+ GAPS+ ========================= */++.gap-1 { gap: 4px; }+.gap-2 { gap: 8px; }+.gap-3 { gap: 12px; }+.gap-4 { gap: 16px; }+.gap-32 { gap: 32px; }++/* =========================+ PADDING+ ========================= */++.p-0 { padding: 0px; }+.p-01 { padding: 2px; }+.p-1 { padding: 4px; }+.p-2 { padding: 8px; }+.p-3 { padding: 12px; }+.p-4 { padding: 16px; }++.pb-0 { padding-bottom: 0px; }+.pb-1 { padding-bottom: 4px; }+.pb-2 { padding-bottom: 8px; }+.pb-3 { padding-bottom: 12px; }+.pb-4 { padding-bottom: 16px; }+.pb-180 { padding-bottom: 180px; }++.pl-0 { padding-left: 0px; }+.pl-1 { padding-left: 4px; }+.pl-2 { padding-left: 8px; }+.pl-3 { padding-left: 12px; }+.pl-4 { padding-left: 16px; }++.pr-0 { padding-right: 0px; }+.pr-1 { padding-right: 4px; }+.pr-2 { padding-right: 8px; }+.pr-3 { padding-right: 12px; }+.pr-4 { padding-right: 16px; }++.pt-1 { padding-top: 4px; }+.pt-2 { padding-top: 8px; }+.pt-3 { padding-top: 12px; }+.pt-4 { padding-top: 16px; }++/* =========================+ MARGIN+ ========================= */++.m-0 { margin: 0; }+.m-1 { margin: 4px; }+.m-2 { margin: 8px; }+.m-3 { margin: 12px; }+.m-4 { margin: 16px; }+++.mt-0 { margin-top: 0; }+.mt-1 { margin-top: 4px; }+.mt-2 { margin-top: 8px; }+.mt-3 { margin-top: 12px; }+.mt-4 { margin-top: 16px; }++/* Margin Bottom */++.mb-0 { margin-bottom: 0; }+.mb-1 { margin-bottom: 4px; }+.mb-2 { margin-bottom: 8px; }+.mb-3 { margin-bottom: 12px; }+.mb-4 {+ margin-bottom: 16px;+}++/* Margin Top */++.mt-1 { margin-top: 4px; }+.mt-2 { margin-top: 8px; }+.mt-3 { margin-top: 12px; }+.mt-4 { margin-top: 16px; }+.mt-45 {+ margin-top: 45px;+}+/* Margin Left/Right */++.ml-1 { margin-left: 4px; }+.ml-2 { margin-left: 8px; }+.ml-auto { margin-left: auto; }++.mr-1 { margin-right: 4px; }+.mr-2 { margin-right: 8px; }++/* =========================+ WIDTHS / HEIGHTS+ ========================= */++.w-full {+ width: 100%;+}++.min-w-full {+ min-width: 100%;+}++.h-full {+ height: 100%;+}+.h-inherit {+ height: inherit;+}+.w4-inherit {+ width: inherit;+}++.h-25 {+ height: 25px;+}++.min-h-0 {+ min-height: 0;+}++.min-w-0 {+ min-width: 0;+}++.h-70 {+ height: 70px;+}++.h-100 {+ height: 100px;+}++.min-w-200 {+ min-width: 200px;+}++.max-w-350 {+ max-width: 350px;+}++/* =========================+ BORDER RADIUS+ ========================= */++.br-1 { border-radius: 4px; }+.br-1-1 { border-radius: 6px; }+.br-2 { border-radius: 8px; }+.br-3 { border-radius: 12px; }+.br-4 { border-radius: 16px; }+.br-5 { border-radius: 18px; }++/* =========================+ BORDER SIZES+ ========================= */++.border-1 {+ border-width: 1.5px;+ border-style: solid;+}++.border-2 {+ border-width: 2px;+ border-style: solid;+}++.border-3 {+ border-width: 3px;+ border-style: solid;+}++.border-4 {+ border-width: 4px;+ border-style: solid;+}++.border-5 {+ border-width: 5px;+ border-style: solid;+}++/* =========================+ OVERFLOW+ ========================= */++.overflow-hidden {+ overflow: hidden;+}+.overflow-hiddeni {+ overflow: hidden!important;+}++.overflow-visible {+ overflow: visible;+}+.overflow-visiblei {+ overflow: visible!important;+}++/* =========================+ BACKGROUND COLORS+ ========================= */++.bg-red {+ background-color: var(--color-danger);+}++.bg-blue {+ background-color: var(--color-info);+}++html,+body,+#root,+.bg-middark {+ background-color: var(--color-bg-secondary);+}++.bg-dark {+ background-color: var(--color-bg-primary);+}++.bg-darkgray {+ background-color: var(--color-bg-tertiary);+}++.bg-gray {+ background-color: var(--color-bg-elevated);+}++.bg-pink {+ background-color: var(--color-success);+}++.bg-white {+ background-color: var(--color-text-primary);+}++/* =========================+ TEXT+ ========================= */++.text-center {+ text-align: center;+}++.text-left {+ text-align: left;+}++.text-right {+ text-align: right;+}++++/* =========================+ HELPERS+ ========================= */++.hidden {+ display: none;+}++/* =========================+ ROOT VARIABLES+ ========================= */++:root {+ --form-control-disabled: var(--color-text-disabled);++ /*+ MISSING SEMANTIC TOKENS YOU SHOULD ADD+ ======================================++ These are currently still semantic gaps in the system:++ --color-link+ --color-link-hover++ --color-scrollbar-thumb+ --color-scrollbar-thumb-hover++ --color-shadow-elevated++ Recommended:+ --color-link: var(--color-info);+ --color-link-hover: var(--metric-min-dark);++ --color-scrollbar-thumb: var(--color-border-secondary);+ --color-scrollbar-thumb-hover: var(--color-bg-primary);++ --shadow-elevated-sharp: 0px 7px 15px rgba(0,0,0,0.5);++ Also:+ Shadow rgba values should become tokenized if you want 100% semantic compliance.+ */+}++/* =========================+ FORM CONTROL+ ========================= */++.form-control {+ font-family: system-ui, sans-serif;+ font-size: 2rem;+ font-weight: bold;+ line-height: 1.1;++ display: grid;+ grid-template-columns: 1em auto;+ gap: 0.5em;+}++.form-control + .form-control {+ margin-top: 1em;+}++.form-control--disabled {+ color: var(--form-control-disabled);+ cursor: not-allowed;+}++/* =========================+ ELEVATION+ ========================= */++.elevated-sharp {+ box-shadow: 0px 7px 15px rgba(0, 0, 0, 0.5);+}++/* =========================+ TEXT HELPERS+ ========================= */++.text-nowrap {+ text-wrap: nowrap;+ text-overflow: ellipsis;+ overflow: hidden;+}++.text-wrap {+ overflow-wrap: break-word;+ text-wrap: wrap;+ text-wrap-mode: wrap;+}\ No newline at end of filediff --git a/freemocap-ui/src/styles/animation.css b/freemocap-ui/src/styles/animation.cssnew file mode 100644index 00000000..8f6de0c2--- /dev/null+++ b/freemocap-ui/src/styles/animation.css@@ -0,0 +1,186 @@+ /* ANIMATION SPEED AND OTHER ANIMATION RELATED PROPS */++ :root {+ --speed-0: 50ms;+ --speed-1: 120ms;+ --speed-2: 220ms;+}+++/* ---- Animations ---- */++/* loader */+@keyframes spin-ramp {+ 0% {+ transform: rotate(0deg);+ }++ /* 20% { transform: rotate(90deg); }+ 40% { transform: rotate(180deg); }+ 60% { transform: rotate(300deg); }+ 80% { transform: rotate(420deg); } */+ 100% {+ transform: rotate(1080deg);+ }+}++/* ui components animation setup */++/* =========================+ Keyframes+========================= */++/* Slide Up */+@keyframes slide-up {+ 0% {+ opacity: 0;+ transform: translateY(40px);+ }++ 100% {+ opacity: 1;+ transform: translateY(0);+ }+}++/* Slide Down */+@keyframes slide-down {+ 0% {+ opacity: 0;+ transform: translateY(-20px);+ }++ 100% {+ opacity: 1;+ transform: translateY(0);+ }+}++/* Fadein */+@keyframes fadeIn {+ 0% {+ opacity: 0;+ /* transform: scale(0.75); */+ }++ 100% {+ opacity: 1;+ /* transform: scale(1); */+ }+}++/* scaleIn */+@keyframes scaleIn {+ 0% {+ /* opacity: 0; */+ transform: scale(0.75);+ }++ 100% {+ /* opacity: 1; */+ transform: scale(1);+ }+}++/* =========================+ Base Animation Class+========================= */++.reveal {+ animation-duration: var(--speed-2);+ animation-iteration-count: 1;+ animation-fill-mode: forwards;+ transition-property: opacity;+ transition-duration: var(--speed-2);+}++.anim-delay-1 {+ animation-delay: 100ms;+}++.anim-delay-2 {+ animation-delay: 200ms;+}++/* Specific animations */+.slide-up {+ animation-name: slide-up;+}++.slide-down {+ animation-name: slide-down;+}++.fadeIn {+ /* include scale as well */+ animation-name: fadeIn;+}++.scaleIn {+ /* include scale as well */+ animation-name: scaleIn;+}++/* =========================+ Reduced Motion Support+========================= */++@media (prefers-reduced-motion: reduce) {+ .reveal {+ animation: none;+ /* skip animation, show element instantly */+ opacity: 1;+ transform: none;+ }+}++/* @keyframes fadeIn {+ from {+ opacity: 0;+ }++ to {+ opacity: 1;+ }+}++@keyframes scaleIn {+ from {+ transform: scale(0.9);+ opacity: 0;+ }++ to {+ transform: scale(1);+ opacity: 1;+ }+} */+++.skeleton-loader-overlay {+ position: absolute;+ top: 0;+ left: 0;+ width: 100%;+ height: 100%;+ background: linear-gradient(90deg,+ #1b1b1b 25%,+ #2a2a2a 50%,+ #1b1b1b 75%);+ background-size: 200% 100%;+ animation: skeleton-loader 1.5s infinite;+ z-index: 10;+ transition: opacity 0.5s;+ pointer-events: none;+ opacity: 1;+}++@keyframes skeleton-loader {+ 0% {+ background-position: 200% 0;+ }++ 100% {+ background-position: -200% 0;+ }+}diff --git a/freemocap-ui/src/styles/button-sm.css b/freemocap-ui/src/styles/button-sm.cssnew file mode 100644index 00000000..384cd35f--- /dev/null+++ b/freemocap-ui/src/styles/button-sm.css@@ -0,0 +1,192 @@+/* BUTTON STYLES AND SHAPES */+/* Activate button */+.activated>p {+ color: var(--color-success);+}++.isOn>p {+ color: var(--color-text-primary);+}++.selected>p {+ color: var(--color-text-primary);+}++.button.activated {+ background-color: var(--color-bg-elevated);+}++.button.activated:hover {+ background-color: var(--color-bg-tertiary);+}++.button.full-width-text-center {+ justify-content: center;+}++/* Primary fullwidth button */+.secondary {+ background-color: var(--color-bg-idle);+}++.secondary>p {+ color: var(--color-text-primary);+}++.secondary:hover {+ background-color: var(--color-bg-elevated);+}++.tertiary>p {+ color: var(--color-text-primary);+}++/* Primary fullwidth button */+button.quaternary {+ background-color: transparent;+}++.app-root.quaternary:hover {+ background-color: var(--color-bg-elevated);+}++.button.quaternary.activated {+ background-color: var(--color-bg-primary);+}++.button.quaternary>p {+ color: var(--color-text-primary);+}++.full-width {+ min-width: 100%;+}++/* Primary fullwidth button */+.primary {+ background-color: var(--color-text-primary);+}++.primary:hover {+ background-color: var(--log-trace);+}++.primary>p {+ color: var(--color-text-primary);+}+++/* accent button */+.accent {+ background-color: var(--color-danger);+}++.btn-danger {+ background-color: var(--color-danger-idle);+ border: 1px solid var(--color-danger);+}++.btn-danger:hover {+ background-color: var(--color-danger-muted);+}++.btn-danger>p {+ color: var(--color-text-primary);+}++.accent>p {+ color: var(--color-text-primary);+}++.accent:hover {+ background-color: var(--color-danger-strong);+}++/* card button */+.button.card {+ width: 100px;+ height: 116px;+ transition: background-color var(--speed-1) ease-in-out;+}++.button.sm:after {+ /* right side icon setup*/+ width: 16px;+ height: 16px;+}++.button.sm.externallink:after {+ content: var(--externallink-icon);+}++.button.sm.dropdown:after {+ content: "";+ margin-left: auto;+ background-image: var(--dropdown-icon);+ background-repeat: no-repeat;+ background-position: center;+ background-size: contain;+ /* or 16px 16px */+ display: block;+}++.button.sm.select-folder:after {+ content: var(--importproject_icon);+ margin-left: auto;+}++.button.sm,+button.rotate-button {+ padding: 4px 4px;+ min-height: 25px;+ width: auto;+ /* to fit its content */+ /* max-width: max-content; */+ /* to fit its content */+ position: relative;+ transition: background-color var(--speed-1) ease-in-out, transform var(--speed-1) ease-in-out;+}++.fit-content {+ max-width: max-content;+ /* min-width: max-content; */+}++.min-w-fit-content {+ /* max-width: max-content; */+ min-width: max-content;+}++.button.sm:not(.primary, .secondary, .activated):hover {+ background-color: var(--color-bg-elevated);+ transition: background-color var(--speed-1) ease-in-out;++}++.button.rotate-button:not(.primary, .secondary, .activated):hover,+.toggle-button:hover>.button.rotate-button:not(.primary, .secondary, .activated) {+ transform: rotate(45deg);+ transition: transform var(--speed-2) ease-in-out;+}++.button:not(p,+ .button.checkbox,+ button.text-sm,+ input,+ button.active,+ .toggle-button, .rotate-button):active {+ transform: scale(99%);+ transform: translateY(1px);++}+++.button.rotate-button:not(.primary, .secondary, .activated):hover:active,+.toggle-button:hover:active>.button.rotate-button:not(.primary, .secondary, .activated) {+ transform: rotate(90deg);+ transition: transform var(--speed-0) ease-in-out;+}++.icon-button.activate {+ background-color: var(--color-info-medium);+}\ No newline at end of filediff --git a/freemocap-ui/src/styles/calibration-module.css b/freemocap-ui/src/styles/calibration-module.cssnew file mode 100644index 00000000..2bd02673--- /dev/null+++ b/freemocap-ui/src/styles/calibration-module.css@@ -0,0 +1,57 @@+/* CALIBRATION PROGRESS COLUMNS */+.calibration-progress-columns {+ height: 32px;+ background-color: var(--color-bg-darker);+ gap: auto;+ display: flex;+ justify-content: space-between;+ min-height: 28px;+}++.calibration-progress-columns > div {+ width: 6px;+ height: 100%;+ background-color: var(--color-bg-primary);+ transition: background-color 0.2s ease;+ flex: 0 0 auto;+ border-radius: 2px;+}++.calibration-progress-columns > div.is-active {+ background-color: var(--color-success);+}+.charuco-settings-action-container.while-recording {+ min-height: 25px;+}++/* SHIMMER TEXT ANIMATION FOR CALIBRATION HEADER */+@keyframes shimmer-text {+ 0%, 100% {+ color: var(--color-text-primary, var( --color-text-primary));+ /* text-shadow: 0 0 4px rgba(255, 255, 255, 0.3); */+ }+ 16.66% {+ color: var(--color-bg-idle, var( --color-text-primary));+ /* text-shadow: 0 0 8px rgba(211, 217, 219, 0.5); */+ }+ 33.33% {+ color: var(--color-text-primary, var( --color-text-primary));+ /* text-shadow: 0 0 4px rgba(255, 255, 255, 0.3); */+ }+ 50% {+ color: var(--color-bg-idle, var( --color-text-primary));+ /* text-shadow: 0 0 8px rgba(156, 163, 175, 0.5); */+ }+ 66.66% {+ color: var(--color-text-primary, var( --color-text-primary));+ /* text-shadow: 0 0 4px rgba(255, 255, 255, 0.3); */+ }+ 83.33% {+ color: var(--color-bg-idle, var( --color-text-primary));+ /* text-shadow: 0 0 8px rgba(211, 217, 219, 0.5); */+ }+}++.calibration-header-shimmer {+ animation: shimmer-text 9s ease-in-out infinite;+}diff --git a/freemocap-ui/src/styles/camera.css b/freemocap-ui/src/styles/camera.cssnew file mode 100644index 00000000..67df0039--- /dev/null+++ b/freemocap-ui/src/styles/camera.css@@ -0,0 +1,690 @@+/* ============================================================+ Camera Page & Grid+ ============================================================ */++.cameras-page {+ display: flex;+ flex-direction: column;+ height: 100%;+ width: inherit;+ overflow: hidden;+ position: relative;+ padding: 4px;+ gap: 0;+}++.cameras-page-content {+ flex: 1;+ position: relative;+ overflow: hidden;+}++.cameras-page-footer {+ flex-shrink: 0;+ padding: 4px;+}++.camera-grid-container {+ position: relative;+ width: 100%;+ height: 100%;+ overflow: hidden;+}++.camera-grid-empty {+ height: 100%;+ width: 100%;+ display: flex;+ align-items: center;+ justify-content: center;+ flex-direction: column;+ gap: 4px;+ text-align: center;+ padding: 16px;+ color: var(--color-text-muted);+}++/* ============================================================+ Camera Cell+ ============================================================ */++.camera-cell {+ overflow: hidden;+ border-radius: 4px;+ border: 1px solid var(--color-border-muted);+ transition: border 0.3s ease, box-shadow 0.3s ease;+}++.camera-cell.recording {+ border: 2px solid var(--color-danger);+ animation: recording-pulse 3s infinite ease-in-out;+}++@keyframes recording-pulse {+ 0% {+ border-color: var(--color-danger);+ box-shadow: 0 0 4px var(--red-500-alpha-40);+ }++ 50% {+ border-color: var(--color-danger-strong);+ box-shadow: 0 0 8px var(--red-500-alpha-15);+ }++ 100% {+ border-color: var(--color-danger);+ box-shadow: 0 0 4px var(--red-500-alpha-40);+ }+}++/* ============================================================+ React Grid Layout Overrides+ ============================================================ */++.camera-grid-container .react-grid-placeholder {+ background-color: var(--color-info-muted);+ opacity: 0.15;+ border-radius: 4px;+}++.camera-grid-container .react-grid-item > .react-resizable-handle {+ z-index: 10;+ opacity: 0.4;+ transition: opacity 0.2s ease;+}++.camera-grid-container .react-grid-item:hover > .react-resizable-handle {+ opacity: 1;+}++.camera-grid-container .react-grid-item > .react-resizable-handle::after {+ width: 10px;+ height: 10px;+ right: 4px;+ bottom: 4px;+ /* border-right: 2px solid var(--color-white-alpha-50);+ border-bottom: 2px solid var(--color-white-alpha-50); */+}++/* ============================================================+ Resizable Camera View+ ============================================================ */++.resizable-camera-view {+ position: absolute;+ border: 1px solid var(--color-border-muted);+ border-radius: 4px;+ overflow: hidden;+ transition: border-color 0.15s ease, box-shadow 0.15s ease;+}++.resizable-camera-view:hover {+ border-color: var(--color-white-alpha-40);+}++.resizable-camera-view.active {+ border-color: var(--color-info-muted);+}++.resizable-move-area {+ width: 100%;+ height: 100%;+ cursor: grab;+}++.resizable-move-area.dragging {+ cursor: grabbing;+}++.resize-handle {+ position: absolute;+ bottom: 0;+ right: 0;+ width: 16px;+ height: 16px;+ cursor: nwse-resize;+ z-index: 2;+}++.resize-handle::after {+ content: "";+ position: absolute;+ bottom: 2px;+ right: 2px;+ width: 8px;+ height: 8px;+ border-right: 2px solid var(--color-white-alpha-45);+ border-bottom: 2px solid var(--color-white-alpha-45);+}++.resize-handle:hover::after,+.resize-handle.active::after {+ border-color: var(--color-info-muted);+}++/* ============================================================+ View Settings Overlay+ ============================================================ */++.settings-overlay-trigger {+ position: absolute;+ top: 8px;+ right: 8px;+ z-index: 100;+}++.settings-overlay-panel {+ position: absolute;+ top: 30px;+ right: 8px;+ z-index: 99;+ min-width: 220px;+}++/* ============================================================+ Range Input+ ============================================================ */++.range-input {+ -webkit-appearance: none;+ appearance: none;+ width: 100%;+ height: 4px;+ background: var(--color-border-secondary);+ border-radius: 2px;+ outline: none;+ cursor: pointer;+}++.range-input:disabled {+ opacity: 0.4;+ cursor: not-allowed;+}++.range-input::-webkit-slider-thumb {+ -webkit-appearance: none;+ appearance: none;+ width: 14px;+ height: 14px;+ border-radius: 50%;+ background: var(--color-info-muted);+ cursor: pointer;+ transition: background var(--speed-1);+}++.range-input:disabled::-webkit-slider-thumb {+ background: var(--color-text-disabled);+}++.range-input::-webkit-slider-thumb:hover {+ background: var(--metric-stddev);+}++.range-input::-moz-range-thumb {+ width: 14px;+ height: 14px;+ border-radius: 50%;+ background: var(--color-info-muted);+ cursor: pointer;+ border: none;+}++/* ============================================================+ Camera Config Tree+ ============================================================ */++.camera-tree-root {+ border-radius: 8px;+ overflow: hidden;+}++.camera-tree-header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ padding: 4px 8px;+ background-color: var(--color-info-idle);+ flex-shrink: 0;+}++.camera-section-header {+ background-color: var(--color-bg-tertiary);+}++.camera-settings-button {+ position: relative;+ min-width: 0;+ overflow: hidden;+}++.camera-section-header:hover {+ background-color: var(--color-bg-elevated);+}++.camera-item-row {+ background-color: var(--color-bg-secondary);+ transition: background-color var(--speed-1);+}++.camera-item-row.expanded {+ background-color: var(--color-bg-tertiary);+}++/* ============================================================+ Camera Status+ ============================================================ */++.camera-status-connected {+ color: var(--color-success);+}++.camera-status-available {+ color: var(--color-info-muted);+}++.camera-status-error {+ color: var(--color-danger);+}++.camera-status-connected {+ background-color: var(--color-success);+ color: var(--color-bg-primary);+}++.camera-status-available {+ background-color: var(--color-info-muted);+ color: var(--color-text-primary);+}++.camera-status-error {+ background-color: var(--color-danger);+ color: var(--color-text-primary);+}++/* ============================================================+ Config Chips+ ============================================================ */++.camera-config-chip {+ padding: 0 4px;+ border: 1px solid var(--color-border-secondary);+ border-radius: 2px;+ white-space: nowrap;+ flex-shrink: 0;+}++/* ============================================================+ Expanded Config Panel+ ============================================================ */++.config-panel {+ margin-left: 20px;+ margin-right: 4px;+ margin-bottom: 4px;+ padding: 8px;+ border-radius: 4px;+ border: 1px solid var(--color-border-secondary);+ background-color: var(--color-bg-tertiary);+ display: flex;+ flex-direction: column;+ gap: 8px;+}++.config-panel-divider {+ border-bottom: 1px solid var(--color-border-secondary);+ padding-top: 4px;+}++/* ============================================================+ Start/Stop Recording Button+ ============================================================ */++.record-button {+ padding: 6px 8px;+ min-height: 36px;+ cursor: pointer;+ border-radius: 4px;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: 2px;+ transition: background-color var(--speed-1) ease-in-out;+}++.record-button:disabled {+ opacity: 0.5;+ cursor: not-allowed;+}++.record-button-duration {+ font-family: "JetBrains Mono", monospace;+ font-size: 0.7rem;+ color: var(--color-white-alpha-60);+ letter-spacing: 0.5px;+}++.record-button-idle {+ background-color: var(--color-danger);+}++.record-button-idle:not(:disabled):hover {+ background-color: var(--metric-median);+}++.record-button-active {+ background-color: var(--metric-median);+ animation: recording-button-pulse 2s infinite ease-in-out;+}++.record-button-pending {+ background-color: var(--color-border-secondary);+}++@keyframes recording-button-pulse {+ 0%,+ 100% {+ background-color: var(--log-critical);+ }++ 50% {+ background-color: var(--color-danger-muted);+ }+}++/* ============================================================+ Recording Panel+ ============================================================ */++.recording-path-preview {+ font-family: monospace;+ font-size: 0.8rem;+ color: var(--color-text-muted);+ overflow: hidden;+}++.recording-path-part {+ display: flex;+ align-items: center;+ gap: 4px;+ flex-shrink: 1;+ min-width: 0;+ overflow: hidden;+}++.recording-path-part p {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.text-selector-constrained {+ flex: 1;+ min-width: 0;+ overflow: hidden;+}++.directory-input-popup input.input-field {+ width: 100%;+}++.recording-countdown {+ text-align: center;+ color: var(--color-warning);+ font-size: 1.5rem;+ font-weight: bold;+ padding: 8px;+}++/* ============================================================+ Recording Browser+ ============================================================ */++.recording-list {+ overflow-y: auto;+ /* border: 1px solid var(--color-border-secondary);+ border-radius: 4px; */+}++.recording-row {+ border-bottom: 1px solid var(--color-bg-tertiary);+ cursor: pointer;+}++.recording-row:last-child {+ border-bottom: none;+}++.recording-row-disabled {+ opacity: 0.4;+ pointer-events: none;+}++.sort-select {+ min-width: 90px;+ background-color: var(--color-bg-tertiary);+ border: 1px solid var(--color-border-secondary);+ border-radius: 4px;+ color: var(--color-text-muted);+ font-size: 13px;+ padding: 2px 4px;+ cursor: pointer;+}++/* ============================================================+ Playback Controls+ ============================================================ */++.playback-controls {+ border-top: 1px solid var(--color-bg-tertiary);+ background-color: var(--color-bg-secondary);+ flex-shrink: 0;+}++.playback-slider {+ flex: 1;+ height: 4px;+ accent-color: var(--metric-stddev);+ cursor: pointer;+}++.playback-slider::-webkit-slider-thumb {+ width: 14px;+ height: 14px;+}++.playback-timecode {+ font-family: "JetBrains Mono", "Fira Code", monospace;+ font-size: 13px;+ font-weight: 600;+ color: var(--color-success);+ min-width: 70px;+ text-align: right;+ white-space: nowrap;+}++.playback-timecode.text-gray {+ color: var(--color-text-muted);+ text-align: left;+}++.playback-frame-badge {+ font-family: "JetBrains Mono", "Fira Code", monospace;+ font-size: 13px;+ font-weight: 700;+ color: var(--color-success);+ background-color: var(--color-success-alpha-08);+ border: 1px solid var(--color-success-alpha-20);+ border-radius: 4px;+ padding: 2px 8px;+ white-space: nowrap;+}++.playback-fps-badge {+ font-family: "JetBrains Mono", "Fira Code", monospace;+ font-size: 11px;+ color: var(--color-warning-soft);+ background-color: var(--color-warning-alpha-08);+ border: 1px solid var(--color-warning-alpha-20);+ border-radius: 4px;+ padding: 2px 6px;+ white-space: nowrap;+}++.playback-transport {+ font-size: 14px;+}++.playback-play-btn {+ font-size: 20px;+ width: 40px;+ height: 40px;+ border: 2px solid var(--color-success);+ color: var(--color-success);+ border-radius: 50%;+ display: flex;+ align-items: center;+ justify-content: center;+}++.playback-play-btn:hover,+.playback-play-btn.playing {+ background-color: var(--color-success-alpha-10);+}++.playback-info-left {+ min-width: 220px;+ justify-content: flex-end;+ margin-right: 8px;+}++.playback-info-right {+ margin-left: 8px;+}++.playback-settings-popup {+ min-width: 260px;+}++.playback-sync-info {+ padding: 6px 8px;+ border-radius: 4px;+ background-color: var(--color-warning-alpha-06);+ border: 1px solid var(--color-warning-alpha-15);+}++.playback-sync-title {+ color: var(--color-warning-soft);+ font-weight: 600;+}++/* ============================================================+ Camera Grid Cell Overlay+ ============================================================ */++.camera-cell-overlay {+ position: absolute;+ top: 0;+ left: 0;+ right: 0;+ display: flex;+ align-items: center;+ gap: 4px;++ background: linear-gradient(+ to bottom,+ var(--overlay-65) 0%,+ transparent 100%+ );++ opacity: 0;+ transition: opacity 0.15s ease;+ z-index: 10;+}++.camera-cell:hover .camera-cell-overlay {+ opacity: 1;+}++.camera-cell-toggle {+ background-color: var(--overlay-50);+ border: 1px solid var(--color-border-muted);+}++.camera-cell-toggle:hover {+ background-color: var(--overlay-75);+}++/* ============================================================+ Config Panel Layout Helpers+ ============================================================ */++.config-panel .segmented-control-container {+ max-width: 100%;+ width: 100%;+}++.config-panel .segmented-control-button {+ min-width: 0;+ flex: 1;+}++/* ============================================================+ Compact Config Panel+ ============================================================ */++.config-panel-compact {+ overflow: hidden;+}++.config-panel-compact .name-dropdown-selector {+ width: 100%;+ display: block;+}++.config-panel-compact .name-dropdown-selector > button {+ width: 100%;+}++.config-panel-compact .segmented-control-container {+ max-width: 100%;+ width: 100%;+ flex-direction: column;+}++.config-panel-compact .segmented-control-button {+ min-width: 0;+ width: 100%;+}++/* ============================================================+ REQUIRED MISSING TOKENS+ ADD THESE TO color.css+ ============================================================ */++/*++--color-white-alpha-40: rgba(255,255,255,0.4);+--color-white-alpha-45: rgba(255,255,255,0.45);+--color-white-alpha-50: rgba(255,255,255,0.5);+--color-white-alpha-60: rgba(255,255,255,0.6);++--overlay-50: rgba(0,0,0,0.5);+--overlay-65: rgba(0,0,0,0.65);+--overlay-75: rgba(0,0,0,0.75);++--red-500-alpha-15: rgba(215,24,75,0.15);+--red-500-alpha-40: rgba(215,24,75,0.4);++--color-success-alpha-08: rgba(22,221,18,0.08);+--color-success-alpha-10: rgba(22,221,18,0.1);+--color-success-alpha-20: rgba(22,221,18,0.2);++--color-warning-alpha-06: rgba(230,73,0,0.06);+--color-warning-alpha-08: rgba(230,73,0,0.08);+--color-warning-alpha-15: rgba(230,73,0,0.15);+--color-warning-alpha-20: rgba(230,73,0,0.2);++--color-warning-soft: #ffcc80;++*/\ No newline at end of filediff --git a/freemocap-ui/src/styles/checkbox.css b/freemocap-ui/src/styles/checkbox.cssnew file mode 100644index 00000000..82a46882--- /dev/null+++ b/freemocap-ui/src/styles/checkbox.css@@ -0,0 +1,168 @@+/* =========================================+ CLICKABLE LABEL+ ========================================= */++.checkbox {+ display: inline-flex;++ align-items: center;+ justify-content: center;++ gap: 4px;++ width: fit-content;++ border-radius: 6px;++ cursor: pointer;+ user-select: none;++ transition: background-color 120ms ease;+}++/* FULL HIT AREA HOVER */+.checkbox:hover {+ background: var(--color-surface-hover);+}++/* PRESSED */+.checkbox:active {+ background: var(--color-surface-active);+}++/* =========================================+ CUSTOM CHECKBOX+ ========================================= */++.checkbox input[type="checkbox"] {+ -webkit-appearance: none;+ appearance: none;++ margin: 0;++ /* HIT AREA */+ width: 20px;+ height: 20px;++ min-width: 20px;+ min-height: 20px;++ position: relative;++ display: inline-grid;+ place-items: center;++ background: transparent;+ border: none;++ cursor: pointer;++ flex-shrink: 0;++ box-sizing: border-box;++ border-radius: 4px;++ /* VISUAL BOX SIZE */+ --box-size: 12px;++ /* CHECK SIZE */+ --check-size: 6px;+}++/* =========================================+ VISIBLE BOX+ ========================================= */++.checkbox input[type="checkbox"]::after {+ content: "";++ width: var(--box-size);+ height: var(--box-size);++ border: 1.5px solid var(--color-text-muted);+ border-radius: 2px;++ background: var(--color-bg-primary);++ box-sizing: border-box;++ display: block;++ transition:+ border-color 120ms ease,+ background-color 120ms ease;+}++/* Hover border */+.checkbox:hover input[type="checkbox"]::after {+ border-color: var(--color-text-secondary);+}++/* Streaming variant */+.checkbox input.streaming[type="checkbox"]::after {+ border-color: var(--color-success);+}++/* Streaming hover */+.checkbox:hover input.streaming[type="checkbox"]::after {+ border-color: var(--color-success-strong);+}++/* =========================================+ CENTER CHECK INDICATOR+ ========================================= */++.checkbox input[type="checkbox"]::before {+ content: "";++ position: absolute;++ top: 50%;+ left: 50%;++ width: var(--check-size);+ height: var(--check-size);++ border-radius: 1px;++ background: var(--color-info);++ transform: translate(-50%, -50%) scale(0);++ transition:+ transform 120ms ease,+ background-color 120ms ease;++ will-change: transform;++ z-index: 1;+}++/* Checked */+.checkbox input[type="checkbox"]:checked::before {+ transform: translate(-50%, -50%) scale(1);+}++/* Streaming checked */+.checkbox input.streaming[type="checkbox"]:checked::before {+ background: var(--color-success);+}++/* =========================================+ FOCUS+ ========================================= */++.checkbox input[type="checkbox"]:focus-visible {+ outline: 2px solid var(--color-info-strong);+ outline-offset: 2px;+}++/* =========================================+ DISABLED+ ========================================= */++.checkbox input[type="checkbox"]:disabled {+ opacity: 0.5;+ cursor: not-allowed;+}\ No newline at end of filediff --git a/freemocap-ui/src/styles/color.css b/freemocap-ui/src/styles/color.cssnew file mode 100644index 00000000..d122b779--- /dev/null+++ b/freemocap-ui/src/styles/color.css@@ -0,0 +1,1098 @@+:root {+ /* ========================================+ BASE TOKENS+ ======================================== */++ /* Gray Shades */+ --gray-900: #060606;+ --gray-800: #1b1b1b;+ --gray-700: #272727;+ --gray-600: #323232;+ --gray-500: #4f4f4f;+ --gray-400: #9b9b9b;+ --gray-300: #b4b4b4;+ --gray-200: #cdcdcd;+ --gray-100: #e4e4e4;++ /* Overlay Tokens */+ --overlay-60: rgba(6, 6, 6, 0.6);+ --overlay-20: rgba(6, 6, 6, 0.2);++ /* Green Shades */+ --green-100: #16dd12;+ --green-200: #19c716;+ --green-300: #16ac13;+ --green-400: #129111;+ --green-500: #0f760d;+ --green-600: #0c5e0a;+ --green-700: #094707;+ --green-800: #053204;+ --green-900: #022701;++ /* Red Shades */+ --red-100: #ffe1e8;+ --red-200: #ffc7d3;+ --red-300: #ff9db2;+ --red-400: #ff5f84;+ --red-500: #d7184b;+ --red-600: #a01238;+ --red-700: #860e2e;+ --red-800: #720925;+ --red-900: #4f0619;++ /* Warning / Orange Shades */+ --warning-100: #ffe8cc;+ --warning-200: #ffd8a8;+ --warning-300: #ffc078;+ --warning-400: #ffa94d;+ --warning-500: #e64900;+ --warning-600: #d9480f;+ --warning-700: #bf400d;+ --warning-800: #99330b;+ --warning-900: #662207;++ /* Blue Shades */+ --blue-100: #aed9f7;+ --blue-200: #92cdf8;+ --blue-300: #72bef8;+ --blue-400: #4db0fb;+ --blue-500: #2ba4ff;+ --blue-600: #0898ff;+ --blue-700: #0878c7;+ --blue-800: #09609a;+ --blue-900: #083f66;++ /* ========================================+ ALPHA / OPACITY TOKENS+ EVERYTHING RGBA TOKENIZED+ ======================================== */++ /* Gray Alpha */+ --gray-100-alpha-10: rgba(228, 228, 228, 0.1);+ --gray-200-alpha-10: rgba(255, 255, 255, 0.5);+ --gray-200-alpha-20: rgba(255, 255, 255, 0.2);+ --gray-300-alpha-10: rgba(180, 180, 180, 0.1);++ /* Blue Alpha */+ --blue-100-alpha-20: rgba(174, 217, 247, 0.2);++ --blue-200-alpha-10: rgba(146, 205, 248, 0.1);+ --blue-200-alpha-20: rgba(146, 205, 248, 0.2);++ --blue-500-alpha-10: rgba(43, 164, 255, 0.1);++ --blue-600-alpha-13: rgba(8, 152, 255, 0.13);++ /* Green Alpha */+ --green-100-alpha-20: rgba(22, 221, 18, 0.2);+ --green-100-alpha-10: rgba(22, 221, 18, 0.1);++ --green-200-alpha-10: rgba(25, 199, 22, 0.1);++ /* Warning Alpha */+ --warning-500-alpha-13: rgba(230, 73, 0, 0.13);+ --warning-500-alpha-20: rgba(230, 73, 0, 0.2);+ --warning-500-alpha-10: rgba(230, 73, 0, 0.1);++ /* Red Alpha */+ --red-500-alpha-10: rgba(215, 24, 75, 0.1);+ --red-500-alpha-20: rgba(215, 24, 75, 0.2);++ --red-600-alpha-20: rgba(160, 18, 56, 0.2);++ --red-700-alpha-10: rgba(134, 14, 46, 0.1);++ /* ========================================+ SEMANTIC COLOR SYSTEM+ DARK THEME+ ======================================== */++ /* Backgrounds */+ --color-bg-primary: var(--gray-900);+ --color-bg-secondary: var(--gray-800);+ --color-bg-tertiary: var(--gray-700);+ --color-bg-quaternary: var(--gray-100);+ --color-bg-elevated: var(--gray-600);+ --color-bg-idle: var(--gray-500);+ --color-bg-warning: var(--warning-500);++ /* Surface States */+ --color-surface-hover: var(--gray-700);+ --color-surface-active: var(--gray-600);+ --color-surface-overlay: var(--overlay-60);++ /* Text */+ --color-text-primary: var(--gray-100);+ --color-text-secondary: var(--gray-200);+ --color-text-muted: var(--gray-400);+ --color-text-disabled: var(--gray-500);++ /* Borders */+ --color-border-primary: var(--gray-500);+ --color-border-secondary: var(--gray-600);+ --color-border-muted: var(--gray-100-alpha-10);++ /* Brand / Info */+ --color-info: var(--blue-500);+ --color-info-strong: var(--blue-600);+ --color-info-medium: var(--blue-700);+ --color-info-muted: var(--blue-800);+ --color-info-idle: var(--blue-900);+ --color-info-surface: var(--blue-500-alpha-10);++ /* Success */+ --color-success: var(--green-100);+ --color-success-strong: var(--green-200);++ --color-success-muted: var(--green-500);+ --color-success-idle: var(--green-900);+ --color-success-surface: var(--green-100-alpha-20);++ /* Warning */+ --color-warning: var(--warning-500);+ --color-warning-strong: var(--warning-600);+ --color-warning-muted: var(--warning-800);+ --color-warning-surface: var(--warning-500-alpha-20);++ /* Error / Danger */+ --color-danger: var(--red-500);+ --color-danger-strong: var(--red-700);+ --color-danger-idle: var(--red-800);+ --color-danger-muted: var(--red-900);+ --color-danger-surface: var(--red-500-alpha-20);++ /* ========================================+ CHART SEMANTICS+ ======================================== */++ --chart-frontend: var(--color-info-strong);+ --chart-frontend-bg: var(--blue-600-alpha-13);++ --chart-backend: var(--color-warning);+ --chart-backend-bg: var(--warning-500-alpha-13);++ /* ========================================+ METRIC SEMANTICS+ ======================================== */++ --metric-recent: var(--color-success);+ --metric-recent-bg: var(--green-100-alpha-20);++ --metric-mean: var(--color-warning);+ --metric-mean-bg: var(--warning-500-alpha-20);++ --metric-median: var(--red-600);+ --metric-median-bg: var(--red-600-alpha-20);++ --metric-stddev: var(--blue-100);+ --metric-stddev-bg: var(--blue-100-alpha-20);++ --metric-max: var(--color-danger);+ --metric-max-bg: var(--red-500-alpha-20);++ --metric-min: var(--blue-200);+ --metric-min-dark: var(--blue-300);+ --metric-min-bg: var(--blue-200-alpha-20);++ /* ========================================+ LOG TERMINAL SEMANTICS+ ======================================== */++ --log-bg: var(--color-bg-secondary);+ --log-row-bg: var(--overlay-20);++ --log-timestamp: var(--color-text-muted);+ --log-text: var(--color-text-primary);++ --log-url: var(--color-info);++ --log-detail-border: var(--color-border-muted);++ --log-stack-bg: var(--color-bg-primary);++ /* ========================================+ LOG LEVEL SEMANTICS+ ======================================== */++ --log-trace: var(--gray-100);+ --log-trace-alpha: var(--gray-300-alpha-10);++ --log-debug: var(--blue-200);+ --log-debug-alpha: var(--blue-200-alpha-10);++ --log-info: var(--color-info);+ --log-info-alpha: var(--blue-500-alpha-10);++ --log-success: var(--green-200);+ --log-success-alpha: var(--green-200-alpha-10);++ --log-api: var(--green-100);+ --log-api-alpha: var(--green-100-alpha-10);++ --log-warning: var(--color-warning);+ --log-warning-alpha: var(--warning-500-alpha-10);++ --log-error: var(--color-danger);+ --log-error-alpha: var(--red-500-alpha-10);++ --log-critical: var(--red-700);+ --log-critical-alpha: var(--red-700-alpha-10);+}++/* ========================================+ BORDER COLORS+ CLASSES UNCHANGED+ NOW FULLY SEMANTIC+ ======================================== */++.border-black {+ border-color: var(--color-border-primary);+}++.border-mid-black {+ border-color: var(--color-border-secondary);+}++.border-red {+ border-color: var(--color-danger);+}++.border-warning {+ border-color: var(--color-warning);+}++.border-blue {+ border-color: var(--color-info-muted);+}++.border-pink {+ border-color: var(--color-danger);+}++.border-white {+ border-color: var(--color-text-primary);+}++.bg-warning {+ background-color: var(--color-bg-warning);+}++/* ========================================+ COMPONENT STATES+ ======================================== */++.button.card:hover {+ background-color: var(--color-surface-hover);+ transition: background-color var(--speed-1) ease-in-out;+}++/* =========================+ TEXT COLOR+ ========================= */++.text-success {+ color: var(--color-success);+}++.text-warning {+ color: var(--color-warning);+}++.text-darkgray,+.color-darkgray {+ color: var(--color-text-disabled);+}++.text-white,+.color-white {+ color: var(--color-text-primary);+}++.text-gray,+.color-gray {+ color: var(--color-text-muted);+}++.text-error {+ color: var(--color-danger);+}++/* ========================================+ SEMANTIC COLOR UTILITY CLASSES+ ======================================== */++/* =========================+ INFO / BRAND COLORS+ ========================= */++/* Text Colors */+.text-info {+ color: var(--color-info);+}++.text-info-strong {+ color: var(--color-info-strong);+}++.text-info-medium {+ color: var(--color-info-medium);+}++.text-info-muted {+ color: var(--color-info-muted);+}++.text-info-idle {+ color: var(--color-info-idle);+}++/* Background Colors */+.bg-info {+ background-color: var(--color-info);+}++.bg-info-strong {+ background-color: var(--color-info-strong);+}++.bg-info-medium {+ background-color: var(--color-info-medium);+}++.bg-info-muted {+ background-color: var(--color-info-muted);+}++.bg-info-idle {+ background-color: var(--color-info-idle);+}++.bg-info-surface {+ background-color: var(--color-info-surface);+}++/* Border Colors */+.border-info {+ border-color: var(--color-info);+}++.border-info-strong {+ border-color: var(--color-info-strong);+}++.border-info-medium {+ border-color: var(--color-info-medium);+}++.border-info-muted {+ border-color: var(--color-info-muted);+}++.border-info-idle {+ border-color: var(--color-info-idle);+}++/* Hover Variants for Info */+.hover\:bg-info:hover {+ background-color: var(--color-info);+}++.hover\:text-info:hover {+ color: var(--color-info);+}++/* =========================+ SUCCESS COLORS+ ========================= */++/* Text Colors */+.text-success-strong {+ color: var(--color-success-strong);+}++.text-success-muted {+ color: var(--color-success-muted);+}++.text-success-idle {+ color: var(--color-success-idle);+}++/* Background Colors */+.bg-success-strong {+ background-color: var(--color-success-strong);+}++.bg-success-muted {+ background-color: var(--color-success-muted);+}++.bg-success-idle {+ background-color: var(--color-success-idle);+}++.bg-success-surface {+ background-color: var(--color-success-surface);+}++/* Border Colors */+.border-success {+ border-color: var(--color-success);+}++.border-success-strong {+ border-color: var(--color-success-strong);+}++.border-success-muted {+ border-color: var(--color-success-muted);+}++.border-success-idle {+ border-color: var(--color-success-idle);+}++/* Hover Variants for Success */+.hover\:bg-success:hover {+ background-color: var(--color-success);+}++.hover\:text-success:hover {+ color: var(--color-success);+}++/* =========================+ WARNING COLORS+ ========================= */++/* Text Colors */+.text-warning-strong {+ color: var(--color-warning-strong);+}++.text-warning-muted {+ color: var(--color-warning-muted);+}++/* Background Colors */+.bg-warning-strong {+ background-color: var(--color-warning-strong);+}++.bg-warning-muted {+ background-color: var(--color-warning-muted);+}++.bg-warning-surface {+ background-color: var(--color-warning-surface);+}++/* Border Colors */+.border-warning-strong {+ border-color: var(--color-warning-strong);+}++.border-warning-muted {+ border-color: var(--color-warning-muted);+}++/* Hover Variants for Warning */+.hover\:bg-warning:hover {+ background-color: var(--color-bg-warning);+}++.hover\:text-warning:hover {+ color: var(--color-warning);+}++/* =========================+ DANGER / ERROR COLORS+ ========================= */++/* Text Colors */+.text-danger {+ color: var(--color-danger);+}++.text-danger-strong {+ color: var(--color-danger-strong);+}++.text-danger-idle {+ color: var(--color-danger-idle);+}++.text-danger-muted {+ color: var(--color-danger-muted);+}++/* Background Colors */+.bg-danger {+ background-color: var(--color-danger);+}++.bg-danger-strong {+ background-color: var(--color-danger-strong);+}++.bg-danger-idle {+ background-color: var(--color-danger-idle);+}++.bg-danger-muted {+ background-color: var(--color-danger-muted);+}++.bg-danger-surface {+ background-color: var(--color-danger-surface);+}++/* Border Colors */+.border-danger {+ border-color: var(--color-danger);+}++.border-danger-strong {+ border-color: var(--color-danger-strong);+}++.border-danger-idle {+ border-color: var(--color-danger-idle);+}++.border-danger-muted {+ border-color: var(--color-danger-muted);+}++/* Hover Variants for Danger */+.hover\:bg-danger:hover {+ background-color: var(--color-danger);+}++.hover\:text-danger:hover {+ color: var(--color-danger);+}++/* =========================+ BACKGROUND COLORS (Semantic)+ ========================= */++.bg-primary {+ background-color: var(--color-bg-primary);+}++.bg-secondary {+ background-color: var(--color-bg-secondary);+}++.bg-tertiary {+ background-color: var(--color-bg-tertiary);+}++.bg-quaternary {+ background-color: var(--color-bg-quaternary);+}++.bg-elevated {+ background-color: var(--color-bg-elevated);+}++.bg-idle {+ background-color: var(--color-bg-idle);+}++/* Surface States */+.bg-surface-hover {+ background-color: var(--color-surface-hover);+}++.bg-surface-active {+ background-color: var(--color-surface-active);+}++.bg-surface-overlay {+ background-color: var(--color-surface-overlay);+}++/* =========================+ TEXT COLORS (Semantic)+ ========================= */++.text-primary {+ color: var(--color-text-primary);+}++.text-secondary {+ color: var(--color-text-secondary);+}++.text-muted {+ color: var(--color-text-muted);+}++.text-disabled {+ color: var(--color-text-disabled);+}++/* =========================+ BORDER COLORS (Semantic)+ ========================= */++.border-primary {+ border-color: var(--color-border-primary);+}++.border-secondary {+ border-color: var(--color-border-secondary);+}++.border-muted {+ border-color: var(--color-border-muted);+}++/* =========================+ CHART SEMANTICS+ ========================= */++/* Text Colors */+.text-chart-frontend {+ color: var(--chart-frontend);+}++.text-chart-backend {+ color: var(--chart-backend);+}++/* Background Colors */+.bg-chart-frontend {+ background-color: var(--chart-frontend);+}++.bg-chart-frontend-bg {+ background-color: var(--chart-frontend-bg);+}++.bg-chart-backend {+ background-color: var(--chart-backend);+}++.bg-chart-backend-bg {+ background-color: var(--chart-backend-bg);+}++/* Border Colors */+.border-chart-frontend {+ border-color: var(--chart-frontend);+}++.border-chart-backend {+ border-color: var(--chart-backend);+}++/* =========================+ METRIC SEMANTICS+ ========================= */++/* Text Colors */+.text-metric-recent {+ color: var(--metric-recent);+}++.text-metric-mean {+ color: var(--metric-mean);+}++.text-metric-median {+ color: var(--metric-median);+}++.text-metric-stddev {+ color: var(--metric-stddev);+}++.text-metric-max {+ color: var(--metric-max);+}++.text-metric-min {+ color: var(--metric-min);+}++.text-metric-min-dark {+ color: var(--metric-min-dark);+}++/* Background Colors */+.bg-metric-recent {+ background-color: var(--metric-recent);+}++.bg-metric-recent-bg {+ background-color: var(--metric-recent-bg);+}++.bg-metric-mean {+ background-color: var(--metric-mean);+}++.bg-metric-mean-bg {+ background-color: var(--metric-mean-bg);+}++.bg-metric-median {+ background-color: var(--metric-median);+}++.bg-metric-median-bg {+ background-color: var(--metric-median-bg);+}++.bg-metric-stddev {+ background-color: var(--metric-stddev);+}++.bg-metric-stddev-bg {+ background-color: var(--metric-stddev-bg);+}++.bg-metric-max {+ background-color: var(--metric-max);+}++.bg-metric-max-bg {+ background-color: var(--metric-max-bg);+}++.bg-metric-min {+ background-color: var(--metric-min);+}++.bg-metric-min-bg {+ background-color: var(--metric-min-bg);+}++/* Border Colors */+.border-metric-recent {+ border-color: var(--metric-recent);+}++.border-metric-mean {+ border-color: var(--metric-mean);+}++.border-metric-median {+ border-color: var(--metric-median);+}++.border-metric-stddev {+ border-color: var(--metric-stddev);+}++.border-metric-max {+ border-color: var(--metric-max);+}++.border-metric-min {+ border-color: var(--metric-min);+}++/* =========================+ LOG LEVEL SEMANTICS+ ========================= */++/* Text Colors */+.text-log-trace {+ color: var(--log-trace);+}++.text-log-debug {+ color: var(--log-debug);+}++.text-log-info {+ color: var(--log-info);+}++.text-log-success {+ color: var(--log-success);+}++.text-log-api {+ color: var(--log-api);+}++.text-log-warning {+ color: var(--log-warning);+}++.text-log-error {+ color: var(--log-error);+}++.text-log-critical {+ color: var(--log-critical);+}++/* Background Colors */+.bg-log-trace {+ background-color: var(--log-trace);+}++.bg-log-trace-alpha {+ background-color: var(--log-trace-alpha);+}++.bg-log-debug {+ background-color: var(--log-debug);+}++.bg-log-debug-alpha {+ background-color: var(--log-debug-alpha);+}++.bg-log-info {+ background-color: var(--log-info);+}++.bg-log-info-alpha {+ background-color: var(--log-info-alpha);+}++.bg-log-success {+ background-color: var(--log-success);+}++.bg-log-success-alpha {+ background-color: var(--log-success-alpha);+}++.bg-log-api {+ background-color: var(--log-api);+}++.bg-log-api-alpha {+ background-color: var(--log-api-alpha);+}++.bg-log-warning {+ background-color: var(--log-warning);+}++.bg-log-warning-alpha {+ background-color: var(--log-warning-alpha);+}++.bg-log-error {+ background-color: var(--log-error);+}++.bg-log-error-alpha {+ background-color: var(--log-error-alpha);+}++.bg-log-critical {+ background-color: var(--log-critical);+}++.bg-log-critical-alpha {+ background-color: var(--log-critical-alpha);+}++/* Border Colors */+.border-log-trace {+ border-color: var(--log-trace);+}++.border-log-debug {+ border-color: var(--log-debug);+}++.border-log-info {+ border-color: var(--log-info);+}++.border-log-success {+ border-color: var(--log-success);+}++.border-log-api {+ border-color: var(--log-api);+}++.border-log-warning {+ border-color: var(--log-warning);+}++.border-log-error {+ border-color: var(--log-error);+}++.border-log-critical {+ border-color: var(--log-critical);+}++/* =========================+ LOG TERMINAL SEMANTICS+ ========================= */++.bg-log {+ background-color: var(--log-bg);+}++.bg-log-row {+ background-color: var(--log-row-bg);+}++.text-log-timestamp {+ color: var(--log-timestamp);+}++.text-log-text {+ color: var(--log-text);+}++.text-log-url {+ color: var(--log-url);+}++.border-log-detail {+ border-color: var(--log-detail-border);+}++.bg-log-stack {+ background-color: var(--log-stack-bg);+}++/* =========================+ UTILITY CLASSES FOR ALL COLORS+ ========================= */++/* Ring / Outline Utilities */+.ring-info {+ box-shadow: 0 0 0 2px var(--color-info);+}++.ring-success {+ box-shadow: 0 0 0 2px var(--color-success);+}++.ring-warning {+ box-shadow: 0 0 0 2px var(--color-warning);+}++.ring-danger {+ box-shadow: 0 0 0 2px var(--color-danger);+}++/* Fill for SVG */+.fill-info {+ fill: var(--color-info);+}++.fill-success {+ fill: var(--color-success);+}++.fill-warning {+ fill: var(--color-warning);+}++.fill-danger {+ fill: var(--color-danger);+}++.fill-primary {+ fill: var(--color-text-primary);+}++.fill-muted {+ fill: var(--color-text-muted);+}++/* Stroke for SVG */+.stroke-info {+ stroke: var(--color-info);+}++.stroke-success {+ stroke: var(--color-success);+}++.stroke-warning {+ stroke: var(--color-warning);+}++.stroke-danger {+ stroke: var(--color-danger);+}++/* Caret Color for inputs */+.caret-info {+ caret-color: var(--color-info);+}++.caret-success {+ caret-color: var(--color-success);+}++.caret-warning {+ caret-color: var(--color-warning);+}++.caret-danger {+ caret-color: var(--color-danger);+}++/* Selection Color */+.selection-info::selection {+ background-color: var(--color-info);+ color: var(--color-text-primary);+}++.selection-success::selection {+ background-color: var(--color-success);+ color: var(--color-text-primary);+}++/* Placeholder Color */+.placeholder-info::placeholder {+ color: var(--color-info);+}++.placeholder-success::placeholder {+ color: var(--color-success);+}++/* Opacity Utilities for Semantic Colors */+.bg-info\/10 {+ background-color: var(--color-info-surface);+}++.bg-success\/10 {+ background-color: var(--color-success-surface);+}++.bg-warning\/10 {+ background-color: var(--color-warning-surface);+}++.bg-danger\/10 {+ background-color: var(--color-danger-surface);+}++/* Focus Ring Utilities */+.focus\:ring-info:focus {+ box-shadow: 0 0 0 3px var(--color-info);+}++.focus\:ring-success:focus {+ box-shadow: 0 0 0 3px var(--color-success);+}++.focus\:ring-warning:focus {+ box-shadow: 0 0 0 3px var(--color-warning);+}++.focus\:ring-danger:focus {+ box-shadow: 0 0 0 3px var(--color-danger);+}\ No newline at end of filediff --git a/freemocap-ui/src/styles/components.css b/freemocap-ui/src/styles/components.cssnew file mode 100644index 00000000..75f48f1d--- /dev/null+++ b/freemocap-ui/src/styles/components.css@@ -0,0 +1,879 @@+.tag {+ background-color: var(--color-bg-elevated);+ padding: 2px 5px 2px 5px;+ text-align: center;+ border-radius: 4px;+}+++/* video tiles */+.video-tile {+ /* flex: 1 0 25%; */+ height: auto;+ aspect-ratio: 1 / 1;++}++.video-tile.size-2 {+ flex: 1 0 calc(50% - 8px);+ max-width: calc(50% - 8px);+}++.video-tile.size-3 {+ flex: 1 0 calc(33.33% - 8px);+ max-width: calc(33.33% - 8px);+}++.video-tile.size-4 {+ flex: 1 0 calc(25% - 8px);+ max-width: calc(25% - 8px);+}+++.video-tile.camera-source.empty:before,+.video-tile.video-source.empty:before {+ max-width: 20px;+ margin: 4px;+ display: inline-block;+ opacity: 0.5;+}++.video-tile.camera-source.empty:before {+ content: var(--camera-icon);++}++.video-tile.video-source.empty:before {+ content: var(--video-icon);++}++.video-tile.empty {+ border: 1.5px dashed var(--color-border-primary);++ background: transparent;+}++/* segmented-control design */+.segmented-control-container {+ max-width: max-content;+}++.main-segmented-control {+ position: absolute;+ left: 6px;+ top: 6px;+ z-index: 2;+}++.active-tools-header {+ margin-left: 346px;++}++.segmented-control-button {+ min-width: 110px;+ transition: color var(--speed-1) ease-in-out;+}++.segmented-control-sm {+ position: static;+}++.segmented-control-sm .segmented-control-button {+ min-width: 50px;+}++.segmented-control-button>p.text.md {+ /* medium size */+ min-height: 25px;+ line-height: 25px;+ padding: 0;+}++.RTP-settings-flyout,+.calibration-settings-flyout {+ width: 280px;++}++.calibration-settings-flyout {+ top: 340px;+ left: 300px;+}++.segmented-control-button>p.text.sm {+ /* small size */+ min-height: 22px;+ line-height: 22px;+ padding: 0;+}++.segmented-control-button:hover>p {+ color: var(--color-text-primary);+ transition: color var(--speed-1) ease-in-out;+}++++/* text colors */+/* .color-gray-400 {+ color: var(--color-text-muted);+}+.color-gray-100 {+ color: var(--color-text-primary);+} */+/* icon setup on the left side */+.icon {+ background-repeat: no-repeat;+ background-position: center;+ background-size: contain;+ /* filter animation in */+ transition: filter var(--speed-1) ease-in-out;+}+++/* =========================+ OPTIONAL: small layout helpers+ ========================= */+.app-root {+ display: flex;+ flex-direction: column;+ height: 100%;+}++/* ---- Header Panel ---- */+.header-panel {+ padding: 0 8px;+ flex-shrink: 0;+}++.top-header {+ background-color: var(--color-bg-secondary);+ /* border-bottom: 1.5px solid var(--color-bg-elevated); */+}++/* Resizable panel handles --------------------- */+.resizable-component {++ background-color: transparent !important;+}++.resizable-component {+ position: relative;+ background: transparent;+ transition:+ background-color 0.2s ease,+ width 0.15s ease,+ height 0.15s ease;+}++.streaming-bar-setting-action-bar {+ margin-top: -39px;+ margin-right: 9px;+}++/*+ CENTER INDICATOR+*/++/* Vertical divider (left/right resize) */+.resizable-component[data-panel-group-direction="horizontal"]::before {+ content: "";+ position: absolute;+ top: 50%;+ left: 50%;+ width: 3px;+ height: 20px;+ transform: translate(-50%, -50%);+ border-radius: 999px;+ background: var(--color-border-primary);+ opacity: 0;+ transition:+ opacity 0.15s ease,+ background 0.15s ease,+ transform 0.15s ease;+}++/* Horizontal divider (top/bottom resize) */+.resizable-component[data-panel-group-direction="vertical"]::before {+ content: "";+ position: absolute;+ top: 50%;+ left: 50%;+ width: 20px;+ height: 3px;+ transform: translate(-50%, -50%);+ border-radius: 999px;+ background: var(--color-border-primary);+ opacity: 0;+ transition:+ opacity 0.15s ease,+ background 0.15s ease,+ transform 0.15s ease;+}++/*+ HOVER+ */++.resizable-component[data-resize-handle-state="hover"]::before {+ opacity: 1;+ background: var(--log-trace);+}++/* Slightly enlarge handle area on hover */+.resizable-component[data-panel-group-direction="horizontal"]:hover {+ width: 4px !important;+}++.resizable-component[data-panel-group-direction="vertical"]:hover {+ height: 4px !important;+}++/* =========================================+ DRAGGING STATE+========================================= */++/* react-resizable-panels adds this attribute */+.resizable-component[data-resize-handle-state="drag"] {+ background-color: rgba(255, 255, 255, 0.08);+}++/* Wider while dragging */+.resizable-component[data-panel-group-direction="horizontal"][data-resize-handle-state="drag"] {+ width: 8px !important;+}++.resizable-component[data-panel-group-direction="vertical"][data-resize-handle-state="drag"] {+ height: 8px !important;+}++/* Make center indicator brighter/larger while dragging */+.resizable-component[data-resize-handle-state="drag"]::before {+ opacity: 1;+ background: white;+ transform: translate(-50%, -50%) scale(1.2);+}++++/* ---- Welcome Page ---- */+.welcome-modal {+ width: 680px;+ min-height: 400px;+ animation: fadeIn, scaleIn;+}++.welcome-modal-image-col {+ background: linear-gradient(160deg, var(--color-bg-primary) 0%, var(--color-info-idle) 100%);+ border-radius: 4px;+ display: flex;+ align-items: center;+ justify-content: center;+ min-width: 220px;+}++.welcome-modal-logo {+ max-width: 160px;+ max-height: 160px;+ object-fit: contain;+ opacity: 0.9;+}++.welcome-connect-button {+ width: 100%;+ max-width: 340px;+ padding: 14px 24px;+ font-size: 1rem;+ font-weight: 600;+ border-radius: 6px;+ cursor: pointer;+ transition: background-color var(--speed-1), transform var(--speed-1);+ background-color: var(--color-info-idle);+ border: 2px solid var(--color-info-muted);+ color: var(--color-text-primary);+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 8px;+}++.welcome-connect-button:hover:not(:disabled) {+ background-color: var(--color-info-muted);+ transform: translateY(-1px);+}++.right-side-panel {++ height: 100%;+}++.main-container {+ height: inherit;+}++.all-actions-components {+ align-items: center;+ justify-content: space-between;+ align-content: center;+ width: 100%;+}++.welcome-connect-button:disabled {+ opacity: 0.6;+ cursor: not-allowed;+}++.mode-header {+ min-height: 33px;+ width: inherit;+ margin-bottom: 1px;+}++/* ---- Toast Notification ---- */+.toast-notification {+ position: fixed;+ bottom: 36px;+ left: 50%;+ transform: translateX(-50%);+ z-index: 200;+ padding: 8px 8px;+ border-radius: 6px;+ border: 1px solid var(--color-bg-elevated);+ background-color: var(--color-bg-secondary);+ animation: fadeIn var(--speed-2) ease;+ max-width: 320px;+ text-align: center;+}++.toast-notification.success {+ border-color: var(--color-success);+}++.toast-notification.error {+ border-color: var(--color-danger);+}++.toast-notification.info {+ border-color: var(--color-info-muted);+}++/* ---- Version badge ---- */+.version-badge {+ display: inline-flex;+ align-items: center;+ gap: 4px;+ padding: 2px 8px;+ border: none;++ border-radius: 4px;++ font-family: monospace;+ font-size: 0.75rem;+ color: var(--color-text-muted);+ transition: border-color var(--speed-1), color var(--speed-1);+ /* background-color: var(--color-bg-secondary); */+}++.version-badge:hover {+ border-color: var(--color-text-muted);+ color: var(--color-text-primary);+}++.version-badge.success {+ border-color: var(--color-success);+ color: var(--color-success);+}++.version-badge:disabled {+ opacity: 0.5;+ cursor: not-allowed;+}++/* ---- Language switcher ---- */+.language-dropdown-container {+ position: relative;+ display: inline-block;+}++.language-dropdown-panel {+ position: absolute;+ top: calc(100% + 4px);+ left: 0;+ z-index: 100;+ min-width: 220px;+ max-height: 200px;+ overflow-y: auto;+}++.language-option {+ display: flex;+ align-items: center;+ gap: 8px;+ width: 100%;+ text-align: left;+ padding: 6px 8px;+}++.language-option:hover {+ background-color: var(--color-bg-elevated);+}++.language-option.selected {+ background-color: var(--color-bg-tertiary);+}++.translation-badge {+ display: inline-flex;+ align-items: center;+ gap: 4px;+ padding: 2px 6px;+ border-radius: 4px;+ border: 1px solid;+ font-size: 0.65rem;+ cursor: pointer;+ text-decoration: none;+ bottom: 50px;+}++.translation-badge.ai {+ border-color: var(--color-warning);+ color: var(--color-warning);+}++.translation-badge.human {+ border-color: var(--color-info-muted);+ color: var(--color-info-muted);+}++.translation-badge.native {+ border-color: var(--color-success);+ color: var(--color-success);+}++/* ---- Footer / Bottom Info Panel ---- */+.bottom-info-container {+ background-color: var(--color-bg-secondary);+}++.info-panel-divider {+ width: 4px;+ background-color: var(--color-bg-elevated);+ cursor: col-resize;+ flex-shrink: 0;+}++/* ---- Splash Modal Styles ---- */+.splash-overlay {+ position: fixed;+ /* inset: 0; */+ background-color: var(--color-surface-overlay);+ display: flex;+ align-items: center;+ justify-content: center;+ z-index: 50;+ /* animation: fadeIn 0.3s ease forwards; */+ animation: fadeIn;+}++.splash-modal {+ width: 550px;+ height: 366px;+ /* animation: scaleIn 0.3s ease forwards; */+ animation: fadeIn, scaleIn;+}++.camera-cell {+ border-radius: 8px;+}++.conection-container {+ width: 255px;+}++.disabled>* {+ opacity: 0.6;++ transition: opacity var(--speed-2) ease-in-out;+}++.disabled,+.disabled>* {+ pointer-events: none;+ opacity: 0.6;+ /* prevents clicking */+}++.splash-screen-logo {+ opacity: 0.5;+}++.splash-image-container {+ background-image: url(../images/splashmodal_art.webp);+ background-repeat: no-repeat;+ background-size: contain;+}+.mocap-settings-modal {+ max-width: 550px;+ max-height: 650px;+ min-width: 550px;+ min-height: 650px;+ /* width: 550px;+ height: 650px; */+ top: 50%;+ left: 50%;+ transform: translate(-50%, -50%);+ z-index: 1000;+++}+.inner-container-settings {+ height: 569px;+}+.bottom-area-action-container {+ height: 66px;+}+/* .splashmodal-mini-menu-container {+ position: absolute; */+/* top: 5px;+ left: 5px;+} */++.version-button-container {+ /* position: absolute; */+ /* top: 278px;+ left: 6px; */+ /* display: block; */+ text-wrap: nowrap;+}++.splash-image-logo-container {+ background-image: url(/images/logo_name.svg);+ background-repeat: no-repeat;+ background-size: contain;+ width: 88px;+ height: 28px;+ opacity: 0.5;+}++.footer-content {+ /* position: absolute; */+ bottom: -30px;+ left: 50%;+ opacity: 0.5;+ text-wrap: nowrap;+ transform: translateX(-50%);+}++/* --------- ui components styles -------- */+/* --------- ui components styles -------- */++/* --------- checkbox -------- */++/* =========================================+ Custom CSS Checkboxes (Reusable)+ Based on ModernCSS.dev+ ========================================= */++/* Style the numeric input specifically */+.numeric-input {+ color: var(--color-text-muted);+ font-weight: bold;+ text-align: right;+}+++/* Style the unit text */+.unit-label {+ margin-left: 8px;+}+++.unit-text {+ color: #007acc;+ font-style: italic;+}++.string-selector {+ top: 30px;++}++.value-label,+.input-field {++ color: var(--color-text-muted);++}++.input-field:active,+.input-field:focus {++ border: none;++}++.unit-label {++ color: var(--color-border-primary);+}++.segmented-control-icon {+ filter: brightness(2);+}++.input-with-unit,+.input-with-string {+ display: flex;+ align-items: center;+ border: 1px solid var(--color-bg-elevated);+ border-radius: 4px;+ padding: 4px 8px;+ height: 28px;+ width: 77px;+ transition: border var(--speed-2);+}++.input-with-unit.tooltip:has(input.input-field:hover) {+ border-color: var(--color-text-muted);+ transition: border var(--speed-2);+}++.input-with-unit.tooltip:focus-within {+ box-shadow: 0px 0px 0px 1px var(--color-text-secondary-alpha-10);+ border-color: var(--color-text-primary);+ transition: border var(--speed-2);+}++/* Apply the same focus/hover behaviour to all input containers */+.input-with-unit:has(input.input-field:hover),+.input-with-string:has(input.input-field:hover) {+ border-color: var(--color-text-muted);+ transition: border var(--speed-2);+}++.input-with-unit:focus-within,+.input-with-string:focus-within {+ box-shadow: 0px 0px 0px 1px var(--color-text-secondary-alpha-10);+ border-color: var(--color-text-primary);+ transition: border var(--speed-2);+}++++.file-directory-settings-modal {+ position: absolute;+ right: 101%;+ top: -5px;+ min-width: 300px;+ /* max-width: 300px; */+}++.camera-settings-modal {+ position: fixed;+ left:300px;+ top: 90px;+ min-width: 225px;+ /* max-width: 300px; */+}++.selected-camera-feed::before,+.selected-camera-settings::before {++ outline: 1.5px solid var(--color-border-primary);+ content: "";+ width: 100%;+ height: 100%;+ position: absolute;+ top: -2px;+ left: -2px;+ border-radius: 9px;+ padding: 2px;++}++.excluded-camera-tooltip {+ top: 21px;+ left: 0px;+}++.vanished {+ opacity: 0;+ pointer-events: none;++}++@media screen (min-width : 1920px) {++ ds\:video-tile.size-25 {+ flex: 1 0 calc(25%);+ max-width: calc(37%);+ }++}++/* Sidebar navigation tab buttons */+.sidebar-nav-cameras {+ background-color: var(--color-success-idle);+ color: var(--color-success);+}++.sidebar-nav-cameras:hover {+ background-color: var(--color-success-idle);+ opacity: 0.9;+}++.sidebar-nav-playback {+ background-color: var(--color-info-idle);+ color: var(--metric-stddev);+}++.sidebar-nav-playback:hover {+ background-color: var(--color-info-idle);+ opacity: 0.9;+}++.sidebar-nav-inactive {+ background-color: var(--color-bg-tertiary);+ color: var(--color-text-muted);+}++.sidebar-nav-inactive:hover {+ background-color: var(--color-bg-elevated);+ color: var(--color-text-primary);+}++/* Update banner */+.update-banner {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 8px;+ padding: 6px 12px;+ flex-shrink: 0;+}++.update-banner-error {+ background-color: var(--metric-median);+ color: var(--color-text-primary);+}++.update-banner-info {+ background-color: var(--color-info-idle);+ color: var(--metric-stddev);+}++.update-banner-success {+ background-color: var(--color-success-idle);+ color: var(--color-success);+}++.update-progress-track {+ height: 4px;+ border-radius: 2px;+ background-color: var(--color-text-secondary-alpha-20);+ overflow: hidden;+ margin-top: 4px;+}++.file-directory-settings-container {+ min-width: 280px;+ top: 476px;+ left: 300px;+ min-width: 350px;+ min-width: 350px;+ max-height: 80vh;++ position: fixed;+ z-index: 9999;+}++.update-progress-fill {+ height: 100%;+ border-radius: 2px;+ background-color: var(--metric-stddev);+ transition: width 0.3s ease;+}++/* Main content tab bar */+.main-tab-bar {+ padding: 6px 8px;+ /* background-color: var(--color-bg-secondary); */+ display: flex;+}++++/* =========================================+ BUTTON GROUP+========================================= */++.button-sm-group {+ position: relative;+ overflow: visible;+}+++.connection-status-dropdown {+ position: fixed !important;+ top: 32px !important;+ ;+ left: 8px !important;+ ;+ z-index: 100 !important;+ ;+ max-width: 400px !important;+ ;+ min-width: 400px !important;+ ;++}++.playback-settings-popup {++ min-width: 182px;++}++.playback-timeline-scrubber {+ flex: 1 1 522px;+ min-width: 0;+ width: 100%;+}++/* =========================================+ ERROR MESSAGE CONTAINER+========================================= */++.error-message-container {+ max-height: 16px;+ top: -6px;+}++.error-message-container::before,+.error-message-container::after {+ content: "";+ position: absolute;+ top: 0;+ width: 20px;+ height: 16px;+ background-image: url(/images/inv-edge.svg);+ background-repeat: no-repeat;+ background-size: contain;+}++.error-message-container::before {+ left: -20px;+ transform: scaleX(-1);+}++.error-message-container::after {+ right: -20px;+}+.camera-settings-container.contextual {++ min-width: 300px;+++}diff --git a/freemocap-ui/src/styles/font.css b/freemocap-ui/src/styles/font.cssnew file mode 100644index 00000000..b4d403d5--- /dev/null+++ b/freemocap-ui/src/styles/font.css@@ -0,0 +1,36 @@+@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");+++/* typography */++.title,h1 {+ font-size: 13px;+ font-weight: 600;+ line-height: 14px+}++.text.bg {+ font-size: 12px;+ font-weight: 600;+ line-height: 17px;+ letter-spacing: -.43px+}++.text.bg-md {+ font-size: 12px;+ font-weight: 400;+ line-height: 15px;+ letter-spacing: -.43px+}++.text.md, .input-field, input {+ font-size: 12px;+ font-weight: 500;+ line-height: 14px+}++.text.sm {+ font-size: 11px;+ font-weight: 500;+ line-height: 14px+}diff --git a/freemocap-ui/src/styles/framerate.css b/freemocap-ui/src/styles/framerate.cssnew file mode 100644index 00000000..e44630f6--- /dev/null+++ b/freemocap-ui/src/styles/framerate.css@@ -0,0 +1,210 @@+/* ============================================================+ Framerate Viewer+ ============================================================ */++.framerate-viewer {+ display: flex;+ flex-direction: column;+ height: 100%;+ /* overflow: hidden; */+ padding: 4px;+ gap: 4px;+ /* background-color: var(--color-text-muted); */+}++.framerate-viewer-header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ min-height: 25px;+ flex-shrink: 0;+ padding: 0 4px;+}++.framerate-stats-wrapper {+ flex-shrink: 0;+}++.framerate-charts-area {+ flex: 1;+ overflow: hidden;+ display: flex;+ gap: 4px;+}++.framerate-charts-area.row { flex-direction: row; }+.framerate-charts-area.column { flex-direction: column; }++.framerate-chart-panel {+ flex: 1;+ overflow: hidden;+}++/* ============================================================+ Framerate Statistics Table+ ============================================================ */++.stats-table-wrapper {+ overflow: visible;+}++.tooltip-container.stats-tooltip {+ width: max-content;+ max-width: 300px;+ min-width: 0;+ white-space: normal;+}++.stats-table {+ /* font-size: 0.65rem; */+ border-collapse: collapse;+ width: 100%;+ white-space: nowrap;+}++.stats-th {+ /* font-size: 0.65rem; */+ /* line-height: 1.1; */+ white-space: nowrap;+ padding: 2px 4px;+ text-align: center;+ font-weight: bold;+ cursor: help;+ font-family: monospace;+ position: relative;+}+++.stats-td {+ /* font-size: 0.65rem; */+ /* line-height: 1.1; */+ white-space: nowrap;+ padding: 2px 4px;+ text-align: center;+ border-bottom: none;+ font-family: monospace;+}++/* Source column header */+.stats-th-source {+ width: 12%;+ color: var(--color-text-primary);+ text-align: left;+}++/* Metric column backgrounds */+.stats-col-recent { background-color: var(--metric-recent-bg); }+.stats-col-mean { background-color: var(--metric-mean-bg); }+.stats-col-median { background-color: var(--metric-median-bg); }+.stats-col-stddev { background-color: var(--metric-stddev-bg); }+.stats-col-max { background-color: var(--metric-max-bg); }+.stats-col-min { background-color: var(--metric-min-bg); }++/* Metric cell values */+.stats-cell-primary {+ /* font-weight: bold;+ font-family: monospace; */+ /* font-size: 0.7rem; */+ white-space: nowrap;+}++.stats-cell-secondary {+ /* font-size: 0.6rem; */+ opacity: 0.9;+ white-space: nowrap;+}++.stats-cell-recent-text { color: var(--metric-recent); }+.stats-cell-mean-text { color: var(--metric-mean); }+.stats-cell-median-text { color: var(--metric-median); }+.stats-cell-stddev-text { color: var(--metric-stddev); }+.stats-cell-max-text { color: var(--metric-max); }+.stats-cell-min-text { color: var(--metric-min); }++/* Source label cell */+.stats-source-cell {+ font-weight: bold;+ border-left: 4px solid;+ padding: 2px 4px 2px 8px;+ cursor: help;+ text-align: left;+ white-space: nowrap;+ position: relative;+}++.stats-source-backend {+ border-left-color: var(--chart-backend);+ background-color: var(--chart-backend-bg);+ color: var(--chart-backend);+}++.stats-source-frontend {+ border-left-color: var(--chart-frontend);+ background-color: var(--chart-frontend-bg);+ color: var(--chart-frontend);+}++.stats-source-samples {+ font-size: 0.6rem;+ color: var(--color-text-muted);+}++/* Divider row */+.stats-divider > td {+ padding: 0;+ border-bottom: 1px solid var(--color-bg-elevated);+}++/* ============================================================+ D3 Chart Base+ ============================================================ */++.d3-chart-container {+ width: 100%;+ height: 100%;+ position: relative;+ overflow: hidden;+}++.d3-chart-title {+ position: absolute;+ top: 2px;+ left: 8px;++ opacity: 0.9;+ z-index: 5;+ background-color: var(--color-bg-secondary);+ padding: 0 4px;+ border-radius: 2px;+ line-height: 1.4;+ color: var(--color-text-muted);+ margin: 0;+ font-family: monospace;+ pointer-events: none;+}++.d3-zoom-controls {+ position: absolute;+ top: 50%;+ right: 5px;+ transform: translateY(-50%);+ z-index: 10;+ background-color: var(--color-text-muted);+ border-radius: 4px;+ display: flex;+ flex-direction: column;+ transition: opacity var(--speed-2);+}++.d3-zoom-controls.visible { opacity: 1; pointer-events: auto; }+.d3-zoom-controls.hidden { opacity: 0; pointer-events: none; }++.d3-zoom-button {+ font-size: 0.8rem;+ line-height: 1;+}++.d3-chart-svg {+ display: block;+ overflow: hidden;+}diff --git a/freemocap-ui/src/styles/icons.css b/freemocap-ui/src/styles/icons.cssnew file mode 100644index 00000000..d2f424b4--- /dev/null+++ b/freemocap-ui/src/styles/icons.css@@ -0,0 +1,546 @@+/* How to add icons to the design system++1. Ask the team to share the Figma file with you so you can collaborate.++2. Icons should always use a 1.33px stroke width and be exported as a 16px square.+ Always convert the stroke/border into a solid shape before exporting.++3. To add an icon to the codebase, first import the 16x16px SVG file.++4. Add the icon to `icons.css` as a variable so it can be reused easily throughout the design system.++5. Update the same file in the bottom of `icon.css` and use the same icon variable you just created as a class.++Note:+The FreeMoCap design system uses icons as CSS background images.+To ensure icons are always consistent and reusable across the app, we define the variable in `app.css` as a background image.++Study the codebase HTML structure carefully. You will notice that whenever icons are used for buttons, we use the following class structure:++- `icon`+- `import-icon`+- `icon-size-20`++`icon` indicates that the HTML DOM element contains an icon.+`import-icon` defines the actual background image used by the app.+`icon-size-20` defines the icon size specified in the `app.css` design system.+*/+/* icons vars */+:root {+ --plus-icon: url("../assets/icons/plus_icon.svg");+ --checkUpdate-icon: url("../assets/icons/checkUpdate_icon.svg");+ --upToDate-icon: url("../assets/icons/upToDate_icon.svg");+ --updateAvailable-icon: url("../assets/icons/updateAvailable_icon.svg");+ --minus-icon: url("../assets/icons/minus_icon.svg");+ --close-icon: url("../assets/icons/close_icon.svg");+ --rotate-icon: url("../assets/icons/rotate_icon.svg");+ --pause-icon: url("../assets/icons/pause_icon.svg");+ --play-icon: url("../assets/icons/play_icon.svg");+ --scan-icon: url("../assets/icons/scan_icon.svg");+ --home-icon: url("../assets/icons/home_icon.svg");+ --clear-icon: url("../assets/icons/clear_icon.svg");+ --load-icon: url("../assets/icons/load_icon.svg");+ --live-icon: url("../assets/icons/live_icon.svg");+ --snaptogrid-icon: url("../assets/icons/snaptogrid_icon.svg");+ --blender-icon: url("../assets/icons/blender_icon.svg");+ --calibrating-icon: url("../assets/icons/calibrating-icon.svg");++ --import-icon: url("../assets/icons/import-icon.svg");+ --importVideos-icon: url("../assets/icons/importVideos_icon.svg");+ --github-icon: url("../assets/icons/github_icon.svg");+ --externallink-icon: url("../assets/icons/externallink_icon.svg");+ --dropdown-icon: url("../assets/icons/dropdown_icon.svg");+ --stream-icon: url("../assets/icons/stream_icon.svg");+ --stopstreaming-icon: url("../assets/icons/stopstreaming_icon.svg");+ --streaming-icon: url("../assets/icons/streaming_icon.svg");+ --calibrate-icon: url("../assets/icons/calibrate_icon.svg");+ --calibrated-icon: url("../assets/icons/calibrated_icon.svg");+ --cancelcalibrate-icon: url("../assets/icons/cancelcalibrate_icon.svg");+ --camera-icon: url("../assets/icons/camera_icon.svg");+ --explainer-icon: url("../assets/icons/explainer_icon.svg");+ --expand-icon: url("../assets/icons/expand_icon.svg");+ --collapse-icon: url("../assets/icons/collapse_icon.svg");+ --copyover-icon: url("../assets/icons/copyover_icon.svg");+ --save-icon: url("../assets/icons/save_icon.svg");+ --frame-icon: url("../assets/icons/frame_icon.svg");+ --grid-icon: url("../assets/icons/grid_icon.svg");+ --copy-icon: url("../assets/icons/copy_icon.svg");+ --scrolldown-icon: url("../assets/icons/scrolldown_icon.svg");+ --scrollup-icon: url("../assets/icons/scrollup_icon.svg");++ --mic-icon: url("../assets/icons/mic_icon.svg");+ --mic-active-icon: url("../assets/icons/mic_active_icon.svg");+ --processmocap-icon: url("../assets/icons/processmocap_icon.svg");+ --video-icon: url("../assets/icons/video_icon.svg");+ --record-icon: url("../assets/icons/record_icon.svg");+ --calibrate-icon: url("../assets/icons/calibrate_icon.svg");+ --back-icon: url("../assets/icons/back_icon.svg");+ --copied-icon: url("../assets/icons/copied_icon.svg");+ --frameforward-icon: url("../assets/icons/frameforward_icon.svg");+ --framebackward-icon: url("../assets/icons/framebackward_icon.svg");+ --loop-icon: url("../assets/icons/loop_icon.svg");+ --loopactive-icon: url("../assets/icons/loopactive_icon.svg");+ --skipbackward-icon: url("../assets/icons/skipbackward_icon.svg");+ --skipforward-icon: url("../assets/icons/skipforward_icon.svg");++ --learn-icon: url("../assets/icons/learn_icon.svg");+ --discord-icon: url("../assets/icons/discord_icon.svg");+ --connected-icon: url("../assets/icons/connected_icon.svg");+ --warning-icon: url("../assets/icons/warning_icon.svg");+ --loader-icon: url("../assets/icons/loader_icon.svg");+ --donate-icon: url("../assets/icons/donate_icon.svg");+ --subcat-icon: url("../assets/icons/subcat_icon.svg");+ --download-icon: url("../assets/icons/download_icon.svg");+ --search-icon: url("../assets/icons/search_icon.svg");++ --settings-icon: url("../assets/icons/settings_icon.svg");+ --subfolder_icon: url("../assets/icons/subfolder_icon.svg");+ --addsubfolder_icon: url("../assets/icons/addsubfolder_icon.svg");+ --file_icon: url("../assets/icons/file_icon.svg");++ --importproject_icon: url("../assets/icons/importproject_icon.svg");+ --settings_icon: url("../assets/icons/settings_icon.svg");+ --tag_icon: url("../assets/icons/tag_icon.svg");+ --tag_active_icon: url("../assets/icons/tag_active_icon.svg");+++ --grid4_icon: url("../assets/icons/grid4_icon.svg");+ --grid3_icon: url("../assets/icons/grid3_icon.svg");+ --grid2_icon: url("../assets/icons/grid2_icon.svg");++ --tomlfile-icon: url("../assets/icons/tomlfile_icon.svg");++ --importvideo-icon: url("../assets/icons/importvideo_icon.svg");++ --live-active-icon: url("../assets/icons/live_active_icon.svg");+ --twodtracking-active-icon: url("../assets/icons/2dtracking_active_icon.svg");+ --threedtracking-active-icon: url("../assets/icons/3dtracking_active_icon.svg");+ --triangulate-active-icon: url("../assets/icons/triangulate_active_icon.svg");+ --skeleton-active-icon: url("../assets/icons/skeleton_active_icon.svg");+ --skeletonfilter-active-icon: url("../assets/icons/skeletonfilter_active_icon.svg");+ --skeletonfilter-icon: url("../assets/icons/skeletonfilter_icon.svg");+ --twodtracking-icon: url("../assets/icons/2dtracking_icon.svg");+ --threedtracking-icon: url("../assets/icons/3dtracking_icon.svg");+ --triangulate-icon: url("../assets/icons/triangulate_icon.svg");+ --skeleton-icon: url("../assets/icons/skeleton_icon.svg");+ --charuco-icon: url("../assets/icons/charuco_icon.svg");+ --charuco-active-icon: url("../assets/icons/charuco_active_icon.svg");+}+++/* icon type */+.close-icon {+ background-image: var(--close-icon);+}+.frame-icon {+ background-image: var(--frame-icon);+}+.grid-icon {+ background-image: var(--grid-icon);+}++.mic-icon {+ background-image: var(--mic-icon);+}+.snaptogrid-icon {+ background-image: var(--snaptogrid-icon);+}++.mic-active-icon {+ background-image: var(--mic-active-icon);+}++.close-icon {+ background-image: var(--close-icon);+}++.expand-icon {+ background-image: var(--expand-icon);+}++.collapse-icon {+ background-image: var(--collapse-icon);+}++.rotate-icon {+ background-image: var(--rotate-icon);+}++.pause-icon {+ background-image: var(--pause-icon);+}++.play-icon {+ background-image: var(--play-icon);+}++.back-icon {+ background-image: var(--back-icon);+}++.search-icon {+ background-image: var(--search-icon);+}++.clear-icon {+ background-image: var(--clear-icon);+}++.load-icon {+ background-image: var(--load-icon);+}++.home-icon {+ background-image: var(--home-icon);+}+.arrowdown-icon {+ background-image: var(--dropdown-icon);+}+.arrowup-icon {+ background-image: var(--dropdown-icon);+ transform: rotate(180deg);+}+.arrowright-icon {+ background-image: var(--dropdown-icon);+ transform: rotate(90deg);+}+.arrowleft-icon {+ background-image: var(--dropdown-icon);+ transform: rotate(-90deg);+}++.scan-icon {+ background-image: var(--scan-icon);+}++.externallink-icon {+ background-image: var(--externallink-icon);+}++.stream-icon {+ background-image: var(--stream-icon);+}++.stopstreaming-icon {+ background-image: var(--stopstreaming-icon);+}+.blender-icon {+ background-image: var(--blender-icon);+}+.calibrating-icon {+ background-image: var(--calibrating-icon);+}+.tag-icon {+ background-image: var(--tag_icon);+}+.tag-active-icon {+ background-image: var(--tag_active_icon);+}++.streaming-icon {+ background-image: var(--streaming-icon);+}++.calibrate-icon {+ background-image: var(--calibrate-icon);+}++.explainer-icon {+ background-image: var(--explainer-icon);+}++.calibrated-icon {+ background-image: var(--calibrated-icon);+}+.cancelcalibrate-icon {+ background-image: var(--cancelcalibrate-icon);+}++.subfolder-icon {+ background-image: var(--subfolder_icon);+}++.file-icon {+ background-image: var(--file_icon);+}++.grid4-icon {+ background-image: var(--grid4_icon);+}++.grid3-icon {+ background-image: var(--grid3_icon);+}++.grid2-icon {+ background-image: var(--grid2_icon);+}++.settings-icon {+ background-image: var(--settings_icon);+}++.plus-icon {+ background-image: var(--plus-icon);+}++.checkUpdate-icon {+ background-image: var(--checkUpdate-icon);+}++.upToDate-icon {+ background-image: var(--upToDate-icon);+}+.charuco-icon {+ background-image: var(--charuco-icon);+}+.charuco-active-icon {+ background-image: var(--charuco-active-icon);+}++.updateAvailable-icon {+ background-image: var(--updateAvailable-icon);+}++.addsubfolder-icon {+ background-image: var(--addsubfolder_icon);+}+++.minus-icon {+ background-image: var(--minus-icon);+}++/* icon types */+.live-icon {+ background-image: var(--live-icon);+}++.import-icon {+ background-image: var(--import-icon);+}++.importVideos-icon {+ background-image: var(--importVideos-icon);+}++.github-icon {+ background-image: var(--github-icon);+}++.discord-icon {+ background-image: var(--discord-icon);+}++.connected-icon {+ background-image: var(--connected-icon);+}++.copyover-icon {+ background-image: var(--copyover-icon);+}++.loop-icon {+ background-image: var(--loop-icon);+}++.copy-icon {+ background-image: var(--copy-icon);+}++.copied-icon {+ background-image: var(--copied-icon);+}++.scrolldown-icon {+ background-image: var(--scrolldown-icon);+}++.save-icon {+ background-image: var(--save-icon);+}++.scrollup-icon {+ background-image: var(--scrollup-icon);+}++.loopactive-icon {+ background-image: var(--loopactive-icon);+}++.frameforward-icon {+ background-image: var(--frameforward-icon);+}++.framebackward-icon {+ background-image: var(--framebackward-icon);+}++.skipforward-icon {+ background-image: var(--skipforward-icon);+}++.skipbackward-icon {+ background-image: var(--skipbackward-icon);+}++.loader-icon {+ background-image: var(--loader-icon);+ animation: spin-ramp 2s infinite;+ animation-timing-function: cubic-bezier(0.95, 0.17, 0.37, 0.72);+}++.warning-icon {+ background-image: var(--warning-icon);+}++.donate-icon {+ background-image: var(--donate-icon);+}++.record-icon {+ background-image: var(--record-icon);+}++.calibrate-icon {+ background-image: var(--calibrate-icon);+}++.learn-icon {+ background-image: var(--learn-icon);+}++.subcat-icon {+ background-image: var(--subcat-icon);+}++.download-icon {+ background-image: var(--download-icon);+}++.processmocap-icon {+ background-image: var(--processmocap-icon);+}+.twodtracking-active-icon {+ background-image: var(--twodtracking-active-icon);+}+.live-active-icon {+ background-image: var(--live-active-icon);+}+.threedtracking-active-icon {+ background-image: var(--threedtracking-active-icon);+}+.triangulate-active-icon {+ background-image: var(--triangulate-active-icon);+}+.skeleton-active-icon {+ background-image: var(--skeleton-active-icon);+}+.skeletonfilter-active-icon {+ background-image: var(--skeletonfilter-active-icon);+}+.twodtracking-icon {+ background-image: var(--twodtracking-icon);+}+.threedtracking-icon {+ background-image: var(--threedtracking-icon);+}+.triangulate-icon {+ background-image: var(--triangulate-icon);+}+.skeleton-icon {+ background-image: var(--skeleton-icon);+}+.skeletonfilter-icon {+ background-image: var(--skeletonfilter-icon);+}+.tomlfile-icon {+ background-image: var(--tomlfile-icon);+}+.tomlfile-icon {+ background-image: var(--tomlfile-icon);+}+.importvideo-icon {+ background-image: var(--importvideo-icon);+}++/* =========================+ icons buttons+ ========================= */++.icon-size-12 {+ min-width: 12px;+ min-height: 12px;+}++.icon-size-20 {+ width: 20px;+ height: 20px;+ min-width: 20px;+ min-height: 20px;+}++.icon-size-25 {+ width: 25px;+ height: 25px;+}++.icon-size-25 {+ width: 25px;+ height: 25px;+}++.icon-size-32 {+ width: 32px;+ height: 32px;+}++.icon-size-42 {+ width: 42px;+ height: 42px;+}++.icon-button {++ align-items: center;+ display: flex;+ justify-content: center;+}++.icon-button.deactivated {++ opacity: 0.5;+ pointer-events: none;+ cursor: not-allowed;+}++/* button icons variants */+.primary {+ background-color: var(--color-bg-primary);+}++.icon-button.tertiary {+ background-color: transparent;+}++.icon-button.tertiary:hover {+ filter: brightness(1.2);+}++.primary:hover {+ background-color: var(--color-danger-idle);+}++.icon-button:hover>.icon {+ filter: brightness(1);+++ transition: filter var(--speed-1) ease-in-out;+}++.icon-button:hover:not(.secondary, .tertiary) {++ background-color: var(--color-surface-active);+ /* filter animation out */+ transition: filter var(--speed-1) ease-in-out;+}\ No newline at end of filediff --git a/freemocap-ui/src/styles/log-terminal.css b/freemocap-ui/src/styles/log-terminal.cssnew file mode 100644index 00000000..72c801d7--- /dev/null+++ b/freemocap-ui/src/styles/log-terminal.css@@ -0,0 +1,237 @@+/* ============================================================+ Log Terminal+ ============================================================ */++.log-terminal {+ height: 100%;+ display: flex;+ flex-direction: column;+ /* background-color: var(--log-bg); */+}++/* ---- Toolbar ---- */++.log-toolbar {+ border-bottom: 1px solid var(--color-surface-active);+ flex-shrink: 0;+}++.log-actions {+ margin-left: auto;+}++/* ---- Search bar ---- */++.log-search-bar {+ border-bottom: 1px solid var(--color-surface-active);+ flex-shrink: 0;+}++/* ---- Scroll / virtualization containers ---- */++.log-scroll-area {+ flex: 1;+ overflow-y: auto;+ overflow-x: auto;+ position: relative;+}++.log-virtual-track {+ position: relative;+}++.log-virtual-window {+ position: absolute;+ left: 0;+ right: 0;+}++/* ---- Empty state ---- */++.log-empty-state {+ display: flex;+ justify-content: center;+ align-items: center;+ height: 100%;+ color: var(--color-text-disabled);+}++/* ---- Log entry row ---- */++.log-entry {+ border-left: 2px solid;+ padding-left: 8px;+ padding-top: 4px;+ padding-bottom: 4px;+ cursor: pointer;+ font-family: monospace;++ overflow: hidden;+ position: relative;+ background-color: var(--log-row-bg);+}+.log-level-filter {+ filter:grayscale(1);+ color: var(--color-text-primary);+}+.log-level-filter.active {+ filter:grayscale(0);+}+.button.sm.br-1:not(.active,.button-sm-group) {+ color: var(--color-text-tertiary);++}+/* Level border colours */+.log-entry.trace { border-left-color: var(--log-trace); }+.log-entry.debug { border-left-color: var(--log-debug); }+.log-entry.info { border-left-color: var(--log-info); }+.log-entry.success { border-left-color: var(--log-success); }+.log-entry.api { border-left-color: var(--log-api); }+.log-entry.warning { border-left-color: var(--log-warning); }+.log-entry.error { border-left-color: var(--log-error); }+.log-entry.critical { border-left-color: var(--log-critical); }++/* Allow the detail overlay (positioned at top: 100%, outside this row's box) to be visible */+.log-entry.expanded {+ overflow: visible;+}++/* Expanded row background */+.log-entry.trace.expanded { background-color: var(--log-trace-alpha); }+.log-entry.debug.expanded { background-color: var(--log-debug-alpha); }+.log-entry.info.expanded { background-color: var(--log-info-alpha); }+.log-entry.success.expanded { background-color: var(--log-success-alpha); }+.log-entry.api.expanded { background-color: var(--log-api-alpha); }+.log-entry.warning.expanded { background-color: var(--log-warning-alpha); }+.log-entry.error.expanded { background-color: var(--log-error-alpha); }+.log-entry.critical.expanded { background-color: var(--log-critical-alpha); }++/* ---- Header line ---- */++.log-entry-header {+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ font-family: monospace;+}++/* ---- Timestamp ---- */++.log-timestamp {+ color: var(--log-timestamp);+ margin-right: 8px;+ font-size: 0.9em;+}++/* ---- Level badge ---- */++.log-level-badge {+ padding: 1px 5px;+ border-radius: 2px;+ font-size: 0.75em;+ font-weight: 600;+ margin-right: 8px;+ display: inline-block;+ line-height: normal;+ vertical-align: middle;++}++.log-level-badge.trace { background-color: var(--log-trace); }+.log-level-badge.debug { background-color: var(--log-debug); }+.log-level-badge.info { background-color: var(--log-info); }+.log-level-badge.success { background-color: var(--log-success); }+.log-level-badge.api { background-color: var(--log-api); }+.log-level-badge.warning { background-color: var(--log-warning); }+.log-level-badge.error { background-color: var(--log-error); }+.log-level-badge.critical { background-color: var(--log-critical); }++/* ---- Message text ---- */++.log-message-text {+ color: var(--log-text);+}++/* ---- Multi-line body ---- */++.log-multiline-body {+ white-space: pre;+ color: var(--log-text);+ padding-left: 4px;+}++/* ---- Expanded detail overlay ---- */++.log-entry-detail-overlay {+ position: absolute;+ top: 100%;+ left: 0;+ right: 0;+ z-index: 10;+ background-color: var(--log-bg);+ border-left: 2px solid;+ border-bottom: 1px solid;+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);+ overflow: auto;+ max-height: 400px;+}++/* Level overlay border colours */+.log-entry.trace .log-entry-detail-overlay { border-color: var(--log-trace); }+.log-entry.debug .log-entry-detail-overlay { border-color: var(--log-debug); }+.log-entry.info .log-entry-detail-overlay { border-color: var(--log-info); }+.log-entry.success .log-entry-detail-overlay { border-color: var(--log-success); }+.log-entry.api .log-entry-detail-overlay { border-color: var(--log-api); }+.log-entry.warning .log-entry-detail-overlay { border-color: var(--log-warning); }+.log-entry.error .log-entry-detail-overlay { border-color: var(--log-error); }+.log-entry.critical .log-entry-detail-overlay { border-color: var(--log-critical); }++/* ---- Detail content ---- */++.log-entry-detail {+ padding: 6px 8px 6px 16px;+ font-size: 0.8em;+ color: var(--log-timestamp);+ border-top: 1px solid var(--log-detail-border);+ white-space: pre-wrap;+ line-height: 1.4;+ overflow: visible;+ overflow-wrap: anywhere;+}++.log-entry-detail-message {+ font-weight: 600;+ margin-bottom: 4px;+ color: var(--log-text);+}++/* ---- Stack trace ---- */++.log-stack-trace {+ white-space: pre-wrap;+ background: var(--log-stack-bg);+ padding: 8px;+ border-radius: 4px;+ margin: 8px 0;+}++/* ---- URL link ---- */++.log-link {+ color: var(--log-url);+ text-decoration: underline;+}++/* ---- Level filter buttons ---- */++.log-level-filter { transition: opacity var(--speed-1); }+.log-level-filter.active { opacity: 1; }++.log-level-filter.trace { color: var(--log-trace); }+.log-level-filter.debug { color: var(--log-debug); }+.log-level-filter.info { color: var(--log-info); }+.log-level-filter.success { color: var(--log-success); }+.log-level-filter.api { color: var(--log-api); }+.log-level-filter.warning { color: var(--log-warning); }+.log-level-filter.error { color: var(--log-error); }+.log-level-filter.critical { color: var(--log-critical); }diff --git a/freemocap-ui/src/styles/playback.css b/freemocap-ui/src/styles/playback.cssnew file mode 100644index 00000000..45e89149--- /dev/null+++ b/freemocap-ui/src/styles/playback.css@@ -0,0 +1,346 @@+/* =========================================+ PLAYBACK CONTROLS STYLES+========================================= */++/* Timeline Scrubber Container */+.playback-timeline-scrubber {+ min-height: 36px;+ width: 100%;+}++/* =========================================+ TIMELINE TRACK+========================================= */++.playback-timeline-track {+ position: relative;++ flex: 1;++ height: 36px;+ min-height: 36px;++ background-color: var(--color-text-muted);++ border-radius: 8px;++ overflow: hidden;++ cursor: pointer;++ contain: layout paint;+}++/* =========================================+ RANGE INPUT+========================================= */++.playback-timeline-input {+ position: absolute;+ inset: 0;++ width: 100%;+ height: 100%;++ margin: 0;+ padding: 0;++ appearance: none;+ -webkit-appearance: none;++ border: none;+ border-radius: inherit;++ cursor: pointer;++ background:+ linear-gradient(+ to right,+ #3b82f6 0%,+ #3b82f6 var(--progress-percent),+ #3a3a3a var(--progress-percent),+ #3a3a3a 100%+ );+}++/* =========================================+ CHROME / SAFARI TRACK+========================================= */++.playback-timeline-input::-webkit-slider-runnable-track {+ height: 100%;+ background: transparent;+ border-radius: inherit;+}++/* =========================================+ CHROME / SAFARI THUMB+========================================= */+.playback-timeline-input::-webkit-slider-thumb {+ cursor: grab;+}++.playback-timeline-input:active::-webkit-slider-thumb {+ cursor: grabbing;+}++.playback-timeline-input::-moz-range-thumb {+ cursor: grab;+}++.playback-timeline-input:active::-moz-range-thumb {+ cursor: grabbing;+}++.playback-timeline-input::-webkit-slider-thumb {+ -webkit-appearance: none;+ appearance: none;++ width: 4px;+ height: 18px;++ margin-top: 9px;++ border-radius: 2px;+ border: none;++ background: white;++ /* cursor: pointer; */++ transition:+ height 0.12s ease,+ margin-top 0.12s ease,+ border-radius 0.12s ease;+}++/* Hover / active state */+.playback-timeline-input:hover::-webkit-slider-thumb,+.playback-timeline-input:active::-webkit-slider-thumb {+ height: 40px;++ margin-top: -2px;++ border-radius: 999px;+}++/* =========================================+ FIREFOX TRACK+========================================= */++.playback-timeline-input::-moz-range-track {+ height: 100%;+ background: transparent;+ border-radius: inherit;+}++/* =========================================+ FIREFOX THUMB+========================================= */++.playback-timeline-input::-moz-range-thumb {+ width: 4px;+ height: 18px;++ border-radius: 2px;+ border: none;++ background: white;++ cursor: pointer;++ transition:+ height 0.12s ease,+ border-radius 0.12s ease;+}++/* Hover / active state */+.playback-timeline-input:hover::-moz-range-thumb,+.playback-timeline-input:active::-moz-range-thumb {+ height: 40px;++ border-radius: 999px;+}++/* =========================================+ TIMELINE TEXT OVERLAYS+========================================= */++.playback-timeline-start-time,+.playback-timeline-end-time,+.playback-timeline-frame-counter {+ position: absolute;++ top: 50%;++ transform: translateY(-50%);++ z-index: 2;++ pointer-events: none;++ user-select: none;++ white-space: nowrap;++ font-family: "Courier New", monospace;++ font-weight: 600;++ color: white;+}++/* Left timestamp */+.playback-timeline-start-time {+ left: 10px;++ text-align: left;++ min-width: 48px;+}++/* Right timestamp */+.playback-timeline-end-time {+ right: 10px;++ text-align: right;++ min-width: 48px;+}++/* Center frame counter */+.playback-timeline-frame-counter {+ left: 50%;++ transform: translate(-50%, -50%);++ display: flex;+ align-items: center;+ gap: 12px;+}++/* =========================================+ PLAYBACK CONTROLS GROUPS+========================================= */++/* Play button special styling */+.playback-btn-play,+.playback-btn-play.playing {+ min-width: 60px;++ background-color: var(--color-surface-active);+}++/* =========================================+ PLAYBACK SPEED SELECT+========================================= */++.playback-speed-select {+ min-width: 50px;++ height: 28px;++ padding: 4px 8px;++ background-color: var(--color-text-muted);++ color: var(--color-text-primary);++ border: 1px solid var(--color-surface-active);++ border-radius: 3px;++ font-size: 0.85rem;++ font-weight: 500;++ cursor: pointer;++ transition: all 0.15s ease;+}++.playback-speed-select:hover {+ background-color: var(--color-surface-active);++ border-color: var(--color-text-disabled);+}++.playback-speed-select:focus {+ outline: none;++ border-color: var(--color-info-medium);++ box-shadow: 0 0 4px rgba(59, 130, 246, 0.3);+}++.playback-speed-select:active {+ background-color: var(--color-text-muted);+}++/* =========================================+ PLAYBACK SYNC INFO PANEL+========================================= */++.playback-sync-info {+ padding: 8px;++ background-color: var(--color-text-muted);++ border: 1px solid var(--color-surface-active);++ border-radius: 4px;++ animation: slideDown 0.2s ease;+}++.playback-sync-title {+ color: var(--log-trace);++ font-weight: 500;++ margin-bottom: 4px;+}++@keyframes slideDown {+ from {+ opacity: 0;++ transform: translateY(-8px);+ }++ to {+ opacity: 1;++ transform: translateY(0);+ }+}++/* =========================================+ PLAYBACK SETTINGS POPUP+========================================= */++.playback-settings-popup {+ animation:+ fadeIn 0.15s ease,+ scaleIn 0.2s ease;+}++@keyframes fadeIn {+ from {+ opacity: 0;+ }++ to {+ opacity: 1;+ }+}++@keyframes scaleIn {+ from {+ transform: scale(0.95);+ }++ to {+ transform: scale(1);+ }+}\ No newline at end of filediff --git a/freemocap-ui/src/styles/reset.css b/freemocap-ui/src/styles/reset.cssnew file mode 100644index 00000000..8ccce433--- /dev/null+++ b/freemocap-ui/src/styles/reset.css@@ -0,0 +1,107 @@+/* =========================+ RESET + GLOBAL+ ========================= */++/* base / reset */+html,+body,+#root {+ width: 100%;+ height: 100%;+ margin: 0;+ padding: 0;+ font-size: 12px;+ line-height: 14px;+ letter-spacing: -0px;+ font-weight: 500;+ color: var(--color-text-muted);+ font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;+ background: var(--color-text-primary);+ -webkit-text-size-adjust: 100%;+ -ms-text-size-adjust: 100%;+ text-size-adjust: 100%+}++* {+ box-sizing: border-box;+ margin: 0;+ padding: 0;+}++/* element resets */+ul,+ol {+ list-style: none;+}++a {+ text-decoration: none;+ color: inherit;+}++img,+picture,+video,+canvas,+svg {+ display: block;+ max-width: 100%;+ height: auto;+}++button,+input,+select,+textarea {+ font: inherit;+ background: none;+ border: none;+ outline: none;+}++button,+.button {+ cursor: pointer;+ transform-origin: center center;+}++h1,+h2,+h3,+h4,+h5,+h6 {+ font-size: inherit;+ font-weight: inherit;+}++/* Remove arrows in Chrome, Safari, Edge, Opera */+input[type="number"]::-webkit-inner-spin-button,+input[type="number"]::-webkit-outer-spin-button {+ -webkit-appearance: none;+ margin: 0;+}++/* Remove arrows in Firefox */+input[type="number"] {+ -moz-appearance: textfield;+}++strong,+b {+ font-weight: bold;+}++blockquote,+q {+ quotes: none;+}++blockquote::before,+blockquote::after,+q::before,+q::after {+ content: "";+}\ No newline at end of filediff --git a/freemocap-ui/src/styles/toggle.css b/freemocap-ui/src/styles/toggle.cssnew file mode 100644index 00000000..3ec245e5--- /dev/null+++ b/freemocap-ui/src/styles/toggle.css@@ -0,0 +1,76 @@+/* TOGGLE STYLES AND SHAPES */+.icon.toggle-container {+ min-width: 24px;+ height: 16px;+ border-radius: 9999px;+ padding: 2px;+ cursor: pointer;+ position: relative;+ transition: background-color var(--speed-2);+ border: 2px solid transparent;+}++.toggle-button:hover,+.modal-trigger-button:hover {+ background-color: var(--color-bg-elevated);+ transition: background-color var(--speed-2);+}++.toggle-button:active,+.modal-trigger-button:active {+ background-color: var(--color-bg-secondary);+ transition: background-color var(--speed-1);+}++.toggle-button {+ transition: background-color var(--speed-2);+}++.icon.toggle-container.off {+ border: 2px solid var(--color-border-primary);+}++.icon.toggle-container.on {+ background-color: var(--color-info-strong);+ /* green when on */+}++.icon.toggle-circle {+ /* idle state */+ width: 8px;+ height: 8px;+ background-color: var(--color-text-muted);+ border-radius: 50%;+ position: absolute;+ top: 2px;+ left: 2px;+ transition: left var(--speed-2) ease-in-out;+ /* animate horizontally */+}++.icon.toggle-container.on .toggle-circle {+ left: 12px;+ /* move to far right: 24 - 8 - 3 padding = 13px */+ top: 2px;+ background-color: var(--color-bg-quaternary);+}++/* Small variant, used for compact overlays (e.g. 3D viewport visibility toggles) */+.icon.toggle-container.sm {+ min-width: 18px;+ height: 12px;+ padding: 1px;+ border-width: 1.5px;+}++.icon.toggle-container.sm .toggle-circle {+ width: 6px;+ height: 6px;+ top: 1px;+ left: 1px;+}++.icon.toggle-container.sm.on .toggle-circle {+ left: 9px;+ top: 1px;+}\ No newline at end of filediff --git a/freemocap-ui/src/styles/tooltips.css b/freemocap-ui/src/styles/tooltips.cssnew file mode 100644index 00000000..6e1c3968--- /dev/null+++ b/freemocap-ui/src/styles/tooltips.css@@ -0,0 +1,397 @@+/* =========================================+ TOOLTIP BASE+========================================= */++.tooltip-container, .prompt-tooltip-container {+ position: absolute;+ z-index: 9999;+ min-width: max-content;++}+.prompt-tooltip-container {+ min-width: 248px;+ max-width: 248px;+ /* Allow mouse/touch interaction */+ pointer-events: auto;++ /* Allow text selection */+ user-select: text;+ -webkit-user-select: text;++ /* Enable normal touch behavior */+ touch-action: auto;++ /* Enable iOS touch callout */+ -webkit-touch-callout: default;+}++/* =========================================+ LOADING STATE WITH SHIMMER ANIMATION+========================================= */++@keyframes shimmer-border {+ 0% {+ border-color: var(--color-info);+ }+ 50% {+ border-color: var(--log-detail-border);+ }+ 100% {+ border-color: var(--color-info);+ }+}++.prompt-tooltip-container.loading > div {+ /* border: 2px solid var(--color-info); */+ animation: shimmer-border 1.5s ease-in-out infinite;+}++.tooltip-container:not(.prompt-tooltip-container, .dropdown) {+ opacity: 0;+ visibility: hidden;+ pointer-events: none;+ transition:+ opacity 0.18s ease,+ visibility 0.18s ease,+ transform 0.18s ease;+}++++++/* =========================================+ SHOW TOOLTIP ON HOVER+========================================= */++.button-sm-group:hover .tooltip-container,+.icon-button:hover .tooltip-container,+.tooltip-wrapper:hover .tooltip-container,+.stats-th:hover .tooltip-container,+.stats-source-cell:hover .tooltip-container {+ opacity: 1;+ visibility: visible;+}++/* =========================================+ TOOLTIP INNER+========================================= */++.tooltip-inner {+ position: relative;+ background: var(--color-bg-primary);+ will-change: transform, opacity;+}++/* =========================================+ POSITION : BOTTOM+========================================= */++.tooltip-container.pos-bottom {+ top: calc(100% + 10px);+ left: 50%;++ transform:+ translateX(-50%)+ translateY(-8px);++ /* opacity: 0; */+}++.button-sm-group:hover .tooltip-container.pos-bottom,+.icon-button:hover .tooltip-container.pos-bottom,+.stats-th:hover .tooltip-container.pos-bottom,+.stats-source-cell:hover .tooltip-container.pos-bottom {+ transform:+ translateX(-50%)+ translateY(-4px);++ /* opacity: 1; */+}++/* TRIANGLE */++.tooltip-container.pos-bottom::before {+ content: "";+ position: absolute;++ top: -6px;+ left: 50%;++ transform: translateX(-50%);++ width: 0;+ height: 0;++ border-left: 6px solid transparent;+ border-right: 6px solid transparent;+ border-bottom: 6px solid var(--color-bg-primary);+}++/* =========================================+ POSITION : BOTTOM-LEFT+========================================= */++.tooltip-container.pos-bottom-left {+ top: calc(100% + 10px);+ left: 0;++ transform:+ translateY(-8px);+}++.button-sm-group:hover .tooltip-container.pos-bottom-left,+.icon-button:hover .tooltip-container.pos-bottom-left,+.stats-th:hover .tooltip-container.pos-bottom-left,+.stats-source-cell:hover .tooltip-container.pos-bottom-left {+ transform:+ translateY(-4px);+}++/* TRIANGLE */++.tooltip-container.pos-bottom-left::before {+ content: "";+ position: absolute;++ top: -6px;+ left: 12px;++ width: 0;+ height: 0;++ border-left: 6px solid transparent;+ border-right: 6px solid transparent;+ border-bottom: 6px solid var(--color-bg-primary);+}++/* =========================================+ POSITION : BOTTOM-RIGHT+========================================= */++.tooltip-container.pos-bottom-right {+ top: calc(100% + 10px);+ right: 0;++ transform:+ translateY(-8px);+}++.button-sm-group:hover .tooltip-container.pos-bottom-right,+.icon-button:hover .tooltip-container.pos-bottom-right,+.stats-th:hover .tooltip-container.pos-bottom-right,+.stats-source-cell:hover .tooltip-container.pos-bottom-right {+ transform:+ translateY(-4px);+}++/* TRIANGLE */++.tooltip-container.pos-bottom-right::before {+ content: "";+ position: absolute;++ top: -6px;+ right: 12px;++ width: 0;+ height: 0;++ border-left: 6px solid transparent;+ border-right: 6px solid transparent;+ border-bottom: 6px solid var(--color-bg-primary);+}++/* =========================================+ POSITION : TOP+========================================= */++.tooltip-container.pos-top {+ bottom: calc(100% + 10px);+ left: 50%;++ transform:+ translateX(-50%)+ translateY(6px);+}++.button-sm-group:hover .tooltip-container.pos-top,+.icon-button:hover .tooltip-container.pos-top {+ transform:+ translateX(-50%)+ translateY(0);+}++/* TRIANGLE */++.tooltip-container.pos-top::before {+ content: "";+ position: absolute;++ bottom: -6px;+ left: 50%;++ transform: translateX(-50%);++ width: 0;+ height: 0;++ border-left: 6px solid transparent;+ border-right: 6px solid transparent;+ border-top: 6px solid var(--color-bg-primary);+}++/* =========================================+ POSITION : TOP-LEFT+========================================= */++.tooltip-container.pos-top-left {+ bottom: calc(100% + 10px);+ left: 0;++ transform:+ translateY(6px);+}++.button-sm-group:hover .tooltip-container.pos-top-left,+.icon-button:hover .tooltip-container.pos-top-left {+ transform:+ translateY(0);+}++/* TRIANGLE */++.tooltip-container.pos-top-left::before {+ content: "";+ position: absolute;++ bottom: -6px;+ left: 12px;++ width: 0;+ height: 0;++ border-left: 6px solid transparent;+ border-right: 6px solid transparent;+ border-top: 6px solid var(--color-bg-primary);+}++/* =========================================+ POSITION : TOP-RIGHT+========================================= */++.tooltip-container.pos-top-right {+ bottom: calc(100% + 10px);+ right: 0;++ transform:+ translateY(6px);+}++.button-sm-group:hover .tooltip-container.pos-top-right,+.icon-button:hover .tooltip-container.pos-top-right {+ transform:+ translateY(0);+}++/* TRIANGLE */++.tooltip-container.pos-top-right::before {+ content: "";+ position: absolute;++ bottom: -6px;+ right: 12px;++ width: 0;+ height: 0;++ border-left: 6px solid transparent;+ border-right: 6px solid transparent;+ border-top: 6px solid var(--color-bg-primary);+}++/* =========================================+ POSITION : LEFT+========================================= */++.tooltip-container.pos-left {+ right: calc(100% + 10px);+ top: 50%;++ transform:+ translateY(-50%)+ translateX(6px);++}++.button-sm-group:hover .tooltip-container.pos-left,+.icon-button:hover .tooltip-container.pos-left {+ transform:+ translateY(-50%)+ translateX(0);+++}++/* TRIANGLE */++.tooltip-container.pos-left::before {+ content: "";+ position: absolute;++ right: -6px;+ top: 50%;++ transform: translateY(-50%);++ width: 0;+ height: 0;++ border-top: 6px solid transparent;+ border-bottom: 6px solid transparent;+ border-left: 6px solid var(--color-bg-primary);+}++/* =========================================+ POSITION : RIGHT+========================================= */++.tooltip-container.pos-right {+ left: calc(100% + 10px);+ top: 50%;++ transform:+ translateY(-50%)+ translateX(-6px);+++}++.button-sm-group:hover .tooltip-container.pos-right,+.icon-button:hover .tooltip-container.pos-right {+ transform:+ translateY(-50%)+ translateX(0);+++}++/* TRIANGLE */++.tooltip-container.pos-right::before {+ content: "";+ position: absolute;++ left: -6px;+ top: 50%;++ transform: translateY(-50%);++ width: 0;+ height: 0;++ border-top: 6px solid transparent;+ border-bottom: 6px solid transparent;+ border-right: 6px solid var(--color-bg-primary);+}diff --git a/freemocap/__main__.py b/freemocap/__main__.pyindex 52cbdc0a..44457dcf 100644--- a/freemocap/__main__.py+++ b/freemocap/__main__.py@@ -105,7 +105,7 @@ async def main(force_preferred_port:bool=True) -> None:await await_1s()worker_registry.shutdown_all()- logger.success("Done! Thank you for using FreeMoCap 💀✨")+ logger.success("Done! Thank you for using FreeMocap")def run_main() -> None:asyncio.run(main())diff --git a/freemocap/core/pipeline/posthoc/video_node.py b/freemocap/core/pipeline/posthoc/video_node.pyindex 6fcf60ef..89f7b0c1 100644--- a/freemocap/core/pipeline/posthoc/video_node.py+++ b/freemocap/core/pipeline/posthoc/video_node.py@@ -200,10 +200,21 @@ class VideoNode(SourceNode):fps = video_reader.get(cv2.CAP_PROP_FPS)width = int(video_reader.get(cv2.CAP_PROP_FRAME_WIDTH))height = int(video_reader.get(cv2.CAP_PROP_FRAME_HEIGHT))- fourcc = cv2.VideoWriter_fourcc(*"mp4v")+ # Prefer H.264 ("avc1") so annotated videos play directly in browsers/Electron's+ # <video> element. Fall back to "mp4v" if the local OpenCV/ffmpeg build lacks an+ # H.264 encoder — playable in desktop players but not in <video> tags.video_writer = cv2.VideoWriter(- str(annotated_output_path), fourcc, fps, (width, height)+ str(annotated_output_path), cv2.VideoWriter_fourcc(*"avc1"), fps, (width, height))+ if not video_writer.isOpened():+ video_writer.release()+ logger.warning(+ f"H.264 ('avc1') encoder unavailable for {video_path.stem} — "+ f"falling back to 'mp4v' (annotated video will not play in browser <video> tags)"+ )+ video_writer = cv2.VideoWriter(+ str(annotated_output_path), cv2.VideoWriter_fourcc(*"mp4v"), fps, (width, height)+ )if not video_writer.isOpened():raise RuntimeError(f"Failed to create video writer for: {annotated_output_path}"diff --git a/freemocap/core/pipeline/realtime/realtime_skeleton_inference_node.py b/freemocap/core/pipeline/realtime/realtime_skeleton_inference_node.pyindex 0b8fceca..3a90bf9d 100644--- a/freemocap/core/pipeline/realtime/realtime_skeleton_inference_node.py+++ b/freemocap/core/pipeline/realtime/realtime_skeleton_inference_node.py@@ -221,8 +221,15 @@ class RealtimeSkeletonInferenceNode(SourceNode):timer.record("frame_read", (time.perf_counter() - t_read) * 1e3)if not images:- # Ring buffer didn't have the frame for any camera; skip.- continue+ # Ring buffer didn't have the frame for any camera (e.g.+ # overwritten during slow init). Publish a null result so the+ # aggregator doesn't hang waiting for a result that never comes.+ skeleton_result_pub.put(+ SkeletonInferenceResultMessage(+ frame_number=requested_frame_number,+ per_camera_skeleton={cam_id: None for cam_id in camera_ids},+ ),+ )# ---- Batched skeleton inference ----t_inf = time.perf_counter() if timer is not None else 0.0diff --git a/package-lock.json b/package-lock.jsonnew file mode 100644index 00000000..a438bfc7--- /dev/null+++ b/package-lock.json@@ -0,0 +1,6 @@+{+ "name": "freemocap",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {}+}