Skip to content

ref(feedback): Extracts FeedbackWidgetProvider in a separate file #4718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 195 commits into from
Apr 14, 2025

Conversation

antonis
Copy link
Collaborator

@antonis antonis commented Apr 3, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

Based on feat(feedback): Screenshot button

PR Chain:

📜 Description

Extracts FeedbackWidgetProvider in a separate file (as it should have been).

💡 Motivation and Context

Breaking cyclic dependencies introduced in previous PRs in the chain:

  1. feedback/FeedbackButton > feedback/FeedbackWidgetManager
  2. feedback/FeedbackWidgetManager > feedback/FeedbackWidget
  3. feedback/FeedbackWidgetManager > feedback/FeedbackWidget > feedback/ScreenshotButton

💚 How did you test it?

Manual, CI

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

#skip-changelog

Copy link
Member

@krystofwoldrich krystofwoldrich left a comment

Choose a reason for hiding this comment

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

I wanted to approve different PR, I'll check this soon.

# Conflicts:
#	CHANGELOG.md
#	packages/core/src/js/feedback/FeedbackButton.tsx
#	packages/core/src/js/feedback/FeedbackWidget.styles.ts
#	packages/core/src/js/feedback/FeedbackWidgetManager.tsx
#	packages/core/src/js/feedback/integration.ts
#	packages/core/test/feedback/FeedbackButton.test.tsx
#	packages/core/test/feedback/FeedbackWidgetManager.test.tsx
#	packages/core/test/feedback/__snapshots__/FeedbackButton.test.tsx.snap
@krystofwoldrich
Copy link
Member

👍 Looks good. Thank you for fixing the circular deps.

Base automatically changed from antonis/screenshot-button to feedback-ui-2 April 14, 2025 13:24
# Conflicts:
#	packages/core/src/js/feedback/FeedbackWidget.tsx
#	packages/core/src/js/feedback/FeedbackWidgetManager.tsx
#	packages/core/src/js/feedback/ScreenshotButton.tsx
#	packages/core/test/feedback/ScreenshotButton.test.tsx
@antonis antonis merged commit 7f8e673 into feedback-ui-2 Apr 14, 2025
68 checks passed
@antonis antonis deleted the antonis/ref-feedback-cyclicdep branch April 14, 2025 14:39
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.

2 participants