Skip to content

Free Motion Capture for Everyone 💀✨

TypeScript

chkpt

jonmatthis8aa82a7ba70a
diff --git a/MULTI_SOCKET_REFACTOR.md b/MULTI_SOCKET_REFACTOR.md
deleted file mode 100644
index f8d19bb7..00000000
--- a/MULTI_SOCKET_REFACTOR.md
+++ /dev/null
@@ -1,137 +0,0 @@
-# Multi-Socket WebSocket Refactor
-
-## Overview
-
-Splitting the single WebSocket connection into three specialized sockets for better separation of concerns, independent backpressure handling, and cleaner architecture.
-
----
-
-## ✅ Completed
-
-### Backend (`freemocap/api/websocket/`)
-
-| File | Description | Status |
-|------|-------------|--------|
-| `message_types.py` | `StrEnum` for FrameMessageType, LogsMessageType, StateMessageType | ✅ Complete |
-| `base_handler.py` | Pydantic `BaseModel` abstract class with connection lifecycle, message routing, heartbeat | ✅ Complete |
-| `frame_handler.py` | Frame streaming with backpressure, overlay JSON, tracked points | ✅ Complete |
-| `logs_handler.py` | Log record streaming from queue | ✅ Complete |
-| `state_handler.py` | Settings sync, framerate updates, patch handling | ✅ Complete |
-| `routes.py` | FastAPI router with `/ws/frame`, `/ws/logs`, `/ws/state` endpoints | ✅ Complete |
-| `__init__.py` | Module exports | ✅ Complete |
-| `app.py` | Router registration updated | ✅ Complete |
-
-### Frontend (`freemocap-ui/src/services/server/`)
-
-| File | Description | Status |
-|------|-------------|--------|
-| `message-types.ts` | TypeScript enums for message types, ConnectionStatus | ✅ Complete |
-| `BaseWebSocketConnection.ts` | Reusable WebSocket class with reconnection, heartbeat, message routing | ✅ Complete |
-| `ServerContextProvider.tsx` | Consolidated provider managing 3 sockets internally | ✅ Complete |
-| `index.ts` | Module exports | ✅ Complete |
-
-### Integration Updates
-
-| File | Description | Status |
-|------|-------------|--------|
-| `freemocap-ui/src/hooks/server-urls.ts` | Added new WebSocket URL methods with backward compat | ✅ Complete |
-| `freemococap/tests/conftest.py` | Updated test fixtures for `/ws/state` | ✅ Complete |
-| `freemocap/tests/test_e2e_websocket_settings_sync.py` | Updated all E2E tests for `/ws/state` | ✅ Complete |
-| `freemocap/api/http/app/debug.py` | Updated debug page to use `/ws/state` | ✅ Complete |
-
----
-
-## 🔜 Remaining
-
-### Backend
-
-1. **Test the handlers** - Run pytest to verify the new handlers work correctly
- ```bash
- cd freemocap && pytest freemocap/tests/test_e2e_websocket_settings_sync.py -v
- ```
-
-2. **Decision: Keep or deprecate old `websocket_server.py`**
- - OLD: `/websocket/connect` (single socket, 300+ lines)
- - NEW: `/ws/frame`, `/ws/logs`, `/ws/state` (3 sockets, ~100 lines each)
- - Recommendation: Keep old as fallback during transition, remove in future release
-
-### Frontend
-
-3. **Test the new UI components** - Verify ServerContextProvider works with real backend
-4. **Run type checking** - `cd freemocap-ui && npm run typecheck`
-5. **Test backpressure** - Verify frame acknowledgment under load
-
-### Integration
-
-6. **Full E2E smoke test** - Start server, connect UI, verify all 3 sockets
-7. **Performance test** - High frame rate, many cameras, verify no blocking
-
----
-
-## Architecture
-
-```
-Backend Frontend
-┌─────────────────┐ ┌─────────────────┐
-│ /ws/frame │──────────────│ Frame Socket │
-│ - binary frames │ │ - CanvasManager │
-│ - overlays │ │ - OverlayMgr │
-│ - tracked pts │ │ - Subscribers │
-└─────────────────┘ └─────────────────┘
-
-┌─────────────────┐ ┌─────────────────┐
-│ /ws/logs │──────────────│ Logs Socket │
-│ - log records │ │ - Redux dispatch│
-└─────────────────┘ └─────────────────┘
-
-┌─────────────────┐ ┌─────────────────┐
-│ /ws/state │──────────────│ State Socket │
-│ - settings │ │ - Redux dispatch│
-│ - framerate │ │ - Patch sending │
-└─────────────────┘ └─────────────────┘
- ┌─────────────────┐
- │ ServerContext │
- │ - Unified API │
- │ - Health status │
- └─────────────────┘
-```
-
----
-
-## Key Benefits
-
-- **Independent backpressure** - Frame throttling doesn't block logs/state
-- **Separate connection states** - Granular status display
-- **Smaller modules** - ~100-200 lines each vs 361-line god object
-- **Type-safe routing** - Enums prevent string typos
-- **Easier testing** - Test each socket independently
-
----
-
-## Migration Notes
-
-### Endpoint Changes
-
-| Old | New |
-|-----|-----|
-| `/websocket/connect` | `/ws/frame`, `/ws/logs`, `/ws/state` |
-
-### Frontend URL Methods
-
-| Old (deprecated) | New |
-|------------------|-----|
-| `getWebSocketUrl()` | `getFrameSocketUrl()` |
-| | `getLogsSocketUrl()` |
-| | `getStateSocketUrl()` |
-| `endpoints.websocket` | `endpoints.websocketFrame` |
-| | `endpoints.websocketLogs` |
-| | `endpoints.websocketState` |
-
-### Message Types (unchanged)
-
-- `frameAcknowledgment` → Frame socket
-- `charuco_overlay`, `mediapipe_overlay` → Frame socket
-- `tracked_points3d`, `rigid_body_poses` → Frame socket
-- `log_record` → Logs socket
-- `settings/state`, `settings/patch`, `settings/request` → State socket
-- `framerate_update` → State socket
diff --git a/freemocap-ui-old/electron/main/services/menu-builder.ts b/freemocap-ui-old/electron/main/services/menu-builder.ts
index 97745687..2e4aefc2 100644
--- a/freemocap-ui-old/electron/main/services/menu-builder.ts
+++ b/freemocap-ui-old/electron/main/services/menu-builder.ts
@@ -80,7 +80,7 @@ const DEFAULT_LABELS: MenuLabels = {
menuDocumentation: 'Documentation',
menuGitHubRepository: 'GitHub Repository',
menuReportIssue: 'Report an Issue…',
- menuAbout: 'About SkellyCam',
+ menuAbout: 'About FreeMoCap',
menuCheckForUpdates: 'Check for Updates…',
menuPlayback: 'Playback',
home: 'Home',
diff --git a/freemocap-ui-old/src/components/ui-components/Header.tsx b/freemocap-ui-old/src/components/ui-components/Header.tsx
index bd443e8c..364389da 100644
--- a/freemocap-ui-old/src/components/ui-components/Header.tsx
+++ b/freemocap-ui-old/src/components/ui-components/Header.tsx
@@ -21,7 +21,7 @@ export const Header = function () {
>
<Toolbar>
<Typography variant="h6" color="inherit" sx={{flexGrow: 1}}>
- FreeMoCap 💀📸
+ FreeMoCap 💀✨
</Typography>
<Box sx={{display: 'flex', alignItems: 'center', gap: 1}}>
<ThemeToggle/>
diff --git a/freemocap-ui-old/src/components/ui-components/LeftSidePanelContent.tsx b/freemocap-ui-old/src/components/ui-components/LeftSidePanelContent.tsx
index 8cb8ec8d..78de7c17 100644
--- a/freemocap-ui-old/src/components/ui-components/LeftSidePanelContent.tsx
+++ b/freemocap-ui-old/src/components/ui-components/LeftSidePanelContent.tsx
@@ -183,7 +183,7 @@ export const LeftSidePanelContent = () => {
color: theme.palette.text.primary,
}}
>
- FreeMoCap 💀📸
+ FreeMoCap 💀✨
</Box>
<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.25 }}>
diff --git a/freemocap-ui-old/src/hooks/useElectronApi.ts b/freemocap-ui-old/src/hooks/useElectronApi.ts
index 97456743..21b7d196 100644
--- a/freemocap-ui-old/src/hooks/useElectronApi.ts
+++ b/freemocap-ui-old/src/hooks/useElectronApi.ts
@@ -1,7 +1,7 @@
// src/hooks/useElectronAPI.ts
import {useEffect, useMemo, useState} from 'react';
import {electronIpcClient, isElectron} from "@/services";
-import {serverUrls} from "@/hooks/server-urls";
+import {serverUrls} from "../../../freemocap-ui/src/hooks/server-urls";
interface UseElectronAPIReturn {
isElectron: boolean;
@@ -122,4 +122,4 @@ export function useElectronAPI(): UseElectronAPIReturn {
};
}
-export const electronAPI = isElectron() ? electronIpcClient : null;
\ No newline at end of file
+export const electronAPI = isElectron() ? electronIpcClient : null;
diff --git a/freemocap-ui-old/src/i18n/locales/am-amharic.json b/freemocap-ui-old/src/i18n/locales/am-amharic.json
index 3d0cc3a0..421ce170 100644
--- a/freemocap-ui-old/src/i18n/locales/am-amharic.json
+++ b/freemocap-ui-old/src/i18n/locales/am-amharic.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "እንኳን ወደ SkellyCam በደህና መጡ",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "እንኳን ወደ FreeMoCap በደህና መጡ",
"welcomeSubtitle": "የተመሳሰሉ ቪዲዮዎችን ይቅረጹ እና ይመልከቱ",
"sendAnonymousPings": "ስም-አልባ የአጠቃቀም ፒንጎችን ላክ",
"footerWith": "ከ",
@@ -211,7 +211,7 @@
"statsStdDevLong": "ስታንዳርድ ዲቪየሽን በፍሬም ጊዜዎች ውስጥ ያለውን የለውጥ መጠን ይለካል። ዝቅተኛ ዋጋዎች የበለጠ ወጥ የሆነ አፈጻጸምን ያመለክታሉ። የለውጥ ኮኤፊሸንት (CV%) ይህንን ተለዋዋጭነት ከአማካዩ በመቶኛ ይገልጻል፣ ይህም በተለያዩ የፍሬም ፍጥነቶች ላይ ያለውን ጥንካሬ ማወዳደር ቀላል ያደርገዋል። ዝቅተኛ CV% የበለጠ ጠንካራ አፈጻጸምን ያመለክታል።",
"aiTranslatedTooltip": "ይህ ትርጉም በ AI ተፈጥሯል እና ስህተቶች ሊኖሩት ይችላሉ። ይህን ቋንቋ ከተናገሩ፣ በ GitHub ላይ pull request በመክፈት ለማሻሻል ሊረዱ ይችላሉ!",
"humanValidatedTooltip": "ይህ ትርጉም በሰው ተርጓሚ ተገምግሞ ተረጋግጧል።",
- "helpTranslate": "SkellyCam ን ለመተርጎም ይረዱ",
+ "helpTranslate": "FreeMoCap ን ለመተርጎም ይረዱ",
"failedToFetch": "ማምጣት አልተሳካም",
"recordings": "ቀረጻዎች",
"noRecordingsFound": "ምንም ቀረጻዎች አልተገኙም። በእጅ ለመጫን ከላይ ዱካ ያስገቡ።",
@@ -239,7 +239,7 @@
"menuDocumentation": "ሰነድ",
"menuGitHubRepository": "የGitHub ማከማቻ",
"menuReportIssue": "ችግር ሪፖርት አድርግ…",
- "menuAbout": "ስለ SkellyCam",
+ "menuAbout": "ስለ FreeMoCap",
"menuPlayback": "ማጫወት",
"videoPlayback": "ማጫወት",
"copyLogsToClipboard": "ሎግ ወደ ቅንጥብ ሰሌዳ ቅዳ",
diff --git a/freemocap-ui-old/src/i18n/locales/ar-arabic.json b/freemocap-ui-old/src/i18n/locales/ar-arabic.json
index 4bf6c5f0..208c399d 100644
--- a/freemocap-ui-old/src/i18n/locales/ar-arabic.json
+++ b/freemocap-ui-old/src/i18n/locales/ar-arabic.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-22"
},
- "appName": "SkellyCam",
- "appNameDecorated": "📸💀 SkellyCam",
- "welcomeTitle": "SkellyCam أهلاً بك في",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "📸💀 FreeMoCap",
+ "welcomeTitle": "FreeMoCap أهلاً بك في",
"welcomeSubtitle": "سجّل وشاهد مقاطع فيديو متزامنة",
"sendAnonymousPings": "إرسال بيانات استخدام مجهولة",
"footerWith": "بـ",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "يعرض الإطارات المستلمة على الشاشة.",
"displayTooltipLong": "يمثل العرض أداء تصيير واجهة المستخدم. يوضح مدى سرعة استقبال شاشتك وتصيير الإطارات. مشاكل الأداء هنا لن تؤثر على جودة التسجيل لكنها قد تؤثر على قدرتك على مراقبة الكاميرات في الوقت الفعلي.",
"statsSourceShort": "العرض يقدم الإطارات، الخادم يلتقط الإطارات.",
- "statsSourceLong": "الخادم هو المعدل الحقيقي الذي يتم فيه سحب/تسجيل الإطارات من الكاميرا، بينما العرض هو معدل استقبالها وتصييرها. يعطي SkellyCam الأولوية لأداء جانب الخادم لضمان جودة التسجيل، لذا يجب أن يبقى هذا الرقم أكثر استقرارًا. إذا انحرف معدل إطارات العرض عن الخادم، فهذا يشير إلى أن موارد نظامك مُجهدة. فكر في استخدام عدد أقل من الكاميرات أو تقليل معدل الإطارات/الدقة.",
+ "statsSourceLong": "الخادم هو المعدل الحقيقي الذي يتم فيه سحب/تسجيل الإطارات من الكاميرا، بينما العرض هو معدل استقبالها وتصييرها. يعطي FreeMoCap الأولوية لأداء جانب الخادم لضمان جودة التسجيل، لذا يجب أن يبقى هذا الرقم أكثر استقرارًا. إذا انحرف معدل إطارات العرض عن الخادم، فهذا يشير إلى أن موارد نظامك مُجهدة. فكر في استخدام عدد أقل من الكاميرات أو تقليل معدل الإطارات/الدقة.",
"statsCurrentShort": "أحدث وقت إطار و FPS المقابل.",
"statsCurrentLong": "يعرض هذا أحدث قياس لمدة معالجة إطار واحد (بالمللي ثانية) وما يعادله من إطارات في الثانية (FPS). أوقات إطارات أقل ومعدل FPS أعلى يشيران إلى أداء أفضل.",
"statsMinShort": "أسرع وقت إطار (أقل تأخير) وأعلى FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "يقيس الانحراف المعياري مقدار التباين في أوقات الإطارات. القيم الأقل تشير إلى أداء أكثر اتساقًا. يعبر معامل التباين (CV%) عن هذا التباين كنسبة مئوية من المتوسط، مما يسهل مقارنة الاستقرار عبر معدلات إطارات مختلفة. نسبة CV% أقل تشير إلى أداء أكثر استقرارًا.",
"aiTranslatedTooltip": "هذه الترجمة تم إنشاؤها بواسطة الذكاء الاصطناعي وقد تحتوي على أخطاء. إذا كنت تتحدث هذه اللغة، يمكنك المساعدة في تحسينها عبر فتح pull request على GitHub!",
"humanValidatedTooltip": "تمت مراجعة هذه الترجمة والتحقق منها بواسطة مترجم بشري.",
- "helpTranslate": "ساعد في ترجمة SkellyCam",
+ "helpTranslate": "ساعد في ترجمة FreeMoCap",
"failedToFetch": "فشل في الجلب",
"recordings": "التسجيلات",
"noRecordingsFound": "لم يتم العثور على تسجيلات. أدخل مسارًا أعلاه للتحميل يدويًا.",
@@ -239,7 +239,7 @@
"menuDocumentation": "التوثيق",
"menuGitHubRepository": "مستودع GitHub",
"menuReportIssue": "الإبلاغ عن مشكلة…",
- "menuAbout": "حول SkellyCam",
+ "menuAbout": "حول FreeMoCap",
"menuPlayback": "تشغيل",
"videoPlayback": "التشغيل",
"copyLogsToClipboard": "نسخ السجلات إلى الحافظة",
diff --git a/freemocap-ui-old/src/i18n/locales/bn-bangla.json b/freemocap-ui-old/src/i18n/locales/bn-bangla.json
index 9619a33e..43519830 100644
--- a/freemocap-ui-old/src/i18n/locales/bn-bangla.json
+++ b/freemocap-ui-old/src/i18n/locales/bn-bangla.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "SkellyCam-এ স্বাগতম",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "FreeMoCap-এ স্বাগতম",
"welcomeSubtitle": "সিঙ্ক্রোনাইজড ভিডিও রেকর্ড ও দেখুন",
"sendAnonymousPings": "বেনামী ব্যবহার ডেটা পাঠান",
"footerWith": "সাথে",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "স্ক্রিনে প্রাপ্ত ফ্রেম রেন্ডার করে।",
"displayTooltipLong": "ডিসপ্লে UI রেন্ডারিং কর্মক্ষমতা প্রতিনিধিত্ব করে। এটি দেখায় আপনার ডিসপ্লে কত দ্রুত ফ্রেম গ্রহণ করে এবং রেন্ডার করে। এখানে কর্মক্ষমতা সমস্যা রেকর্ডিং মানকে প্রভাবিত করবে না তবে রিয়েল-টাইমে ক্যামেরা পর্যবেক্ষণ করার আপনার ক্ষমতাকে প্রভাবিত করতে পারে।",
"statsSourceShort": "ডিসপ্লে ফ্রেম রেন্ডার করে, সার্ভার ফ্রেম ক্যাপচার করে।",
- "statsSourceLong": "সার্ভার হল ক্যামেরা থেকে ফ্রেম টানা/রেকর্ড করার প্রকৃত হার, যেখানে ডিসপ্লে হল সেগুলি গ্রহণ ও রেন্ডার করার হার। SkellyCam রেকর্ডিং মানের জন্য সার্ভার-সাইড কর্মক্ষমতাকে অগ্রাধিকার দেয়, তাই সেই সংখ্যাটি আরও স্থিতিশীল থাকা উচিত। যদি ডিসপ্লে ফ্রেমরেট সার্ভার থেকে বিচ্যুত হয়, তাহলে এটি নির্দেশ করে যে আপনার সিস্টেম রিসোর্স চাপে আছে। কম ক্যামেরা ব্যবহার করুন বা ফ্রেমরেট/রেজোলিউশন কমানোর কথা বিবেচনা করুন।",
+ "statsSourceLong": "সার্ভার হল ক্যামেরা থেকে ফ্রেম টানা/রেকর্ড করার প্রকৃত হার, যেখানে ডিসপ্লে হল সেগুলি গ্রহণ ও রেন্ডার করার হার। FreeMoCap রেকর্ডিং মানের জন্য সার্ভার-সাইড কর্মক্ষমতাকে অগ্রাধিকার দেয়, তাই সেই সংখ্যাটি আরও স্থিতিশীল থাকা উচিত। যদি ডিসপ্লে ফ্রেমরেট সার্ভার থেকে বিচ্যুত হয়, তাহলে এটি নির্দেশ করে যে আপনার সিস্টেম রিসোর্স চাপে আছে। কম ক্যামেরা ব্যবহার করুন বা ফ্রেমরেট/রেজোলিউশন কমানোর কথা বিবেচনা করুন।",
"statsCurrentShort": "সাম্প্রতিক ফ্রেম সময় এবং FPS।",
"statsCurrentLong": "এটি একটি একক ফ্রেম প্রক্রিয়াকরণে কত সময় লাগে (মিলিসেকেন্ডে) এবং সমতুল্য প্রতি সেকেন্ডে ফ্রেম (FPS) এর সাম্প্রতিকতম পরিমাপ দেখায়। কম ফ্রেম সময় এবং উচ্চ FPS ভাল কর্মক্ষমতা নির্দেশ করে।",
"statsMinShort": "দ্রুততম ফ্রেম সময় এবং সর্বোচ্চ FPS।",
@@ -211,7 +211,7 @@
"statsStdDevLong": "স্ট্যান্ডার্ড ডেভিয়েশন ফ্রেম সময়ের প্রকরণের পরিমাণ পরিমাপ করে। কম মান আরও সামঞ্জস্যপূর্ণ কর্মক্ষমতা নির্দেশ করে। ভেরিয়েশনের সহগ (CV%) এই পরিবর্তনশীলতাকে গড়ের শতাংশ হিসাবে প্রকাশ করে, বিভিন্ন ফ্রেম রেট জুড়ে স্থিতিশীলতা তুলনা করা সহজ করে। কম CV% আরও স্থিতিশীল কর্মক্ষমতা নির্দেশ করে।",
"aiTranslatedTooltip": "এই অনুবাদটি AI দ্বারা তৈরি এবং ত্রুটি থাকতে পারে। আপনি এই ভাষায় কথা বললে উন্নতিতে সাহায্য করুন!",
"humanValidatedTooltip": "এই অনুবাদটি একজন মানব অনুবাদক দ্বারা পর্যালোচনা করা হয়েছে।",
- "helpTranslate": "SkellyCam অনুবাদে সাহায্য করুন",
+ "helpTranslate": "FreeMoCap অনুবাদে সাহায্য করুন",
"failedToFetch": "ডেটা আনতে ব্যর্থ",
"recordings": "রেকর্ডিং",
"noRecordingsFound": "কোনো রেকর্ডিং পাওয়া যায়নি। ম্যানুয়ালি লোড করতে উপরে একটি পাথ লিখুন।",
@@ -239,7 +239,7 @@
"menuDocumentation": "ডকুমেন্টেশন",
"menuGitHubRepository": "GitHub রিপোজিটরি",
"menuReportIssue": "সমস্যা রিপোর্ট করুন…",
- "menuAbout": "SkellyCam সম্পর্কে",
+ "menuAbout": "FreeMoCap সম্পর্কে",
"menuPlayback": "প্লেব্যাক",
"videoPlayback": "প্লেব্যাক",
"copyLogsToClipboard": "লগ ক্লিপবোর্ডে কপি করুন",
diff --git a/freemocap-ui-old/src/i18n/locales/ca-catala.json b/freemocap-ui-old/src/i18n/locales/ca-catala.json
index 8d78684a..a004937e 100644
--- a/freemocap-ui-old/src/i18n/locales/ca-catala.json
+++ b/freemocap-ui-old/src/i18n/locales/ca-catala.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Benvingut a SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Benvingut a FreeMoCap",
"welcomeSubtitle": "Enregistra i visualitza vídeos sincronitzats",
"sendAnonymousPings": "Envia pings d'ús anònims",
"footerWith": "amb",
@@ -211,7 +211,7 @@
"statsStdDevLong": "La desviació estàndard mesura la quantitat de variació en els temps de fotograma. Valors més baixos indiquen un rendiment més consistent. El coeficient de variació (CV%) expressa aquesta variabilitat com a percentatge de la mitjana, facilitant la comparació de l'estabilitat entre diferents taxes de fotogrames. Un CV% més baix indica un rendiment més estable.",
"aiTranslatedTooltip": "Aquesta traducció ha estat generada per IA i pot contenir errors. Si parleu aquest idioma, podeu ajudar a millorar-la obrint una pull request a GitHub!",
"humanValidatedTooltip": "Aquesta traducció ha estat revisada i validada per un traductor humà.",
- "helpTranslate": "Ajudeu a traduir SkellyCam",
+ "helpTranslate": "Ajudeu a traduir FreeMoCap",
"failedToFetch": "No s'ha pogut obtenir",
"recordings": "Enregistraments",
"noRecordingsFound": "No s'han trobat enregistraments. Introduïu un camí a dalt per carregar manualment.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Documentació",
"menuGitHubRepository": "Repositori GitHub",
"menuReportIssue": "Informar d'un problema…",
- "menuAbout": "Sobre SkellyCam",
+ "menuAbout": "Sobre FreeMoCap",
"menuPlayback": "Reproducció",
"videoPlayback": "Reproducció",
"copyLogsToClipboard": "Copiar registres al porta-retalls",
diff --git a/freemocap-ui-old/src/i18n/locales/chr-tsalagi.json b/freemocap-ui-old/src/i18n/locales/chr-tsalagi.json
index e797b13a..1fe92304 100644
--- a/freemocap-ui-old/src/i18n/locales/chr-tsalagi.json
+++ b/freemocap-ui-old/src/i18n/locales/chr-tsalagi.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-24"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "ᏙᎯᏱ SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "ᏙᎯᏱ FreeMoCap",
"welcomeSubtitle": "ᏗᏓᎴᏂᏍᎬ ᎠᎴ ᎠᎦᏎᏍᏗ ᎤᎾᎵᎪᏒ ᏗᏓᏴᎳᏛᏍᎩ",
"sendAnonymousPings": "ᎠᏓᏅᏖᏗ ᎦᎸᎳᏗ ᎪᏪᎵᏍᎩ ᏗᎧᏃᎩᏍᏗ",
"footerWith": "ᎬᏗ",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "ᏗᏓᏟᎶᏍᏔᏅ ᎠᎦᏎᏍᏗ.",
"displayTooltipLong": "ᎠᎦᏎᏍᏗ ᎤᏙᏢᏒ UI ᏗᏙᏪᎵᏍᎩ ᎠᎦᏎᏍᏗ. ᏓᏍᎪᎸᏓ ᎾᏍᎩ ᏚᏳᎪᏛ ᎢᎦᏛ ᏗᏓᏟᎶᏍᏔᏅ ᎤᏂᎷᏤ ᎠᎦᏎᏍᏗ. ᎠᏍᏓᏩᏛᏍᏗ ᎠᎴ ᏗᏓᏟᎶᏍᏔᏅ ᏄᎵᏍᏔᏅ ᎥᏝ ᏱᏓᏟᎶᏍᏔᏅ ᏗᎪᏪᎵ ᎤᏩᏒ ᏧᎵᎬᏩᏗᏒᎢ ᎠᏎᏃ ᎤᎵᏍᏕᎸᏗ ᎨᏒᎢ ᎤᏍᏗ ᏗᏓᏴᎳᏛᏍᎩ ᎠᎦᏎᏍᏗ ᏂᎦᏛ ᎢᎦᏛ.",
"statsSourceShort": "ᎠᎦᏎᏍᏗ ᏗᏓᏟᎶᏍᏔᏅ ᎠᎦᏎᏍᏗ, ᎠᏍᏆᎵᏍᎩ ᏗᏓᏟᎶᏍᏔᏅ ᎦᏂᏱᏍᎩ.",
- "statsSourceLong": "ᎠᏍᏆᎵᏍᎩ ᎨᏒᎢ ᏗᏓᏴᎳᏛᏍᎩ ᎤᏙᏢᏒ ᏗᏓᏟᎶᏍᏔᏅ ᎤᏂᎸᏉᏗ, ᎠᎦᏎᏍᏗ ᎨᏒᎢ ᎾᏍᎩ ᎤᏂᎷᏤ ᎠᎦᏎᏍᏗ ᎤᏂᎸᏉᏗ. SkellyCam ᏗᏓᎴᏂᏍᎬ ᎤᏙᏢᏒ ᎠᏍᏆᎵᏍᎩ ᎤᏙᏢᏒ ᏧᎵᎬᏩᏗᏒᎢ, ᎾᏍᎩ ᏗᏎᏍᏗ ᎤᏟ ᎤᏩᏒ ᎤᎵᏍᏕᎸᏗ. ᎠᎦᏎᏍᏗ FPS ᏓᏍᏓᏅᏅ ᎠᏍᏆᎵᏍᎩ, ᏄᎵᏍᏔᏅ ᎨᏒᎢ ᎢᏤ ᏗᏙᏪᎵᏍᎩ ᏚᎸᏫᏍᏓᏁᎲᎢ. ᎤᏍᏗ ᏗᏓᏴᎳᏛᏍᎩ ᏚᎸᏫᏍᏓᏁᎯ ᎠᎴ ᎤᏍᏗ FPS/ᏗᏙᏪᎵᏍᎩ ᎠᏍᏓᏅᏅᎢ.",
+ "statsSourceLong": "ᎠᏍᏆᎵᏍᎩ ᎨᏒᎢ ᏗᏓᏴᎳᏛᏍᎩ ᎤᏙᏢᏒ ᏗᏓᏟᎶᏍᏔᏅ ᎤᏂᎸᏉᏗ, ᎠᎦᏎᏍᏗ ᎨᏒᎢ ᎾᏍᎩ ᎤᏂᎷᏤ ᎠᎦᏎᏍᏗ ᎤᏂᎸᏉᏗ. FreeMoCap ᏗᏓᎴᏂᏍᎬ ᎤᏙᏢᏒ ᎠᏍᏆᎵᏍᎩ ᎤᏙᏢᏒ ᏧᎵᎬᏩᏗᏒᎢ, ᎾᏍᎩ ᏗᏎᏍᏗ ᎤᏟ ᎤᏩᏒ ᎤᎵᏍᏕᎸᏗ. ᎠᎦᏎᏍᏗ FPS ᏓᏍᏓᏅᏅ ᎠᏍᏆᎵᏍᎩ, ᏄᎵᏍᏔᏅ ᎨᏒᎢ ᎢᏤ ᏗᏙᏪᎵᏍᎩ ᏚᎸᏫᏍᏓᏁᎲᎢ. ᎤᏍᏗ ᏗᏓᏴᎳᏛᏍᎩ ᏚᎸᏫᏍᏓᏁᎯ ᎠᎴ ᎤᏍᏗ FPS/ᏗᏙᏪᎵᏍᎩ ᎠᏍᏓᏅᏅᎢ.",
"statsCurrentShort": "ᎪᎯ ᏗᏓᏟᎶᏍᏔᏅ ᎢᎦᏛ ᎠᎴ FPS.",
"statsCurrentLong": "ᎯᎠ ᏓᏍᎪᎸᏓ ᏗᏓᏟᎶᏍᏔᏅ ᎢᎦᏛ ᏗᏙᏪᎵᏍᎩ ᏌᏊ ᏓᏟᎶᏍᏔᏅ (ᏗᎳᏏᏔᏛ) ᎠᎴ FPS. ᎤᏍᏗ ᏗᏓᏟᎶᏍᏔᏅ ᎢᎦᏛ ᎠᎴ ᎤᏔᎾ FPS ᎤᏙᏢᏒ ᎣᏍᏛ ᏗᏙᏪᎵᏍᎩ ᎠᎦᏎᏍᏗ.",
"statsMinShort": "ᎤᏓᏂᎳᏅ ᏗᏓᏟᎶᏍᏔᏅ ᎢᎦᏛ ᎠᎴ ᎤᏔᎾ FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "ᎤᏓᎴᎾ ᏗᏙᏪᎵᏍᎩ ᏗᏓᏟᎶᏍᏔᏅ ᎢᎦᏛ ᎤᏓᎴᎾ ᏗᏍᏓᏩᏛᏍᏗ. ᎤᏍᏗ ᏗᏙᏪᎵᏍᎩ ᎤᏟ ᎤᏩᏒ ᎤᎵᏍᏕᎸᏗ ᎠᎦᏎᏍᏗ. CV% ᏄᎵᏍᏔᏅ ᎠᏰᎵ ᏗᏓᎴᎾ ᏗᏙᏪᎵᏍᎩ ᏚᎸᏫᏍᏓᏁᎲᎢ, ᎤᏍᏗ CV% ᎤᏟ ᎤᏩᏒ ᏗᏙᏪᎵᏍᎩ ᎠᎦᏎᏍᏗ.",
"aiTranslatedTooltip": "ᎯᎠ ᎠᏁᏢᏔᏅ AI ᎬᏗ ᎢᎬᏁᏗ ᎠᎴ ᏗᏍᎪᎵᏴᏓ ᎪᎱᏍᏗ. ᎯᎠ ᎦᏬᏂᎯᏍᏗ ᎨᏒ, ᎢᏍᏓᏍᏗ ᎢᎩᏍᏗᏱ GitHub!",
"humanValidatedTooltip": "ᎯᎠ ᎠᏁᏢᏔᏅ ᏴᏫ ᎠᏁᏢᏔᏅᎩ ᎤᏙᏪᎸᎢ.",
- "helpTranslate": "ᎢᏍᏓᏍᏗ SkellyCam ᎠᏁᏢᏔᏅ",
+ "helpTranslate": "ᎢᏍᏓᏍᏗ FreeMoCap ᎠᏁᏢᏔᏅ",
"failedToFetch": "ᎥᏝ ᎬᏩᎵᏓ ᎠᏫᏒᏗ",
"recordings": "ᏗᏓᎴᏂᏍᎬ",
"noRecordingsFound": "ᎥᏝ ᏗᏓᎴᏂᏍᎬ ᎤᏩᏌᏊ. ᏅᏃᎯ ᏂᏓᏳᎵᏍᏔᏂ ᎠᏫᏒᏗ.",
@@ -239,7 +239,7 @@
"menuDocumentation": "ᏗᎪᏪᎵ",
"menuGitHubRepository": "GitHub ᏗᎫᏓᎸᏗ",
"menuReportIssue": "ᏗᏍᎪᎵᏴᏓ ᎧᏃᎮᏛ…",
- "menuAbout": "ᏂᏛᏰᏍᎬ SkellyCam",
+ "menuAbout": "ᏂᏛᏰᏍᎬ FreeMoCap",
"menuPlayback": "ᎠᏔᎷᎩᏍᏗ",
"videoPlayback": "ᎠᏔᎷᎩᏍᏗ",
"copyLogsToClipboard": "ᏗᎧᏃᎩᏍᏗ ᎠᏂᎩᏍᏗ",
diff --git a/freemocap-ui-old/src/i18n/locales/cs-cestina.json b/freemocap-ui-old/src/i18n/locales/cs-cestina.json
index bba63684..39e617cb 100644
--- a/freemocap-ui-old/src/i18n/locales/cs-cestina.json
+++ b/freemocap-ui-old/src/i18n/locales/cs-cestina.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Vítejte v SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Vítejte v FreeMoCap",
"welcomeSubtitle": "Nahrávejte a prohlížejte synchronizovaná videa",
"sendAnonymousPings": "Odesílat anonymní data o využití",
"footerWith": "s",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Vykresluje přijaté snímky na obrazovce.",
"displayTooltipLong": "Zobrazení představuje výkon vykreslování uživatelského rozhraní. Ukazuje, jak rychle váš displej přijímá a vykresluje snímky. Problémy s výkonem zde neovlivní kvalitu záznamu, ale mohou ovlivnit vaši schopnost sledovat kamery v reálném čase.",
"statsSourceShort": "Displej vykresluje snímky, server je snímá.",
- "statsSourceLong": "Server je skutečná rychlost, kterou jsou snímky stahovány/zaznamenávány z kamery, zatímco zobrazení je rychlost, kterou jsou přijímány a vykreslovány. SkellyCam upřednostňuje výkon na straně serveru pro kvalitu záznamu, takže toto číslo by mělo zůstat stabilnější. Pokud se snímková frekvence zobrazení liší od serveru, znamená to, že systémové zdroje jsou přetíženy. Zvažte použití méně kamer nebo snížení snímkové frekvence/rozlišení.",
+ "statsSourceLong": "Server je skutečná rychlost, kterou jsou snímky stahovány/zaznamenávány z kamery, zatímco zobrazení je rychlost, kterou jsou přijímány a vykreslovány. FreeMoCap upřednostňuje výkon na straně serveru pro kvalitu záznamu, takže toto číslo by mělo zůstat stabilnější. Pokud se snímková frekvence zobrazení liší od serveru, znamená to, že systémové zdroje jsou přetíženy. Zvažte použití méně kamer nebo snížení snímkové frekvence/rozlišení.",
"statsCurrentShort": "Nejnovější čas snímku a FPS.",
"statsCurrentLong": "Zobrazuje nejnovější měření doby zpracování jednoho snímku (v milisekundách) a odpovídající počet snímků za sekundu (FPS). Nižší časy snímků a vyšší FPS značí lepší výkon.",
"statsMinShort": "Nejrychlejší čas snímku a nejvyšší FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Směrodatná odchylka měří míru rozptylu v časech snímků. Nižší hodnoty značí konzistentnější výkon. Koeficient variace (CV%) vyjadřuje tuto proměnlivost jako procento průměru, což usnadňuje porovnání stability napříč různými snímkovými frekvencemi. Nižší CV% značí stabilnější výkon.",
"aiTranslatedTooltip": "Tento překlad byl vytvořen umělou inteligencí a může obsahovat chyby. Pokud mluvíte tímto jazykem, pomozte nám jej vylepšit!",
"humanValidatedTooltip": "Tento překlad byl ověřen lidským překladatelem.",
- "helpTranslate": "Pomozte přeložit SkellyCam",
+ "helpTranslate": "Pomozte přeložit FreeMoCap",
"failedToFetch": "Nepodařilo se načíst",
"recordings": "Nahrávky",
"noRecordingsFound": "Nebyly nalezeny žádné nahrávky. Zadejte cestu výše pro ruční načtení.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Dokumentace",
"menuGitHubRepository": "GitHub repozitář",
"menuReportIssue": "Nahlásit problém…",
- "menuAbout": "O aplikaci SkellyCam",
+ "menuAbout": "O aplikaci FreeMoCap",
"menuPlayback": "Přehrávání",
"videoPlayback": "Přehrávání",
"copyLogsToClipboard": "Kopírovat logy do schránky",
diff --git a/freemocap-ui-old/src/i18n/locales/de-deutsch.json b/freemocap-ui-old/src/i18n/locales/de-deutsch.json
index bbe0b195..919a5c3a 100644
--- a/freemocap-ui-old/src/i18n/locales/de-deutsch.json
+++ b/freemocap-ui-old/src/i18n/locales/de-deutsch.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Willkommen bei SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Willkommen bei FreeMoCap",
"welcomeSubtitle": "Synchronisierte Videos aufnehmen und ansehen",
"sendAnonymousPings": "Anonyme Nutzungsdaten senden",
"footerWith": "mit",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Zeigt empfangene Bilder auf dem Bildschirm an.",
"displayTooltipLong": "Die Anzeige stellt die UI-Rendering-Leistung dar. Sie zeigt, wie schnell Ihr Display Frames empfängt und rendert. Leistungsprobleme hier beeinträchtigen nicht die Aufnahmequalität, können aber Ihre Fähigkeit beeinflussen, Kameras in Echtzeit zu überwachen.",
"statsSourceShort": "Anzeige rendert Bilder, Server erfasst Bilder.",
- "statsSourceLong": "Der Server ist die tatsächliche Rate, mit der Frames von der Kamera gezogen/aufgezeichnet werden, während die Anzeige die Rate ist, mit der sie empfangen und gerendert werden. SkellyCam priorisiert die serverseitige Leistung für die Aufnahmequalität, daher sollte diese Zahl stabiler bleiben. Wenn die Anzeige-Framerate vom Server abweicht, deutet das darauf hin, dass Ihre Systemressourcen ausgelastet sind. Erwägen Sie, weniger Kameras zu verwenden oder Framerate/Auflösung zu verringern.",
+ "statsSourceLong": "Der Server ist die tatsächliche Rate, mit der Frames von der Kamera gezogen/aufgezeichnet werden, während die Anzeige die Rate ist, mit der sie empfangen und gerendert werden. FreeMoCap priorisiert die serverseitige Leistung für die Aufnahmequalität, daher sollte diese Zahl stabiler bleiben. Wenn die Anzeige-Framerate vom Server abweicht, deutet das darauf hin, dass Ihre Systemressourcen ausgelastet sind. Erwägen Sie, weniger Kameras zu verwenden oder Framerate/Auflösung zu verringern.",
"statsCurrentShort": "Aktuellste Bildzeit und FPS.",
"statsCurrentLong": "Zeigt die neueste Messung der Verarbeitungszeit eines Einzelbilds (in Millisekunden) und die entsprechenden Frames pro Sekunde (FPS). Niedrigere Frame-Zeiten und höhere FPS weisen auf bessere Leistung hin.",
"statsMinShort": "Schnellste Bildzeit und höchste FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Die Standardabweichung misst die Streuung der Bildzeiten. Niedrigere Werte weisen auf konsistentere Leistung hin. Der Variationskoeffizient (CV%) drückt diese Variabilität als Prozentsatz des Mittelwerts aus, was den Vergleich der Stabilität über verschiedene Bildraten hinweg erleichtert. Niedrigerer CV% zeigt stabilere Leistung an.",
"aiTranslatedTooltip": "Diese Übersetzung wurde von KI erstellt und kann Fehler enthalten. Helfen Sie uns, sie zu verbessern!",
"humanValidatedTooltip": "Diese Übersetzung wurde von einem menschlichen Übersetzer überprüft.",
- "helpTranslate": "Helfen Sie SkellyCam zu übersetzen",
+ "helpTranslate": "Helfen Sie FreeMoCap zu übersetzen",
"failedToFetch": "Abruf fehlgeschlagen",
"recordings": "Aufnahmen",
"noRecordingsFound": "Keine Aufnahmen gefunden. Geben Sie oben einen Pfad ein, um manuell zu laden.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Dokumentation",
"menuGitHubRepository": "GitHub-Repository",
"menuReportIssue": "Problem melden…",
- "menuAbout": "Über SkellyCam",
+ "menuAbout": "Über FreeMoCap",
"menuPlayback": "Wiedergabe",
"videoPlayback": "Wiedergabe",
"copyLogsToClipboard": "Protokolle in Zwischenablage kopieren",
diff --git a/freemocap-ui-old/src/i18n/locales/el-ellinika.json b/freemocap-ui-old/src/i18n/locales/el-ellinika.json
index 08bbb5f7..00fe6634 100644
--- a/freemocap-ui-old/src/i18n/locales/el-ellinika.json
+++ b/freemocap-ui-old/src/i18n/locales/el-ellinika.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Καλώς ήρθατε στο SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Καλώς ήρθατε στο FreeMoCap",
"welcomeSubtitle": "Εγγραφή και Προβολή Συγχρονισμένων Βίντεο",
"sendAnonymousPings": "Αποστολή ανώνυμων ping χρήσης",
"footerWith": "με",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Η τυπική απόκλιση μετρά το ποσό της διακύμανσης στους χρόνους καρέ. Χαμηλότερες τιμές υποδεικνύουν πιο συνεπή απόδοση. Ο Συντελεστής Διακύμανσης (CV%) εκφράζει αυτή τη μεταβλητότητα ως ποσοστό του μέσου, διευκολύνοντας τη σύγκριση σταθερότητας μεταξύ διαφορετικών ρυθμών καρέ. Χαμηλότερο CV% υποδεικνύει πιο σταθερή απόδοση.",
"aiTranslatedTooltip": "Αυτή η μετάφραση δημιουργήθηκε από AI και μπορεί να περιέχει σφάλματα. Αν μιλάτε αυτή τη γλώσσα, μπορείτε να βοηθήσετε στη βελτίωσή της ανοίγοντας ένα pull request στο GitHub!",
"humanValidatedTooltip": "Αυτή η μετάφραση έχει ελεγχθεί και επικυρωθεί από ανθρώπινο μεταφραστή.",
- "helpTranslate": "Βοηθήστε στη μετάφραση του SkellyCam",
+ "helpTranslate": "Βοηθήστε στη μετάφραση του FreeMoCap",
"failedToFetch": "Αποτυχία ανάκτησης",
"recordings": "Εγγραφές",
"noRecordingsFound": "Δεν βρέθηκαν εγγραφές. Εισάγετε μια διαδρομή παραπάνω για χειροκίνητη φόρτωση.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Τεκμηρίωση",
"menuGitHubRepository": "Αποθετήριο GitHub",
"menuReportIssue": "Αναφορά προβλήματος…",
- "menuAbout": "Σχετικά με το SkellyCam",
+ "menuAbout": "Σχετικά με το FreeMoCap",
"menuPlayback": "Αναπαραγωγή",
"videoPlayback": "Αναπαραγωγή",
"copyLogsToClipboard": "Αντιγραφή αρχείων καταγραφής στο πρόχειρο",
diff --git a/freemocap-ui-old/src/i18n/locales/en-english.json b/freemocap-ui-old/src/i18n/locales/en-english.json
index 44777bd8..e5fd65ce 100644
--- a/freemocap-ui-old/src/i18n/locales/en-english.json
+++ b/freemocap-ui-old/src/i18n/locales/en-english.json
@@ -4,9 +4,9 @@
"translationSource": "human-authored",
"lastUpdated": "2026-02-22"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Welcome to SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Welcome to FreeMoCap",
"welcomeSubtitle": "Record and View Synchronized Videos",
"sendAnonymousPings": "Send anonymous usage pings",
"footerWith": "w/",
@@ -214,7 +214,7 @@
"statsStdDevLong": "Standard deviation measures the amount of variation in frame times. Lower values indicate more consistent performance. The Coefficient of Variation (CV%) expresses this variability as a percentage of the mean, making it easier to compare stability across different frame rates. Lower CV% indicates more stable performance.",
"aiTranslatedTooltip": "This translation was generated by AI and may contain errors. If you speak this language, you can help improve it by opening a pull request on GitHub!",
"humanValidatedTooltip": "This translation has been reviewed and validated by a human translator.",
- "helpTranslate": "Help translate SkellyCam",
+ "helpTranslate": "Help translate FreeMoCap",
"failedToFetch": "Failed to fetch",
"recordings": "Recordings",
"noRecordingsFound": "No recordings found. Enter a path above to load manually.",
@@ -242,7 +242,7 @@
"menuDocumentation": "Documentation",
"menuGitHubRepository": "GitHub Repository",
"menuReportIssue": "Report an Issue…",
- "menuAbout": "About SkellyCam",
+ "menuAbout": "About FreeMoCap",
"menuCheckForUpdates": "Check for Updates…",
"menuPlayback": "Playback",
"videoPlayback": "Playback",
diff --git a/freemocap-ui-old/src/i18n/locales/es-espanol.json b/freemocap-ui-old/src/i18n/locales/es-espanol.json
index 9703f3c6..2c76923f 100644
--- a/freemocap-ui-old/src/i18n/locales/es-espanol.json
+++ b/freemocap-ui-old/src/i18n/locales/es-espanol.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-22"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Bienvenido a SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Bienvenido a FreeMoCap",
"welcomeSubtitle": "Graba y visualiza videos sincronizados",
"sendAnonymousPings": "Enviar pings de uso anónimos",
"footerWith": "con",
@@ -211,7 +211,7 @@
"statsStdDevLong": "La desviación estándar mide la variación en los tiempos de cuadro. Valores más bajos indican un rendimiento más consistente. El Coeficiente de Variación (CV%) expresa esta variabilidad como porcentaje de la media, facilitando la comparación de estabilidad entre diferentes velocidades de cuadro.",
"aiTranslatedTooltip": "Esta traducción fue generada por IA y puede contener errores. Si hablas este idioma, ¡puedes ayudar a mejorarla abriendo un pull request en GitHub!",
"humanValidatedTooltip": "Esta traducción ha sido revisada y validada por un traductor humano.",
- "helpTranslate": "Ayuda a traducir SkellyCam",
+ "helpTranslate": "Ayuda a traducir FreeMoCap",
"failedToFetch": "Error al obtener datos",
"recordings": "Grabaciones",
"noRecordingsFound": "No se encontraron grabaciones. Ingrese una ruta arriba para cargar manualmente.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Documentación",
"menuGitHubRepository": "Repositorio de GitHub",
"menuReportIssue": "Reportar un problema…",
- "menuAbout": "Acerca de SkellyCam",
+ "menuAbout": "Acerca de FreeMoCap",
"menuPlayback": "Reproducción",
"videoPlayback": "Reproducción",
"copyLogsToClipboard": "Copiar registros al portapapeles",
diff --git a/freemocap-ui-old/src/i18n/locales/fa-farsi.json b/freemocap-ui-old/src/i18n/locales/fa-farsi.json
index 3aa03467..6830b939 100644
--- a/freemocap-ui-old/src/i18n/locales/fa-farsi.json
+++ b/freemocap-ui-old/src/i18n/locales/fa-farsi.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "به SkellyCam خوش آمدید",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "به FreeMoCap خوش آمدید",
"welcomeSubtitle": "ضبط و مشاهده ویدیوهای همگام‌سازی شده",
"sendAnonymousPings": "ارسال داده‌های استفاده ناشناس",
"footerWith": "با",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "فریم‌های دریافتی را روی صفحه رندر می‌کند.",
"displayTooltipLong": "نمایش عملکرد رندر رابط کاربری را نشان می‌دهد. نشان می‌دهد نمایشگر شما چقدر سریع فریم‌ها را دریافت و رندر می‌کند. مشکلات عملکردی در اینجا کیفیت ضبط را تحت تأثیر قرار نمی‌دهد اما ممکن است بر توانایی شما در نظارت بر دوربین‌ها در زمان واقعی تأثیر بگذارد.",
"statsSourceShort": "نمایشگر فریم‌ها را رندر می‌کند، سرور فریم‌ها را ضبط می‌کند.",
- "statsSourceLong": "سرور نرخ واقعی است که فریم‌ها از دوربین کشیده/ضبط می‌شوند، در حالی که نمایش نرخ دریافت و رندر آنهاست. SkellyCam عملکرد سمت سرور را برای کیفیت ضبط اولویت می‌دهد، بنابراین این عدد باید پایدارتر بماند. اگر نرخ فریم نمایش از سرور منحرف شود، نشان‌دهنده فشار بر منابع سیستم شماست. استفاده از دوربین‌های کمتر یا کاهش نرخ فریم/وضوح را در نظر بگیرید.",
+ "statsSourceLong": "سرور نرخ واقعی است که فریم‌ها از دوربین کشیده/ضبط می‌شوند، در حالی که نمایش نرخ دریافت و رندر آنهاست. FreeMoCap عملکرد سمت سرور را برای کیفیت ضبط اولویت می‌دهد، بنابراین این عدد باید پایدارتر بماند. اگر نرخ فریم نمایش از سرور منحرف شود، نشان‌دهنده فشار بر منابع سیستم شماست. استفاده از دوربین‌های کمتر یا کاهش نرخ فریم/وضوح را در نظر بگیرید.",
"statsCurrentShort": "آخرین زمان فریم و FPS.",
"statsCurrentLong": "این آخرین اندازه‌گیری مدت زمان پردازش یک فریم (به میلی‌ثانیه) و معادل فریم در ثانیه (FPS) را نشان می‌دهد. زمان فریم کمتر و FPS بالاتر نشان‌دهنده عملکرد بهتر است.",
"statsMinShort": "سریع‌ترین زمان فریم و بالاترین FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "انحراف معیار میزان تغییرات در زمان‌های فریم را اندازه‌گیری می‌کند. مقادیر کمتر نشان‌دهنده عملکرد سازگارتر است. ضریب تغییرات (CV%) این تغییرپذیری را به صورت درصدی از میانگین بیان می‌کند، که مقایسه پایداری در نرخ‌های فریم مختلف را آسان‌تر می‌کند. CV% کمتر نشان‌دهنده عملکرد پایدارتر است.",
"aiTranslatedTooltip": "این ترجمه توسط هوش مصنوعی تولید شده و ممکن است خطاهایی داشته باشد. اگر این زبان را صحبت می‌کنید، به بهبود آن کمک کنید!",
"humanValidatedTooltip": "این ترجمه توسط مترجم انسانی بررسی شده است.",
- "helpTranslate": "به ترجمه SkellyCam کمک کنید",
+ "helpTranslate": "به ترجمه FreeMoCap کمک کنید",
"failedToFetch": "دریافت ناموفق",
"recordings": "ضبط‌ها",
"noRecordingsFound": "هیچ ضبطی یافت نشد. برای بارگذاری دستی، مسیری در بالا وارد کنید.",
@@ -239,7 +239,7 @@
"menuDocumentation": "مستندات",
"menuGitHubRepository": "مخزن GitHub",
"menuReportIssue": "گزارش مشکل…",
- "menuAbout": "درباره SkellyCam",
+ "menuAbout": "درباره FreeMoCap",
"menuPlayback": "پخش",
"videoPlayback": "پخش",
"copyLogsToClipboard": "کپی گزارش‌ها در کلیپ‌بورد",
diff --git a/freemocap-ui-old/src/i18n/locales/fr-francais.json b/freemocap-ui-old/src/i18n/locales/fr-francais.json
index 90765405..b265778e 100644
--- a/freemocap-ui-old/src/i18n/locales/fr-francais.json
+++ b/freemocap-ui-old/src/i18n/locales/fr-francais.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Bienvenue sur SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Bienvenue sur FreeMoCap",
"welcomeSubtitle": "Enregistrez et visionnez des vidéos synchronisées",
"sendAnonymousPings": "Envoyer des données d'utilisation anonymes",
"footerWith": "avec",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Affiche les images reçues à l'écran.",
"displayTooltipLong": "L'affichage représente les performances de rendu de l'interface utilisateur. Il montre la rapidité avec laquelle votre écran reçoit et affiche les images. Les problèmes de performances ici n'affecteront pas la qualité d'enregistrement mais peuvent impacter votre capacité à surveiller les caméras en temps réel.",
"statsSourceShort": "L'affichage rend les images, le serveur les capture.",
- "statsSourceLong": "Le serveur est le taux réel auquel les images sont extraites/enregistrées depuis la caméra, tandis que l'affichage est le taux auquel elles sont reçues et rendues. SkellyCam priorise les performances côté serveur pour la qualité d'enregistrement, donc ce nombre devrait rester plus stable. Si la fréquence d'images de l'affichage diverge du serveur, cela indique que les ressources de votre système sont sollicitées. Envisagez d'utiliser moins de caméras ou de réduire la fréquence d'images/résolution.",
+ "statsSourceLong": "Le serveur est le taux réel auquel les images sont extraites/enregistrées depuis la caméra, tandis que l'affichage est le taux auquel elles sont reçues et rendues. FreeMoCap priorise les performances côté serveur pour la qualité d'enregistrement, donc ce nombre devrait rester plus stable. Si la fréquence d'images de l'affichage diverge du serveur, cela indique que les ressources de votre système sont sollicitées. Envisagez d'utiliser moins de caméras ou de réduire la fréquence d'images/résolution.",
"statsCurrentShort": "Temps d'image et FPS les plus récents.",
"statsCurrentLong": "Affiche la mesure la plus récente du temps de traitement d'une image (en millisecondes) et les images par seconde (FPS) correspondantes. Des temps d'image plus bas et des FPS plus élevés indiquent de meilleures performances.",
"statsMinShort": "Temps d'image le plus rapide et FPS le plus élevé.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "L'écart-type mesure la variation des temps d'image. Des valeurs plus basses indiquent des performances plus régulières. Le coefficient de variation (CV%) exprime cette variabilité en pourcentage de la moyenne, facilitant la comparaison de la stabilité entre différentes fréquences d'images. Un CV% plus bas indique des performances plus stables.",
"aiTranslatedTooltip": "Cette traduction a été générée par IA et peut contenir des erreurs. Si vous parlez cette langue, aidez-nous à l'améliorer !",
"humanValidatedTooltip": "Cette traduction a été vérifiée par un traducteur humain.",
- "helpTranslate": "Aider à traduire SkellyCam",
+ "helpTranslate": "Aider à traduire FreeMoCap",
"failedToFetch": "Échec de la récupération",
"recordings": "Enregistrements",
"noRecordingsFound": "Aucun enregistrement trouvé. Entrez un chemin ci-dessus pour charger manuellement.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Documentation",
"menuGitHubRepository": "Dépôt GitHub",
"menuReportIssue": "Signaler un problème…",
- "menuAbout": "À propos de SkellyCam",
+ "menuAbout": "À propos de FreeMoCap",
"menuPlayback": "Lecture",
"videoPlayback": "Lecture",
"copyLogsToClipboard": "Copier les journaux dans le presse-papiers",
diff --git a/freemocap-ui-old/src/i18n/locales/hi-hindi.json b/freemocap-ui-old/src/i18n/locales/hi-hindi.json
index 93a03c2c..43862d79 100644
--- a/freemocap-ui-old/src/i18n/locales/hi-hindi.json
+++ b/freemocap-ui-old/src/i18n/locales/hi-hindi.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "SkellyCam में आपका स्वागत है",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "FreeMoCap में आपका स्वागत है",
"welcomeSubtitle": "सिंक्रनाइज़्ड वीडियो रिकॉर्ड और देखें",
"sendAnonymousPings": "गुमनाम उपयोग डेटा भेजें",
"footerWith": "साथ",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "प्राप्त फ्रेम स्क्रीन पर रेंडर करता है।",
"displayTooltipLong": "डिस्प्ले UI रेंडरिंग प्रदर्शन दर्शाता है। यह दिखाता है कि आपका डिस्प्ले कितनी तेज़ी से फ्रेम प्राप्त करता और रेंडर करता है। यहाँ प्रदर्शन समस्याएँ रिकॉर्डिंग गुणवत्ता को प्रभावित नहीं करेंगी लेकिन रियल-टाइम में कैमरों की निगरानी करने की आपकी क्षमता को प्रभावित कर सकती हैं।",
"statsSourceShort": "डिस्प्ले फ्रेम रेंडर करता है, सर्वर फ्रेम कैप्चर करता है।",
- "statsSourceLong": "सर्वर वह वास्तविक दर है जिस पर कैमरे से फ्रेम खींचे/रिकॉर्ड किए जाते हैं, जबकि डिस्प्ले वह दर है जिस पर उन्हें प्राप्त और रेंडर किया जाता है। SkellyCam रिकॉर्डिंग गुणवत्ता के लिए सर्वर-साइड प्रदर्शन को प्राथमिकता देता है, इसलिए वह संख्या अधिक स्थिर रहनी चाहिए। यदि डिस्प्ले फ्रेमरेट सर्वर से भिन्न होता है, तो यह इंगित करता है कि आपके सिस्टम संसाधन तनाव में हैं। कम कैमरे उपयोग करने या फ्रेमरेट/रेज़ोल्यूशन कम करने पर विचार करें।",
+ "statsSourceLong": "सर्वर वह वास्तविक दर है जिस पर कैमरे से फ्रेम खींचे/रिकॉर्ड किए जाते हैं, जबकि डिस्प्ले वह दर है जिस पर उन्हें प्राप्त और रेंडर किया जाता है। FreeMoCap रिकॉर्डिंग गुणवत्ता के लिए सर्वर-साइड प्रदर्शन को प्राथमिकता देता है, इसलिए वह संख्या अधिक स्थिर रहनी चाहिए। यदि डिस्प्ले फ्रेमरेट सर्वर से भिन्न होता है, तो यह इंगित करता है कि आपके सिस्टम संसाधन तनाव में हैं। कम कैमरे उपयोग करने या फ्रेमरेट/रेज़ोल्यूशन कम करने पर विचार करें।",
"statsCurrentShort": "सबसे हालिया फ्रेम समय और FPS।",
"statsCurrentLong": "यह एक एकल फ्रेम को संसाधित करने में लगने वाले समय (मिलीसेकंड में) और समकक्ष प्रति सेकंड फ्रेम (FPS) का सबसे हालिया माप दिखाता है। कम फ्रेम समय और अधिक FPS बेहतर प्रदर्शन इंगित करता है।",
"statsMinShort": "सबसे तेज़ फ्रेम समय और उच्चतम FPS।",
@@ -211,7 +211,7 @@
"statsStdDevLong": "मानक विचलन फ्रेम समय में भिन्नता की मात्रा मापता है। कम मान अधिक सुसंगत प्रदर्शन इंगित करते हैं। परिवर्तन गुणांक (CV%) इस परिवर्तनशीलता को माध्य के प्रतिशत के रूप में व्यक्त करता है, जो विभिन्न फ्रेम दरों में स्थिरता की तुलना को आसान बनाता है। कम CV% अधिक स्थिर प्रदर्शन इंगित करता है।",
"aiTranslatedTooltip": "यह अनुवाद AI द्वारा बनाया गया है और इसमें त्रुटियां हो सकती हैं। यदि आप यह भाषा बोलते हैं, तो कृपया इसे सुधारने में मदद करें!",
"humanValidatedTooltip": "इस अनुवाद की मानव अनुवादक द्वारा समीक्षा की गई है।",
- "helpTranslate": "SkellyCam का अनुवाद करने में मदद करें",
+ "helpTranslate": "FreeMoCap का अनुवाद करने में मदद करें",
"failedToFetch": "डेटा प्राप्त करने में विफल",
"recordings": "रिकॉर्डिंग",
"noRecordingsFound": "कोई रिकॉर्डिंग नहीं मिली। मैन्युअल रूप से लोड करने के लिए ऊपर पथ दर्ज करें।",
@@ -239,7 +239,7 @@
"menuDocumentation": "दस्तावेज़ीकरण",
"menuGitHubRepository": "GitHub रिपॉजिटरी",
"menuReportIssue": "समस्या रिपोर्ट करें…",
- "menuAbout": "SkellyCam के बारे में",
+ "menuAbout": "FreeMoCap के बारे में",
"menuPlayback": "प्लेबैक",
"videoPlayback": "प्लेबैक",
"copyLogsToClipboard": "लॉग क्लिपबोर्ड पर कॉपी करें",
diff --git a/freemocap-ui-old/src/i18n/locales/hr-hrvatski.json b/freemocap-ui-old/src/i18n/locales/hr-hrvatski.json
index 19045423..5fe43d9b 100644
--- a/freemocap-ui-old/src/i18n/locales/hr-hrvatski.json
+++ b/freemocap-ui-old/src/i18n/locales/hr-hrvatski.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Dobrodošli u SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Dobrodošli u FreeMoCap",
"welcomeSubtitle": "Snimajte i gledajte sinkronizirane videozapise",
"sendAnonymousPings": "Šalji anonimne pingove korištenja",
"footerWith": "s",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Standardna devijacija mjeri količinu varijacije u vremenima kadrova. Niže vrijednosti ukazuju na konzistentnije performanse. Koeficijent varijacije (CV%) izražava ovu varijabilnost kao postotak srednje vrijednosti, olakšavajući usporedbu stabilnosti na različitim brzinama kadrova. Niži CV% ukazuje na stabilnije performanse.",
"aiTranslatedTooltip": "Ovaj prijevod je generiran pomoću umjetne inteligencije i može sadržavati pogreške. Ako govorite ovaj jezik, možete pomoći u poboljšanju otvaranjem pull requesta na GitHubu!",
"humanValidatedTooltip": "Ovaj prijevod je pregledao i potvrdio ljudski prevoditelj.",
- "helpTranslate": "Pomozite prevesti SkellyCam",
+ "helpTranslate": "Pomozite prevesti FreeMoCap",
"failedToFetch": "Preuzimanje neuspješno",
"recordings": "Snimke",
"noRecordingsFound": "Nema pronađenih snimaka. Unesite putanju iznad za ručno učitavanje.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Dokumentacija",
"menuGitHubRepository": "GitHub repozitorij",
"menuReportIssue": "Prijavi problem…",
- "menuAbout": "O SkellyCam-u",
+ "menuAbout": "O FreeMoCap-u",
"menuPlayback": "Reprodukcija",
"videoPlayback": "Reprodukcija",
"copyLogsToClipboard": "Kopiraj zapise u međuspremnik",
diff --git a/freemocap-ui-old/src/i18n/locales/hu-magyar.json b/freemocap-ui-old/src/i18n/locales/hu-magyar.json
index 87ce7375..d0f44683 100644
--- a/freemocap-ui-old/src/i18n/locales/hu-magyar.json
+++ b/freemocap-ui-old/src/i18n/locales/hu-magyar.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Üdvözöljük a SkellyCam-ben",
+ "appName": "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",
"footerWith": "a",
@@ -211,7 +211,7 @@
"statsStdDevLong": "A szórás a képkocka időkben lévő variáció mértékét méri. Az alacsonyabb értékek konzisztensebb teljesítményt jeleznek. A Variációs Együttható (CV%) ezt a változékonyságot az átlag százalékában fejezi ki, megkönnyítve a stabilitás összehasonlítását különböző képkockasebességek között. Az alacsonyabb CV% stabilabb teljesítményt jelez.",
"aiTranslatedTooltip": "Ezt a fordítást AI generálta és hibákat tartalmazhat. Ha beszéli ezt a nyelvet, segíthet a javításában egy pull request megnyitásával a GitHubon!",
"humanValidatedTooltip": "Ezt a fordítást ember fordító ellenőrizte és jóváhagyta.",
- "helpTranslate": "Segítsen a SkellyCam fordításában",
+ "helpTranslate": "Segítsen a FreeMoCap fordításában",
"failedToFetch": "Lekérés sikertelen",
"recordings": "Felvételek",
"noRecordingsFound": "Nem találhatók felvételek. Adjon meg egy elérési utat fent a kézi betöltéshez.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Dokumentáció",
"menuGitHubRepository": "GitHub tárház",
"menuReportIssue": "Hiba bejelentése…",
- "menuAbout": "A SkellyCam-ról",
+ "menuAbout": "A FreeMoCap-ról",
"menuPlayback": "Lejátszás",
"videoPlayback": "Lejátszás",
"copyLogsToClipboard": "Naplók másolása a vágólapra",
diff --git a/freemocap-ui-old/src/i18n/locales/id-bahasa-indonesia.json b/freemocap-ui-old/src/i18n/locales/id-bahasa-indonesia.json
index 4a881e93..41c9d102 100644
--- a/freemocap-ui-old/src/i18n/locales/id-bahasa-indonesia.json
+++ b/freemocap-ui-old/src/i18n/locales/id-bahasa-indonesia.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Selamat datang di SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Selamat datang di FreeMoCap",
"welcomeSubtitle": "Rekam dan lihat video tersinkronisasi",
"sendAnonymousPings": "Kirim data penggunaan anonim",
"footerWith": "dengan",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Merender frame yang diterima di layar.",
"displayTooltipLong": "Tampilan merepresentasikan kinerja rendering antarmuka pengguna. Ini menunjukkan seberapa cepat layar Anda menerima dan merender frame. Masalah kinerja di sini tidak akan memengaruhi kualitas rekaman tetapi dapat memengaruhi kemampuan Anda untuk memantau kamera secara real-time.",
"statsSourceShort": "Display merender frame, server menangkap frame.",
- "statsSourceLong": "Server adalah kecepatan nyata frame ditarik/direkam dari kamera, sedangkan tampilan adalah kecepatan penerimaan dan rendering. SkellyCam memprioritaskan kinerja sisi server untuk kualitas rekaman, sehingga angka tersebut seharusnya lebih stabil. Jika framerate tampilan menyimpang dari server, ini menunjukkan sumber daya sistem Anda sedang terbebani. Pertimbangkan untuk menggunakan lebih sedikit kamera atau menurunkan framerate/resolusi.",
+ "statsSourceLong": "Server adalah kecepatan nyata frame ditarik/direkam dari kamera, sedangkan tampilan adalah kecepatan penerimaan dan rendering. FreeMoCap memprioritaskan kinerja sisi server untuk kualitas rekaman, sehingga angka tersebut seharusnya lebih stabil. Jika framerate tampilan menyimpang dari server, ini menunjukkan sumber daya sistem Anda sedang terbebani. Pertimbangkan untuk menggunakan lebih sedikit kamera atau menurunkan framerate/resolusi.",
"statsCurrentShort": "Waktu frame dan FPS terbaru.",
"statsCurrentLong": "Ini menunjukkan pengukuran terbaru berapa lama waktu yang dibutuhkan untuk memproses satu frame (dalam milidetik) dan frame per detik (FPS) yang setara. Waktu frame lebih rendah dan FPS lebih tinggi menunjukkan kinerja yang lebih baik.",
"statsMinShort": "Waktu frame tercepat dan FPS tertinggi.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Deviasi standar mengukur jumlah variasi dalam waktu frame. Nilai lebih rendah menunjukkan kinerja yang lebih konsisten. Koefisien Variasi (CV%) menyatakan variabilitas ini sebagai persentase dari rata-rata, memudahkan perbandingan stabilitas di berbagai frame rate. CV% lebih rendah menunjukkan kinerja yang lebih stabil.",
"aiTranslatedTooltip": "Terjemahan ini dibuat oleh AI dan mungkin mengandung kesalahan. Jika Anda berbicara bahasa ini, bantu perbaiki!",
"humanValidatedTooltip": "Terjemahan ini telah diverifikasi oleh penerjemah manusia.",
- "helpTranslate": "Bantu terjemahkan SkellyCam",
+ "helpTranslate": "Bantu terjemahkan FreeMoCap",
"failedToFetch": "Gagal mengambil data",
"recordings": "Rekaman",
"noRecordingsFound": "Tidak ada rekaman ditemukan. Masukkan jalur di atas untuk memuat secara manual.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Dokumentasi",
"menuGitHubRepository": "Repositori GitHub",
"menuReportIssue": "Laporkan masalah…",
- "menuAbout": "Tentang SkellyCam",
+ "menuAbout": "Tentang FreeMoCap",
"menuPlayback": "Pemutaran",
"videoPlayback": "Pemutaran",
"copyLogsToClipboard": "Salin log ke papan klip",
diff --git a/freemocap-ui-old/src/i18n/locales/it-italiano.json b/freemocap-ui-old/src/i18n/locales/it-italiano.json
index cb3a92b1..85ff757c 100644
--- a/freemocap-ui-old/src/i18n/locales/it-italiano.json
+++ b/freemocap-ui-old/src/i18n/locales/it-italiano.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Benvenuto in SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Benvenuto in FreeMoCap",
"welcomeSubtitle": "Registra e visualizza video sincronizzati",
"sendAnonymousPings": "Invia dati di utilizzo anonimi",
"footerWith": "con",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Renderizza i fotogrammi ricevuti sullo schermo.",
"displayTooltipLong": "Il display rappresenta le prestazioni di rendering dell'interfaccia utente. Mostra quanto velocemente il display riceve e renderizza i fotogrammi. Problemi di prestazioni qui non influenzeranno la qualità della registrazione ma possono influire sulla capacità di monitorare le telecamere in tempo reale.",
"statsSourceShort": "Il display renderizza, il server cattura i fotogrammi.",
- "statsSourceLong": "Il server è la velocità reale con cui i fotogrammi vengono estratti/registrati dalla telecamera, mentre il display è la velocità con cui vengono ricevuti e renderizzati. SkellyCam dà priorità alle prestazioni lato server per la qualità della registrazione, quindi quel numero dovrebbe rimanere più stabile. Se il framerate del display diverge dal server, indica che le risorse del sistema sono sovraccaricate. Considera l'uso di meno telecamere o la riduzione di framerate/risoluzione.",
+ "statsSourceLong": "Il server è la velocità reale con cui i fotogrammi vengono estratti/registrati dalla telecamera, mentre il display è la velocità con cui vengono ricevuti e renderizzati. FreeMoCap dà priorità alle prestazioni lato server per la qualità della registrazione, quindi quel numero dovrebbe rimanere più stabile. Se il framerate del display diverge dal server, indica che le risorse del sistema sono sovraccaricate. Considera l'uso di meno telecamere o la riduzione di framerate/risoluzione.",
"statsCurrentShort": "Tempo fotogramma e FPS più recenti.",
"statsCurrentLong": "Mostra la misurazione più recente del tempo di elaborazione di un singolo fotogramma (in millisecondi) e i fotogrammi al secondo (FPS) equivalenti. Tempi fotogramma più bassi e FPS più alti indicano prestazioni migliori.",
"statsMinShort": "Tempo fotogramma più veloce e FPS più alto.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "La deviazione standard misura la variazione nei tempi fotogramma. Valori più bassi indicano prestazioni più consistenti. Il Coefficiente di Variazione (CV%) esprime questa variabilità come percentuale della media, facilitando il confronto della stabilità tra diversi frame rate. Un CV% più basso indica prestazioni più stabili.",
"aiTranslatedTooltip": "Questa traduzione è stata generata dall'IA e potrebbe contenere errori. Se parli questa lingua, aiutaci a migliorarla!",
"humanValidatedTooltip": "Questa traduzione è stata verificata da un traduttore umano.",
- "helpTranslate": "Aiuta a tradurre SkellyCam",
+ "helpTranslate": "Aiuta a tradurre FreeMoCap",
"failedToFetch": "Recupero non riuscito",
"recordings": "Registrazioni",
"noRecordingsFound": "Nessuna registrazione trovata. Inserisci un percorso sopra per caricare manualmente.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Documentazione",
"menuGitHubRepository": "Repository GitHub",
"menuReportIssue": "Segnala un problema…",
- "menuAbout": "Informazioni su SkellyCam",
+ "menuAbout": "Informazioni su FreeMoCap",
"menuPlayback": "Riproduzione",
"videoPlayback": "Riproduzione",
"copyLogsToClipboard": "Copia i log negli appunti",
diff --git a/freemocap-ui-old/src/i18n/locales/ja-nihongo.json b/freemocap-ui-old/src/i18n/locales/ja-nihongo.json
index 446f7570..b83fba56 100644
--- a/freemocap-ui-old/src/i18n/locales/ja-nihongo.json
+++ b/freemocap-ui-old/src/i18n/locales/ja-nihongo.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "SkellyCamへようこそ",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "FreeMoCapへようこそ",
"welcomeSubtitle": "同期ビデオの録画と再生",
"sendAnonymousPings": "匿名使用データを送信",
"footerWith": "で",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "受信フレームを画面にレンダリング。",
"displayTooltipLong": "ディスプレイはUIレンダリング性能を表します。ディスプレイがフレームを受信しレンダリングする速度を示します。ここでのパフォーマンス問題は録画品質に影響しませんが、リアルタイムでカメラを監視する能力に影響する可能性があります。",
"statsSourceShort": "ディスプレイはフレームをレンダリング、サーバーはフレームをキャプチャ。",
- "statsSourceLong": "サーバーはカメラからフレームが取得/録画される実際のレートであり、ディスプレイはフレームが受信・レンダリングされるレートです。SkellyCamは録画品質のためにサーバー側のパフォーマンスを優先するため、その数値はより安定しているはずです。ディスプレイのフレームレートがサーバーと乖離する場合、システムリソースが逼迫していることを示します。カメラの数を減らすか、フレームレート/解像度を下げることを検討してください。",
+ "statsSourceLong": "サーバーはカメラからフレームが取得/録画される実際のレートであり、ディスプレイはフレームが受信・レンダリングされるレートです。FreeMoCapは録画品質のためにサーバー側のパフォーマンスを優先するため、その数値はより安定しているはずです。ディスプレイのフレームレートがサーバーと乖離する場合、システムリソースが逼迫していることを示します。カメラの数を減らすか、フレームレート/解像度を下げることを検討してください。",
"statsCurrentShort": "最新のフレーム時間とFPS。",
"statsCurrentLong": "単一フレームの処理にかかる時間(ミリ秒)と、それに相当する毎秒フレーム数(FPS)の最新の測定値を表示します。フレーム時間が短く、FPSが高いほど、パフォーマンスが良いことを示します。",
"statsMinShort": "最速フレーム時間と最高FPS。",
@@ -211,7 +211,7 @@
"statsStdDevLong": "標準偏差はフレーム時間のばらつきの量を測定します。低い値はより一貫したパフォーマンスを示します。変動係数(CV%)はこのばらつきを平均の割合として表し、異なるフレームレート間での安定性の比較を容易にします。低いCV%はより安定したパフォーマンスを示します。",
"aiTranslatedTooltip": "この翻訳はAIによって生成されたもので、誤りを含む可能性があります。この言語を話す方は改善にご協力ください!",
"humanValidatedTooltip": "この翻訳は人間の翻訳者によって確認されています。",
- "helpTranslate": "SkellyCamの翻訳を手伝う",
+ "helpTranslate": "FreeMoCapの翻訳を手伝う",
"failedToFetch": "取得に失敗",
"recordings": "録画",
"noRecordingsFound": "録画が見つかりません。上にパスを入力して手動で読み込んでください。",
@@ -239,7 +239,7 @@
"menuDocumentation": "ドキュメント",
"menuGitHubRepository": "GitHubリポジトリ",
"menuReportIssue": "問題を報告…",
- "menuAbout": "SkellyCamについて",
+ "menuAbout": "FreeMoCapについて",
"menuPlayback": "再生",
"videoPlayback": "再生",
"copyLogsToClipboard": "ログをクリップボードにコピー",
diff --git a/freemocap-ui-old/src/i18n/locales/ka-kartuli.json b/freemocap-ui-old/src/i18n/locales/ka-kartuli.json
index 3bdb2210..5e21da2d 100644
--- a/freemocap-ui-old/src/i18n/locales/ka-kartuli.json
+++ b/freemocap-ui-old/src/i18n/locales/ka-kartuli.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "კეთილი იყოს თქვენი მობრძანება SkellyCam-ში",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "კეთილი იყოს თქვენი მობრძანება FreeMoCap-ში",
"welcomeSubtitle": "ჩაწერეთ და ნახეთ სინქრონიზებული ვიდეოები",
"sendAnonymousPings": "ანონიმური გამოყენების პინგების გაგზავნა",
"footerWith": "თან",
@@ -211,7 +211,7 @@
"statsStdDevLong": "სტანდარტული გადახრა ზომავს კადრის დროებში ვარიაციის ოდენობას. უფრო დაბალი მნიშვნელობები უფრო თანმიმდევრულ წარმადობას მიუთითებს. ვარიაციის კოეფიციენტი (CV%) ამ ცვალებადობას საშუალოს პროცენტულად გამოხატავს, რაც ადვილებს სტაბილურობის შედარებას სხვადასხვა კადრთა სიხშირეებს შორის. უფრო დაბალი CV% უფრო სტაბილურ წარმადობას მიუთითებს.",
"aiTranslatedTooltip": "ეს თარგმანი AI-ით არის გენერირებული და შეიძლება შეცდომები შეიცავდეს. თუ ამ ენაზე ლაპარაკობთ, შეგიძლიათ დაეხმაროთ გაუმჯობესებაში GitHub-ზე pull request-ის გახსნით!",
"humanValidatedTooltip": "ეს თარგმანი ადამიანი მთარგმნელის მიერ არის განხილული და შემოწმებული.",
- "helpTranslate": "დაეხმარეთ SkellyCam-ის თარგმნას",
+ "helpTranslate": "დაეხმარეთ FreeMoCap-ის თარგმნას",
"failedToFetch": "მიღება ვერ მოხერხდა",
"recordings": "ჩაწერები",
"noRecordingsFound": "ჩაწერები ვერ მოიძებნა. ხელით ჩასატვირთად ზემოთ შეიყვანეთ ბილიკი.",
@@ -239,7 +239,7 @@
"menuDocumentation": "დოკუმენტაცია",
"menuGitHubRepository": "GitHub რეპოზიტორია",
"menuReportIssue": "პრობლემის შეტყობინება…",
- "menuAbout": "SkellyCam-ის შესახებ",
+ "menuAbout": "FreeMoCap-ის შესახებ",
"menuPlayback": "დაკვრა",
"videoPlayback": "დაკვრა",
"copyLogsToClipboard": "ჟურნალის კოპირება ბუფერში",
diff --git a/freemocap-ui-old/src/i18n/locales/ko-hangugeo.json b/freemocap-ui-old/src/i18n/locales/ko-hangugeo.json
index 9f66a428..93015daa 100644
--- a/freemocap-ui-old/src/i18n/locales/ko-hangugeo.json
+++ b/freemocap-ui-old/src/i18n/locales/ko-hangugeo.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "SkellyCam에 오신 것을 환영합니다",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "FreeMoCap에 오신 것을 환영합니다",
"welcomeSubtitle": "동기화된 비디오 녹화 및 보기",
"sendAnonymousPings": "익명 사용 데이터 보내기",
"footerWith": "와",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "받은 프레임을 화면에 렌더링.",
"displayTooltipLong": "디스플레이는 UI 렌더링 성능을 나타냅니다. 디스플레이가 프레임을 수신하고 렌더링하는 속도를 보여줍니다. 여기서의 성능 문제는 녹화 품질에 영향을 미치지 않지만 실시간으로 카메라를 모니터링하는 능력에 영향을 줄 수 있습니다.",
"statsSourceShort": "디스플레이는 프레임을 렌더링, 서버는 프레임을 캡처.",
- "statsSourceLong": "서버는 카메라에서 프레임을 가져오거나 녹화하는 실제 속도이며, 디스플레이는 프레임을 수신하고 렌더링하는 속도입니다. SkellyCam은 녹화 품질을 위해 서버 측 성능을 우선시하므로 해당 수치가 더 안정적이어야 합니다. 디스플레이 프레임레이트가 서버와 다르면 시스템 리소스가 부족함을 나타냅니다. 카메라 수를 줄이거나 프레임레이트/해상도를 낮추는 것을 고려하세요.",
+ "statsSourceLong": "서버는 카메라에서 프레임을 가져오거나 녹화하는 실제 속도이며, 디스플레이는 프레임을 수신하고 렌더링하는 속도입니다. FreeMoCap은 녹화 품질을 위해 서버 측 성능을 우선시하므로 해당 수치가 더 안정적이어야 합니다. 디스플레이 프레임레이트가 서버와 다르면 시스템 리소스가 부족함을 나타냅니다. 카메라 수를 줄이거나 프레임레이트/해상도를 낮추는 것을 고려하세요.",
"statsCurrentShort": "최근 프레임 시간 및 FPS.",
"statsCurrentLong": "단일 프레임을 처리하는 데 걸리는 시간(밀리초)과 이에 해당하는 초당 프레임 수(FPS)의 최신 측정값을 보여줍니다. 낮은 프레임 시간과 높은 FPS는 더 나은 성능을 나타냅니다.",
"statsMinShort": "가장 빠른 프레임 시간 및 최고 FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "표준편차는 프레임 시간의 변동량을 측정합니다. 낮은 값은 더 일관된 성능을 나타냅니다. 변동계수(CV%)는 이 변동성을 평균의 백분율로 표현하여 서로 다른 프레임레이트 간의 안정성 비교를 용이하게 합니다. 낮은 CV%는 더 안정적인 성능을 나타냅니다.",
"aiTranslatedTooltip": "이 번역은 AI가 생성했으며 오류가 있을 수 있습니다. 이 언어를 구사하신다면 개선에 도움을 주세요!",
"humanValidatedTooltip": "이 번역은 사람 번역가가 검토했습니다.",
- "helpTranslate": "SkellyCam 번역 도움",
+ "helpTranslate": "FreeMoCap 번역 도움",
"failedToFetch": "가져오기 실패",
"recordings": "녹화",
"noRecordingsFound": "녹화를 찾을 수 없습니다. 위에 경로를 입력하여 수동으로 로드하세요.",
@@ -239,7 +239,7 @@
"menuDocumentation": "문서",
"menuGitHubRepository": "GitHub 저장소",
"menuReportIssue": "문제 신고…",
- "menuAbout": "SkellyCam 정보",
+ "menuAbout": "FreeMoCap 정보",
"menuPlayback": "재생",
"videoPlayback": "재생",
"copyLogsToClipboard": "로그를 클립보드에 복사",
diff --git a/freemocap-ui-old/src/i18n/locales/ms-melayu.json b/freemocap-ui-old/src/i18n/locales/ms-melayu.json
index 7c505d5a..b1df0427 100644
--- a/freemocap-ui-old/src/i18n/locales/ms-melayu.json
+++ b/freemocap-ui-old/src/i18n/locales/ms-melayu.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Selamat Datang ke SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Selamat Datang ke FreeMoCap",
"welcomeSubtitle": "Rakam dan Tonton Video Tersegerak",
"sendAnonymousPings": "Hantar ping penggunaan tanpa nama",
"footerWith": "dgn",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Sisihan piawai mengukur jumlah variasi dalam masa bingkai. Nilai lebih rendah menunjukkan prestasi lebih konsisten. Pekali Variasi (CV%) menyatakan kebolehubahan ini sebagai peratusan min, memudahkan perbandingan kestabilan merentasi kadar bingkai berbeza. CV% lebih rendah menunjukkan prestasi lebih stabil.",
"aiTranslatedTooltip": "Terjemahan ini dijana oleh AI dan mungkin mengandungi ralat. Jika anda bertutur bahasa ini, anda boleh membantu memperbaikinya dengan membuka pull request di GitHub!",
"humanValidatedTooltip": "Terjemahan ini telah disemak dan disahkan oleh penterjemah manusia.",
- "helpTranslate": "Bantu terjemah SkellyCam",
+ "helpTranslate": "Bantu terjemah FreeMoCap",
"failedToFetch": "Gagal mendapatkan",
"recordings": "Rakaman",
"noRecordingsFound": "Tiada rakaman ditemui. Masukkan laluan di atas untuk memuat secara manual.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Dokumentasi",
"menuGitHubRepository": "Repositori GitHub",
"menuReportIssue": "Laporkan masalah…",
- "menuAbout": "Tentang SkellyCam",
+ "menuAbout": "Tentang FreeMoCap",
"menuPlayback": "Main balik",
"videoPlayback": "Main Balik",
"copyLogsToClipboard": "Salin log ke papan klip",
diff --git a/freemocap-ui-old/src/i18n/locales/my-myanmar.json b/freemocap-ui-old/src/i18n/locales/my-myanmar.json
index 59bbfab6..401e37de 100644
--- a/freemocap-ui-old/src/i18n/locales/my-myanmar.json
+++ b/freemocap-ui-old/src/i18n/locales/my-myanmar.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "SkellyCam မှ ကြိုဆိုပါသည်",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "FreeMoCap မှ ကြိုဆိုပါသည်",
"welcomeSubtitle": "ချိန်ကိုက်ထားသော ဗီဒီယိုများကို ရိုက်ကူးပြီး ကြည့်ရှုပါ",
"sendAnonymousPings": "အမည်မသိ အသုံးပြုမှု ping များ ပို့ပါ",
"footerWith": "နှင့်",
@@ -211,7 +211,7 @@
"statsStdDevLong": "စံသွေဖည်မှုသည် ဖရိမ် အချိန်များတွင် ကွဲပြားမှု ပမာဏကို တိုင်းတာသည်။ တန်ဖိုး နိမ့်လေ စွမ်းဆောင်ရည် တသမတ်တည်း ကောင်းလေ ဖြစ်သည်။ ကွဲပြားမှု ကိန်းရှင် (CV%) သည် ဤကွဲပြားမှုကို ပျမ်းမျှ၏ ရာခိုင်နှုန်းအဖြစ် ဖော်ပြပြီး မတူညီသော ဖရိမ်နှုန်းများတွင် တည်ငြိမ်မှုကို နှိုင်းယှဉ်ရန် လွယ်ကူစေသည်။ CV% နိမ့်လေ စွမ်းဆောင်ရည် တည်ငြိမ်လေ ဖြစ်သည်။",
"aiTranslatedTooltip": "ဤဘာသာပြန်ကို AI ဖြင့် ဖန်တီးထားပြီး အမှားများ ပါဝင်နိုင်သည်။ ဤဘာသာစကားကို ပြောတတ်ပါက GitHub တွင် pull request ဖွင့်၍ ပိုမိုကောင်းမွန်အောင် ကူညီနိုင်ပါသည်!",
"humanValidatedTooltip": "ဤဘာသာပြန်ကို လူ ဘာသာပြန်သူက စစ်ဆေးပြီး အတည်ပြုထားပါသည်။",
- "helpTranslate": "SkellyCam ဘာသာပြန်ရာတွင် ကူညီပါ",
+ "helpTranslate": "FreeMoCap ဘာသာပြန်ရာတွင် ကူညီပါ",
"failedToFetch": "ရယူရန် မအောင်မြင်ပါ",
"recordings": "ရိုက်ကူးမှုများ",
"noRecordingsFound": "ရိုက်ကူးမှု မတွေ့ပါ။ လက်ဖြင့် တင်ရန် အထက်တွင် လမ်းကြောင်း ထည့်ပါ။",
@@ -239,7 +239,7 @@
"menuDocumentation": "စာရွက်စာတမ်း",
"menuGitHubRepository": "GitHub Repository",
"menuReportIssue": "ပြဿနာတင်ပြ…",
- "menuAbout": "SkellyCam အကြောင်း",
+ "menuAbout": "FreeMoCap အကြောင်း",
"menuPlayback": "ပြန်ဖွင့်",
"videoPlayback": "ပြန်ဖွင့်",
"copyLogsToClipboard": "မှတ်တမ်းများကို ကလစ်ဘုတ်သို့ ကူးယူ",
diff --git a/freemocap-ui-old/src/i18n/locales/ne-nepali.json b/freemocap-ui-old/src/i18n/locales/ne-nepali.json
index e5482a60..de3c232e 100644
--- a/freemocap-ui-old/src/i18n/locales/ne-nepali.json
+++ b/freemocap-ui-old/src/i18n/locales/ne-nepali.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "SkellyCam मा स्वागत छ",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "FreeMoCap मा स्वागत छ",
"welcomeSubtitle": "सिङ्क्रोनाइज गरिएका भिडियोहरू रेकर्ड गर्नुहोस् र हेर्नुहोस्",
"sendAnonymousPings": "अज्ञात प्रयोग पिङहरू पठाउनुहोस्",
"footerWith": "सँग",
@@ -211,7 +211,7 @@
"statsStdDevLong": "मानक विचलनले फ्रेम समयहरूमा भिन्नताको मात्रा मापन गर्छ। कम मानहरूले बढी एकरूप कार्यसम्पादन संकेत गर्छ। भिन्नता गुणांक (CV%) ले यो परिवर्तनशीलतालाई औसतको प्रतिशतको रूपमा व्यक्त गर्छ, विभिन्न फ्रेमरेटहरूमा स्थिरता तुलना गर्न सजिलो बनाउँछ। कम CV% ले बढी स्थिर कार्यसम्पादन संकेत गर्छ।",
"aiTranslatedTooltip": "यो अनुवाद AI द्वारा उत्पन्न गरिएको हो र त्रुटिहरू हुन सक्छ। यदि तपाईं यो भाषा बोल्नुहुन्छ भने, GitHub मा pull request खोलेर सुधार गर्न मद्दत गर्न सक्नुहुन्छ!",
"humanValidatedTooltip": "यो अनुवाद मानव अनुवादकद्वारा समीक्षा र प्रमाणित गरिएको छ।",
- "helpTranslate": "SkellyCam अनुवाद गर्न मद्दत गर्नुहोस्",
+ "helpTranslate": "FreeMoCap अनुवाद गर्न मद्दत गर्नुहोस्",
"failedToFetch": "प्राप्त गर्न असफल",
"recordings": "रेकर्डिङहरू",
"noRecordingsFound": "कुनै रेकर्डिङ भेटिएन। म्यानुअल रूपमा लोड गर्न माथि पथ प्रविष्ट गर्नुहोस्।",
@@ -239,7 +239,7 @@
"menuDocumentation": "कागजात",
"menuGitHubRepository": "GitHub भण्डार",
"menuReportIssue": "समस्या रिपोर्ट गर्नुहोस्…",
- "menuAbout": "SkellyCam बारेमा",
+ "menuAbout": "FreeMoCap बारेमा",
"menuPlayback": "प्लेब्याक",
"videoPlayback": "प्लेब्याक",
"copyLogsToClipboard": "लगहरू क्लिपबोर्डमा कपी गर्नुहोस्",
diff --git a/freemocap-ui-old/src/i18n/locales/nl-nederlands.json b/freemocap-ui-old/src/i18n/locales/nl-nederlands.json
index 7690289b..1f25c80d 100644
--- a/freemocap-ui-old/src/i18n/locales/nl-nederlands.json
+++ b/freemocap-ui-old/src/i18n/locales/nl-nederlands.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Welkom bij SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Welkom bij FreeMoCap",
"welcomeSubtitle": "Neem gesynchroniseerde video's op en bekijk ze",
"sendAnonymousPings": "Anonieme gebruiksgegevens verzenden",
"footerWith": "met",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Rendert ontvangen frames op het scherm.",
"displayTooltipLong": "Weergave toont de UI-renderingprestaties. Het laat zien hoe snel uw scherm frames ontvangt en rendert. Prestatieproblemen hier hebben geen invloed op de opnamekwaliteit maar kunnen uw vermogen om camera's in realtime te monitoren beïnvloeden.",
"statsSourceShort": "Display rendert frames, server vangt frames.",
- "statsSourceLong": "De server is de werkelijke snelheid waarmee frames van de camera worden opgehaald/opgenomen, terwijl weergave de snelheid is waarmee ze worden ontvangen en gerenderd. SkellyCam geeft prioriteit aan serverzijde prestaties voor opnamekwaliteit, dus dat getal zou stabieler moeten blijven. Als de weergave-framerate afwijkt van de server, geeft dit aan dat uw systeembronnen belast zijn. Overweeg minder camera's te gebruiken of framerate/resolutie te verlagen.",
+ "statsSourceLong": "De server is de werkelijke snelheid waarmee frames van de camera worden opgehaald/opgenomen, terwijl weergave de snelheid is waarmee ze worden ontvangen en gerenderd. FreeMoCap geeft prioriteit aan serverzijde prestaties voor opnamekwaliteit, dus dat getal zou stabieler moeten blijven. Als de weergave-framerate afwijkt van de server, geeft dit aan dat uw systeembronnen belast zijn. Overweeg minder camera's te gebruiken of framerate/resolutie te verlagen.",
"statsCurrentShort": "Meest recente frametijd en FPS.",
"statsCurrentLong": "Toont de meest recente meting van hoe lang het duurt om een enkel frame te verwerken (in milliseconden) en de equivalente frames per seconde (FPS). Lagere frametijden en hogere FPS wijzen op betere prestaties.",
"statsMinShort": "Snelste frametijd en hoogste FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Standaarddeviatie meet de spreiding in frametijden. Lagere waarden duiden op consistentere prestaties. De variatiecoëfficiënt (CV%) drukt deze variabiliteit uit als percentage van het gemiddelde, wat het vergelijken van stabiliteit over verschillende framerates vergemakkelijkt. Lagere CV% duidt op stabielere prestaties.",
"aiTranslatedTooltip": "Deze vertaling is gegenereerd door AI en kan fouten bevatten. Als u deze taal spreekt, help ons verbeteren!",
"humanValidatedTooltip": "Deze vertaling is gecontroleerd door een menselijke vertaler.",
- "helpTranslate": "Help SkellyCam vertalen",
+ "helpTranslate": "Help FreeMoCap vertalen",
"failedToFetch": "Ophalen mislukt",
"recordings": "Opnames",
"noRecordingsFound": "Geen opnames gevonden. Voer hierboven een pad in om handmatig te laden.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Documentatie",
"menuGitHubRepository": "GitHub-repository",
"menuReportIssue": "Probleem melden…",
- "menuAbout": "Over SkellyCam",
+ "menuAbout": "Over FreeMoCap",
"menuPlayback": "Afspelen",
"videoPlayback": "Afspelen",
"copyLogsToClipboard": "Logboeken naar klembord kopiëren",
diff --git a/freemocap-ui-old/src/i18n/locales/pl-polski.json b/freemocap-ui-old/src/i18n/locales/pl-polski.json
index c03a9e84..152e38d9 100644
--- a/freemocap-ui-old/src/i18n/locales/pl-polski.json
+++ b/freemocap-ui-old/src/i18n/locales/pl-polski.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Witamy w SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Witamy w FreeMoCap",
"welcomeSubtitle": "Nagrywaj i przeglądaj zsynchronizowane wideo",
"sendAnonymousPings": "Wysyłaj anonimowe dane użycia",
"footerWith": "z",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Renderuje otrzymane klatki na ekranie.",
"displayTooltipLong": "Wyświetlanie reprezentuje wydajność renderowania interfejsu użytkownika. Pokazuje, jak szybko ekran odbiera i renderuje klatki. Problemy z wydajnością tutaj nie wpłyną na jakość nagrania, ale mogą wpłynąć na zdolność monitorowania kamer w czasie rzeczywistym.",
"statsSourceShort": "Wyświetlacz renderuje klatki, serwer je przechwytuje.",
- "statsSourceLong": "Serwer to rzeczywista szybkość, z jaką klatki są pobierane/nagrywane z kamery, podczas gdy wyświetlanie to szybkość ich odbierania i renderowania. SkellyCam priorytetowo traktuje wydajność po stronie serwera dla jakości nagrywania, więc ta liczba powinna być bardziej stabilna. Jeśli częstotliwość klatek wyświetlania odbiega od serwera, oznacza to, że zasoby systemu są obciążone. Rozważ użycie mniejszej liczby kamer lub zmniejszenie częstotliwości klatek/rozdzielczości.",
+ "statsSourceLong": "Serwer to rzeczywista szybkość, z jaką klatki są pobierane/nagrywane z kamery, podczas gdy wyświetlanie to szybkość ich odbierania i renderowania. FreeMoCap priorytetowo traktuje wydajność po stronie serwera dla jakości nagrywania, więc ta liczba powinna być bardziej stabilna. Jeśli częstotliwość klatek wyświetlania odbiega od serwera, oznacza to, że zasoby systemu są obciążone. Rozważ użycie mniejszej liczby kamer lub zmniejszenie częstotliwości klatek/rozdzielczości.",
"statsCurrentShort": "Najnowszy czas klatki i FPS.",
"statsCurrentLong": "Pokazuje najnowszy pomiar czasu przetwarzania jednej klatki (w milisekundach) i odpowiadającą liczbę klatek na sekundę (FPS). Niższe czasy klatek i wyższe FPS wskazują na lepszą wydajność.",
"statsMinShort": "Najkrótszy czas klatki i najwyższe FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Odchylenie standardowe mierzy rozrzut czasów klatek. Niższe wartości wskazują na bardziej spójną wydajność. Współczynnik zmienności (CV%) wyraża tę zmienność jako procent średniej, ułatwiając porównanie stabilności przy różnych częstotliwościach klatek. Niższe CV% oznacza bardziej stabilną wydajność.",
"aiTranslatedTooltip": "To tłumaczenie zostało wygenerowane przez AI i może zawierać błędy. Jeśli mówisz w tym języku, pomóż je ulepszyć!",
"humanValidatedTooltip": "To tłumaczenie zostało zweryfikowane przez tłumacza.",
- "helpTranslate": "Pomóż przetłumaczyć SkellyCam",
+ "helpTranslate": "Pomóż przetłumaczyć FreeMoCap",
"failedToFetch": "Nie udało się pobrać",
"recordings": "Nagrania",
"noRecordingsFound": "Nie znaleziono nagrań. Wprowadź ścieżkę powyżej, aby załadować ręcznie.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Dokumentacja",
"menuGitHubRepository": "Repozytorium GitHub",
"menuReportIssue": "Zgłoś problem…",
- "menuAbout": "O SkellyCam",
+ "menuAbout": "O FreeMoCap",
"menuPlayback": "Odtwarzanie",
"videoPlayback": "Odtwarzanie",
"copyLogsToClipboard": "Kopiuj logi do schowka",
diff --git a/freemocap-ui-old/src/i18n/locales/pt-BR-portugues-brasil.json b/freemocap-ui-old/src/i18n/locales/pt-BR-portugues-brasil.json
index 5c2fb160..f6fe9603 100644
--- a/freemocap-ui-old/src/i18n/locales/pt-BR-portugues-brasil.json
+++ b/freemocap-ui-old/src/i18n/locales/pt-BR-portugues-brasil.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Bem-vindo ao SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Bem-vindo ao FreeMoCap",
"welcomeSubtitle": "Grave e visualize vídeos sincronizados",
"sendAnonymousPings": "Enviar dados de uso anônimos",
"footerWith": "com",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Renderiza quadros recebidos na tela.",
"displayTooltipLong": "A exibição representa o desempenho de renderização da interface do usuário. Mostra a rapidez com que seu display recebe e renderiza quadros. Problemas de desempenho aqui não afetarão a qualidade da gravação, mas podem impactar sua capacidade de monitorar câmeras em tempo real.",
"statsSourceShort": "Exibição renderiza quadros, servidor captura quadros.",
- "statsSourceLong": "O servidor é a taxa real em que os quadros são puxados/gravados da câmera, enquanto a exibição é a taxa em que são recebidos e renderizados. O SkellyCam prioriza o desempenho do lado do servidor para qualidade de gravação, então esse número deve permanecer mais estável. Se o framerate de exibição divergir do servidor, isso indica que os recursos do sistema estão sobrecarregados. Considere usar menos câmeras ou diminuir o framerate/resolução.",
+ "statsSourceLong": "O servidor é a taxa real em que os quadros são puxados/gravados da câmera, enquanto a exibição é a taxa em que são recebidos e renderizados. O FreeMoCap prioriza o desempenho do lado do servidor para qualidade de gravação, então esse número deve permanecer mais estável. Se o framerate de exibição divergir do servidor, isso indica que os recursos do sistema estão sobrecarregados. Considere usar menos câmeras ou diminuir o framerate/resolução.",
"statsCurrentShort": "Tempo de quadro e FPS mais recentes.",
"statsCurrentLong": "Mostra a medição mais recente de quanto tempo leva para processar um único quadro (em milissegundos) e os quadros por segundo (FPS) equivalentes. Tempos de quadro menores e FPS maiores indicam melhor desempenho.",
"statsMinShort": "Tempo de quadro mais rápido e FPS mais alto.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "O desvio padrão mede a variação nos tempos de quadro. Valores menores indicam desempenho mais consistente. O Coeficiente de Variação (CV%) expressa essa variabilidade como porcentagem da média, facilitando a comparação de estabilidade entre diferentes taxas de quadro. CV% menor indica desempenho mais estável.",
"aiTranslatedTooltip": "Esta tradução foi gerada por IA e pode conter erros. Se você fala este idioma, ajude a melhorá-la!",
"humanValidatedTooltip": "Esta tradução foi verificada por um tradutor humano.",
- "helpTranslate": "Ajude a traduzir o SkellyCam",
+ "helpTranslate": "Ajude a traduzir o FreeMoCap",
"failedToFetch": "Falha ao buscar",
"recordings": "Gravações",
"noRecordingsFound": "Nenhuma gravação encontrada. Insira um caminho acima para carregar manualmente.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Documentação",
"menuGitHubRepository": "Repositório GitHub",
"menuReportIssue": "Reportar um problema…",
- "menuAbout": "Sobre o SkellyCam",
+ "menuAbout": "Sobre o FreeMoCap",
"menuPlayback": "Reprodução",
"videoPlayback": "Reprodução",
"copyLogsToClipboard": "Copiar logs para a área de transferência",
diff --git a/freemocap-ui-old/src/i18n/locales/ro-romana.json b/freemocap-ui-old/src/i18n/locales/ro-romana.json
index 56433878..b19bdab4 100644
--- a/freemocap-ui-old/src/i18n/locales/ro-romana.json
+++ b/freemocap-ui-old/src/i18n/locales/ro-romana.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Bun venit la SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Bun venit la FreeMoCap",
"welcomeSubtitle": "Înregistrează și Vizualizează Videoclipuri Sincronizate",
"sendAnonymousPings": "Trimite ping-uri anonime de utilizare",
"footerWith": "cu",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Deviația standard măsoară cantitatea de variație în timpii de cadru. Valorile mai mici indică performanță mai consistentă. Coeficientul de Variație (CV%) exprimă această variabilitate ca procent din medie, facilitând compararea stabilității între rate de cadre diferite. CV% mai mic indică performanță mai stabilă.",
"aiTranslatedTooltip": "Această traducere a fost generată de AI și poate conține erori. Dacă vorbiți această limbă, puteți ajuta la îmbunătățirea ei deschizând un pull request pe GitHub!",
"humanValidatedTooltip": "Această traducere a fost revizuită și validată de un traducător uman.",
- "helpTranslate": "Ajută la traducerea SkellyCam",
+ "helpTranslate": "Ajută la traducerea FreeMoCap",
"failedToFetch": "Obținere eșuată",
"recordings": "Înregistrări",
"noRecordingsFound": "Nicio înregistrare găsită. Introduceți o cale mai sus pentru încărcare manuală.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Documentație",
"menuGitHubRepository": "Depozit GitHub",
"menuReportIssue": "Raportează o problemă…",
- "menuAbout": "Despre SkellyCam",
+ "menuAbout": "Despre FreeMoCap",
"menuPlayback": "Redare",
"videoPlayback": "Redare",
"copyLogsToClipboard": "Copiază jurnalele în clipboard",
diff --git a/freemocap-ui-old/src/i18n/locales/ru-russkiy.json b/freemocap-ui-old/src/i18n/locales/ru-russkiy.json
index 6275b984..14aaaaaa 100644
--- a/freemocap-ui-old/src/i18n/locales/ru-russkiy.json
+++ b/freemocap-ui-old/src/i18n/locales/ru-russkiy.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Добро пожаловать в SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Добро пожаловать в FreeMoCap",
"welcomeSubtitle": "Записывайте и просматривайте синхронизированные видео",
"sendAnonymousPings": "Отправлять анонимные данные об использовании",
"footerWith": "с",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Отображает полученные кадры на экране.",
"displayTooltipLong": "Дисплей отображает производительность рендеринга пользовательского интерфейса. Показывает, насколько быстро ваш дисплей получает и отрисовывает кадры. Проблемы с производительностью здесь не повлияют на качество записи, но могут повлиять на возможность мониторинга камер в реальном времени.",
"statsSourceShort": "Дисплей рендерит кадры, сервер захватывает кадры.",
- "statsSourceLong": "Сервер — это реальная скорость, с которой кадры извлекаются/записываются с камеры, а дисплей — скорость их приёма и отрисовки. SkellyCam отдаёт приоритет серверной производительности для качества записи, поэтому это значение должно оставаться более стабильным. Если частота кадров дисплея расходится с сервером, это указывает на нехватку системных ресурсов. Рассмотрите возможность использования меньшего количества камер или снижения частоты кадров/разрешения.",
+ "statsSourceLong": "Сервер — это реальная скорость, с которой кадры извлекаются/записываются с камеры, а дисплей — скорость их приёма и отрисовки. FreeMoCap отдаёт приоритет серверной производительности для качества записи, поэтому это значение должно оставаться более стабильным. Если частота кадров дисплея расходится с сервером, это указывает на нехватку системных ресурсов. Рассмотрите возможность использования меньшего количества камер или снижения частоты кадров/разрешения.",
"statsCurrentShort": "Последнее время кадра и FPS.",
"statsCurrentLong": "Показывает последнее измерение времени обработки одного кадра (в миллисекундах) и соответствующее количество кадров в секунду (FPS). Более низкое время кадра и более высокий FPS указывают на лучшую производительность.",
"statsMinShort": "Минимальное время кадра и максимальный FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Стандартное отклонение измеряет разброс времён кадров. Более низкие значения указывают на более стабильную производительность. Коэффициент вариации (CV%) выражает эту изменчивость как процент от среднего, что упрощает сравнение стабильности при разных частотах кадров. Более низкий CV% указывает на более стабильную производительность.",
"aiTranslatedTooltip": "Этот перевод создан ИИ и может содержать ошибки. Если вы говорите на этом языке, помогите улучшить его!",
"humanValidatedTooltip": "Этот перевод проверен переводчиком-человеком.",
- "helpTranslate": "Помогите перевести SkellyCam",
+ "helpTranslate": "Помогите перевести FreeMoCap",
"failedToFetch": "Не удалось загрузить",
"recordings": "Записи",
"noRecordingsFound": "Записей не найдено. Введите путь выше для загрузки вручную.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Документация",
"menuGitHubRepository": "Репозиторий GitHub",
"menuReportIssue": "Сообщить о проблеме…",
- "menuAbout": "О SkellyCam",
+ "menuAbout": "О FreeMoCap",
"menuPlayback": "Воспроизведение",
"videoPlayback": "Воспроизведение",
"copyLogsToClipboard": "Копировать логи в буфер обмена",
diff --git a/freemocap-ui-old/src/i18n/locales/si-sinhala.json b/freemocap-ui-old/src/i18n/locales/si-sinhala.json
index 4e4e1b38..4c8a7de5 100644
--- a/freemocap-ui-old/src/i18n/locales/si-sinhala.json
+++ b/freemocap-ui-old/src/i18n/locales/si-sinhala.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "SkellyCam වෙත සාදරයෙන් පිළිගනිමු",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "FreeMoCap වෙත සාදරයෙන් පිළිගනිමු",
"welcomeSubtitle": "සමමුහුර්ත වීඩියෝ පටිගත කර බලන්න",
"sendAnonymousPings": "නිර්නාමික භාවිත ping යවන්න",
"footerWith": "සමඟ",
@@ -211,7 +211,7 @@
"statsStdDevLong": "සම්මත අපගමනය රාමු කාලවල විචලන ප්‍රමාණය මනිනවා. අඩු අගයන් වඩාත් ස්ථාවර කාර්යසාධනය දක්වයි. විචලන සංගුණකය (CV%) මෙම විචලනය මධ්‍යන්‍යයේ ප්‍රතිශතයක් ලෙස ප්‍රකාශ කරයි, විවිධ රාමු අනුපාතවල ස්ථායිතාව සංසන්දනය කිරීම පහසු කරයි. අඩු CV% වඩාත් ස්ථායී කාර්යසාධනය දක්වයි.",
"aiTranslatedTooltip": "මෙම පරිවර්තනය AI මඟින් ජනනය කරන ලද අතර දෝෂ අඩංගු විය හැක. ඔබ මෙම භාෂාව කතා කරන්නේ නම්, GitHub හි pull request එකක් විවෘත කිරීමෙන් වැඩිදියුණු කිරීමට උපකාර කළ හැක!",
"humanValidatedTooltip": "මෙම පරිවර්තනය මිනිස් පරිවර්තකයෙකු විසින් සමාලෝචනය කර තහවුරු කර ඇත.",
- "helpTranslate": "SkellyCam පරිවර්තනය කිරීමට උපකාර කරන්න",
+ "helpTranslate": "FreeMoCap පරිවර්තනය කිරීමට උපකාර කරන්න",
"failedToFetch": "ලබා ගැනීමට අසමත් විය",
"recordings": "පටිගත කිරීම්",
"noRecordingsFound": "පටිගත කිරීම් හමු නොවීය. අතින් පූරණය කිරීමට ඉහත මාර්ගයක් ඇතුළත් කරන්න.",
@@ -239,7 +239,7 @@
"menuDocumentation": "ලේඛනකරණය",
"menuGitHubRepository": "GitHub ගබඩාව",
"menuReportIssue": "ගැටලුවක් වාර්තා කරන්න…",
- "menuAbout": "SkellyCam ගැන",
+ "menuAbout": "FreeMoCap ගැන",
"menuPlayback": "නැවත ධාවනය",
"videoPlayback": "නැවත ධාවනය",
"copyLogsToClipboard": "ලොග් පසුරු පුවරුවට පිටපත් කරන්න",
diff --git a/freemocap-ui-old/src/i18n/locales/sr-srpski.json b/freemocap-ui-old/src/i18n/locales/sr-srpski.json
index 669be30b..264da965 100644
--- a/freemocap-ui-old/src/i18n/locales/sr-srpski.json
+++ b/freemocap-ui-old/src/i18n/locales/sr-srpski.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Добро дошли у SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Добро дошли у FreeMoCap",
"welcomeSubtitle": "Снимајте и гледајте синхронизоване видео записе",
"sendAnonymousPings": "Шаљи анонимне пингове коришћења",
"footerWith": "са",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Стандардна девијација мери количину варијације у временима кадрова. Ниже вредности указују на конзистентније перформансе. Коефицијент варијације (CV%) изражава ову варијабилност као проценат средње вредности, олакшавајући поређење стабилности на различитим брзинама кадрова. Нижи CV% указује на стабилније перформансе.",
"aiTranslatedTooltip": "Овај превод је генерисан помоћу вештачке интелигенције и може садржати грешке. Ако говорите овај језик, можете помоћи да га побољшате отварањем pull request-а на GitHub-у!",
"humanValidatedTooltip": "Овај превод је прегледан и валидиран од стране људског преводиоца.",
- "helpTranslate": "Помозите у превођењу SkellyCam-а",
+ "helpTranslate": "Помозите у превођењу FreeMoCap-а",
"failedToFetch": "Преузимање неуспешно",
"recordings": "Снимци",
"noRecordingsFound": "Нема пронађених снимака. Унесите путању изнад за ручно учитавање.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Документација",
"menuGitHubRepository": "GitHub складиште",
"menuReportIssue": "Пријавите проблем…",
- "menuAbout": "О SkellyCam-у",
+ "menuAbout": "О FreeMoCap-у",
"menuPlayback": "Репродукција",
"videoPlayback": "Репродукција",
"copyLogsToClipboard": "Копирај логове у клипборд",
diff --git a/freemocap-ui-old/src/i18n/locales/sv-svenska.json b/freemocap-ui-old/src/i18n/locales/sv-svenska.json
index 2c9e5ab1..23fc4c87 100644
--- a/freemocap-ui-old/src/i18n/locales/sv-svenska.json
+++ b/freemocap-ui-old/src/i18n/locales/sv-svenska.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Välkommen till SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Välkommen till FreeMoCap",
"welcomeSubtitle": "Spela in och visa synkroniserade videor",
"sendAnonymousPings": "Skicka anonym användningsdata",
"footerWith": "med",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Renderar mottagna bildrutor på skärmen.",
"displayTooltipLong": "Visningen representerar UI-renderingsprestanda. Den visar hur snabbt din skärm tar emot och renderar bildrutor. Prestandaproblem här påverkar inte inspelningskvaliteten men kan påverka din förmåga att övervaka kameror i realtid.",
"statsSourceShort": "Display renderar bilder, servern fångar bilder.",
- "statsSourceLong": "Servern är den faktiska hastigheten som bildrutor hämtas/spelas in från kameran, medan visningen är hastigheten de tas emot och renderas. SkellyCam prioriterar serversidans prestanda för inspelningskvalitet, så det numret bör förbli mer stabilt. Om visningens bildfrekvens avviker från servern indikerar det att dina systemresurser är belastade. Överväg att använda färre kameror eller minska bildfrekvens/upplösning.",
+ "statsSourceLong": "Servern är den faktiska hastigheten som bildrutor hämtas/spelas in från kameran, medan visningen är hastigheten de tas emot och renderas. FreeMoCap prioriterar serversidans prestanda för inspelningskvalitet, så det numret bör förbli mer stabilt. Om visningens bildfrekvens avviker från servern indikerar det att dina systemresurser är belastade. Överväg att använda färre kameror eller minska bildfrekvens/upplösning.",
"statsCurrentShort": "Senaste bildtid och FPS.",
"statsCurrentLong": "Visar den senaste mätningen av hur lång tid det tar att behandla en enskild bildruta (i millisekunder) och motsvarande bildrutor per sekund (FPS). Lägre bildrutetider och högre FPS indikerar bättre prestanda.",
"statsMinShort": "Snabbaste bildtid och högsta FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Standardavvikelsen mäter variationen i bildrutetider. Lägre värden indikerar mer konsekvent prestanda. Variationskoefficienten (CV%) uttrycker denna variabilitet som en procent av medelvärdet, vilket underlättar jämförelse av stabilitet över olika bildhastigheter. Lägre CV% indikerar mer stabil prestanda.",
"aiTranslatedTooltip": "Denna översättning genererades av AI och kan innehålla fel. Om du talar detta språk, hjälp oss förbättra den!",
"humanValidatedTooltip": "Denna översättning har granskats av en mänsklig översättare.",
- "helpTranslate": "Hjälp till att översätta SkellyCam",
+ "helpTranslate": "Hjälp till att översätta FreeMoCap",
"failedToFetch": "Hämtning misslyckades",
"recordings": "Inspelningar",
"noRecordingsFound": "Inga inspelningar hittades. Ange en sökväg ovan för att ladda manuellt.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Dokumentation",
"menuGitHubRepository": "GitHub-förråd",
"menuReportIssue": "Rapportera ett problem…",
- "menuAbout": "Om SkellyCam",
+ "menuAbout": "Om FreeMoCap",
"menuPlayback": "Uppspelning",
"videoPlayback": "Uppspelning",
"copyLogsToClipboard": "Kopiera loggar till urklipp",
diff --git a/freemocap-ui-old/src/i18n/locales/sw-kiswahili.json b/freemocap-ui-old/src/i18n/locales/sw-kiswahili.json
index 8ae10bca..4b78b173 100644
--- a/freemocap-ui-old/src/i18n/locales/sw-kiswahili.json
+++ b/freemocap-ui-old/src/i18n/locales/sw-kiswahili.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Karibu SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Karibu FreeMoCap",
"welcomeSubtitle": "Rekodi na Utazame Video Zilizosawazishwa",
"sendAnonymousPings": "Tuma pings za matumizi bila kutambulishwa",
"footerWith": "na",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Kupotoka kwa kawaida kunapima kiasi cha tofauti katika nyakati za fremu. Thamani za chini zinaonyesha utendaji thabiti zaidi. Mgawo wa Tofauti (CV%) unaeleza utofauti huu kama asilimia ya wastani, na kurahisisha kulinganisha uthabiti kati ya viwango tofauti vya fremu. CV% ya chini inaonyesha utendaji thabiti zaidi.",
"aiTranslatedTooltip": "Tafsiri hii imezalishwa na AI na inaweza kuwa na makosa. Ikiwa unazungumza lugha hii, unaweza kusaidia kuiboresha kwa kufungua pull request kwenye GitHub!",
"humanValidatedTooltip": "Tafsiri hii imekaguliwa na kuthibitishwa na mtafsiri binadamu.",
- "helpTranslate": "Saidia kutafsiri SkellyCam",
+ "helpTranslate": "Saidia kutafsiri FreeMoCap",
"failedToFetch": "Imeshindwa kupata",
"recordings": "Rekodi",
"noRecordingsFound": "Hakuna rekodi zilizopatikana. Ingiza njia hapo juu kupakia kwa mikono.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Nyaraka",
"menuGitHubRepository": "Hifadhi ya GitHub",
"menuReportIssue": "Ripoti tatizo…",
- "menuAbout": "Kuhusu SkellyCam",
+ "menuAbout": "Kuhusu FreeMoCap",
"menuPlayback": "Cheza upya",
"videoPlayback": "Uchezaji",
"copyLogsToClipboard": "Nakili kumbukumbu kwenye ubao wa kunakili",
diff --git a/freemocap-ui-old/src/i18n/locales/ta-tamil.json b/freemocap-ui-old/src/i18n/locales/ta-tamil.json
index 66714458..8987bf23 100644
--- a/freemocap-ui-old/src/i18n/locales/ta-tamil.json
+++ b/freemocap-ui-old/src/i18n/locales/ta-tamil.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "SkellyCam-க்கு வரவேற்கிறோம்",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "FreeMoCap-க்கு வரவேற்கிறோம்",
"welcomeSubtitle": "ஒத்திசைக்கப்பட்ட வீடியோக்களைப் பதிவுசெய்து பாருங்கள்",
"sendAnonymousPings": "அநாமதேய பயன்பாட்டு பிங்குகளை அனுப்பு",
"footerWith": "உடன்",
@@ -211,7 +211,7 @@
"statsStdDevLong": "நிலையான விலகல் பிரேம் நேரங்களில் உள்ள மாறுபாட்டின் அளவை அளவிடுகிறது. குறைந்த மதிப்புகள் நிலையான செயல்திறனைக் குறிக்கிறது. மாறுபாட்டுக் குணகம் (CV%) இந்த மாறுபாட்டை சராசரியின் சதவிகிதமாக வெளிப்படுத்துகிறது, வெவ்வேறு பிரேம் வேகங்களில் நிலைத்தன்மையை ஒப்பிடுவதை எளிதாக்குகிறது. குறைந்த CV% நிலையான செயல்திறனைக் குறிக்கிறது.",
"aiTranslatedTooltip": "இந்த மொழிபெயர்ப்பு AI ஆல் உருவாக்கப்பட்டது மற்றும் பிழைகள் இருக்கலாம். நீங்கள் இந்த மொழி பேசினால், GitHub இல் pull request திறந்து மேம்படுத்த உதவலாம்!",
"humanValidatedTooltip": "இந்த மொழிபெயர்ப்பு மனித மொழிபெயர்ப்பாளரால் மதிப்பாய்வு செய்யப்பட்டு சரிபார்க்கப்பட்டது.",
- "helpTranslate": "SkellyCam மொழிபெயர்க்க உதவுங்கள்",
+ "helpTranslate": "FreeMoCap மொழிபெயர்க்க உதவுங்கள்",
"failedToFetch": "பெற இயலவில்லை",
"recordings": "பதிவுகள்",
"noRecordingsFound": "பதிவுகள் எதுவும் கிடைக்கவில்லை. கைமுறையாக ஏற்ற மேலே ஒரு பாதையை உள்ளிடுக.",
@@ -239,7 +239,7 @@
"menuDocumentation": "ஆவணமாக்கல்",
"menuGitHubRepository": "GitHub களஞ்சியம்",
"menuReportIssue": "சிக்கலைப் புகாரளி…",
- "menuAbout": "SkellyCam பற்றி",
+ "menuAbout": "FreeMoCap பற்றி",
"menuPlayback": "பின்னோக்கி இயக்கு",
"videoPlayback": "மீளியக்கம்",
"copyLogsToClipboard": "பதிவுகளை கிளிப்போர்டுக்கு நகலெடு",
diff --git a/freemocap-ui-old/src/i18n/locales/th-thai.json b/freemocap-ui-old/src/i18n/locales/th-thai.json
index 7d9dfc1d..056516a4 100644
--- a/freemocap-ui-old/src/i18n/locales/th-thai.json
+++ b/freemocap-ui-old/src/i18n/locales/th-thai.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "ยินดีต้อนรับสู่ SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "ยินดีต้อนรับสู่ FreeMoCap",
"welcomeSubtitle": "บันทึกและดูวิดีโอที่ซิงค์",
"sendAnonymousPings": "ส่งข้อมูลการใช้งานแบบไม่ระบุตัวตน",
"footerWith": "ด้วย",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "เรนเดอร์เฟรมที่ได้รับบนหน้าจอ",
"displayTooltipLong": "จอแสดงผลแสดงประสิทธิภาพการเรนเดอร์ UI แสดงให้เห็นว่าจอแสดงผลของคุณรับและเรนเดอร์เฟรมได้เร็วแค่ไหน ปัญหาประสิทธิภาพที่นี่จะไม่ส่งผลต่อคุณภาพการบันทึก แต่อาจส่งผลต่อความสามารถในการตรวจสอบกล้องแบบเรียลไทม์",
"statsSourceShort": "จอแสดงผลเรนเดอร์เฟรม เซิร์ฟเวอร์จับเฟรม",
- "statsSourceLong": "เซิร์ฟเวอร์คืออัตราจริงที่เฟรมถูกดึง/บันทึกจากกล้อง ในขณะที่จอแสดงผลคืออัตราที่ได้รับและเรนเดอร์ SkellyCam ให้ความสำคัญกับประสิทธิภาพฝั่งเซิร์ฟเวอร์เพื่อคุณภาพการบันทึก ดังนั้นตัวเลขนั้นควรจะเสถียรกว่า หากเฟรมเรทการแสดงผลแตกต่างจากเซิร์ฟเวอร์ แสดงว่าทรัพยากรระบบของคุณถูกใช้งานหนัก ลองใช้กล้องน้อยลงหรือลดเฟรมเรท/ความละเอียด",
+ "statsSourceLong": "เซิร์ฟเวอร์คืออัตราจริงที่เฟรมถูกดึง/บันทึกจากกล้อง ในขณะที่จอแสดงผลคืออัตราที่ได้รับและเรนเดอร์ FreeMoCap ให้ความสำคัญกับประสิทธิภาพฝั่งเซิร์ฟเวอร์เพื่อคุณภาพการบันทึก ดังนั้นตัวเลขนั้นควรจะเสถียรกว่า หากเฟรมเรทการแสดงผลแตกต่างจากเซิร์ฟเวอร์ แสดงว่าทรัพยากรระบบของคุณถูกใช้งานหนัก ลองใช้กล้องน้อยลงหรือลดเฟรมเรท/ความละเอียด",
"statsCurrentShort": "เวลาเฟรมและ FPS ล่าสุด",
"statsCurrentLong": "แสดงการวัดล่าสุดของเวลาที่ใช้ในการประมวลผลเฟรมเดียว (เป็นมิลลิวินาที) และเฟรมต่อวินาที (FPS) ที่เทียบเท่า เวลาเฟรมต่ำกว่าและ FPS สูงกว่าบ่งบอกถึงประสิทธิภาพที่ดีกว่า",
"statsMinShort": "เวลาเฟรมเร็วที่สุดและ FPS สูงสุด",
@@ -211,7 +211,7 @@
"statsStdDevLong": "ส่วนเบี่ยงเบนมาตรฐานวัดปริมาณการเปลี่ยนแปลงในเวลาเฟรม ค่าต่ำกว่าบ่งบอกถึงประสิทธิภาพที่สม่ำเสมอมากขึ้น สัมประสิทธิ์การแปรผัน (CV%) แสดงความแปรปรวนนี้เป็นเปอร์เซ็นต์ของค่าเฉลี่ย ทำให้ง่ายต่อการเปรียบเทียบความเสถียรข้ามเฟรมเรทต่างๆ CV% ต่ำกว่าบ่งบอกถึงประสิทธิภาพที่เสถียรกว่า",
"aiTranslatedTooltip": "การแปลนี้สร้างโดย AI และอาจมีข้อผิดพลาด หากคุณพูดภาษานี้ ช่วยปรับปรุงได้!",
"humanValidatedTooltip": "การแปลนี้ได้รับการตรวจสอบโดยนักแปล",
- "helpTranslate": "ช่วยแปล SkellyCam",
+ "helpTranslate": "ช่วยแปล FreeMoCap",
"failedToFetch": "ดึงข้อมูลล้มเหลว",
"recordings": "การบันทึก",
"noRecordingsFound": "ไม่พบการบันทึก กรุณาป้อนเส้นทางด้านบนเพื่อโหลดด้วยตนเอง",
@@ -239,7 +239,7 @@
"menuDocumentation": "เอกสาร",
"menuGitHubRepository": "GitHub Repository",
"menuReportIssue": "รายงานปัญหา…",
- "menuAbout": "เกี่ยวกับ SkellyCam",
+ "menuAbout": "เกี่ยวกับ FreeMoCap",
"menuPlayback": "เล่นย้อน",
"videoPlayback": "เล่นย้อนหลัง",
"copyLogsToClipboard": "คัดลอกบันทึกไปยังคลิปบอร์ด",
diff --git a/freemocap-ui-old/src/i18n/locales/tl-tagalog.json b/freemocap-ui-old/src/i18n/locales/tl-tagalog.json
index e9a521e5..fa2a24a0 100644
--- a/freemocap-ui-old/src/i18n/locales/tl-tagalog.json
+++ b/freemocap-ui-old/src/i18n/locales/tl-tagalog.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Maligayang pagdating sa SkellyCam",
+ "appName": "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",
"footerWith": "kasama ang",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Sinusukat ng standard deviation ang dami ng variation sa mga frame time. Ang mas mababang halaga ay nagpapahiwatig ng mas consistent na performance. Ang Coefficient of Variation (CV%) ay nagpapahayag ng variability na ito bilang porsyento ng mean, na nagpapadali ng paghahambing ng stability sa iba't ibang frame rate. Ang mas mababang CV% ay nagpapahiwatig ng mas stable na performance.",
"aiTranslatedTooltip": "Ang pagsasaling ito ay nabuo ng AI at maaaring may mga pagkakamali. Kung nagsasalita ka ng wikang ito, makakatulong ka sa pagpapabuti nito sa pamamagitan ng pagbukas ng pull request sa GitHub!",
"humanValidatedTooltip": "Ang pagsasaling ito ay nasuri at na-validate ng isang taong tagapagsalin.",
- "helpTranslate": "Tumulong magsalin ng SkellyCam",
+ "helpTranslate": "Tumulong magsalin ng FreeMoCap",
"failedToFetch": "Hindi nakuha",
"recordings": "Mga Recording",
"noRecordingsFound": "Walang nakitang recording. Mag-enter ng path sa itaas para manual na mag-load.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Dokumentasyon",
"menuGitHubRepository": "GitHub Repository",
"menuReportIssue": "Mag-ulat ng isyu…",
- "menuAbout": "Tungkol sa SkellyCam",
+ "menuAbout": "Tungkol sa FreeMoCap",
"menuPlayback": "Playback",
"videoPlayback": "Pag-playback",
"copyLogsToClipboard": "Kopyahin ang mga log sa clipboard",
diff --git a/freemocap-ui-old/src/i18n/locales/tr-turkce.json b/freemocap-ui-old/src/i18n/locales/tr-turkce.json
index ad292e98..daf5acb7 100644
--- a/freemocap-ui-old/src/i18n/locales/tr-turkce.json
+++ b/freemocap-ui-old/src/i18n/locales/tr-turkce.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "SkellyCam'e Hoş Geldiniz",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "FreeMoCap'e Hoş Geldiniz",
"welcomeSubtitle": "Senkronize videoları kaydedin ve izleyin",
"sendAnonymousPings": "Anonim kullanım verileri gönder",
"footerWith": "ile",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Alınan kareleri ekranda işler.",
"displayTooltipLong": "Ekran, kullanıcı arayüzü işleme performansını temsil eder. Ekranınızın kareleri ne kadar hızlı aldığını ve işlediğini gösterir. Buradaki performans sorunları kayıt kalitesini etkilemez ancak kameraları gerçek zamanlı izleme yeteneğinizi etkileyebilir.",
"statsSourceShort": "Ekran kareleri işler, sunucu kareleri yakalar.",
- "statsSourceLong": "Sunucu, kameradan karelerin çekildiği/kaydedildiği gerçek hızdır; ekran ise alınma ve işlenme hızıdır. SkellyCam kayıt kalitesi için sunucu tarafı performansına öncelik verir, bu nedenle bu sayı daha kararlı kalmalıdır. Ekran kare hızı sunucudan saparsa, sistem kaynaklarınızın zorlandığını gösterir. Daha az kamera kullanmayı veya kare hızı/çözünürlüğü düşürmeyi düşünün.",
+ "statsSourceLong": "Sunucu, kameradan karelerin çekildiği/kaydedildiği gerçek hızdır; ekran ise alınma ve işlenme hızıdır. FreeMoCap kayıt kalitesi için sunucu tarafı performansına öncelik verir, bu nedenle bu sayı daha kararlı kalmalıdır. Ekran kare hızı sunucudan saparsa, sistem kaynaklarınızın zorlandığını gösterir. Daha az kamera kullanmayı veya kare hızı/çözünürlüğü düşürmeyi düşünün.",
"statsCurrentShort": "En son kare süresi ve FPS.",
"statsCurrentLong": "Tek bir karenin işlenmesi için gereken sürenin (milisaniye cinsinden) ve karşılık gelen saniyedeki kare sayısının (FPS) en son ölçümünü gösterir. Daha düşük kare süreleri ve daha yüksek FPS daha iyi performans gösterir.",
"statsMinShort": "En hızlı kare süresi ve en yüksek FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Standart sapma, kare sürelerindeki değişim miktarını ölçer. Daha düşük değerler daha tutarlı performans gösterir. Değişim Katsayısı (CV%) bu değişkenliği ortalamanın yüzdesi olarak ifade eder, farklı kare hızları arasında kararlılık karşılaştırmasını kolaylaştırır. Daha düşük CV% daha kararlı performans gösterir.",
"aiTranslatedTooltip": "Bu çeviri yapay zeka tarafından oluşturuldu ve hatalar içerebilir. Bu dili konuşuyorsanız iyileştirmeye yardım edin!",
"humanValidatedTooltip": "Bu çeviri bir insan çevirmen tarafından doğrulanmıştır.",
- "helpTranslate": "SkellyCam çevirisine yardım edin",
+ "helpTranslate": "FreeMoCap çevirisine yardım edin",
"failedToFetch": "Veri alınamadı",
"recordings": "Kayıtlar",
"noRecordingsFound": "Kayıt bulunamadı. Manuel olarak yüklemek için yukarıya bir yol girin.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Dokümantasyon",
"menuGitHubRepository": "GitHub deposu",
"menuReportIssue": "Sorun bildir…",
- "menuAbout": "SkellyCam hakkında",
+ "menuAbout": "FreeMoCap hakkında",
"menuPlayback": "Oynatma",
"videoPlayback": "Oynatma",
"copyLogsToClipboard": "Günlükleri panoya kopyala",
diff --git a/freemocap-ui-old/src/i18n/locales/uk-ukrainska.json b/freemocap-ui-old/src/i18n/locales/uk-ukrainska.json
index 247b6ff9..e3ca3edf 100644
--- a/freemocap-ui-old/src/i18n/locales/uk-ukrainska.json
+++ b/freemocap-ui-old/src/i18n/locales/uk-ukrainska.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Ласкаво просимо до SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "Ласкаво просимо до FreeMoCap",
"welcomeSubtitle": "Записуйте та переглядайте синхронізовані відео",
"sendAnonymousPings": "Надсилати анонімні дані використання",
"footerWith": "з",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Відображає отримані кадри на екрані.",
"displayTooltipLong": "Дисплей відображає продуктивність рендерингу інтерфейсу користувача. Показує, наскільки швидко ваш дисплей отримує та відтворює кадри. Проблеми з продуктивністю тут не вплинуть на якість запису, але можуть вплинути на можливість моніторингу камер у реальному часі.",
"statsSourceShort": "Дисплей рендерить кадри, сервер захоплює кадри.",
- "statsSourceLong": "Сервер — це реальна швидкість, з якою кадри отримуються/записуються з камери, а дисплей — швидкість їх отримання та відтворення. SkellyCam пріоритизує серверну продуктивність для якості запису, тому це значення повинно залишатися стабільнішим. Якщо частота кадрів дисплея відхиляється від сервера, це вказує на навантаження системних ресурсів. Розгляньте використання меншої кількості камер або зниження частоти кадрів/роздільної здатності.",
+ "statsSourceLong": "Сервер — це реальна швидкість, з якою кадри отримуються/записуються з камери, а дисплей — швидкість їх отримання та відтворення. FreeMoCap пріоритизує серверну продуктивність для якості запису, тому це значення повинно залишатися стабільнішим. Якщо частота кадрів дисплея відхиляється від сервера, це вказує на навантаження системних ресурсів. Розгляньте використання меншої кількості камер або зниження частоти кадрів/роздільної здатності.",
"statsCurrentShort": "Останній час кадру та FPS.",
"statsCurrentLong": "Показує останнє вимірювання часу обробки одного кадру (у мілісекундах) та відповідну кількість кадрів на секунду (FPS). Нижчий час кадру та вищий FPS вказують на кращу продуктивність.",
"statsMinShort": "Найшвидший час кадру та найвищий FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Стандартне відхилення вимірює розкид часів кадрів. Нижчі значення вказують на стабільнішу продуктивність. Коефіцієнт варіації (CV%) виражає цю мінливість як відсоток від середнього, що спрощує порівняння стабільності при різних частотах кадрів. Нижчий CV% вказує на стабільнішу продуктивність.",
"aiTranslatedTooltip": "Цей переклад створений ШІ і може містити помилки. Якщо ви володієте цією мовою, допоможіть покращити його!",
"humanValidatedTooltip": "Цей переклад перевірено перекладачем.",
- "helpTranslate": "Допоможіть перекласти SkellyCam",
+ "helpTranslate": "Допоможіть перекласти FreeMoCap",
"failedToFetch": "Не вдалося отримати",
"recordings": "Записи",
"noRecordingsFound": "Записів не знайдено. Введіть шлях вище для завантаження вручну.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Документація",
"menuGitHubRepository": "Репозиторій GitHub",
"menuReportIssue": "Повідомити про помилку…",
- "menuAbout": "Про SkellyCam",
+ "menuAbout": "Про FreeMoCap",
"menuPlayback": "Відтворення",
"videoPlayback": "Відтворення",
"copyLogsToClipboard": "Копіювати журнали в буфер обміну",
diff --git a/freemocap-ui-old/src/i18n/locales/ur-urdu.json b/freemocap-ui-old/src/i18n/locales/ur-urdu.json
index 8625e662..92a7f0f6 100644
--- a/freemocap-ui-old/src/i18n/locales/ur-urdu.json
+++ b/freemocap-ui-old/src/i18n/locales/ur-urdu.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "SkellyCam میں خوش آمدید",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "FreeMoCap میں خوش آمدید",
"welcomeSubtitle": "ہم آہنگ ویڈیوز ریکارڈ اور دیکھیں",
"sendAnonymousPings": "گمنام استعمال کے پنگ بھیجیں",
"footerWith": "کے ساتھ",
@@ -211,7 +211,7 @@
"statsStdDevLong": "معیاری انحراف فریم ٹائمز میں تغیر کی مقدار ناپتا ہے۔ کم قدریں زیادہ مستقل کارکردگی کی نشاندہی کرتی ہیں۔ تغیر کا گتانک (CV%) اس تغیر پذیری کو اوسط کے فیصد کے طور پر ظاہر کرتا ہے، مختلف فریم ریٹس میں استحکام کا موازنہ آسان بناتا ہے۔ کم CV% زیادہ مستحکم کارکردگی کی نشاندہی کرتا ہے۔",
"aiTranslatedTooltip": "یہ ترجمہ AI کے ذریعے تیار کیا گیا ہے اور اس میں غلطیاں ہو سکتی ہیں۔ اگر آپ یہ زبان بولتے ہیں تو GitHub پر pull request کھول کر اسے بہتر بنانے میں مدد کر سکتے ہیں!",
"humanValidatedTooltip": "اس ترجمے کا انسانی مترجم نے جائزہ لیا اور تصدیق کی ہے۔",
- "helpTranslate": "SkellyCam کا ترجمہ کرنے میں مدد کریں",
+ "helpTranslate": "FreeMoCap کا ترجمہ کرنے میں مدد کریں",
"failedToFetch": "حاصل کرنے میں ناکام",
"recordings": "ریکارڈنگز",
"noRecordingsFound": "کوئی ریکارڈنگ نہیں ملی۔ دستی طور پر لوڈ کرنے کے لیے اوپر راستہ درج کریں۔",
@@ -239,7 +239,7 @@
"menuDocumentation": "دستاویزات",
"menuGitHubRepository": "GitHub ریپوزٹری",
"menuReportIssue": "مسئلے کی اطلاع دیں…",
- "menuAbout": "SkellyCam کے بارے میں",
+ "menuAbout": "FreeMoCap کے بارے میں",
"menuPlayback": "پلے بیک",
"videoPlayback": "پلے بیک",
"copyLogsToClipboard": "لاگز کلپ بورڈ پر کاپی کریں",
diff --git a/freemocap-ui-old/src/i18n/locales/vi-tieng-viet.json b/freemocap-ui-old/src/i18n/locales/vi-tieng-viet.json
index 94872f30..8506a12e 100644
--- a/freemocap-ui-old/src/i18n/locales/vi-tieng-viet.json
+++ b/freemocap-ui-old/src/i18n/locales/vi-tieng-viet.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-23"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "Chào mừng đến với SkellyCam",
+ "appName": "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",
"footerWith": "với",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "Render các khung nhận được lên màn hình.",
"displayTooltipLong": "Hiển thị thể hiện hiệu suất render giao diện người dùng. Cho thấy màn hình của bạn nhận và render khung hình nhanh đến mức nào. Vấn đề hiệu suất ở đây sẽ không ảnh hưởng đến chất lượng ghi hình nhưng có thể ảnh hưởng đến khả năng giám sát camera theo thời gian thực.",
"statsSourceShort": "Hiển thị render khung, máy chủ chụp khung.",
- "statsSourceLong": "Máy chủ là tốc độ thực tế mà khung hình được kéo/ghi từ camera, trong khi hiển thị là tốc độ nhận và render chúng. SkellyCam ưu tiên hiệu suất phía máy chủ cho chất lượng ghi hình, vì vậy con số đó sẽ ổn định hơn. Nếu tốc độ khung hình hiển thị lệch so với máy chủ, điều này cho thấy tài nguyên hệ thống đang bị quá tải. Hãy cân nhắc sử dụng ít camera hơn hoặc giảm tốc độ khung hình/độ phân giải.",
+ "statsSourceLong": "Máy chủ là tốc độ thực tế mà khung hình được kéo/ghi từ camera, trong khi hiển thị là tốc độ nhận và render chúng. FreeMoCap ưu tiên hiệu suất phía máy chủ cho chất lượng ghi hình, vì vậy con số đó sẽ ổn định hơn. Nếu tốc độ khung hình hiển thị lệch so với máy chủ, điều này cho thấy tài nguyên hệ thống đang bị quá tải. Hãy cân nhắc sử dụng ít camera hơn hoặc giảm tốc độ khung hình/độ phân giải.",
"statsCurrentShort": "Thời gian khung và FPS mới nhất.",
"statsCurrentLong": "Hiển thị phép đo gần nhất về thời gian xử lý một khung hình đơn lẻ (tính bằng mili giây) và số khung hình mỗi giây (FPS) tương đương. Thời gian khung hình thấp hơn và FPS cao hơn cho thấy hiệu suất tốt hơn.",
"statsMinShort": "Thời gian khung nhanh nhất và FPS cao nhất.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "Độ lệch chuẩn đo lường sự biến thiên trong thời gian khung hình. Giá trị thấp hơn cho thấy hiệu suất nhất quán hơn. Hệ số biến thiên (CV%) biểu thị sự biến động này dưới dạng phần trăm của trung bình, giúp so sánh tính ổn định giữa các tốc độ khung hình khác nhau dễ dàng hơn. CV% thấp hơn cho thấy hiệu suất ổn định hơn.",
"aiTranslatedTooltip": "Bản dịch này được tạo bởi AI và có thể chứa lỗi. Nếu bạn nói ngôn ngữ này, hãy giúp cải thiện!",
"humanValidatedTooltip": "Bản dịch này đã được người dịch xác nhận.",
- "helpTranslate": "Giúp dịch SkellyCam",
+ "helpTranslate": "Giúp dịch FreeMoCap",
"failedToFetch": "Lấy dữ liệu thất bại",
"recordings": "Bản ghi",
"noRecordingsFound": "Không tìm thấy bản ghi. Nhập đường dẫn phía trên để tải thủ công.",
@@ -239,7 +239,7 @@
"menuDocumentation": "Tài liệu",
"menuGitHubRepository": "Kho lưu trữ GitHub",
"menuReportIssue": "Báo cáo sự cố…",
- "menuAbout": "Về SkellyCam",
+ "menuAbout": "Về FreeMoCap",
"menuPlayback": "Phát lại",
"videoPlayback": "Phát lại",
"copyLogsToClipboard": "Sao chép nhật ký vào bộ nhớ tạm",
diff --git a/freemocap-ui-old/src/i18n/locales/yi-yidish.json b/freemocap-ui-old/src/i18n/locales/yi-yidish.json
index 69e459ca..f9691f1b 100644
--- a/freemocap-ui-old/src/i18n/locales/yi-yidish.json
+++ b/freemocap-ui-old/src/i18n/locales/yi-yidish.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-24"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "ברוכים הבאים צו SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "ברוכים הבאים צו FreeMoCap",
"welcomeSubtitle": "אויפֿנעמען און באַקוקן סינכראָניזירטע ווידעאָס",
"sendAnonymousPings": "שיקן אַנאָנימע באַניצונג פּינגס",
"footerWith": "מיט",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "רענדערט באַקומענע בילדער אויפֿן עקראַן.",
"displayTooltipLong": "אַנווייַז פֿאָרשטעלט די UI רענדערינג פֿאַרמעגן. עס ווייַזט ווי שנעל אייַער אַנווייַז באַקומט און רענדערט בילדער. פּראָבלעמען דאָ וועלן נישט באַווירקן אויפֿנאַמע קוואַליטעט אָבער קענען באַווירקן אייַער פֿעיִקייט צו מאָניטאָרן קאַמערעס אין עכט-צייַט.",
"statsSourceShort": "אַנווייַז רענדערט בילדער, סערווער כאַפּט בילדער.",
- "statsSourceLong": "דער סערווער איז דער אמתער ראַטע אין וועלכע בילדער ווערן געצויגן/אויפֿגענומען פֿון דער קאַמערע, בעת אַנווייַז איז דער ראַטע אין וועלכע זיי ווערן באַקומען און רענדערט. SkellyCam פּריאָריטיזירט סערווער-זייַט פֿאַרמעגן פֿאַר אויפֿנאַמע קוואַליטעט, אַזוי דער נומער זאָל בלייַבן מער סטאַביל. אויב דער אַנווייַז פרעימרייט אַוועקגייט פֿונעם סערווער, ווייַזט עס אַז אייַערע סיסטעם רעסורסן זענען באַלאַסט. טראַכט וועגן ניצן ווייניקער קאַמערעס אָדער פֿאַרמינערן פרעימרייט/רעזאָלוציע.",
+ "statsSourceLong": "דער סערווער איז דער אמתער ראַטע אין וועלכע בילדער ווערן געצויגן/אויפֿגענומען פֿון דער קאַמערע, בעת אַנווייַז איז דער ראַטע אין וועלכע זיי ווערן באַקומען און רענדערט. FreeMoCap פּריאָריטיזירט סערווער-זייַט פֿאַרמעגן פֿאַר אויפֿנאַמע קוואַליטעט, אַזוי דער נומער זאָל בלייַבן מער סטאַביל. אויב דער אַנווייַז פרעימרייט אַוועקגייט פֿונעם סערווער, ווייַזט עס אַז אייַערע סיסטעם רעסורסן זענען באַלאַסט. טראַכט וועגן ניצן ווייניקער קאַמערעס אָדער פֿאַרמינערן פרעימרייט/רעזאָלוציע.",
"statsCurrentShort": "לעצטער בילד צייַט און FPS.",
"statsCurrentLong": "ווייַזט דאָס לעצטע מעסטונג ווי לאַנג עס נעמט צו פּראָצעסירן אַ איינצל בילד (אין מיליסעקונדעס) און דער עקוויוואַלענט פרעימז פּער סעקונדע (FPS). נידעריקערע בילד צייַטן און העכערע FPS ווייַזן בעסערע פֿאַרמעגן.",
"statsMinShort": "שנעלסטער בילד צייַט און העכסטער FPS.",
@@ -211,7 +211,7 @@
"statsStdDevLong": "סטאַנדאַרד אָפּוואייכונג מעסט די פֿאַריאַציע אין בילד צייַטן. נידעריקערע ווערטן ווייַזן מער קאָנסיסטענטע פֿאַרמעגן. דער קאָעפֿיציענט פֿון וואַריאַציע (CV%) דריקט אויס די פֿאַריאַבילקייט אַלס אַ פּראָצענט פֿונעם דורכשניט, וואָס מאַכט גרינגער צו פֿאַרגלייַכן סטאַבילקייט צווישן פֿאַרשידענע פרעימרייטן. נידעריקערער CV% ווייַזט מער סטאַבילע פֿאַרמעגן.",
"aiTranslatedTooltip": "די איבערזעצונג איז געשאַפֿן דורך AI און קען אַנטהאַלטן טעותן. אויב איר רעדט די שפּראַך, העלפֿט אונדז פֿאַרבעסערן אויף GitHub!",
"humanValidatedTooltip": "די איבערזעצונג איז איבערגעקוקט און באַשטעטיקט דורך אַ מענטשלעכן איבערזעצער.",
- "helpTranslate": "העלפֿט איבערזעצן SkellyCam",
+ "helpTranslate": "העלפֿט איבערזעצן FreeMoCap",
"failedToFetch": "נישט געלונגען צו לאָדן",
"recordings": "אויפֿנאַמעס",
"noRecordingsFound": "קיין אויפֿנאַמעס נישט געפֿונען. גיט אײַן אַ וועג אויבן צום לאָדן.",
@@ -239,7 +239,7 @@
"menuDocumentation": "דאָקומענטאַציע",
"menuGitHubRepository": "GitHub רעפּאָזיטאָריע",
"menuReportIssue": "מעלדן אַ פּראָבלעם…",
- "menuAbout": "וועגן SkellyCam",
+ "menuAbout": "וועגן FreeMoCap",
"menuPlayback": "שפּילן",
"videoPlayback": "שפּילן",
"copyLogsToClipboard": "קאָפּירן לאָגס צום קליפּבאָרד",
diff --git a/freemocap-ui-old/src/i18n/locales/zh-CN-zhongwen.json b/freemocap-ui-old/src/i18n/locales/zh-CN-zhongwen.json
index 16909ec9..170cebca 100644
--- a/freemocap-ui-old/src/i18n/locales/zh-CN-zhongwen.json
+++ b/freemocap-ui-old/src/i18n/locales/zh-CN-zhongwen.json
@@ -4,9 +4,9 @@
"translationSource": "ai-generated",
"lastUpdated": "2026-02-22"
},
- "appName": "SkellyCam",
- "appNameDecorated": "SkellyCam 💀📸",
- "welcomeTitle": "欢迎使用 SkellyCam",
+ "appName": "FreeMoCap",
+ "appNameDecorated": "FreeMoCap 💀✨",
+ "welcomeTitle": "欢迎使用 FreeMoCap",
"welcomeSubtitle": "录制和查看同步视频",
"sendAnonymousPings": "发送匿名使用数据",
"footerWith": "以",
@@ -196,7 +196,7 @@
"rendersReceivedFrames": "在屏幕上渲染接收到的帧。",
"displayTooltipLong": "显示代表UI渲染性能。它显示显示器接收和渲染帧的速度。此处的性能问题不会影响录制质量,但可能影响您实时监控摄像头的能力。",
"statsSourceShort": "显示渲染帧,服务器捕获帧。",
- "statsSourceLong": "服务器是从摄像头拉取/录制帧的真实速率,而显示是接收和渲染帧的速率。SkellyCam优先考虑服务器端性能以保证录制质量,因此该数字应保持更稳定。如果显示帧率与服务器偏差较大,表明系统资源紧张。",
+ "statsSourceLong": "服务器是从摄像头拉取/录制帧的真实速率,而显示是接收和渲染帧的速率。FreeMoCap优先考虑服务器端性能以保证录制质量,因此该数字应保持更稳定。如果显示帧率与服务器偏差较大,表明系统资源紧张。",
"statsCurrentShort": "最近的帧时间和对应的FPS。",
"statsCurrentLong": "显示处理单帧所需时间(毫秒)的最新测量值及等效的每秒帧数(FPS)。更低的帧时间和更高的FPS表示更好的性能。",
"statsMinShort": "最快帧时间(最低延迟)和达到的最高FPS。",
@@ -211,7 +211,7 @@
"statsStdDevLong": "标准差衡量帧时间的变化量。较低的值表示更一致的性能。变异系数(CV%)将此可变性表示为平均值的百分比,便于比较不同帧率下的稳定性。",
"aiTranslatedTooltip": "此翻译由AI生成,可能包含错误。如果您使用此语言,可以在GitHub上提交pull request来帮助改进翻译!",
"humanValidatedTooltip": "此翻译已经过人工译者审核和验证。",
- "helpTranslate": "帮助翻译 SkellyCam",
+ "helpTranslate": "帮助翻译 FreeMoCap",
"failedToFetch": "获取失败",
"recordings": "录制",
"noRecordingsFound": "未找到录制。请在上方输入路径手动加载。",
@@ -239,7 +239,7 @@
"menuDocumentation": "文档",
"menuGitHubRepository": "GitHub 仓库",
"menuReportIssue": "报告问题…",
- "menuAbout": "关于 SkellyCam",
+ "menuAbout": "关于 FreeMoCap",
"menuPlayback": "回放",
"videoPlayback": "回放",
"copyLogsToClipboard": "复制日志到剪贴板",
diff --git a/freemocap-ui-old/src/layout/BaseContentRouter.tsx b/freemocap-ui-old/src/layout/BaseContentRouter.tsx
index 34818701..7903c0f1 100644
--- a/freemocap-ui-old/src/layout/BaseContentRouter.tsx
+++ b/freemocap-ui-old/src/layout/BaseContentRouter.tsx
@@ -14,8 +14,6 @@ export const BaseContentRouter: React.FC = () => {
<Route path="/videos" element={<VideosPage />} />
<Route path="/viewport3d" element={<Viewport3dPage />} />
<Route path="/settings" element={<SettingsPage />} />
- {/* Legacy route redirect */}
- <Route path="/setup" element={<Navigate to="/settings" replace />} />
<Route path="*" element={<Navigate to="/" replace />} />
</Routes>
);
diff --git a/freemocap-ui-old/src/services/server/ServerContextProvider.tsx b/freemocap-ui-old/src/services/server/ServerContextProvider.tsx
index 1a557181..422095e6 100644
--- a/freemocap-ui-old/src/services/server/ServerContextProvider.tsx
+++ b/freemocap-ui-old/src/services/server/ServerContextProvider.tsx
@@ -13,7 +13,7 @@ import {
serverSettingsUpdated,
} from '@/store';
-import {serverUrls} from "@/hooks/server-urls";
+import {serverUrls} from "../../../../freemocap-ui/src/hooks/server-urls";
import {CharucoObservation} from "@/services/server/server-helpers/image-overlay/charuco-types";
import {OverlayManager} from "@/services/server/server-helpers/image-overlay/overlay-renderer-factory";
import {MediapipeObservation} from "@/services/server/server-helpers/image-overlay/mediapipe-overlay-renderer";
@@ -358,4 +358,4 @@ export const ServerContextProvider: React.FC<{ children: ReactNode }> = ({childr
{children}
</ServerContext.Provider>
);
-};
\ No newline at end of file
+};
diff --git a/freemocap-ui-old/src/services/server/index.ts b/freemocap-ui-old/src/services/server/index.ts
index 8f1b48fe..2406d288 100644
--- a/freemocap-ui-old/src/services/server/index.ts
+++ b/freemocap-ui-old/src/services/server/index.ts
@@ -3,6 +3,6 @@ export * from '@/services/server/server-helpers/frame-processor/binary-frame-par
export * from './server-helpers/canvas-manager'
export * from '@/services/server/server-helpers/frame-processor/frame-processor'
export * from './server-helpers/offscreen-renderer.worker'
-export * from '../../hooks/server-urls'
+export * from '../../../../freemocap-ui/src/hooks/server-urls'
export * from './server-helpers/websocket-connection'
export {useServer} from "@/hooks/useServer";
diff --git a/freemocap-ui-old/src/store/index.ts b/freemocap-ui-old/src/store/index.ts
deleted file mode 100644
index c57b7807..00000000
--- a/freemocap-ui-old/src/store/index.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-export { store } from './store';
-export type { RootState, AppDispatch, AppThunk } from './types';
-export { useAppDispatch, useAppSelector } from './hooks';
-
-
-// Re-export all slice actions and selectors for a nice 'barrel' design pattern, which makes imports cleaner
-export * from './slices/cameras';
-export * from './slices/recording';
-export * from './slices/framerate';
-export * from './slices/log-records';
-export * from './slices/theme';
-export * from './slices/videos';
-export * from './slices/pipeline';
-export * from './slices/mocap';
-export * from './slices/settings';
diff --git a/freemocap-ui/package-lock.json b/freemocap-ui/package-lock.json
index 0a6271fc..2c5d813b 100644
--- a/freemocap-ui/package-lock.json
+++ b/freemocap-ui/package-lock.json
@@ -9,6 +9,10 @@
"version": "2.0.0-alpha.1",
"license": "AGPL-3.0-or-later",
"dependencies": {
+ "@dnd-kit/core": "^6.3.1",
+ "@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",
@@ -354,6 +358,73 @@
"url": "https://opencollective.com/webpack"
}
},
+ "node_modules/@dnd-kit/accessibility": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@dnd-kit/accessibility/-/accessibility-3.1.1.tgz",
+ "integrity": "sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0"
+ }
+ },
+ "node_modules/@dnd-kit/core": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.3.1.tgz",
+ "integrity": "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@dnd-kit/accessibility": "^3.1.1",
+ "@dnd-kit/utilities": "^3.2.2",
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@dnd-kit/modifiers": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/@dnd-kit/modifiers/-/modifiers-9.0.0.tgz",
+ "integrity": "sha512-ybiLc66qRGuZoC20wdSSG6pDXFikui/dCNGthxv4Ndy8ylErY0N3KVxY2bgo7AWwIbxDmXDg3ylAFmnrjcbVvw==",
+ "license": "MIT",
+ "dependencies": {
+ "@dnd-kit/utilities": "^3.2.2",
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "@dnd-kit/core": "^6.3.0",
+ "react": ">=16.8.0"
+ }
+ },
+ "node_modules/@dnd-kit/sortable": {
+ "version": "10.0.0",
+ "resolved": "https://registry.npmjs.org/@dnd-kit/sortable/-/sortable-10.0.0.tgz",
+ "integrity": "sha512-+xqhmIIzvAYMGfBYYnbKuNicfSsk4RksY2XdmJhT+HAC01nix6fHCztU68jooFiMUB01Ky3F0FyOvhG/BZrWkg==",
+ "license": "MIT",
+ "dependencies": {
+ "@dnd-kit/utilities": "^3.2.2",
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "@dnd-kit/core": "^6.3.0",
+ "react": ">=16.8.0"
+ }
+ },
+ "node_modules/@dnd-kit/utilities": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/@dnd-kit/utilities/-/utilities-3.2.2.tgz",
+ "integrity": "sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0"
+ }
+ },
"node_modules/@electron/asar": {
"version": "3.4.1",
"resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.4.1.tgz",
@@ -8644,6 +8715,12 @@
"utf8-byte-length": "^1.0.1"
}
},
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
+ },
"node_modules/type-fest": {
"version": "0.13.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",
@@ -9032,22 +9109,6 @@
"dev": true,
"license": "ISC"
},
- "node_modules/yaml": {
- "version": "2.8.3",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz",
- "integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==",
- "extraneous": true,
- "license": "ISC",
- "bin": {
- "yaml": "bin.mjs"
- },
- "engines": {
- "node": ">= 14.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/eemeli"
- }
- },
"node_modules/yargs": {
"version": "17.7.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
diff --git a/freemocap-ui/package.json b/freemocap-ui/package.json
index ea58db68..ef07d87f 100644
--- a/freemocap-ui/package.json
+++ b/freemocap-ui/package.json
@@ -20,6 +20,10 @@
"e2e": "playwright test"
},
"dependencies": {
+ "@dnd-kit/core": "^6.3.1",
+ "@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",
diff --git a/freemocap-ui/src/components/calibration-control-panel/CalibrationControlPanel.tsx b/freemocap-ui/src/components/calibration-control-panel/CalibrationControlPanel.tsx
new file mode 100644
index 00000000..dc296868
--- /dev/null
+++ b/freemocap-ui/src/components/calibration-control-panel/CalibrationControlPanel.tsx
@@ -0,0 +1,624 @@
+import React, {useCallback, useEffect, useMemo, useState} from "react";
+import {
+ Alert,
+ Box,
+ Button,
+ Checkbox,
+ Chip,
+ FormControl,
+ FormControlLabel,
+ IconButton,
+ InputAdornment,
+ InputLabel,
+ MenuItem,
+ Select,
+ Stack,
+ 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 ClearIcon from "@mui/icons-material/Clear";
+import CheckCircleIcon from "@mui/icons-material/CheckCircle";
+import InfoIcon from "@mui/icons-material/Info";
+import CloseIcon from "@mui/icons-material/Close";
+import FiberManualRecordIcon from "@mui/icons-material/FiberManualRecord";
+import {CollapsibleSidebarSection} from "@/components/common/CollapsibleSidebarSection";
+import {useCalibration} from "@/hooks/useCalibration";
+import {useElectronIPC} from "@/services";
+import {CalibrationSolverSection} from "@/components/calibration-control-panel/CalibrationSolverSection";
+
+type BoardPreset = "5x3" | "7x5" | "custom";
+
+interface BoardPresetConfig {
+ xSquares: number;
+ ySquares: number;
+}
+
+const BOARD_PRESETS: Record<Exclude<BoardPreset, "custom">, BoardPresetConfig> = {
+ "5x3": {xSquares: 5, ySquares: 3},
+ "7x5": {xSquares: 7, ySquares: 5},
+};
+
+export const CalibrationControlPanel: React.FC = () => {
+ const theme = useTheme();
+ const [localError, setLocalError] = useState<string | null>(null);
+ const {api} = useElectronIPC();
+
+ const {
+ config,
+ error,
+ isLoading,
+ isRecording,
+ recordingProgress,
+ canStartRecording,
+ canCalibrate,
+ calibrationRecordingPath,
+ directoryInfo,
+ isUsingManualPath,
+ updateCalibrationConfig,
+ dispatchStopCalibrationRecording,
+ dispatchStartCalibrationRecording,
+ setManualRecordingPath,
+ clearManualRecordingPath,
+ validateDirectory,
+ calibrateSelectedRecording,
+ clearError,
+ } = useCalibration();
+
+ useEffect(() => {
+ if (calibrationRecordingPath) {
+ validateDirectory(calibrationRecordingPath);
+ }
+ }, [calibrationRecordingPath, validateDirectory]);
+
+ const currentPreset = useMemo<BoardPreset>(() => {
+ for (const [preset, presetConfig] of Object.entries(BOARD_PRESETS)) {
+ if (
+ presetConfig.xSquares === config.charucoBoardXSquares &&
+ presetConfig.ySquares === config.charucoBoardYSquares
+ ) {
+ return preset as BoardPreset;
+ }
+ }
+ return "custom";
+ }, [config.charucoBoardXSquares, config.charucoBoardYSquares]);
+
+ const handleClearError = useCallback((): void => {
+ clearError();
+ setLocalError(null);
+ }, [clearError]);
+
+ const handlePresetChange = useCallback(
+ (preset: BoardPreset): void => {
+ if (preset === "custom") return;
+ const presetConfig = BOARD_PRESETS[preset];
+ updateCalibrationConfig({
+ charucoBoardXSquares: presetConfig.xSquares,
+ charucoBoardYSquares: presetConfig.ySquares,
+ });
+ },
+ [updateCalibrationConfig]
+ );
+
+ const handleXSquaresChange = useCallback(
+ (value: string): void => {
+ const numValue = parseInt(value, 10);
+ if (!isNaN(numValue) && numValue > 0) {
+ updateCalibrationConfig({charucoBoardXSquares: numValue});
+ }
+ },
+ [updateCalibrationConfig]
+ );
+
+ const handleYSquaresChange = useCallback(
+ (value: string): void => {
+ const numValue = parseInt(value, 10);
+ if (!isNaN(numValue) && numValue > 0) {
+ updateCalibrationConfig({charucoBoardYSquares: numValue});
+ }
+ },
+ [updateCalibrationConfig]
+ );
+
+ const handleSelectDirectory = async (): Promise<void> => {
+ if (!api) {
+ console.warn("Electron API not available");
+ 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 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 (err) {
+ console.error("Failed to expand home directory:", err);
+ await setManualRecordingPath(newPath);
+ }
+ } else {
+ await setManualRecordingPath(newPath);
+ }
+ };
+
+ const handleClearManualPath = useCallback((): void => {
+ clearManualRecordingPath();
+ }, [clearManualRecordingPath]);
+
+ const displayError = error || localError || directoryInfo?.errorMessage;
+
+ const pathHelperText = useMemo(() => {
+ if (isUsingManualPath) return "Using custom path";
+ return "Using default recording directory";
+ }, [isUsingManualPath]);
+
+ // Derive status for collapsed summary
+ const statusLabel = isRecording
+ ? `Recording ${recordingProgress.toFixed(0)}%`
+ : isLoading
+ ? "Processing..."
+ : 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];
+
+ // Primary control: compact start/stop recording toggle in the header
+ const headerRecordButton = isRecording ? (
+ <Tooltip title="Stop calibration recording">
+ <IconButton
+ size="small"
+ onClick={(e: React.MouseEvent) => {
+ e.stopPropagation();
+ dispatchStopCalibrationRecording();
+ }}
+ 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 calibration recording" : "Cannot record yet"}>
+ <span>
+ <IconButton
+ size="small"
+ onClick={(e: React.MouseEvent) => {
+ e.stopPropagation();
+ dispatchStartCalibrationRecording();
+ }}
+ 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>
+ );
+
+ return (
+ <CollapsibleSidebarSection
+ icon={<SquareFootIcon sx={{color: "inherit"}} />}
+ title="Calibration"
+ summaryContent={
+ <Chip
+ label={statusLabel}
+ size="small"
+ sx={{
+ height: 20,
+ fontSize: 11,
+ fontWeight: 600,
+ backgroundColor: statusColor,
+ color: theme.palette.getContrastText(statusColor),
+ }}
+ />
+ }
+ primaryControl={headerRecordButton}
+ defaultExpanded={false}
+ >
+ <Box sx={{p: 2, bgcolor: "background.paper"}}>
+ <Stack spacing={2}>
+ {/* Error Display */}
+ {displayError && (
+ <Alert severity="error" onClose={handleClearError}>
+ {displayError}
+ </Alert>
+ )}
+
+ {/* Live Tracker Toggle */}
+ <FormControlLabel
+ control={
+ <Checkbox
+ checked={config.liveTrackCharuco}
+ onChange={(e) =>
+ updateCalibrationConfig({
+ liveTrackCharuco: e.target.checked,
+ })
+ }
+ disabled={isLoading}
+ sx={{
+ "&.Mui-checked": {
+ color: theme.palette.text.primary,
+ },
+ }}
+ />
+ }
+ label="Live Track Charuco Board"
+ />
+
+ {/* Recording Controls */}
+ <Stack direction="row" spacing={2}>
+ <Button
+ variant="contained"
+ color="primary"
+ startIcon={<PlayArrowIcon />}
+ onClick={dispatchStartCalibrationRecording}
+ disabled={!canStartRecording || 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={calibrationRecordingPath}
+ 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"
+ >
+ <FolderOpenIcon />
+ </IconButton>
+ </Tooltip>
+ </InputAdornment>
+ ),
+ }}
+ />
+
+ {/* Directory Status Info */}
+ {directoryInfo && (
+ <Box
+ sx={{
+ p: 1.5,
+ borderRadius: 1,
+ border: `2px solid ${theme.palette.divider}`,
+ }}
+ >
+ <Stack spacing={1}>
+ <Box
+ sx={{
+ display: "flex",
+ alignItems: "center",
+ gap: 1,
+ }}
+ >
+ <InfoIcon fontSize="small" color="info" />
+ <Typography variant="caption" fontWeight="medium">
+ Calibration Folder Status
+ </Typography>
+ </Box>
+
+ <Box
+ sx={{
+ display: "flex",
+ gap: 1,
+ flexWrap: "wrap",
+ }}
+ >
+ <Chip
+ label={
+ directoryInfo.exists
+ ? "Directory exists"
+ : "Directory will be created"
+ }
+ size="small"
+ color={directoryInfo.exists ? "success" : "default"}
+ icon={
+ directoryInfo.exists ? (
+ <CheckCircleIcon />
+ ) : (
+ <CloseIcon />
+ )
+ }
+ variant={directoryInfo.exists ? "filled" : "outlined"}
+ sx={
+ !directoryInfo.exists
+ ? {
+ borderColor: theme.palette.grey[400],
+ "& .MuiChip-icon": {
+ color: theme.palette.grey[600],
+ },
+ }
+ : {}
+ }
+ />
+ <Chip
+ label="Has videos"
+ size="small"
+ color={directoryInfo.hasVideos ? "success" : "default"}
+ icon={
+ directoryInfo.hasVideos ? (
+ <CheckCircleIcon />
+ ) : (
+ <CloseIcon />
+ )
+ }
+ variant={directoryInfo.hasVideos ? "filled" : "outlined"}
+ sx={
+ !directoryInfo.hasVideos
+ ? {
+ borderColor: theme.palette.grey[400],
+ "& .MuiChip-icon": {
+ color: theme.palette.grey[600],
+ },
+ }
+ : {}
+ }
+ />
+ <Chip
+ label="Has synchronized_videos"
+ size="small"
+ color={
+ directoryInfo.hasSynchronizedVideos
+ ? "success"
+ : "default"
+ }
+ icon={
+ directoryInfo.hasSynchronizedVideos ? (
+ <CheckCircleIcon />
+ ) : (
+ <CloseIcon />
+ )
+ }
+ variant={
+ directoryInfo.hasSynchronizedVideos
+ ? "filled"
+ : "outlined"
+ }
+ sx={
+ !directoryInfo.hasSynchronizedVideos
+ ? {
+ borderColor: theme.palette.grey[400],
+ "& .MuiChip-icon": {
+ color: theme.palette.grey[600],
+ },
+ }
+ : {}
+ }
+ />
+ <Chip
+ label="Has calibration TOML"
+ size="small"
+ color={
+ directoryInfo.cameraCalibrationTomlPath
+ ? "success"
+ : "default"
+ }
+ icon={
+ directoryInfo.cameraCalibrationTomlPath ? (
+ <CheckCircleIcon />
+ ) : (
+ <CloseIcon />
+ )
+ }
+ variant={
+ directoryInfo.cameraCalibrationTomlPath
+ ? "filled"
+ : "outlined"
+ }
+ sx={
+ !directoryInfo.cameraCalibrationTomlPath
+ ? {
+ borderColor: theme.palette.grey[400],
+ "& .MuiChip-icon": {
+ color: theme.palette.grey[600],
+ },
+ }
+ : {}
+ }
+ />
+ </Box>
+
+ {directoryInfo.cameraCalibrationTomlPath && (
+ <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.cameraCalibrationTomlPath}
+ </Typography>
+ </Box>
+ )}
+ </Stack>
+ </Box>
+ )}
+
+ {/* Board Size Configuration */}
+ <Stack direction="row" spacing={2}>
+ <FormControl size="small" sx={{minWidth: 140}}>
+ <InputLabel id="board-preset-label">Preset</InputLabel>
+ <Select
+ labelId="board-preset-label"
+ value={currentPreset}
+ label="Preset"
+ onChange={(e) =>
+ handlePresetChange(e.target.value as BoardPreset)
+ }
+ disabled={isLoading}
+ sx={{color: theme.palette.text.primary}}
+ >
+ <MenuItem value="5x3">5×3</MenuItem>
+ <MenuItem value="7x5">7×5</MenuItem>
+ <MenuItem value="custom">Custom</MenuItem>
+ </Select>
+ </FormControl>
+ <TextField
+ label="X Squares"
+ type="number"
+ value={config.charucoBoardXSquares}
+ onChange={(e) => handleXSquaresChange(e.target.value)}
+ disabled={isLoading}
+ size="small"
+ sx={{flex: 1}}
+ inputProps={{min: 2, max: 20}}
+ />
+ <TextField
+ label="Y Squares"
+ type="number"
+ value={config.charucoBoardYSquares}
+ onChange={(e) => handleYSquaresChange(e.target.value)}
+ disabled={isLoading}
+ size="small"
+ sx={{flex: 1}}
+ inputProps={{min: 2, max: 20}}
+ />
+ </Stack>
+
+ {/* Square Length */}
+ <TextField
+ label="Square Length (mm)"
+ type="number"
+ value={config.charucoSquareLength}
+ onChange={(e) =>
+ updateCalibrationConfig({
+ charucoSquareLength: parseFloat(e.target.value) || 0,
+ })
+ }
+ disabled={isLoading}
+ size="small"
+ fullWidth
+ inputProps={{min: 1, step: 0.1}}
+ />
+
+ {/* Solver Method & Groundplane */}
+ <CalibrationSolverSection />
+
+ {/* Recording Progress */}
+ {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>
+ )}
+
+ {/* Calibrate Button */}
+ <Button
+ variant="contained"
+ color="secondary"
+ onClick={calibrateSelectedRecording}
+ disabled={!canCalibrate || isLoading}
+ fullWidth
+ >
+ Calibrate Selected Recording
+ </Button>
+ </Stack>
+ </Box>
+ </CollapsibleSidebarSection>
+ );
+};
diff --git a/freemocap-ui/src/components/calibration-control-panel/CalibrationSolverSection.tsx b/freemocap-ui/src/components/calibration-control-panel/CalibrationSolverSection.tsx
new file mode 100644
index 00000000..4e2dee23
--- /dev/null
+++ b/freemocap-ui/src/components/calibration-control-panel/CalibrationSolverSection.tsx
@@ -0,0 +1,75 @@
+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>
+
+ {/* Groundplane */}
+ <FormControlLabel
+ control={
+ <Switch
+ size="small"
+ checked={config.useGroundplane}
+ onChange={(_, checked) =>
+ updateCalibrationConfig({useGroundplane: checked})
+ }
+ disabled={isLoading}
+ />
+ }
+ label={
+ <Typography variant="body2">
+ Align to ground plane
+ </Typography>
+ }
+ />
+ </Stack>
+ );
+};
diff --git a/freemocap-ui/src/components/camera-config-tree-view/CameraConfigTreeView.tsx b/freemocap-ui/src/components/camera-config-tree-view/CameraConfigTreeView.tsx
index 09a70ee5..f74737f0 100644
--- a/freemocap-ui/src/components/camera-config-tree-view/CameraConfigTreeView.tsx
+++ b/freemocap-ui/src/components/camera-config-tree-view/CameraConfigTreeView.tsx
@@ -1,19 +1,19 @@
-import React, { useEffect, useState } from "react";
+import React, {useEffect, useState} from "react";
import {
Box,
Paper,
Typography,
useTheme,
} from "@mui/material";
-import { SimpleTreeView } from "@mui/x-tree-view/SimpleTreeView";
-import { TreeItem } from "@mui/x-tree-view/TreeItem";
+import {SimpleTreeView} from "@mui/x-tree-view/SimpleTreeView";
+import {TreeItem} from "@mui/x-tree-view/TreeItem";
import ExpandMore from "@mui/icons-material/ExpandMore";
import ChevronRight from "@mui/icons-material/ChevronRight";
import VideoCameraFrontIcon from '@mui/icons-material/VideoCameraFront';
-import { CameraConfigTreeViewHeader } from "./CameraConfigTreeViewHeader";
-import { CameraGroupTreeItem } from "./CameraGroupTreeItem";
-import { NoCamerasPlaceholder } from "./NoCamerasPlaceholder";
+import {CameraConfigTreeViewHeader} from "./CameraConfigTreeViewHeader";
+import {CameraGroupTreeItem} from "./CameraGroupTreeItem";
+import {NoCamerasPlaceholder} from "./NoCamerasPlaceholder";
import {
useAppDispatch,
useAppSelector,
@@ -26,13 +26,17 @@ import {
Camera
} from "@/store";
import {useServer} from "@/services/server/ServerContextProvider";
-import { useTranslation } from 'react-i18next';
+import {useTranslation} from 'react-i18next';
+import LanIcon from "@mui/icons-material/Lan";
+import {PipelineSummary} from "@/components/processing-pipeline-panel/PipelineSummary";
+import {PipelineConnectionToggle} from "@/components/processing-pipeline-panel/PipelineConnectionToggle";
+import { CollapsibleSidebarSection } from "../common/CollapsibleSidebarSection";
export const CameraConfigTreeView: React.FC = () => {
const theme = useTheme();
const dispatch = useAppDispatch();
- const { t } = useTranslation();
+ const {t} = useTranslation();
const {isConnected} = useServer()
// Redux state
const cameras = useAppSelector(selectCameras);
@@ -57,8 +61,8 @@ export const CameraConfigTreeView: React.FC = () => {
// Initial camera detection
useEffect(() => {
- if (isConnected && cameras.length === 0) {
- dispatch(detectCameras({ filterVirtual: true }));
+ if (isConnected && cameras.length === 0) {
+ dispatch(detectCameras({filterVirtual: true}));
}
}, [isConnected, cameras.length, dispatch]);
@@ -71,61 +75,70 @@ export const CameraConfigTreeView: React.FC = () => {
return (
- <Paper
- elevation={3}
- sx={{
- borderRadius: 2,
- overflow: "hidden",
- }}
+ <CollapsibleSidebarSection
+ icon={<VideoCameraFrontIcon sx={{transform: "", color: "inherit"}}/>}
+ title="Cameras"
+ summaryContent={<PipelineSummary/>}
+ primaryControl={<PipelineConnectionToggle/>}
+ defaultExpanded={false}
>
- <SimpleTreeView
- expandedItems={expandedItems}
- onExpandedItemsChange={handleExpandedItemsChange}
- slots={{
- collapseIcon: ExpandMore,
- expandIcon: ChevronRight,
+ <Paper
+ elevation={3}
+ sx={{
+ borderRadius: 2,
+ overflow: "hidden",
}}
>
- <TreeItem
- itemId="cameras-root"
- label={
- <CameraConfigTreeViewHeader
- cameraCount={cameras.length}
- isLoading={isLoading}
- isPaused={isPaused}
- hasSelectedCameras={hasSelectedCameras}
- />
- }
+ <SimpleTreeView
+ expandedItems={expandedItems}
+ onExpandedItemsChange={handleExpandedItemsChange}
+ slots={{
+ collapseIcon: ExpandMore,
+ expandIcon: ChevronRight,
+ }}
>
- {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}
- />
- )}
+ <TreeItem
+ itemId="cameras-root"
+ label={
+ <CameraConfigTreeViewHeader
+ cameraCount={cameras.length}
+ isLoading={isLoading}
+ isPaused={isPaused}
+ hasSelectedCameras={hasSelectedCameras}
+ />
+ }
+ >
+ {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}
+ />
+ )}
+
+ {/* Available Cameras Group */}
+ {availableCameras.length > 0 && (
+ <CameraGroupTreeItem
+ groupId="cameras-available"
+ title={t("availableCameras")}
+ cameras={availableCameras}
+ icon={<VideoCameraFrontIcon color="info"/>}
+ expandedItems={expandedItems}
+ />
+ )}
+ </>
+ )}
+ </TreeItem>
+ </SimpleTreeView>
+ </Paper>
+ </CollapsibleSidebarSection>
- {/* Available Cameras Group */}
- {availableCameras.length > 0 && (
- <CameraGroupTreeItem
- groupId="cameras-available"
- title={t("availableCameras")}
- cameras={availableCameras}
- icon={<VideoCameraFrontIcon color="info" />}
- expandedItems={expandedItems}
- />
- )}
- </>
- )}
- </TreeItem>
- </SimpleTreeView>
- </Paper>
);
};
diff --git a/freemocap-ui/src/components/common/CollapsibleSidebarSection.tsx b/freemocap-ui/src/components/common/CollapsibleSidebarSection.tsx
new file mode 100644
index 00000000..1c756af9
--- /dev/null
+++ b/freemocap-ui/src/components/common/CollapsibleSidebarSection.tsx
@@ -0,0 +1,173 @@
+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;
+ primaryControl: ReactNode;
+ summaryContent: ReactNode;
+ children: ReactNode;
+ defaultExpanded: boolean;
+}
+
+export const CollapsibleSidebarSection: React.FC<CollapsibleSidebarSectionProps> = ({
+ icon,
+ title,
+ primaryControl,
+ summaryContent,
+ children,
+ defaultExpanded,
+ }) => {
+ const theme = useTheme();
+ const [expanded, setExpanded] = useState(defaultExpanded);
+ const dragHandle = useDragHandle();
+
+ const handleToggle = useCallback(() => {
+ setExpanded((prev) => !prev);
+ }, []);
+
+ const handlePrimaryControlClick = useCallback((e: React.MouseEvent) => {
+ e.stopPropagation();
+ }, []);
+
+ return (
+ <Paper
+ elevation={1}
+ sx={{
+ borderRadius: 1,
+ overflow: "hidden",
+ }}
+ >
+ {/* Header row — always visible, identical whether expanded or collapsed */}
+ <Box
+ onClick={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,
+ },
+ }}
+ >
+ {/* 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>
+
+ {/* Section icon */}
+ <Box
+ sx={{
+ display: "flex",
+ alignItems: "center",
+ mr: 1,
+ flexShrink: 0,
+ }}
+ >
+ {icon}
+ </Box>
+
+ {/* Title */}
+ <Typography
+ variant="subtitle1"
+ sx={{
+ fontWeight: 600,
+ flexShrink: 0,
+ lineHeight: 1.3,
+ }}
+ >
+ {title}
+ </Typography>
+
+ {/* Summary — fills remaining horizontal space */}
+ <Box
+ sx={{
+ flexGrow: 1,
+ mx: 1.5,
+ overflow: "hidden",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "flex-end",
+ }}
+ >
+ {summaryContent}
+ </Box>
+
+ {/* Primary control — click is isolated from expand/collapse */}
+ <Box
+ onClick={handlePrimaryControlClick}
+ sx={{
+ flexShrink: 0,
+ display: "flex",
+ alignItems: "center",
+ pr: 0.5,
+ }}
+ >
+ {primaryControl}
+ </Box>
+ </Box>
+
+ {/* Detail panel — only visible when expanded */}
+ <Collapse in={expanded} timeout="auto" unmountOnExit>
+ <Box
+ sx={{
+ backgroundColor: theme.palette.background.paper,
+ }}
+ >
+ {children}
+ </Box>
+ </Collapse>
+ </Paper>
+ );
+};
diff --git a/freemocap-ui/src/components/common/DragHandleContext.ts b/freemocap-ui/src/components/common/DragHandleContext.ts
new file mode 100644
index 00000000..7d8f9b82
--- /dev/null
+++ b/freemocap-ui/src/components/common/DragHandleContext.ts
@@ -0,0 +1,12 @@
+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/SortableSectionWrapper.tsx b/freemocap-ui/src/components/common/SortableSectionWrapper.tsx
new file mode 100644
index 00000000..d5ca7140
--- /dev/null
+++ b/freemocap-ui/src/components/common/SortableSectionWrapper.tsx
@@ -0,0 +1,39 @@
+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/languages/LanguageSwitcher.tsx b/freemocap-ui/src/components/languages/LanguageSwitcher.tsx
index d542b345..b695765a 100644
--- a/freemocap-ui/src/components/languages/LanguageSwitcher.tsx
+++ b/freemocap-ui/src/components/languages/LanguageSwitcher.tsx
@@ -19,7 +19,7 @@ import {
localeChanged,
selectLocale,
selectShowTranslationIndicator,
-} from "@/store/slices/settings";
+} from "@/store/slices/locale";
import {
SUPPORTED_LOCALES,
getTranslationSource,
diff --git a/freemocap-ui/src/components/mocap-control-panel/MediapipeConfigPanel.tsx b/freemocap-ui/src/components/mocap-control-panel/MediapipeConfigPanel.tsx
new file mode 100644
index 00000000..0916d6a8
--- /dev/null
+++ b/freemocap-ui/src/components/mocap-control-panel/MediapipeConfigPanel.tsx
@@ -0,0 +1,229 @@
+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 {
+ MEDIAPIPE_REALTIME_PRESET,
+ MEDIAPIPE_POSTHOC_PRESET,
+ MediapipeModelComplexity,
+} from "@/store/slices/mocap";
+
+const MODEL_COMPLEXITY_LABELS: Record<MediapipeModelComplexity, string> = {
+ 0: "Lite (fastest)",
+ 1: "Full (balanced)",
+ 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;
+};
+
+export const MediapipeConfigPanel: React.FC = () => {
+ const theme = useTheme();
+ const sliderSx = useSliderSx();
+ const {detectorConfig, updateDetectorConfig, replaceDetectorConfig, isLoading} = useMocap();
+
+ const currentPreset = detectPreset(detectorConfig);
+
+ const handlePresetChange = useCallback(
+ (preset: DetectorPreset) => {
+ if (preset === "realtime") replaceDetectorConfig({...MEDIAPIPE_REALTIME_PRESET});
+ else if (preset === "posthoc") replaceDetectorConfig({...MEDIAPIPE_POSTHOC_PRESET});
+ },
+ [replaceDetectorConfig]
+ );
+
+ return (
+ <Stack spacing={2}>
+ <Typography variant="subtitle2" sx={{color: theme.palette.text.secondary, fontWeight: 600}}>
+ MediaPipe Detector
+ </Typography>
+
+ {/* 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"}
+ onClick={() => handlePresetChange("realtime")}
+ disabled={isLoading}
+ sx={{cursor: "pointer"}}
+ />
+ <Chip
+ label="Posthoc"
+ size="small"
+ variant={currentPreset === "posthoc" ? "filled" : "outlined"}
+ color={currentPreset === "posthoc" ? "primary" : "default"}
+ onClick={() => handlePresetChange("posthoc")}
+ disabled={isLoading}
+ sx={{cursor: "pointer"}}
+ />
+ {currentPreset === "custom" && (
+ <Chip label="Custom" size="small" variant="outlined" color="warning" />
+ )}
+ </Stack>
+
+ {/* Model complexity */}
+ <FormControl size="small" fullWidth>
+ <InputLabel id="model-complexity-label">Model Complexity</InputLabel>
+ <Select
+ labelId="model-complexity-label"
+ value={detectorConfig.model_complexity}
+ label="Model Complexity"
+ onChange={(e) =>
+ updateDetectorConfig({
+ model_complexity: 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>
+
+ {/* Confidence sliders */}
+ <Box>
+ <Typography variant="caption" color="text.secondary">
+ Min Detection Confidence: {detectorConfig.min_detection_confidence.toFixed(2)}
+ </Typography>
+ <Slider
+ value={detectorConfig.min_detection_confidence}
+ onChange={(_ , value) =>
+ updateDetectorConfig({min_detection_confidence: value as number})
+ }
+ min={0} max={1} step={0.05} size="small" disabled={isLoading}
+ sx={sliderSx}
+ />
+ </Box>
+
+ <Box>
+ <Typography variant="caption" color="text.secondary">
+ Min Tracking Confidence: {detectorConfig.min_tracking_confidence.toFixed(2)}
+ </Typography>
+ <Slider
+ value={detectorConfig.min_tracking_confidence}
+ onChange={(_, value) =>
+ updateDetectorConfig({min_tracking_confidence: value as number})
+ }
+ min={0} max={1} step={0.05} size="small" disabled={isLoading}
+ sx={sliderSx}
+ />
+ </Box>
+
+ {/* 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>}
+ />
+ <FormControlLabel
+ control={
+ <Switch
+ size="small"
+ checked={detectorConfig.enable_segmentation}
+ onChange={(_, checked) =>
+ updateDetectorConfig({enable_segmentation: checked})
+ }
+ disabled={isLoading}
+ />
+ }
+ label={<Typography variant="body2">Enable Segmentation</Typography>}
+ />
+ <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>}
+ />
+ <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>}
+ />
+ <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>}
+ />
+ </Stack>
+ </Stack>
+ );
+};
diff --git a/freemocap-ui/src/components/mocap-control-panel/MocapTaskTreeItem.tsx b/freemocap-ui/src/components/mocap-control-panel/MocapTaskTreeItem.tsx
new file mode 100644
index 00000000..7fe7203b
--- /dev/null
+++ b/freemocap-ui/src/components/mocap-control-panel/MocapTaskTreeItem.tsx
@@ -0,0 +1,476 @@
+import React, {useCallback, useMemo, useState} from "react";
+import {
+ Alert,
+ Box,
+ Button,
+ Chip,
+ 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 CheckCircleIcon from "@mui/icons-material/CheckCircle";
+import InfoIcon from "@mui/icons-material/Info";
+import CloseIcon from "@mui/icons-material/Close";
+import FiberManualRecordIcon from "@mui/icons-material/FiberManualRecord";
+import {CollapsibleSidebarSection} from "@/components/common/CollapsibleSidebarSection";
+import {useMocap} from "@/hooks/useMocap";
+import {useElectronIPC} from "@/services";
+import {MediapipeConfigPanel} from "@/components/mocap-control-panel/MediapipeConfigPanel";
+import {SkeletonFilterConfigPanel} from "@/components/mocap-control-panel/SkeletonFilterConfigPanel";
+
+export const MocapTaskTreeItem: React.FC = () => {
+ const theme = useTheme();
+ const [localError, setLocalError] = useState<string | null>(null);
+ const {api, isElectron} = useElectronIPC();
+
+ const {
+ error,
+ isLoading,
+ isRecording,
+ recordingProgress,
+ canStartRecording,
+ canProcessMocapRecording,
+ mocapRecordingPath,
+ directoryInfo,
+ isUsingManualPath,
+ dispatchStopMocapRecording,
+ dispatchStartMocapRecording,
+ setManualRecordingPath,
+ clearManualRecordingPath,
+ dispatchProcessMocapRecording,
+ clearError,
+ } = useMocap();
+
+ const handleClearError = useCallback((): void => {
+ clearError();
+ setLocalError(null);
+ }, [clearError]);
+
+ const handleSelectDirectory = async (): Promise<void> => {
+ if (!isElectron || !api) {
+ console.warn("Electron API not available");
+ 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 handlePathInputChange = async (
+ e: React.ChangeEvent<HTMLInputElement>
+ ): Promise<void> => {
+ const newPath: string = e.target.value;
+ if (newPath.includes("~") && isElectron && api) {
+ try {
+ const home: string = await api.fileSystem.getHomeDirectory.query();
+ const expanded: string = newPath.replace(
+ /^~([/\\])?/,
+ home ? `${home}$1` : ""
+ );
+ await setManualRecordingPath(expanded);
+ } catch (err) {
+ console.error("Failed to expand home directory:", err);
+ await setManualRecordingPath(newPath);
+ }
+ } else {
+ await setManualRecordingPath(newPath);
+ }
+ };
+
+ const handleClearManualPath = useCallback((): void => {
+ clearManualRecordingPath();
+ }, [clearManualRecordingPath]);
+
+ const displayError = error || localError || directoryInfo?.errorMessage;
+
+ const pathHelperText = useMemo(() => {
+ if (isUsingManualPath) return "Using custom path";
+ return "Using default recording directory";
+ }, [isUsingManualPath]);
+
+ // Derive status for collapsed summary
+ const statusLabel = isRecording
+ ? `Recording ${recordingProgress.toFixed(0)}%`
+ : isLoading
+ ? "Processing..."
+ : "Idle";
+
+ const statusColor = isRecording
+ ? theme.palette.error.main
+ : isLoading
+ ? theme.palette.warning.main
+ : theme.palette.grey[600];
+
+ // Primary control: compact start/stop recording toggle in the header
+ const headerRecordButton = 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) => {
+ 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>
+ );
+
+ return (
+ <CollapsibleSidebarSection
+ icon={<DirectionsRunIcon sx={{color: "inherit"}} />}
+ title="Motion Capture"
+ summaryContent={
+ <Chip
+ label={statusLabel}
+ size="small"
+ sx={{
+ height: 20,
+ fontSize: 11,
+ fontWeight: 600,
+ backgroundColor: statusColor,
+ color: theme.palette.getContrastText(statusColor),
+ }}
+ />
+ }
+ primaryControl={headerRecordButton}
+ defaultExpanded={false}
+ >
+ <Box sx={{p: 2, bgcolor: "background.paper"}}>
+ <Stack spacing={2}>
+ {/* Error Display */}
+ {displayError && (
+ <Alert severity="error" onClose={handleClearError}>
+ {displayError}
+ </Alert>
+ )}
+
+ {/* Recording Controls */}
+ <Stack direction="row" spacing={2}>
+ <Button
+ variant="contained"
+ color="primary"
+ startIcon={<PlayArrowIcon />}
+ onClick={dispatchStartMocapRecording}
+ disabled={!canStartRecording || 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={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>
+ ),
+ }}
+ />
+
+ {/* Directory Status Info */}
+ {directoryInfo && (
+ <Box
+ sx={{
+ p: 1.5,
+ borderRadius: 1,
+ border: `2px solid ${theme.palette.divider}`,
+ }}
+ >
+ <Stack spacing={1}>
+ <Box
+ sx={{
+ display: "flex",
+ alignItems: "center",
+ gap: 1,
+ }}
+ >
+ <InfoIcon fontSize="small" color="info" />
+ <Typography variant="caption" fontWeight="medium">
+ Mocap Folder Status
+ </Typography>
+ </Box>
+
+ <Box
+ sx={{
+ display: "flex",
+ gap: 1,
+ flexWrap: "wrap",
+ }}
+ >
+ <Chip
+ label={
+ directoryInfo.exists
+ ? "Directory exists"
+ : "Directory will be created"
+ }
+ size="small"
+ color={directoryInfo.exists ? "success" : "default"}
+ icon={
+ directoryInfo.exists ? (
+ <CheckCircleIcon />
+ ) : (
+ <CloseIcon />
+ )
+ }
+ variant={directoryInfo.exists ? "filled" : "outlined"}
+ sx={
+ !directoryInfo.exists
+ ? {
+ borderColor: theme.palette.grey[400],
+ "& .MuiChip-icon": {
+ color: theme.palette.grey[600],
+ },
+ }
+ : {}
+ }
+ />
+ <Chip
+ label="Has videos"
+ size="small"
+ color={directoryInfo.hasVideos ? "success" : "default"}
+ icon={
+ directoryInfo.hasVideos ? (
+ <CheckCircleIcon />
+ ) : (
+ <CloseIcon />
+ )
+ }
+ variant={directoryInfo.hasVideos ? "filled" : "outlined"}
+ sx={
+ !directoryInfo.hasVideos
+ ? {
+ borderColor: theme.palette.grey[400],
+ "& .MuiChip-icon": {
+ color: theme.palette.grey[600],
+ },
+ }
+ : {}
+ }
+ />
+ <Chip
+ label="Has synchronized_videos"
+ size="small"
+ color={
+ directoryInfo.hasSynchronizedVideos
+ ? "success"
+ : "default"
+ }
+ icon={
+ directoryInfo.hasSynchronizedVideos ? (
+ <CheckCircleIcon />
+ ) : (
+ <CloseIcon />
+ )
+ }
+ variant={
+ directoryInfo.hasSynchronizedVideos
+ ? "filled"
+ : "outlined"
+ }
+ sx={
+ !directoryInfo.hasSynchronizedVideos
+ ? {
+ borderColor: theme.palette.grey[400],
+ "& .MuiChip-icon": {
+ color: theme.palette.grey[600],
+ },
+ }
+ : {}
+ }
+ />
+ <Chip
+ label="Has calibration TOML"
+ size="small"
+ color={
+ directoryInfo.cameraMocapTomlPath
+ ? "success"
+ : "default"
+ }
+ icon={
+ directoryInfo.cameraMocapTomlPath ? (
+ <CheckCircleIcon />
+ ) : (
+ <CloseIcon />
+ )
+ }
+ variant={
+ directoryInfo.cameraMocapTomlPath
+ ? "filled"
+ : "outlined"
+ }
+ sx={
+ !directoryInfo.cameraMocapTomlPath
+ ? {
+ borderColor: theme.palette.grey[400],
+ "& .MuiChip-icon": {
+ color: theme.palette.grey[600],
+ },
+ }
+ : {}
+ }
+ />
+ </Box>
+
+ {directoryInfo.cameraMocapTomlPath && (
+ <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.cameraMocapTomlPath}
+ </Typography>
+ </Box>
+ )}
+ </Stack>
+ </Box>
+ )}
+
+ {/* Recording Progress */}
+ {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>
+ )}
+
+ {/* MediaPipe Detector Config */}
+ <MediapipeConfigPanel />
+
+ {/* Skeleton Filter Config */}
+ <SkeletonFilterConfigPanel />
+
+ {/* Process Recording Button */}
+ <Button
+ variant="contained"
+ color="secondary"
+ onClick={dispatchProcessMocapRecording}
+ disabled={!canProcessMocapRecording || isLoading}
+ fullWidth
+ >
+ Process Selected Recording
+ </Button>
+ </Stack>
+ </Box>
+ </CollapsibleSidebarSection>
+ );
+};
diff --git a/freemocap-ui/src/components/mocap-control-panel/SkeletonFilterConfigPanel.tsx b/freemocap-ui/src/components/mocap-control-panel/SkeletonFilterConfigPanel.tsx
new file mode 100644
index 00000000..776cc1ff
--- /dev/null
+++ b/freemocap-ui/src/components/mocap-control-panel/SkeletonFilterConfigPanel.tsx
@@ -0,0 +1,215 @@
+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} 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;
+};
+
+export const SkeletonFilterConfigPanel: React.FC = () => {
+ const theme = useTheme();
+ const sliderSx = useSliderSx();
+ const {skeletonFilterConfig, updateSkeletonFilterConfig, replaceSkeletonFilterConfig, isLoading} = useMocap();
+
+ const handleResetDefaults = useCallback(() => {
+ replaceSkeletonFilterConfig({...DEFAULT_REALTIME_FILTER_CONFIG});
+ }, [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"
+ onClick={handleResetDefaults}
+ disabled={isLoading}
+ sx={{fontSize: 11, textTransform: "none"}}
+ >
+ Reset Defaults
+ </Button>
+ </Stack>
+
+ {/* === 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 />
+
+ {/* === 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 />
+
+ {/* === 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 />
+
+ {/* === Body Model === */}
+ <Typography variant="caption" sx={{color: SECTION_COLOR, fontWeight: 600}}>
+ Body Model
+ </Typography>
+
+ <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)"
+ type="number"
+ size="small"
+ value={skeletonFilterConfig.height_meters}
+ onChange={(e) => {
+ const val = parseFloat(e.target.value);
+ if (!isNaN(val) && val > 0) {
+ updateSkeletonFilterConfig({height_meters: val});
+ }
+ }}
+ inputProps={{step: 0.01, min: 0.5, max: 3.0}}
+ disabled={isLoading}
+ fullWidth
+ />
+ </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>
+ );
+};
diff --git a/freemocap-ui/src/components/playback/RecordingBrowser.tsx b/freemocap-ui/src/components/playback/RecordingBrowser.tsx
index 892abd48..c2dbd633 100644
--- a/freemocap-ui/src/components/playback/RecordingBrowser.tsx
+++ b/freemocap-ui/src/components/playback/RecordingBrowser.tsx
@@ -223,7 +223,7 @@ export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingL
setIsLoadingList(true);
setError(null);
try {
- const response = await fetch(serverUrls.endpoints.playbackRecordings);
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.playbackRecordings);
if (!response.ok) {
throw new Error(`Failed to fetch recordings: ${response.statusText}`);
}
@@ -266,7 +266,7 @@ export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingL
setError(null);
try {
- const response = await fetch(serverUrls.endpoints.playbackLoad, {
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.playbackLoad, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ recording_path: recordingPath }),
diff --git a/freemocap-ui/src/components/processing-pipeline-panel/PipelineConnectionStatus.tsx b/freemocap-ui/src/components/processing-pipeline-panel/PipelineConnectionStatus.tsx
new file mode 100644
index 00000000..9c658847
--- /dev/null
+++ b/freemocap-ui/src/components/processing-pipeline-panel/PipelineConnectionStatus.tsx
@@ -0,0 +1,110 @@
+import {Box, CircularProgress, Typography} from "@mui/material";
+import CheckIcon from '@mui/icons-material/Check';
+import CloseIcon from '@mui/icons-material/Close';
+import {useAppDispatch, useAppSelector} from "@/store/hooks";
+import {
+ closePipeline,
+ connectRealtimePipeline,
+ selectCanConnectPipeline,
+ selectCanDisconnectPipeline,
+ selectIsPipelineConnected,
+ selectIsPipelineLoading,
+ selectPipelineError,
+ selectPipelineId,
+} from "@/store/slices/pipeline";
+
+export const PipelineConnectionStatus = () => {
+ const dispatch = useAppDispatch();
+
+ const isConnected = useAppSelector(selectIsPipelineConnected);
+ const pipelineId = useAppSelector(selectPipelineId);
+ const isLoading = useAppSelector(selectIsPipelineLoading);
+ const error = useAppSelector(selectPipelineError);
+ const canConnect = useAppSelector(selectCanConnectPipeline);
+ const canDisconnect = useAppSelector(selectCanDisconnectPipeline);
+
+ const handleToggleConnection = async (e: React.MouseEvent) => {
+ e.stopPropagation();
+
+ if (isLoading) return;
+
+ if (isConnected) {
+ console.log('Disconnecting from pipeline');
+ await dispatch(closePipeline());
+ } else {
+ console.log('Connecting to pipeline');
+ await dispatch(connectRealtimePipeline(undefined));
+ }
+ };
+
+ const isClickable = canConnect || canDisconnect;
+
+ return (
+ <Box
+ sx={{
+ display: 'flex',
+ justifyContent: 'flex-end',
+ padding: '10px',
+ flexDirection: 'column',
+ pl: 4,
+ cursor: isClickable ? 'pointer' : 'not-allowed',
+ border: '4px solid rgb(0, 125, 125)',
+ backgroundColor: isConnected ? '#005d94' : '#395067',
+ borderRadius: '8px',
+ opacity: isClickable ? 1 : 0.6,
+ ':hover': isClickable ? {
+ backgroundColor: 'rgba(255, 255, 255, 0.05)',
+ borderColor: 'rgb(0, 225, 225)',
+ } : {},
+ }}
+ onClick={isClickable ? handleToggleConnection : undefined}
+ >
+ <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',
+ cursor: isClickable ? 'pointer' : 'not-allowed',
+ 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',
+ '&:hover': isClickable ? {
+ backgroundColor: 'rgba(255, 255, 255, 0.05)',
+ borderColor: 'rgba(255, 255, 255, 0.2)',
+ } : {},
+ }}>
+ {isLoading ? (
+ <CircularProgress size={16} sx={{ color: 'cyan' }} />
+ ) : isConnected ? (
+ <CheckIcon sx={{ color: 'green' }} />
+ ) : (
+ <CloseIcon fontSize="small" sx={{ color: 'red' }} />
+ )}
+ </Box>
+ Pipeline: {isConnected ? `connected (id: ${pipelineId})` : 'disconnected'}
+ {error && (
+ <Typography variant="caption" color="error" sx={{ ml: 1 }}>
+ {error}
+ </Typography>
+ )}
+ </Typography>
+ </Box>
+ );
+};
+
+export default PipelineConnectionStatus;
diff --git a/freemocap-ui/src/components/processing-pipeline-panel/PipelineConnectionToggle.tsx b/freemocap-ui/src/components/processing-pipeline-panel/PipelineConnectionToggle.tsx
new file mode 100644
index 00000000..a53a1d8c
--- /dev/null
+++ b/freemocap-ui/src/components/processing-pipeline-panel/PipelineConnectionToggle.tsx
@@ -0,0 +1,80 @@
+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 {
+ closePipeline,
+ connectRealtimePipeline,
+ selectCanConnectPipeline,
+ selectCanDisconnectPipeline,
+ selectIsPipelineConnected,
+ selectIsPipelineLoading,
+} from "@/store/slices/pipeline";
+
+export const PipelineConnectionToggle: 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 isClickable = canConnect || canDisconnect;
+
+ const handleToggle = async (e: React.MouseEvent): Promise<void> => {
+ e.stopPropagation();
+ if (isLoading) return;
+
+ if (isConnected) {
+ await dispatch(closePipeline());
+ } else {
+ await dispatch(connectRealtimePipeline(undefined));
+ }
+ };
+
+ 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/processing-pipeline-panel/PipelineSummary.tsx b/freemocap-ui/src/components/processing-pipeline-panel/PipelineSummary.tsx
new file mode 100644
index 00000000..05619890
--- /dev/null
+++ b/freemocap-ui/src/components/processing-pipeline-panel/PipelineSummary.tsx
@@ -0,0 +1,56 @@
+import React from "react";
+import {Chip, Typography, useTheme} from "@mui/material";
+import {useAppSelector} from "@/store/hooks";
+import {
+ selectIsPipelineConnected,
+ selectPipelineError,
+ selectPipelineId,
+} from "@/store/slices/pipeline";
+
+export const PipelineSummary: 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/processing-pipeline-panel/ProcessingPipelinePanel.tsx b/freemocap-ui/src/components/processing-pipeline-panel/ProcessingPipelinePanel.tsx
new file mode 100644
index 00000000..60250ec7
--- /dev/null
+++ b/freemocap-ui/src/components/processing-pipeline-panel/ProcessingPipelinePanel.tsx
@@ -0,0 +1,114 @@
+import React from "react";
+import {Box, FormControlLabel, Stack, Switch, Typography, useTheme} from "@mui/material";
+import LanIcon from "@mui/icons-material/Lan";
+import {CollapsibleSidebarSection} from "@/components/common/CollapsibleSidebarSection";
+import {PipelineConnectionToggle} from "@/components/processing-pipeline-panel/PipelineConnectionToggle";
+import {PipelineSummary} from "@/components/processing-pipeline-panel/PipelineSummary";
+import {useAppSelector} from "@/store/hooks";
+import {selectBackendPipeline} from "@/store/slices/settings";
+import {MediapipeConfigPanel} from "@/components/mocap-control-panel/MediapipeConfigPanel";
+import {SkeletonFilterConfigPanel} from "@/components/mocap-control-panel/SkeletonFilterConfigPanel";
+import {useServer} from "@/services";
+
+export const ProcessingPipelinePanel: React.FC = () => {
+ const theme = useTheme();
+ const {send, isConnected} = useServer();
+ const backendPipeline = useAppSelector(selectBackendPipeline);
+
+ const pipelineConfig = backendPipeline?.config;
+ const isPipelineConnected = backendPipeline?.is_connected ?? false;
+ const canToggle = isConnected && isPipelineConnected;
+
+ const handleToggleCalibrationDetection = (_: React.ChangeEvent, checked: boolean) => {
+ send({
+ message_type: "settings/patch",
+ patch: {
+ pipeline: {
+ config: {
+ calibration_detection_enabled: checked,
+ },
+ },
+ },
+ });
+ };
+
+ const handleToggleMocapDetection = (_: React.ChangeEvent, checked: boolean) => {
+ send({
+ message_type: "settings/patch",
+ patch: {
+ pipeline: {
+ config: {
+ mocap_detection_enabled: checked,
+ },
+ },
+ },
+ });
+ };
+
+ return (
+ <CollapsibleSidebarSection
+ icon={<LanIcon sx={{transform: "scaleY(-1.05)", color: "inherit"}} />}
+ title="Realtime Pipeline"
+ summaryContent={<PipelineSummary />}
+ primaryControl={<PipelineConnectionToggle />}
+ defaultExpanded={false}
+ >
+ <Box sx={{p: 2}}>
+ <Stack spacing={2}>
+ {/* Detection toggles — always visible, disabled when pipeline not connected */}
+ <Typography
+ variant="subtitle2"
+ sx={{color: theme.palette.text.secondary, fontWeight: 600}}
+ >
+ Detection Stages
+ </Typography>
+ {!isPipelineConnected && (
+ <Typography variant="caption" color="text.secondary" sx={{fontStyle: "italic"}}>
+ Connect a pipeline to enable detection toggles.
+ </Typography>
+ )}
+ <FormControlLabel
+ control={
+ <Switch
+ size="small"
+ checked={pipelineConfig?.calibration_detection_enabled ?? true}
+ onChange={handleToggleCalibrationDetection}
+ disabled={!canToggle}
+ />
+ }
+ label={
+ <Typography variant="body2">
+ Charuco Detection (Calibration)
+ </Typography>
+ }
+ />
+ <FormControlLabel
+ control={
+ <Switch
+ size="small"
+ checked={pipelineConfig?.mocap_detection_enabled ?? true}
+ onChange={handleToggleMocapDetection}
+ disabled={!canToggle}
+ />
+ }
+ label={
+ <Typography variant="body2">
+ MediaPipe Detection (MoCap)
+ </Typography>
+ }
+ />
+
+ {/* MediaPipe config — always visible */}
+ <Box sx={{mt: 1, pl: 1, borderLeft: `2px solid ${theme.palette.divider}`}}>
+ <MediapipeConfigPanel />
+ </Box>
+
+ {/* Skeleton filter config — always visible */}
+ <Box sx={{mt: 1, pl: 1, borderLeft: `2px solid ${theme.palette.divider}`}}>
+ <SkeletonFilterConfigPanel />
+ </Box>
+ </Stack>
+ </Box>
+ </CollapsibleSidebarSection>
+ );
+};
diff --git a/freemocap-ui/src/components/recording-info-panel/recording-subcomponents/MicrophoneSelector.tsx b/freemocap-ui/src/components/recording-info-panel/recording-subcomponents/MicrophoneSelector.tsx
index 0065457b..8e8bf485 100644
--- a/freemocap-ui/src/components/recording-info-panel/recording-subcomponents/MicrophoneSelector.tsx
+++ b/freemocap-ui/src/components/recording-info-panel/recording-subcomponents/MicrophoneSelector.tsx
@@ -34,7 +34,7 @@ export const MicrophoneSelector: React.FC<MicrophoneSelectorProps> = ({
setLoading(true);
setError(null);
try {
- const response = await fetch(serverUrls.endpoints.detectMicrophones);
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.detectMicrophones);
if (!response.ok) {
throw new Error(`Failed to detect microphones: ${response.statusText}`);
}
diff --git a/freemocap-ui/src/components/settings-editor/SettingsEditor.tsx b/freemocap-ui/src/components/settings-editor/SettingsEditor.tsx
new file mode 100644
index 00000000..16d67b9a
--- /dev/null
+++ b/freemocap-ui/src/components/settings-editor/SettingsEditor.tsx
@@ -0,0 +1,540 @@
+import React, { useState, useCallback, useRef, useMemo, useEffect } from 'react';
+import {
+ Box,
+ Button,
+ ButtonGroup,
+ Alert,
+ Snackbar,
+ Tooltip,
+ Divider,
+ CircularProgress,
+} from '@mui/material';
+import { useTheme } from '@mui/material/styles';
+import Editor, { OnMount } from '@monaco-editor/react';
+import UploadFileIcon from '@mui/icons-material/UploadFile';
+import DownloadIcon from '@mui/icons-material/Download';
+import CheckIcon from '@mui/icons-material/Check';
+import RestoreIcon from '@mui/icons-material/Restore';
+import ContentCopyIcon from '@mui/icons-material/ContentCopy';
+import {
+ useAppDispatch,
+ useAppSelector,
+ themeModeSet,
+ recordingDirectoryChanged,
+ configUpdated,
+ selectServerSettings,
+} from '@/store';
+import {
+ mocapDetectorConfigReplaced,
+ skeletonFilterConfigReplaced,
+ updateMocapConfigOnServer,
+} from '@/store/slices/mocap';
+import {calibrationConfigUpdated, updateCalibrationConfigOnServer } from '@/store/slices/calibration';
+import { ThemeMode } from '@/store/slices/theme/theme-types';
+import { useServer } from '@/hooks/useServer';
+import {
+ serialize,
+ deserialize,
+ convertFormat,
+ SerializationFormat,
+ FORMAT_EXTENSIONS,
+ FORMAT_MIME_TYPES,
+ FORMAT_MONACO_LANGUAGES,
+} from './format-converters';
+
+// ── Aggregated settings shape (config-only, no runtime state) ──
+
+interface AggregatedSettings {
+ appearance: {
+ mode: string;
+ };
+ recording: {
+ recording_directory: string;
+ use_delay_start: boolean;
+ delay_seconds: number;
+ use_timestamp: boolean;
+ use_increment: boolean;
+ current_increment: number;
+ base_name: string;
+ recording_tag: string;
+ create_subfolder: boolean;
+ custom_subfolder_name: string;
+ };
+ calibration: {
+ live_track_charuco: boolean;
+ charuco_board_x_squares: number;
+ charuco_board_y_squares: number;
+ charuco_square_length: number;
+ min_shared_views_per_camera: number;
+ auto_stop_on_min_view_count: boolean;
+ solver_method: string;
+ use_groundplane: boolean;
+ };
+ mocap: {
+ detector: Record<string, unknown>;
+ skeleton_filter: Record<string, unknown>;
+ };
+ // vmc: {
+ // enabled: boolean;
+ // host: string;
+ // port: number;
+ // };
+}
+
+// ── Hook: gather current settings into a flat config object ──
+
+function useAggregatedSettings(): AggregatedSettings {
+ const themeMode = useAppSelector(state => state.theme.mode);
+ const recording = useAppSelector(state => state.recording);
+ const calibration = useAppSelector(state => state.calibration.config);
+ const mocap = useAppSelector(state => state.mocap.config);
+ const serverSettings = useAppSelector(selectServerSettings);
+
+ return useMemo((): AggregatedSettings => ({
+ appearance: {
+ mode: themeMode,
+ },
+ recording: {
+ recording_directory: recording.recordingDirectory,
+ use_delay_start: recording.config.useDelayStart,
+ delay_seconds: recording.config.delaySeconds,
+ use_timestamp: recording.config.useTimestamp,
+ use_increment: recording.config.useIncrement,
+ current_increment: recording.config.currentIncrement,
+ base_name: recording.config.baseName,
+ recording_tag: recording.config.recordingTag,
+ create_subfolder: recording.config.createSubfolder,
+ custom_subfolder_name: recording.config.customSubfolderName,
+ },
+ calibration: {
+ live_track_charuco: calibration.liveTrackCharuco,
+ charuco_board_x_squares: calibration.charucoBoardXSquares,
+ charuco_board_y_squares: calibration.charucoBoardYSquares,
+ charuco_square_length: calibration.charucoSquareLength,
+ min_shared_views_per_camera: calibration.minSharedViewsPerCamera,
+ auto_stop_on_min_view_count: calibration.autoStopOnMinViewCount,
+ solver_method: calibration.solverMethod,
+ use_groundplane: calibration.useGroundplane,
+ },
+ mocap: {
+ detector: mocap.detector as unknown as Record<string, unknown>,
+ skeleton_filter: mocap.skeleton_filter as unknown as Record<string, unknown>,
+ },
+ // vmc: {
+ // enabled: serverSettings?.vmc?.enabled ?? false,
+ // host: serverSettings?.vmc?.host ?? '127.0.0.1',
+ // port: serverSettings?.vmc?.port ?? 39539,
+ // },
+ }), [themeMode, recording, calibration, mocap, serverSettings]);
+}
+
+// ── Apply parsed settings back to the Redux stores ──
+
+function useApplySettings() {
+ const dispatch = useAppDispatch();
+ const { send, isConnected } = useServer();
+
+ return useCallback((parsed: Record<string, unknown>) => {
+ const settings = parsed as unknown as Partial<AggregatedSettings>;
+
+ // Appearance
+ if (settings.appearance && typeof settings.appearance.mode === 'string') {
+ const mode = settings.appearance.mode;
+ if (mode === 'dark' || mode === 'light') {
+ dispatch(themeModeSet(mode as ThemeMode));
+ } else {
+ throw new Error(`Invalid appearance.mode: "${mode}" (must be "dark" or "light")`);
+ }
+ }
+
+ // Recording
+ if (settings.recording) {
+ const rec = settings.recording;
+ if (typeof rec.recording_directory === 'string') {
+ dispatch(recordingDirectoryChanged(rec.recording_directory));
+ }
+ dispatch(configUpdated({
+ useDelayStart: rec.use_delay_start,
+ delaySeconds: rec.delay_seconds,
+ useTimestamp: rec.use_timestamp,
+ useIncrement: rec.use_increment,
+ currentIncrement: rec.current_increment,
+ baseName: rec.base_name,
+ recordingTag: rec.recording_tag,
+ createSubfolder: rec.create_subfolder,
+ customSubfolderName: rec.custom_subfolder_name,
+ }));
+ }
+
+ // Calibration
+ if (settings.calibration) {
+ const cal = settings.calibration;
+ dispatch(calibrationConfigUpdated({
+ liveTrackCharuco: cal.live_track_charuco,
+ charucoBoardXSquares: cal.charuco_board_x_squares,
+ charucoBoardYSquares: cal.charuco_board_y_squares,
+ charucoSquareLength: cal.charuco_square_length,
+ minSharedViewsPerCamera: cal.min_shared_views_per_camera,
+ autoStopOnMinViewCount: cal.auto_stop_on_min_view_count,
+ solverMethod: cal.solver_method as 'anipose' | 'pyceres',
+ useGroundplane: cal.use_groundplane,
+ }));
+ dispatch(updateCalibrationConfigOnServer());
+ }
+
+ // Mocap
+ if (settings.mocap) {
+ if (settings.mocap.detector) {
+ dispatch(mocapDetectorConfigReplaced(settings.mocap.detector as any));
+ }
+ if (settings.mocap.skeleton_filter) {
+ dispatch(skeletonFilterConfigReplaced(settings.mocap.skeleton_filter as any));
+ }
+ dispatch(updateMocapConfigOnServer());
+ }
+
+ // VMC (patched via WebSocket)
+ if (settings.vmc && isConnected) {
+ send({
+ message_type: 'settings/patch',
+ patch: {
+ vmc: {
+ enabled: settings.vmc.enabled,
+ host: settings.vmc.host,
+ port: settings.vmc.port,
+ },
+ },
+ });
+ }
+ }, [dispatch, send, isConnected]);
+}
+
+// ── Format toggle button ──
+
+function FormatButton({
+ format,
+ active,
+ onClick,
+}: {
+ format: SerializationFormat;
+ active: boolean;
+ onClick: () => void;
+}) {
+ return (
+ <Button
+ size="small"
+ variant={active ? 'contained' : 'outlined'}
+ onClick={onClick}
+ sx={{
+ textTransform: 'uppercase',
+ fontWeight: 700,
+ fontSize: '0.7rem',
+ minWidth: 56,
+ letterSpacing: 0.8,
+ }}
+ >
+ {format}
+ </Button>
+ );
+}
+
+// ── Main editor component ──
+
+export const SettingsEditor: React.FC = () => {
+ const theme = useTheme();
+ const aggregated = useAggregatedSettings();
+ const applySettings = useApplySettings();
+
+ const [format, setFormat] = useState<SerializationFormat>('json');
+ const [editorContent, setEditorContent] = useState<string>('');
+ const [hasEdits, setHasEdits] = useState(false);
+ const [error, setError] = useState<string | null>(null);
+ const [snackbar, setSnackbar] = useState<{ message: string; severity: 'success' | 'error' } | null>(null);
+
+ const editorRef = useRef<any>(null);
+ const fileInputRef = useRef<HTMLInputElement>(null);
+
+ // Serialize current settings whenever aggregated state or format changes (only if no pending edits)
+ const serializedFromStore = useMemo(
+ () => serialize(aggregated as unknown as Record<string, unknown>, format),
+ [aggregated, format],
+ );
+
+ // Sync editor content from store when there are no pending edits
+ useEffect(() => {
+ if (!hasEdits) {
+ setEditorContent(serializedFromStore);
+ }
+ }, [serializedFromStore, hasEdits]);
+
+ // Initialize editor on first mount
+ useEffect(() => {
+ setEditorContent(serialize(aggregated as unknown as Record<string, unknown>, format));
+ // Only run on mount
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+
+ const handleEditorMount: OnMount = useCallback((editor) => {
+ editorRef.current = editor;
+ }, []);
+
+ const handleEditorChange = useCallback((value: string | undefined) => {
+ if (value === undefined) return;
+ setEditorContent(value);
+ setHasEdits(true);
+ setError(null);
+ }, []);
+
+ // Format switching — convert current content to new format
+ const handleFormatChange = useCallback((newFormat: SerializationFormat) => {
+ if (newFormat === format) return;
+ try {
+ const converted = convertFormat(editorContent, format, newFormat);
+ setEditorContent(converted);
+ setFormat(newFormat);
+ setError(null);
+ } catch (err) {
+ setError(`Cannot convert to ${newFormat.toUpperCase()}: ${err instanceof Error ? err.message : String(err)}`);
+ }
+ }, [editorContent, format]);
+
+ // Reset editor to current store state
+ const handleReset = useCallback(() => {
+ const fresh = serialize(aggregated as unknown as Record<string, unknown>, format);
+ setEditorContent(fresh);
+ setHasEdits(false);
+ setError(null);
+ }, [aggregated, format]);
+
+ // Apply edits to store
+ const handleApply = useCallback(() => {
+ try {
+ const parsed = deserialize(editorContent, format);
+ applySettings(parsed);
+ setHasEdits(false);
+ setError(null);
+ setSnackbar({ message: 'Settings applied successfully', severity: 'success' });
+ } catch (err) {
+ const message = err instanceof Error ? err.message : String(err);
+ setError(`Failed to apply: ${message}`);
+ setSnackbar({ message: `Failed to apply settings: ${message}`, severity: 'error' });
+ }
+ }, [editorContent, format, applySettings]);
+
+ // Copy to clipboard
+ const handleCopy = useCallback(async () => {
+ try {
+ await navigator.clipboard.writeText(editorContent);
+ setSnackbar({ message: 'Copied to clipboard', severity: 'success' });
+ } catch {
+ setSnackbar({ message: 'Failed to copy to clipboard', severity: 'error' });
+ }
+ }, [editorContent]);
+
+ // Download as file
+ const handleDownload = useCallback(() => {
+ const blob = new Blob([editorContent], { type: FORMAT_MIME_TYPES[format] });
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement('a');
+ a.href = url;
+ a.download = `freemocap-settings${FORMAT_EXTENSIONS[format]}`;
+ a.click();
+ URL.revokeObjectURL(url);
+ }, [editorContent, format]);
+
+ // Upload from file
+ const handleUploadClick = useCallback(() => {
+ fileInputRef.current?.click();
+ }, []);
+
+ const handleFileSelected = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
+ const file = e.target.files?.[0];
+ if (!file) return;
+
+ // Detect format from file extension
+ const ext = file.name.split('.').pop()?.toLowerCase();
+ let detectedFormat: SerializationFormat = format;
+ if (ext === 'json') detectedFormat = 'json';
+ else if (ext === 'yaml' || ext === 'yml') detectedFormat = 'yaml';
+ else if (ext === 'toml') detectedFormat = 'toml';
+
+ const reader = new FileReader();
+ reader.onload = (event) => {
+ const text = event.target?.result;
+ if (typeof text !== 'string') {
+ setError('Failed to read file');
+ return;
+ }
+ try {
+ // Validate by parsing
+ deserialize(text, detectedFormat);
+ setFormat(detectedFormat);
+ setEditorContent(text);
+ setHasEdits(true);
+ setError(null);
+ setSnackbar({ message: `Loaded ${file.name} (${detectedFormat.toUpperCase()})`, severity: 'success' });
+ } catch (err) {
+ setError(`Invalid ${detectedFormat.toUpperCase()} in ${file.name}: ${err instanceof Error ? err.message : String(err)}`);
+ }
+ };
+ reader.onerror = () => {
+ setError(`Failed to read file: ${file.name}`);
+ };
+ reader.readAsText(file);
+
+ // Reset the input so the same file can be re-selected
+ e.target.value = '';
+ }, [format]);
+
+ const isDark = theme.palette.mode === 'dark';
+
+ return (
+ <Box sx={{ display: 'flex', flexDirection: 'column', height: '100%', gap: 1.5 }}>
+ {/* Toolbar */}
+ <Box
+ sx={{
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'space-between',
+ flexWrap: 'wrap',
+ gap: 1,
+ }}
+ >
+ {/* Format selector */}
+ <ButtonGroup size="small" variant="outlined">
+ <FormatButton format="json" active={format === 'json'} onClick={() => handleFormatChange('json')} />
+ <FormatButton format="yaml" active={format === 'yaml'} onClick={() => handleFormatChange('yaml')} />
+ <FormatButton format="toml" active={format === 'toml'} onClick={() => handleFormatChange('toml')} />
+ </ButtonGroup>
+
+ {/* Action buttons */}
+ <Box sx={{ display: 'flex', gap: 0.75 }}>
+ <Tooltip title="Copy to clipboard">
+ <Button size="small" variant="outlined" onClick={handleCopy} sx={{ minWidth: 0, px: 1 }}>
+ <ContentCopyIcon sx={{ fontSize: 16 }} />
+ </Button>
+ </Tooltip>
+ <Tooltip title="Upload settings file (.json, .yaml, .toml)">
+ <Button size="small" variant="outlined" onClick={handleUploadClick} startIcon={<UploadFileIcon sx={{ fontSize: 16 }} />}>
+ Upload
+ </Button>
+ </Tooltip>
+ <Tooltip title={`Download as ${format.toUpperCase()}`}>
+ <Button size="small" variant="outlined" onClick={handleDownload} startIcon={<DownloadIcon sx={{ fontSize: 16 }} />}>
+ Download
+ </Button>
+ </Tooltip>
+
+ <Divider orientation="vertical" flexItem sx={{ mx: 0.5 }} />
+
+ <Tooltip title="Reset to current app state">
+ <span>
+ <Button
+ size="small"
+ variant="outlined"
+ onClick={handleReset}
+ disabled={!hasEdits}
+ startIcon={<RestoreIcon sx={{ fontSize: 16 }} />}
+ >
+ Reset
+ </Button>
+ </span>
+ </Tooltip>
+ <Tooltip title="Apply edits to app">
+ <span>
+ <Button
+ size="small"
+ variant="contained"
+ color="success"
+ onClick={handleApply}
+ disabled={!hasEdits}
+ startIcon={<CheckIcon sx={{ fontSize: 16 }} />}
+ >
+ Apply
+ </Button>
+ </span>
+ </Tooltip>
+ </Box>
+ </Box>
+
+ {/* Status bar */}
+ {hasEdits && (
+ <Alert severity="info" sx={{ py: 0, fontSize: '0.75rem' }}>
+ You have unsaved edits. Click <strong>Apply</strong> to push changes to the app, or <strong>Reset</strong> to discard.
+ </Alert>
+ )}
+ {error && (
+ <Alert severity="error" sx={{ py: 0, fontSize: '0.75rem' }}>
+ {error}
+ </Alert>
+ )}
+
+ {/* Monaco Editor */}
+ <Box
+ sx={{
+ flex: 1,
+ minHeight: 400,
+ border: `1px solid ${theme.palette.divider}`,
+ borderRadius: 1,
+ overflow: 'hidden',
+ }}
+ >
+ <Editor
+ height="100%"
+ language={FORMAT_MONACO_LANGUAGES[format]}
+ value={editorContent}
+ theme={isDark ? 'vs-dark' : 'light'}
+ onChange={handleEditorChange}
+ onMount={handleEditorMount}
+ loading={
+ <Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%' }}>
+ <CircularProgress size={32} />
+ </Box>
+ }
+ options={{
+ minimap: { enabled: false },
+ fontSize: 13,
+ fontFamily: "'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace",
+ lineNumbers: 'on',
+ scrollBeyondLastLine: false,
+ wordWrap: 'on',
+ tabSize: 2,
+ automaticLayout: true,
+ renderWhitespace: 'selection',
+ bracketPairColorization: { enabled: true },
+ folding: true,
+ formatOnPaste: true,
+ }}
+ />
+ </Box>
+
+ {/* Hidden file input for upload */}
+ <input
+ ref={fileInputRef}
+ type="file"
+ accept=".json,.yaml,.yml,.toml"
+ style={{ display: 'none' }}
+ onChange={handleFileSelected}
+ />
+
+ {/* Snackbar for feedback */}
+ <Snackbar
+ open={snackbar !== null}
+ autoHideDuration={3000}
+ onClose={() => setSnackbar(null)}
+ anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
+ >
+ {snackbar ? (
+ <Alert
+ onClose={() => setSnackbar(null)}
+ severity={snackbar.severity}
+ variant="filled"
+ sx={{ width: '100%' }}
+ >
+ {snackbar.message}
+ </Alert>
+ ) : undefined}
+ </Snackbar>
+ </Box>
+ );
+};
diff --git a/freemocap-ui/src/components/settings-editor/format-converters.ts b/freemocap-ui/src/components/settings-editor/format-converters.ts
new file mode 100644
index 00000000..dab7ab60
--- /dev/null
+++ b/freemocap-ui/src/components/settings-editor/format-converters.ts
@@ -0,0 +1,81 @@
+import yaml from 'js-yaml';
+import * as TOML from 'smol-toml';
+
+export type SerializationFormat = 'json' | 'yaml' | 'toml';
+
+/** Recursively remove null values from an object (TOML has no null concept). */
+function stripNulls(obj: Record<string, unknown>): Record<string, unknown> {
+ const result: Record<string, unknown> = {};
+ for (const [key, value] of Object.entries(obj)) {
+ if (value === null || value === undefined) continue;
+ if (typeof value === 'object' && !Array.isArray(value)) {
+ result[key] = stripNulls(value as Record<string, unknown>);
+ } else {
+ result[key] = value;
+ }
+ }
+ return result;
+}
+
+export function serialize(data: Record<string, unknown>, format: SerializationFormat): string {
+ switch (format) {
+ case 'json':
+ return JSON.stringify(data, null, 2);
+ case 'yaml':
+ return yaml.dump(data, {
+ indent: 2,
+ lineWidth: 120,
+ noRefs: true,
+ sortKeys: false,
+ });
+ case 'toml':
+ // smol-toml expects a plain record; strip null values since TOML has no null
+ return TOML.stringify(stripNulls(data) as any);
+ }
+}
+
+export function deserialize(text: string, format: SerializationFormat): Record<string, unknown> {
+ switch (format) {
+ case 'json': {
+ const parsed = JSON.parse(text);
+ if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed)) {
+ throw new Error('JSON root must be an object');
+ }
+ return parsed as Record<string, unknown>;
+ }
+ case 'yaml': {
+ const parsed = yaml.load(text);
+ if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed)) {
+ throw new Error('YAML root must be a mapping');
+ }
+ return parsed as Record<string, unknown>;
+ }
+ case 'toml': {
+ return TOML.parse(text) as Record<string, unknown>;
+ }
+ }
+}
+
+export function convertFormat(text: string, from: SerializationFormat, to: SerializationFormat): string {
+ if (from === to) return text;
+ const data = deserialize(text, from);
+ return serialize(data, to);
+}
+
+export const FORMAT_EXTENSIONS: Record<SerializationFormat, string> = {
+ json: '.json',
+ yaml: '.yaml',
+ toml: '.toml',
+};
+
+export const FORMAT_MIME_TYPES: Record<SerializationFormat, string> = {
+ json: 'application/json',
+ yaml: 'text/yaml',
+ toml: 'application/toml',
+};
+
+export const FORMAT_MONACO_LANGUAGES: Record<SerializationFormat, string> = {
+ json: 'json',
+ yaml: 'yaml',
+ toml: 'toml',
+};
diff --git a/freemocap-ui/src/components/ui-components/LeftSidePanelContent.tsx b/freemocap-ui/src/components/ui-components/LeftSidePanelContent.tsx
index f5e010b2..78de7c17 100644
--- a/freemocap-ui/src/components/ui-components/LeftSidePanelContent.tsx
+++ b/freemocap-ui/src/components/ui-components/LeftSidePanelContent.tsx
@@ -1,387 +1,290 @@
-// freemocap-ui/src/components/ui-components/LeftSidePanelContent.tsx
-import * as React from 'react';
-import Box from "@mui/material/Box";
-import {Button, IconButton, List, ListItem, Tooltip, useTheme} from "@mui/material";
-import {RecordingInfoPanel} from "@/components/recording-info-panel/RecordingInfoPanel";
-import ThemeToggle from "@/components/ui-components/ThemeToggle";
+import React, { useCallback, useMemo, useState } from 'react';
+import Box from '@mui/material/Box';
+import { IconButton, List, ListItem, Tooltip, 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 { restrictToVerticalAxis, restrictToParentElement } from '@dnd-kit/modifiers';
+import ThemeToggle from '@/components/ui-components/ThemeToggle';
import HomeIcon from '@mui/icons-material/Home';
-import MenuIcon from '@mui/icons-material/Menu';
-import MenuOpenIcon from '@mui/icons-material/MenuOpen';
-import FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord';
-import StopIcon from '@mui/icons-material/Stop';
+import { useLocation, useNavigate } from 'react-router-dom';
import VideocamIcon from '@mui/icons-material/Videocam';
-import SlideshowIcon from '@mui/icons-material/Slideshow';
-import SettingsIcon from '@mui/icons-material/Settings';
-import {useLocation, useNavigate} from "react-router-dom";
-import {CameraConfigTreeView} from "@/components/camera-config-tree-view/CameraConfigTreeView";
-import {ServerConnectionStatus} from "@/components/ServerConnectionStatus";
-import {useAppDispatch, useAppSelector} from "@/store";
-import {startRecording, stopRecording} from "@/store";
-import {useTranslation} from "react-i18next";
-import {useServer} from "@/services/server/ServerContextProvider";
-import {TreeItem} from "@mui/x-tree-view/TreeItem";
-import {MicrophoneSelector} from "@/components/recording-info-panel/recording-subcomponents/MicrophoneSelector";
-import {useElectronIPC} from "@/services";
-import {useState} from "react";
-import {getTimestampString} from "@/components/recording-info-panel/getTimestampString";
+import DirectionsRunIcon from '@mui/icons-material/DirectionsRun';
+import TuneIcon from '@mui/icons-material/Tune';
+import { VideoFolderPanel } from '@/components/video-folder-panel/VideoFolderPanel';
+import { SortableSectionWrapper } from '@/components/common/SortableSectionWrapper';
+import { ServerConnectionStatus } from '@/components/ServerConnectionStatus';
+import { ProcessingPipelinePanel } from '@/components/processing-pipeline-panel/ProcessingPipelinePanel';
+import { CameraConfigTreeView } from '@/components/camera-config-tree-view/CameraConfigTreeView';
+import { CalibrationControlPanel } from '@/components/calibration-control-panel/CalibrationControlPanel';
+import { MocapTaskTreeItem } from '@/components/mocap-control-panel/MocapTaskTreeItem';
-interface LeftSidePanelContentProps {
- isCollapsed: boolean;
- onToggleCollapse: () => void;
+const STORAGE_KEY = 'freemocap-sidebar-section-order';
+
+const DEFAULT_SECTION_ORDER = [
+ 'connection',
+ 'pipeline',
+ 'cameras',
+ 'calibration',
+ 'mocap',
+] as const;
+
+type SectionId = (typeof DEFAULT_SECTION_ORDER)[number];
+
+const SECTION_COMPONENTS: Record<SectionId, React.FC> = {
+ connection: ServerConnectionStatus,
+ pipeline: ProcessingPipelinePanel,
+ cameras: CameraConfigTreeView,
+ calibration: CalibrationControlPanel,
+ mocap: MocapTaskTreeItem,
+};
+
+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
+ }
}
-// Scrollbar styles
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)',
+ 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)',
+ 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',
+ scrollbarColor: (theme: { palette: { mode: string } }) =>
+ theme.palette.mode === 'dark'
+ ? 'rgba(255, 255, 255, 0.2) transparent'
+ : 'rgba(0, 0, 0, 0.2) transparent',
};
-/** Collapsed sidebar: vertical icon toolbar with hamburger, record, and cameras. */
-const CollapsedToolbar: React.FC<{
- onToggleCollapse: () => void;
- isRecording: boolean;
- noCameras: boolean;
- onRecordClick: () => void;
-}> = ({onToggleCollapse, isRecording, noCameras, onRecordClick}) => {
+export const LeftSidePanelContent = () => {
const theme = useTheme();
const navigate = useNavigate();
const location = useLocation();
- const {t} = useTranslation();
-
- return (
- <Box sx={{
- width: '100%',
- height: '100%',
- backgroundColor: theme.palette.mode === 'dark'
- ? theme.palette.background.paper
- : theme.palette.grey[50],
- display: 'flex',
- flexDirection: 'column',
- alignItems: 'center',
- pt: 0.5,
- gap: 0.5,
- }}>
- {/* Hamburger to expand */}
- <Tooltip title={t('expandSidebar')} placement="right">
- <IconButton size="small" onClick={onToggleCollapse} sx={{color: theme.palette.text.primary}}>
- <MenuIcon fontSize="small"/>
- </IconButton>
- </Tooltip>
+ const [sectionOrder, setSectionOrder] = useState<SectionId[]>(loadSectionOrder);
- {/* Record button */}
- <Tooltip title={isRecording ? t('stopRecording') : t('startRecording')} placement="right">
- <span>
- <IconButton
- size="small"
- onClick={onRecordClick}
- disabled={noCameras && !isRecording}
- sx={{
- color: isRecording ? '#fb1402' : theme.palette.text.secondary,
- animation: isRecording ? 'pulse-record 2s infinite' : 'none',
- '@keyframes pulse-record': {
- '0%, 100%': {color: '#fb1402'},
- '50%': {color: '#711c1c'},
- },
- }}
- >
- {isRecording ? <StopIcon fontSize="small"/> : <FiberManualRecordIcon fontSize="small"/>}
- </IconButton>
- </span>
- </Tooltip>
-
- {/* Cameras page */}
- <Tooltip title={t('cameras')} placement="right">
- <IconButton
- size="small"
- onClick={() => navigate('/cameras')}
- sx={{
- color: location.pathname === '/cameras'
- ? theme.palette.success.main
- : theme.palette.text.secondary,
- }}
- >
- <VideocamIcon fontSize="small"/>
- </IconButton>
- </Tooltip>
-
- {/* Videos page */}
- <Tooltip title={t('videos')} placement="right">
- <IconButton
- size="small"
- onClick={() => navigate('/playback')}
- sx={{
- color: location.pathname === '/playback'
- ? theme.palette.success.main
- : theme.palette.text.secondary,
- }}
- >
- <SlideshowIcon fontSize="small"/>
- </IconButton>
- </Tooltip>
-
- {/* Spacer */}
- <Box sx={{flex: 1}}/>
-
- {/* Settings page */}
- <Tooltip title={t('settings')} placement="right">
- <IconButton
- size="small"
- onClick={() => navigate('/settings')}
- sx={{
- color: location.pathname === '/settings'
- ? theme.palette.success.main
- : theme.palette.text.secondary,
- mb: 0.5,
- }}
- >
- <SettingsIcon fontSize="small"/>
- </IconButton>
- </Tooltip>
- </Box>
+ const sensors = useSensors(
+ useSensor(PointerSensor, {
+ activationConstraint: {
+ distance: 5,
+ },
+ }),
+ useSensor(KeyboardSensor, {
+ coordinateGetter: sortableKeyboardCoordinates,
+ }),
);
-};
-
-export const LeftSidePanelContent: React.FC<LeftSidePanelContentProps> = ({
- isCollapsed,
- onToggleCollapse,
- }) => {
- const theme = useTheme();
- const navigate = useNavigate();
- const location = useLocation();
- const dispatch = useAppDispatch();
- const {t} = useTranslation();
-
- const recordingInfo = useAppSelector((state) => state.recording);
- const isRecording = recordingInfo.isRecording;
- const {connectedCameraIds} = useServer();
- const noCameras = connectedCameraIds.length === 0;
- const [micDeviceIndex, setMicDeviceIndex] = useState<number>(-1);
- const handleCollapsedRecordClick = async (): Promise<void> => {
- if (isRecording) {
- await dispatch(stopRecording()).unwrap();
- } else {
- // Quick-start recording with timestamp-based defaults
- const recordingName = getTimestampString();
- await dispatch(startRecording({
- recordingName,
- recordingDirectory: recordingInfo.recordingDirectory,
- micDeviceIndex,
- })).unwrap();
- }
- };
+ const handleDragEnd = useCallback((event: DragEndEvent) => {
+ const { active, over } = event;
+ if (!over || active.id === over.id) return;
- const navButtonSx = (isActive: boolean) => ({
- padding: '4px',
- color: isActive ? theme.palette.success.main : theme.palette.text.secondary,
- '&:hover': {
- color: theme.palette.success.main,
- backgroundColor: theme.palette.action.hover,
- },
- });
+ 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;
+ });
+ }, []);
- // Collapsed: show vertical icon toolbar
- if (isCollapsed) {
- return (
- <CollapsedToolbar
- onToggleCollapse={onToggleCollapse}
- isRecording={isRecording}
- noCameras={noCameras}
- onRecordClick={handleCollapsedRecordClick}
- />
- );
- }
+ const modifiers = useMemo(
+ () => [restrictToVerticalAxis, restrictToParentElement],
+ [],
+ );
- // Expanded: full sidebar content
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 — single row with hamburger, title, nav icons */}
+ <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.5,
- px: 0.5,
+ 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',
- gap: 0.25,
- overflow: 'hidden',
}}
>
- {/* Hamburger to collapse */}
- <Tooltip title={t('collapseSidebar')}>
- <IconButton size="small" onClick={onToggleCollapse}
- sx={{color: theme.palette.text.primary, flexShrink: 0}}>
- <MenuOpenIcon fontSize="small"/>
- </IconButton>
- </Tooltip>
-
- {/* Title — truncates when narrow */}
<Box
component="span"
sx={{
- fontSize: 14,
+ fontSize: 16,
fontWeight: 600,
color: theme.palette.text.primary,
- overflow: 'hidden',
- textOverflow: 'ellipsis',
- whiteSpace: 'nowrap',
- minWidth: 0,
- flexShrink: 1,
- flexGrow: 1,
}}
>
FreeMoCap 💀✨
</Box>
- {/* Nav icons — fixed row, never wraps */}
- <Box sx={{display: 'flex', alignItems: 'center', gap: 0.25, flexShrink: 0}}>
- <Tooltip title={t('home')}>
- <IconButton
- size="small"
- onClick={() => navigate('/')}
- sx={navButtonSx(location.pathname === '/')}
- >
- <HomeIcon sx={{fontSize: 18}}/>
- </IconButton>
- </Tooltip>
+ <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('/viewport3d')}
+ >
+ <DirectionsRunIcon />
+ </IconButton>
- <Tooltip title={t('settings')}>
+ <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={navButtonSx(location.pathname === '/settings')}
+ sx={{
+ padding: '4px',
+ color:
+ location.pathname === '/settings'
+ ? theme.palette.success.main
+ : theme.palette.text.secondary,
+ }}
>
- <SettingsIcon sx={{fontSize: 18}}/>
+ <TuneIcon sx={{ fontSize: 18 }} />
</IconButton>
</Tooltip>
- <ThemeToggle/>
+ <ThemeToggle />
</Box>
</ListItem>
</List>
- {/* Server Settings */}
- <ServerConnectionStatus/>
- {/* Prominent Cameras / Playback page toggle */}
- <Box sx={{
- display: 'flex',
- gap: 0.5,
- px: 0.75,
- py: 0.75,
- borderBottom: theme.palette.mode === 'dark'
- ? '1px solid rgba(255,255,255,0.08)'
- : '1px solid rgba(0,0,0,0.08)',
- }}>
- <Button
- variant={location.pathname === '/cameras' ? 'contained' : 'outlined'}
- size="small"
- startIcon={<VideocamIcon sx={{fontSize: 16}}/>}
- onClick={() => navigate('/cameras')}
- fullWidth
- sx={{
- textTransform: 'none',
- fontWeight: 600,
- fontSize: '0.8rem',
- py: 0.75,
- ...(location.pathname === '/cameras' ? {
- backgroundColor: theme.palette.success.main,
- color: '#fff',
- '&:hover': {backgroundColor: theme.palette.success.dark},
- } : {
- borderColor: theme.palette.divider,
- color: theme.palette.text.secondary,
- '&:hover': {
- borderColor: theme.palette.success.main,
- color: theme.palette.success.main,
- backgroundColor: theme.palette.mode === 'dark'
- ? 'rgba(76,175,80,0.08)'
- : 'rgba(76,175,80,0.04)',
- },
- }),
- }}
- >
- {t('cameras')}
- </Button>
- <Button
- variant={location.pathname === '/playback' ? 'contained' : 'outlined'}
- size="small"
- startIcon={<SlideshowIcon sx={{fontSize: 16}}/>}
- onClick={() => navigate('/playback')}
- fullWidth
+
+ {/* Video Panel for Videos Page */}
+ {location.pathname === '/videos' && (
+ <Box
sx={{
- textTransform: 'none',
- fontWeight: 600,
- fontSize: '0.8rem',
- py: 0.75,
- ...(location.pathname === '/playback' ? {
- backgroundColor: theme.palette.info.main,
- color: '#fff',
- '&:hover': {backgroundColor: theme.palette.info.dark},
- } : {
- borderColor: theme.palette.divider,
- color: theme.palette.text.secondary,
- '&:hover': {
- borderColor: theme.palette.info.main,
- color: theme.palette.info.main,
- backgroundColor: theme.palette.mode === 'dark'
- ? 'rgba(41,182,246,0.08)'
- : 'rgba(41,182,246,0.04)',
- },
- }),
+ borderTop: '1px solid',
+ borderColor: theme.palette.divider,
}}
>
- {t('videoPlayback')}
- </Button>
- </Box>
-
+ <VideoFolderPanel />
+ </Box>
+ )}
- {/* Main Content Area */}
- <Box sx={{
- display: 'flex',
- flexDirection: 'column',
- gap: 0.5,
- pt: 0.5,
- pb: 2,
- }}>
- <RecordingInfoPanel/>
- <CameraConfigTreeView/>
- </Box>
+ {/* Sidebar Sections — drag-reorderable */}
+ <DndContext
+ sensors={sensors}
+ collisionDetection={closestCenter}
+ modifiers={modifiers}
+ onDragEnd={handleDragEnd}
+ >
+ <SortableContext
+ items={sectionOrder}
+ strategy={verticalListSortingStrategy}
+ >
+ <Box
+ sx={{
+ display: 'flex',
+ flexDirection: 'column',
+ gap: 0.75,
+ p: 0.75,
+ pb: 2,
+ }}
+ >
+ {sectionOrder.map((sectionId) => {
+ const Component = SECTION_COMPONENTS[sectionId];
+ return (
+ <SortableSectionWrapper key={sectionId} id={sectionId}>
+ <Component />
+ </SortableSectionWrapper>
+ );
+ })}
+ </Box>
+ </SortableContext>
+ </DndContext>
</Box>
);
};
diff --git a/freemocap-ui/src/components/ui-components/LeftSidePanelContent2.tsx b/freemocap-ui/src/components/ui-components/LeftSidePanelContent2.tsx
new file mode 100644
index 00000000..5ea7cd61
--- /dev/null
+++ b/freemocap-ui/src/components/ui-components/LeftSidePanelContent2.tsx
@@ -0,0 +1,387 @@
+// freemocap-ui/src/components/ui-components/LeftSidePanelContent.tsx
+import * as React from 'react';
+import Box from "@mui/material/Box";
+import {Button, IconButton, List, ListItem, Tooltip, useTheme} from "@mui/material";
+import {RecordingInfoPanel} from "@/components/recording-info-panel/RecordingInfoPanel";
+import ThemeToggle from "@/components/ui-components/ThemeToggle";
+import HomeIcon from '@mui/icons-material/Home';
+import MenuIcon from '@mui/icons-material/Menu';
+import MenuOpenIcon from '@mui/icons-material/MenuOpen';
+import FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord';
+import StopIcon from '@mui/icons-material/Stop';
+import VideocamIcon from '@mui/icons-material/Videocam';
+import SlideshowIcon from '@mui/icons-material/Slideshow';
+import SettingsIcon from '@mui/icons-material/Settings';
+import {useLocation, useNavigate} from "react-router-dom";
+import {CameraConfigTreeView} from "@/components/camera-config-tree-view/CameraConfigTreeView";
+import {ServerConnectionStatus} from "@/components/ServerConnectionStatus";
+import {useAppDispatch, useAppSelector} from "@/store";
+import {startRecording, stopRecording} from "@/store";
+import {useTranslation} from "react-i18next";
+import {useServer} from "@/services/server/ServerContextProvider";
+import {TreeItem} from "@mui/x-tree-view/TreeItem";
+import {MicrophoneSelector} from "@/components/recording-info-panel/recording-subcomponents/MicrophoneSelector";
+import {useElectronIPC} from "@/services";
+import {useState} from "react";
+import {getTimestampString} from "@/components/recording-info-panel/getTimestampString";
+
+interface LeftSidePanelContentProps {
+ isCollapsed: boolean;
+ onToggleCollapse: () => void;
+}
+
+// Scrollbar styles
+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',
+};
+
+/** Collapsed sidebar: vertical icon toolbar with hamburger, record, and cameras. */
+const CollapsedToolbar: React.FC<{
+ onToggleCollapse: () => void;
+ isRecording: boolean;
+ noCameras: boolean;
+ onRecordClick: () => void;
+}> = ({onToggleCollapse, isRecording, noCameras, onRecordClick}) => {
+ const theme = useTheme();
+ const navigate = useNavigate();
+ const location = useLocation();
+ const {t} = useTranslation();
+
+ return (
+ <Box sx={{
+ width: '100%',
+ height: '100%',
+ backgroundColor: theme.palette.mode === 'dark'
+ ? theme.palette.background.paper
+ : theme.palette.grey[50],
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ pt: 0.5,
+ gap: 0.5,
+ }}>
+ {/* Hamburger to expand */}
+ <Tooltip title={t('expandSidebar')} placement="right">
+ <IconButton size="small" onClick={onToggleCollapse} sx={{color: theme.palette.text.primary}}>
+ <MenuIcon fontSize="small"/>
+ </IconButton>
+ </Tooltip>
+
+ {/* Record button */}
+ <Tooltip title={isRecording ? t('stopRecording') : t('startRecording')} placement="right">
+ <span>
+ <IconButton
+ size="small"
+ onClick={onRecordClick}
+ disabled={noCameras && !isRecording}
+ sx={{
+ color: isRecording ? '#fb1402' : theme.palette.text.secondary,
+ animation: isRecording ? 'pulse-record 2s infinite' : 'none',
+ '@keyframes pulse-record': {
+ '0%, 100%': {color: '#fb1402'},
+ '50%': {color: '#711c1c'},
+ },
+ }}
+ >
+ {isRecording ? <StopIcon fontSize="small"/> : <FiberManualRecordIcon fontSize="small"/>}
+ </IconButton>
+ </span>
+ </Tooltip>
+
+ {/* Cameras page */}
+ <Tooltip title={t('cameras')} placement="right">
+ <IconButton
+ size="small"
+ onClick={() => navigate('/cameras')}
+ sx={{
+ color: location.pathname === '/cameras'
+ ? theme.palette.success.main
+ : theme.palette.text.secondary,
+ }}
+ >
+ <VideocamIcon fontSize="small"/>
+ </IconButton>
+ </Tooltip>
+
+ {/* Videos page */}
+ <Tooltip title={t('videos')} placement="right">
+ <IconButton
+ size="small"
+ onClick={() => navigate('/playback')}
+ sx={{
+ color: location.pathname === '/playback'
+ ? theme.palette.success.main
+ : theme.palette.text.secondary,
+ }}
+ >
+ <SlideshowIcon fontSize="small"/>
+ </IconButton>
+ </Tooltip>
+
+ {/* Spacer */}
+ <Box sx={{flex: 1}}/>
+
+ {/* Settings page */}
+ <Tooltip title={t('settings')} placement="right">
+ <IconButton
+ size="small"
+ onClick={() => navigate('/settings')}
+ sx={{
+ color: location.pathname === '/settings'
+ ? theme.palette.success.main
+ : theme.palette.text.secondary,
+ mb: 0.5,
+ }}
+ >
+ <SettingsIcon fontSize="small"/>
+ </IconButton>
+ </Tooltip>
+ </Box>
+ );
+};
+
+export const LeftSidePanelContent2: React.FC<LeftSidePanelContentProps> = ({
+ isCollapsed,
+ onToggleCollapse,
+ }) => {
+ const theme = useTheme();
+ const navigate = useNavigate();
+ const location = useLocation();
+ const dispatch = useAppDispatch();
+ const {t} = useTranslation();
+
+ const recordingInfo = useAppSelector((state) => state.recording);
+ const isRecording = recordingInfo.isRecording;
+ const {connectedCameraIds} = useServer();
+ const noCameras = connectedCameraIds.length === 0;
+ const [micDeviceIndex, setMicDeviceIndex] = useState<number>(-1);
+
+ const handleCollapsedRecordClick = async (): Promise<void> => {
+ if (isRecording) {
+ await dispatch(stopRecording()).unwrap();
+ } else {
+ // Quick-start recording with timestamp-based defaults
+ const recordingName = getTimestampString();
+ await dispatch(startRecording({
+ recordingName,
+ recordingDirectory: recordingInfo.recordingDirectory,
+ micDeviceIndex,
+ })).unwrap();
+ }
+ };
+
+ const navButtonSx = (isActive: boolean) => ({
+ padding: '4px',
+ color: isActive ? theme.palette.success.main : theme.palette.text.secondary,
+ '&:hover': {
+ color: theme.palette.success.main,
+ backgroundColor: theme.palette.action.hover,
+ },
+ });
+
+ // Collapsed: show vertical icon toolbar
+ if (isCollapsed) {
+ return (
+ <CollapsedToolbar
+ onToggleCollapse={onToggleCollapse}
+ isRecording={isRecording}
+ noCameras={noCameras}
+ onRecordClick={handleCollapsedRecordClick}
+ />
+ );
+ }
+
+ // Expanded: full sidebar content
+ 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 — single row with hamburger, title, nav icons */}
+ <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.5,
+ px: 0.5,
+ minHeight: 40,
+ display: 'flex',
+ justifyContent: 'space-between',
+ alignItems: 'center',
+ gap: 0.25,
+ overflow: 'hidden',
+ }}
+ >
+ {/* Hamburger to collapse */}
+ <Tooltip title={t('collapseSidebar')}>
+ <IconButton size="small" onClick={onToggleCollapse}
+ sx={{color: theme.palette.text.primary, flexShrink: 0}}>
+ <MenuOpenIcon fontSize="small"/>
+ </IconButton>
+ </Tooltip>
+
+ {/* Title — truncates when narrow */}
+ <Box
+ component="span"
+ sx={{
+ fontSize: 14,
+ fontWeight: 600,
+ color: theme.palette.text.primary,
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ minWidth: 0,
+ flexShrink: 1,
+ flexGrow: 1,
+ }}
+ >
+ FreeMoCap 💀✨
+ </Box>
+
+ {/* Nav icons — fixed row, never wraps */}
+ <Box sx={{display: 'flex', alignItems: 'center', gap: 0.25, flexShrink: 0}}>
+ <Tooltip title={t('home')}>
+ <IconButton
+ size="small"
+ onClick={() => navigate('/')}
+ sx={navButtonSx(location.pathname === '/')}
+ >
+ <HomeIcon sx={{fontSize: 18}}/>
+ </IconButton>
+ </Tooltip>
+
+ <Tooltip title={t('settings')}>
+ <IconButton
+ size="small"
+ onClick={() => navigate('/settings')}
+ sx={navButtonSx(location.pathname === '/settings')}
+ >
+ <SettingsIcon sx={{fontSize: 18}}/>
+ </IconButton>
+ </Tooltip>
+
+ <ThemeToggle/>
+ </Box>
+ </ListItem>
+ </List>
+ {/* Server Settings */}
+ <ServerConnectionStatus/>
+ {/* Prominent Cameras / Playback page toggle */}
+ <Box sx={{
+ display: 'flex',
+ gap: 0.5,
+ px: 0.75,
+ py: 0.75,
+ borderBottom: theme.palette.mode === 'dark'
+ ? '1px solid rgba(255,255,255,0.08)'
+ : '1px solid rgba(0,0,0,0.08)',
+ }}>
+ <Button
+ variant={location.pathname === '/cameras' ? 'contained' : 'outlined'}
+ size="small"
+ startIcon={<VideocamIcon sx={{fontSize: 16}}/>}
+ onClick={() => navigate('/cameras')}
+ fullWidth
+ sx={{
+ textTransform: 'none',
+ fontWeight: 600,
+ fontSize: '0.8rem',
+ py: 0.75,
+ ...(location.pathname === '/cameras' ? {
+ backgroundColor: theme.palette.success.main,
+ color: '#fff',
+ '&:hover': {backgroundColor: theme.palette.success.dark},
+ } : {
+ borderColor: theme.palette.divider,
+ color: theme.palette.text.secondary,
+ '&:hover': {
+ borderColor: theme.palette.success.main,
+ color: theme.palette.success.main,
+ backgroundColor: theme.palette.mode === 'dark'
+ ? 'rgba(76,175,80,0.08)'
+ : 'rgba(76,175,80,0.04)',
+ },
+ }),
+ }}
+ >
+ {t('cameras')}
+ </Button>
+ <Button
+ variant={location.pathname === '/playback' ? 'contained' : 'outlined'}
+ size="small"
+ startIcon={<SlideshowIcon sx={{fontSize: 16}}/>}
+ onClick={() => navigate('/playback')}
+ fullWidth
+ sx={{
+ textTransform: 'none',
+ fontWeight: 600,
+ fontSize: '0.8rem',
+ py: 0.75,
+ ...(location.pathname === '/playback' ? {
+ backgroundColor: theme.palette.info.main,
+ color: '#fff',
+ '&:hover': {backgroundColor: theme.palette.info.dark},
+ } : {
+ borderColor: theme.palette.divider,
+ color: theme.palette.text.secondary,
+ '&:hover': {
+ borderColor: theme.palette.info.main,
+ color: theme.palette.info.main,
+ backgroundColor: theme.palette.mode === 'dark'
+ ? 'rgba(41,182,246,0.08)'
+ : 'rgba(41,182,246,0.04)',
+ },
+ }),
+ }}
+ >
+ {t('videoPlayback')}
+ </Button>
+ </Box>
+
+
+ {/* Main Content Area */}
+ <Box sx={{
+ display: 'flex',
+ flexDirection: 'column',
+ gap: 0.5,
+ pt: 0.5,
+ pb: 2,
+ }}>
+ <RecordingInfoPanel/>
+ <CameraConfigTreeView/>
+ </Box>
+ </Box>
+ );
+};
diff --git a/freemocap-ui/src/hooks/useAppUrls.ts b/freemocap-ui/src/hooks/useAppUrls.ts
deleted file mode 100644
index e11345d0..00000000
--- a/freemocap-ui/src/hooks/useAppUrls.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-export interface DefaultUrlConfig {
- host: string;
- port: number;
-}
-
-// Default URL configuration
-const defaultUrlConfig: DefaultUrlConfig = {
- host: 'localhost',
- port: 8006,
-};
-
-
-// Get the base HTTP URL
-const getBaseHttpUrl = () => {
- const {host, port} = defaultUrlConfig;
- return `http://${host}:${port}`;
-};
-
-// Get a specific API URL
-const getApiUrl = (path: string) => {
- return `${getBaseHttpUrl()}${path}`;
-};
-
-// Get WebSocket URL
-const getWebSocketUrl = () => {
- const {host, port} = defaultUrlConfig;
- return `ws://${host}:${port}/freemocap/websocket/connect`;
-};
-
-// Get all HTTP endpoint URLs
-const getHttpEndpointUrls = () => {
- return {
- health: getApiUrl('/health'),
- shutdown: getApiUrl('/shutdown'),
- detectCameras: getApiUrl('/freemocap/camera/detect'),
- createGroup: getApiUrl('/freemocap/camera/group/apply'),
- closeAll: getApiUrl('/freemocap/camera/group/close/all'),
- updateConfigs: getApiUrl('/freemocap/camera/update'),
- startRecording: getApiUrl('/freemocap/camera/group/all/record/start'),
- stopRecording: getApiUrl('/freemocap/camera/group/all/record/stop'),
- pauseUnpauseCameras: getApiUrl('/freemocap/camera/group/all/pause_unpause'),
- };
-};
-
-export const useAppUrls = {
- getBaseHttpUrl,
- getApiUrl,
- getWebSocketUrl,
- getHttpEndpointUrls,
-};
diff --git a/freemocap-ui/src/hooks/useCalibration.ts b/freemocap-ui/src/hooks/useCalibration.ts
new file mode 100644
index 00000000..8888a26a
--- /dev/null
+++ b/freemocap-ui/src/hooks/useCalibration.ts
@@ -0,0 +1,114 @@
+// hooks/useCalibration.ts
+import {useCallback} from 'react';
+import {useAppDispatch, useAppSelector} from '@/store/hooks';
+
+import {useElectronIPC} from '@/services';
+import {
+ calibrateRecording,
+ CalibrationConfig,
+ calibrationConfigUpdated,
+ calibrationDirectoryInfoUpdated,
+ calibrationErrorCleared,
+ manualCalibrationRecordingPathChanged,
+ manualCalibrationRecordingPathCleared,
+ selectCalibration,
+ selectCalibrationDirectoryInfo,
+ selectCalibrationRecordingPath,
+ selectCanCalibrate,
+ selectCanStartCalibrationRecording,
+ selectIsUsingManualCalibrationPath,
+ startCalibrationRecording,
+ stopCalibrationRecording,
+ updateCalibrationConfigOnServer
+} from "@/store/slices/calibration";
+
+export function useCalibration() {
+ const dispatch = useAppDispatch();
+ const { api, isElectron } = useElectronIPC();
+ const calibrationState = useAppSelector(selectCalibration);
+ const canStartRecording = useAppSelector(selectCanStartCalibrationRecording);
+ const canCalibrate = useAppSelector(selectCanCalibrate);
+ const calibrationRecordingPath = useAppSelector(selectCalibrationRecordingPath);
+ const directoryInfo = useAppSelector(selectCalibrationDirectoryInfo);
+ const isUsingManualPath = useAppSelector(selectIsUsingManualCalibrationPath);
+
+ const updateCalibrationConfig = useCallback(
+ (updates: Partial<CalibrationConfig>) => {
+ // Update local state first
+ dispatch(calibrationConfigUpdated(updates));
+ // Then sync to server - this reads from the updated state
+ dispatch(updateCalibrationConfigOnServer());
+ },
+ [dispatch]
+ );
+
+ const validateDirectory = useCallback(
+ async (directoryPath: string) => {
+ if (!isElectron || !api) {
+ console.warn('Electron API not available - skipping directory validation');
+ return;
+ }
+
+ try {
+ const info = await api.fileSystem.validateCalibrationDirectory.query({ directoryPath });
+ dispatch(calibrationDirectoryInfoUpdated(info));
+ } catch (error) {
+ console.error('Failed to validate calibration directory:', error);
+ // Don't throw - just log the error
+ }
+ },
+ [dispatch, isElectron, api]
+ );
+
+ const setManualRecordingPath = useCallback(
+ async (path: string) => {
+ dispatch(manualCalibrationRecordingPathChanged(path));
+ // Validate the new path
+ await validateDirectory(path);
+ },
+ [dispatch, validateDirectory]
+ );
+
+ const clearManualRecordingPath = useCallback(() => {
+ dispatch(manualCalibrationRecordingPathCleared());
+ }, [dispatch]);
+
+ const dispatchStartCalibrationRecording = useCallback(() => {
+ dispatch(startCalibrationRecording());
+ }, [dispatch]);
+
+ const dispatchStopCalibrationRecording = useCallback(() => {
+ dispatch(stopCalibrationRecording());
+ }, [dispatch]);
+
+ const calibrate = useCallback(() => {
+ dispatch(calibrateRecording());
+ }, [dispatch]);
+
+ const clearError = useCallback(() => {
+ dispatch(calibrationErrorCleared());
+ }, [dispatch]);
+
+ return {
+ // State
+ config: calibrationState.config,
+ error: calibrationState.error,
+ isLoading: calibrationState.isLoading,
+ isRecording: calibrationState.isRecording,
+ recordingProgress: calibrationState.recordingProgress,
+ calibrationRecordingPath,
+ directoryInfo,
+ isUsingManualPath,
+ canStartRecording,
+ canCalibrate,
+ // Actions
+ updateCalibrationConfig,
+ setManualRecordingPath,
+ clearManualRecordingPath,
+ validateDirectory,
+ dispatchStartCalibrationRecording,
+ dispatchStopCalibrationRecording,
+ calibrateSelectedRecording: calibrate,
+ clearError,
+ };
+}
diff --git a/freemocap-ui/src/hooks/useKeyboardShortcuts.ts b/freemocap-ui/src/hooks/useKeyboardShortcuts.ts
index 940c596e..add08a3c 100644
--- a/freemocap-ui/src/hooks/useKeyboardShortcuts.ts
+++ b/freemocap-ui/src/hooks/useKeyboardShortcuts.ts
@@ -1,7 +1,7 @@
// src/hooks/useKeyboardShortcuts.ts
import { useEffect } from "react";
import { useAppDispatch } from "@/store";
-import { localeToggled } from "@/store/slices/settings";
+// import { localeToggled } from "@/store/slices/settings";
import { pauseUnpauseCameras } from "@/store/slices/cameras";
/**
@@ -26,7 +26,7 @@ export function useKeyboardShortcuts(): void {
// Ctrl+Shift+L (or Cmd+Shift+L on macOS) — toggle language
if ((e.ctrlKey || e.metaKey) && e.shiftKey && e.key.toLowerCase() === "l") {
e.preventDefault();
- dispatch(localeToggled());
+ // dispatch(localeToggled());
return;
}
diff --git a/freemocap-ui/src/hooks/useMenuActions.ts b/freemocap-ui/src/hooks/useMenuActions.ts
index a64f7135..c4acf272 100644
--- a/freemocap-ui/src/hooks/useMenuActions.ts
+++ b/freemocap-ui/src/hooks/useMenuActions.ts
@@ -7,7 +7,7 @@ import { themeModeToggled } from '@/store/slices/theme';
import { detectCameras, camerasConnectOrUpdate, closeCameras, pauseUnpauseCameras } from '@/store/slices/cameras';
import { stopRecording } from '@/store/slices/recording';
import { selectVideoLoadFolder } from '@/store/slices/videos';
-import { localeChanged, selectLocale, localeToggled } from '@/store/slices/settings';
+// import { localeChanged, selectLocale, localeToggled } from '@/store/slices/settings';
import { isElectron } from '@/services/electron-ipc/electron-ipc';
import { SUPPORTED_LOCALES } from '@/i18n';
@@ -61,7 +61,7 @@ export function useMenuActions({ onToggleSidebar }: UseMenuActionsParams): void
const { t, i18n } = useTranslation();
const isRecording = useAppSelector((state) => state.recording.isRecording);
- const currentLocale = useAppSelector(selectLocale);
+ // const currentLocale = useAppSelector(selectLocale);
// Send translated menu labels + locale list to the main process whenever the language changes
useEffect(() => {
@@ -74,9 +74,9 @@ export function useMenuActions({ onToggleSidebar }: UseMenuActionsParams): void
window.electronAPI.sendMenuLabels({
labels,
locales: LOCALE_ENTRIES,
- currentLocale,
+ // currentLocale,
});
- }, [t, i18n.language, currentLocale]);
+ }, [t, i18n.language]);//, currentLocale]);
// Listen for menu actions dispatched from the native menu
useEffect(() => {
@@ -86,9 +86,9 @@ export function useMenuActions({ onToggleSidebar }: UseMenuActionsParams): void
// Handle locale change actions (dynamic pattern: "change-locale:xx")
if (action.startsWith('change-locale:')) {
const localeCode = action.slice('change-locale:'.length);
- if (localeCode in SUPPORTED_LOCALES) {
- dispatch(localeChanged(localeCode as SupportedLocale));
- }
+ // if (localeCode in SUPPORTED_LOCALES) {
+ // dispatch(localeChanged(localeCode as SupportedLocale));
+ // }
return;
}
@@ -141,7 +141,7 @@ export function useMenuActions({ onToggleSidebar }: UseMenuActionsParams): void
// Locale toggle
case 'toggle-locale':
- dispatch(localeToggled());
+ // dispatch(localeToggled());
break;
// Recording actions
diff --git a/freemocap-ui/src/hooks/useMocap.ts b/freemocap-ui/src/hooks/useMocap.ts
new file mode 100644
index 00000000..0233834a
--- /dev/null
+++ b/freemocap-ui/src/hooks/useMocap.ts
@@ -0,0 +1,144 @@
+import {useCallback} from 'react';
+import {useAppDispatch, useAppSelector} from '@/store/hooks';
+import {useElectronIPC} from '@/services';
+import {
+ MediapipeDetectorConfig,
+ RealtimeFilterConfig,
+ mocapDetectorConfigReplaced,
+ mocapDetectorConfigUpdated,
+ skeletonFilterConfigReplaced,
+ skeletonFilterConfigUpdated,
+ mocapDirectoryInfoUpdated,
+ mocapErrorCleared,
+ manualMocapRecordingPathChanged,
+ manualMocapRecordingPathCleared,
+ selectMocap,
+ selectMocapDetectorConfig,
+ selectSkeletonFilterConfig,
+ selectMocapDirectoryInfo,
+ selectMocapRecordingPath,
+ selectCanProcessMocapRecording,
+ selectCanStartMocapRecording,
+ selectIsUsingManualMocapPath,
+ startMocapRecording,
+ stopMocapRecording,
+ processMocapRecording,
+ updateMocapConfigOnServer,
+} from "@/store/slices/mocap";
+
+export function useMocap() {
+ const dispatch = useAppDispatch();
+ const {api, isElectron} = useElectronIPC();
+ const mocapState = useAppSelector(selectMocap);
+ const detectorConfig = useAppSelector(selectMocapDetectorConfig);
+ const skeletonFilterConfig = useAppSelector(selectSkeletonFilterConfig);
+ const canStartRecording = useAppSelector(selectCanStartMocapRecording);
+ const canProcessMocapRecording = useAppSelector(selectCanProcessMocapRecording);
+ const mocapRecordingPath = useAppSelector(selectMocapRecordingPath);
+ const directoryInfo = useAppSelector(selectMocapDirectoryInfo);
+ const isUsingManualPath = useAppSelector(selectIsUsingManualMocapPath);
+
+ const updateDetectorConfig = useCallback(
+ (updates: Partial<MediapipeDetectorConfig>) => {
+ dispatch(mocapDetectorConfigUpdated(updates));
+ dispatch(updateMocapConfigOnServer());
+ },
+ [dispatch]
+ );
+
+ const replaceDetectorConfig = useCallback(
+ (config: MediapipeDetectorConfig) => {
+ dispatch(mocapDetectorConfigReplaced(config));
+ dispatch(updateMocapConfigOnServer());
+ },
+ [dispatch]
+ );
+
+ const updateSkeletonFilterConfig = useCallback(
+ (updates: Partial<RealtimeFilterConfig>) => {
+ dispatch(skeletonFilterConfigUpdated(updates));
+ dispatch(updateMocapConfigOnServer());
+ },
+ [dispatch]
+ );
+
+ const replaceSkeletonFilterConfig = useCallback(
+ (config: RealtimeFilterConfig) => {
+ dispatch(skeletonFilterConfigReplaced(config));
+ dispatch(updateMocapConfigOnServer());
+ },
+ [dispatch]
+ );
+
+ const validateDirectory = useCallback(
+ async (directoryPath: string) => {
+ if (!isElectron || !api) {
+ console.warn('Electron API not available - skipping directory validation');
+ return;
+ }
+
+ try {
+ const info = await api.fileSystem.validateMocapDirectory.query({directoryPath});
+ dispatch(mocapDirectoryInfoUpdated(info));
+ } catch (error) {
+ console.error('Failed to validate mocap directory:', error);
+ }
+ },
+ [dispatch, isElectron, api]
+ );
+
+ const setManualRecordingPath = useCallback(
+ async (path: string) => {
+ dispatch(manualMocapRecordingPathChanged(path));
+ await validateDirectory(path);
+ },
+ [dispatch, validateDirectory]
+ );
+
+ const clearManualRecordingPath = useCallback(() => {
+ dispatch(manualMocapRecordingPathCleared());
+ }, [dispatch]);
+
+ const dispatchStartMocapRecording = useCallback(() => {
+ dispatch(startMocapRecording());
+ }, [dispatch]);
+
+ const dispatchStopMocapRecording = useCallback(() => {
+ dispatch(stopMocapRecording());
+ }, [dispatch]);
+
+ const dispatchProcessMocapRecording = useCallback(() => {
+ dispatch(processMocapRecording());
+ }, [dispatch]);
+
+ const clearError = useCallback(() => {
+ dispatch(mocapErrorCleared());
+ }, [dispatch]);
+
+ return {
+ // State
+ config: mocapState.config,
+ detectorConfig,
+ skeletonFilterConfig,
+ error: mocapState.error,
+ isLoading: mocapState.isLoading,
+ isRecording: mocapState.isRecording,
+ recordingProgress: mocapState.recordingProgress,
+ mocapRecordingPath,
+ directoryInfo,
+ isUsingManualPath,
+ canStartRecording,
+ canProcessMocapRecording,
+ // Actions
+ updateDetectorConfig,
+ replaceDetectorConfig,
+ updateSkeletonFilterConfig,
+ replaceSkeletonFilterConfig,
+ setManualRecordingPath,
+ clearManualRecordingPath,
+ dispatchStartMocapRecording,
+ dispatchStopMocapRecording,
+ dispatchProcessMocapRecording,
+ clearError,
+ };
+}
diff --git a/freemocap-ui/src/pages/PlaybackPage.tsx b/freemocap-ui/src/pages/PlaybackPage.tsx
index 5be591b2..3cc5f437 100644
--- a/freemocap-ui/src/pages/PlaybackPage.tsx
+++ b/freemocap-ui/src/pages/PlaybackPage.tsx
@@ -64,7 +64,7 @@ const PlaybackPage: React.FC = () => {
const fetchTimestamps = async () => {
try {
- const response = await fetch(serverUrls.endpoints.playbackAllTimestamps);
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.playbackAllTimestamps);
if (!response.ok) return;
const data = await response.json();
if (data.timestamps && Object.keys(data.timestamps).length > 0) {
diff --git a/freemocap-ui/src/pages/SettingsPage.tsx b/freemocap-ui/src/pages/SettingsPage.tsx
index 662d3f10..5872c475 100644
--- a/freemocap-ui/src/pages/SettingsPage.tsx
+++ b/freemocap-ui/src/pages/SettingsPage.tsx
@@ -34,7 +34,7 @@ import {
showTranslationIndicatorToggled,
selectLocale,
selectShowTranslationIndicator,
-} from "@/store/slices/settings";
+} from "@/store/slices/locale";
import {
SUPPORTED_LOCALES,
getTranslationSource,
diff --git a/freemocap-ui/src/services/server/server-helpers/server-urls.ts b/freemocap-ui/src/services/server/server-helpers/server-urls.ts
index 21ec6813..f4c19b44 100644
--- a/freemocap-ui/src/services/server/server-helpers/server-urls.ts
+++ b/freemocap-ui/src/services/server/server-helpers/server-urls.ts
@@ -63,6 +63,25 @@ class ServerUrls {
playbackTimestamps: (videoId: string) => `${baseUrl}/freemocap/playback/timestamps/${videoId}`,
playbackAllTimestamps: `${baseUrl}/freemocap/playback/timestamps`,
+ // Pipeline endpoints
+ pipelineConnectOrUpdate: `${baseUrl}/freemocap/pipeline/connect`,
+ pipelineClose: `${baseUrl}/freemocap/pipeline/all/close`,
+ pipelinePauseUnpause: `${baseUrl}/freemocap/pipeline/all/pause_unpause`,
+ pipelineRecordStart: `${baseUrl}/freemocap/pipeline/all/record/start`,
+ pipelineRecordStop: `${baseUrl}/freemocap/pipeline/all/record/stop`,
+
+ // Calibration endpoints
+ calibrationStartRecording: `${baseUrl}/freemocap/calibration/recording/start`,
+ calibrationStopRecording: `${baseUrl}/freemocap/calibration/recording/stop`,
+ calibrateRecording: `${baseUrl}/freemocap/calibration/recording/calibrate`,
+ updateCalibrationConfig: `${baseUrl}/freemocap/calibration/config/update/all`,
+
+ // Mocap endpoints
+ mocapStartRecording: `${baseUrl}/freemocap/mocap/recording/start`,
+ mocapStopRecording: `${baseUrl}/freemocap/mocap/recording/stop`,
+ processMocapRecording: `${baseUrl}/freemocap/mocap/recording/process`,
+ updateMocapConfig: `${baseUrl}/freemocap/mocap/config/update/all`,
+
// WebSocket
websocket: this.getWebSocketUrl(),
};
diff --git a/freemocap-ui/src/store/index.ts b/freemocap-ui/src/store/index.ts
index cdd75c82..83d75918 100644
--- a/freemocap-ui/src/store/index.ts
+++ b/freemocap-ui/src/store/index.ts
@@ -8,4 +8,6 @@ export * from './slices/cameras';
export * from './slices/recording';
export * from './slices/theme';
export * from './slices/videos';
+export * from './slices/pipeline';
+export * from './slices/mocap';
export * from './slices/settings';
diff --git a/freemocap-ui/src/store/slices/calibration/calibration-slice.ts b/freemocap-ui/src/store/slices/calibration/calibration-slice.ts
new file mode 100644
index 00000000..65124964
--- /dev/null
+++ b/freemocap-ui/src/store/slices/calibration/calibration-slice.ts
@@ -0,0 +1,221 @@
+import {createSelector, createSlice, PayloadAction} from '@reduxjs/toolkit';
+import {RootState} from '../../types';
+import {
+ calibrateRecording,
+ startCalibrationRecording,
+ stopCalibrationRecording,
+ updateCalibrationConfigOnServer,
+} from "@/store/slices/calibration/calibration-thunks";
+
+// ==================== Types ====================
+
+export type CalibrationSolverMethod = 'anipose' | 'pyceres';
+
+export interface CalibrationConfig {
+ liveTrackCharuco: boolean;
+ charucoBoardXSquares: number;
+ charucoBoardYSquares: number;
+ charucoSquareLength: number;
+ minSharedViewsPerCamera: number;
+ autoStopOnMinViewCount: boolean;
+ solverMethod: CalibrationSolverMethod;
+ useGroundplane: boolean;
+}
+
+export interface CalibrationDirectoryInfo {
+ exists: boolean;
+ canRecord: boolean;
+ canCalibrate: boolean;
+ cameraCalibrationTomlPath: string | null;
+ hasSynchronizedVideos: boolean;
+ hasVideos: boolean;
+ errorMessage: string | null;
+}
+
+export interface CalibrationState {
+ config: CalibrationConfig;
+ isRecording: boolean;
+ recordingProgress: number;
+ isLoading: boolean;
+ error: string | null;
+ lastCalibrationRecordingPath: string | null;
+ manualCalibrationRecordingPath: string | null;
+ directoryInfo: CalibrationDirectoryInfo | null;
+}
+
+// ==================== Initial State ====================
+
+const initialState: CalibrationState = {
+ config: {
+ liveTrackCharuco: true,
+ charucoBoardXSquares: 5,
+ charucoBoardYSquares: 3,
+ charucoSquareLength: 1,
+ minSharedViewsPerCamera: 200,
+ autoStopOnMinViewCount: true,
+ solverMethod: 'anipose',
+ useGroundplane: false,
+ },
+ isRecording: false,
+ recordingProgress: 0,
+ isLoading: false,
+ error: null,
+ lastCalibrationRecordingPath: null,
+ manualCalibrationRecordingPath: null,
+ directoryInfo: null,
+};
+
+// ==================== Slice ====================
+
+export const calibrationSlice = createSlice({
+ name: 'calibration',
+ initialState,
+ reducers: {
+ calibrationConfigUpdated: (state, action: PayloadAction<Partial<CalibrationConfig>>) => {
+ state.config = { ...state.config, ...action.payload };
+ },
+
+ calibrationProgressUpdated: (state, action: PayloadAction<number>) => {
+ state.recordingProgress = action.payload;
+ },
+
+ calibrationErrorCleared: (state) => {
+ state.error = null;
+ },
+
+ manualCalibrationRecordingPathChanged: (state, action: PayloadAction<string>) => {
+ state.manualCalibrationRecordingPath = action.payload;
+ },
+
+ manualCalibrationRecordingPathCleared: (state) => {
+ state.manualCalibrationRecordingPath = null;
+ },
+
+ calibrationDirectoryInfoUpdated: (state, action: PayloadAction<CalibrationDirectoryInfo>) => {
+ state.directoryInfo = action.payload;
+ },
+
+ resetCalibrationState: () => initialState,
+ },
+
+ extraReducers: (builder) => {
+ builder
+ .addCase(startCalibrationRecording.pending, (state) => {
+ state.isLoading = true;
+ state.error = null;
+ })
+ .addCase(startCalibrationRecording.fulfilled, (state, action) => {
+ state.isLoading = false;
+ state.isRecording = true;
+ state.recordingProgress = 0;
+ if (action.payload.calibrationRecordingPath) {
+ state.lastCalibrationRecordingPath = action.payload.calibrationRecordingPath;
+ }
+ })
+ .addCase(startCalibrationRecording.rejected, (state, action) => {
+ state.isLoading = false;
+ state.error = action.payload || 'Failed to start recording';
+ });
+
+ builder
+ .addCase(stopCalibrationRecording.pending, (state) => {
+ state.isLoading = true;
+ state.error = null;
+ })
+ .addCase(stopCalibrationRecording.fulfilled, (state) => {
+ state.isLoading = false;
+ state.isRecording = false;
+ state.recordingProgress = 0;
+ })
+ .addCase(stopCalibrationRecording.rejected, (state, action) => {
+ state.isLoading = false;
+ state.error = action.payload || 'Failed to stop recording';
+ });
+
+ builder
+ .addCase(calibrateRecording.pending, (state) => {
+ state.isLoading = true;
+ state.error = null;
+ })
+ .addCase(calibrateRecording.fulfilled, (state) => {
+ state.isLoading = false;
+ })
+ .addCase(calibrateRecording.rejected, (state, action) => {
+ state.isLoading = false;
+ state.error = action.payload || 'Failed to calibrate recording';
+ });
+
+ builder
+ .addCase(updateCalibrationConfigOnServer.rejected, (state, action) => {
+ state.error = action.payload || 'Failed to sync config to server';
+ });
+ },
+});
+
+// ==================== Selectors ====================
+
+export const selectCalibration = (state: RootState) => state.calibration;
+export const selectCalibrationConfig = (state: RootState) => state.calibration.config;
+export const selectCalibrationIsLoading = (state: RootState) => state.calibration.isLoading;
+export const selectCalibrationIsRecording = (state: RootState) => state.calibration.isRecording;
+export const selectCalibrationProgress = (state: RootState) => state.calibration.recordingProgress;
+export const selectCalibrationError = (state: RootState) => state.calibration.error;
+export const selectCalibrationDirectoryInfo = (state: RootState) => state.calibration.directoryInfo;
+
+export const selectCalibrationRecordingPath = createSelector(
+ [
+ (state: RootState) => state.calibration.manualCalibrationRecordingPath,
+ (state: RootState) => state.calibration.lastCalibrationRecordingPath,
+ (state: RootState) => state.recording.computed,
+ ],
+ (manualPath, lastPath, recordingComputed) => {
+ if (manualPath) return manualPath;
+ if (lastPath) return lastPath;
+
+ const calibrationFolderName = `${recordingComputed.recordingName}_calibration`;
+ return `${recordingComputed.fullRecordingPath}/${calibrationFolderName}`;
+ }
+);
+
+export const selectIsUsingManualCalibrationPath = createSelector(
+ [(state: RootState) => state.calibration.manualCalibrationRecordingPath],
+ (manualPath) => manualPath !== null
+);
+
+export const selectCanStartCalibrationRecording = createSelector(
+ [
+ selectCalibrationIsRecording,
+ selectCalibrationIsLoading,
+ selectCalibrationRecordingPath,
+ selectCalibrationDirectoryInfo
+ ],
+ (isRecording, isLoading, recordingPath, directoryInfo) => {
+ return !isRecording && !isLoading && !!recordingPath && (directoryInfo?.canRecord ?? true);
+ }
+);
+
+export const selectCanCalibrate = createSelector(
+ [
+ selectCalibrationRecordingPath,
+ selectCalibrationIsLoading,
+ selectCalibrationIsRecording,
+ selectCalibrationDirectoryInfo
+ ],
+ (calibrationPath, isLoading, isRecording, directoryInfo) => {
+ return !!calibrationPath && !isLoading && !isRecording && (directoryInfo?.canCalibrate ?? false);
+ }
+);
+
+// ==================== Actions Export ====================
+
+export const {
+ calibrationConfigUpdated,
+ calibrationProgressUpdated,
+ calibrationErrorCleared,
+ manualCalibrationRecordingPathChanged,
+ manualCalibrationRecordingPathCleared,
+ calibrationDirectoryInfoUpdated,
+ resetCalibrationState
+} = calibrationSlice.actions;
+
+export default calibrationSlice.reducer;
diff --git a/freemocap-ui/src/store/slices/calibration/calibration-thunks.ts b/freemocap-ui/src/store/slices/calibration/calibration-thunks.ts
new file mode 100644
index 00000000..ae68dca3
--- /dev/null
+++ b/freemocap-ui/src/store/slices/calibration/calibration-thunks.ts
@@ -0,0 +1,169 @@
+import {createAsyncThunk} from "@reduxjs/toolkit";
+import {RootState} from "@/store";
+import {selectCalibrationRecordingPath} from "./calibration-slice";
+import {getDetailedErrorMessage} from "@/store/slices/thunk-helpers";
+import {serverUrls} from "@/services";
+
+export const startCalibrationRecording = createAsyncThunk<
+ { success: boolean; message?: string; calibrationRecordingPath?: string },
+ void,
+ { state: RootState; rejectValue: string }
+>(
+ 'calibration/startRecording',
+ async (_, { getState, rejectWithValue }) => {
+ try {
+ const state = getState();
+ const calibrationTaskConfig = state.calibration.config;
+ const calibrationRecordingDirectory = selectCalibrationRecordingPath(state);
+
+ if (!calibrationRecordingDirectory) {
+ return rejectWithValue('Recording directory is not set');
+ }
+
+ console.log('🎬 Starting calibration recording with:', {
+ calibrationRecordingDirectory,
+ calibrationTaskConfig,
+ });
+
+ const response = await fetch(serverUrls.endpoints.calibrationStartRecording, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ calibrationRecordingDirectory,
+ calibrationTaskConfig,
+ }),
+ });
+
+ if (!response.ok) {
+ const errorMessage = await getDetailedErrorMessage(response);
+ return rejectWithValue(errorMessage);
+ }
+
+ const result = await response.json();
+ console.log('✅ Started calibration recording:', result);
+ return result;
+ } catch (error) {
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
+ console.error('❌ Failed to start calibration recording:', errorMessage);
+ return rejectWithValue(errorMessage);
+ }
+ }
+);
+
+export const stopCalibrationRecording = createAsyncThunk<
+ { success: boolean },
+ void,
+ { state: RootState; rejectValue: string }
+>(
+ 'calibration/stopRecording',
+ async (_, { getState, rejectWithValue }) => {
+ try {
+ const state = getState();
+ const calibrationTaskConfig = state.calibration.config;
+
+
+ console.log(`🎬 Stoping calibration recording and starting calibration with: ${JSON.stringify(calibrationTaskConfig, null, 2)}`);
+
+
+ const response = await fetch(serverUrls.endpoints.calibrationStopRecording, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({calibrationTaskConfig}),
+ });
+
+ if (!response.ok) {
+ const errorMessage = await getDetailedErrorMessage(response);
+ return rejectWithValue(errorMessage);
+ }
+
+ const result = await response.json();
+ console.log('✅ Stopped calibration recording:', result);
+ return result;
+ } catch (error) {
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
+ console.error('❌ Failed to stop calibration recording:', errorMessage);
+ return rejectWithValue(errorMessage);
+ }
+ }
+);
+
+export const calibrateRecording = createAsyncThunk<
+ { success: boolean; message?: string; results?: unknown },
+ void,
+ { state: RootState; rejectValue: string }
+>(
+ 'calibration/calibrateRecording',
+ async (_, { getState, rejectWithValue }) => {
+ try {
+ const state = getState();
+ const calibrationTaskConfig = state.calibration.config;
+ const calibrationRecordingDirectory = selectCalibrationRecordingPath(state);
+
+ if (!calibrationRecordingDirectory) {
+ return rejectWithValue('No calibration recording path available. Please set a recording directory or record a calibration first.');
+ }
+
+ console.log('🔧 Calibrating recording:', {
+ calibrationRecordingDirectory,
+ calibrationTaskConfig,
+ });
+
+ const response = await fetch(serverUrls.endpoints.calibrateRecording, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ calibrationRecordingDirectory,
+ calibrationTaskConfig,
+ }),
+ });
+
+ if (!response.ok) {
+ const errorMessage = await getDetailedErrorMessage(response);
+ return rejectWithValue(errorMessage);
+ }
+
+ const result = await response.json();
+ console.log('✅ Calibration completed:', result);
+ return result;
+ } catch (error) {
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
+ console.error('❌ Failed to calibrate recording:', errorMessage);
+ return rejectWithValue(errorMessage);
+ }
+ }
+);
+
+export const updateCalibrationConfigOnServer = createAsyncThunk<
+ { success: boolean; message?: string },
+ void,
+ { state: RootState; rejectValue: string }
+>(
+ 'calibration/updateConfig',
+ async (_, { getState, rejectWithValue }) => {
+ try {
+ const state = getState();
+ const config = state.calibration.config;
+
+ console.log('⚙️ Updating calibration config on server:', config);
+
+ const response = await fetch(serverUrls.endpoints.updateCalibrationConfig, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ config }),
+ });
+
+ if (!response.ok) {
+ const errorMessage = await getDetailedErrorMessage(response);
+ return rejectWithValue(errorMessage);
+ }
+
+ const result = await response.json();
+ console.log('✅ Config updated on server:', result);
+ return result;
+ } catch (error) {
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
+ console.error('❌ Failed to update config on server:', errorMessage);
+ return rejectWithValue(errorMessage);
+ }
+ }
+);
diff --git a/freemocap-ui/src/store/slices/calibration/index.ts b/freemocap-ui/src/store/slices/calibration/index.ts
new file mode 100644
index 00000000..b50cd008
--- /dev/null
+++ b/freemocap-ui/src/store/slices/calibration/index.ts
@@ -0,0 +1,3 @@
+
+export * from './calibration-slice';
+export * from './calibration-thunks';
diff --git a/freemocap-ui/src/store/slices/locale/index.ts b/freemocap-ui/src/store/slices/locale/index.ts
new file mode 100644
index 00000000..673e0e14
--- /dev/null
+++ b/freemocap-ui/src/store/slices/locale/index.ts
@@ -0,0 +1,3 @@
+export * from "./locale-slice";
+export * from "./locale-types";
+export * from "./locale-selectors";
diff --git a/freemocap-ui/src/store/slices/locale/locale-selectors.ts b/freemocap-ui/src/store/slices/locale/locale-selectors.ts
new file mode 100644
index 00000000..cdff72ab
--- /dev/null
+++ b/freemocap-ui/src/store/slices/locale/locale-selectors.ts
@@ -0,0 +1,7 @@
+import { RootState } from "../../types";
+
+export const selectLocale = (state: RootState) => state.locale.locale;
+export const selectPreviousLocale = (state: RootState) =>
+ state.locale.previousLocale;
+export const selectShowTranslationIndicator = (state: RootState) =>
+ state.locale.showTranslationIndicator;
diff --git a/freemocap-ui/src/store/slices/locale/locale-slice.ts b/freemocap-ui/src/store/slices/locale/locale-slice.ts
new file mode 100644
index 00000000..3e758efc
--- /dev/null
+++ b/freemocap-ui/src/store/slices/locale/locale-slice.ts
@@ -0,0 +1,87 @@
+ import { createSlice, PayloadAction } from "@reduxjs/toolkit";
+import type { LocaleState } from "./locale-types";
+import type { SupportedLocale } from "@/i18n";
+import { FALLBACK_LOCALE, getLocaleDirection } from "@/i18n";
+import i18n from "@/i18n/i18n";
+
+const STORAGE_KEYS = {
+ LOCALE: "skellycam:locale",
+ PREVIOUS_LOCALE: "skellycam:previousLocale",
+ SHOW_TRANSLATION_INDICATOR: "skellycam:showTranslationIndicator",
+} as const;
+
+function loadLocale(): SupportedLocale {
+ if (typeof window === "undefined") return FALLBACK_LOCALE;
+ const saved = localStorage.getItem(STORAGE_KEYS.LOCALE);
+ if (saved) return saved as SupportedLocale;
+ return (i18n.language as SupportedLocale) || FALLBACK_LOCALE;
+}
+
+function loadPreviousLocale(): SupportedLocale | null {
+ if (typeof window === "undefined") return null;
+ const saved = localStorage.getItem(STORAGE_KEYS.PREVIOUS_LOCALE);
+ return saved as SupportedLocale | null;
+}
+
+function loadShowTranslationIndicator(): boolean {
+ if (typeof window === "undefined") return true;
+ const saved = localStorage.getItem(STORAGE_KEYS.SHOW_TRANSLATION_INDICATOR);
+ if (saved !== null) return JSON.parse(saved) as boolean;
+ return true;
+}
+
+/** Applies locale side-effects: syncs i18next, document dir, and localStorage. */
+function applyLocale(locale: SupportedLocale): void {
+ localStorage.setItem(STORAGE_KEYS.LOCALE, locale);
+ i18n.changeLanguage(locale);
+ const dir = getLocaleDirection(locale);
+ document.documentElement.dir = dir;
+ document.documentElement.lang = locale;
+}
+
+const initialState: LocaleState = {
+ locale: loadLocale(),
+ previousLocale: loadPreviousLocale(),
+ showTranslationIndicator: loadShowTranslationIndicator(),
+};
+
+export const localeSlice = createSlice({
+ name: "settings",
+ initialState,
+ reducers: {
+ localeChanged: (state, action: PayloadAction<SupportedLocale>) => {
+ const next = action.payload;
+ if (next === state.locale) return;
+
+ // Remember the outgoing locale so we can toggle back to it
+ state.previousLocale = state.locale;
+ localStorage.setItem(STORAGE_KEYS.PREVIOUS_LOCALE, state.locale);
+
+ state.locale = next;
+ applyLocale(next);
+ },
+
+ /** Toggle between the current locale and the previous one (Ctrl+Shift+L). */
+ localeToggled: (state) => {
+ const target = state.previousLocale;
+ if (!target || target === state.locale) return;
+
+ const outgoing = state.locale;
+ state.locale = target;
+ state.previousLocale = outgoing;
+ localStorage.setItem(STORAGE_KEYS.PREVIOUS_LOCALE, outgoing);
+ applyLocale(target);
+ },
+
+ showTranslationIndicatorToggled: (state) => {
+ state.showTranslationIndicator = !state.showTranslationIndicator;
+ localStorage.setItem(
+ STORAGE_KEYS.SHOW_TRANSLATION_INDICATOR,
+ JSON.stringify(state.showTranslationIndicator)
+ );
+ },
+ },
+});
+
+export const { localeChanged, localeToggled, showTranslationIndicatorToggled } =
+ localeSlice.actions;
diff --git a/freemocap-ui/src/store/slices/locale/locale-types.ts b/freemocap-ui/src/store/slices/locale/locale-types.ts
new file mode 100644
index 00000000..bc885e6e
--- /dev/null
+++ b/freemocap-ui/src/store/slices/locale/locale-types.ts
@@ -0,0 +1,7 @@
+import type { SupportedLocale } from "@/i18n";
+
+export interface LocaleState {
+ locale: SupportedLocale;
+ previousLocale: SupportedLocale | null;
+ showTranslationIndicator: boolean;
+}
diff --git a/freemocap-ui/src/store/slices/mocap/index.ts b/freemocap-ui/src/store/slices/mocap/index.ts
new file mode 100644
index 00000000..f3a3b8e3
--- /dev/null
+++ b/freemocap-ui/src/store/slices/mocap/index.ts
@@ -0,0 +1,3 @@
+
+export * from './mocap-slice';
+export * from './mocap-thunks';
diff --git a/freemocap-ui/src/store/slices/mocap/mocap-slice.ts b/freemocap-ui/src/store/slices/mocap/mocap-slice.ts
new file mode 100644
index 00000000..3309db49
--- /dev/null
+++ b/freemocap-ui/src/store/slices/mocap/mocap-slice.ts
@@ -0,0 +1,337 @@
+import {createSelector, createSlice, PayloadAction} from '@reduxjs/toolkit';
+import {RootState} from '../../types';
+import {
+ processMocapRecording,
+ startMocapRecording,
+ stopMocapRecording,
+ updateMocapConfigOnServer,
+} from "@/store/slices/mocap/mocap-thunks";
+
+// ==================== Types ====================
+
+/**
+ * Mirrors skellytracker MediapipeModelComplexity enum.
+ * 0 = LITE (fastest), 1 = FULL (balanced), 2 = HEAVY (most accurate)
+ */
+export type MediapipeModelComplexity = 0 | 1 | 2;
+
+/**
+ * Mirrors skellytracker MediapipeDetectorConfig.
+ * Field names use snake_case to match the backend JSON.
+ */
+export interface MediapipeDetectorConfig {
+ model_complexity: MediapipeModelComplexity;
+ min_detection_confidence: number;
+ min_tracking_confidence: number;
+ confidence_threshold: number;
+ static_image_mode: boolean;
+ smooth_landmarks: boolean;
+ enable_segmentation: boolean;
+ smooth_segmentation: boolean;
+ refine_face_landmarks: boolean;
+}
+
+/**
+ * Mirrors backend EstimatorConfig (bone length estimation tuning).
+ */
+export interface EstimatorConfig {
+ max_samples: number;
+ min_samples_for_full_confidence: number;
+ iqr_confidence_sensitivity: number;
+}
+
+/**
+ * Mirrors backend RealtimeFilterConfig (skeleton smoothing + gating).
+ * Field names use snake_case to match the backend JSON.
+ */
+export interface RealtimeFilterConfig {
+ // One Euro Filter params
+ min_cutoff: number;
+ beta: number;
+ d_cutoff: number;
+ // FABRIK params
+ fabrik_tolerance: number;
+ fabrik_max_iterations: number;
+ // Bone length estimation params
+ height_meters: number;
+ noise_sigma: number;
+ estimator_config: EstimatorConfig;
+ // Point gate params
+ max_reprojection_error_px: number;
+ max_velocity_m_per_s: number;
+ max_rejected_streak: number;
+ // Prediction params
+ max_prediction_frames: number;
+ prediction_velocity_decay: number;
+}
+
+/**
+ * Mirrors backend MocapPipelineConfig.
+ */
+export interface MocapConfig {
+ detector: MediapipeDetectorConfig;
+ skeleton_filter: RealtimeFilterConfig;
+}
+
+/** Realtime preset matching MEDIAPIPE_TRACKER_REALTIME_PRESET on the backend. */
+export const MEDIAPIPE_REALTIME_PRESET: MediapipeDetectorConfig = {
+ model_complexity: 0,
+ min_detection_confidence: 0.5,
+ min_tracking_confidence: 0.5,
+ confidence_threshold: 0.5,
+ static_image_mode: false,
+ smooth_landmarks: true,
+ enable_segmentation: false,
+ smooth_segmentation: false,
+ refine_face_landmarks: true,
+};
+
+/** Posthoc preset matching MEDIAPIPE_TRACKER_POSTHOC_PRESET on the backend. */
+export const MEDIAPIPE_POSTHOC_PRESET: MediapipeDetectorConfig = {
+ model_complexity: 2,
+ min_detection_confidence: 0.5,
+ min_tracking_confidence: 0.5,
+ confidence_threshold: 0.5,
+ static_image_mode: false,
+ smooth_landmarks: true,
+ enable_segmentation: true,
+ smooth_segmentation: true,
+ refine_face_landmarks: true,
+};
+
+/** Default EstimatorConfig matching backend defaults. */
+export const DEFAULT_ESTIMATOR_CONFIG: EstimatorConfig = {
+ max_samples: 500,
+ min_samples_for_full_confidence: 100,
+ iqr_confidence_sensitivity: 10.0,
+};
+
+/** Default RealtimeFilterConfig matching backend defaults. */
+export const DEFAULT_REALTIME_FILTER_CONFIG: RealtimeFilterConfig = {
+ min_cutoff: 0.005,
+ beta: 0.3,
+ d_cutoff: 1.0,
+ fabrik_tolerance: 1e-4,
+ fabrik_max_iterations: 20,
+ height_meters: 1.75,
+ noise_sigma: 0.015,
+ estimator_config: { ...DEFAULT_ESTIMATOR_CONFIG },
+ max_reprojection_error_px: 60.0,
+ max_velocity_m_per_s: 50.0,
+ max_rejected_streak: 5,
+ max_prediction_frames: 15,
+ prediction_velocity_decay: 0.75,
+};
+
+export interface MocapDirectoryInfo {
+ exists: boolean;
+ canRecord: boolean;
+ canCalibrate: boolean;
+ cameraMocapTomlPath: string | null;
+ hasSynchronizedVideos: boolean;
+ hasVideos: boolean;
+ errorMessage: string | null;
+}
+
+export interface MocapState {
+ config: MocapConfig;
+ isRecording: boolean;
+ recordingProgress: number;
+ isLoading: boolean;
+ error: string | null;
+ lastMocapRecordingPath: string | null;
+ manualMocapRecordingPath: string | null;
+ directoryInfo: MocapDirectoryInfo | null;
+}
+
+// ==================== Initial State ====================
+
+const initialState: MocapState = {
+ config: {
+ detector: { ...MEDIAPIPE_REALTIME_PRESET },
+ skeleton_filter: { ...DEFAULT_REALTIME_FILTER_CONFIG },
+ },
+ isRecording: false,
+ recordingProgress: 0,
+ isLoading: false,
+ error: null,
+ lastMocapRecordingPath: null,
+ manualMocapRecordingPath: null,
+ directoryInfo: null,
+};
+
+// ==================== Slice ====================
+
+export const mocapSlice = createSlice({
+ name: 'mocap',
+ initialState,
+ reducers: {
+ /** Replace the entire detector config (e.g. applying a preset). */
+ mocapDetectorConfigReplaced: (state, action: PayloadAction<MediapipeDetectorConfig>) => {
+ state.config.detector = action.payload;
+ },
+
+ /** Partially update individual detector fields. */
+ mocapDetectorConfigUpdated: (state, action: PayloadAction<Partial<MediapipeDetectorConfig>>) => {
+ state.config.detector = { ...state.config.detector, ...action.payload };
+ },
+
+ /** Replace the entire skeleton filter config. */
+ skeletonFilterConfigReplaced: (state, action: PayloadAction<RealtimeFilterConfig>) => {
+ state.config.skeleton_filter = action.payload;
+ },
+
+ /** Partially update individual skeleton filter fields. */
+ skeletonFilterConfigUpdated: (state, action: PayloadAction<Partial<RealtimeFilterConfig>>) => {
+ state.config.skeleton_filter = { ...state.config.skeleton_filter, ...action.payload };
+ },
+
+ mocapProgressUpdated: (state, action: PayloadAction<number>) => {
+ state.recordingProgress = action.payload;
+ },
+
+ mocapErrorCleared: (state) => {
+ state.error = null;
+ },
+
+ manualMocapRecordingPathChanged: (state, action: PayloadAction<string>) => {
+ state.manualMocapRecordingPath = action.payload;
+ },
+
+ manualMocapRecordingPathCleared: (state) => {
+ state.manualMocapRecordingPath = null;
+ },
+
+ mocapDirectoryInfoUpdated: (state, action: PayloadAction<MocapDirectoryInfo>) => {
+ state.directoryInfo = action.payload;
+ },
+
+ resetMocapState: () => initialState,
+ },
+
+ extraReducers: (builder) => {
+ builder
+ .addCase(startMocapRecording.pending, (state) => {
+ state.isLoading = true;
+ state.error = null;
+ })
+ .addCase(startMocapRecording.fulfilled, (state, action) => {
+ state.isLoading = false;
+ state.isRecording = true;
+ state.recordingProgress = 0;
+ if (action.payload.mocapRecordingPath) {
+ state.lastMocapRecordingPath = action.payload.mocapRecordingPath;
+ }
+ })
+ .addCase(startMocapRecording.rejected, (state, action) => {
+ state.isLoading = false;
+ state.error = action.payload || 'Failed to start recording';
+ });
+
+ builder
+ .addCase(stopMocapRecording.pending, (state) => {
+ state.isLoading = true;
+ state.error = null;
+ })
+ .addCase(stopMocapRecording.fulfilled, (state) => {
+ state.isLoading = false;
+ state.isRecording = false;
+ state.recordingProgress = 0;
+ })
+ .addCase(stopMocapRecording.rejected, (state, action) => {
+ state.isLoading = false;
+ state.error = action.payload || 'Failed to stop recording';
+ });
+
+ builder
+ .addCase(processMocapRecording.pending, (state) => {
+ state.isLoading = true;
+ state.error = null;
+ })
+ .addCase(processMocapRecording.fulfilled, (state) => {
+ state.isLoading = false;
+ })
+ .addCase(processMocapRecording.rejected, (state, action) => {
+ state.isLoading = false;
+ state.error = action.payload || 'Failed to process recording';
+ });
+
+ builder
+ .addCase(updateMocapConfigOnServer.rejected, (state, action) => {
+ state.error = action.payload || 'Failed to sync config to server';
+ });
+ },
+});
+
+// ==================== Selectors ====================
+
+export const selectMocap = (state: RootState) => state.mocap;
+export const selectMocapConfig = (state: RootState) => state.mocap.config;
+export const selectMocapDetectorConfig = (state: RootState) => state.mocap.config.detector;
+export const selectSkeletonFilterConfig = (state: RootState) => state.mocap.config.skeleton_filter;
+export const selectMocapIsLoading = (state: RootState) => state.mocap.isLoading;
+export const selectMocapIsRecording = (state: RootState) => state.mocap.isRecording;
+export const selectMocapProgress = (state: RootState) => state.mocap.recordingProgress;
+export const selectMocapError = (state: RootState) => state.mocap.error;
+export const selectMocapDirectoryInfo = (state: RootState) => state.mocap.directoryInfo;
+
+export const selectMocapRecordingPath = createSelector(
+ [
+ (state: RootState) => state.mocap.manualMocapRecordingPath,
+ (state: RootState) => state.mocap.lastMocapRecordingPath,
+ (state: RootState) => state.recording.computed,
+ ],
+ (manualPath, lastPath, recordingComputed) => {
+ if (manualPath) return manualPath;
+ if (lastPath) return lastPath;
+
+ const mocapFolderName = `${recordingComputed.recordingName}_mocap`;
+ return `${recordingComputed.fullRecordingPath}/${mocapFolderName}`;
+ }
+);
+
+export const selectIsUsingManualMocapPath = createSelector(
+ [(state: RootState) => state.mocap.manualMocapRecordingPath],
+ (manualPath) => manualPath !== null
+);
+
+export const selectCanStartMocapRecording = createSelector(
+ [
+ selectMocapIsRecording,
+ selectMocapIsLoading,
+ selectMocapRecordingPath,
+ selectMocapDirectoryInfo
+ ],
+ (isRecording, isLoading, recordingPath, directoryInfo) => {
+ return !isRecording && !isLoading && !!recordingPath && (directoryInfo?.canRecord ?? true);
+ }
+);
+
+export const selectCanProcessMocapRecording = createSelector(
+ [
+ selectMocapRecordingPath,
+ selectMocapIsLoading,
+ selectMocapIsRecording,
+ selectMocapDirectoryInfo
+ ],
+ (mocapPath, isLoading, isRecording, directoryInfo) => {
+ return !!mocapPath && !isLoading && !isRecording && (directoryInfo?.canCalibrate ?? false);
+ }
+);
+
+// ==================== Actions Export ====================
+
+export const {
+ mocapDetectorConfigReplaced,
+ mocapDetectorConfigUpdated,
+ skeletonFilterConfigReplaced,
+ skeletonFilterConfigUpdated,
+ mocapProgressUpdated,
+ mocapErrorCleared,
+ manualMocapRecordingPathChanged,
+ manualMocapRecordingPathCleared,
+ mocapDirectoryInfoUpdated,
+ resetMocapState
+} = mocapSlice.actions;
+
+export default mocapSlice.reducer;
diff --git a/freemocap-ui/src/store/slices/mocap/mocap-thunks.ts b/freemocap-ui/src/store/slices/mocap/mocap-thunks.ts
new file mode 100644
index 00000000..2c17428d
--- /dev/null
+++ b/freemocap-ui/src/store/slices/mocap/mocap-thunks.ts
@@ -0,0 +1,169 @@
+import {createAsyncThunk} from "@reduxjs/toolkit";
+import {RootState} from "@/store";
+import {serverUrls} from "@/hooks/server-urls";
+import {selectMocapRecordingPath} from "./mocap-slice";
+import {getDetailedErrorMessage} from "@/store/slices/thunk-helpers";
+
+export const startMocapRecording = createAsyncThunk<
+ { success: boolean; message?: string; mocapRecordingPath?: string },
+ void,
+ { state: RootState; rejectValue: string }
+>(
+ 'mocap/startRecording',
+ async (_, { getState, rejectWithValue }) => {
+ try {
+ const state = getState();
+ const mocapTaskConfig = state.mocap.config;
+ const mocapRecordingDirectory = selectMocapRecordingPath(state);
+
+ if (!mocapRecordingDirectory) {
+ return rejectWithValue('Recording directory is not set');
+ }
+
+ console.log('🎬 Starting mocap recording with:', {
+ mocapRecordingDirectory,
+ mocapTaskConfig,
+ });
+
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.mocapStartRecording, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ mocapRecordingDirectory,
+ mocapTaskConfig,
+ }),
+ });
+
+ if (!response.ok) {
+ const errorMessage = await getDetailedErrorMessage(response);
+ return rejectWithValue(errorMessage);
+ }
+
+ const result = await response.json();
+ console.log('✅ Started mocap recording:', result);
+ return result;
+ } catch (error) {
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
+ console.error('❌ Failed to start mocap recording:', errorMessage);
+ return rejectWithValue(errorMessage);
+ }
+ }
+);
+
+export const stopMocapRecording = createAsyncThunk<
+ { success: boolean },
+ void,
+ { state: RootState; rejectValue: string }
+>(
+ 'mocap/stopRecording',
+ async (_, { getState, rejectWithValue }) => {
+ try {
+ const state = getState();
+ const mocapTaskConfig = state.mocap.config;
+
+
+ console.log(`🎬 Stoping mocap recording and starting mocap with: ${JSON.stringify(mocapTaskConfig, null, 2)}`);
+
+
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.mocapStopRecording, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({mocapTaskConfig}),
+ });
+
+ if (!response.ok) {
+ const errorMessage = await getDetailedErrorMessage(response);
+ return rejectWithValue(errorMessage);
+ }
+
+ const result = await response.json();
+ console.log('✅ Stopped mocap recording:', result);
+ return result;
+ } catch (error) {
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
+ console.error('❌ Failed to stop mocap recording:', errorMessage);
+ return rejectWithValue(errorMessage);
+ }
+ }
+);
+
+export const processMocapRecording = createAsyncThunk<
+ { success: boolean; message?: string; results?: unknown },
+ void,
+ { state: RootState; rejectValue: string }
+>(
+ 'mocap/processMocapRecording',
+ async (_, { getState, rejectWithValue }) => {
+ try {
+ const state = getState();
+ const mocapTaskConfig = state.mocap.config;
+ const mocapRecordingDirectory = selectMocapRecordingPath(state);
+
+ if (!mocapRecordingDirectory) {
+ return rejectWithValue('No mocap recording path available. Please set a recording directory or record a mocap first.');
+ }
+
+ console.log('🔧 Calibrating recording:', {
+ mocapRecordingDirectory,
+ mocapTaskConfig,
+ });
+
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.processMocapRecording, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ mocapRecordingDirectory,
+ mocapTaskConfig,
+ }),
+ });
+
+ if (!response.ok) {
+ const errorMessage = await getDetailedErrorMessage(response);
+ return rejectWithValue(errorMessage);
+ }
+
+ const result = await response.json();
+ console.log('✅ Mocap completed:', result);
+ return result;
+ } catch (error) {
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
+ console.error('❌ Failed to process recording:', errorMessage);
+ return rejectWithValue(errorMessage);
+ }
+ }
+);
+
+export const updateMocapConfigOnServer = createAsyncThunk<
+ { success: boolean; message?: string },
+ void,
+ { state: RootState; rejectValue: string }
+>(
+ 'mocap/updateConfig',
+ async (_, { getState, rejectWithValue }) => {
+ try {
+ const state = getState();
+ const config = state.mocap.config;
+
+ console.log('⚙️ Updating mocap config on server:', config);
+
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.updateMocapConfig, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ config }),
+ });
+
+ if (!response.ok) {
+ const errorMessage = await getDetailedErrorMessage(response);
+ return rejectWithValue(errorMessage);
+ }
+
+ const result = await response.json();
+ console.log('✅ Config updated on server:', result);
+ return result;
+ } catch (error) {
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
+ console.error('❌ Failed to update config on server:', errorMessage);
+ return rejectWithValue(errorMessage);
+ }
+ }
+);
diff --git a/freemocap-ui/src/store/slices/pipeline/index.ts b/freemocap-ui/src/store/slices/pipeline/index.ts
new file mode 100644
index 00000000..09453243
--- /dev/null
+++ b/freemocap-ui/src/store/slices/pipeline/index.ts
@@ -0,0 +1,4 @@
+export * from './pipeline-slice';
+export * from './pipeline-selectors';
+export * from './pipeline-thunks';
+export * from './pipeline-types';
diff --git a/freemocap-ui/src/store/slices/pipeline/pipeline-selectors.ts b/freemocap-ui/src/store/slices/pipeline/pipeline-selectors.ts
new file mode 100644
index 00000000..74365541
--- /dev/null
+++ b/freemocap-ui/src/store/slices/pipeline/pipeline-selectors.ts
@@ -0,0 +1,34 @@
+// basic selectors
+import {RootState} from "@/store";
+import {createSelector} from "@reduxjs/toolkit";
+
+export const selectPipelineState = (state: RootState) => state.pipeline;
+export const selectIsPipelineConnected = (state: RootState) => state.pipeline.isConnected;
+export const selectPipelineId = (state: RootState) => state.pipeline.pipelineId;
+export const selectCameraGroupId = (state: RootState) => state.pipeline.cameraGroupId;
+export const selectIsPipelineLoading = (state: RootState) => state.pipeline.isLoading;
+export const selectPipelineError = (state: RootState) => state.pipeline.error;
+
+// derived selectors
+export const selectPipelineInfo = createSelector(
+ [selectIsPipelineConnected, selectPipelineId, selectCameraGroupId],
+ (isConnected, pipelineId, cameraGroupId) => ({
+ isConnected,
+ pipelineId,
+ cameraGroupId,
+ })
+);
+
+export const selectCanConnectPipeline = createSelector(
+ [selectIsPipelineConnected, selectIsPipelineLoading, (state: RootState) => state.cameras.cameras],
+ (isConnected, isLoading, cameras) => {
+ const anyCameraSelected = cameras.some(cam => cam.selected);
+ return !isConnected && !isLoading && anyCameraSelected;
+ }
+);
+
+export const selectCanDisconnectPipeline = createSelector(
+ [selectIsPipelineConnected, selectIsPipelineLoading],
+ (isConnected, isLoading) => isConnected && !isLoading
+);
+
diff --git a/freemocap-ui/src/store/slices/pipeline/pipeline-slice.ts b/freemocap-ui/src/store/slices/pipeline/pipeline-slice.ts
new file mode 100644
index 00000000..c8ab05c8
--- /dev/null
+++ b/freemocap-ui/src/store/slices/pipeline/pipeline-slice.ts
@@ -0,0 +1,82 @@
+import {createSlice} from "@reduxjs/toolkit";
+import {PipelineState} from "@/store/slices/pipeline/pipeline-types";
+import {closePipeline, connectRealtimePipeline} from "@/store/slices/pipeline/pipeline-thunks";
+import {serverSettingsCleared, serverSettingsUpdated} from "@/store/slices/settings/settings-slice";
+
+const initialState: PipelineState = {
+ cameraGroupId: null,
+ pipelineId: null,
+ isConnected: false,
+ isLoading: false,
+ error: null,
+}
+
+export const pipelineSlice = createSlice({
+ name: 'pipeline',
+ initialState,
+ reducers: {
+ pipelineStateReset: (state) => {
+ state.cameraGroupId = null;
+ state.pipelineId = null;
+ state.isConnected = false;
+ state.isLoading = false;
+ state.error = null;
+ }
+ },
+ extraReducers: (builder) => {
+ builder
+ // ========== Connect Pipeline (HTTP) ==========
+ .addCase(connectRealtimePipeline.pending, (state) => {
+ state.isLoading = true;
+ state.error = null;
+ })
+ .addCase(connectRealtimePipeline.fulfilled, (state, action) => {
+ state.cameraGroupId = action.payload.camera_group_id;
+ state.pipelineId = action.payload.pipeline_id;
+ state.isConnected = true;
+ state.isLoading = false;
+ })
+ .addCase(connectRealtimePipeline.rejected, (state, action) => {
+ state.isLoading = false;
+ state.error = action.error.message || 'Failed to connect pipeline';
+ })
+
+ // ========== Close Pipeline (HTTP) ==========
+ .addCase(closePipeline.pending, (state) => {
+ state.isLoading = true;
+ state.error = null;
+ })
+ .addCase(closePipeline.fulfilled, (state) => {
+ state.cameraGroupId = null;
+ state.pipelineId = null;
+ state.isConnected = false;
+ state.isLoading = false;
+ })
+ .addCase(closePipeline.rejected, (state, action) => {
+ state.isLoading = false;
+ state.error = action.error.message || 'Failed to disconnect pipeline';
+ })
+
+ // ========== WebSocket settings/state — sync pipeline status ==========
+ .addCase(serverSettingsUpdated, (state, action) => {
+ const backendPipeline = action.payload.settings.pipeline;
+ // Only overwrite if not mid-HTTP-request (isLoading guards against races)
+ if (!state.isLoading) {
+ state.isConnected = backendPipeline.is_connected;
+ state.pipelineId = backendPipeline.pipeline_id;
+ state.cameraGroupId = backendPipeline.camera_group_id;
+ }
+ })
+
+ // ========== WebSocket disconnected — clear pipeline state ==========
+ .addCase(serverSettingsCleared, (state) => {
+ state.cameraGroupId = null;
+ state.pipelineId = null;
+ state.isConnected = false;
+ state.isLoading = false;
+ state.error = null;
+ });
+ },
+});
+
+export const {pipelineStateReset} = pipelineSlice.actions;
diff --git a/freemocap-ui/src/store/slices/pipeline/pipeline-thunks.ts b/freemocap-ui/src/store/slices/pipeline/pipeline-thunks.ts
new file mode 100644
index 00000000..54776d5b
--- /dev/null
+++ b/freemocap-ui/src/store/slices/pipeline/pipeline-thunks.ts
@@ -0,0 +1,56 @@
+import {createAsyncThunk} from "@reduxjs/toolkit";
+import {RootState, selectSelectedCameraConfigs} from "@/store";
+import {serverUrls} from "@/services";
+import {PipelineConnectRequest, PipelineConnectResponse,} from "@/store/slices/pipeline/pipeline-types";
+
+export const connectRealtimePipeline = createAsyncThunk<
+ PipelineConnectResponse,
+ PipelineConnectRequest | undefined,
+ { state: RootState }>(
+ 'pipeline/connect',
+ async (request={}, {getState}) => {
+ const state = getState();
+
+ const cameraConfigs = selectSelectedCameraConfigs(state);
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.pipelineConnectOrUpdate, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ camera_configs: cameraConfigs, ...request }),
+ });
+
+ if (!response.ok) {
+ const error = await response.json()
+ throw new Error(`Failed to connect pipeline: ${error.message || response.statusText}`);
+ }
+ return await response.json() as Promise<PipelineConnectResponse>;
+ })
+
+
+export const closePipeline = createAsyncThunk<void, void, { state: RootState }>(
+ 'pipeline/close',
+ async () => {
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.pipelineClose, {
+ method: 'DELETE',
+ });
+
+ if (!response.ok) {
+ console.error(`Failed to close pipeline: ${response.statusText}`);
+ }
+ }
+);
+
+
+
+
+export const pauseUnpausePipeline = createAsyncThunk<void, void, { state: RootState }>(
+ 'cameras/pause',
+ async () => {
+ const response = await fetch(useAppUrls.getHttpEndpointUrls.pipelinePauseUnpause, {
+ method: 'GET',
+ });
+
+ if (!response.ok) {
+ throw new Error(`Failed to pause/unpause cameras: ${response.statusText}`);
+ }
+ }
+);
diff --git a/freemocap-ui/src/store/slices/pipeline/pipeline-types.ts b/freemocap-ui/src/store/slices/pipeline/pipeline-types.ts
new file mode 100644
index 00000000..1444992c
--- /dev/null
+++ b/freemocap-ui/src/store/slices/pipeline/pipeline-types.ts
@@ -0,0 +1,45 @@
+import {z} from 'zod';
+import {CameraConfig} from "@/store";
+
+// ==================== API Request/Response Types ====================
+export interface PipelineConnectRequest {
+ camera_configs?: string[];
+}
+
+export interface PipelineConnectResponse {
+ camera_group_id: string;
+ pipeline_id: string;
+ camera_configs: Record<string, CameraConfig>;
+}
+
+// ==================== Pipeline State ====================
+export interface PipelineState {
+ cameraGroupId: string | null;
+ pipelineId: string | null;
+ isConnected: boolean;
+ isLoading: boolean;
+ error: string | null;
+}
+
+
+const ProcessingPipelineConfigSchema = z.object({
+ pipeline_id: z.string(),
+ parameters: z.record(z.string(), z.any()),
+})
+
+
+export type ProcessingPipelineConfig = z.infer<typeof ProcessingPipelineConfigSchema>;
+export interface ProcessingPipeline {
+ id: string;
+ name: string;
+ isActive: boolean;
+ config: ProcessingPipelineConfig
+}
+
+export interface ProcessingPipelineState {
+ pipelines: ProcessingPipeline[];
+ isLoading: boolean;
+ isActive: boolean;
+ error: string | null;
+}
+
diff --git a/freemocap-ui/src/store/slices/recording/recording-slice.ts b/freemocap-ui/src/store/slices/recording/recording-slice.ts
index d50c1ed3..255dd726 100644
--- a/freemocap-ui/src/store/slices/recording/recording-slice.ts
+++ b/freemocap-ui/src/store/slices/recording/recording-slice.ts
@@ -1,6 +1,68 @@
-import { createSlice, PayloadAction } from '@reduxjs/toolkit';
-import { RecordingInfo } from './recording-types';
-import { startRecording, stopRecording } from './recording-thunks';
+import {createSlice, PayloadAction} from '@reduxjs/toolkit';
+import {ComputedRecordingPath, RecordingConfig, RecordingInfo} from './recording-types';
+import {startRecording, stopRecording} from './recording-thunks';
+
+const getTimestampString = (): string => {
+ const now = new Date();
+
+ const dateOptions: Intl.DateTimeFormatOptions = {
+ year: "numeric",
+ month: "2-digit",
+ day: "2-digit",
+ hour: "2-digit",
+ minute: "2-digit",
+ second: "2-digit",
+ hour12: false,
+ timeZoneName: "shortOffset",
+ };
+
+ const formatter = new Intl.DateTimeFormat("en-US", dateOptions);
+ const parts = formatter.formatToParts(now);
+
+ const partMap: Record<string, string> = {};
+ parts.forEach((part) => {
+ partMap[part.type] = part.value;
+ });
+
+ return `${partMap.year}-${partMap.month}-${partMap.day}_${partMap.hour}-${partMap.minute}-${partMap.second}_${partMap.timeZoneName.replace(":", "")}`;
+};
+
+const computeRecordingPath = (
+ recordingDirectory: string,
+ config: RecordingConfig
+): ComputedRecordingPath => {
+ const parts: string[] = [];
+
+ if (config.useTimestamp) {
+ parts.push(getTimestampString());
+ } else {
+ parts.push(config.baseName);
+ }
+
+ if (config.useIncrement) {
+ parts.push(String(config.currentIncrement).padStart(3, '0'));
+ }
+
+ if (config.recordingTag) {
+ parts.push(config.recordingTag);
+ }
+
+ const recordingName = parts.join("_");
+
+ const subfolderName = config.createSubfolder
+ ? config.customSubfolderName || getTimestampString()
+ : "";
+
+ const fullRecordingPath = config.createSubfolder
+ ? `${recordingDirectory}/${subfolderName}`
+ : recordingDirectory;
+
+ return {
+ recordingName,
+ subfolderName,
+ fullRecordingPath,
+ };
+};
const initialState: RecordingInfo = {
isRecording: false,
@@ -8,24 +70,94 @@ const initialState: RecordingInfo = {
recordingName: null,
startedAt: null,
duration: 0,
- completionData: null,
+ config: {
+ useDelayStart: false,
+ delaySeconds: 3,
+ useTimestamp: true,
+ useIncrement: false,
+ currentIncrement: 1,
+ baseName: 'recording',
+ recordingTag: '',
+ createSubfolder: false,
+ customSubfolderName: '',
+ },
+ computed: {
+ recordingName: '',
+ subfolderName: '',
+ fullRecordingPath: '~/freemocap_data/recordings',
+ },
};
+// Initialize computed values
+initialState.computed = computeRecordingPath(
+ initialState.recordingDirectory,
+ initialState.config
+);
+
export const recordingSlice = createSlice({
name: 'recording',
initialState,
reducers: {
recordingInfoUpdated: (state, action: PayloadAction<Partial<RecordingInfo>>) => {
- return { ...state, ...action.payload };
+ Object.assign(state, action.payload);
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
},
recordingDirectoryChanged: (state, action: PayloadAction<string>) => {
state.recordingDirectory = action.payload;
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
},
recordingDurationUpdated: (state, action: PayloadAction<number>) => {
state.duration = action.payload;
},
- recordingCompletionDismissed: (state) => {
- state.completionData = null;
+
+ // Config updates
+ configUpdated: (state, action: PayloadAction<Partial<RecordingConfig>>) => {
+ Object.assign(state.config, action.payload);
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
+ },
+ useDelayStartToggled: (state, action: PayloadAction<boolean>) => {
+ state.config.useDelayStart = action.payload;
+ // No need to recompute path for delay settings
+ },
+ delaySecondsChanged: (state, action: PayloadAction<number>) => {
+ state.config.delaySeconds = action.payload;
+ // No need to recompute path for delay settings
+ },
+ useTimestampToggled: (state, action: PayloadAction<boolean>) => {
+ state.config.useTimestamp = action.payload;
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
+ },
+ useIncrementToggled: (state, action: PayloadAction<boolean>) => {
+ state.config.useIncrement = action.payload;
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
+ },
+ currentIncrementChanged: (state, action: PayloadAction<number>) => {
+ state.config.currentIncrement = action.payload;
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
+ },
+ currentIncrementIncremented: (state) => {
+ state.config.currentIncrement += 1;
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
+ },
+ baseNameChanged: (state, action: PayloadAction<string>) => {
+ state.config.baseName = action.payload;
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
+ },
+ recordingTagChanged: (state, action: PayloadAction<string>) => {
+ state.config.recordingTag = action.payload;
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
+ },
+ createSubfolderToggled: (state, action: PayloadAction<boolean>) => {
+ state.config.createSubfolder = action.payload;
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
+ },
+ customSubfolderNameChanged: (state, action: PayloadAction<string>) => {
+ state.config.customSubfolderName = action.payload;
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
+ },
+ // Force recomputation of path (useful for timestamp updates)
+ pathRecomputed: (state) => {
+ state.computed = computeRecordingPath(state.recordingDirectory, state.config);
},
},
extraReducers: (builder) => {
@@ -36,14 +168,12 @@ export const recordingSlice = createSlice({
state.recordingDirectory = action.meta.arg.recordingDirectory;
state.startedAt = new Date().toISOString();
state.duration = 0;
- state.completionData = null;
})
- .addCase(stopRecording.fulfilled, (state, action) => {
+ .addCase(stopRecording.fulfilled, (state) => {
state.isRecording = false;
state.recordingName = null;
state.startedAt = null;
state.duration = 0;
- state.completionData = action.payload ?? null;
});
},
});
@@ -52,5 +182,16 @@ export const {
recordingInfoUpdated,
recordingDirectoryChanged,
recordingDurationUpdated,
- recordingCompletionDismissed,
+ configUpdated,
+ useDelayStartToggled,
+ delaySecondsChanged,
+ useTimestampToggled,
+ useIncrementToggled,
+ currentIncrementChanged,
+ currentIncrementIncremented,
+ baseNameChanged,
+ recordingTagChanged,
+ createSubfolderToggled,
+ customSubfolderNameChanged,
+ pathRecomputed,
} = recordingSlice.actions;
diff --git a/freemocap-ui/src/store/slices/recording/recording-types.ts b/freemocap-ui/src/store/slices/recording/recording-types.ts
index 1d3f0d19..84e77e38 100644
--- a/freemocap-ui/src/store/slices/recording/recording-types.ts
+++ b/freemocap-ui/src/store/slices/recording/recording-types.ts
@@ -1,5 +1,21 @@
-import { z } from 'zod';
+import {z} from 'zod';
+export const RecordingConfigSchema = z.object({
+ // Recording behavior settings
+ useDelayStart: z.boolean(),
+ delaySeconds: z.number(),
+
+ // Naming settings
+ useTimestamp: z.boolean(),
+ useIncrement: z.boolean(),
+ currentIncrement: z.number(),
+ baseName: z.string(),
+ recordingTag: z.string(),
+
+ // Folder settings
+ createSubfolder: z.boolean(),
+ customSubfolderName: z.string(),
+});
const StatsSummarySchema = z.object({
median: z.number(),
mean: z.number(),
@@ -25,13 +41,22 @@ export const StopRecordingResponseSchema = z.object({
export type RecordingCompletionData = z.infer<typeof StopRecordingResponseSchema>;
+export const ComputedRecordingPathSchema = z.object({
+ recordingName: z.string(),
+ subfolderName: z.string(),
+ fullRecordingPath: z.string(),
+});
+
export const RecordingInfoSchema = z.object({
isRecording: z.boolean(),
recordingDirectory: z.string(),
recordingName: z.string().nullable(),
startedAt: z.string().nullable(),
duration: z.number().nullable(),
- completionData: StopRecordingResponseSchema.nullable(),
+ config: RecordingConfigSchema,
+ computed: ComputedRecordingPathSchema,
});
+export type RecordingConfig = z.infer<typeof RecordingConfigSchema>;
+export type ComputedRecordingPath = z.infer<typeof ComputedRecordingPathSchema>;
export type RecordingInfo = z.infer<typeof RecordingInfoSchema>;
diff --git a/freemocap-ui/src/store/slices/settings/index.ts b/freemocap-ui/src/store/slices/settings/index.ts
index 51a99d07..1d68c6f4 100644
--- a/freemocap-ui/src/store/slices/settings/index.ts
+++ b/freemocap-ui/src/store/slices/settings/index.ts
@@ -1,3 +1,3 @@
export * from "./settings-slice";
-export * from "./settings-types";
export * from "./settings-selectors";
+export * from "./settings-types";
diff --git a/freemocap-ui/src/store/slices/settings/settings-selectors.ts b/freemocap-ui/src/store/slices/settings/settings-selectors.ts
index 4d254c7b..e22616d6 100644
--- a/freemocap-ui/src/store/slices/settings/settings-selectors.ts
+++ b/freemocap-ui/src/store/slices/settings/settings-selectors.ts
@@ -1,7 +1,116 @@
-import { RootState } from "../../types";
+import {createSelector} from "@reduxjs/toolkit";
+import {RootState} from "@/store/types";
+import {
+ BackendCalibrationConfig,
+ BackendCalibrationSettings,
+ BackendCameraState,
+ BackendMocapConfig,
+ BackendMocapSettings,
+ BackendPipelineSettings,
+ FreeMoCapSettings,
+} from "./settings-types";
-export const selectLocale = (state: RootState) => state.settings.locale;
-export const selectPreviousLocale = (state: RootState) =>
- state.settings.previousLocale;
-export const selectShowTranslationIndicator = (state: RootState) =>
- state.settings.showTranslationIndicator;
+// ---------------------------------------------------------------------------
+// Root selectors
+// ---------------------------------------------------------------------------
+
+export const selectServerSettings = (state: RootState): FreeMoCapSettings | null =>
+ state.settings.settings;
+
+export const selectServerSettingsVersion = (state: RootState): number =>
+ state.settings.version;
+
+export const selectServerSettingsInitialized = (state: RootState): boolean =>
+ state.settings.isInitialized;
+
+// ---------------------------------------------------------------------------
+// Camera selectors
+// ---------------------------------------------------------------------------
+
+export const selectBackendCameras = createSelector(
+ [selectServerSettings],
+ (settings): Record<string, BackendCameraState> => settings?.cameras ?? {},
+);
+
+export const selectBackendCameraIds = createSelector(
+ [selectBackendCameras],
+ (cameras): string[] => Object.keys(cameras),
+);
+
+export const selectBackendConnectedCameraCount = createSelector(
+ [selectBackendCameras],
+ (cameras): number =>
+ Object.values(cameras).filter((c) => c.status === "connected").length,
+);
+
+// ---------------------------------------------------------------------------
+// Pipeline selectors
+// ---------------------------------------------------------------------------
+
+export const selectBackendPipeline = createSelector(
+ [selectServerSettings],
+ (settings): BackendPipelineSettings | null => settings?.pipeline ?? null,
+);
+
+export const selectBackendPipelineIsConnected = createSelector(
+ [selectBackendPipeline],
+ (pipeline): boolean => pipeline?.is_connected ?? false,
+);
+
+export const selectBackendPipelineId = createSelector(
+ [selectBackendPipeline],
+ (pipeline): string | null => pipeline?.pipeline_id ?? null,
+);
+
+// ---------------------------------------------------------------------------
+// Calibration selectors
+// ---------------------------------------------------------------------------
+
+export const selectBackendCalibration = createSelector(
+ [selectServerSettings],
+ (settings): BackendCalibrationSettings | null => settings?.calibration ?? null,
+);
+
+export const selectBackendCalibrationConfig = createSelector(
+ [selectBackendCalibration],
+ (cal): BackendCalibrationConfig | null => cal?.config ?? null,
+);
+
+export const selectBackendCalibrationIsRecording = createSelector(
+ [selectBackendCalibration],
+ (cal): boolean => cal?.is_recording ?? false,
+);
+
+export const selectBackendCalibrationProgress = createSelector(
+ [selectBackendCalibration],
+ (cal): number => cal?.recording_progress ?? 0,
+);
+
+export const selectBackendHasCalibrationToml = createSelector(
+ [selectBackendCalibration],
+ (cal): boolean => cal?.has_calibration_toml ?? false,
+);
+
+// ---------------------------------------------------------------------------
+// MoCap selectors
+// ---------------------------------------------------------------------------
+
+export const selectBackendMocap = createSelector(
+ [selectServerSettings],
+ (settings): BackendMocapSettings | null => settings?.mocap ?? null,
+);
+
+export const selectBackendMocapConfig = createSelector(
+ [selectBackendMocap],
+ (moc): BackendMocapConfig | null => moc?.config ?? null,
+);
+
+export const selectBackendMocapIsRecording = createSelector(
+ [selectBackendMocap],
+ (moc): boolean => moc?.is_recording ?? false,
+);
+
+export const selectBackendMocapProgress = createSelector(
+ [selectBackendMocap],
+ (moc): number => moc?.recording_progress ?? 0,
+);
diff --git a/freemocap-ui/src/store/slices/settings/settings-slice.ts b/freemocap-ui/src/store/slices/settings/settings-slice.ts
index a30b3f1e..ba661a4c 100644
--- a/freemocap-ui/src/store/slices/settings/settings-slice.ts
+++ b/freemocap-ui/src/store/slices/settings/settings-slice.ts
@@ -1,87 +1,52 @@
-import { createSlice, PayloadAction } from "@reduxjs/toolkit";
-import type { SettingsState } from "./settings-types";
-import type { SupportedLocale } from "@/i18n";
-import { FALLBACK_LOCALE, getLocaleDirection } from "@/i18n";
-import i18n from "@/i18n/i18n";
-
-const STORAGE_KEYS = {
- LOCALE: "freemocap:locale",
- PREVIOUS_LOCALE: "freemocap:previousLocale",
- SHOW_TRANSLATION_INDICATOR: "freemocap:showTranslationIndicator",
-} as const;
-
-function loadLocale(): SupportedLocale {
- if (typeof window === "undefined") return FALLBACK_LOCALE;
- const saved = localStorage.getItem(STORAGE_KEYS.LOCALE);
- if (saved) return saved as SupportedLocale;
- return (i18n.language as SupportedLocale) || FALLBACK_LOCALE;
-}
-
-function loadPreviousLocale(): SupportedLocale | null {
- if (typeof window === "undefined") return null;
- const saved = localStorage.getItem(STORAGE_KEYS.PREVIOUS_LOCALE);
- return saved as SupportedLocale | null;
-}
-
-function loadShowTranslationIndicator(): boolean {
- if (typeof window === "undefined") return true;
- const saved = localStorage.getItem(STORAGE_KEYS.SHOW_TRANSLATION_INDICATOR);
- if (saved !== null) return JSON.parse(saved) as boolean;
- return true;
-}
-
-/** Applies locale side-effects: syncs i18next, document dir, and localStorage. */
-function applyLocale(locale: SupportedLocale): void {
- localStorage.setItem(STORAGE_KEYS.LOCALE, locale);
- i18n.changeLanguage(locale);
- const dir = getLocaleDirection(locale);
- document.documentElement.dir = dir;
- document.documentElement.lang = locale;
+import {createSlice, PayloadAction} from "@reduxjs/toolkit";
+import {FreeMoCapSettings, SettingsStateMessage} from "./settings-types";
+
+export interface ServerSettingsState {
+ settings: FreeMoCapSettings | null;
+ version: number;
+ lastUpdated: string | null;
+ isInitialized: boolean;
}
-const initialState: SettingsState = {
- locale: loadLocale(),
- previousLocale: loadPreviousLocale(),
- showTranslationIndicator: loadShowTranslationIndicator(),
+const initialState: ServerSettingsState = {
+ settings: null,
+ version: -1,
+ lastUpdated: null,
+ isInitialized: false,
};
export const settingsSlice = createSlice({
- name: "settings",
- initialState,
- reducers: {
- localeChanged: (state, action: PayloadAction<SupportedLocale>) => {
- const next = action.payload;
- if (next === state.locale) return;
-
- // Remember the outgoing locale so we can toggle back to it
- state.previousLocale = state.locale;
- localStorage.setItem(STORAGE_KEYS.PREVIOUS_LOCALE, state.locale);
-
- state.locale = next;
- applyLocale(next);
- },
-
- /** Toggle between the current locale and the previous one (Ctrl+Shift+L). */
- localeToggled: (state) => {
- const target = state.previousLocale;
- if (!target || target === state.locale) return;
-
- const outgoing = state.locale;
- state.locale = target;
- state.previousLocale = outgoing;
- localStorage.setItem(STORAGE_KEYS.PREVIOUS_LOCALE, outgoing);
- applyLocale(target);
- },
-
- showTranslationIndicatorToggled: (state) => {
- state.showTranslationIndicator = !state.showTranslationIndicator;
- localStorage.setItem(
- STORAGE_KEYS.SHOW_TRANSLATION_INDICATOR,
- JSON.stringify(state.showTranslationIndicator)
- );
+ name: "serverSettings",
+ initialState,
+ reducers: {
+ /**
+ * Replace the entire settings blob from a backend settings/state message.
+ * Only applies if the incoming version is newer than what we have.
+ */
+ serverSettingsUpdated: (state, action: PayloadAction<SettingsStateMessage>) => {
+ const {settings, version} = action.payload;
+ if (version <= state.version) {
+ return; // Stale message — ignore
+ }
+ state.settings = settings;
+ state.version = version;
+ state.lastUpdated = new Date().toISOString();
+ state.isInitialized = true;
+ },
+
+ /**
+ * Reset to initial state (e.g., on WebSocket disconnect).
+ */
+ serverSettingsCleared: (state) => {
+ state.settings = null;
+ state.version = -1;
+ state.lastUpdated = null;
+ state.isInitialized = false;
+ },
},
- },
});
-export const { localeChanged, localeToggled, showTranslationIndicatorToggled } =
- settingsSlice.actions;
+export const {
+ serverSettingsUpdated,
+ serverSettingsCleared,
+} = settingsSlice.actions;
diff --git a/freemocap-ui/src/store/slices/settings/settings-types.ts b/freemocap-ui/src/store/slices/settings/settings-types.ts
index b528ffdb..f81ef937 100644
--- a/freemocap-ui/src/store/slices/settings/settings-types.ts
+++ b/freemocap-ui/src/store/slices/settings/settings-types.ts
@@ -1,7 +1,174 @@
-import type { SupportedLocale } from "@/i18n";
+/**
+ * TypeScript types mirroring the backend FreeMoCapSettings Pydantic models.
+ *
+ * These represent the authoritative backend state pushed over WebSocket.
+ * Field names use snake_case to match the JSON the backend sends.
+ */
-export interface SettingsState {
- locale: SupportedLocale;
- previousLocale: SupportedLocale | null;
- showTranslationIndicator: boolean;
+// ---------------------------------------------------------------------------
+// Camera layer (mirrors skellycam CameraConfig + runtime status)
+// ---------------------------------------------------------------------------
+
+export interface BackendImageResolution {
+ height: number;
+ width: number;
+}
+
+export interface BackendCameraConfig {
+ camera_id: string;
+ camera_index: number;
+ camera_name: string;
+ use_this_camera: boolean;
+ resolution: BackendImageResolution;
+ color_channels: number;
+ pixel_format: string;
+ exposure_mode: string;
+ exposure: number;
+ framerate: number;
+ rotation: number;
+ capture_fourcc: string;
+ writer_fourcc: string;
+}
+
+export type BackendCameraStatus = "disconnected" | "connected" | "error";
+
+export interface BackendCameraState {
+ config: BackendCameraConfig;
+ status: BackendCameraStatus;
+}
+
+// ---------------------------------------------------------------------------
+// Calibration config (mirrors CalibrationPipelineConfig)
+// ---------------------------------------------------------------------------
+
+export type CalibrationSolverMethod = "anipose" | "pyceres";
+
+export interface BackendCalibrationConfig {
+ calibration_recording_folder: string | null;
+ charuco_board_x_squares: number;
+ charuco_board_y_squares: number;
+ charuco_square_length: number;
+ solver_method: CalibrationSolverMethod;
+ use_groundplane: boolean;
+ pyceres_solver_config: Record<string, unknown>;
+}
+
+export interface BackendCalibrationSettings {
+ config: BackendCalibrationConfig;
+ is_recording: boolean;
+ recording_progress: number;
+ last_recording_path: string | null;
+ has_calibration_toml: boolean;
+}
+
+// ---------------------------------------------------------------------------
+// MoCap config (mirrors MocapPipelineConfig)
+// ---------------------------------------------------------------------------
+
+export interface BackendEstimatorConfig {
+ max_samples: number;
+ min_samples_for_full_confidence: number;
+ iqr_confidence_sensitivity: number;
+}
+
+export interface BackendRealtimeFilterConfig {
+ min_cutoff: number;
+ beta: number;
+ d_cutoff: number;
+ fabrik_tolerance: number;
+ fabrik_max_iterations: number;
+ height_meters: number;
+ noise_sigma: number;
+ estimator_config: BackendEstimatorConfig;
+ max_reprojection_error_px: number;
+ max_velocity_m_per_s: number;
+ max_rejected_streak: number;
+ max_prediction_frames: number;
+ prediction_velocity_decay: number;
+}
+
+export interface BackendMocapConfig {
+ detector: Record<string, unknown>;
+ skeleton_filter: BackendRealtimeFilterConfig;
+}
+
+export interface BackendMocapSettings {
+ config: BackendMocapConfig;
+ is_recording: boolean;
+ recording_progress: number;
+ last_recording_path: string | null;
}
+
+// ---------------------------------------------------------------------------
+// Pipeline config (mirrors RealtimePipelineConfig + runtime status)
+// ---------------------------------------------------------------------------
+
+export interface BackendRealtimePipelineConfig {
+ camera_configs: Record<string, BackendCameraConfig>;
+ calibration_config: BackendCalibrationConfig;
+ mocap_config: BackendMocapConfig;
+ calibration_detection_enabled: boolean;
+ mocap_detection_enabled: boolean;
+}
+
+export interface BackendPipelineSettings {
+ config: BackendRealtimePipelineConfig | null;
+ is_connected: boolean;
+ pipeline_id: string | null;
+ camera_group_id: string | null;
+ is_paused: boolean;
+}
+
+// ---------------------------------------------------------------------------
+// VMC settings (mirrors VMCSettings)
+// ---------------------------------------------------------------------------
+
+export interface BackendVMCSettings {
+ enabled: boolean;
+ host: string;
+ port: number;
+}
+
+// ---------------------------------------------------------------------------
+// Top-level settings blob
+// ---------------------------------------------------------------------------
+
+export interface FreeMoCapSettings {
+ cameras: Record<string, BackendCameraState>;
+ pipeline: BackendPipelineSettings;
+ calibration: BackendCalibrationSettings;
+ mocap: BackendMocapSettings;
+ vmc: BackendVMCSettings;
+}
+
+// ---------------------------------------------------------------------------
+// WebSocket message types
+// ---------------------------------------------------------------------------
+
+export interface SettingsStateMessage {
+ message_type: "settings/state";
+ settings: FreeMoCapSettings;
+ version: number;
+}
+
+export interface SettingsPatchMessage {
+ message_type: "settings/patch";
+ patch: DeepPartial<FreeMoCapSettings>;
+}
+
+export interface SettingsRequestMessage {
+ message_type: "settings/request";
+}
+
+export type SettingsMessage =
+ | SettingsStateMessage
+ | SettingsPatchMessage
+ | SettingsRequestMessage;
+
+// ---------------------------------------------------------------------------
+// Utility: deep partial for patch payloads
+// ---------------------------------------------------------------------------
+
+export type DeepPartial<T> = {
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
+};
diff --git a/freemocap-ui/src/store/slices/thunk-helpers.ts b/freemocap-ui/src/store/slices/thunk-helpers.ts
new file mode 100644
index 00000000..f6b9fc8a
--- /dev/null
+++ b/freemocap-ui/src/store/slices/thunk-helpers.ts
@@ -0,0 +1,35 @@
+/**
+ * Shared utilities for async thunks that call the backend HTTP API.
+ */
+
+/**
+ * Extract a detailed error message from a failed HTTP response.
+ * Attempts to parse JSON first, falls back to text, builds a
+ * comprehensive error string including status code and body.
+ */
+export async function getDetailedErrorMessage(response: Response): Promise<string> {
+ let errorDetails: unknown;
+
+ try {
+ errorDetails = await response.json();
+ console.error('❌ Server returned validation/error details:', errorDetails);
+ } catch {
+ try {
+ errorDetails = await response.text();
+ console.error('❌ Server returned error text:', errorDetails);
+ } catch {
+ console.error('❌ Could not read error response body');
+ }
+ }
+
+ const baseError = `HTTP ${response.status}: ${response.statusText}`;
+
+ if (errorDetails) {
+ const detailsStr = typeof errorDetails === 'string'
+ ? errorDetails
+ : JSON.stringify(errorDetails, null, 2);
+ return `${baseError}\n\nValidation/Error Details:\n${detailsStr}`;
+ }
+
+ return baseError;
+}
diff --git a/freemocap-ui/src/store/store.ts b/freemocap-ui/src/store/store.ts
index 5b29b0a9..d5591d2b 100644
--- a/freemocap-ui/src/store/store.ts
+++ b/freemocap-ui/src/store/store.ts
@@ -1,9 +1,13 @@
import {configureStore} from "@reduxjs/toolkit";
-import {cameraSlice} from "./slices/cameras/cameras-slice";
-import {recordingSlice} from "./slices/recording/recording-slice";
-import {themeSlice} from "./slices/theme/theme-slice";
-import {videosSlice} from "./slices/videos/videos-slice";
-import {settingsSlice} from "./slices/settings/settings-slice";
+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 {pipelineSlice} from "@/store/slices/pipeline";
+import {calibrationSlice} from "@/store/slices/calibration/calibration-slice";
+import {mocapSlice} from "@/store/slices/mocap/mocap-slice";
+import {settingsSlice} from "@/store/slices/settings/settings-slice";
+import {localeSlice} from "@/store/slices/locale";
export const store = configureStore({
reducer: {
@@ -11,6 +15,10 @@ export const store = configureStore({
recording: recordingSlice.reducer,
theme: themeSlice.reducer,
videos: videosSlice.reducer,
+ pipeline: pipelineSlice.reducer,
+ calibration: calibrationSlice.reducer,
+ mocap: mocapSlice.reducer,
settings: settingsSlice.reducer,
- }
+ locale: localeSlice.reducer
+ },
});
diff --git a/freemocap-ui/src/store/thunk-helpers.ts b/freemocap-ui/src/store/thunk-helpers.ts
new file mode 100644
index 00000000..f6b9fc8a
--- /dev/null
+++ b/freemocap-ui/src/store/thunk-helpers.ts
@@ -0,0 +1,35 @@
+/**
+ * Shared utilities for async thunks that call the backend HTTP API.
+ */
+
+/**
+ * Extract a detailed error message from a failed HTTP response.
+ * Attempts to parse JSON first, falls back to text, builds a
+ * comprehensive error string including status code and body.
+ */
+export async function getDetailedErrorMessage(response: Response): Promise<string> {
+ let errorDetails: unknown;
+
+ try {
+ errorDetails = await response.json();
+ console.error('❌ Server returned validation/error details:', errorDetails);
+ } catch {
+ try {
+ errorDetails = await response.text();
+ console.error('❌ Server returned error text:', errorDetails);
+ } catch {
+ console.error('❌ Could not read error response body');
+ }
+ }
+
+ const baseError = `HTTP ${response.status}: ${response.statusText}`;
+
+ if (errorDetails) {
+ const detailsStr = typeof errorDetails === 'string'
+ ? errorDetails
+ : JSON.stringify(errorDetails, null, 2);
+ return `${baseError}\n\nValidation/Error Details:\n${detailsStr}`;
+ }
+
+ return baseError;
+}
diff --git a/freemocap/api/http/app/shutdown.py b/freemocap/api/http/app/shutdown.py
index 215e7998..575ec4a4 100644
--- a/freemocap/api/http/app/shutdown.py
+++ b/freemocap/api/http/app/shutdown.py
@@ -25,7 +25,7 @@ async def shutdown_server(
"""
Initiate graceful server shutdown.
- This endpoint triggers a graceful shutdown of the entire SkellyCam system,
+ This endpoint triggers a graceful shutdown of the entire FreeMoCap system,
including all camera groups and the server itself.
Returns:
diff --git a/freemocap/app/app.py b/freemocap/app/app.py
index fef00d53..e97ce57d 100644
--- a/freemocap/app/app.py
+++ b/freemocap/app/app.py
@@ -121,7 +121,7 @@ def _register_routes(app: FastAPI) -> None:
logger.api(
f"\tRegistering route: `/{freemocap.__package_name__}{route.path}` with methods: [{', '.join(route.methods)}]")
- logger.api("\nRegistering SkellyCam endpoints:")
+ logger.api("\nRegistering FreeMoCap endpoints:")
for router in SKELLYCAM_ROUTERS:
for route in router.routes:
logger.api(
@@ -148,4 +148,4 @@ def _customize_openapi(app: FastAPI) -> None:
app.openapi_schema = schema
return schema
- app.openapi = custom_openapi
\ No newline at end of file
+ app.openapi = custom_openapi