feedback
feedback copied to clipboard
Add showModeButtons option to control visibility of mode switch buttons in BetterFeedback
:scroll: Description
This PR introduces a new showModeButtons property to the BetterFeedback widget, allowing developers to control whether mode switch buttons (e.g., navigate, draw) are visible in the feedback UI.
When set to false, the mode cannot be changed by the user via UI buttons and will only use the mode provided through the mode property.
:bulb: Motivation and Context
Previously, the feedback UI always displayed the mode switch buttons, which might not be desirable in certain use cases — for example, when you want to lock the user into a specific mode without showing extra UI elements.
This change provides more flexibility and cleaner UI control.
:green_heart: How did you test it?
- Manually tested with
showModeButtonsset to bothtrueandfalsein a sample app. - Verified that when
false, only themodeproperty determines the feedback mode. - Verified that when
true, the UI displays both mode switch buttons as expected.
:pencil: Checklist
- [x] I reviewed submitted code
- [x] I added tests to verify changes
- [x] I updated the docs for the new property
- [x] All tests passing
- [x] No breaking changes
:crystal_ball: Next steps
- Release a new version of the package including this feature.
- Update the README with usage examples for
showModeButtons.
Thanks for the contribution 🥳