Repository navigation
fix(mfe): contain panel no-data messages - #266
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: Your plan provides up to 100 included reviews per hour; 94 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (2)
🔇 Additional comments (2)
📝 WalkthroughWalkthroughThe shared panel no-data/error view now constrains its wrapper and message to the panel bounds. It clips overflow and wraps long text. A regression test checks the styles with an unusually long no-data message. Priority: ⬇️ Low Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to Long no-data messages remain bounded by the panel content area. No actionable merge blocker is established. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
A rabbit peeks inside the panel, Comment |
Summary
Production context
The custom-dashboard panel empty state could render a large “No data” message outside a small panel. This is intentionally a separate Grafana-fork PR from the handler query-routing fix.
Test plan
yarn jest public/app/features/panel/components/PanelDataErrorView.test.tsx --runInBand(4 passed)yarn eslint public/app/features/panel/components/PanelDataErrorView.tsx public/app/features/panel/components/PanelDataErrorView.test.tsxyarn prettier --check public/app/features/panel/components/PanelDataErrorView.tsx public/app/features/panel/components/PanelDataErrorView.test.tsxgit diff --checkRollout / rollback
Summary by CodeRabbit