Skip to content

Add phone-only Home and connection guidance - #77

Merged
pjeweb merged 18 commits into
osb/integrationfrom
osb/pr/phone-home
Nov 15, 2026
Merged

pjeweb merged 18 commits into
osb/integrationfrom
osb/pr/phone-home

Conversation

@pjeweb

@pjeweb pjeweb commented Nov 13, 2026 •

Copy link
Copy Markdown

Why

On a box without its own camera, the phone does the streaming and sends it through the box. The person holding the phone needs to know one thing: is the box ready, is it carrying my stream, or is it still checking? Today the app opens on encoder controls for cameras plugged into the box, which says nothing about this setup.

What

  • On a phone-only box, Home now says "Ready for your phone", "Checking whether your phone uses the box" or "Carrying your phone's stream".
  • Step-by-step connection guidance for Moblin, IRL Pro or another SRT app, plus "Just internet", which works with every app.
  • Box health and link details right there, with a plain reason whenever restart or power off has to wait.
  • During the two-minute startup check you can still power off after confirming the interruption. After that, if the box can't tell whether the phone uses it, power off and restart wait.

How: the backend picks the phone view from its engine identity, also for relayed status. Box-health changes and link counts update live; Wi-Fi credentials are only shown to someone signed in locally. On a computer the screen shows Wi-Fi and address QR codes, on a phone a Copy button, and a password is never put in a QR code. The remembered connection type is a preference for this page session, not something the box verified. Usage notes are in English and Spanish, and all ten catalogs have the copy (some still marked [EN]).

Boxes with an encoder still open on Live as before.

What someone watching remotely sees: I rebuilt the phone fields on top of #63's closed remote status, so nothing from the box is passed through as is. From a phone-only box a remote viewer gets the phone Home's state and nothing else: whether it's carrying, which parts need attention and since when, and how many links are ready. No config, network, modem or Wi-Fi frames leave the box, and no passwords, stream keys or addresses. Encoder boxes send exactly what #63 allows, with no new fields.

Sits on #63, which is merged into this branch. Land #95 first so the production build stays within its size limit; #79 builds on this PR.

Screenshots

Before and after at phone and desktop widths

Mock data. The ready-state rows show the original feature comparison. Checking, carrying, health and power-control rows compare the reviewed feature before and after this follow-up.

Before After
Before: Phone Home in the ready state (390 px) After: Phone Home in the ready state (390 px)
Before: Phone Home in the ready state (1280 px) After: Phone Home in the ready state (1280 px)

| Before: Checking (390 px) | After: Checking (390 px) |
| Before: Checking (1280 px) | After: Checking (1280 px) |
| Before: Carrying a phone stream (390 px) | After: Carrying a phone stream (390 px) |
| Before: Carrying a phone stream (1280 px) | After: Carrying a phone stream (1280 px) |
| Before: A part needing attention (390 px) | After: A part needing attention (390 px) |
| Before: A part needing attention (1280 px) | After: A part needing attention (1280 px) |
| Before: Power controls after the startup check (390 px) | After: Power controls after the startup check (390 px) |
| Before: Power controls after the startup check (1280 px) | After: Power controls after the startup check (1280 px) |

How to verify

Start the frontend with mock data for a phone-only box and open Home. Step through ready, checking and carrying, pick each connection type, and open Box health. Check that power off is offered during the first two minutes and held afterwards while the state is unknown. The browser spec apps/frontend/tests/e2e/phone-home.spec.ts covers 390, 1280 and 1024×600 px, including the copy and QR content.

Testing and limits
  • Backend and frontend suites, i18n, lint, type checks, the Svelte check and the production build pass, also with Add Moblink support for connected devices #79 stacked on top.
  • Startup permission is part of live status, initial connections and reconnects, and expires at 120 seconds even if activity stays unknown.
  • Moblin relay and credential support (Add Moblink support for connected devices #79) and phone-specific sending numbers are separate work; the screen says when something isn't available on this box yet.
  • Remote privacy: the phone fields and why they may cross are recorded in docs/REMOTE-STATUS.md and the regenerated inventory. A sweep plants an identifier in every inventoried field and checks that neither remote path sends it from a phone-only box. Signing in to the remote service still uses Bound remote status with an explicit payload allowlist #63's narrowed message there, and the frames a phone-only box holds back on purpose don't count as rejected payloads. The remote privacy tests pass all together and one file at a time, single worker.
  • Not tried on hardware.

Risks

Encoder boxes are unaffected. On a phone-only box Home looks completely different, so existing users will notice the new screen; the power rules only get stricter after the startup check.


Checklist

  • Docs updated if behavior or structure changed (Rule A: AGENTS.md within budget, README, docs/, versions.yaml)
  • User docs (Rule G): no user-visible change, OR ceralive-docs PR updates English and Spanish, plus ceralive-website PR if a landing claim changed
  • Started from updated main; branch rebased on latest canonical branch (Rule B)
  • Rule D local-scratch reference check passes for tracked files
  • Tests pass; QA evidence attached or linked

@pjeweb
pjeweb removed this pull request from stack #90 November 14, 2026 08:40
@pjeweb
pjeweb added this pull request to stack #92 November 14, 2026 08:40
@pjeweb
pjeweb changed the base branch from osb/pr/srt-forward to osb/integration November 14, 2026 08:40
@pjeweb
pjeweb removed this pull request from stack #92 November 14, 2026 08:41
@pjeweb
pjeweb added this pull request to stack #93 November 14, 2026 08:41
Phone-only boxes now build their remote status inside the closed DTO
instead of passing producer objects through. On a box with setup engine
"none", both transports send status frames only, and each frame carries
typed leaves: phone_box, carrying.state/startup, box_health[].part/since
and phone_links.ready/sending. Encoder status gets no new fields.

Encoder authentication keeps the narrowed send, and the phone-box choice
happens after it, inside projectRemoteLegacyFrame. Designed phone-box
withholds no longer count as projection drops or use up the warning.
The inventory decisions and REMOTE-STATUS.md record the phone fields,
and a planted-identifier sweep covers phone boxes on both transports.
On a phone box the legacy wrapper withholds every non-status frame by design. The test checks that those sends still complete their callback, send nothing, and leave the projection drop counter and its one-time warning untouched.
@pjeweb
pjeweb merged commit 8ffde20 into osb/integration Nov 15, 2026
3 checks passed
pjeweb added a commit that referenced this pull request Nov 16, 2026
@pjeweb pjeweb added the upstream: waits for intent Needs an issue or maintainer agreement before an upstream proposal. label Nov 16, 2026
pjeweb added a commit that referenced this pull request Nov 17, 2026
pjeweb added a commit that referenced this pull request Nov 17, 2026
pjeweb added a commit that referenced this pull request Nov 18, 2026
pjeweb added a commit that referenced this pull request Nov 18, 2026
pjeweb added a commit that referenced this pull request Nov 19, 2026
pjeweb added a commit that referenced this pull request Nov 21, 2026
pjeweb added a commit that referenced this pull request Nov 22, 2026
pjeweb added a commit that referenced this pull request Nov 23, 2026
pjeweb added a commit that referenced this pull request Nov 24, 2026
pjeweb added a commit that referenced this pull request Nov 24, 2026
@pjeweb

pjeweb commented Nov 25, 2026

Copy link
Copy Markdown
Author

Still carried in the integration train and not upstream, so it continues as #254.

pjeweb added a commit that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream: waits for intent Needs an issue or maintainer agreement before an upstream proposal.

Development

Successfully merging this pull request may close these issues.

1 participant