Skip to content

Make environmentInfo stable - fixes safari speaker issue in stable#5328

Merged
JamesBurnside merged 8 commits intomainfrom
jaburnsi/environment-info-stable
Oct 17, 2024
Merged

Make environmentInfo stable - fixes safari speaker issue in stable#5328
JamesBurnside merged 8 commits intomainfrom
jaburnsi/environment-info-stable

Conversation

@JamesBurnside
Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside commented Oct 17, 2024

What

  • Mark environmentInfo state as stable
  • Prepopulate the state at the stateful level instead of the adapter layer

Why

We use this internally for multiple calculations and should not be locked behind unsupported-browser, e.g. we use it for hiding the speaker selection dropdown on safari

How Tested

Ran locally and verified environment info is coming through:
image

await deviceManager.getSpeakers();
}
/* @conditional-compile-remove(unsupported-browser) */
await callClient.feature(Features.DebugInfo).getEnvironmentInfo();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this is now moved to happening in the statefulcallclient constructor

@github-actions
Copy link
Copy Markdown
Contributor

CallWithChat bundle size is not changed.

  • Current size: 8139379
  • Base size: 8139379
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

Calling bundle size is not changed.

  • Current size: 8139366
  • Base size: 8139366
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

Chat bundle size is not changed.

  • Current size: 1757224
  • Base size: 1757224
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@azure/communication-react jest test coverage for stable.

Lines Statements Functions Branches
Base 26798 / 43113
62.15%
26798 / 43113
62.15%
729 / 1335
54.6%
2117 / 3408
62.11%
Current 26820 / 43171
62.12%
26820 / 43171
62.12%
733 / 1340
54.7%
2130 / 3406
62.53%
Diff 22 / 58
-0.03%
22 / 58
-0.03%
4 / 5
0.1%
13 / -2
0.42%

@github-actions
Copy link
Copy Markdown
Contributor

@azure/communication-react jest test coverage for beta.

Lines Statements Functions Branches
Base 54046 / 88370
61.15%
54046 / 88370
61.15%
1091 / 2484
43.92%
3211 / 5312
60.44%
Current 54020 / 88333
61.15%
54020 / 88333
61.15%
1093 / 2486
43.96%
3210 / 5318
60.36%
Diff -26 / -37
0%
-26 / -37
0%
2 / 2
0.04%
-1 / 6
-0.08%

@JamesBurnside JamesBurnside merged commit 7127a16 into main Oct 17, 2024
@JamesBurnside JamesBurnside deleted the jaburnsi/environment-info-stable branch October 17, 2024 16:32
JamesBurnside added a commit that referenced this pull request Oct 17, 2024
* Make environmentInfo stable - fixes safari speaker issue in stable (#5328)

* update changelog

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants