Skip to content

updated UI bugs for os type charts#5778

Open
harshithb3304 wants to merge 5 commits into
masterfrom
fix/os-type-bugs
Open

updated UI bugs for os type charts#5778
harshithb3304 wants to merge 5 commits into
masterfrom
fix/os-type-bugs

Conversation

@harshithb3304

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings July 14, 2026 11:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the Agentic “Device Endpoints” dashboard section to better visualize endpoint and browser-extension adoption trends over time, and refines the layout/spacing of the charts and severity donut card.

Changes:

  • Adds a new “Browsers” stat card and a “Browser Extensions Over Time by Browser Type” trend chart.
  • Updates device-page summary building to track browser-only devices separately and compute a browser trend + sparkline.
  • Adds a small layout CSS utility to vertically center the violations card content.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/agentic/DeviceEndpoints.jsx Adds a browser trend chart + stat card, refactors chart card rendering, and adjusts grid sizing/alignment.
apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/agentic/agenticPageBuilders.js Extends summary building to include browserName, browser-only counts, and a browser trend/sparkline.
apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/layouts/style.css Adds .agentic-fill-center to vertically center content within a stretched card.

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

Comment on lines 662 to 666
const deviceFirstSeen = {}; // deviceId → earliest startTs
agenticCollections.forEach((c) => {
const hostName = c.hostName || c.displayName || c.name;
const devId = extractEndpointId(hostName);
if (!devId) return;
Comment on lines +725 to +740
// Browser trend: count of newly-first-seen browser-only devices per browser per month.
const chromeItems = browserFirstSeenItems.filter((d) => d.browser === "chrome");
const firefoxItems = browserFirstSeenItems.filter((d) => d.browser === "firefox");
const edgeItems = browserFirstSeenItems.filter((d) => d.browser === "edge");
const safariItems = browserFirstSeenItems.filter((d) => d.browser === "safari");
const { data: browserTrendData } = cumulativeSeriesByMonth(
[
{ items: chromeItems, getTs },
{ items: firefoxItems, getTs },
{ items: edgeItems, getTs },
{ items: safariItems, getTs },
],
startTimestamp,
endTimestamp,
);
const [chromeCounts, firefoxCounts, edgeCounts, safariCounts] = browserTrendData;
Comment on lines +800 to +805
browserTrend: {
chrome: chromeCounts,
firefox: firefoxCounts,
edge: edgeCounts,
safari: safariCounts,
},
Comment on lines +71 to +76
const series = [
{name:"Chrome", data:browserTrend.chrome || new Array(n).fill(0), color:"#4285F4"},
{name:"Firefox", data:browserTrend.firefox || new Array(n).fill(0), color:"#FF7139"},
{name:"Edge", data:browserTrend.edge || new Array(n).fill(0), color:"#0078D7"},
{name:"Safari", data:browserTrend.safari || new Array(n).fill(0), color:"#00B4D8"},
];
@harshithb3304 harshithb3304 reopened this Jul 15, 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.

2 participants