fix: Betterbugs cyclic dependency by refactoring metadata into HelpButton and HomepageHeade…#41557
fix: Betterbugs cyclic dependency by refactoring metadata into HelpButton and HomepageHeade…#41557sebastianiv21 wants to merge 1 commit intoreleasefrom
Conversation
…rAction - Added `useBetterbugsMetadata` hook to retrieve Betterbugs-related metadata. - Updated `HelpButton` and `HomepageHeaderAction` components to utilize the new metadata when invoking the Betterbugs SDK, enhancing the context provided during bug reporting. - Refactored `BetterbugsUtil` to accept metadata parameters for improved functionality and data accuracy.
WalkthroughThis pull request refactors the Betterbugs integration to use explicit metadata plumbing via a new Redux-backed hook instead of relying on store selectors within utility functions. The useBetterbugsMetadata hook collects instance, tenant, application, and page IDs, which are then passed to Betterbugs utility methods in two UI components. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…rAction
useBetterbugsMetadatahook to retrieve Betterbugs-related metadata.HelpButtonandHomepageHeaderActioncomponents to utilize the new metadata when invoking the Betterbugs SDK, enhancing the context provided during bug reporting.BetterbugsUtilto accept metadata parameters for improved functionality and data accuracy.Description
Tip
Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team).
Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR.
Fixes #
Issue Numberor
Fixes
Issue URLWarning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/22006715339
Commit: 3c98b61
Cypress dashboard.
Tags:
@tag.AllSpec:
Sat, 14 Feb 2026 01:06:32 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Release Notes