Skip to content

Republish as @grafana/react-data-grid from main: auto-height (#4040), a11y, npm publishing - #8

Open
fastfrwrd wants to merge 7 commits into
chore/sync-comcast-upstreamfrom
dataviz/reset-main-to-upstream
Open

Republish as @grafana/react-data-grid from main: auto-height (#4040), a11y, npm publishing#8
fastfrwrd wants to merge 7 commits into
chore/sync-comcast-upstreamfrom
dataviz/reset-main-to-upstream

Conversation

@fastfrwrd

Copy link
Copy Markdown

Stacked on #7 (upstream sync). Base auto-retargets to main once #7 merges and its branch is deleted. This PR is the 7 Grafana commits we layer on top of upstream.

Changes

Auto-height (upstream PR Comcast#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 website example. This is what Grafana's Table panel relies on.

Accessibilityaria-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 package 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.

Verified locally

  • node --run typecheck
  • node --run build ✓ (auto-height present in lib/)
  • routeTree.gen.ts regenerated (CI check passes)

Publishing note

Merging to main (after #7) auto-publishes 7.0.0-beta.59. npm trusted-publisher config must point at this repo's ci.yml workflow.

fastfrwrd and others added 7 commits August 6, 2026 10:07
Re-applies Grafana's aria-hidden additions (originally on the react-18
branch) onto the current upstream tree. Skips the ResizeHandle (upstream
now sets aria-hidden itself) and the removed focus-sink div; retargets the
former ScrollToCell element to its useScrollToPosition successor.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Rides upstream's npm/tsdown/Node-26 tooling and layers only the
Grafana publishing delta on top:

- Rename package to @grafana/react-data-grid, add publishConfig, and
  point homepage/bugs/repository at the Grafana fork.
- Add a version-gated publish job to ci.yml that auto-publishes to npm
  via trusted publishing on pushes to main when package.json version
  changes (EndBug/version-check), then tags and creates a release.
- Remove Comcast-specific tooling that should not run in the fork: the
  gh-pages deploy step (hardcoded Comcast repo URL), publish.yml, and
  update-screenshots.yml.
- Assign CODEOWNERS to dataviz-squad and note the fork in the README.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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