Commit Graph
4 Commits
  • refactor(ui): separate shared feedback from room dialogs
    Move shared diagnosis, error presentation and help to their consumer layer, and extract the existing settings-action hook from the room dialog. Remove the old paths without forwarding aliases. Living components now have three direct domain imports instead of ten; static file-level runtime cycles were already absent, so this is ownership cleanup rather than a claimed cycle repair. Full Web validation, TypeScript and production bundling cover the moved consumers.
  • refactor(client): remove exports only their tests called
    The orchestration that used these helpers was retired in 5d4a67cf and
    5126b9a0, leaving them reachable only from their own tests. The Browser-
    rejected video check and its error, the encoded-frame maximum, the quality
    label and whole-settings comparison (with the audio comparison it alone
    used), and the unused PeerSnapshot, ChannelRequest and NativePageMpdTrack
    types go. The video-only comparison, which the encoding pool and transport
    still use, stays.
    
    currentLang had no product caller; the tests that read the language through
    it now read it through say(), the accessor the product uses.
  • feat(screen): show a picture's Watch and Retry failures with that picture
    A failed Watch or Retry picture landed in the page banner, away from the
    picture it was about. The failure now stays with the picture: under its
    offer while it is not watched, at the lower edge of its tile's wait area,
    or in its video status area. It clears on the next attempt at that
    picture, when its video composites a frame, or on dismissal, since an
    operation result carries a dismiss button.
    
    The result is owned by the page, one entry per publication, because the
    offer, the tile, the picture help dialog and the picture panel can all
    close or unmount before the operation ends: a failed watch keeps the
    source as an offer, and a retry that fails after withdrawing turns its
    tile back into one. useKeyedSettingsAction keeps one result per key with
    the lifetime rules of useSettingsAction, whose failure-code mapping it now
    shares through settingsActionFailure. Watch and retryPicture accept the
    session's existing function form of reportError, so a failure whose owner
    has gone (another site or session) still reaches the banner instead of
    being dropped. All other failures still go to the banner.
    
    Verified with npx tsc -b --pretty false and npx vitest run
    tests/channel-session.test.ts tests/channel-presentation.test.ts
    tests/watch-presentation.test.ts tests/channel-stage-picture.test.ts
    tests/retry-picture-controls.test.ts tests/deferred-module-failure.test.ts
    tests/viewer-playback.test.ts, with new tests that a control-owned watch or
    retry leaves the banner empty unless its owner is gone, that the failure
    renders in the offer, wait area and video status area, and for the shared
    failure-code mapping.
  • fix(runtime): preserve source intent and isolate scoped failures
    Keep media selections explicit across refreshed catalogs and let page playback commands progress while buffering. Align file availability with eligible sources, restore independent rooms after policy refusal, and retain pending Unicode releases. Correct Android root failure reporting, bookmark refresh, lazy-module guidance and compact playback feedback; use the shared native modal backdrop for the title bar.