Free Motion Capture for Everyone πβ¨
TypeScript
Dev freemocap 2-p2 tooltips extra logic and playback view plus styles (#803)
Pooya Moradi M.3e0f257237d8
diff --git a/freemocap-ui/src/assets/icons/filter_active_icon.svg b/freemocap-ui/src/assets/icons/filter_active_icon.svgnew file mode 100644index 00000000..ad06578b--- /dev/null+++ b/freemocap-ui/src/assets/icons/filter_active_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M4 5.62528C4 5.08062 4.45533 4.62528 5 4.62528H15C15.5447 4.62528 16 5.08062 16 5.62528V7.01595C15.9999 7.36954 15.8594 7.70863 15.6093 7.95862L12 11.5679V16.5173C12 16.7673 11.8649 17.0097 11.6522 17.1412C11.4395 17.2726 11.1623 17.2851 10.9387 17.1733L8.46067 15.9346C8.18383 15.7962 8.00001 15.4988 8 15.1893V11.5679L4.39067 7.95862C4.1406 7.70863 4.00008 7.36954 4 7.01595V5.62528ZM5.33333 5.95862V7.01595L9.04 10.7226C9.22593 10.9083 9.33328 11.1672 9.33333 11.4299V14.8799L10.6667 15.5466V11.4299C10.6667 11.1646 10.772 10.9099 10.96 10.7233L14.6667 7.01528V5.95862H5.33333Z" fill="#E4E4E4"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/filter_icon.svg b/freemocap-ui/src/assets/icons/filter_icon.svgnew file mode 100644index 00000000..989cb8f9--- /dev/null+++ b/freemocap-ui/src/assets/icons/filter_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M4 5.62528C4 5.08062 4.45533 4.62528 5 4.62528H15C15.5447 4.62528 16 5.08062 16 5.62528V7.01595C15.9999 7.36954 15.8594 7.70863 15.6093 7.95862L12 11.5679V16.5173C12 16.7673 11.8649 17.0097 11.6522 17.1412C11.4395 17.2726 11.1623 17.2851 10.9387 17.1733L8.46067 15.9346C8.18383 15.7962 8.00001 15.4988 8 15.1893V11.5679L4.39067 7.95862C4.1406 7.70863 4.00008 7.36954 4 7.01595V5.62528ZM5.33333 5.95862V7.01595L9.04 10.7226C9.22593 10.9083 9.33328 11.1672 9.33333 11.4299V14.8799L10.6667 15.5466V11.4299C10.6667 11.1646 10.772 10.9099 10.96 10.7233L14.6667 7.01528V5.95862H5.33333Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/sort_icon.svg b/freemocap-ui/src/assets/icons/sort_icon.svgnew file mode 100644index 00000000..d30e7ad9--- /dev/null+++ b/freemocap-ui/src/assets/icons/sort_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M14.067 16.1006L11.6971 13.7306C11.5711 13.6046 11.6603 13.3892 11.8385 13.3892H13.1892C13.2996 13.3892 13.3892 13.2997 13.3892 13.1892V6.81081C13.3892 6.70035 13.2996 6.61081 13.1892 6.61081H11.8385C11.6603 6.61081 11.5711 6.39538 11.6971 6.26938L13.9256 4.04087C14.0037 3.96276 14.1303 3.96276 14.2084 4.04087L16.4369 6.26938C16.5629 6.39538 16.4737 6.61081 16.2955 6.61081H14.9448C14.8344 6.61081 14.7448 6.70035 14.7448 6.81081V13.1892C14.7448 13.2997 14.8344 13.3892 14.9448 13.3892H16.7784M3.22156 14.7449V13.5892C3.22156 13.4788 3.3111 13.3892 3.42156 13.3892H9.79996C9.91042 13.3892 9.99996 13.4788 9.99996 13.5892V14.7449M3.22156 10.6778V9.52217C3.22156 9.41171 3.3111 9.32217 3.42156 9.32217H7.76644C7.8769 9.32217 7.96644 9.41171 7.96644 9.52217V10.6778M3.42156 6.61081C3.3111 6.61081 3.22156 6.52126 3.22156 6.41081V5.45513C3.22156 5.34467 3.3111 5.25512 3.42156 5.25512H5.73292C5.84338 5.25512 5.93292 5.34467 5.93292 5.45512V6.4108C5.93292 6.52126 5.84338 6.61081 5.73292 6.61081H3.42156Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/stop_alert_icon.svg b/freemocap-ui/src/assets/icons/stop_alert_icon.svgnew file mode 100644index 00000000..9b1136f1--- /dev/null+++ b/freemocap-ui/src/assets/icons/stop_alert_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12.2323 5.88581C13.3369 5.88581 14.2323 6.78124 14.2323 7.88581L14.2323 12.1142C14.2323 13.2188 13.3369 14.1142 12.2323 14.1142L7.76779 14.1142C6.66322 14.1142 5.76779 13.2188 5.76779 12.1142L5.76779 7.88581C5.76779 6.78124 6.66322 5.88581 7.76779 5.88581L12.2323 5.88581Z" fill="#D7184B"/>+</svg>diff --git a/freemocap-ui/src/assets/icons/stop_icon.svg b/freemocap-ui/src/assets/icons/stop_icon.svgnew file mode 100644index 00000000..d9864efc--- /dev/null+++ b/freemocap-ui/src/assets/icons/stop_icon.svg@@ -0,0 +1,3 @@+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12.2323 5.88581C13.3369 5.88581 14.2323 6.78124 14.2323 7.88581L14.2323 12.1142C14.2323 13.2188 13.3369 14.1142 12.2323 14.1142L7.76779 14.1142C6.66322 14.1142 5.76779 13.2188 5.76779 12.1142L5.76779 7.88581C5.76779 6.78124 6.66322 5.88581 7.76779 5.88581L12.2323 5.88581Z" fill="#9B9B9B"/>+</svg>diff --git a/freemocap-ui/src/components/common/RecordingStatusPanel.tsx b/freemocap-ui/src/components/common/RecordingStatusPanel.tsxindex adf4590a..0e6dbee0 100644--- a/freemocap-ui/src/components/common/RecordingStatusPanel.tsx+++ b/freemocap-ui/src/components/common/RecordingStatusPanel.tsx@@ -44,12 +44,12 @@ const StageRow: React.FC<{ name: string; complete: boolean; present: number; totonClick={() => setOpen(v => !v)}>- <span className={`icon icon-size-20 ${complete ? 'upToDate-icon' : 'close-icon'}`} />- <span className="text sm text-white flex-1">{label}</span>- <span className="icon icon-size-20 collapse-icon" style={{ transform: open ? 'rotate(0deg)' : 'rotate(-90deg)' }} />+ <span className={`icon icon-size-20 ${complete ? 'upToDate-icon' : 'warning-icon'}`} />+ <span className="text md text-white flex-1">{label}</span>+ <span className="icon icon-size-20 arrowdown-icon" style={{ transform: open ? 'rotate(180deg)' : 'rotate(0deg)' }} /></div>{open && children && (- <div className="p-1 pt-0">{children}</div>+ <div className="px-2 pb-2">{children}</div>)}</div>);@@ -92,37 +92,41 @@ export const RecordingStatusPanel: React.FC<RecordingStatusPanelProps> = ({return (<div className="br-1 border-1 border-mid-black overflow-hidden"><div- className="flex flex-row items-center gap-1 p-1"+ className="flex flex-row items-center gap-1 pl-2 p-2"onClick={() => setExpanded(v => !v)}>- <span className="icon info-icon icon-size-20" style={{ backgroundImage: 'url("data:image/svg+xml,%3csvg width=\'16\' height=\'16\' viewBox=\'0 0 16 16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3ccircle cx=\'8\' cy=\'8\' r=\'6\' stroke=\'%232ba4ff\' stroke-width=\'1.5\'/%3e%3cpath d=\'M8 7v4M8 5.5v.5\' stroke=\'%232ba4ff\' stroke-width=\'1.5\' stroke-linecap=\'round\'/%3e%3c/svg%3e")' }} />- <span className="text sm text-gray flex-1">Recording folder</span>- <span className={`tag text sm ${summaryColor}`}>{summaryLabel}</span>+ <span className="icon explainer-icon icon-size-20"/>+ <span className="text md text-gray flex-1">Recording folder</span>+ <span className={`tag text md ${summaryColor}`}>{summaryLabel}</span>{onRefresh && (<IconButtonicon={isLoading ? "loader-icon" : "rotate-icon"}onClick={(e) => { e.stopPropagation(); onRefresh(); }}disabled={isLoading}- title="Re-check folder"++ tooltip={true}+ tooltipPosition="pos-bottom-right"+ tooltipText="Re-check folder"+/>)}- <span className="icon icon-size-20 collapse-icon" style={{ transform: expanded ? 'rotate(0deg)' : 'rotate(-90deg)' }} />+ <span className="icon icon-size-20 arrowdown-icon" style={{ transform: expanded ? 'rotate(180deg)' : 'rotate(0deg)' }} /></div>{expanded && (<div className="flex flex-col gap-1 p-2">{error && (<div className="toast-notification error">- <p className="text sm">{error}</p>+ <p className="text md">{error}</p></div>)}{!folderExists && (<div className="toast-notification">- <p className="text sm text-warning">Recording folder does not exist yet. It will be created when you start recording.</p>+ <p className="text md text-warning">Recording folder does not exist yet. It will be created when you start recording.</p>{recordingFolderPath && (- <p className="text sm text-gray mt-1" style={{ fontFamily: 'monospace', wordBreak: 'break-all' }}>+ <p className="text md text-gray mt-1" style={{ fontFamily: 'monospace', wordBreak: 'break-all' }}>{recordingFolderPath}</p>)}@@ -131,15 +135,15 @@ export const RecordingStatusPanel: React.FC<RecordingStatusPanelProps> = ({{activeCalibrationTomlPath && (<div>- <p className="text sm text-gray">Active calibration TOML:</p>- <p className="text sm" style={{ fontFamily: 'monospace', color: 'var(--color-success)', wordBreak: 'break-all' }}>+ <p className="text md text-gray">Active calibration TOML:</p>+ <p className="text md" style={{ fontFamily: 'monospace', color: 'var(--color-success)', wordBreak: 'break-all' }}>{activeCalibrationTomlPath}</p></div>)}{!status && !isLoading && !error && (- <p className="text sm text-gray">No status loaded.</p>+ <p className="text md text-gray">No status loaded.</p>)}{status && (@@ -153,23 +157,27 @@ export const RecordingStatusPanel: React.FC<RecordingStatusPanelProps> = ({total={stage.total_count}>{stage.files.length === 0 ? (- <p className="text sm text-gray">No files found.</p>+ <p className="text md text-gray">No files found.</p>) : (<div className="flex flex-col gap-1">{stage.files.map((f) => (<divkey={f.path ?? f.name}- className="flex flex-row items-center gap-1"+ className="flex flex-row flex-wrap items-center gap-1"style={{ fontFamily: 'monospace' }}>- <span className={`icon icon-size-12 ${f.exists ? 'upToDate-icon' : 'close-icon'}`} />- <span className={`text sm flex-1 ${f.exists ? 'text-white' : 'text-gray'}`} style={{ wordBreak: 'break-all' }}>- {f.name}- </span>+ <div className="flex flex-row gap-1">+ <span className={`icon icon-size-12 ${f.exists ? 'upToDate-icon' : 'close-icon'}`} />+ <span className={`text md flex-1 ${f.exists ? 'text-white' : 'text-gray'}`} style={{ wordBreak: 'break-all' }}>+ {f.name}+ </span>+ </div>{f.exists && (<>- <span className="text sm text-gray">{humanizeBytes(f.size_bytes)}</span>- <span className="text sm text-gray">{formatTimestamp(f.modified_timestamp)}</span>+ <div className="flex flex-row gap-1">+ <span className="text md text-gray tag">{humanizeBytes(f.size_bytes)}</span>+ <span className="text md text-gray tag">{formatTimestamp(f.modified_timestamp)}</span>+ </div></>)}</div>diff --git a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingCompleteDialog.tsx b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingCompleteDialog.tsxindex 01a38168..aae1edb3 100644--- a/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingCompleteDialog.tsx+++ b/freemocap-ui/src/components/control-panels/recording-info-panel/RecordingCompleteDialog.tsx@@ -1,148 +1,161 @@-import React from 'react';-import {useNavigate} from 'react-router-dom';-import {useAppDispatch, useAppSelector} from '@/store/hooks';-import {recordingCompletionDismissed} from '@/store/slices/recording/recording-slice';-import {useElectronIPC} from '@/services/electron-ipc/electron-ipc';-import IconButton from '@/components/ui-components/IconButton';-import type {RecordingCompletionData, StatsSummary} from '@/store/slices/recording/recording-types';+import React from "react";+import { useNavigate } from "react-router-dom";+import { useAppDispatch, useAppSelector } from "@/store/hooks";+import { recordingCompletionDismissed } from "@/store/slices/recording/recording-slice";+import { useElectronIPC } from "@/services/electron-ipc/electron-ipc";+import IconButton from "@/components/ui-components/IconButton";+import ButtonSm from "@/components/ui-components/ButtonSm";+import type {+ RecordingCompletionData,+ StatsSummary,+} from "@/store/slices/recording/recording-types";function formatStat(value: number, precision: number = 3): string {- return value.toFixed(precision);+ return value.toFixed(precision);}interface TimingRow {- label: string;- stats: StatsSummary;+ label: string;+ stats: StatsSummary;}function TimingStatsTable({ data }: { data: RecordingCompletionData }) {- const rows: TimingRow[] = [- { label: 'Framerate / FPS (Hz)', stats: data.framerate_stats },- { label: 'Frame Duration (ms)', stats: data.frame_duration_stats },- { label: 'Inter-Camera Frame Grab Sync (ms)', stats: data.inter_camera_grab_range_ms_stats },- ];-- const thStyle: React.CSSProperties = {fontWeight: 'bold', padding: '4px 8px', fontSize: '0.8rem', textAlign: 'left', borderBottom: '1px solid var(--color-border-secondary)'};- const tdStyle: React.CSSProperties = {padding: '4px 8px', fontSize: '0.8rem'};- const tdRightStyle: React.CSSProperties = {...tdStyle, textAlign: 'right'};-- return (- <table className="w-full" style={{borderCollapse: 'collapse'}}>- <thead>- <tr>- <th style={thStyle}>Metric</th>- <th style={{...thStyle, textAlign: 'right'}}>Median</th>- <th style={{...thStyle, textAlign: 'right'}}>Mean</th>- <th style={{...thStyle, textAlign: 'right'}}>Std</th>- <th style={{...thStyle, textAlign: 'right'}}>Min</th>- <th style={{...thStyle, textAlign: 'right'}}>Max</th>- </tr>- </thead>- <tbody>- {rows.map((row) => (- <tr key={row.label}>- <td style={tdStyle}>{row.label}</td>- <td style={tdRightStyle}>{formatStat(row.stats.median)}</td>- <td style={tdRightStyle}>{formatStat(row.stats.mean)}</td>- <td style={tdRightStyle}>{formatStat(row.stats.std)}</td>- <td style={tdRightStyle}>{formatStat(row.stats.min)}</td>- <td style={tdRightStyle}>{formatStat(row.stats.max)}</td>- </tr>- ))}- </tbody>- </table>- );+ const rows: TimingRow[] = [+ { label: "Framerate / FPS (Hz)", stats: data.framerate_stats },+ { label: "Frame Duration (ms)", stats: data.frame_duration_stats },+ {+ label: "Inter-Camera Frame Grab Sync (ms)",+ stats: data.inter_camera_grab_range_ms_stats,+ },+ ];++ return (+ <table className="w-full border-collapse">+ <thead>+ <tr>+ <th className=" p-01 text-left border-b-secondary">Metric</th>+ <th className=" p-01 text-right border-b-secondary">Median</th>+ <th className=" p-01 text-right border-b-secondary">Mean</th>+ <th className=" p-01 text-right border-b-secondary">Std</th>+ <th className=" p-01 text-right border-b-secondary">Min</th>+ <th className=" p-01 text-right border-b-secondary">Max</th>+ </tr>+ </thead>+ <tbody>+ {rows.map((row) => (+ <tr key={row.label}>+ <td className="p-01 ">{row.label}</td>+ <td className="p-01 text-right">{formatStat(row.stats.median)}</td>+ <td className="p-01 text-right">{formatStat(row.stats.mean)}</td>+ <td className="p-01 text-right">{formatStat(row.stats.std)}</td>+ <td className="p-01 text-right">{formatStat(row.stats.min)}</td>+ <td className="p-01 text-right">{formatStat(row.stats.max)}</td>+ </tr>+ ))}+ </tbody>+ </table>+ );}export const RecordingCompleteDialog: React.FC = () => {- const dispatch = useAppDispatch();- const navigate = useNavigate();- const { api } = useElectronIPC();- const completionData = useAppSelector((state) => state.recording.completionData);-- if (!completionData) return null;-- const handleClose = () => dispatch(recordingCompletionDismissed());-- const handleCopyPath = () => {- navigator.clipboard.writeText(completionData.recording_path);- };-- const handleOpenFolder = async () => {- try {- await api?.fileSystem.openFolder.mutate({ path: completionData.recording_path });- } catch (err) {- console.error('Failed to open recording folder:', err);- }- };-- const handleOpenInPlayback = () => {- dispatch(recordingCompletionDismissed());- navigate('/playback', { state: { loadRecordingPath: completionData.recording_path } });- };-- return (- <div- className="splash-overlay inset-0"- style={{position: 'fixed', zIndex: 100}}- onClick={handleClose}- >- <div- className="pos-rel bg-middark br-2 flex flex-col p-3 w-full"- style={{minWidth: 480, maxWidth: 720}}- onClick={(e) => e.stopPropagation()}- >- <div className="flex flex-row items-center justify-content-space-between pb-2">- <p className="text bg text-white">Recording Complete!</p>- <IconButton icon="close-icon" onClick={handleClose} title="Close" />- </div>-- <div className="flex flex-row items-center gap-1 mb-2">- <span- className="text sm text-gray br-1 flex-1 overflow-hidden"- style={{- fontFamily: 'monospace',- fontSize: '0.8rem',- backgroundColor: 'var(--color-bg-elevated)',- padding: '4px 8px',- textOverflow: 'ellipsis',- whiteSpace: 'nowrap',- }}- >- {completionData.recording_path}- </span>- <IconButton icon="copy-icon" onClick={handleCopyPath} title="Copy path" />- <IconButton icon="folder-icon" onClick={handleOpenFolder} title="Open folder" />- </div>-- <p className="text sm text-gray mb-2">- {completionData.number_of_cameras} camera{completionData.number_of_cameras !== 1 ? 's' : ''}- {' Β· '}- {completionData.number_of_frames} frames- {' Β· '}- {completionData.total_duration_sec}s- {' Β· '}- {completionData.mean_framerate} Hz avg- </p>-- <div style={{height: 1, backgroundColor: 'var(--color-border-secondary)', margin: '4px 0 8px 0'}} />-- <p className="text sm text-white mb-2" style={{fontWeight: 600}}>- Frame Timing Statistics- </p>-- <TimingStatsTable data={completionData} />-- <div className="flex flex-row gap-1 mt-3 flex-end">- <button className="button sm secondary" onClick={handleOpenInPlayback}>- <span className="icon play-icon icon-size-20 mr-1" />- Open in Playback- </button>- <button className="button sm primary" onClick={handleClose}>- Close- </button>- </div>+ const dispatch = useAppDispatch();+ const navigate = useNavigate();+ const { api } = useElectronIPC();+ const completionData = useAppSelector(+ (state) => state.recording.completionData,+ );++ if (!completionData) return null;++ const handleClose = () => dispatch(recordingCompletionDismissed());++ const handleCopyPath = () => {+ navigator.clipboard.writeText(completionData.recording_path);+ };++ const handleOpenFolder = async () => {+ try {+ await api?.fileSystem.openFolder.mutate({+ path: completionData.recording_path,+ });+ } catch (err) {+ console.error("Failed to open recording folder:", err);+ }+ };++ const handleOpenInPlayback = () => {+ dispatch(recordingCompletionDismissed());+ navigate("/playback", {+ state: { loadRecordingPath: completionData.recording_path },+ });+ };++ return (+ <div className="splash-overlay inset-0" onClick={handleClose}>+ <div+ className="recording-completed-main-modal border-1 border-black elevated-sharp pos-rel bg-dark br-2 flex flex-col p-1 w-full min-w-480 max-w-600"+ onClick={(e) => e.stopPropagation()}+ >+ <div className="flex flex-col right-0 p-2 gap-1 bg-middark br-1 z-1">+ <div className="flex flex-row items-center justify-content-space-between pb-2">+ <p className="text text-white">Recording Complete!</p>+ <IconButton icon="close-icon" onClick={handleClose} title="Close" tooltip={true} tooltipText="Close dialog" />+ </div>+ <div className="flex flex-row items-center gap-1 mb-2">+ <span className=" text-gray br-1 flex-1 overflow-hidden truncate bg-elevated p-01">+ {completionData.recording_path}+ </span>+ <IconButton+ icon="copy-icon"+ onClick={handleCopyPath}+ title="Copy path"+ tooltip={true}+ tooltipText="Copy recording path to clipboard"+ />+ <IconButton+ icon="folder-icon"+ onClick={handleOpenFolder}+ title="Open folder"+ tooltip={true}+ tooltipText="Open recording folder in file explorer"+ />+ </div>+ <p className=" text-gray mb-2">+ {completionData.number_of_cameras} camera+ {completionData.number_of_cameras !== 1 ? "s" : ""}+ {" Β· "}+ {completionData.number_of_frames} frames+ {" Β· "}+ {completionData.total_duration_sec}s{" Β· "}+ {completionData.mean_framerate} Hz avg+ </p>+ <div className="divider" />+ <p className=" text-white mb-2 font-semibold">+ Frame Timing Statistics+ </p>+ <TimingStatsTable data={completionData} />+ <div className="flex flex-row gap-4 mt-3 flex-end">+ <ButtonSm+ text="Close"+ buttonType="button sm quaternary"+ className=""+ onClick={handleClose}+ tooltip={true}+ tooltipText="Close this dialog"+ />+ <ButtonSm+ text="Open in Playback"+ className=""+ iconClass="play-icon"+ buttonType="button sm secondary"+ onClick={handleOpenInPlayback}+ tooltip={true}+ tooltipText="Open recording in playback view"+ />+</div></div>- );+ </div>+ </div>+ );};diff --git a/freemocap-ui/src/components/control-panels/server-connection/ServerConnectionStatus.tsx b/freemocap-ui/src/components/control-panels/server-connection/ServerConnectionStatus.tsxindex 86f82273..01e04221 100644--- a/freemocap-ui/src/components/control-panels/server-connection/ServerConnectionStatus.tsx+++ b/freemocap-ui/src/components/control-panels/server-connection/ServerConnectionStatus.tsx@@ -193,7 +193,8 @@ export const ServerConnectionStatus: React.FC<{ compact?: boolean }> = ({ compactext={t('launchServer')}onClick={startServer}disabled={serverRunning || serverLoading}- className="primary flex-1"+ className="secondary"+/><ButtonSmtext={t('stopServer')}@@ -206,6 +207,7 @@ export const ServerConnectionStatus: React.FC<{ compact?: boolean }> = ({ compaconClick={resetServer}disabled={!serverRunning || serverLoading}className="flex-1"+ buttonType="button sm quaternary"/></div>diff --git a/freemocap-ui/src/components/pipeline-progress/PipelineGroupCard.tsx b/freemocap-ui/src/components/pipeline-progress/PipelineGroupCard.tsxindex 4fd05ae6..dc40c1f1 100644--- a/freemocap-ui/src/components/pipeline-progress/PipelineGroupCard.tsx+++ b/freemocap-ui/src/components/pipeline-progress/PipelineGroupCard.tsx@@ -1,179 +1,263 @@-import {useNavigate} from 'react-router-dom';-import {useAppDispatch} from '@/store/hooks';-import {activeRecordingSet} from '@/store/slices/active-recording/active-recording-slice';-import {useElectronIPC} from '@/services';-import {PipelineGroup, PipelinePhase, PipelineProgress, PHASE_LABELS, PIPELINE_TYPE_CONFIG} from '@/store/slices/pipelines';-import {stopPipeline} from '@/store/slices/pipelines/pipelines-thunks';-import IconButton from '@/components/ui-components/IconButton';+import { useNavigate } from "react-router-dom";+import { useAppDispatch } from "@/store/hooks";+import { activeRecordingSet } from "@/store/slices/active-recording/active-recording-slice";+import { useElectronIPC } from "@/services";+import {+ PipelineGroup,+ PipelinePhase,+ PipelineProgress,+ PHASE_LABELS,+ PIPELINE_TYPE_CONFIG,+} from "@/store/slices/pipelines";+import { stopPipeline } from "@/store/slices/pipelines/pipelines-thunks";+import IconButton from "@/components/ui-components/IconButton";function formatTimeAgo(timestamp: number): string {- const seconds = Math.floor((Date.now() - timestamp) / 1000);- if (seconds < 60) return `${seconds}s ago`;- const minutes = Math.floor(seconds / 60);- if (minutes < 60) return `${minutes}m ago`;- const hours = Math.floor(minutes / 60);- return `${hours}h ago`;+ const seconds = Math.floor((Date.now() - timestamp) / 1000);+ if (seconds < 60) return `${seconds}s ago`;+ const minutes = Math.floor(seconds / 60);+ if (minutes < 60) return `${minutes}m ago`;+ const hours = Math.floor(minutes / 60);+ return `${hours}h ago`;}-function SubProgressBar({pipeline, label, isAggregator = false}: {- pipeline: PipelineProgress;- label: string;- isAggregator?: boolean;+function SubProgressBar({+ pipeline,+ label,+ isAggregator = false,+}: {+ pipeline: PipelineProgress;+ label: string;+ isAggregator?: boolean;}) {- const isFailed = pipeline.phase === PipelinePhase.FAILED;- const isComplete = pipeline.phase === PipelinePhase.COMPLETE;- const isTerminal = isComplete || isFailed;- const isIndeterminate = isAggregator && !isTerminal && pipeline.phase !== PipelinePhase.SETTING_UP;+ const isFailed = pipeline.phase === PipelinePhase.FAILED;+ const isComplete = pipeline.phase === PipelinePhase.COMPLETE;+ const isTerminal = isComplete || isFailed;+ const isIndeterminate =+ isAggregator && !isTerminal && pipeline.phase !== PipelinePhase.SETTING_UP;- const rightText = isTerminal && pipeline.completedAt- ? formatTimeAgo(pipeline.completedAt)- : isIndeterminate- ? (pipeline.detail || PHASE_LABELS[pipeline.phase])- : `${pipeline.progress}%`;+ const rightText =+ isTerminal && pipeline.completedAt+ ? formatTimeAgo(pipeline.completedAt)+ : isIndeterminate+ ? pipeline.detail || PHASE_LABELS[pipeline.phase]+ : `${pipeline.progress}%`;- const progressColor = isFailed ? 'var(--color-error)' : isComplete ? 'var(--color-success)' : 'var(--color-info)';+ const progressColor = isFailed+ ? "var(--color-error)"+ : isComplete+ ? "var(--color-success)"+ : "var(--color-info)";- return (- <div className="mb-1" style={{opacity: isTerminal ? 0.6 : 1}}>- <div className="flex flex-row justify-content-space-between items-center" style={{marginBottom: 1}}>- <p className="text sm text-gray flex-1 mr-1 m-0" style={{overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', fontSize: '0.68rem'}}>- {label}- </p>- <p className="text sm text-gray flex-shrink-0 m-0" style={{fontSize: '0.65rem', maxWidth: 160, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>- {rightText}- </p>- </div>- <div className="update-progress-track" style={{height: 4, borderRadius: 2}}>- {!isIndeterminate && (- <div className="update-progress-fill h-full" style={{width: `${pipeline.progress}%`, backgroundColor: progressColor, borderRadius: 2}}/>- )}- {isIndeterminate && (- <div className="h-full" style={{width: '40%', backgroundColor: progressColor, borderRadius: 2, animation: 'indeterminateProgress 1.5s infinite ease-in-out'}}/>- )}- </div>- {isFailed && pipeline.detail && (- <p- title={pipeline.detail}- className="text sm text-error block m-0"- style={{fontSize: '0.62rem', marginTop: 2, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', cursor: 'default'}}- >- {pipeline.detail}- </p>- )}- </div>- );+ return (+ <div className="mb-1 flex flex-col gap-1" style={{ opacity: isTerminal ? 1 : 1 }}>+ <div className="flex flex-row justify-content-space-between items-center pipeline-group-card__label-row">+ <p className="text md flex-1 mr-1 m-0 truncate">{label}</p>+ <p className="text md flex-shrink-0 m-0 truncate pipeline-group-card__max-width">+ {rightText}+ </p>+ </div>+ <div className="sub-progress-track">+ {!isIndeterminate && (+ <div+ className="update-progress-fill h-full sub-progress-fill"+ style={{+ width: `${pipeline.progress}%`,+ backgroundColor: progressColor,+ }}+ />+ )}+ {isIndeterminate && (+ <div+ className="h-full sub-progress-indeterminate"+ style={{ backgroundColor: progressColor }}+ />+ )}+ </div>+ {isFailed && pipeline.detail && (+ <p+ title={pipeline.detail}+ className="text md text-error block m-0 truncate pipeline-group-card__error-text"+ >+ {pipeline.detail}+ </p>+ )}+ </div>+ );}-export default function PipelineGroupCard({group, onDismiss}: {- group: PipelineGroup;- onDismiss?: () => void;+export default function PipelineGroupCard({+ group,+ onDismiss,+}: {+ group: PipelineGroup;+ onDismiss?: () => void;}) {- const dispatch = useAppDispatch();- const navigate = useNavigate();- const {api} = useElectronIPC();+ const dispatch = useAppDispatch();+ const navigate = useNavigate();+ const { api } = useElectronIPC();- const overallProgress =- group.aggregator?.progress ??- (group.videoNodes.length > 0- ? Math.round(group.videoNodes.reduce((sum, n) => sum + n.progress, 0) / group.videoNodes.length)- : 0);+ const overallProgress =+ group.aggregator?.progress ??+ (group.videoNodes.length > 0+ ? Math.round(+ group.videoNodes.reduce((sum, n) => sum + n.progress, 0) /+ group.videoNodes.length,+ )+ : 0);- const borderColor = group.isFailed ? 'var(--color-error)' : group.isComplete ? 'var(--color-success)' : 'var(--color-border-secondary)';- const typeConfig = group.pipelineType ? PIPELINE_TYPE_CONFIG[group.pipelineType] : null;- const fullPath = group.recordingPath || undefined;- const recordingName = group.recordingName;- const pipelineId = group.basePipelineId;+ const borderColor = group.isFailed+ ? "var(--color-error)"+ : group.isComplete+ ? "var(--color-success)"+ : "var(--color-border-secondary)";+ const typeConfig = group.pipelineType+ ? PIPELINE_TYPE_CONFIG[group.pipelineType]+ : null;+ const fullPath = group.recordingPath || undefined;+ const recordingName = group.recordingName;+ const pipelineId = group.basePipelineId;- const handleOpenFolder = async () => {- if (!fullPath) return;- try {- await api?.fileSystem.openFolder.mutate({path: fullPath});- } catch (err) {- console.error('Failed to open recording folder:', err);- }- };+ const handleOpenFolder = async () => {+ if (!fullPath) return;+ try {+ await api?.fileSystem.openFolder.mutate({ path: fullPath });+ } catch (err) {+ console.error("Failed to open recording folder:", err);+ }+ };- const handleLoadPlayback = () => {- if (!group.recordingName) return;- dispatch(activeRecordingSet({- recordingName: group.recordingName,- origin: 'browsed',- }));- navigate('/playback');- };+ const handleLoadPlayback = () => {+ if (!group.recordingName) return;+ dispatch(+ activeRecordingSet({+ recordingName: group.recordingName,+ origin: "browsed",+ }),+ );+ navigate("/playback");+ };- return (- <div className="br-1" style={{margin: '6px 8px', padding: 8, border: `1px solid ${borderColor}`, opacity: group.isActive ? 1 : 0.6}}>- <div className="flex flex-row items-center mb-1">- {typeConfig && (- <div className="flex-shrink-0 br-1" style={{- padding: '1px 6px', marginRight: 6,- backgroundColor: typeConfig.color + '22',- border: `1px solid ${typeConfig.color}66`,- }}>- <p className="text sm m-0" style={{fontSize: '0.62rem', fontWeight: 600, color: typeConfig.color, lineHeight: 1.4}}>- {typeConfig.label}- </p>- </div>- )}- <p className="text sm flex-1 min-w-0 m-0" style={{overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>- <span className="text-gray">Pipeline: </span>- <span style={{fontWeight: 'bold'}}>{pipelineId}</span>- </p>+ const borderClass = group.isFailed+ ? "pipeline-group-card__border-failed"+ : group.isComplete+ ? "pipeline-group-card__border-complete"+ : "pipeline-group-card__border-running";- <p className="text sm text-gray flex-shrink-0 m-0" style={{fontSize: '0.7rem'}}>- {overallProgress}%- </p>- <IconButton title="Open folder" icon="load-icon" className="icon-size-25 p-01" iconStyle={{fontSize: '0.85rem'}} onClick={handleOpenFolder} disabled={!fullPath}/>- <IconButton title="Load in playback" icon="play-icon" className="icon-size-25 p-01" iconStyle={{fontSize: '0.85rem'}} onClick={handleLoadPlayback}/>- {group.isActive && (- <IconButton- title="Stop pipeline"- icon="close-icon"- className="icon-size-25 p-01"- iconStyle={{fontSize: '0.85rem'}}- onClick={() => dispatch(stopPipeline(group.basePipelineId))}- style={{color: 'var(--color-error)'}}- />- )}- {onDismiss && (- <IconButton icon="close-icon" className="icon-size-25 p-01" iconStyle={{fontSize: '0.75rem'}} onClick={onDismiss}/>- )}- </div>- <div title={fullPath}>- <p className="text sm flex-1 min-w-0 m-0" style={{overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap'}}>- <span className="text-gray">Recording: </span>- <span style={{fontWeight: 'bold'}}>{recordingName}</span>+ const opacityClass = group.isActive ? "" : "pipeline-group-card__inactive";++ return (+ <div+ className={`progress-container flex flex-col gap-2 text-white br-2 m-1 bg-dark pipeline-group-card ${borderClass} ${opacityClass}`.trim()}+ >+ <div className="flex flex-row items-center mb-1">+ {typeConfig && (+ <div+ className="flex-shrink-0 br-1 pipeline-group-card__type-badge"+ style={{+ backgroundColor: typeConfig.color + "22",+ border: `1px solid ${typeConfig.color}66`,+ }}+ >+ <p+ className="flex flex-col gap-2 text md m-0 pipeline-group-card__type-badge-text"+ style={{ color: typeConfig.color }}+ >+ {typeConfig.label}+ </p>+ </div>+ )}+ <p className="text md flex-1 flex min-w-0 m-0 truncate">+ <span className="">Pipeline: </span>+ <span className="pipeline-group-card__bold">{pipelineId}</span>+ </p>+++ <div className="flex flex-row gap-2 items-center">+ <p className="text bg text-white flex-shrink-0 m-0 mr-2">+ {overallProgress}%</p>- </div>- {group.videoNodes.length > 0 && (- <div className="pl-2" style={{borderLeft: '2px solid var(--color-border-secondary)', marginBottom: group.aggregator ? 6 : 0}}>- {group.videoNodes.map((node) => {- const cameraId = node.pipelineId.includes(':')- ? node.pipelineId.split(':').slice(1).join(':')- : node.pipelineId;- return <SubProgressBar key={node.pipelineId} pipeline={node} label={`Camera: ${cameraId}`}/>;- })}- </div>+ <IconButton+ title="Open folder"+ icon="subfolder-icon"+ className="icon-size-25 p-01"+ onClick={handleOpenFolder}+ disabled={!fullPath}+ tooltip={true}+ tooltipText="Open folder"+ />+ <IconButton+ title="Load in playback"+ icon="play-icon"+ className="icon-size-25 p-01"+ onClick={handleLoadPlayback}+ tooltip={true}+ tooltipText="Load in playback"+ />+ {group.isActive && (+ <IconButton+ title="Stop pipeline"+ icon="stop-alert-icon"+ className="icon-size-25 p-01"+ onClick={() => dispatch(stopPipeline(group.basePipelineId))}+ style={{ color: "var(--color-error)" }}+ tooltip={true}+ tooltipText="Stop pipeline"+ />)}-- {group.aggregator && (- <div className="mt-1">- <SubProgressBar- pipeline={group.aggregator}- isAggregator={true}- label={- group.aggregator.phase === PipelinePhase.COMPLETE- ? 'Aggregation complete'- : group.aggregator.phase === PipelinePhase.FAILED- ? 'Aggregation failed'- : group.videoNodes.length > 0- ? `Aggregating ${group.videoNodes.length} camera${group.videoNodes.length !== 1 ? 's' : ''}`- : PHASE_LABELS[group.aggregator.phase]- }- />- </div>+ {onDismiss && (+ <IconButton+ icon="close-icon"+ className="icon-size-25 p-01"+ onClick={onDismiss}+ tooltip={true}+ tooltipText="Dismiss"+ />)}</div>- );+ </div>+ <div title={fullPath}>+ <p className="text md flex-1 min-w-0 m-0 truncate">+ <span className="">Recording: </span>+ <span className="pipeline-group-card__bold">{recordingName}</span>+ </p>+ </div>+ {group.videoNodes.length > 0 && (+ <div+ className={`flex flex-col gap-2 pl-2 pipeline-group-card__border-left ${group.aggregator ? "pipeline-group-card__border-left-aggregator" : "pipeline-group-card__border-left-no-aggregator"}`}+ >+ {group.videoNodes.map((node) => {+ const cameraId = node.pipelineId.includes(":")+ ? node.pipelineId.split(":").slice(1).join(":")+ : node.pipelineId;+ return (+ <SubProgressBar+ key={node.pipelineId}+ pipeline={node}+ label={`Camera: ${cameraId}`}+ />+ );+ })}+ </div>+ )}++ {group.aggregator && (+ <div className="flex flex-col gap-2 p-2 br-2 bg-darkgray ">+ <SubProgressBar+ pipeline={group.aggregator}+ isAggregator={true}+ label={+ group.aggregator.phase === PipelinePhase.COMPLETE+ ? "Aggregation complete"+ : group.aggregator.phase === PipelinePhase.FAILED+ ? "Aggregation failed"+ : group.videoNodes.length > 0+ ? `Aggregating ${group.videoNodes.length} camera${group.videoNodes.length !== 1 ? "s" : ""}`+ : PHASE_LABELS[group.aggregator.phase]+ }+ />+ </div>+ )}+ </div>+ );}diff --git a/freemocap-ui/src/components/pipeline-progress/PipelineProgressSnackbar.tsx b/freemocap-ui/src/components/pipeline-progress/PipelineProgressSnackbar.tsxindex a6cf73e8..8375ce8b 100644--- a/freemocap-ui/src/components/pipeline-progress/PipelineProgressSnackbar.tsx+++ b/freemocap-ui/src/components/pipeline-progress/PipelineProgressSnackbar.tsx@@ -20,30 +20,17 @@ const MIN_HEIGHT = 100;type ResizeHandle = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw';-const CURSOR: Record<ResizeHandle, string> = {- n: 'ns-resize', s: 'ns-resize',- e: 'ew-resize', w: 'ew-resize',- ne: 'nesw-resize', sw: 'nesw-resize',- nw: 'nwse-resize', se: 'nwse-resize',+const HANDLE_CLASS: Record<ResizeHandle, string> = {+ n: 'resize-handle resize-handle-n',+ s: 'resize-handle resize-handle-s',+ e: 'resize-handle resize-handle-e',+ w: 'resize-handle resize-handle-w',+ ne: 'resize-handle resize-handle-ne',+ nw: 'resize-handle resize-handle-nw',+ se: 'resize-handle resize-handle-se',+ sw: 'resize-handle resize-handle-sw',};-const EDGE = 6;-const CORN = 14;--function handleStyle(h: ResizeHandle): React.CSSProperties {- const base: React.CSSProperties = {position: 'absolute', zIndex: 10};- switch (h) {- case 'n': return {...base, top: -EDGE/2, left: CORN, right: CORN, height: EDGE, cursor: CURSOR.n};- case 's': return {...base, bottom: -EDGE/2, left: CORN, right: CORN, height: EDGE, cursor: CURSOR.s};- case 'e': return {...base, right: -EDGE/2, top: CORN, bottom: CORN, width: EDGE, cursor: CURSOR.e};- case 'w': return {...base, left: -EDGE/2, top: CORN, bottom: CORN, width: EDGE, cursor: CURSOR.w};- case 'nw': return {...base, top: -EDGE/2, left: -EDGE/2, width: CORN, height: CORN, cursor: CURSOR.nw};- case 'ne': return {...base, top: -EDGE/2, right: -EDGE/2, width: CORN, height: CORN, cursor: CURSOR.ne};- case 'sw': return {...base, bottom: -EDGE/2, left: -EDGE/2, width: CORN, height: CORN, cursor: CURSOR.sw};- case 'se': return {...base, bottom: -EDGE/2, right: -EDGE/2, width: CORN, height: CORN, cursor: CURSOR.se};- }-}-const HANDLES: ResizeHandle[] = ['n', 's', 'e', 'w', 'ne', 'nw', 'se', 'sw'];export default function PipelineProgressSnackbar() {@@ -54,25 +41,29 @@ export default function PipelineProgressSnackbar() {const dismissedIds = useAppSelector(selectDismissedBasePipelineIds);const [collapsed, setCollapsed] = React.useState(false);- const [dragPos, setDragPos] = React.useState<{left: number; top: number} | null>(null);+ const [dragPos, setDragPos] = React.useState<{left: number; bottom: number} | null>(null);const [size, setSize] = React.useState({width: DEFAULT_WIDTH, height: DEFAULT_HEIGHT});const containerRef = React.useRef<HTMLDivElement>(null);const dragRef = React.useRef<{- startMx: number; startMy: number; startLeft: number; startTop: number;+ startMx: number; startMy: number; startLeft: number; startBottom: number;} | null>(null);const resizeRef = React.useRef<{handle: ResizeHandle;startMx: number; startMy: number;startW: number; startH: number;- startLeft: number; startTop: number;+ startLeft: number; startBottom: number;} | null>(null);const handleHeaderMouseDown = React.useCallback((e: React.MouseEvent) => {if (e.button !== 0) return;const rect = containerRef.current?.getBoundingClientRect();if (!rect) return;- dragRef.current = {startMx: e.clientX, startMy: e.clientY, startLeft: rect.left, startTop: rect.top};+ dragRef.current = {+ startMx: e.clientX, startMy: e.clientY,+ startLeft: rect.left,+ startBottom: window.innerHeight - rect.top - rect.height,+ };e.preventDefault();}, []);@@ -86,7 +77,8 @@ export default function PipelineProgressSnackbar() {handle,startMx: e.clientX, startMy: e.clientY,startW: rect.width, startH: rect.height,- startLeft: rect.left, startTop: rect.top,+ startLeft: rect.left,+ startBottom: window.innerHeight - rect.top - rect.height,};}, []);@@ -97,16 +89,16 @@ export default function PipelineProgressSnackbar() {const dy = e.clientY - dragRef.current.startMy;setDragPos({left: Math.max(0, dragRef.current.startLeft + dx),- top: Math.max(0, dragRef.current.startTop + dy),+ bottom: Math.max(0, dragRef.current.startBottom - dy),});}if (resizeRef.current) {- const {handle, startMx, startMy, startW, startH, startLeft, startTop} = resizeRef.current;+ const {handle, startMx, startMy, startW, startH, startLeft, startBottom} = resizeRef.current;const dx = e.clientX - startMx;const dy = e.clientY - startMy;let newW = startW, newH = startH;- let newLeft = startLeft, newTop = startTop;+ let newLeft = startLeft, newBottom = startBottom;let posChanged = false;if (handle.includes('e')) newW = Math.max(MIN_WIDTH, startW + dx);@@ -118,12 +110,12 @@ export default function PipelineProgressSnackbar() {}if (handle.includes('n')) {newH = Math.max(MIN_HEIGHT, startH - dy);- newTop = startTop + startH - newH;+ newBottom = startBottom + startH - newH;posChanged = true;}setSize({width: newW, height: newH});- if (posChanged) setDragPos({left: newLeft, top: newTop});+ if (posChanged) setDragPos({left: newLeft, bottom: newBottom});}};const onUp = () => { dragRef.current = null; resizeRef.current = null; };@@ -152,99 +144,108 @@ export default function PipelineProgressSnackbar() {if (!open) return null;const containerStyle: React.CSSProperties = dragPos- ? {position: 'fixed', left: dragPos.left, top: dragPos.top, zIndex: 1400, width: size.width, ...(collapsed ? {} : {height: size.height})}- : {position: 'fixed', bottom: 8, right: 8, zIndex: 1400, width: size.width, ...(collapsed ? {} : {height: size.height})};+ ? {left: dragPos.left, bottom: dragPos.bottom, width: size.width}+ : {width: size.width};return (- <div ref={containerRef} style={containerStyle}>+ <div+ ref={containerRef}+ className={`snackbar-main-container-modal border-1 bg-dark br-3 p-1 ${dragPos ? 'snackbar-container-dragged' : 'snackbar-container'}`}+ style={containerStyle}+ >{HANDLES.filter(h => !collapsed || h === 'e' || h === 'w').map(h => (- <div key={h} style={handleStyle(h)} onMouseDown={(e) => startResize(h, e)}/>+ <div key={h} className={HANDLE_CLASS[h]} onMouseDown={(e) => startResize(h, e)}/>))}- <div className="bg-middark flex flex-col w-full overflow-hidden" style={{+ <div className={+ `pipeline-progress-toast-flyout bg-middark flex flex-col w-full overflow-hidden` ++ ` pipeline-toast-flyout shadow-lg` ++ (hasRunningVisible ? ' pipeline-toast-flyout--running' : '')+ } style={{height: collapsed ? 'auto' : '100%',- borderRadius: 8,- border: `1px solid ${hasRunningVisible ? '#FF00FF' : 'transparent'}`,- boxShadow: '0 4px 20px rgba(0,0,0,0.4)',}}><divonMouseDown={handleHeaderMouseDown}- className="flex flex-row items-center flex-shrink-0"+ className="flex flex-row items-center flex-shrink-0 px-2 pt-1 pb-1 gap-2 cursor-grab select-none"style={{- padding: '6px 8px',borderBottom: collapsed ? 'none' : '1px solid var(--color-border-secondary)',- cursor: 'grab',- userSelect: 'none',}}>{collapsed ? (<div className="flex-1 min-w-0 mr-1"><div className="flex flex-row items-center justify-content-space-between" style={{marginBottom: 2}}>- <p className="text sm flex-1 mr-1 m-0" style={{overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', fontSize: '0.72rem'}}>+ <p className="text flex-1 mr-1 m-0 truncate">{summaryLabel}</p>- <p className="text sm text-gray flex-shrink-0 m-0" style={{fontSize: '0.68rem'}}>+ <p className="text text-gray flex-shrink-0 m-0">{summaryProgress}%</p></div>{summaryGroup?.isActive && (- <div className="update-progress-track" style={{height: 3, borderRadius: 2}}>- <div className="update-progress-fill h-full" style={{width: `${summaryProgress}%`, borderRadius: 2}}/>+ <div className="update-progress-track progress-track-sm">+ <div className="update-progress-fill h-full progress-fill-sm" style={{width: `${summaryProgress}%`}}/></div>)}</div>) : (- <p className="text md text-white flex-1 m-0" style={{fontWeight: 600}}>Pipeline Progress</p>+ <p className="text md text-white flex-1 m-0 ">Pipeline Progress</p>)}{hasRunningVisible && (- <div className="flex-shrink-0 mr-1" style={{- width: 7, height: 7, borderRadius: '50%', backgroundColor: 'var(--color-info)',+ <div className="flex-shrink-0 mr-1 w-7 h-7 rounded-full bg-info" style={{animation: 'fmcPulse 1.4s ease-in-out infinite',}}/>)}<IconButton- icon={collapsed ? 'expand-icon' : 'collapse-icon'}+ icon="clear-icon"+ className="icon-size-25 p-01 mr-2"+ onMouseDown={e => e.stopPropagation()}+ onClick={() => dispatch(allPipelinesCleared())}+ disabled={visibleGroups.length === 0}+ tooltip={true}+ tooltipText="Clear all pipelines"+ tooltipPosition="pos-bottom"+ />+ <IconButton+ icon={collapsed ? 'arrowup-icon' : 'arrowdown-icon'}className="icon-size-25 p-01"onMouseDown={e => e.stopPropagation()}onClick={() => setCollapsed(c => !c)}+ tooltip={true}+ tooltipText={collapsed ? "Expand" : "Collapse"}+ tooltipPosition="pos-bottom"/>{hasRunningVisible && (<IconButtonicon="close-icon"- className="icon-size-25 p-01"+ className="icon-size-25 p-01 text-error"onMouseDown={e => e.stopPropagation()}onClick={() => dispatch(stopAllPipelines())}- title="Stop all pipelines"- style={{color: 'var(--color-error)'}}+ tooltip={true}+ tooltipText="Stop all pipelines"+ tooltipPosition="pos-bottom"/>)}- <IconButton- icon="clear-icon"- className="icon-size-25 p-01"- onMouseDown={e => e.stopPropagation()}- onClick={() => dispatch(allPipelinesCleared())}- disabled={visibleGroups.length === 0}- title="Clear all pipelines"- /><IconButtonicon="close-icon"className="icon-size-25 p-01"onMouseDown={e => e.stopPropagation()}onClick={() => dispatch(pipelineSnackbarHidden())}+ tooltip={true}+ tooltipText="Close"+ tooltipPosition="pos-bottom"/>- <span className="icon settings-icon icon-size-20 flex-shrink-0" style={{color: 'var(--color-text-disabled)', marginLeft: 2, cursor: 'grab'}}/></div>{!collapsed && (- <div className="overflow-y flex-1 min-h-0">+ <div className="overflow-y flex-1 min-h-0 inner-content">{visibleGroups.length === 0 ? (- <div className="flex justify-center" style={{paddingTop: 16, paddingBottom: 16}}>+ <div className="flex justify-center py-4"><p className="text sm text-gray">No active pipelines</p></div>) : (@@ -261,4 +262,4 @@ export default function PipelineProgressSnackbar() {</div></div>);-}+}\ No newline at end of filediff --git a/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-module.tsx b/freemocap-ui/src/components/pipeline-progress/calibration-progress/calibration-module.tsxindex d3329c0a..bcd4b0bf 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@@ -18,6 +18,7 @@ import {loadCalibrationToml,selectLoadedCalibration,} from "@/store/slices/calibration";+import { selectIsLoading } from "@/store/slices/cameras/cameras-selectors";type CalibrationSource = "record" | "import-videos" | "import-toml";type AppMode = "streaming" | "playback";@@ -43,8 +44,9 @@ const CalibrationModule = ({}: CalibrationModuleProps) => {const dispatch = useAppDispatch();const { api, isElectron } = useElectronIPC();- const { connectedCameraIds } = useServer();+ const { connectedCameraIds, isConnected, isFailed } = useServer();const loadedCalibration = useAppSelector(selectLoadedCalibration);+ const isCamerasLoading = useAppSelector(selectIsLoading);const noCamerasConnected = connectedCameraIds.length === 0;@@ -70,23 +72,32 @@ const CalibrationModule = ({const hasAutoOpened = useRef(false);+ // Derive app mode from the current route, unless overridden by props+ const location = useLocation();+useEffect(() => {+ // Only auto-show the calibration tooltip when:+ // - WebSocket is connected and not failed+ // - On /streaming page+ // - Cameras are connected (at least one)+ // - Cameras are not still loading+ if (!isConnected || isFailed) return;+ if (location.pathname !== "/streaming") return;+ if (connectedCameraIds.length === 0) return;+ if (isCamerasLoading) return;if (hasAutoOpened.current) return;- if (connectedCameraIds.length < 2) return;const dismissed = loadFromStorage<boolean>("calibration-tooltip-dismissed", false);if (!dismissed) {setShowCharucoInfo(true);}hasAutoOpened.current = true;- }, [connectedCameraIds.length]);+ }, [connectedCameraIds.length, isConnected, isFailed, isCamerasLoading, location.pathname]);const handleCloseCharucoInfo = useCallback(() => {setShowCharucoInfo(false);saveToStorage("calibration-tooltip-dismissed", true);}, []);- // Derive app mode from the current route, unless overridden by props- const location = useLocation();const appMode: AppMode = appModeOverride ?? (location.pathname === "/playback" ? "playback" : "streaming");// Cycling calibration messages during recording@@ -421,7 +432,6 @@ const CalibrationModule = ({/><FloatingOnboardingtarget='[data-onboarding="calibration:what-is-calibration"]'- className=""><PromptTooltipshow={showCharucoInfo}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.tsxindex 20f77c66..f2ce6286 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@@ -89,7 +89,25 @@ const CalibrationSettings = ({ onClose }: CalibrationSettingsProps) => {}, [board.squares_x, board.squares_y]);const [forcedCustom, setForcedCustom] = useState(false);- const [showTooltip, setShowTooltip] = useState(true);+ const [showTooltip, setShowTooltip] = useState(() => {+ return !localStorage.getItem("calibration:onboarding:dismissed");+ });++ const closeTooltip = useCallback(() => {+ setShowTooltip(false);+ localStorage.setItem("calibration:onboarding:dismissed", "true");+ }, []);++ const toggleTooltip = useCallback(() => {+ setShowTooltip((prev) => {+ const next = !prev;+ if (next) {+ // User is opening it manually β remove dismissed flag so closing will re-dismiss+ localStorage.removeItem("calibration:onboarding:dismissed");+ }+ return next;+ });+ }, []);const displayedPreset: BoardPreset = forcedCustom ? "Custom" : currentPreset;@@ -135,7 +153,7 @@ const CalibrationSettings = ({ onClose }: CalibrationSettingsProps) => {<IconButtonicon="explainer-icon"className="button sm"- onClick={() => setShowTooltip(prev => !prev)}+ onClick={toggleTooltip}tooltiptooltipText="Learn about ChArUco"tooltipPosition="pos-left"@@ -152,7 +170,7 @@ const CalibrationSettings = ({ onClose }: CalibrationSettingsProps) => {imageSrc="/images/charuco_settings.webp"position="pos-right"variant="default"- onClose={() => setShowTooltip(false)}+ onClose={closeTooltip}/></div></div>diff --git a/freemocap-ui/src/components/playback/RecordingBrowser.tsx b/freemocap-ui/src/components/playback/RecordingBrowser.tsxindex ef75e3b4..b703ea4f 100644--- a/freemocap-ui/src/components/playback/RecordingBrowser.tsx+++ b/freemocap-ui/src/components/playback/RecordingBrowser.tsx@@ -2,584 +2,718 @@* RecordingBrowser β lists available recording sessions from the server,* with search filtering, multi-field sorting, and rich per-recording metadata.*/-import React, {useCallback, useEffect, useMemo, useState} from 'react';-import clsx from 'clsx';-import {useTranslation} from 'react-i18next';-import {useElectronIPC} from '@/services';-import {RecordingStatusPanel} from '@/components/common/RecordingStatusPanel';-import {useRecordingStatus} from '@/hooks/useRecordingStatus';-import {useAppDispatch, useAppSelector} from '@/store';+import React, { useCallback, useEffect, useMemo, useState } from "react";+import clsx from "clsx";+import { useTranslation } from "react-i18next";+import { useElectronIPC } from "@/services";+import { RecordingStatusPanel } from "@/components/common/RecordingStatusPanel";+import { useRecordingStatus } from "@/hooks/useRecordingStatus";+import { useAppDispatch, useAppSelector } from "@/store";import {- activeRecordingSet,- splitParentAndName,-} from '@/store/slices/active-recording/active-recording-slice';+ activeRecordingSet,+ selectActiveRecordingBaseDirectory,+ splitParentAndName,+} from "@/store/slices/active-recording/active-recording-slice";import {- detectLayoutPreset,- listDetectedLegacyMarkers,-} from '@/store/slices/active-recording/recording-structure';+ detectLayoutPreset,+ listDetectedLegacyMarkers,+} from "@/store/slices/active-recording/recording-structure";import {- fetchAllRecordings,- type RecordingListEntry,-} from '@/store/slices/recording-status/recording-status-thunks';+ fetchAllRecordings,+ type RecordingListEntry,+} from "@/store/slices/recording-status/recording-status-thunks";import {- selectRecordingsList,- selectRecordingsFetchedAt,- selectRecordingsIsLoading,-} from '@/store/slices/recording-status/recording-status-slice';-import {serverUrls} from '@/constants/server-urls';-import ButtonSm from '@/components/ui-components/ButtonSm';-import SubactionHeader from '@/components/ui-components/SubactionHeader';-import IconButton from '@/components/ui-components/IconButton';+ selectRecordingsList,+ selectRecordingsFetchedAt,+ selectRecordingsIsLoading,+} from "@/store/slices/recording-status/recording-status-slice";+import { serverUrls } from "@/constants/server-urls";+import ButtonSm from "@/components/ui-components/ButtonSm";+import SubactionHeader from "@/components/ui-components/SubactionHeader";+import IconButton from "@/components/ui-components/IconButton";export type RecordingEntry = RecordingListEntry;export interface LoadedVideo {- videoId: string;- filename: string;- streamUrl: string;- sizeBytes: number;+ videoId: string;+ filename: string;+ streamUrl: string;+ sizeBytes: number;}interface RecordingBrowserProps {- onRecordingLoaded: (- videos: LoadedVideo[],- recordingPath: string,- recordingFps?: number,- sources?: Record<string, { available: boolean; valid: boolean; video_count: number; videos: LoadedVideo[] }>,- preferred?: string,- ) => void;- activeRecordingPath?: string | null;+ onRecordingLoaded: (+ videos: LoadedVideo[],+ recordingPath: string,+ recordingFps?: number,+ sources?: Record<+ string,+ {+ available: boolean;+ valid: boolean;+ video_count: number;+ videos: LoadedVideo[];+ }+ >,+ preferred?: string,+ ) => void;+ activeRecordingPath?: string | null;}-type SortField = 'date' | 'name' | 'size' | 'cameras' | 'frames' | 'duration';-type SortDirection = 'asc' | 'desc';+type SortField = "date" | "name" | "size" | "cameras" | "frames" | "duration";+type SortDirection = "asc" | "desc";function formatBytes(bytes: number): string {- if (bytes <= 0) return '0 B';- const k = 1024;- const units = ['B', 'KB', 'MB', 'GB', 'TB'];- const i = Math.floor(Math.log(bytes) / Math.log(k));- return `${(bytes / Math.pow(k, i)).toFixed(i > 1 ? 1 : 0)} ${units[i]}`;+ if (bytes <= 0) return "0 B";+ const k = 1024;+ const units = ["B", "KB", "MB", "GB", "TB"];+ const i = Math.floor(Math.log(bytes) / Math.log(k));+ return `${(bytes / Math.pow(k, i)).toFixed(i > 1 ? 1 : 0)} ${units[i]}`;}function formatDuration(seconds: number): string {- if (seconds < 60) return `${seconds.toFixed(1)}s`;- const m = Math.floor(seconds / 60);- const s = Math.floor(seconds % 60);- if (m >= 60) {- const h = Math.floor(m / 60);- const rm = m % 60;- return `${h}h ${rm}m ${s}s`;- }- return `${m}m ${s}s`;+ if (seconds < 60) return `${seconds.toFixed(1)}s`;+ const m = Math.floor(seconds / 60);+ const s = Math.floor(seconds % 60);+ if (m >= 60) {+ const h = Math.floor(m / 60);+ const rm = m % 60;+ return `${h}h ${rm}m ${s}s`;+ }+ return `${m}m ${s}s`;}function parseTimestampFromName(name: string): Date | null {- const fullMatch = name.match(- /(\d{4})-(\d{2})-(\d{2})[T_](\d{2})[_:\-](\d{2})[_:\-](\d{2})/- );- if (fullMatch) {- const [, y, mo, d, h, mi, s] = fullMatch;- return new Date(+y, +mo - 1, +d, +h, +mi, +s);- }- const dateMatch = name.match(/(\d{4})-(\d{2})-(\d{2})/);- if (dateMatch) {- const [, y, mo, d] = dateMatch;- return new Date(+y, +mo - 1, +d);- }- return null;+ const fullMatch = name.match(+ /(\d{4})-(\d{2})-(\d{2})[T_](\d{2})[_:\-](\d{2})[_:\-](\d{2})/,+ );+ if (fullMatch) {+ const [, y, mo, d, h, mi, s] = fullMatch;+ return new Date(+y, +mo - 1, +d, +h, +mi, +s);+ }+ const dateMatch = name.match(/(\d{4})-(\d{2})-(\d{2})/);+ if (dateMatch) {+ const [, y, mo, d] = dateMatch;+ return new Date(+y, +mo - 1, +d);+ }+ return null;}function formatRelativeTime(date: Date): string {- const now = new Date();- const diffMs = now.getTime() - date.getTime();- const diffMin = Math.floor(diffMs / 60000);- if (diffMin < 1) return 'just now';- if (diffMin < 60) return `${diffMin}m ago`;- const diffHr = Math.floor(diffMin / 60);- if (diffHr < 24) return `${diffHr}h ago`;- const diffDays = Math.floor(diffHr / 24);- if (diffDays < 7) return `${diffDays}d ago`;- if (diffDays < 30) return `${Math.floor(diffDays / 7)}w ago`;- return date.toLocaleDateString(undefined, {- month: 'short',- day: 'numeric',- year: date.getFullYear() !== now.getFullYear() ? 'numeric' : undefined,- });+ const now = new Date();+ const diffMs = now.getTime() - date.getTime();+ const diffMin = Math.floor(diffMs / 60000);+ if (diffMin < 1) return "just now";+ if (diffMin < 60) return `${diffMin}m ago`;+ const diffHr = Math.floor(diffMin / 60);+ if (diffHr < 24) return `${diffHr}h ago`;+ const diffDays = Math.floor(diffHr / 24);+ if (diffDays < 7) return `${diffDays}d ago`;+ if (diffDays < 30) return `${Math.floor(diffDays / 7)}w ago`;+ return date.toLocaleDateString(undefined, {+ month: "short",+ day: "numeric",+ year: date.getFullYear() !== now.getFullYear() ? "numeric" : undefined,+ });}function getSortValue(rec: RecordingEntry, field: SortField): number | string {- switch (field) {- case 'date': {- const d = parseTimestampFromName(rec.name);- return d ? d.getTime() : 0;- }- case 'name':- return rec.name.toLowerCase();- case 'size':- return rec.total_size_bytes ?? 0;- case 'cameras':- return rec.video_count;- case 'frames':- return rec.total_frames ?? 0;- case 'duration':- return rec.duration_seconds ?? 0;+ switch (field) {+ case "date": {+ const d = parseTimestampFromName(rec.name);+ return d ? d.getTime() : 0;}+ case "name":+ return rec.name.toLowerCase();+ case "size":+ return rec.total_size_bytes ?? 0;+ case "cameras":+ return rec.video_count;+ case "frames":+ return rec.total_frames ?? 0;+ case "duration":+ return rec.duration_seconds ?? 0;+ }}function compareRecordings(- a: RecordingEntry,- b: RecordingEntry,- field: SortField,- direction: SortDirection,+ a: RecordingEntry,+ b: RecordingEntry,+ field: SortField,+ direction: SortDirection,): number {- const va = getSortValue(a, field);- const vb = getSortValue(b, field);- let cmp: number;- if (typeof va === 'string' && typeof vb === 'string') {- cmp = va.localeCompare(vb);- } else {- cmp = (va as number) - (vb as number);- }- return direction === 'desc' ? -cmp : cmp;+ const va = getSortValue(a, field);+ const vb = getSortValue(b, field);+ let cmp: number;+ if (typeof va === "string" && typeof vb === "string") {+ cmp = va.localeCompare(vb);+ } else {+ cmp = (va as number) - (vb as number);+ }+ return direction === "desc" ? -cmp : cmp;}const SORT_OPTIONS: { value: SortField; labelKey: string }[] = [- { value: 'date', labelKey: 'date' },- { value: 'name', labelKey: 'name' },- { value: 'size', labelKey: 'size' },- { value: 'cameras', labelKey: 'cameras' },- { value: 'frames', labelKey: 'frames' },- { value: 'duration', labelKey: 'duration' },+ { value: "date", labelKey: "date" },+ { value: "name", labelKey: "name" },+ { value: "size", labelKey: "size" },+ { value: "cameras", labelKey: "cameras" },+ { value: "frames", labelKey: "frames" },+ { value: "duration", labelKey: "duration" },];-export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({ onRecordingLoaded, activeRecordingPath }) => {- const { t } = useTranslation();- const dispatch = useAppDispatch();- const { api, isElectron } = useElectronIPC();-- const recordings = useAppSelector(selectRecordingsList);- const recordingsFetchedAt = useAppSelector(selectRecordingsFetchedAt);- const isLoadingList = useAppSelector(selectRecordingsIsLoading);-- const [isLoadingRecording, setIsLoadingRecording] = useState(false);- const [error, setError] = useState<string | null>(null);- const [loadingPath, setLoadingPath] = useState<string | null>(null);-- const [manualPath, setManualPath] = useState('');- const [filterText, setFilterText] = useState('');- const [sortField, setSortField] = useState<SortField>('date');- const [sortDir, setSortDir] = useState<SortDirection>('desc');-- const fetchRecordings = useCallback(async (force = false) => {- const MAX_CACHE_AGE_MS = 30_000;- if (!force && recordingsFetchedAt && Date.now() - recordingsFetchedAt < MAX_CACHE_AGE_MS) {- return;- }- try {- await dispatch(fetchAllRecordings()).unwrap();- } catch (e) {- setError(e instanceof Error ? e.message : t('failedToFetch'));- }- }, [dispatch, recordingsFetchedAt]);-- useEffect(() => {- if (recordings.length === 0) {- fetchRecordings();- }- }, []); // eslint-disable-line react-hooks/exhaustive-deps-- const filteredSorted = useMemo(() => {- let result = recordings;- if (filterText.trim()) {- const q = filterText.trim().toLowerCase();- result = result.filter((r) => r.name.toLowerCase().includes(q));- }- return [...result].sort((a, b) => compareRecordings(a, b, sortField, sortDir));- }, [recordings, filterText, sortField, sortDir]);-- const loadRecording = useCallback(- async (recordingPath: string) => {- setIsLoadingRecording(true);- setLoadingPath(recordingPath);- setError(null);-- try {- const rec = recordings.find((r) => r.path === recordingPath);- const recName = rec ? rec.name : recordingPath.split(/[\\/]/).pop() || recordingPath;- const parsed = rec?.path ? splitParentAndName(rec.path) : null;- const parentDir = parsed?.baseDirectory;-- const videosUrl = serverUrls.endpoints.playbackVideos(recName);- const url = parentDir- ? `${videosUrl}?recording_parent_directory=${encodeURIComponent(parentDir)}`- : videosUrl;-- const response = await fetch(url);-- if (!response.ok) {- const detail = await response- .json()- .catch(() => ({ detail: response.statusText }));- throw new Error(detail.detail || response.statusText);- }+export const RecordingBrowser: React.FC<RecordingBrowserProps> = ({+ onRecordingLoaded,+ activeRecordingPath,+}) => {+ const { t } = useTranslation();+ const dispatch = useAppDispatch();+ const { api, isElectron } = useElectronIPC();++ const recordings = useAppSelector(selectRecordingsList);+ const recordingsFetchedAt = useAppSelector(selectRecordingsFetchedAt);+ const isLoadingList = useAppSelector(selectRecordingsIsLoading);+ const baseDirectory = useAppSelector(selectActiveRecordingBaseDirectory);++ const [isLoadingRecording, setIsLoadingRecording] = useState(false);+ const [error, setError] = useState<string | null>(null);+ const [loadingPath, setLoadingPath] = useState<string | null>(null);++ const [manualPath, setManualPath] = useState(baseDirectory);+ const [filterText, setFilterText] = useState("");+ const [showFilter, setShowFilter] = useState(false);+ const [sortField, setSortField] = useState<SortField>("date");+ const [sortDir, setSortDir] = useState<SortDirection>("desc");+ const [selectedPath, setSelectedPath] = useState<string | null>(null);++ const fetchRecordings = useCallback(+ async (force = false) => {+ const MAX_CACHE_AGE_MS = 30_000;+ if (+ !force &&+ recordingsFetchedAt &&+ Date.now() - recordingsFetchedAt < MAX_CACHE_AGE_MS+ ) {+ return;+ }+ try {+ await dispatch(fetchAllRecordings()).unwrap();+ } catch (e) {+ setError(e instanceof Error ? e.message : t("failedToFetch"));+ }+ },+ [dispatch, recordingsFetchedAt],+ );- const data = await response.json();- const baseUrl = serverUrls.getHttpUrl();-- let videos: LoadedVideo[];- let sources: Record<string, {available: boolean; valid: boolean; video_count: number; videos: LoadedVideo[]}> | undefined;- let preferred: string | undefined;-- if (data.sources) {- sources = {};- for (const [key, src] of Object.entries(data.sources) as [string, any][]) {- sources[key] = {- available: src.available,- valid: src.valid,- video_count: src.video_count,- videos: (src.videos || []).map((v: any) => ({- videoId: v.video_id,- filename: v.filename,- streamUrl: `${baseUrl}${v.stream_url}`,- sizeBytes: v.size_bytes,- })),- };- }- const resolvedPreferred: string = data.preferred_source || 'synchronized';- preferred = resolvedPreferred;- videos = sources[resolvedPreferred]?.videos ?? [];- } else {- videos = data.map(- (v: {- video_id: string;- filename: string;- stream_url: string;- size_bytes: number;- }) => ({- videoId: v.video_id,- filename: v.filename,- streamUrl: `${baseUrl}${v.stream_url}`,- sizeBytes: v.size_bytes,- }),- );- }+ useEffect(() => {+ if (recordings.length === 0) {+ fetchRecordings();+ }+ }, []); // eslint-disable-line react-hooks/exhaustive-deps- const recFps = rec?.fps ?? undefined;-- const layoutPreset = rec?.layout_validation- ? detectLayoutPreset(rec.layout_validation)- : undefined;- dispatch(activeRecordingSet({- recordingName: parsed?.recordingName ?? recName,- baseDirectory: parsed?.baseDirectory,- origin: 'browsed',- layoutPreset,- }));-- onRecordingLoaded(videos, recName, recFps, sources, preferred);- } catch (e) {- setError(e instanceof Error ? e.message : 'Failed to load recording');- } finally {- setIsLoadingRecording(false);- setLoadingPath(null);- }- },- [onRecordingLoaded, recordings, dispatch],+ const filteredSorted = useMemo(() => {+ let result = recordings;+ if (filterText.trim()) {+ const q = filterText.trim().toLowerCase();+ result = result.filter((r) => r.name.toLowerCase().includes(q));+ }+ return [...result].sort((a, b) =>+ compareRecordings(a, b, sortField, sortDir),);+ }, [recordings, filterText, sortField, sortDir]);++ const loadRecording = useCallback(+ async (recordingPath: string) => {+ setSelectedPath(recordingPath);+ setIsLoadingRecording(true);+ setLoadingPath(recordingPath);+ setError(null);++ try {+ const rec = recordings.find((r) => r.path === recordingPath);+ const recName = rec+ ? rec.name+ : recordingPath.split(/[\\/]/).pop() || recordingPath;+ const parsed = rec?.path ? splitParentAndName(rec.path) : null;+ const parentDir = parsed?.baseDirectory;++ const videosUrl = serverUrls.endpoints.playbackVideos(recName);+ const url = parentDir+ ? `${videosUrl}?recording_parent_directory=${encodeURIComponent(parentDir)}`+ : videosUrl;++ const response = await fetch(url);++ if (!response.ok) {+ const detail = await response+ .json()+ .catch(() => ({ detail: response.statusText }));+ throw new Error(detail.detail || response.statusText);+ }- const handleBrowseDirectory = useCallback(async () => {- if (!isElectron || !api) return;- const result: string | null = await api.fileSystem.selectDirectory.mutate();- if (!result) return;- const trimmed = result.trim().replace(/[\\/]+$/, '');- setManualPath(trimmed);- loadRecording(trimmed);- }, [api, isElectron, loadRecording]);-- const toggleSortDir = () => {- setSortDir((d) => (d === 'desc' ? 'asc' : 'desc'));- };-- return (- <div className="playback-file-directory-inner-content flex playback-page-content pos-rel flex flex-col gap-1 h-full overflow-hidden">- {/* Folder selector */}- <div className="load-group bg-middark br-1 p-1 flex flex-start flex-wrap gap-1 items-center">- <div className="flex flex-col flex-start gap-1 items-center w-full">- <SubactionHeader text="Folder Directory" />- <ButtonSm- iconClass="subfolder-icon"- text={manualPath || "Select recording folder"}- onClick={handleBrowseDirectory}- title="Click to select recording folder"- disabled={!isElectron}- className="select-path bg-middark flex-1 w-full min-w-full"- textClass="text-wrap flex-1"- />- </div>- </div>+ const data = await response.json();+ const baseUrl = serverUrls.getHttpUrl();++ let videos: LoadedVideo[];+ let sources:+ | Record<+ string,+ {+ available: boolean;+ valid: boolean;+ video_count: number;+ videos: LoadedVideo[];+ }+ >+ | undefined;+ let preferred: string | undefined;++ if (data.sources) {+ sources = {};+ for (const [key, src] of Object.entries(data.sources) as [+ string,+ any,+ ][]) {+ sources[key] = {+ available: src.available,+ valid: src.valid,+ video_count: src.video_count,+ videos: (src.videos || []).map((v: any) => ({+ videoId: v.video_id,+ filename: v.filename,+ streamUrl: `${baseUrl}${v.stream_url}`,+ sizeBytes: v.size_bytes,+ })),+ };+ }+ const resolvedPreferred: string =+ data.preferred_source || "synchronized";+ preferred = resolvedPreferred;+ videos = sources[resolvedPreferred]?.videos ?? [];+ } else {+ videos = data.map(+ (v: {+ video_id: string;+ filename: string;+ stream_url: string;+ size_bytes: number;+ }) => ({+ videoId: v.video_id,+ filename: v.filename,+ streamUrl: `${baseUrl}${v.stream_url}`,+ sizeBytes: v.size_bytes,+ }),+ );+ }- {error && <p className="pl-2 flex flex-row text sm text-error">{error}</p>}-- {/* Header + list wrapper */}- <div className="flex flex-col flex-1 overflow-hidden bg-middark br-1 p-1 gap-2">- {/* Header bar */}- <div className="recording-group flex flex-row flex-wrap flex-start items-center gap-1 justify-content-space-between">- <div className="flex header-holder-for-recording items-center gap-1">- {recordings.length > 0 && (- <p className="tag camera-status-badge">- {filterText- ? `${filteredSorted.length} / ${recordings.length}`- : recordings.length}- </p>- )}- <SubactionHeader text={t("recordings")} />- </div>-- <div className="flex flex-wrap flex-row items-center gap-1 justify-content-space-between min-w-full">- <div className="input-with-string flex flex-1">- <input- className="input-field"- placeholder={t("filter")}- value={filterText}- onChange={(e) => setFilterText(e.target.value)}- />- </div>- <select- className="sort-select input-field"- value={sortField}- onChange={(e) => setSortField(e.target.value as SortField)}- >- {SORT_OPTIONS.map((opt) => (- <option key={opt.value} value={opt.value}>- {t(opt.labelKey)}- </option>- ))}- </select>- <ButtonSm- text={sortDir === 'desc' ? 'β' : 'β'}- onClick={toggleSortDir}- tooltip={true}- tooltipText={sortDir === 'desc' ? t('sortDescending') : t('sortAscending')}- tooltipPosition="pos-bottom"- />- <ButtonSm- text={t("refresh")}- onClick={() => fetchRecordings(true)}- disabled={isLoadingList}- iconClass="rotate-icon"- tooltip={true}- tooltipText={t("refresh")}- tooltipPosition="pos-bottom"- />- </div>- </div>+ const recFps = rec?.fps ?? undefined;++ const layoutPreset = rec?.layout_validation+ ? detectLayoutPreset(rec.layout_validation)+ : undefined;+ dispatch(+ activeRecordingSet({+ recordingName: parsed?.recordingName ?? recName,+ baseDirectory: parsed?.baseDirectory,+ origin: "browsed",+ layoutPreset,+ }),+ );- {/* List */}- {isLoadingList ? (- <div className="flex items-center justify-center py-4">- <span className="icon loader-icon icon-size-20" />- </div>- ) : filteredSorted.length === 0 ? (- <div className="recording-warning-container flex flex-col flex-wrap p-6 m-4 text-center gap-1 items-center justify-center br-2">- <span className="icon warning-icon icon-size-32" />- <p className="text md text-white text-center">- {recordings.length === 0 ? t('noRecordingsFound') : 'No recordings match your filter.'}- </p>- </div>- ) : (- <div className="recording-list flex-1 overflow-y br-2 p-1">- {filteredSorted.map((rec) => (- <RecordingRow- key={rec.path}- rec={rec}- isLoading={loadingPath === rec.path}- isAnyLoading={isLoadingRecording}- isActive={!!activeRecordingPath && (activeRecordingPath === rec.name || activeRecordingPath === rec.path)}- onClick={() => loadRecording(rec.path)}- recordingsRootPath={rec.path.slice(0, Math.max(rec.path.lastIndexOf('/'), rec.path.lastIndexOf('\\'))) || null}- />- ))}- </div>+ onRecordingLoaded(videos, recName, recFps, sources, preferred);+ } catch (e) {+ setError(e instanceof Error ? e.message : "Failed to load recording");+ } finally {+ setIsLoadingRecording(false);+ setLoadingPath(null);+ }+ },+ [onRecordingLoaded, recordings, dispatch],+ );++ const handleBrowseDirectory = useCallback(async () => {+ if (!isElectron || !api) return;+ const result: string | null = await api.fileSystem.selectDirectory.mutate();+ if (!result) return;+ const trimmed = result.trim().replace(/[\\/]+$/, "");+ setManualPath(trimmed);+ loadRecording(trimmed);+ }, [api, isElectron, loadRecording]);++ const toggleSortDir = () => {+ setSortDir((d) => (d === "desc" ? "asc" : "desc"));+ };++ return (+ <div className="playback-file-directory-inner-content flex playback-page-content pos-rel flex flex-col h-full overflow-hidden">+ {/* Folder selector */}+ <div className="load-group bg-middark br-1 p-1 flex flex-start flex-wrap gap-1 items-center">+ <div className="flex flex-col flex-start items-center w-full gap-2">+ <div className="recording-list-header flex gap-1 flex-row flex-wrap justify-content-space-between w-full">+ <div className="flex flex-row gap-1">++ <SubactionHeader text="Folder Directory" />+ <div className="n-list-counter flex items-center flex-row">+ {recordings.length > 0 && (+ <p className="tag camera-status-badge">+ {filterText+ ? `${filteredSorted.length} / ${recordings.length}`+ : recordings.length}+ </p>)}+ <SubactionHeader text={t("recordings")} />+ </div>+ </div>+ <div className="folder-directory-tool-bar flex flex-row gap-1 items-center">+ <IconButton+ title={showFilter ? t("hideFilter") : t("filter")}+ icon={showFilter ? "filter-active-icon" : "filter-icon"}+ className="icon-size-25"+ tooltip={true}+ tooltipText={showFilter ? t("hideFilter") : t("filter")}+ tooltipPosition="pos-bottom"+ onClick={() => {+ if (showFilter) {+ setFilterText("");+ setShowFilter(false);+ } else {+ setShowFilter(true);+ }+ }}+ style={{+ backgroundColor: showFilter+ ? "var(--color-info)"+ : "transparent",+ }}+ />++ <IconButton+ title={t("sortBy", { direction: t(sortDir === "desc" ? "descending" : "ascending") })}+ icon={sortDir === "desc" ? "sort-icon" : "sortup-icon"}+ className="icon-size-25"+ tooltip={true}+ tooltipText={t("sortBy", { direction: t(sortDir === "desc" ? "descending" : "ascending") })}+ tooltipPosition="pos-bottom"+ onClick={toggleSortDir}+ />++ <select+ className="sort-select input-field"+ value={sortField}+ onChange={(e) => setSortField(e.target.value as SortField)}+ style={{ width: "63px", minWidth: "63px", maxWidth: "63px" }}+ >+ {SORT_OPTIONS.map((opt) => (+ <option key={opt.value} value={opt.value}>+ {t(opt.labelKey)}+ </option>+ ))}+ </select>+ <IconButton+ title={t("refresh")}+ icon="rotate-icon"+ className="icon-size-25"+ tooltip={true}+ tooltipText={t("refresh")}+ tooltipPosition="pos-bottom-right"+ onClick={() => fetchRecordings(true)}+ disabled={isLoadingList}+ /></div>+ </div>+ <ButtonSm+ iconClass="subfolder-icon"+ text={manualPath || "Select recording folder"}+ onClick={handleBrowseDirectory}+ title="Click to select recording folder"+ disabled={!isElectron}+ className="select-path bg-middark flex-1 w-full min-w-full border-1 border-mid-black min-w-0"+ textClass="recording-path-preview text-wrap flex-1 min-w-0 text md"+ /></div>- );+ </div>++ {error && (+ <p className="pl-2 flex flex-row text md tagtext-error">{error}</p>+ )}++ {/* Header + list wrapper */}+ <div className="flex flex-col flex-1 overflow-hidden bg-middark br-1 p-1 gap-1">+ {/* Header bar */}+ <div className="pb-1 recording-group flex flex-row flex-wrap flex-start items-center gap-1 justify-content-space-between">+ {showFilter && (+ <div className="flex flex-row input-with-string flex-1">+ <input+ className="input-field"+ placeholder={t("filter")}+ value={filterText}+ onChange={(e) => setFilterText(e.target.value)}+ autoFocus+ />+ </div>+ )}+ </div>++ {/* List */}+ {isLoadingList ? (+ <div className="flex items-center justify-center py-4">+ <span className="icon loader-icon icon-size-20" />+ </div>+ ) : filteredSorted.length === 0 ? (+ <div className="recording-warning-container flex flex-col flex-wrap p-6 m-4 text-center gap-1 items-center justify-center br-2">+ <span className="icon warning-icon icon-size-32" />+ <p className="text md text-white text-center">+ {recordings.length === 0+ ? t("noRecordingsFound")+ : "No recordings match your filter."}+ </p>+ </div>+ ) : (+ <div className="recording-list flex flex-col flex-1 overflow-y">+ {filteredSorted.map((rec) => (+ <RecordingRow+ key={rec.path}+ rec={rec}+ isLoading={loadingPath === rec.path}+ isAnyLoading={isLoadingRecording}+ isActive={selectedPath === rec.path}+ onClick={() => loadRecording(rec.path)}+ recordingsRootPath={+ rec.path.slice(+ 0,+ Math.max(+ rec.path.lastIndexOf("/"),+ rec.path.lastIndexOf("\\"),+ ),+ ) || null+ }+ />+ ))}+ </div>+ )}+ </div>+ </div>+ );};interface RecordingRowProps {- rec: RecordingEntry;- isLoading: boolean;- isAnyLoading: boolean;- isActive: boolean;- onClick: () => void;- recordingsRootPath: string | null;+ rec: RecordingEntry;+ isLoading: boolean;+ isAnyLoading: boolean;+ isActive: boolean;+ onClick: () => void;+ recordingsRootPath: string | null;}const RecordingRow: React.FC<RecordingRowProps> = React.memo(- ({ rec, isLoading, isAnyLoading, isActive, onClick, recordingsRootPath }) => {- const parsedDate = parseTimestampFromName(rec.name);- const { t } = useTranslation();- const [expanded, setExpanded] = useState(false);-- const {- status: detailedStatus,- isLoading: statusLoading,- error: statusError,- refresh: refreshStatus,- } = useRecordingStatus(expanded ? rec.name : null, {- autoFetch: expanded,- recordingParentDirectory: recordingsRootPath,- });-- const summary = rec.status_summary;- const ready = summary?.blender_export_ready ?? false;- const stagesComplete = summary?.stages_complete ?? 0;- const stagesTotal = summary?.stages_total ?? 0;-- const layoutPreset = rec.layout_validation- ? detectLayoutPreset(rec.layout_validation)- : 'canonical';- const isLegacyLayout = layoutPreset === 'legacy_v1';- const legacyMarkers = rec.layout_validation- ? listDetectedLegacyMarkers(rec.layout_validation)- : [];-- const toggleExpand = (e: React.MouseEvent): void => {- e.stopPropagation();- setExpanded((v) => !v);- };-- return (- <div- className={clsx(- "br-1 recording-row flex text-white flex-col flex-start",- isAnyLoading && !isLoading && "recording-row-disabled",+ ({ rec, isLoading, isAnyLoading, isActive, onClick, recordingsRootPath }) => {+ const parsedDate = parseTimestampFromName(rec.name);+ const { t } = useTranslation();+ const [expanded, setExpanded] = useState(false);++ const {+ status: detailedStatus,+ isLoading: statusLoading,+ error: statusError,+ refresh: refreshStatus,+ } = useRecordingStatus(expanded ? rec.name : null, {+ autoFetch: expanded,+ recordingParentDirectory: recordingsRootPath,+ });++ const summary = rec.status_summary;+ const ready = summary?.blender_export_ready ?? false;+ const stagesComplete = summary?.stages_complete ?? 0;+ const stagesTotal = summary?.stages_total ?? 0;++ const layoutPreset = rec.layout_validation+ ? detectLayoutPreset(rec.layout_validation)+ : "canonical";+ const isLegacyLayout = layoutPreset === "legacy_v1";+ const legacyMarkers = rec.layout_validation+ ? listDetectedLegacyMarkers(rec.layout_validation)+ : [];++ const toggleExpand = (e: React.MouseEvent): void => {+ e.stopPropagation();+ setExpanded((v) => !v);+ };++ return (+ <div+ className={clsx(+ "br-1 button quaternary flex text-white flex-col flex-start",+ isAnyLoading && !isLoading && "recording-row-disabled",+ )}+ style={+ isActive+ ? {+ backgroundColor: "var(--color-bg-primary)",+ }+ : undefined+ }+ >+ <div className="flex flex-row items-center w-full justify-content-space-between pos-rel">+ <button+ className={clsx(+ "flex flex-row br-1 flex-1 gap-1 p-2 items-center gap-1 text-left",+ )}+ onClick={onClick}+ disabled={isAnyLoading}+ style={{+ opacity: isAnyLoading && !isLoading ? 0.8 : 1,+ }}+ >+ <div className="flex flex-col flex-1">+ <div className="title-group flex flex-row mr-18 items-center gap-1 mb-1 justify-content-space-between flex-wrap">+ <div className="title flex flex-row items-center">++ <p+ className="text md text-white recording-name m-0 text-nowrap flex flex-row"+ style={{+ fontWeight: 600,+ color: isActive ? "var(--color-info)" : undefined,+ }}+ >+ {rec.name}+ </p>+ </div>+ <div className="title-info-group flex flex-row items-center gap-1">+ {summary && (+ <span+ title={+ ready+ ? "All pipeline stages complete β ready for Blender"+ : `${stagesComplete}/${stagesTotal} pipeline stages complete`+ }+ className="stage-group text-nowrap text md mr-2 text-gray"+ style={{+ color: ready+ ? "var(--color-success)"+ : "var(--log-trace)",+ }}+ >+ {ready+ ? "Blender ready"+ : `${stagesComplete}/${stagesTotal} stages`}+ </span>)}- style={isActive ? {- backgroundColor: 'rgba(41,182,246,0.12)',- borderLeft: '3px solid var(--color-info)',- } : undefined}- >- <div className="flex flex-row items-center">- <button- className="flex flex-row flex-1 items-center gap-1 text-left"- onClick={onClick}- disabled={isAnyLoading}- style={{- background: 'none',- border: 'none',- cursor: 'pointer',- padding: '10px 16px',- opacity: isAnyLoading && !isLoading ? 0.5 : 1,- }}+ {parsedDate && (+ <span+ title={parsedDate.toLocaleString()}+ className="flex flex-row text-nowrap time-group text md text-gray"+ >+ {formatRelativeTime(parsedDate)}+ </span>+ )}+ </div>+ {/* Commented out: loaded in playback badge+ {isActive && (+ <span className="tag text sm">+ loaded in playback+ </span>+ )} */}+ {isLegacyLayout && (+ <span+ className="tag text sm"+ title={`Legacy folder layout (legacy_v1)${legacyMarkers.length > 0 ? ": " + legacyMarkers.join(", ") : ""}`}+ style={{+ fontSize: "0.65rem",+ backgroundColor: "rgba(255,167,38,0.18)",+ color: "#ffb74d",+ border: "1px solid rgba(255,167,38,0.5)",+ }}+ >+ Legacy+ </span>+ )}+ </div>+ <div className="flex flex-row items-center gap-1 data-group-container flex-wrap">+ <div className="flex flex-row items-center gap-1 data-group-1">+ <span className="text flex flex-row text-nowrap md text-gray tag" title="Camera streams">+ {`${rec.video_count} cam${rec.video_count !== 1 ? "s" : ""}`}+ </span>+ {rec.total_size_bytes != null && rec.total_size_bytes > 0 && (+ <span+ className="text md text-gray text-nowrap tag"+ title="Total size on disk"+ >+ {formatBytes(rec.total_size_bytes)}+ </span>+ )}+ {rec.duration_seconds != null && rec.duration_seconds > 0 && (+ <span+ className="text md text-gray text-nowrap tag"+ title="Recording duration"+ >+ {formatDuration(rec.duration_seconds)}+ </span>+ )}+ </div>+ <div className="flex flex-row items-center gap-1 data-group-2">++++ {rec.total_frames != null && rec.total_frames > 0 && (+ <span+ title={t("frameCountPerCamera")}+ className="text-nowrap tag camera-config-chip text-gray">- <div className="flex-shrink-0" style={{minWidth: 36}}>- {isLoading- ? <span className="icon loader-icon icon-size-20" style={{color: 'var(--color-info)'}}/>- : <span className="icon load-icon icon-size-20" style={{color: 'var(--color-info)'}}/>}- </div>-- <div className="flex-1">- <div className="flex flex-row items-center gap-1 mb-1">- <p className="text md text-white recording-name m-0" style={{- fontWeight: 600,- color: isActive ? 'var(--color-info)' : undefined,- }}>- {rec.name}- </p>- {isActive && (- <span className="tag text sm" style={{fontSize: '0.65rem', backgroundColor: 'rgba(41,182,246,0.13)', color: 'var(--color-info)', border: '1px solid rgba(41,182,246,0.33)'}}>- loaded in playback- </span>- )}- {isLegacyLayout && (- <span- className="tag text sm"- title={`Legacy folder layout (legacy_v1)${legacyMarkers.length > 0 ? ': ' + legacyMarkers.join(', ') : ''}`}- style={{fontSize: '0.65rem', backgroundColor: 'rgba(255,167,38,0.18)', color: '#ffb74d', border: '1px solid rgba(255,167,38,0.5)'}}- >- Legacy- </span>- )}+ {`${rec.total_frames.toLocaleString()} frames`}+ </span>+ )}+ {rec.fps != null && rec.fps > 0 && (+ <span+ className="text-nowrap text md tag camera-config-chip tag text-gray"+ title={t("recordingCaptureFps")}+ >+ {`${rec.fps} fps`}+ </span>+ )}+ </div></div>-- <div className="flex flex-row items-center flex-wrap gap-3">- <span className="text sm text-gray" title="Camera streams">- {`${rec.video_count} cam${rec.video_count !== 1 ? 's' : ''}`}- </span>-- {rec.total_size_bytes != null && rec.total_size_bytes > 0 && (- <span className="text sm text-gray" title="Total size on disk">- {formatBytes(rec.total_size_bytes)}- </span>- )}-- {rec.duration_seconds != null && rec.duration_seconds > 0 && (- <span className="text sm text-gray" title="Recording duration">- {formatDuration(rec.duration_seconds)}- </span>- )}-- {rec.total_frames != null && rec.total_frames > 0 && (- <span- title={t("frameCountPerCamera")}- className="camera-config-chip text-gray"- >- {`${rec.total_frames.toLocaleString()} frames`}- </span>- )}-- {rec.fps != null && rec.fps > 0 && (- <span- title={t("recordingCaptureFps")}- className="camera-config-chip text-gray"- >- {`${rec.fps} fps`}- </span>- )}-- {parsedDate && (- <span title={parsedDate.toLocaleString()} className="text sm text-gray" style={{fontStyle: 'italic'}}>- {formatRelativeTime(parsedDate)}- </span>- )}-- {summary && (- <span- title={ready ? 'All pipeline stages complete β ready for Blender' : `${stagesComplete}/${stagesTotal} pipeline stages complete`}- className="tag text sm"- style={{fontSize: '0.65rem', color: ready ? 'var(--color-success)' : undefined}}- >- {ready ? 'Blender ready' : `${stagesComplete}/${stagesTotal} stages`}- </span>- )}+ <div className="load-container pos-abs" style={{ minWidth: 36 }}>+ {isLoading ? (+ <span+ className="icon loader-icon icon-size-16"+ style={{ color: "var(--color-info)" }}+ />+ ) : (+ <span+ className="icon load-icon icon-size-16"+ style={{ color: "var(--color-info)" }}+ />+ )}</div>- </div>- </button>-- <IconButton- title={expanded ? 'Hide folder detail' : 'Show folder detail'}- icon="expand-icon"- className="icon-size-25 mr-2"- onClick={toggleExpand}- style={{transform: expanded ? 'rotate(180deg)' : 'rotate(0deg)', transition: 'transform 0.2s ease', alignSelf: 'center'}}- />- </div>+ </div>+ </button>++ <IconButton+ title={expanded ? "Hide folder detail" : "Show folder detail"}+ icon="arrowdown-icon"+ className="pos-abs top-2 right-0 icon-size-25 "+ onClick={toggleExpand}+ style={{+ transform: expanded ? "rotate(180deg)" : "rotate(0deg)",+ transition: "transform 0.2s ease",+ alignSelf: "center",+ }}+ />+ </div>- {expanded && (- <div className="pl-4 pr-4 pb-4">- <RecordingStatusPanel- status={detailedStatus}- isLoading={statusLoading}- error={statusError}- onRefresh={refreshStatus}- />- </div>- )}- </div>- );- },+ {expanded && (+ <div className="px-2 pb-2 w-full">+ <RecordingStatusPanel+ status={detailedStatus}+ isLoading={statusLoading}+ error={statusError}+ onRefresh={refreshStatus}+ />+ </div>+ )}+ </div>+ );+ },);-RecordingRow.displayName = 'RecordingRow';+RecordingRow.displayName = "RecordingRow";diff --git a/freemocap-ui/src/components/ui-components/DropdownButton.tsx b/freemocap-ui/src/components/ui-components/DropdownButton.tsxindex 9e9dc4d3..65f7a745 100644--- a/freemocap-ui/src/components/ui-components/DropdownButton.tsx+++ b/freemocap-ui/src/components/ui-components/DropdownButton.tsx@@ -54,7 +54,7 @@ export default function DropdownButton({{open && (<divref={popupRef}- className={clsx("pos-abs z-2 left-0 top-30 w-full dropdown-container flex flex-row reveal slide-down elevated-sharp dropdown-container border-1 border-black bg-middark br-2 flex flex-col gap-1 p-1", dropdownClassName)}+ className={clsx("pos-abs z-111 left-0 top-30 w-full dropdown-container flex flex-row reveal slide-down elevated-sharp dropdown-container border-1 border-black bg-middark br-2 flex flex-col gap-1 p-1", dropdownClassName)}>{dropdownItems}</div>diff --git a/freemocap-ui/src/components/ui-components/SettingsOverlay.tsx b/freemocap-ui/src/components/ui-components/SettingsOverlay.tsxindex e82d85f6..bdfc608a 100644--- a/freemocap-ui/src/components/ui-components/SettingsOverlay.tsx+++ b/freemocap-ui/src/components/ui-components/SettingsOverlay.tsx@@ -127,7 +127,7 @@ export const SettingsOverlay: React.FC<SettingsOverlayProps> = ({return (<><div className="streaming-bar-setting-action-bar z-2 pos-abs flex flex-row gap-3 top-0 right-0">- <div className="live-action-buttons-container flex flex-row gap-32">+ <div className="live-action-buttons-container flex flex-row gap-4">{/* GROUP 1 */}<div className="p-1 br-2 bg-gray live-action-buttons-group-1 flex flex-row items-center gap-1">@@ -160,7 +160,7 @@ export const SettingsOverlay: React.FC<SettingsOverlayProps> = ({tooltipText="Skeleton Setup"tooltipPosition="pos-bottom"disabled={false}- className={`icon-size-25 ${active.trackingSettings ? "active" : ""}`}+ className={`is-menu icon-size-25 ${active.trackingSettings ? "active" : ""}`}/>{/* RTP MediaPipe Settings Modal */}<RTPMediaPipeDetectorSettings@@ -201,7 +201,7 @@ export const SettingsOverlay: React.FC<SettingsOverlayProps> = ({tooltipText="Filter Settings"tooltipPosition="pos-bottom"disabled={false}- className={`icon-size-25 ${active.filterSettings ? "active" : ""}`}+ className={`is-menu icon-size-25 ${active.filterSettings ? "active" : ""}`}/>{/* RTP 3D Reconstructions Settings Modal */}<RTPthreeDReconstructionSettingsdiff --git a/freemocap-ui/src/components/ui-components/WelcomeModal.tsx b/freemocap-ui/src/components/ui-components/WelcomeModal.tsxindex 8c17c472..63bc30e9 100644--- a/freemocap-ui/src/components/ui-components/WelcomeModal.tsx+++ b/freemocap-ui/src/components/ui-components/WelcomeModal.tsx@@ -12,7 +12,7 @@ import { EXTERNAL_URLS } from '@/constants/external-urls';import ButtonSm from '@/components/ui-components/ButtonSm';import ButtonCard from '@/components/ui-components/ButtonCard';import IconButton from '@/components/ui-components/IconButton';-import ToggleComponent from '@/components/ui-components/ToggleComponent';+import Checkbox from '@/components/ui-components/Checkbox';interface WelcomeModalProps {open: boolean;@@ -147,10 +147,10 @@ export const WelcomeModal: React.FC<WelcomeModalProps> = ({ open, onClose }) =>{/* Telemetry toggle */}{telemetryLoaded && (<div className="mt-2">- <ToggleComponent- text={t('sendAnonymousPings')}- isToggled={telemetryEnabled}- onToggle={handleTelemetryToggle}+ <Checkbox+ label={t('sendAnonymousPings')}+ checked={telemetryEnabled}+ onChange={(e) => handleTelemetryToggle(e.target.checked)}/></div>)}diff --git a/freemocap-ui/src/i18n/locales/en-english.json b/freemocap-ui/src/i18n/locales/en-english.jsonindex be348ba1..d38192d2 100644--- a/freemocap-ui/src/i18n/locales/en-english.json+++ b/freemocap-ui/src/i18n/locales/en-english.json@@ -189,6 +189,8 @@"cameraPerformanceMetrics": "Camera Performance Metrics","serverLogs": "Server Logs","sortBy": "Sort {{direction}}",+ "ascending": "ascending",+ "descending": "descending","waitingForCameraStreams": "Waiting for camera streams...","loggingPaused": "Logging paused","noLogsToDisplay": "No logs to display",diff --git a/freemocap-ui/src/layout/BasePanelLayout.tsx b/freemocap-ui/src/layout/BasePanelLayout.tsxindex c6807e7b..427c9a3c 100644--- a/freemocap-ui/src/layout/BasePanelLayout.tsx+++ b/freemocap-ui/src/layout/BasePanelLayout.tsx@@ -84,20 +84,22 @@ export const BasePanelLayout = ({/></FloatingOnboarding>- <FloatingOnboarding target='[data-onboarding="camera:connect-camera"]'>- <PromptTooltip- show={- location.pathname === '/streaming' &&- connectedCameraIds.length === 0 &&- !isCamerasLoading- }- title="Connect Cameras"- text="Make sure you have at least one camera plugged in, then hit Connect to start streaming."- position="pos-right"- variant="boarding"- onClose={() => {}}- />- </FloatingOnboarding>+<FloatingOnboarding target='[data-onboarding="camera:connect-camera"]'>+ <PromptTooltip+ show={+ isConnected && // <-- wait for successful connection+ !isFailed && // <-- optional extra safety+ location.pathname === "/streaming" &&+ connectedCameraIds.length === 0 &&+ !isCamerasLoading+ }+ title="Connect Cameras"+ text="Make sure you have at least one camera plugged in, then hit Connect to start streaming."+ position="pos-right"+ variant="boarding"+ onClose={() => {}}+ />+</FloatingOnboarding><PanelGroup className="app-container flex-1" direction="vertical">{/* Top section (horizontal panels) */}diff --git a/freemocap-ui/src/styles/App.css b/freemocap-ui/src/styles/App.cssindex a230f4d1..550b1a9c 100644--- a/freemocap-ui/src/styles/App.css+++ b/freemocap-ui/src/styles/App.css@@ -13,6 +13,7 @@@import './tooltips.css';@import './toggle.css';@import './button-sm.css';+@import './pipelineProgress.css';/* base / reset */@@ -99,17 +100,65 @@ a.link:hover {Z-INDEX========================= */-.z-1 { z-index: 1; }-.z-2 { z-index: 2; }-.z-3 { z-index: 3; }-.z-4 { z-index: 4; }-.z-5 { z-index: 5; }-.z-6 { z-index: 6; }-.z-7 { z-index: 7; }-.z-8 { z-index: 8; }-.z-9 { z-index: 9; }-.z-10 { z-index: 10; }-.z-110i { z-index: 110!important; }+.z-1 {+ z-index: 1;+}++.z-2 {+ z-index: 2;+}++.z-3 {+ z-index: 3;+}++.z-4 {+ z-index: 4;+}++.z-5 {+ z-index: 5;+}++.z-6 {+ z-index: 6;+}++.z-7 {+ z-index: 7;+}++.z-8 {+ z-index: 8;+}++.z-9 {+ z-index: 9;+}++.z-10 {+ z-index: 10;+}++.z-50 {+ z-index: 50;+}++.z-100 {+ z-index: 100;+}++.z-200 {+ z-index: 200;+}++.z-110i {+ z-index: 110 !important;+}++.z-111 {+ z-index: 111 !important;+}/* =========================POSITIONS@@ -126,71 +175,188 @@ a.link:hover {.pos-sticky {position: sticky;}+.pos-fixed {position: fixed;}/* Position helpers */-.top-0 { top: 0; }-.top-2 { top: 2px; }-.top-4 { top: 4px; }-.top-6 { top: 6px; }-.top-8 { top: 8px; }-.top-10 { top: 10px; }-.top-12 { top: 12px; }-.top-14 { top: 14px; }-.top-16 { top: 16px; }-.top-18 { top: 18px; }-.top-20 { top: 20px; }-.top-22 { top: 22px; }-.top-24 { top: 24px; }-.top-26 { top: 26px; }-.top-28 { top: 28px; }-.top-30 { top: 30px; }--.top-unset { top: unset; }+.top-0 {+ top: 0;+}++.top-2 {+ top: 2px;+}++.top-4 {+ top: 4px;+}++.top-6 {+ top: 6px;+}++.top-8 {+ top: 8px;+}++.top-10 {+ top: 10px;+}++.top-12 {+ top: 12px;+}++.top-14 {+ top: 14px;+}++.top-16 {+ top: 16px;+}++.top-18 {+ top: 18px;+}++.top-20 {+ top: 20px;+}++.top-22 {+ top: 22px;+}++.top-24 {+ top: 24px;+}++.top-26 {+ top: 26px;+}++.top-28 {+ top: 28px;+}++.top-30 {+ top: 30px;+}++.top-unset {+ top: unset;+}+.top-50 {top: 50%;transform: translateY(-50%);}-.left-0 { left: 0; }-.left-2 { left: 2px; }-.left-4 { left: 4px; }-.left-6 { left: 6px; }-.left-8 { left: 8px; }-.left-10 { left: 10px; }-.left-12 { left: 12px; }+.left-0 {+ left: 0;+}++.left-2 {+ left: 2px;+}++.left-4 {+ left: 4px;+}++.left-6 {+ left: 6px;+}++.left-8 {+ left: 8px;+}++.left-10 {+ left: 10px;+}++.left-12 {+ left: 12px;+}.left-50 {left: 50%;transform: translateX(-50%) translateY(6px);}-.right-0 { right: 0; }-.right-2 { right: 2px; }-.right-4 { right: 4px; }-.right-6 { right: 6px; }-.right-8 { right: 8px; }-.right-10 { right: 10px; }-.right-12 { right: 12px; }+.right-0 {+ right: 0;+}++.right-2 {+ right: 2px;+}++.right-4 {+ right: 4px;+}++.right-6 {+ right: 6px;+}++.right-8 {+ right: 8px;+}++.right-10 {+ right: 10px;+}++.right-12 {+ right: 12px;+}.right-50 {right: 50%;transform: translateX(-50%) translateY(6px);}-.bottom-0 { bottom: 0; }-.bottom-2 { bottom: 2px; }-.bottom-4 { bottom: 4px; }-.bottom-6 { bottom: 6px; }-.bottom-8 { bottom: 8px; }-.bottom-10 { bottom: 10px; }-.bottom-12 { bottom: 12px; }-.bottom-36 { bottom: 36px; }+.bottom-0 {+ bottom: 0;+}++.bottom-2 {+ bottom: 2px;+}++.bottom-4 {+ bottom: 4px;+}++.bottom-6 {+ bottom: 6px;+}++.bottom-8 {+ bottom: 8px;+}++.bottom-10 {+ bottom: 10px;+}++.bottom-12 {+ bottom: 12px;+}++.bottom-36 {+ bottom: 36px;+}++.bottom-100 {+ bottom: 100%;+}-.bottom-100 { bottom: 100%; }.inset-0 {inset: 0;}@@ -222,6 +388,7 @@ a.link:hover {.flex-wrap {flex-wrap: wrap;}+.flex-nowrap {flex-wrap: nowrap;}@@ -270,12 +437,29 @@ a.link:hover {FLEX PROPORTIONS========================= */-.flex-1 { flex: 1; }-.flex-2 { flex: 2; }-.flex-3 { flex: 3; }-.flex-4 { flex: 4; }-.flex-5 { flex: 5; }-.flex-6 { flex: 6; }+.flex-1 {+ flex: 1;+}++.flex-2 {+ flex: 2;+}++.flex-3 {+ flex: 3;+}++.flex-4 {+ flex: 4;+}++.flex-5 {+ flex: 5;+}++.flex-6 {+ flex: 6;+}.flex-15 {flex: 1.5;@@ -293,91 +477,247 @@ a.link:hover {GAPS========================= */-.gap-1 { gap: 4px; }-.gap-2 { gap: 8px; }-.gap-3 { gap: 12px; }-.gap-4 { gap: 16px; }-.gap-32 { gap: 32px; }+.gap-1 {+ gap: 4px;+}++.gap-2 {+ gap: 8px;+}++.gap-3 {+ gap: 12px;+}++.gap-4 {+ gap: 16px;+}++.gap-32 {+ gap: 32px;+}/* =========================PADDING========================= */-.p-0 { padding: 0px; }-.p-01 { padding: 2px; }-.p-1 { padding: 4px; }-.p-2 { padding: 8px; }-.p-3 { padding: 12px; }-.p-4 { padding: 16px; }--.pb-0 { padding-bottom: 0px; }-.pb-1 { padding-bottom: 4px; }-.pb-2 { padding-bottom: 8px; }-.pb-3 { padding-bottom: 12px; }-.pb-4 { padding-bottom: 16px; }-.pb-180 { padding-bottom: 180px; }--.pl-0 { padding-left: 0px; }-.pl-1 { padding-left: 4px; }-.pl-2 { padding-left: 8px; }-.pl-3 { padding-left: 12px; }-.pl-4 { padding-left: 16px; }--.pr-0 { padding-right: 0px; }-.pr-1 { padding-right: 4px; }-.pr-2 { padding-right: 8px; }-.pr-3 { padding-right: 12px; }-.pr-4 { padding-right: 16px; }--.pt-1 { padding-top: 4px; }-.pt-2 { padding-top: 8px; }-.pt-3 { padding-top: 12px; }-.pt-4 { padding-top: 16px; }+.p-0 {+ padding: 0px;+}++.p-01 {+ padding: 2px;+}++.p-1 {+ padding: 4px;+}++.p-2 {+ padding: 8px;+}++.p-3 {+ padding: 12px;+}++.p-4 {+ padding: 16px;+}++.pb-0 {+ padding-bottom: 0px;+}++.pb-1 {+ padding-bottom: 4px;+}++.pb-2 {+ padding-bottom: 8px;+}++.pb-3 {+ padding-bottom: 12px;+}++.pb-4 {+ padding-bottom: 16px;+}++.pb-180 {+ padding-bottom: 180px;+}++.pl-0 {+ padding-left: 0px;+}++.pl-1 {+ padding-left: 4px;+}++.pl-2 {+ padding-left: 8px;+}++.pl-3 {+ padding-left: 12px;+}++.pl-4 {+ padding-left: 16px;+}++.pr-0 {+ padding-right: 0px;+}++.pr-1 {+ padding-right: 4px;+}++.pr-2 {+ padding-right: 8px;+}++.pr-3 {+ padding-right: 12px;+}++.pr-4 {+ padding-right: 16px;+}++.pt-1 {+ padding-top: 4px;+}++.pt-2 {+ padding-top: 8px;+}++.pt-3 {+ padding-top: 12px;+}++.pt-4 {+ padding-top: 16px;+}/* =========================MARGIN========================= */-.m-0 { margin: 0; }-.m-1 { margin: 4px; }-.m-2 { margin: 8px; }-.m-3 { margin: 12px; }-.m-4 { margin: 16px; }+.m-0 {+ margin: 0;+}+.m-1 {+ margin: 4px;+}-.mt-0 { margin-top: 0; }-.mt-1 { margin-top: 4px; }-.mt-2 { margin-top: 8px; }-.mt-3 { margin-top: 12px; }-.mt-4 { margin-top: 16px; }+.m-2 {+ margin: 8px;+}++.m-3 {+ margin: 12px;+}++.m-4 {+ margin: 16px;+}+++.mt-0 {+ margin-top: 0;+}++.mt-1 {+ margin-top: 4px;+}++.mt-2 {+ margin-top: 8px;+}++.mt-3 {+ margin-top: 12px;+}++.mt-4 {+ margin-top: 16px;+}/* Margin Bottom */-.mb-0 { margin-bottom: 0; }-.mb-1 { margin-bottom: 4px; }-.mb-2 { margin-bottom: 8px; }-.mb-3 { margin-bottom: 12px; }+.mb-0 {+ margin-bottom: 0;+}++.mb-1 {+ margin-bottom: 4px;+}++.mb-2 {+ margin-bottom: 8px;+}++.mb-3 {+ margin-bottom: 12px;+}+.mb-4 {margin-bottom: 16px;}/* Margin Top */-.mt-1 { margin-top: 4px; }-.mt-2 { margin-top: 8px; }-.mt-3 { margin-top: 12px; }-.mt-4 { margin-top: 16px; }+.mt-1 {+ margin-top: 4px;+}++.mt-2 {+ margin-top: 8px;+}++.mt-3 {+ margin-top: 12px;+}++.mt-4 {+ margin-top: 16px;+}+.mt-45 {margin-top: 45px;}+/* Margin Left/Right */-.ml-1 { margin-left: 4px; }-.ml-2 { margin-left: 8px; }-.ml-auto { margin-left: auto; }+.ml-1 {+ margin-left: 4px;+}++.ml-2 {+ margin-left: 8px;+}++.ml-auto {+ margin-left: auto;+}++.mr-1 {+ margin-right: 4px;+}-.mr-1 { margin-right: 4px; }-.mr-2 { margin-right: 8px; }+.mr-2 {+ margin-right: 8px;+}+.mr-18 {+ margin-right: 18px;+}/* =========================WIDTHS / HEIGHTS@@ -394,9 +734,11 @@ a.link:hover {.h-full {height: 100%;}+.h-inherit {height: inherit;}+.w4-inherit {width: inherit;}@@ -433,12 +775,29 @@ a.link:hover {BORDER RADIUS========================= */-.br-1 { border-radius: 4px; }-.br-1-1 { border-radius: 6px; }-.br-2 { border-radius: 8px; }-.br-3 { border-radius: 12px; }-.br-4 { border-radius: 16px; }-.br-5 { border-radius: 18px; }+.br-1 {+ border-radius: 4px;+}++.br-1-1 {+ border-radius: 6px;+}++.br-2 {+ border-radius: 8px;+}++.br-3 {+ border-radius: 12px;+}++.br-4 {+ border-radius: 16px;+}++.br-5 {+ border-radius: 18px;+}/* =========================BORDER SIZES@@ -476,15 +835,17 @@ a.link:hover {.overflow-hidden {overflow: hidden;}+.overflow-hiddeni {- overflow: hidden!important;+ overflow: hidden !important;}.overflow-visible {overflow: visible;}+.overflow-visiblei {- overflow: visible!important;+ overflow: visible !important;}/* =========================@@ -602,7 +963,7 @@ body,gap: 0.5em;}-.form-control + .form-control {+.form-control+.form-control {margin-top: 1em;}@@ -633,4 +994,142 @@ body,overflow-wrap: break-word;text-wrap: wrap;text-wrap-mode: wrap;-}\ No newline at end of file+}++++/* =========================+ FONT FAMILY+ ========================= */++.font-mono {+ font-family: monospace;+}++/* =========================+ FONT WEIGHT+ ========================= */++.border-collapse {+ border-collapse: collapse;+}++/* =========================+ BORDER DIRECTION+ ========================= */++.border-b {+ border-bottom: 1px solid var(--color-border-secondary);+}++.border-b-1 {+ border-bottom: 1px solid;+}++.border-b-secondary {+ border-bottom: 1px solid var(--color-border-secondary);+}++.border-b-none {+ border-bottom: none;+}++/* =========================+ DIVIDER / SEPARATOR+ ========================= */++.divider {+ height: 1px;+ background-color: var(--color-border-secondary);+ margin: 4px 0 8px 0;+}++++/* =========================+ MIN/MAX WIDTH EXTENDED+ ========================= */++.min-w-480 {+ min-width: 480px;+}++.max-w-600 {+ max-width: 600px;+}++/* =========================+ SPLASH OVERLAY+ ========================= */++.splash-overlay {+ position: fixed;+ inset: 0;+ z-index: 100;+}++/* =========================+ TRUNCATE / TEXT OVERFLOW+ ========================= */++.truncate {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+++/* =========================+ CURSOR / USER SELECT+ ========================= */++.cursor-grab {+ cursor: grab;+}++.select-none {+ user-select: none;+}++/* =========================+ BOX SHADOW+ ========================= */++.shadow-lg {+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+}++/* =========================+ SIZE UTILITIES+ ========================= */++.h-7 {+ height: 7px;+}++.h-auto {+ height: auto;+}++.w-7 {+ width: 7px;+}++.rounded-full {+ border-radius: 50%;+}++/* =========================+ PADDING EXTRA+ ========================= */++.px-2 {+ padding-left: 8px;+ padding-right: 8px;+}++.py-4 {+ padding-top: 16px;+ padding-bottom: 16px;+}+diff --git a/freemocap-ui/src/styles/animation.css b/freemocap-ui/src/styles/animation.cssindex 8f6de0c2..0855d7ac 100644--- a/freemocap-ui/src/styles/animation.css+++ b/freemocap-ui/src/styles/animation.css@@ -184,3 +184,20 @@background-position: -200% 0;}}++/* =========================+ Pulse Animation+ ========================= */++@keyframes fmcPulse {+ 0%, 100% {+ opacity: 1;+ }+ 50% {+ opacity: 0.4;+ }+}++.pulse-dot {+ animation: fmcPulse 1.4s ease-in-out infinite;+}diff --git a/freemocap-ui/src/styles/button-sm.css b/freemocap-ui/src/styles/button-sm.cssindex 2be685eb..a87e0af8 100644--- a/freemocap-ui/src/styles/button-sm.css+++ b/freemocap-ui/src/styles/button-sm.css@@ -42,12 +42,17 @@}/* Primary fullwidth button */-button.quaternary {+button.quaternary,+.quaternary {background-color: transparent;+ transition: background-color 0.3s ease;}-.app-root.quaternary:hover {+.app-root.quaternary:hover,+button.quaternary:hover,+.quaternary:hover {background-color: var(--color-bg-elevated);+ transition: background-color 0.15s ease;}.button.quaternary.activated {@@ -119,9 +124,9 @@ button.quaternary {content: "";background-image: var(--externallink-icon);transform-origin: center center;- background-repeat: no-repeat;- background-position: center;- background-size: contain;+ background-repeat: no-repeat;+ background-position: center;+ background-size: contain;}.button.sm.dropdown:after {@@ -142,7 +147,7 @@ button.quaternary {.button.sm,button.rotate-button {- padding: 4px 4px;+ padding: 4px 6px;min-height: 25px;width: auto;/* to fit its content */diff --git a/freemocap-ui/src/styles/camera.css b/freemocap-ui/src/styles/camera.cssindex 67df0039..837fb9f5 100644--- a/freemocap-ui/src/styles/camera.css+++ b/freemocap-ui/src/styles/camera.css@@ -446,17 +446,9 @@border-radius: 4px; */}-.recording-row {- border-bottom: 1px solid var(--color-bg-tertiary);- cursor: pointer;-}--.recording-row:last-child {- border-bottom: none;-}.recording-row-disabled {- opacity: 0.4;+ opacity: 0.9;pointer-events: none;}diff --git a/freemocap-ui/src/styles/icons.css b/freemocap-ui/src/styles/icons.cssindex d2f424b4..831edcb2 100644--- a/freemocap-ui/src/styles/icons.css+++ b/freemocap-ui/src/styles/icons.css@@ -44,7 +44,8 @@ Study the codebase HTML structure carefully. You will notice that whenever icons--snaptogrid-icon: url("../assets/icons/snaptogrid_icon.svg");--blender-icon: url("../assets/icons/blender_icon.svg");--calibrating-icon: url("../assets/icons/calibrating-icon.svg");-+ --stop-alert-icon: url("../assets/icons/stop_alert_icon.svg");+ --stop-icon: url("../assets/icons/stop_icon.svg");--import-icon: url("../assets/icons/import-icon.svg");--importVideos-icon: url("../assets/icons/importVideos_icon.svg");--github-icon: url("../assets/icons/github_icon.svg");@@ -109,8 +110,11 @@ Study the codebase HTML structure carefully. You will notice that whenever icons--grid2_icon: url("../assets/icons/grid2_icon.svg");--tomlfile-icon: url("../assets/icons/tomlfile_icon.svg");+ --sort-icon: url("../assets/icons/sort_icon.svg");--importvideo-icon: url("../assets/icons/importvideo_icon.svg");+ --filter-icon: url("../assets/icons/filter_icon.svg");+ --filter-active-icon: url("../assets/icons/filter_active_icon.svg");--live-active-icon: url("../assets/icons/live_active_icon.svg");--twodtracking-active-icon: url("../assets/icons/2dtracking_active_icon.svg");@@ -132,6 +136,19 @@ Study the codebase HTML structure carefully. You will notice that whenever icons.close-icon {background-image: var(--close-icon);}+.stop-alert-icon {+ background-image: var(--stop-alert-icon);+}+.stop-icon {+ background-image: var(--stop-icon);+}+.sort-icon {+ background-image: var(--sort-icon);+}+.sortup-icon {+ background-image: var(--sort-icon);+ transform: rotate(180deg);+}.frame-icon {background-image: var(--frame-icon);}@@ -145,6 +162,12 @@ Study the codebase HTML structure carefully. You will notice that whenever icons.snaptogrid-icon {background-image: var(--snaptogrid-icon);}+.filter-icon {+ background-image: var(--filter-icon);+}+.filter-active-icon {+ background-image: var(--filter-active-icon);+}.mic-active-icon {background-image: var(--mic-active-icon);@@ -543,4 +566,21 @@ Study the codebase HTML structure carefully. You will notice that whenever iconsbackground-color: var(--color-surface-active);/* filter animation out */transition: filter var(--speed-1) ease-in-out;+}++.is-menu {+ position: relative;+}++.is-menu::after {+ content: "";+ position: absolute;+ bottom: 2px;+ right: 2px;+ width: 0;+ height: 0;+ border-style: solid;+ border-width: 0 0 5px 5px;+ border-color: transparent transparent var(--color-text-muted) transparent;+ pointer-events: none;}\ No newline at end of filediff --git a/freemocap-ui/src/styles/pipelineProgress.css b/freemocap-ui/src/styles/pipelineProgress.cssnew file mode 100644index 00000000..8cd2d1d3--- /dev/null+++ b/freemocap-ui/src/styles/pipelineProgress.css@@ -0,0 +1,201 @@+/* =========================+ RESIZE HANDLES+ ========================= */++.resize-handle {+ position: absolute;+ z-index: 10;+}++.resize-handle-n {+ top: -3px;+ left: 14px;+ right: 14px;+ height: 6px;+ cursor: ns-resize;+}++.resize-handle-s {+ bottom: -3px;+ left: 14px;+ right: 14px;+ height: 6px;+ cursor: ns-resize;+}++.resize-handle-e {+ right: -3px;+ top: 14px;+ bottom: 14px;+ width: 6px;+ cursor: ew-resize;+}++.resize-handle-w {+ left: -3px;+ top: 14px;+ bottom: 14px;+ width: 6px;+ cursor: ew-resize;+}++.resize-handle-nw {+ top: -3px;+ left: -3px;+ width: 14px;+ height: 14px;+ cursor: nwse-resize;+}++.resize-handle-ne {+ top: -3px;+ right: -3px;+ width: 14px;+ height: 14px;+ cursor: nesw-resize;+}++.resize-handle-sw {+ bottom: -3px;+ left: -3px;+ width: 14px;+ height: 14px;+ cursor: nesw-resize;+}++.resize-handle-se {+ bottom: -3px;+ right: -3px;+ width: 14px;+ height: 14px;+ cursor: nwse-resize;+}++/* =========================+ SNACKBAR CONTAINER+ ========================= */++.snackbar-container {+ position: fixed;+ width: 280px;+ bottom: 24px;+ right: 24px;+ z-index: 1400;+}++.snackbar-container-dragged {+ position: fixed;+ z-index: 1400;+}++.snackbar-container-dragged>.pipeline-progress-toast-flyout>div:active:not(.inner-content) {+ cursor: grabbing;+}++/* =========================+ PIPELINE TOAST+ ========================= */++.pipeline-toast-flyout {+ border-radius: 8px;+ border: 1px solid transparent;+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);+}++.pipeline-toast-flyout--running {+ border-color: #FF00FF;+}++/* =========================+ PROGRESS TRACK SMALL+ ========================= */++.progress-track-sm {+ height: 3px;+ border-radius: 2px;+}++.progress-fill-sm {+ border-radius: 2px;+}++/* =========================+ PIPELINE GROUP CARD+ ========================= */++.pipeline-group-card {++ padding: 8px;+ border-radius: 4px;+}++.pipeline-group-card__border-failed {+ border: 1px solid var(--color-error);+}++.pipeline-group-card__border-complete {+ border: 1px solid var(--color-success);+}++.pipeline-group-card__border-running {+ border: 1px solid var(--color-border-secondary);+}++.pipeline-group-card__inactive {+ opacity: 0.6;+}++.pipeline-group-card__label-row {+ margin-bottom: 2px;+}++.pipeline-group-card__type-badge {+ padding: 1px 6px;+ margin-right: 6px;+}++.pipeline-group-card__type-badge-text {+ font-weight: 600;+ line-height: 1.4;+}++.pipeline-group-card__bold {+ font-weight: bold;+}++.pipeline-group-card__border-left {+ border-left: 2px solid var(--color-border-secondary);+}++.pipeline-group-card__border-left-no-aggregator {+ margin-bottom: 0;+}++.pipeline-group-card__border-left-aggregator {+ margin-bottom: 6px;+}++.pipeline-group-card__error-text {+ margin-top: 2px;+ cursor: default;+}++.pipeline-group-card__max-width {+ max-width: 160px;+}++/* Sub progress bar track */+.sub-progress-track {+ height: 4px;+ border-radius: 2px;+}++.sub-progress-fill {+ border-radius: 2px;+}++.sub-progress-indeterminate {+ width: 40%;+ border-radius: 2px;+ animation: indeterminateProgress 1.5s infinite ease-in-out;+}