Skip to content

Name your device, and file names that group by camera - #284

Merged
darioalessandro merged 1 commit into
masterfrom
custom-device-name
Nov 22, 2026
Merged

darioalessandro merged 1 commit into
masterfrom
custom-device-name

Conversation

@darioalessandro

Copy link
Copy Markdown
Member

What you get

A Device Name field in Settings. It starts empty and shows the current system name as its placeholder. Whatever you type is what other devices see: the director's camera tiles, the scanner list, and "Controlled by …" on a camera. Clear it and you're back to the system name. Names are trimmed and capped at 30 characters.

This matters more than it looks. From iOS 16 on, Apple hands apps the generic "iPhone" or "iPad" instead of the real device name, unless the app has a special entitlement that we don't. So a rig of new phones shows up as eight cameras all called "iPhone". (Phones on iOS 15, like a 6s, still report their real names.)

File names that group by camera. Captures used to be named RS_<session>_<capture>_cam2.mov. Now they're cam2_Drums_RS_<session>_<capture>.mov. Sort a folder by name and every file from one angle sits together, ready to drop on one editor track. The session and capture IDs still line the angles up. The name is cleaned for any desktop: letters and digits are kept, and anything else becomes a hyphen. If nothing usable is left, the file just uses the number.

How it behaves

  • The name is part of how the device introduces itself on the network, so a change applies the next time the device goes online or starts scanning. It never applies in the middle of a session.
  • The camera names its own files with the name it went online with, and the director names its copies with the name it saw. Both ends always agree.
  • The name also rides in the JSON blob written into each photo's EXIF data.

What was checked

  • New tests cover the default, a custom name winning, a spaces-only name falling back, trimming and the cap, clearing, filename cleaning (including accented names), and the new file-name shape.
  • The unit suite passes on Mac Catalyst except three tests that fail the same way on clean master there (portrait blur orientation, Settings purchase states, Stormo's real network loopback).
  • The iOS device build succeeds.
  • The two new strings are translated into all 15 languages, and every strings file passes plutil -lint. The translations haven't had a native-speaker review.
  • Not yet checked on devices: rename a phone, go online, and see the new name on the director's tiles.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

📊 Test Coverage Report

✅ 842/867 tests passed · ⏭️ 25 skipped

Metric Coverage
App code (excl. generated + vendored Theater) ██████████░░░░░░░░░░ 49.4% 🔴
Whole target ██████████░░░░░░░░░░ 50.5% 🟡

🎥 Capture & session core

File Coverage Lines
CaptureEngine.swift ███░░░░░░░░░░░░░░░░░ 13.1% 309/2366 🔴
RecordingPipeline.swift ████████████████░░░░ 80.7% 706/875 🟢
FrameStreamingCoordinator.swift ██░░░░░░░░░░░░░░░░░░ 12.0% 32/267 🔴
FrameStreamer.swift ███████████████████░ 92.6% 113/122 🟢
RemoteCmdFlatBuffers.swift ██████████████████░░ 92.3% 1215/1317 🟢
📁 Full report — 104 files
File Coverage Lines
DebugLog.swift █████████████████████ 104.8% 22/21 🟢
JPEGFrameEncoder.swift ████████████████████ 100.0% 12/12 🟢
CameraPreviewMode.swift ████████████████████ 100.0% 13/13 🟢
AppActivityMonitor.swift ████████████████████ 100.0% 31/31 🟢
AppTheme.swift ████████████████████ 100.0% 33/33 🟢
ZoomScale.swift ████████████████████ 100.0% 56/56 🟢
Messages.swift ████████████████████ 100.0% 7/7 🟢
ZoomScaleSeed.swift ████████████████████ 100.0% 14/14 🟢
MonitorChrome.swift ████████████████████ 100.0% 12/12 🟢
PeerSessionCore.swift ████████████████████ 100.0% 26/26 🟢
ClockOffsetEstimator.swift ████████████████████ 100.0% 24/24 🟢
ExposurePolicy.swift ████████████████████ 100.0% 42/42 🟢
MultipeerMessages.swift ████████████████████ 100.0% 12/12 🟢
StreamingConfig.swift ████████████████████ 100.0% 34/34 🟢
FocusedCameraControlState.swift ████████████████████ 100.0% 6/6 🟢
Locked.swift ████████████████████ 100.0% 19/19 🟢
FrameCreditWindow.swift ████████████████████ 100.0% 9/9 🟢
AppDelegate.swift ████████████████████ 100.0% 16/16 🟢
CameraLink.swift ████████████████████ 100.0% 59/59 🟢
HEICFrameEncoder.swift ████████████████████ 100.0% 17/17 🟢
PeerCompatibility.swift ████████████████████ 100.0% 42/42 🟢
RigQualityMenu.swift ████████████████████ 99.4% 167/168 🟢
DeviceScannerViewModel.swift ████████████████████ 99.0% 192/194 🟢
FrameSender.swift ████████████████████ 98.4% 184/187 🟢
CaptureSyncMetadata.swift ████████████████████ 97.7% 85/87 🟢
FocusPointMapping.swift ████████████████████ 97.6% 40/41 🟢
MultiCamChrome.swift ███████████████████░ 97.4% 38/39 🟢
MulticamViewModel.swift ███████████████████░ 96.3% 156/162 🟢
RemoteCmds.swift ███████████████████░ 96.0% 335/349 🟢
VP9FrameEncoder.swift ███████████████████░ 94.7% 195/206 🟢
DiscoveredPeers.swift ███████████████████░ 94.4% 17/18 🟢
WatchSharedTypes.swift ███████████████████░ 94.0% 236/251 🟢
WatchPreviewStreamer.swift ███████████████████░ 93.6% 44/47 🟢
MulticamController.swift ███████████████████░ 92.9% 1551/1669 🟢
FrameStreamer.swift ███████████████████░ 92.6% 113/122 🟢
RemoteCmdFlatBuffers.swift ██████████████████░░ 92.3% 1215/1317 🟢
WelcomeView.swift ██████████████████░░ 89.3% 492/551 🟢
SwiftConstants.swift █████████████████░░░ 85.4% 35/41 🟢
VideoTransferProgressView.swift █████████████████░░░ 84.0% 295/351 🟢
PortraitPreviewBlur.swift ████████████████░░░░ 81.7% 147/180 🟢
UIImage+gif.swift ████████████████░░░░ 81.6% 129/158 🟢
CameraDeviceDescriptor.swift ████████████████░░░░ 81.0% 34/42 🟢
RecordingPipeline.swift ████████████████░░░░ 80.7% 706/875 🟢
CameraProgressOverlayView.swift ████████████████░░░░ 78.6% 187/238 🟡
SessionCoordinator.swift ████████████████░░░░ 78.2% 1885/2412 🟡
UICmds.swift ████████████████░░░░ 78.1% 75/96 🟡
SettingsView.swift ███████████████░░░░░ 77.5% 636/821 🟡
FlatBufferSchemas_generated.swift (excluded from app-code metric) ███████████████░░░░░ 77.3% 909/1176 🟡
RolePickerView.swift ███████████████░░░░░ 76.2% 314/412 🟡
StreamLog.swift ███████████████░░░░░ 75.0% 15/20 🟡
WelcomeViewModel.swift ███████████████░░░░░ 74.1% 100/135 🟡
CameraRecordingTimerView.swift ███████████████░░░░░ 73.8% 127/172 🟡
MonitorView.swift ██████████████░░░░░░ 69.9% 553/791 🟡
SettingsViewModel.swift █████████████░░░░░░░ 67.4% 91/135 🟡
UIAlertController.swift █████████████░░░░░░░ 66.0% 35/53 🟡
WelcomeViewController.swift █████████████░░░░░░░ 64.1% 41/64 🟡
MulticamView.swift █████████████░░░░░░░ 62.7% 862/1374 🟡
ScannerLobby.swift ████████████░░░░░░░░ 62.5% 5/8 🟡
DeviceScannerView.swift ████████████░░░░░░░░ 62.3% 800/1284 🟡
CameraViewModel.swift ████████████░░░░░░░░ 59.9% 160/267 🟡
StoreManager.swift ███████████░░░░░░░░░ 54.6% 83/152 🟡
SceneDelegate.swift ██████████░░░░░░░░░░ 51.9% 14/27 🟡
UIViewController+SwiftUIHosting.swift ██████████░░░░░░░░░░ 48.4% 15/31 🔴
FrameStreamReceiver.swift ██████████░░░░░░░░░░ 47.7% 244/512 🔴
FrameCodecs.swift █████████░░░░░░░░░░░ 47.1% 24/51 🔴
MonitorViewModel.swift █████████░░░░░░░░░░░ 44.0% 11/25 🔴
PurchaseManaging.swift ████████░░░░░░░░░░░░ 42.0% 21/50 🔴
CameraScreenView.swift ████████░░░░░░░░░░░░ 38.1% 262/687 🔴
MulticamViewController.swift ███████░░░░░░░░░░░░░ 37.4% 131/350 🔴
ExposureControls.swift ███████░░░░░░░░░░░░░ 35.3% 126/357 🔴
EnumExtensions.swift ███████░░░░░░░░░░░░░ 33.9% 40/118 🔴
HEVCFrameEncoder.swift ██████░░░░░░░░░░░░░░ 31.9% 110/345 🔴
DeviceScannerViewController.swift █████░░░░░░░░░░░░░░░ 25.5% 126/495 🔴
CaptureTally.swift █████░░░░░░░░░░░░░░░ 25.0% 13/52 🔴
RulerPill.swift █████░░░░░░░░░░░░░░░ 24.5% 152/621 🔴
CameraRig.swift █████░░░░░░░░░░░░░░░ 23.7% 150/632 🔴
WatchSessionManager.swift ████░░░░░░░░░░░░░░░░ 20.8% 37/178 🔴
MediaProcessors.swift ███░░░░░░░░░░░░░░░░░ 17.5% 11/63 🔴
OrientationUtils.swift ███░░░░░░░░░░░░░░░░░ 16.7% 3/18 🔴
SessionDebugConsole.swift ███░░░░░░░░░░░░░░░░░ 15.0% 74/494 🔴
CaptureEngine.swift ███░░░░░░░░░░░░░░░░░ 13.1% 309/2366 🔴
FrameStreamingCoordinator.swift ██░░░░░░░░░░░░░░░░░░ 12.0% 32/267 🔴
RolePickerController.swift ██░░░░░░░░░░░░░░░░░░ 10.2% 23/226 🔴
PeerLinkStatus.swift █░░░░░░░░░░░░░░░░░░░ 7.1% 10/141 🔴
CameraCountdownTorch.swift █░░░░░░░░░░░░░░░░░░░ 4.9% 3/61 🔴
WatchRemoteCameraController.swift █░░░░░░░░░░░░░░░░░░░ 3.2% 9/279 🔴
SoundManager.swift ░░░░░░░░░░░░░░░░░░░░ 2.1% 1/47 🔴
RecordingTimer.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/52 🔴
ViewfinderGestureLayer.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/165 🔴
CameraPermissionsView.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/676 🔴
CameraHostController.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/205 🔴
RemoteShutterHelpView.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/1372 🔴
CameraPermissionErrorView.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/416 🔴
ZoomPill.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/116 🔴
PreviewSurface.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/100 🔴
PhotosAccessDeniedView.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/613 🔴
MicrophonePermissionPromptView.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/347 🔴
Photos.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/12 🔴
LocalNetworkPermissionView.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/747 🔴
PermissionManager.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/185 🔴
PhotosAccessHelper.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/347 🔴
UIAlertPresenter.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/43 🔴
MultipeerService.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/123 🔴
Data+MD5.swift ░░░░░░░░░░░░░░░░░░░░ 0.0% 0/4 🔴

Generated from 35df94b · workflow run

From iOS 16 every phone advertises the generic "iPhone", so a rig of
eight looks like eight identical cameras. Settings gets a Device Name
field (empty = the system name); the name applies the next time the
device goes online.

Capture file names now start with the camera, cam2_<name>_RS_<sess>_<cap>,
so sorting a folder groups each angle for an editor track.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@darioalessandro
darioalessandro merged commit 575ea95 into master Nov 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant