The mobile app is compiled by Metro with Babel, which strips types one
file at a time and never sees the rest of the program. That is the
situation isolatedModules is designed to guard: it makes `tsc:native`
reject constructs that only work with whole-program compilation, such
as referencing an ambient const enum, instead of letting them fail at
runtime. The project already passes with it enabled, so this matches
the web tsconfig and makes the guarantee explicit for both platforms.
* refactor(tests): share the grid setup and room name assembly
Factor the Selenium Grid handling out of wdio.grid.conf.ts into helpers/grid.ts so
that the Firefox grid config and other configs can reuse it (the Firefox one was
missing the remote fake-audio path rewrite), split generateRoomName into a
buildRoomName helper that applies the prefix/suffix convention to any base name,
and export the shared Chrome settings from wdio.conf.ts.
* feat(tests): let Participant drive any session and the load-test client
Participant names are no longer limited to p1..p6 and a browser session can be
injected instead of being looked up on the multiremote object, so participants can
be created for sessions (or tabs) outside the fixed multiremote setup. A loadTest
flag skips the UI-only parts of joining and hanging up (prejoin, styling, dialog
checks, toolbar hangup) for the lib-jitsi-meet only load-test client, which exposes
the conference as APP.room. Existing tests are unaffected.
* feat(load-test): bring the load-test client into the repository
The lib-jitsi-meet only client used for load testing lived in
jitsi/jitsi-meet-load-test since it was split out in 0b57bcb20. Port it back as
TypeScript, reusing the URL helpers it had copied, so the load tester (malleus)
can build and inject it into the browsers it drives. It is a separate webpack
entry (`npm run build:load-test`, config name load-test) written to build/ and is
deliberately not deployed: it is not in the Makefile or the Debian install.
Changes from the original: the room can be given as a room hash parameter and
protocol-relative XMPP URLs are absolutized (the page runs from file://), the
bare `room` references in getConnectionState and the stage view participant
selection are fixed, and jQuery/lodash are dropped in favor of DOM APIs.
* feat(tests): port malleus, the load tester, from jitsi-meet-torture
Malleus Jitsificus fills conferences on a deployment with browser-driven
participants and reports whether they all made it. It reuses the WebdriverIO suite
(Chrome setup, grid support, Participant, browser logs) but runs through its own
wdio config, which generates one browser session per participant (or per group of
tabs) from the MALLEUS_* settings, and a single spec kept out of specs/.
Ported: conferences x participants with video/audio sender counts, staggered
joins, duration, regions, extra URL params, stage view, P2P toggle, JWT; load-test
mode with several clients per tab and several tabs per browser; lite mode; P.59
speaker switching; bridge disruption via a site-specific blip script with health
checks; requesting typed grid nodes (nodename:applicationName) for senders and
receivers. The script that re-typed Grid 3 nodes over SSH is not carried over: it
does not apply to a Selenium 4 grid, where the node stereotypes declare the types.
Differences from the Java version: the entry point is a Node CLI
(`npm run malleus -- --flag=value`, scripts/malleus.sh forwards to it, the
positional form is gone); the load-test client is uploaded into the browsers
together with resources/loadTest.html rather than served by the deployment; room
names are prefix, conference index, suffix, reusing ROOM_NAME_SUFFIX (which may be
a comma-separated list spread over the conferences) so a shard name at the end of
the name keeps working; tabs per browser require load-test mode.
* fix(load-test): match jitsi-meet's current receiver constraints
The client's emulation of the receiver video constraints had drifted from what
jitsi-meet sends (react/features/video-quality/subscriber.ts):
- It set one maxHeight in defaultConstraints, i.e. for every source in the
conference, where jitsi-meet sets defaultConstraints to 0 and constrains only
the sources visible in the filmstrip (one page of tiles, 25 by default). In
large conferences that made a load-test receiver ask for every video.
- The tile quality came from a participant-count table (720/360/180); jitsi-meet
derives it from the tile height for the window size, capped at 360 beyond
maxFullResolutionParticipants. Port the tile grid selection
(calculateResponsiveTileViewDimensions) for a configurable virtual window,
1280x1024 by default like the test suite's Chrome.
- Stage view asked 2160 from everyone; it now asks the large-video quality for
the on-stage source and 180 for the first filmstrip page, like jitsi-meet.
- lastN still applied lastNLimits, which jitsi-meet dropped in 6efa4f247; send
startLastN ?? channelLastN ?? -1 instead.
- Stage view is also used below 3 participants, as in jitsi-meet, the on-stage
participant is re-elected when they leave, and no constraints are sent while
leaving.
The new release ships its own TypeScript types and a modern `exports`
map, which makes the long-standing `@ts-ignore`/`@ts-expect-error`
suppressions on `@jitsi/js-utils` imports unnecessary and lets TS verify
their usage end-to-end.
To pick up the new types correctly:
- Switch `tsconfig.{web,native}.json` to `moduleResolution: "Bundler"`
so TS honors the package's `exports` field. Legacy `Node` resolution
ignores `exports` and cannot resolve subpath imports like
`@jitsi/js-utils/random`.
- Remove the now-unused root-import `@ts-expect-error` directives across
7 files and the silent `@ts-ignore` directives on 14 subpath imports.
Drop the paired `lines-around-comment` eslint-disable comments that
only existed to silence the directive clutter.
- Update `BaseApp._initStorage` with a narrow type assertion (and a
comment) to acknowledge the RN-polyfill side channel where
`jitsiLocalStorage.getItem('_initializing')` surfaces an
AsyncStorage-loading Promise. The new package's types correctly
describe the standard Web Storage shape (`string | null`); the cast
preserves the runtime contract on RN.
- Bump the `external_api` bundle size budget from 95 to 100 KiB to
accommodate the slight per-file TS-compilation overhead in the new
package layout.
Implements Picture-in-Picture functionality for the Electron wrapper to maintain video engagement when users are not actively focused on the conference window. This feature addresses the need to keep users visually connected to the conference even when multitasking.
Key features:
- Automatic PiP mode activation and deactivation based on user interaction
- Displays large video participant's stream or renders their avatar on canvas when video unavailable
- Provides audio/video mute controls via MediaSession API directly in PiP window
- Adds API events (_pip-requested) for Electron wrapper integration
Implementation includes new pip feature module with Redux architecture, canvas-based avatar rendering with custom backgrounds support, and integration with existing mute/unmute logic. Depends on jitsi-meet-electron-sdk#479 for proper user gesture handling in Electron.
Currently we add keyboard listeners on conference join but never remove them. In the cases where we have multiple join events during a call (visitors promotion, breakout rooms), there are multiple keyboard handlers added and the shortcuts are executed multiple times on a single press.
Create Tooltip component
Fix Popover positioning calculations
Add margins to popover
Remove @atlaskit/tooltip
Update all components to use the new Tooltip component
Added tooltip actions and reducers for the following functionality: when a user hovers over an element is sees the tooltip for that element and then hovers another element that has a tooltip, instead of using the delay and animations we just unmount the current tooltip and mount the next one immediately
* fix(ts,connection) avoid mixing web and native code
* chore(ts) split config
The mobile part is still WIP.
* Remove default tsconfig
* Fix ts-loader - use web tsconfig
* Fix tsconfig
Use noEmit only on npm scripts (for type checking), but don't use it in webpack
* Fix
* Fix import
* Fix
Co-authored-by: Saúl Ibarra Corretgé <[email protected]>