Skip to content

Free Motion Capture for Everyone πŸ’€βœ¨

TypeScript

Build errors (#805)

philipqueenc0e9d8f74ef7
diff --git a/.gitignore b/.gitignore
index ec3cda30..29746c07 100644
--- a/.gitignore
+++ b/.gitignore
@@ -168,3 +168,4 @@ upx.exe
/.claude/
/CLAUDE.md
.aider*
+freemocap-ui/freemocap_server
diff --git a/freemocap-ui/electron-builder.json b/freemocap-ui/electron-builder.json
index 1f809b29..1b47e8a1 100644
--- a/freemocap-ui/electron-builder.json
+++ b/freemocap-ui/electron-builder.json
@@ -39,6 +39,8 @@
"mac": {
"icon": "../shared/freemocap-logo/freemocap-logo.png",
"category": "public.app-category.video",
+ "entitlements": "entitlements.mac.plist",
+ "entitlementsInherit": "entitlements.mac.plist",
"target": [
{
"target": "dmg",
diff --git a/freemocap-ui/entitlements.mac.plist b/freemocap-ui/entitlements.mac.plist
new file mode 100644
index 00000000..e2d10a42
--- /dev/null
+++ b/freemocap-ui/entitlements.mac.plist
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <!-- Required for camera access (used by freemocap_server subprocess) -->
+ <key>com.apple.security.device.camera</key>
+ <true/>
+ <!-- Required for microphone/audio recording -->
+ <key>com.apple.security.device.microphone</key>
+ <true/>
+ <!-- Required for Electron's JS engine -->
+ <key>com.apple.security.cs.allow-jit</key>
+ <true/>
+ <!-- Required for Electron renderer -->
+ <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
+ <true/>
+ <!-- Required for PyInstaller binary and bundled native libs -->
+ <key>com.apple.security.cs.disable-library-validation</key>
+ <true/>
+ </dict>
+</plist>
\ No newline at end of file
diff --git a/freemocap-ui/package.json b/freemocap-ui/package.json
index 4c5a98d7..2a9de045 100644
--- a/freemocap-ui/package.json
+++ b/freemocap-ui/package.json
@@ -15,6 +15,7 @@
"scripts": {
"dev": "cross-env NODE_ENV=development vite",
"build": "tsc && vite build && electron-builder",
+ "build:dev": "tsc && vite build && electron-builder --config.mac.hardenedRuntime=false --config.mac.notarize=false",
"preview": "vite preview",
"pree2e": "vite build --mode=test",
"e2e": "playwright test"
diff --git a/freemocap-ui/src/app/AppContent.tsx b/freemocap-ui/src/app/AppContent.tsx
index 295d94bc..7e367512 100644
--- a/freemocap-ui/src/app/AppContent.tsx
+++ b/freemocap-ui/src/app/AppContent.tsx
@@ -11,8 +11,6 @@ import { useTranslation } from "react-i18next";
import { getLocaleDirection } from "@/i18n";
import { fetchAllRecordings } from "@/store/slices/recording-status/recording-status-thunks";
import { WelcomeModal } from "@/components/ui-components/WelcomeModal";
-import {FloatingOnboarding} from "@/hooks/floatingOnboarding.tsx";
-import PromptTooltip from "@/components/ui-components/promptTooltip";
export const AppContent = function () {
const { i18n } = useTranslation();
diff --git a/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-module.tsx b/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-module.tsx
index bcd4b0bf..ece62b98 100644
--- a/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-module.tsx
+++ b/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-module.tsx
@@ -3,10 +3,10 @@ import { useLocation } from "react-router-dom";
import SubactionHeader from "@/components/ui-components/SubactionHeader";
import ToggleComponent from "@/components/ui-components/ToggleComponent";
import IconButton from "@/components/ui-components/IconButton";
-import DropdownButton from "@/components/ui-components/DropdownButton.tsx";
+import DropdownButton from "@/components/ui-components/DropdownButton";
import CalibrationSettings from "./calibration-settings";
import { FloatingOnboarding } from "@/hooks/floatingOnboarding";
-import PromptTooltip from "@/components/ui-components/promptTooltip";
+import PromptTooltip from "@/components/ui-components/PromptTooltip";
import ButtonSm from "@/components/ui-components/ButtonSm";
import { useCalibration } from "@/hooks/useCalibration";
import { useElectronIPC, useServer } from "@/services";
@@ -494,7 +494,6 @@ const CalibrationModule = ({
iconClass: "calibrate-icon",
className: "button sm min-w-full justify-center",
buttonType: "secondary",
- textClass: "text-center text bg",
}}
dropdownItems={dropdownItems}
dropdownClassName=""
diff --git a/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-settings.tsx b/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-settings.tsx
index f2ce6286..9765c429 100644
--- a/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-settings.tsx
+++ b/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-settings.tsx
@@ -11,9 +11,7 @@ import IconButton from "@/components/ui-components/IconButton";
import NameDropdownSelector from "@/components/ui-components/NameDropdownSelector";
import { useCalibration } from "@/hooks/useCalibration";
import { CalibrationSolverMethod } from "@/store/slices/calibration";
-
-import { FloatingOnboarding } from "@/hooks/floatingOnboarding";
-import PromptTooltip from "@/components/ui-components/promptTooltip";
+import PromptTooltip from "@/components/ui-components/PromptTooltip";
type BoardPreset = "5 x 3" | "7 x 5" | "Custom";
diff --git a/freemocap-ui/src/components/playback/PlaybackControls.tsx b/freemocap-ui/src/components/playback/PlaybackControls.tsx
index 3a37cf0b..26944b62 100644
--- a/freemocap-ui/src/components/playback/PlaybackControls.tsx
+++ b/freemocap-ui/src/components/playback/PlaybackControls.tsx
@@ -1,7 +1,6 @@
import React, { useEffect, useMemo, useRef, useState } from "react";
import clsx from "clsx";
import SegmentedControl from "@/components/ui-components/SegmentedControl";
-import Checkbox from "@/components/ui-components/Checkbox";
import type { PlaybackSettings } from "./SyncedVideoPlayer";
import { useTranslation } from "react-i18next";
import IconButton from "@/components/ui-components/IconButton";
diff --git a/freemocap-ui/src/components/ui-components/types.ts b/freemocap-ui/src/components/ui-components/types.ts
index b90b223c..30f963f6 100644
--- a/freemocap-ui/src/components/ui-components/types.ts
+++ b/freemocap-ui/src/components/ui-components/types.ts
@@ -1,5 +1,7 @@
export type TooltipPosition =
| "pos-top"
+ | "pos-top-left"
+ | "pos-top-right"
| "pos-bottom"
| "pos-bottom-left"
| "pos-bottom-right"
diff --git a/freemocap-ui/src/layout/BasePanelLayout.tsx b/freemocap-ui/src/layout/BasePanelLayout.tsx
index 427c9a3c..248ebf37 100644
--- a/freemocap-ui/src/layout/BasePanelLayout.tsx
+++ b/freemocap-ui/src/layout/BasePanelLayout.tsx
@@ -13,7 +13,7 @@ import { useKeyboardShortcuts } from "@/hooks/useKeyboardShortcuts";
import { RecordingCompleteDialog } from "@/components/control-panels/recording-info-panel/RecordingCompleteDialog";
import { MainNavTabs } from "@/components/ui-components/MainNavTabs";
import { FloatingOnboarding } from "@/hooks/floatingOnboarding";
-import PromptTooltip from "@/components/ui-components/promptTooltip";
+import PromptTooltip from "@/components/ui-components/PromptTooltip";
import { useServer } from "@/services/server/ServerContextProvider";
import { useAppSelector } from "@/store";
import { selectIsLoading } from "@/store/slices/cameras/cameras-selectors";