Skip to content

[bugfix widget] Remove side pane button container when neither button enabled#2969

Merged
dmceachernmsft merged 12 commits intomainfrom
dmceachernmsft/commoncontrolshidesidebar
May 9, 2023
Merged

[bugfix widget] Remove side pane button container when neither button enabled#2969
dmceachernmsft merged 12 commits intomainfrom
dmceachernmsft/commoncontrolshidesidebar

Conversation

@dmceachernmsft
Copy link
Copy Markdown
Member

What

removes container from control bar if both people and chat buttons are hidden in common controls.

Why

image
image

How Tested

Tested locally with widget POC app made change here too.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2023

Chat bundle size is increased❗.

  • Current size: 9858167
  • Base size: 9858166
  • Diff size: 1

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2023

Calling bundle size is increased❗.

  • Current size: 9803183
  • Base size: 9803118
  • Diff size: 65

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2023

CallWithChat bundle size is increased❗.

  • Current size: 10212416
  • Base size: 10212351
  • Diff size: 65

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the composite 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
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2023

</Stack.Item>
)}
{!props.mobileView &&
(isEnabled(options.peopleButton) ||
Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside May 8, 2023

Choose a reason for hiding this comment

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

consider making this a bool above to reduce the amount to parse here

const secondaryButtonsExist = !props.mobileView && (isEnabled(options.peopleButton) || isEnabled(options.chatButton) || customButtons['secondary'] !== undefined)

{!props.mobileView &&
(isEnabled(options.peopleButton) ||
isEnabled(options.chatButton) ||
/* @conditional-compile-remove(control-bar-button-injection) */ customButtons['secondary'] !==
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.

remove conditional compile, callwithchat uses this

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2023

@dmceachernmsft dmceachernmsft enabled auto-merge (squash) May 9, 2023 22:31
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2023

@dmceachernmsft dmceachernmsft merged commit 84416a3 into main May 9, 2023
@dmceachernmsft dmceachernmsft deleted the dmceachernmsft/commoncontrolshidesidebar branch May 9, 2023 22:54
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.

4 participants