Skip to content

refactor: Voice Call PIP Card#1102

Open
Pecacheu wants to merge 9 commits intomainfrom
refactor/voicepip
Open

refactor: Voice Call PIP Card#1102
Pecacheu wants to merge 9 commits intomainfrom
refactor/voicepip

Conversation

@Pecacheu
Copy link
Copy Markdown
Contributor

@Pecacheu Pecacheu commented Apr 7, 2026

@Pecacheu Pecacheu force-pushed the refactor/voicepip branch from bfbbd94 to 422ba5d Compare April 7, 2026 16:54
…hscreens

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
- Also un-borked the VoiceCallCardPreview which it borked

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
- Add missing tooltips to VoiceCallCard buttons
- Add missing translatable strings to VoiceCallCardActions

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
- Don't force showing video bar every time focus mode is enabled

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
- Fix reversed mute/unmute text

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
@Pecacheu Pecacheu force-pushed the refactor/voicepip branch from 422ba5d to 197a11f Compare April 12, 2026 00:08
@Pecacheu Pecacheu marked this pull request as ready for review April 12, 2026 00:08
@Pecacheu Pecacheu requested review from a team as code owners April 12, 2026 00:08
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
@Pecacheu Pecacheu marked this pull request as draft April 12, 2026 00:22
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
@Pecacheu Pecacheu marked this pull request as ready for review April 12, 2026 02:55
Copy link
Copy Markdown
Member

@Dadadah Dadadah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the TODOs and dead code regarding your other PRs. If this were to get merged but the other PRs weren't these TODOs would require a PR to be removed. These lines are unrelated to this PR.

Could you show more pictures of the pip, including without focus, with just voice users (no video), and a screencast of the pip being moved around the screen?

ofsX = 0,
ofsY = 0;

function touchToMouse(e: MouseEvent | TouchEvent, down = false) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this, instead of returning a boolean, return a partial TouchEvent with just the info needed for processing? That would get rid of the need to use ts-expect-error here. Calling it could be like const partialEvent = touchToMouse(e). It would also get rid of the e as MouseEvent in the mouseDown function below.

ofsX = 0,
ofsY = 0;

function touchToMouse(e: MouseEvent | TouchEvent, down = false) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this function be moved into a utility library somewhere to allow this across the app?


sty.transition = "all .2s cubic-bezier(0, 1.67, 0.85, 0.8)";
setFloat(left ? (top ? "tl" : "bl") : top ? "tr" : "br");
setTimeout(() => (sty.transition = ""), 1);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested this, but I think this would result in the transition being lost if you click, drop, then click within 1 second, wait 1 second and drag to a new spot.

},
compoundVariants: [
{
mode: ["floating", "moving"],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this can be reached? Mode is a union type of "floating" and "moving", therefore it can't be both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants