← Back to Pull requests

Sync with Comcast upstream and republish @grafana/react-data-grid (auto-height, a11y, npm publishing) #7

Closed
unknown closed this pull request without merging on Sep 25, 2026 19:28 UTC
View on GitHub
unknown unknown commented on Aug 06, 2026 14:38 UTC
Author

Brings our long-stale main current with Comcast/react-data-grid upstream (a88517cc8) and re-layers Grafana's changes on top, so we can publish a fresh @grafana/react-data-grid from main. #8 merges into this branch first, so merging this PR to main delivers everything below.

Why now

We were blocked from pulling upstream for over a year due to now-resolved tooling limits, and Grafana has moved off React 18 (which is why the old react-18 fork branch existed). This resets main to upstream and keeps only the non-React-18 value.

What's in here

Upstream sync — ~220 upstream commits, bringing the fork to a88517cc8. Ingested under the signed-commits fork-sync exemption (Freshservice #168922, per #platform-productivity-chat).

Auto-height (upstream PR #4040 re-layered) — dynamic row heights for non-virtualized rendering: rowHeight accepts a string (e.g. "auto") with discriminated-union typing, plus PageUp/PageDown paging. Includes test/browser/rowHeight.test.tsx and the DynamicHeightCells example. This is what Grafana's Table panel relies on.

Accessibility — aria-hidden on non-interactive utility elements (drag handle, drag image, measuring cells, scroll-to-position element). Upstream already covers the resize handle and removed the old focus-sink, so those hunks are dropped.

Publish @grafana/react-data-grid from main (rides upstream's npm/tsdown/Node-26 tooling):

  • Rename to @grafana/react-data-grid, publishConfig.access: public, version 7.0.0-beta.59, repo/homepage/bugs → Grafana fork.

  • ci.yml: version-gated auto-publish job (EndBug/version-check) → npm trusted publishing on push to main when the version changes, then tag + GitHub release.

  • Remove Comcast-only tooling that shouldn't run in the fork: publish.yml, update-screenshots.yml, and the gh-pages deploy step (hardcoded Comcast repo URL).

  • CODEOWNERS → dataviz-squad; README fork note.
  • CI hardening for Grafana org rulesets — pin all actions to full SHAs (zizmor unpinned-uses), explicit permissions, persist-credentials: false on the test checkout. package-lock.json root updated for the scope/version (no dependency changes).

    Merge order

    1. Merge #8 into this branch (chore/sync-comcast-upstream) — a non-default branch, so it's not gated by the zizmor / required-PR rules. This lands the clean ci.yml + workflow deletions here.
    2. This PR's checks then go green; merge to main with a merge commit (not squash) so upstream history is preserved.
    3. Merging to main trips the version-gated publish job → publishes @grafana/react-data-grid@7.0.0-beta.59.

    Publishing note

    npm trusted-publisher config must point at this repo's ci.yml workflow (beta.57/.58 published from ci.yml on react-18; same workflow filename).

    Diff: 352 lines (+264 / -88) across 4 files Reviewer: leeoniya Review duration: 72290m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 352 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.351
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #7"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.8% · Safe to merge
    16.8%