Skip to content

Grid Demos: fix csp in treelist-overview and grid-rowselection#33618

Open
flagmanAndrew wants to merge 5 commits into
DevExpress:26_1from
flagmanAndrew:26_1_csp-treelist-overview
Open

Grid Demos: fix csp in treelist-overview and grid-rowselection#33618
flagmanAndrew wants to merge 5 commits into
DevExpress:26_1from
flagmanAndrew:26_1_csp-treelist-overview

Conversation

@flagmanAndrew
Copy link
Copy Markdown
Contributor

@flagmanAndrew flagmanAndrew commented May 18, 2026

treelist-overview: remove inline background
grid-rowselection: remove inline 'visibility' attr in jquery

Copilot AI review requested due to automatic review settings May 18, 2026 13:21
@flagmanAndrew flagmanAndrew requested a review from a team as a code owner May 18, 2026 13:21
Copy link
Copy Markdown
Contributor

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 aims to make selected demos compatible with the CSP demo server by replacing inline background styles in TreeList Overview employee cells and removing CSP allowlist entries.

Changes:

  • Replaces inline background-image employee thumbnails with <img> elements in TreeList Overview for React, ReactJs, Vue, and jQuery.
  • Updates thumbnail CSS to use object-fit: contain.
  • Removes unsafe-inline style CSP exceptions for TreeList/Overview and DataGrid/RowSelection.

Reviewed changes

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

Show a summary per file
File Description
apps/demos/utils/server/csp-server.js Removes style CSP allowlist entries for the affected demos.
apps/demos/Demos/TreeList/Overview/Vue/EmployeeCell.vue Converts employee image rendering from styled div to img.
apps/demos/Demos/TreeList/Overview/ReactJs/styles.css Updates image sizing behavior for actual img elements.
apps/demos/Demos/TreeList/Overview/ReactJs/EmployeeCell.js Converts employee image rendering from styled div to img.
apps/demos/Demos/TreeList/Overview/React/styles.css Updates image sizing behavior for actual img elements.
apps/demos/Demos/TreeList/Overview/React/EmployeeCell.tsx Converts employee image rendering from styled div to img.
apps/demos/Demos/TreeList/Overview/jQuery/styles.css Updates image sizing behavior for actual img elements.
apps/demos/Demos/TreeList/Overview/jQuery/index.js Converts employee image rendering from styled div to img.

Comment thread apps/demos/utils/server/csp-server.js
Comment thread apps/demos/utils/server/csp-server.js Outdated
Comment thread apps/demos/Demos/TreeList/Overview/React/EmployeeCell.tsx Outdated
Comment thread apps/demos/Demos/TreeList/Overview/ReactJs/EmployeeCell.js
Comment thread apps/demos/Demos/TreeList/Overview/Vue/EmployeeCell.vue
Comment thread apps/demos/Demos/TreeList/Overview/jQuery/index.js Outdated
Copilot AI review requested due to automatic review settings May 18, 2026 15:11
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 13 out of 13 changed files in this pull request and generated no new comments.

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.

2 participants