Repository navigation
Conversation
- /calls/?group=, ?dm= and ?course= open that place's call through Spring's /api/calls (spring#287): a lobby with your camera, then a cell per person, a toolbar, and the group's chat and people beside it. - Built from the OCS grammar only (ocs__grid--col2 or --card, ocs__embed--video, ocs__avatar, ocs__status-pill, ocs__viewer, ocs__split--aside-end), with every word in data/calls.yml. - The safety rules show on the page: a mentor waits in the lobby until a teacher is in, and someone paused sees why. - A teacher can pause, resume or remove someone, and end the call for everyone, each after a confirm. - Messages gets a Call link in a group's or DM's header, and a line while a call is on there, shown only after Spring confirms it. - Off by default: calls: enabled: false in _config.yml, and a spring: false site shows none of it.
- The lobby's Mic and Camera wait while a join is on its way, and a Join waits for every device the lobby is still asking for, so each one is either sent or stopped. - While someone waits for a teacher, Join and the toggles stay usable, and pressing Join keeps a single watch on the room. - The lobby's status line sits above the preview, where it is seen, and its no-devices line goes once a camera or microphone works. - While you're paused, everyone else shows as initials instead of frozen video. - A teacher's Manage stays open while people talk and come and go, and keyboard focus stays on it when the people list redraws: the list redraws only when what it shows changes. - The sound button can be pressed again after a failed try. - A device that doesn't come back after a pause is reported. - A body that can't be read is a CallsApiError too. - The fake LiveKit stops a paused person's tracks, as livekit-client does. - The docs show the calls switch as `enabled: true` under `calls:`. Written on one line, `calls: enabled: true` isn't valid YAML. - CallsApi drops its method for Spring's live-calls list, which nothing on the page used.
Contributor
|
We will wait until spring is deployed |
jm1021
pushed a commit
that referenced
this pull request
Nov 23, 2026
Contributor
Author
|
Combined into #2091 with the same commits. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the page side of video calls: a call page for each group, DM and class, and a Call link in Messages. It uses the routes from spring#287, so that has to be merged and running before calls are turned on. Until then this changes nothing people see: calls are off in
_config.yml,/calls/only says they're off, nothing links to it, and/dmcomes out exactly as it does now (a test checks that)./dmgets a Call link in its header that opens/calls/?group=<id>or/calls/?dm=<id>./calls/?course=csaopens a class's call.ROLE_MENTOR) and a student are never in a call together without a teacher: whoever comes second waits in the lobby, which says it's waiting for a teacher, and goes in when one joins. If the last teacher leaves, the mentor is paused and the page says why./dmshows "A call is on with 3 in it" and a Join link. Spring sends a smallcallServermessage on the chat's connection when a call starts or changes, and the line shows only after the page asks Spring and the call is live in that same group or DM._projects/systems/calls/, built only from theocs__grammar: the grid and its cells, video embeds, avatars, status pills, the viewer bar, the split layout and callouts. It has no Sass of its own, its words are indata/calls.yml, and its modules export classes.docs/calls-deployment.mdhas the setup. Calls aren't recorded. Spring only keeps who was in each call and when, for 30 days. The page loads LiveKit's browser library (2.23.0) from cdnjs with its integrity hash, only on/calls/.spring: false) there's no Call link, and/calls/just says calls are off without sending anything to Spring.callServermessage to them (messages-model.js,thread.js,messages-page.js,dm.md), with tests.How to try it:
docs/calls-deployment.md)._config.yml, then runmakeand sign in:/dm, click Call, then Join. In another browser, sign in as someone else in the group and join too.ROLE_MENTOR(I added it in Spring's database) and join with it while only a student is in.node --test _projects/systems/calls/tests/*.test.mjs _projects/systems/messages/tests/*.test.mjsandbundle exec ruby scripts/test_calls_page.rb.Other notes:
/dm, and phone widths of 375 and 320 px. The most I had in a call at once was three. The screenshots are from a page I built locally with the site's stylesheet and this system's files, so the site header isn't in them.tests/csa_curriculum.test.mjsandtests/csa_capstone_objectives.test.mjsfail 6 tests on main too; that isn't from this PR.