Skip to content

Dismiss video effects error when camera is off#3137

Merged
prabhjot-msft merged 8 commits intomainfrom
prabhjot/dismiss-effects-error
Jun 8, 2023
Merged

Dismiss video effects error when camera is off#3137
prabhjot-msft merged 8 commits intomainfrom
prabhjot/dismiss-effects-error

Conversation

@prabhjot-msft
Copy link
Copy Markdown
Contributor

What

Dismiss video effects error when camera is off

Why

https://skype.visualstudio.com/SPOOL/_workitems/edit/3288350

How Tested

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2023

Chat bundle size is not changed.

  • Current size: 9900044
  • Base size: 9900044
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2023

CallWithChat bundle size is increased❗.

  • Current size: 10262694
  • Base size: 10262629
  • Diff size: 65

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2023

Calling bundle size is increased❗.

  • Current size: 9844888
  • Base size: 9844823
  • Diff size: 65

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2023


/* @conditional-compile-remove(video-background-effects) */
if (useIsParticularSidePaneOpen('videoeffects') && props.errorBarProps) {
if ((useIsParticularSidePaneOpen('videoeffects') || !isCameraOn) && props.errorBarProps) {
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.

We haven't used this anywhere in the codebase yet, but instead of hiding the error when the camera is off, could we clear the error in the the handler for toggleCamera using newClearCallErrorsModifier?
image

Honestly no idea if that works just curious if its possible.

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.

The way its currently implemented, does the error re-show when the camera is turned back on?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

  • For 1st suggestion, using newClearCallErrorsModifier, this modifier is not actually exposed in the calling stateful layer. If we are planning to expose this modifier, it would be called in the stateful layer mostly in the call context by introducing new set errors method. We can trigger this method whenever we want to delete certain errors. I can pursue this as a separate task if we feel strongly about this approach.

  • For 2nd question, as part of the second change for auto-dismiss(Auto-dismiss video effect errors  #3160). Whenever camera is turned on, it will reset a new active effect and if the error is generated again it would be shown and otherwise no error will be shown.


/* @conditional-compile-remove(video-background-effects) */
if (useIsParticularSidePaneOpen('videoeffects') && props.errorBarProps) {
if ((useIsParticularSidePaneOpen('videoeffects') || !isCameraOn) && props.errorBarProps) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this supposed to be !isCameraOn?
The title indicates that it should dismiss when camera is off, but this is setting an activemessage when camera is off.

I see that in videoEffectsPane.tsx line 149 new change it does what I expected.
Correct me if I'm wrong here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, so in this scenario, if videoeffectsSidepane is open and camera is off we are filtering out the video effects error from latest errors.
For videoeffectsPane, if the videoeffectsError exists and camera is on we are showing the error.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2023

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 8, 2023

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 8, 2023

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 8, 2023

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 8, 2023

@prabhjot-msft prabhjot-msft merged commit 1c74f90 into main Jun 8, 2023
@prabhjot-msft prabhjot-msft deleted the prabhjot/dismiss-effects-error branch June 8, 2023 21:21
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.

3 participants