{config?.homeLayout == 'default' && groups.length > 0 && (
-
+
{groups.map((group) => (
>
)}
+ {group.kind === 'wifi' && group.pending.length > 0 && (
+ <>
+
+
+ {group.pending.map((device) => (
+
+ ))}
+
+ >
+ )}
))}
diff --git a/gui/app/src/components/tracker/DongleTelemetry.tsx b/gui/app/src/components/tracker/DongleTelemetry.tsx
index c1a81f4b6..4065e43ed 100644
--- a/gui/app/src/components/tracker/DongleTelemetry.tsx
+++ b/gui/app/src/components/tracker/DongleTelemetry.tsx
@@ -14,10 +14,7 @@ import { FlatDeviceTracker } from '@/store/app-store';
import { RssiLossChart } from './RssiLossChart';
import { GapEventsChart } from './GapEventsChart';
import { defaultDongleTelemetryConfig, useConfig } from '@/hooks/config';
-import {
- useTimeAxisTicks,
- WINDOW_OPTIONS,
-} from '@/hooks/time-axis';
+import { useTimeAxisTicks, WINDOW_OPTIONS } from '@/hooks/time-axis';
import { GapEvent } from '@/hooks/telemetry-history';
diff --git a/gui/app/src/components/tracker/PendingTrackers.tsx b/gui/app/src/components/tracker/PendingTrackers.tsx
new file mode 100644
index 000000000..63fa86ad4
--- /dev/null
+++ b/gui/app/src/components/tracker/PendingTrackers.tsx
@@ -0,0 +1,155 @@
+import classNames from 'classnames';
+import { ReactLocalization, useLocalization } from '@fluent/react';
+import {
+ BoardType,
+ UnknownDeviceStatus,
+ UnknownDeviceT,
+} from 'solarxr-protocol';
+import { usePendingTrackerActions } from '@/hooks/unknown-devices';
+import {
+ BUTTERFLY_BOARDS,
+ SLIME_BOARDS,
+} from '@/components/commons/BodyPartIcon';
+import { Button } from '@/components/commons/Button';
+import { Clickable } from '@/components/commons/Clickable';
+import { IconButton } from '@/components/commons/IconButton';
+import { Typography } from '@/components/commons/Typography';
+import { CloseIcon } from '@/components/commons/icon/CloseIcon';
+import { PlusIcon } from '@/components/commons/icon/PlusIcon';
+import { SlimeVRIcon } from '@/components/commons/icon/SlimeVRIcon';
+
+export function pendingBoardLabel(
+ boardType: BoardType,
+ l10n: ReactLocalization
+): string {
+ if (SLIME_BOARDS.has(boardType) || BUTTERFLY_BOARDS.has(boardType)) {
+ return l10n.getString('home-new_trackers-official_board');
+ }
+ return BoardType[boardType] ?? BoardType[BoardType.UNKNOWN];
+}
+
+export function PendingTrackerActions({ device }: { device: UnknownDeviceT }) {
+ const { add, ignore } = usePendingTrackerActions();
+ const adding = device.status === UnknownDeviceStatus.ADDING;
+ const macAddress = device.macAddress as string;
+
+ return (
+
+
+ ignore(macAddress)}
+ >
+
+
+
+
+
+ );
+}
+
+export function PendingTrackerGlyph({ size }: { size: number }) {
+ return (
+
+
+
+ );
+}
+
+export function PendingTrackerCard({ device }: { device: UnknownDeviceT }) {
+ const { l10n } = useLocalization();
+ const details = [device.macAddress, device.firmwareVersion]
+ .filter(Boolean)
+ .join(' · ');
+
+ return (
+
+
+
+
+ {pendingBoardLabel(device.boardType, l10n)}
+
+ {details}
+
+
+
+ );
+}
+
+export function PendingTrackersDivider({
+ devices,
+ stickyLabel = false,
+}: {
+ devices: UnknownDeviceT[];
+ stickyLabel?: boolean;
+}) {
+ const { addAll } = usePendingTrackerActions();
+ const waitingCount = devices.filter(
+ (device) => device.status !== UnknownDeviceStatus.ADDING
+ ).length;
+
+ return (
+
+
+
+
+
+
+
+ {waitingCount > 1 && (
+
addAll(devices)}
+ >
+
+
+
+ )}
+
+
+
+ );
+}
diff --git a/gui/app/src/components/tracker/TelemetryTooltip.tsx b/gui/app/src/components/tracker/TelemetryTooltip.tsx
index dc58692e5..6a0fe800d 100644
--- a/gui/app/src/components/tracker/TelemetryTooltip.tsx
+++ b/gui/app/src/components/tracker/TelemetryTooltip.tsx
@@ -1,11 +1,7 @@
import { memo } from 'react';
import { GapEvent } from '@/hooks/telemetry-history';
import { ChartPopover } from '@/components/commons/charts/ChartPopover';
-import {
- ChartRow,
- nearestIndex,
- rowsSource,
-} from '@/hooks/time-series';
+import { ChartRow, nearestIndex, rowsSource } from '@/hooks/time-series';
import {
getGapTextColor,
isGapEventActive,
diff --git a/gui/app/src/components/tracker/TrackerConnectionGroup.tsx b/gui/app/src/components/tracker/TrackerConnectionGroup.tsx
index e1cf6d0f2..aa16d46f4 100644
--- a/gui/app/src/components/tracker/TrackerConnectionGroup.tsx
+++ b/gui/app/src/components/tracker/TrackerConnectionGroup.tsx
@@ -30,21 +30,26 @@ export function ConnectionGroupIcon({
kind,
disconnected,
size = 32,
+ pulse = false,
}: {
kind: TrackerConnectionGroupData['kind'];
disconnected: boolean;
size?: number;
+ pulse?: boolean;
}) {
const iconSize = Math.round(size * 0.56);
return (
+ {pulse && (
+
+ )}
{kind === 'dongle' &&
}
{kind === 'wifi' && (
@@ -216,6 +221,7 @@ export function TrackerConnectionGroupSection({
const { collapsed } = useConnectionGroupCollapsed(group);
const disconnected = isGroupDisconnected(group);
+ const pendingCount = group.kind === 'wifi' ? group.pending.length : 0;
const lineColor = disconnected
? 'border-background-50'
: 'border-accent-background-30';
@@ -255,12 +261,23 @@ export function TrackerConnectionGroupSection({
0}
/>
+ {pendingCount > 0 && (
+
+
+
+ )}
>
)}
- {macAddress && (
+ {macAddress && tracker?.device?.origin === DeviceOrigin.UDP && (
{l10n.getString('tracker-settings-forget')}
@@ -590,22 +589,27 @@ export function TrackerSettingsPage() {
{l10n.getString('tracker-settings-forget-description')}
-
+
+
+
)}
diff --git a/gui/app/src/components/tracker/TrackersTable.tsx b/gui/app/src/components/tracker/TrackersTable.tsx
index 182a0bf97..f7167a50e 100644
--- a/gui/app/src/components/tracker/TrackersTable.tsx
+++ b/gui/app/src/components/tracker/TrackersTable.tsx
@@ -39,7 +39,15 @@ import {
TrackerDataT,
TrackerStatus as TrackerStatusEnum,
TrackingChecklistStepT,
+ UnknownDeviceStatus,
+ UnknownDeviceT,
} from 'solarxr-protocol';
+import {
+ PendingTrackerActions,
+ PendingTrackerGlyph,
+ PendingTrackersDivider,
+ pendingBoardLabel,
+} from './PendingTrackers';
import {
highlightedTrackers,
trackingchecklistIdtoLabel,
@@ -256,6 +264,7 @@ function Row({
gridTemplateColumns,
columns,
lastColumn,
+ pendingColumn,
}: {
data: FlatDeviceTracker;
highlightedTrackers: highlightedTrackers | undefined;
@@ -263,6 +272,7 @@ function Row({
gridTemplateColumns: string;
columns: TrackersTableColumnsConfig;
lastColumn: TrackersTableOptionalColumn | null;
+ pendingColumn: boolean;
}) {
const { config } = useConfig();
const fontColor = config?.devSettings?.highContrast ? 'primary' : 'secondary';
@@ -307,13 +317,16 @@ function Row({
style={{ gridTemplateColumns }}
onClick={() => clickedTracker(tracker)}
>
-