-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Remember whether sidebar is shown for calls when switching rooms #30262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remember whether sidebar is shown for calls when switching rooms #30262
Conversation
Stores the sidebar state per-room in LegacyCallHandler, along with other details about calls.
Thanks for this! The code looks straightforward enough. Just one minor lint error. A new feature would need test coverage though. |
Huh. I'm this sure I ran the linter, guess I didn't 😂 Should I make the test in |
The toggle sidebar button currently does nothing in PIP mode, since PIP mode never shows a sidebar (even when the call is made fullscreen from the PIP preview)
f38f28c
to
dd0d27b
Compare
BTW, this PR was made as part of a live stream/speedrun (: You can see the final demonstration of the feature working at 2:10:28 - and yes, I did run the linter at 1:29:16, but then I never ran it on the PIP changes 😂 |
Oh, nice! I'd probably do a jest test in LegacyCallView-test.tsx as it should be quite simple to assert that the dom element is there. There's probably no need to make it a playwright test. Also reminder not to force push PRs please, it means we lose the record of what code has been reviewed. |
Alright, added a test (: |
👋, gentle reminder that we can't merge this PR until we meet the test coverage requirements. Let me know if you're unable to write more tests. |
Also, fix issue where LegacyCallViewForRoom used roomId and not callId for checking for sidebar state
Apologies for the delay - had a few busy weeks 😅 Added a bunch of tests, hopefully this would be enough to pass the coverage check? (PS, just a tiny contributor experience nitpick: as a new contributor, I never stumbled across the Review guidelines file -- so both the reminder to not force-push and the reminder that coverage check is required came as surprises, and not as reminders. (Granted, coverage check is mentioned in CONTRIBUTING.md, but it's a tiny, easy-to-miss line in a sea of text - and it's not spelled out as part of the pull request checklist with the other requirements.)) |
Stores the sidebar state per-room in LegacyCallHandler, where other details about calls are already stored.
Fixes #25367.
Checklist
public
/exported
symbols have accurate TSDoc documentation.