Skip to content

Conversation

@GordonSmith
Copy link
Member

@GordonSmith GordonSmith commented Jan 20, 2026

Removes the need for the dgrid-shim workaround

fixes #4510

Checklist:

  • The commit message is properly formatted and free of typos.
    • The commit message title makes sense in a changelog, by itself.
    • The commit message includes a "fixes" reference if appropriate.
    • The commit is signed.
  • The change has been fully tested:
    • I have viewed all related gallery items
    • I have viewed all related dermatology items
  • There are no similar instances of the same problem that should be addressed
    • I have addressed them here
    • I have raised new issues to address them separately

Testing:

Removes the need for the dgrid-shim workaround

fixes hpcc-systems#4510

Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
Copy link
Contributor

@jeclrsg jeclrsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GordonSmith looked fine to me. just one question about that "extraneous" property in one of the packages in package-lock?

},
"node_modules/@clack/prompts/node_modules/is-unicode-supported": {
"version": "1.3.0",
"extraneous": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not familiar with this property, does that mean the package isn't used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think so - safe to ignore.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the ChartPanel component from using the legacy @hpcc-js/dgrid package to the modern @hpcc-js/dgrid2 package, eliminating the need for the dgrid-shim workaround. The change addresses issue #4510 by updating the data table implementation to use a React-based table component instead of the older dojo-based dgrid.

Changes:

  • Updated ChartPanel to import Table from @hpcc-js/dgrid2 instead of @hpcc-js/dgrid
  • Removed dgrid-shim script loading from HTML demo files
  • Updated test files to remove dgrid-shim initialization code
  • Updated package dependencies to use dgrid2

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/layout/src/ChartPanel.ts Updated Table import to use dgrid2; added "dgrid2_Table" to legend toggle hide list; removed unused XYAxis import
packages/layout/package.json Replaced @hpcc-js/dgrid dependency with @hpcc-js/dgrid2 version 3.5.3
packages/layout/tests/layout.browser.spec.ts Removed dgrid-shim loader and associated test; corrected test name from "dgridMod" to "layoutMod"
packages/layout/index.html Removed dgrid-shim CDN script tag
packages/layout/index-preview.html Removed dgrid-shim CDN script tag and dgrid import mapping
packages/layout/README.md Updated comment to remove outdated note about dgrid module dependency limitation
package-lock.json Metadata update for bundled dependency (unrelated to PR changes)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GordonSmith GordonSmith merged commit 9a01904 into hpcc-systems:main Jan 21, 2026
9 checks passed
@GordonSmith GordonSmith deleted the GH-4510-LAYOUT_DGRID2 branch January 21, 2026 09:08
@github-actions github-actions bot mentioned this pull request Jan 20, 2026
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.

Remove dgrid dependency from ChartPanel

2 participants