Skip to content

fix(mfe): contain panel no-data messages - #266

Merged
GurinderRawala merged 1 commit into
coderabbit_micro_frontendfrom
fix/panel-no-data-overflow
Sep 25, 2026
Merged

GurinderRawala merged 1 commit into
coderabbit_micro_frontendfrom
fix/panel-no-data-overflow

Conversation

@GurinderRawala

@GurinderRawala GurinderRawala commented Sep 25, 2026 •

Copy link
Copy Markdown

Summary

  • constrain the shared panel no-data/error view to the panel bounds
  • wrap long unbroken no-data text and clip vertical overflow
  • add regression coverage for a message wider than its panel

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.tsx
  • yarn prettier --check public/app/features/panel/components/PanelDataErrorView.tsx public/app/features/panel/components/PanelDataErrorView.test.tsx
  • git diff --check

Rollout / rollback

  • Roll out with the normal Grafana MFE image release.
  • Revert this PR to restore the previous empty-state sizing.

Summary by CodeRabbit

  • Bug Fixes
    • Long no-data messages now wrap within the panel, with overflow clipped to keep content from exceeding the available space.

@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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 configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: e69ce677-f313-422c-9dd9-d8de55a2d19c

📥 Commits

Reviewing files that changed from the base of the PR and between 4755eb5 and cc7a39a.

📒 Files selected for processing (2)
  • public/app/features/panel/components/PanelDataErrorView.test.tsx
  • public/app/features/panel/components/PanelDataErrorView.tsx
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • coderabbitai/bitbucket (manual)

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)
  • GitHub Check: Go Workspace Check
  • GitHub Check: lint-go
🔇 Additional comments (2)
public/app/features/panel/components/PanelDataErrorView.tsx (1)

130-133: LGTM!

Also applies to: 140-143

public/app/features/panel/components/PanelDataErrorView.test.tsx (1)

74-94: LGTM!


📝 Walkthrough

Walkthrough

The 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 cc7a3

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)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and clearly describes the main change: containing panel no-data messages within the panel bounds.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Comment Severity Gate ✅ Passed No supplied Critical or Major findings remain outstanding. The current review reports zero actionable findings, and no posted CodeRabbit review threads were returned.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
✨ Simplify code
  • Commit to this branch
  • Create a new PR

A rabbit peeks inside the panel,
Where long words meet a boundary wall.
They wrap and stay within their space,
No stray text runs beyond its place.
The rabbit thumps: “All tidy now!”

Comment @coderabbitai help to get the list of available commands.

@GurinderRawala
GurinderRawala changed the base branch from main to coderabbit_micro_frontend September 25, 2026 20:04
@GurinderRawala
GurinderRawala merged commit 45724dd into coderabbit_micro_frontend Sep 25, 2026
5 checks passed
@GurinderRawala
GurinderRawala deleted the fix/panel-no-data-overflow branch September 25, 2026 20:07
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.

1 participant