From 34cab8c00451936c2c87440119de5ba71a9f70b2 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Thu, 18 Dec 2025 11:27:50 -0800 Subject: [PATCH 1/2] Remove definition availability chart --- .../Navigation/Pages/PageStatus/PageStatus.js | 84 ++----------------- 1 file changed, 6 insertions(+), 78 deletions(-) diff --git a/src/components/Navigation/Pages/PageStatus/PageStatus.js b/src/components/Navigation/Pages/PageStatus/PageStatus.js index 628a93657..e888e8899 100644 --- a/src/components/Navigation/Pages/PageStatus/PageStatus.js +++ b/src/components/Navigation/Pages/PageStatus/PageStatus.js @@ -1,19 +1,16 @@ // Copyright (c) Microsoft Corporation and others. Licensed under the MIT license. // SPDX-License-Identifier: MIT -import React, { Component } from 'react' -import { Grid, Row, Col, Table } from 'react-bootstrap' +import { Component } from 'react' +import { Grid, Row, Table } from 'react-bootstrap' import ColorScheme from 'color-scheme' import { Bar, BarChart, CartesianGrid, - Cell, Legend, Line, LineChart, - Pie, - PieChart, ResponsiveContainer, Tooltip, XAxis, @@ -34,7 +31,6 @@ export default class PageStatus extends Component { this.state = { loaded: false, requestsPerDay: [], - definitionAvailability: [], crawledPerDay: [], recentlyCrawled: [] } @@ -43,7 +39,6 @@ export default class PageStatus extends Component { async componentDidMount() { const data = await Promise.all([ this.fetchRequestsPerDay(), - this.fetchDefinitionAvailability(), this.fetchCrawledPerDay(), this.fetchRecentlyCrawled(), this.fetchCrawlbreakdown(), @@ -52,11 +47,10 @@ export default class PageStatus extends Component { this.setState({ loaded: true, requestsPerDay: data[0], - definitionAvailability: data[1], - crawledPerDay: data[2], - recentlyCrawled: data[3], - crawlbreakdown: data[4], - toolsRanPerDay: data[5] + crawledPerDay: data[1], + recentlyCrawled: data[2], + crawlbreakdown: data[3], + toolsRanPerDay: data[4] }) } @@ -67,13 +61,6 @@ export default class PageStatus extends Component { }) } - async fetchDefinitionAvailability() { - const data = await getStatus('definitionavailability') - return Object.keys(data).map(name => { - return { name, value: data[name] } - }) - } - async fetchCrawledPerDay() { const data = await getStatus('processedperday') return data.map(entry => { @@ -121,14 +108,6 @@ export default class PageStatus extends Component { {this.renderRequestsPerDay()}
- - -

Definition availability

- {this.renderDefinitionAvailabilityTable()} - - {this.renderDefinitionAvailabilityChart()} -
-

Components processed / day

{this.renderComponentsProcessed()} @@ -167,57 +146,6 @@ export default class PageStatus extends Component { ) } - renderDefinitionAvailabilityTable() { - return ( - - - {this.state.definitionAvailability.map((entry, index) => { - return ( - - - - - ) - })} - -
- - -

{entry.name}

-
- ) - } - - renderDefinitionAvailabilityChart() { - return ( - - - - {this.state.definitionAvailability.map((entry, index) => ( - - ))} - - - - ) - } - renderComponentsProcessed() { return ( From 14cf1a59986194482c04b277c6c29f15f2b2c4c1 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Thu, 18 Dec 2025 11:39:50 -0800 Subject: [PATCH 2/2] Include required import --- src/components/Navigation/Pages/PageStatus/PageStatus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Navigation/Pages/PageStatus/PageStatus.js b/src/components/Navigation/Pages/PageStatus/PageStatus.js index e888e8899..fbc3946dc 100644 --- a/src/components/Navigation/Pages/PageStatus/PageStatus.js +++ b/src/components/Navigation/Pages/PageStatus/PageStatus.js @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation and others. Licensed under the MIT license. // SPDX-License-Identifier: MIT -import { Component } from 'react' +import React, { Component } from 'react' import { Grid, Row, Table } from 'react-bootstrap' import ColorScheme from 'color-scheme' import {