Skip to content

OSB: clearer rig panel and join sheet, with the OpenStreamBox look - #2

Draft
pjeweb wants to merge 1 commit into
osb/T957from
osb/T977
Draft

pjeweb wants to merge 1 commit into
osb/T957from
osb/T977

Conversation

@pjeweb

@pjeweb pjeweb commented Nov 17, 2026

Copy link
Copy Markdown

I noticed the rig screens said too little about what was actually confirmed. A tap on HIDE or Move stream showed a toast and nothing else, a failed join was one red line, and a phone that was removed from the rig fell back to the empty panel without saying why.

What it adds

  • One status with a headline and a line under it, drawn as a shape, a word and a colour together. Only what the hub reported is listed.
  • Connect and Disconnect, Move stream to phone, HIDE and Show the picture each show what was asked for until the hub's state confirms it, for example "Hide requested, not confirmed yet".
  • A join sheet that ends in "Joined your streaming setup", and plain messages for an expired code, an unreachable hub, a wrong hub and a removed phone.
  • The OpenStreamBox look in light and dark, behind a build condition. Text scales with Dynamic Type and the controls have VoiceOver labels.

How

The wording and the rules for what each control shows are plain functions in Moblin/Hub/HubProtocol.swift, with tests. The views in Moblin/View/Hub/ only draw them. Colours, shapes and sizes are in HubLook.swift. With OSB_BRAND (set through MOBLIN_FORK_FEATURES in Config/Fork.xcconfig) they use paper and forest ink and the latch-case mark. Without it they use the system's colours, so the default build is unchanged. "Live" is only said for the hub's output to the platform, and nothing reads "not live" while it is live.

Sits on #1.

Details
  • A request stays "requested" until the hub's state shows it. After 12 seconds without that, the control goes back and a note says the hub hasn't confirmed, so nothing is assumed.
  • The decision waiting on a screen is its only filled button. HIDE is a heavy outline in the text colour and sits above Disconnect.
  • Debug builds can show every state without a hub (-HubShowcase <name>), and run the panel's actions from system notifications on a Simulator. Fork/README.md describes both.
  • Checked: the hub test suites on an iOS Simulator, a build with the build condition off, the command line probe in tests/osb-hub, and a run on a Simulator against a local hub (join, Connect, Move stream to phone, HIDE, Show the picture). The Simulator has no camera, so a test picture stood in for the phone's feed in that run.
  • Not run: swiftformat and swiftlint.

The rig screens said too little about what was confirmed. A tap on HIDE or
Move stream showed a toast and nothing else, a failed join was one red
line, and a phone removed from the rig fell back to the empty panel without
saying why.

- One status with a headline and a line under it, drawn as a shape, a word
  and a colour together. "Live" is only said for the hub's output; nothing
  reads "not live" while it is live. Only what the hub reported is listed.
- Connect and Disconnect, Move stream to phone, HIDE and Show the picture
  each show what was asked for until the hub's state confirms it ("Hide
  requested, not confirmed yet"), and give up after 12 seconds without
  assuming anything.
- The join sheet ends in "Joined your streaming setup" with what the rig
  set and one button. An expired code, an unreachable hub and a wrong hub
  each say what happened and what to do. A phone that was removed keeps a
  note on the panel until it joins again.
- The decision waiting on a screen is its only filled button. HIDE is a
  heavy outline in the text colour and sits above Disconnect.
- With the OSB_BRAND build condition (MOBLIN_FORK_FEATURES in
  Config/Fork.xcconfig) the screens use paper and forest ink and the
  latch-case mark, in light and dark. Without it they use system colours.
- Text styles scale with Dynamic Type, and each status and control has a
  VoiceOver label and hint.

Debug builds can show every state without a hub (-HubShowcase <name>) and
run the panel's actions from system notifications, for screenshots and
Simulator runs. Fork/README.md describes both.
@pjeweb pjeweb added fork-only Downstream-specific change; this change is not intended for upstream. stacked Sits on another open pull request. labels Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fork-only Downstream-specific change; this change is not intended for upstream. stacked Sits on another open pull request.

Development

Successfully merging this pull request may close these issues.

1 participant