feat(metadata): pass trackEvent callback to metadata components#4538
Conversation
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughThis PR adds an optional ChangesEvent Tracking Prop Implementation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/elements/content-sidebar/MetadataSidebar.js`:
- Line 51: ExternalProps declares trackEvent (exported via MetadataSidebarProps)
but MetadataSidebar never consumes or forwards it; either (A) destructure
trackEvent in MetadataSidebar (in render and relevant class methods) and pass it
into child components that can use it (e.g., Instances, TemplateDropdown or any
telemetry-capable child) so callers' handlers are invoked, referencing the
symbol names trackEvent, MetadataSidebar, Instances, TemplateDropdown, render;
or (B) if ignoring tracking is intentional, add a clear inline comment on the
MetadataSidebar component and in the ExternalProps/MetadataSidebarProps
declaration noting that trackEvent is intentionally a no-op for the legacy
sidebar to prevent confusion.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 7a6d08cb-5cca-485e-8219-069ed444b28d
⛔ Files ignored due to path filters (1)
yarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (5)
package.jsonsrc/elements/content-sidebar/MetadataInstanceEditor.tsxsrc/elements/content-sidebar/MetadataSidebar.jssrc/elements/content-sidebar/MetadataSidebarRedesign.tsxsrc/elements/content-sidebar/stories/tests/MetadataSidebarRedesign-visual.stories.tsx
Merge Queue Status
This pull request spent 14 minutes 49 seconds in the queue, including 14 minutes 28 seconds running CI. Required conditions to merge
|
Changes
@box/metadata-editordependency to version1.69.6trackEventcallback to the metadata editor components via SidebarSummary by CodeRabbit
New Features
Chores
Tests