src/platform/packages/shared/shared-ux/feedback_snippet/README.mdx
It initially renders as a panel, and once interacted with, it becomes a persistent button. It manages its own state (panel vs. button) based on user interaction tracked in localStorage.
The component has two main states:
promptViewMessage and options to provide positive ("Yes") or negative ("No") feedback. A "Dismiss" (x) button is also available.feedbackSnippetId to track whether the user has interacted with it. If a value is present for that key, the component will render as a button instead.promptViewMessage to gather feedback from the user.surveyUrl call-to-action button. The panel remains visible until the user explicitly dismisses it or navigates to the survey (which opens in a new tab).You can run tests with:
node scripts/jest --config=src/platform/packages/shared/shared-ux/feedback_snippet/jest.config.js