Skip to content

Fix CallWithChat custom button properties#2750

Merged
JamesBurnside merged 14 commits intomainfrom
jaburnsi/fix-callwithchat-overflow-buttons-2
Feb 15, 2023
Merged

Fix CallWithChat custom button properties#2750
JamesBurnside merged 14 commits intomainfrom
jaburnsi/fix-callwithchat-overflow-buttons-2

Conversation

@JamesBurnside
Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside commented Feb 14, 2023

What

Refactor generateCustomDrawerButtons to:

  • Return strongly types variables (typeof ControlBarButton, _DrawerMenuItem and IContextMenuItem)
  • Ensure user passed in properties are not overwritten
  • Splice primary and secondary overflow buttons for desktop (already done for mobile)
  • Change order of overflow buttons on mobile from overflow -> primary -> secondary, to primary -> secondary -> overflow -- reason being if the button was intended to be primary but had to overflow it has more importance.

Why

The buttons are correctly appearing in the overflow menu after #2748 but these properties weren't working:

  • onClick was not functioning when button is overflow
  • Too many Primary buttons were not overflowing
  • showLabel was being overridden and hence not applied
  • styles were being overriden and hence not applied

How Tested

Locally checked properties were all working and added a CI e2e test

@JamesBurnside JamesBurnside changed the title Fix CallWithChat overflow button properties Fix CallWithChat custom button properties Feb 14, 2023
@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 14, 2023

Chat bundle size is not changed.

  • Current size: 5656106
  • Base size: 5656106
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 14, 2023

Calling bundle size is decreased✅.

  • Current size: 5572796
  • Base size: 5572803
  • Diff size: -7

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 14, 2023

CallWithChat bundle size is increased❗.

  • Current size: 5959443
  • Base size: 5958922
  • Diff size: 521

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@JamesBurnside JamesBurnside merged commit a9de02c into main Feb 15, 2023
@JamesBurnside JamesBurnside deleted the jaburnsi/fix-callwithchat-overflow-buttons-2 branch February 15, 2023 18:23
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