Skip to content

feat: Click-to-Call telephony + internal video chat session sharing - #3370

Merged
jeanfbrito merged 85 commits into
masterfrom
feat/telephony-videoconf-session
Jul 2, 2026
Merged

jeanfbrito merged 85 commits into
masterfrom
feat/telephony-videoconf-session

Conversation

@jeanfbrito

@jeanfbrito jeanfbrito commented Jun 22, 2026 •

Copy link
Copy Markdown
Member

Click-to-Call + Internal Video Chat Session Sharing

This PR combines two features on one branch: Click-to-Call telephony (originally #3325) and the internal video chat window session-sharing fix (originally #3359). The video-call branch was based on newer master, so this branch also brings the telephony feature up to current master (Fuselage 0.78 SettingField/AccordionItem conventions, E2ePdfPreviewSizeLimit, version chain 4.15.0).


Part 1 — Click-to-Call: Dial Phone Numbers Directly from Any App

Summary

You can now click phone number links (tel: and callto:) in any application — browser, email client, CRM, PDF viewer — and have Rocket.Chat open with the number ready to dial. The feature is fully opt-in: a master toggle in Settings > Voice & Video controls everything. When enabled, a new global keyboard shortcut lets you dial whatever phone number is on your clipboard from anywhere on your system.

What's New

Added

  • Click-to-Call from Any App: Clicking a phone number link anywhere on your system (browser, email, calendar, CRM, PDF) opens Rocket.Chat with the number pre-filled in the call widget. Works with both tel: and callto: links, in all common formats — international, dashed, parenthesized
  • Works When App Is Closed: Clicking a phone link launches Rocket.Chat if it isn't running, then opens the dial pad once the app finishes loading
  • Multi-Workspace Call Routing: When connected to multiple Rocket.Chat workspaces, a dialog lets you choose which workspace handles the call — with an option to remember your choice so you're not asked again
  • Global Dial Shortcut: Bind a keyboard shortcut (in Settings > Voice & Video) that focuses Rocket.Chat and opens the dial pad from anywhere. If a phone number is on your clipboard, it's pre-filled automatically
  • Preferred Workspace Setting: Choose a default workspace for all telephony calls, or leave it on "Auto" to be asked each time
  • Telephony Master Toggle: All telephony features are off by default. Enable them in the new Settings > Voice & Video tab. Disabling the toggle cleanly unregisters Rocket.Chat as the phone-link handler and removes the global shortcut
  • Conflict Detection: If another application is already registered as the phone-link handler when you turn on Telephony, Rocket.Chat asks you to confirm before taking over — so you won't silently break another app
  • Voice & Video Settings Tab: Phone-call and video-call controls are now grouped in a dedicated Settings > Voice & Video tab (previously scattered in Settings > General). The tab uses collapsible sections so you can focus on what you need
  • Default-Handler Diagnostics: An expandable panel in Settings > Voice & Video shows the real-time registration status of all phone-link checks. The panel header summarizes the status at a glance ("All checks pass", "2 issues", etc.). Use "Copy diagnostics" to share your configuration with support

Improved

  • Phone Number Compatibility: Phone numbers containing parentheses, dashes, dots, or percent-encoded characters now open correctly
  • Protocol Registration: Rocket.Chat registers as a handler for telephony URL schemes only when the Telephony toggle is enabled — a fresh install with the feature disabled does not claim those schemes
  • Settings Organization: Video call, screen-capture, and telephony controls are separated from unrelated general preferences into their own tab

Fixed

  • Special Character Phone Numbers: Numbers encoded as URL-escaped characters (e.g. %2B for +) now decode correctly before being passed to the dial pad
  • Server Selection Dialog: The workspace selection dialog now attaches correctly to the main window in all cases

Platform Notes

  • macOS: Phone links work from Safari, Mail, Contacts, and any app that renders tel: links. Rocket.Chat's Info.plist declares tel/callto so macOS lists it as a candidate even before the toggle is enabled — but it only becomes the default handler once the user enables Telephony
  • Windows: Registry keys are written by both NSIS and MSI installers; the runtime setAsDefaultProtocolClient call for tel/callto only fires when the toggle is on. Works from Outlook, Edge, Chrome, and other apps
  • Linux: Desktop entry includes MIME type handlers; works with xdg-open on both X11 and Wayland. The .desktop MimeType list is baked at install time, so the OS may list the app as a candidate before the toggle is enabled

Part 2 — Internal Video Chat Window: Share Main Webview Session (merged from #3359)

Problem

Internal conferences opened via openInternalVideoChatWindow ran in a webview hardcoded to the isolated persist:jitsi-session partition, so they did not share cookies or localStorage with the server webview they were opened from. Electron scopes cookies/localStorage to the (partition, origin) pair, so a same-origin conference loaded unauthenticated (the login token lives in localStorage under the server origin).

Fix

Load the call webview in the originating server's partition (persist:<serverUrl>, resolved from the caller webContents) so the call shares the main webview's session.

Because session-level handlers are per-session, sharing the session means the call window's handlers would otherwise clobber the main webview's:

  • Screen sharing now uses a single unified display-media handler that routes by originating frame: in-call requests open the picker in the call window; main-app requests fall back to the server-view picker. The plain server-view handler is restored when the call closes.
  • Permission handler teardown reset is no longer applied to the live main webview on a shared session.

Production hardening

Per-window state instead of a mutable global

The call's partition was tracked in a module-level global read at several lifecycle points that span async ticks (cleanup, screen-share routing, teardown restore). A second call opening could mutate it mid-flight. State is now captured per window in an ActiveCall record ({ partition, isSharedSession, serverWebContentsId }); every lifecycle decision reads the per-window value. The global is narrowed to renderer-handshake reads only.

Handler restore on every teardown path

Restore is now idempotent and fires from every teardown path: closed, cleanupVideoCallWindow, and a new render-process-gone listener. It restores both the server-view display-media handler and the permission handler (extracted into an exported setupServerViewPermissionHandler shared by the install site and the restore site). Fallback (isolated) sessions are skipped.

Screen-share routing evaluated at request time

The per-window record is snapshotted at attach and the routing branch is evaluated at display-media request time; the call-window identity check stays live.

State null-out guarded by identity

Terminal teardowns now null only their own state (if (activeCall === capturedCall) activeCall = null), so a stale prior-window teardown can't wipe a newer call's record.

Open-window race serialized

The open handler is serialized through a promise-chain mutex, so each open runs to completion before the next begins, closing a rapid-double-open race that orphaned a window with leaked handlers.

Unresolved-server fallback

When the originating server can't be resolved, the call falls back to persist:jitsi-session (stable isolated storage), and isSharedSession is false so none of the shared-session restore logic engages.

Additional lifecycle bridges

  • videoCallWindow.close() bridge — the call renderer can ask the main process to close its own window (a renderer can't close a main-process-created window directly).
  • Same-conference focus — reopening a conference whose window is already open focuses (and un-minimizes) the existing window instead of tearing it down and recreating it. ActiveCall carries the conference url to support this.
  • open-in-main-window bridge — the standalone call window can navigate the main app window to an in-app route (e.g. /channel/...) and bring it to the front. Routes are sanitized (relative-only) on both the preload and main sides.
  • External-link routing — target="_blank" / window.open and external-protocol self-navigations from the conference go to the system browser instead of spawning Electron popups.

Review fixes (post-#3359 review)

  • Webview-partition permission handler — conference mic/cam requests originate in the webview's partition session, not the host window's. The media permission handler now lives on the webview session, installed only for the isolated fallback partition (a shared session already carries the server-view handler, which must not be clobbered).
  • Popup policy hardened — the conference window-open handler denies popups by default, allowing only in-app about:/blob: schemes and routing external http(s) to the system browser, so a compromised frame can't open javascript:/data:/file: Electron windows.
  • Partition state set only when a window is created — activeCall/partition resolution moved after URL validation and the g.co external redirect, so a bailed-out open can't leave stale state for a later teardown to misread.
  • Permission-handler error handling — the server-view media/openExternal branches catch rejections and deny instead of leaving the request hanging; the preload open-in-main-window invoke swallows its rejection.
  • Dead code removed — no-op awaits on synchronous getNormalBounds() / getURL().

Files changed (video-call)

  • src/videoCallWindow/ipc.ts — per-window state, idempotent restore from all teardown paths, request-time routing, null-out guards, open-handler serialization, webview-partition permission handler, popup-scheme policy, deferred partition assignment.
  • src/ui/main/serverView/index.ts — extracted/exported setupServerViewPermissionHandler.
  • src/videoCallWindow/video-call-window.ts — receives the partition from the main process instead of hardcoding it.
  • src/ipc/channels.ts — partition added to the request-url response type.
  • src/screenSharing/serverViewScreenSharing.ts — handleServerViewDisplayMediaRequest for routing main-app requests back to the server-view picker.
  • src/videoCallWindow/preload/index.ts — openInMainWindow / close bridges with relative-route sanitization.
  • src/servers/preload/navigateToRoute.ts — buffered single-listener navigate-to-route bridge wired into preload startup.
  • src/ui/main/menuBar.ts — DevTools targets the focused window before falling back to the root window.
  • src/videoCallWindow/main/ipc.main.spec.ts, src/servers/preload/navigateToRoute.spec.ts — regression tests.

Merge integration notes

The video-call branch (#3359) was based on a newer master than the telephony branch (#3325, 14 commits behind). Merging therefore also synced telephony up to current master. Conflicts were resolved by integrating both sides:

  • PersistableValues.ts — chained the migration versions: kept 4.14.0 (telephony: isTelephonyEnabled, telephonyPreferredServer, telephonyGlobalShortcutConfig) and layered master's 4.15.0 (e2ePdfPreviewSizeLimit) on top so the migration chain stays sequential.
  • GeneralTab.tsx — adopted master's new layout and settings entries (ScreenCaptureFallback, InternalVideoChatWindow, VideoCallWindowPersistence, E2ePdfPreviewSizeLimit, ClearPermittedScreenCaptureServers) while keeping <TelephonyServer />.
  • AvailableBrowsers.tsx / ThemeAppearance.tsx / TelephonyServer.tsx — adopted master's SettingField wrapper convention. TelephonyServer preserves telephony behavior master lacked (disabled={!isTelephonyEnabled}, safeHostname).
  • Fuselage 0.78 migration — Accordion.Item → standalone AccordionItem in VoiceVideoTab.tsx and TelephonyDiagnostics.tsx (the Fuselage upgrade master carried removed the compound API).

Later merges onto this branch

  • fix: share main webview session with internal video chat window #3359 review fixes — the post-review hardening listed under Review fixes above was merged in after the initial integration. Conflicts in serverView/index.ts and videoCallWindow/ipc.ts were resolved by keeping the deferred partition placement (fix OAuth not working #4) on top of the upstream protocol-validation / exact g.co host-match guards.
  • master test-coverage sync — master's coverage tooling (Codecov config, Phase 1–3 unit/RTL tests) was merged in to keep the branch current. Conflicts in package.json / yarn.lock over @testing-library/* were resolved by keeping the newer stack (react ~16.3.2, dom ~10.4.1, jest-dom ~6.9.1) and adding master's user-event ~14.5.2; yarn.lock was regenerated via yarn install.

Verification

  • tsc --noEmit: clean (post-merge)
  • yarn lint: clean on changed video-call files
  • videoCallWindow/main/ipc.main.spec.ts: passing on the merged tree
  • Full Jest suite (incl. master's newly merged RTL coverage tests under @testing-library/react v16): left to CI on this PR

Related

Summary by CodeRabbit

  • New Features
    • Added telephony tel:/callto: support with dialpad integration, server selection, global shortcut, and actionable default-handler prompts plus diagnostics in Settings.
    • Added the Voice & Video settings tab, including telephony configuration and diagnostics.
    • Enhanced Windows packaging to support configurable default tel:/callto: associations during enterprise installation.
  • Bug Fixes / Improvements
    • Improved deep-link/telephony safety, IPC buffering with expiry, and stability of video-call shared-session routing.
  • Localization
    • Expanded telephony UI translations across 16+ languages.
  • Documentation
    • Updated enterprise default-app association rollout/verification guidance and added new QA authoring/export docs.
  • Tests
    • Added/expanded automated coverage for telephony, diagnostics, installers, and QA flow validation/export.

jeanfbrito added 30 commits May 8, 2026 18:43
Register Rocket.Chat as OS handler for callto: and tel: URL schemes
on Windows, macOS, and Linux. When a telephony link is clicked in any
app, RC launches or focuses and dispatches a typed IPC event to the
server webview with the parsed phone number.

- Register callto/tel schemes in electron-builder.json (all platforms)
- Add parseTelephonyLink() with number normalization and callto:// support
- Add performTelephonyCall() with multi-server dialog + remember choice
- Expose onTelephonyCallRequested callback on RocketChatDesktop API
- Persist telephonyPreferredServer via selectPersistableValues
- IPC listener registered before onReady to avoid cold-start race
Tests cover parseTelephonyLink (tel:/callto: protocols, number
normalization, callto:// double-slash format, extension syntax,
edge cases) and performTelephonyCall (0/1/2+ servers, preferred
server persistence, dialog remember checkbox).
…duplicate IPC listener

- Pass getRootWindow() as first argument to dialog.showMessageBox so
  the server selection prompt appears as a modal sheet attached to the
  main window (consistent with all other dialogs in the codebase)
- Add idempotency guard to listenToTelephonyRequests to prevent
  duplicate IPC handler registration during hot-reload dev cycles
Add GitNexus section with impact analysis, query, and context tools.
Gitignore .gitnexus index directory.
Dispatch WEBVIEW_GIT_COMMIT_HASH_CHANGED from server info response.
Match supportedVersions exceptions using sha:<hash> prefix against
the server's git commit hash for per-build version overrides.
Add TelephonyServer component to Settings > General tab with a
Select dropdown to choose which server handles tel:/callto: links.
Hidden when only one server exists. "Auto (ask each time)" option
clears the preference and reverts to dialog behavior.
electron-builder v26 rejects MimeType as a direct child of
linux.desktop — only desktopActions and entry are valid properties.
Move it inside desktop.entry where it belongs.
Replace hardcoded English strings in the telephony dialog with i18n
t() calls and add telephonySelectServer translation keys to all 22
locale files.
…selection

Replace dialog.showMessageBox with an in-app modal that shows server
favicons, names and hostnames — matching the sidebar appearance. Scales
to many servers via a scrollable list and includes a "remember this
choice" checkbox.

Also hardens the telephony flow:
- Mutex prevents concurrent tel: links from opening duplicate modals
- 120s timeout on modal promise prevents hanging if renderer crashes
- 10s timeout on webContents polling prevents infinite loop if server
  is removed between selection and view creation
Drop Margins wrapper from the modal and the Tile container from rows.
Title→message margin x8→x4, message→list x16→x12, rows now use
paddingBlock x6 / paddingInline x8 instead of Tile padding x12.
…ver modal

Adds 20 tests across three new spec files covering the telephony deep-link
runtime path that was previously only validated by deepLinks/main.spec.ts.

- src/telephony/renderer/preload.spec.ts (6 tests):
  IPC bridge state machine — listenToTelephonyRequests guard, pendingPayload
  buffer/replay, callback replacement, ipcRenderer.on registration.

- src/ui/components/SettingsView/features/TelephonyServer.spec.tsx (8 tests):
  Settings dropdown — hide when servers.length <= 1, option generation
  (auto + per-server), value binding to telephonyPreferredServer, dispatch
  of TELEPHONY_PREFERRED_SERVER_SET (null for auto, URL string otherwise),
  hostname fallback when server title missing.

- src/ui/components/TelephonyServerSelectModal/index.spec.tsx (6 tests):
  Modal flow — visibility gating on dialogs.telephonyServerSelect.isOpen,
  ServerItem rendering per server, dispatch payload shape on click with
  rememberChoice on/off, close dispatch with null payload, rememberChoice
  reset after close.

Adds @testing-library/react, @testing-library/jest-dom, and
@testing-library/dom (peer) as devDependencies. Fuselage Select and Dialog
are mocked at module level since they rely on React-Aria and native
<dialog>.showModal() respectively, which don't drive cleanly in
@kayahr/jest-electron-runner's renderer environment.

Spec paths follow the existing renderer testMatch convention:
src/<module>/<subdir>/<file>.spec.tsx — a flat src/telephony/preload.spec.ts
would be silently dropped by jest's testMatch globs.
tel:%2B15551234 left %2B encoded, producing phoneNumber '%2B15551234'
instead of '+15551234'. decodeURIComponent runs before strip pass;
malformed escapes return null (treated same as other invalid input).
…tive

Git commit hashes are conventionally case-insensitive. SHA-bb83777
should match same as sha-bb83777.
- TelephonyServer: extract hostname via safeHostname helper to prevent
  settings page crash on malformed server URLs (new URL() throws).
- TelephonyServerSelectModal: associate 'Remember this choice' label
  with checkbox via htmlFor/id for assistive tech.
- ServerItem: render Tile as native button (is='button' type='button')
  so keyboard users get Tab focus and Enter/Space activation.
* feat(telephony): add global shortcut to dial clipboard number

* fix(telephony): harden global shortcut handling

* refactor(telephony): share dialpad opener

* test(telephony): stabilize shortcut notification click (#3331)

* test(telephony): stabilize shortcut notification click (#3333)
* feat(telephony): add global shortcut to dial clipboard number

* fix(telephony): harden global shortcut handling

* refactor(telephony): share dialpad opener

* test(telephony): stabilize shortcut notification click
Updated the AvailableBrowsers, TelephonyGlobalShortcut, TelephonyServer, and ThemeAppearance components to include a marginBlock of 'x16' on the Field components for improved spacing and layout consistency.
Add `isTelephonyEnabled` setting (default off) to gate the telephony
feature end-to-end:

- New persisted `isTelephonyEnabled` boolean with action, reducer, and
  selector entry; surfaces as a master toggle in Settings > General.
- `TelephonyServer` and `TelephonyGlobalShortcut` controls remain
  visible but disabled while the master toggle is off.
- Global shortcut config selector returns the disabled config when the
  master toggle is off, so the existing watcher auto-unregisters any
  active accelerator on toggle-off.
- `tel:`/`callto:` deep links short-circuit when the master toggle is
  off.
- OS-level protocol registration for `tel`/`callto` moves out of the
  unconditional startup loop into a new reactive
  `setupTelephonyProtocolHandlers`, which calls
  `setAsDefaultProtocolClient` / `removeAsDefaultProtocolClient` in
  response to toggle changes. `rocketchat:` continues to register at
  startup unchanged.

The macOS `Info.plist` and Linux `.desktop` files declared by
electron-builder will still list the app as a candidate handler for
`tel`/`callto`, but it will never be set as default unless the user
opts in at runtime.
DMV-1 calls for a first-run prompt warning the user that Teams, Zoom,
or Skype may already own the tel:/callto: handler and that they must
confirm Rocket.Chat as default in OS settings themselves. Windows 10/11
hash-protects UserChoice so `setAsDefaultProtocolClient` only registers
the app as a candidate; without the prompt, users have no way to know
the OS silently kept the prior default.

Trigger every off->on transition of the master `isTelephonyEnabled`
toggle (not literal first run — the toggle is opt-in and is the natural
moment of user intent). Seed the transition tracker via a synchronous
`select` before subscribing, so returning users who reopen the app
with telephony already enabled are not re-prompted.

- New `TelephonyDefaultHandlerPromptModal` Fuselage modal (title, two
  body paragraphs, "Open System Settings" + "Got it" buttons), mounted
  in Shell next to the existing telephony modal.
- Three new void actions (`_OPEN`, `_CLOSE`, `_OPEN_SETTINGS_CLICKED`)
  and a `telephonyDefaultHandlerPrompt` sub-reducer in `dialogs.ts`.
- Main-process `setupTelephonyDefaultHandlerPrompt` watches the master
  toggle and dispatches OPEN on each off->on flip. Listens for the
  settings-button click and routes per platform:
  - Windows: `shell.openExternal('ms-settings:defaultapps')`
  - macOS: opens FaceTime preferences (where tel: default lives)
  - Linux: spawns `gnome-control-center default-apps` or
    `kcmshell5/6 componentchooser` based on `XDG_CURRENT_DESKTOP`;
    unknown DEs log a tip and rely on the modal's verbal instructions.
- i18n keys under `telephony.defaultHandlerPrompt`.
- 13 new tests covering transition detection, idempotency, teardown,
  and each platform branch.
The renderer Jest project's `testMatch` requires at least one
subdirectory between `src/<module>/` and the spec, so
`src/app/PersistableValues.spec.ts` was silently skipped. Moved the
file under `src/app/__tests__/`, fixed the relative import, and
expanded the migration assertion to cover `isTelephonyEnabled`.
Documented the constraint in `CLAUDE.md` so future renderer specs are
placed correctly.
…s UI

Split telephony, video-call and screen-capture controls out of the General
settings tab into a dedicated Voice & Video tab so the telephony stack has
room to grow without crowding the rest of the settings.

Diagnostics UI now collapses by default behind an Accordion with a status
Tag summary in the title (pass/issues/warnings/checking). Per-check rows
use Tag variants for status (primary/danger/warning) with flexShrink
guards so the badge does not collapse to an ellipsis on narrow widths.
Check labels were rewritten in user-facing terms (Click-to-call,
Click-to-conference) and platform names are humanized (darwin -> macOS).
Long handler paths are stripped from the inline details (full path still
ships in the copy-diagnostics JSON) so the row layout stays clean.
…stration

Adds telephony/get-diagnostics IPC channel and runtime module, wires
TelephonyDiagnostics into the settings panel, and registers Rocket.Chat
in the Windows RegisteredApplications/Capabilities surface so Default
Apps exposes it for tel and callto.
…skip darwin

Detects per-user vs per-machine installs from process.execPath and opens
ms-settings:defaultapps?registeredApp{User,Machine}=Rocket.Chat so the
Default Apps page lands on the app-specific surface. macOS has no
equivalent settings pane, so the open-settings handler is now a no-op
and the modal hides body2 plus the Open Settings button on darwin.
…ntry

If a watcher synchronously dispatches an action that re-triggers the
same subscription, the recursive call previously saw a stale prev
value. Capture prev into a local before assigning curr to it, so the
recursive watcher invocation observes the freshly applied state.
rodrigok and others added 6 commits June 24, 2026 10:22
The internal video-chat window is a BrowserWindow created by the main process,
so the renderer's own window.close() can't close it. Expose a close() method on
the window.videoCallWindow bridge that asks the main process to do it.

- Preload: close: () => ipcRenderer.send('video-call-window/close') (no payload).
- Main: ipcMain.on('video-call-window/close') resolves the window from the sender
  (with a hostWebContents fallback for the webview-guest sender) and calls
  win.close() when it's live. Resolving from the sender means a renderer can only
  close its own window.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ference

Clicking "join" again from the main window while the video call window was
already open tore the window down and recreated it. When the requested
conference URL matches the one already open, focus the existing window instead
(restore if minimized, show, focus) and return early, leaving activeCall,
provider, credentials and partition untouched. A different URL still
closes + recreates as before.

Track the conference URL on activeCall so the decision uses lifecycle state
rather than the renderer-handshake globals.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…wser

The internal video-chat window didn't route external links to the system
browser like the main window does, so target="_blank" / window.open links from
the conference chat (which run in the webview guest, whose setWindowOpenHandler
was unset) spawned a new Electron window instead.

Set the guest webview's window-open handler on attach: http(s) popups return
{ action: 'deny' } and open via the system browser (openExternal), smb:// is
denied, anything else stays in-app. Also add a will-navigate handler that sends
external-scheme target="_self" navigations (mailto:, tel:, custom schemes) to
the browser, while leaving http(s) self-navigations in the webview so the
conference's own flows (auth redirects, etc.) keep working.

Extract the shared deny/openExternal policy into a helper reused by the host
window's existing handler so host and guest behave identically.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
- media/openExternal permission branches in serverView now catch
  rejections and deny instead of leaving the request hanging
- video call window-open policy denies popups by default, allowing only
  about:/blob: in-app schemes (closes javascript:/data:/file:/smb:)
- install the media permission handler on the conference webview's
  partition session (isolated fallback only) so mic/cam requests route
  through handleMediaPermissionRequest instead of Electron's default
- resolve the partition / set activeCall only inside the
  window-creating branch, after URL validation and the g.co redirect,
  so a bailed-out open can't leave stale state for teardown to misread
- swallow the fire-and-forget open-in-main-window invoke rejection
- drop no-op awaits on synchronous getNormalBounds()/getURL()
- add regression tests for popup scheme policy and the fallback-session
  permission handler
# Conflicts:
#	src/ui/main/serverView/index.ts
#	src/videoCallWindow/ipc.ts
# Conflicts:
#	package.json
#	yarn.lock
@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

macOS installer download

Address designer review on the General tab:
- Hide section heading labels (keep the grouped layout/order)
- Stack select/input controls below their description, full-width
- Move per-control caveats ("Requires app restart", "Reloads app on
  change") into dim c1 hint sublines instead of inline sentences
- Drop the redundant "System default uses..." browser sentence
- Render the video-calls description without bold product names
- Make Clear screen capture permissions a secondary danger button
- Use smart quotes around "do not ask again" in calling copy
- Group the PDF preview size limit next to Hardware acceleration

Full-width controls: SettingField wraps the control in a flex row so
Fuselage Select/InputBox (flex-grow:1) fill the column; drop the
maxWidth caps. Caveat sublines use fontScale c1 (regular) not micro
(which is bold). Strings updated across all populated locales.
Route every settings row through Fuselage's canonical
FieldLabel / FieldDescription / FieldHint stack instead of
misusing FieldHint for description text and hand-rolling hints
as <Box fontScale='c1'>.

- Add shared ToggleField component (label+toggle row, then
  FieldDescription, optional FieldHint, children escape hatch)
- Add description prop to SettingField (Select/Input rows)
- Migrate all 13 toggle and 5 select feature components
- Split the "App restarts when this option is changed" sentence
  out of videoCallScreenCaptureFallback.description into a
  dedicated hint key, across all 22 locales
- Backfill option keys missing from ar, it-IT, nb-NO, nn, se, zh
- ScreenCaptureFallback: replace Math.random id with useId
Box color= prepends the font- prefix internally, so passing
color='font-default' produced an invalid token and logged
'invalid color: font-default' on every render. Use the bare
'default' token at all 5 call sites (MarkdownContent, DocumentViewer,
PdfContent, TopBar).
- Wrap serverFilterOptions and the filtered downloads list in
  useMemo over a stable downloads slice, eliminating the react-redux
  'Selector returned a different result' rerender warning
- Add aria-label to the icon-only arrow-back IconButton in
  DownloadsManagerView and SettingsView for screen-reader access
…oconf-session

# Conflicts:
#	package.json
#	src/servers/preload/api.ts
@jeanfbrito

Copy link
Copy Markdown
Member Author

/layne exception-approve LAYNE-11ad45b92add5845 LAYNE-cd698cff8f3400a2 LAYNE-acc7fa1ec273e65b reason: Hardcoded command + fixed argument vectors (gnome-control-center default-apps, kcmshell5/6 componentchooser) with stdio: 'ignore', no shell invocation, no user- or network-controlled input. No command-injection surface — these spawn calls open the Linux OS default-apps settings pane so the user can set Rocket.Chat as the tel:/callto: handler.

The master merge added ScreenCaptureFallback, InternalVideoChatWindow, and
VideoCallWindowPersistence to GeneralTab while the new Voice & Video tab
already rendered them alongside TelephonyServer and
ClearPermittedScreenCaptureServers. Remove all five from GeneralTab so the
Voice & Video tab is their single canonical home.
Fold the UXQA-approved settings-panel rewrite (#3358) into the telephony +
video-call branch so all settings-panel churn lands in one review pass.

#3358 is the source of truth for settings UX: adopt its grouped GeneralTab
layout, its SettingField/ToggleField conventions, and its rewritten feature
components. Telephony and video settings are kept out of GeneralTab and remain
in the dedicated Voice & Video tab (their canonical home).

Conflict resolution:
- GeneralTab.tsx: took #3358's grouped FieldGroup layout, removed the four AV
  settings (InternalVideoChatWindow, VideoCallWindowPersistence,
  ScreenCaptureFallback, ClearPermittedScreenCaptureServers) since they live in
  VoiceVideoTab.
- i18n (en + 21 locales): unioned settings.sections (kept #3358's new section
  keys plus telephony/videoCalls); took #3358's telephonyServer copy; preserved
  the telephonyShortcut key set that #3358 lacks. en is the fallback locale, so
  locales that dropped keys fall back cleanly.
- TelephonyServer.tsx / SettingsView.tsx: auto-merge preserved telephony
  behavior (disabled gating, safeHostname) and all four settings-tab routes.

Verified: tsc --noEmit clean, eslint clean on SettingsView + telephony,
all 22 locale JSON files valid, yarn build produces all bundles, app boots.
@jeanfbrito
jeanfbrito merged commit 83ad9a5 into master Jul 2, 2026
10 checks passed
@jeanfbrito
jeanfbrito deleted the feat/telephony-videoconf-session branch July 2, 2026 21:47
jeanfbrito added a commit that referenced this pull request Sep 14, 2026
…ndows (SUP-1108) (#3485)

* fix(video-call): open conference http(s) popups as sandboxed child windows

Since 4.16.0 (#3370) the conference webview's window-open handler denied
every http(s) popup and sent it to the system browser. Identity-provider
SSO flows such as Pexip's log in through a popup and hand the result back
via window.opener, so login never completed inside the video call window.

The conference webview now has its own policy: plain http(s) popups open as
sandboxed Electron child windows (nodeIntegration off, contextIsolation on,
sandbox on, no preload, shown on ready-to-show), tab dispositions still go
to the system browser, about:/blob: stay allowed, and javascript:/data:/
file: stay denied. Popups re-apply the same policy to their own popups and
navigations. The host page handler is unchanged.

Fixes SUP-1108.

* docs(agents): keep internal references out of PR descriptions

PR descriptions and commit bodies are public. Document that internal
tracker links and ticket text, customer details, and local developer
tooling notes stay out of them, while a bare ticket key in the subject
remains the accepted convention.

* fix(video-call): apply the popup protocol policy to server-side redirects

will-navigate only covers page-initiated navigations. A 302 from an http(s)
popup to a custom scheme fires will-redirect instead, so register the same
protocol check for will-redirect on the conference webview and on popup
child windows.

* fix(video-call): police descendant popups and document the navigation allowlist

The did-create-window listener only wired the popup policy onto the
immediate child. Extract it into attachConferencePopupPolicy, which also
registers itself on each child's did-create-window so every descendant
popup gets the window-open handler and navigation guards.

State the exact scheme allowlist in the popup policy doc instead of
claiming nested navigation cannot escape.
jeanfbrito added a commit that referenced this pull request Sep 14, 2026
…ndows (SUP-1108) (#3485)

* fix(video-call): open conference http(s) popups as sandboxed child windows

Since 4.16.0 (#3370) the conference webview's window-open handler denied
every http(s) popup and sent it to the system browser. Identity-provider
SSO flows such as Pexip's log in through a popup and hand the result back
via window.opener, so login never completed inside the video call window.

The conference webview now has its own policy: plain http(s) popups open as
sandboxed Electron child windows (nodeIntegration off, contextIsolation on,
sandbox on, no preload, shown on ready-to-show), tab dispositions still go
to the system browser, about:/blob: stay allowed, and javascript:/data:/
file: stay denied. Popups re-apply the same policy to their own popups and
navigations. The host page handler is unchanged.

Fixes SUP-1108.

* docs(agents): keep internal references out of PR descriptions

PR descriptions and commit bodies are public. Document that internal
tracker links and ticket text, customer details, and local developer
tooling notes stay out of them, while a bare ticket key in the subject
remains the accepted convention.

* fix(video-call): apply the popup protocol policy to server-side redirects

will-navigate only covers page-initiated navigations. A 302 from an http(s)
popup to a custom scheme fires will-redirect instead, so register the same
protocol check for will-redirect on the conference webview and on popup
child windows.

* fix(video-call): police descendant popups and document the navigation allowlist

The did-create-window listener only wired the popup policy onto the
immediate child. Extract it into attachConferencePopupPolicy, which also
registers itself on each child's did-create-window so every descendant
popup gets the window-open handler and navigation guards.

State the exact scheme allowlist in the popup policy doc instead of
claiming nested navigation cannot escape.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OAuth not working

2 participants