Skip to content

Commit 7edf51a

Browse files
Janpotclaude
andauthored
[tools-public] Replace ported pages with a link to their counterpart in code-infra-dashboard (#1220)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b5ecb08 commit 7edf51a

25 files changed

Lines changed: 182 additions & 1544 deletions

File tree

apps/tools-public/toolpad/pages/baseUiNpmKpis/page.yml

Lines changed: 9 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -4,115 +4,17 @@ apiVersion: v1
44
kind: page
55
spec:
66
title: Base UI npm KPIs
7-
display: shell
7+
alias:
8+
- U0CsCz5
9+
displayName: Base UI npm KPIs
810
content:
911
- component: Text
10-
name: npmChartTitle
11-
layout:
12-
columnSize: 1
13-
props:
14-
variant: h6
15-
value: Headless libraries npm downloads
16-
- component: Chart
17-
name: npmChart
12+
name: text
1813
layout:
1914
columnSize: 1
2015
props:
21-
data:
22-
- kind: line
23-
label: '@mui/base'
24-
data:
25-
$$jsExpression: |
26-
queryHeadlessLibrariesDownloads.data
27-
xKey: date
28-
yKey: '@mui/base'
29-
color: '#1976d2'
30-
- kind: line
31-
label: '@reach/utils'
32-
data:
33-
$$jsExpression: |
34-
queryHeadlessLibrariesDownloads.data
35-
xKey: date
36-
yKey: '@reach/utils'
37-
color: '#b33dc6'
38-
- kind: line
39-
label: '@radix-ui/react-primitive'
40-
data:
41-
$$jsExpression: |
42-
queryHeadlessLibrariesDownloads.data
43-
xKey: date
44-
yKey: '@radix-ui/react-primitive'
45-
color: '#ea5545'
46-
- kind: line
47-
label: '@react-aria/utils'
48-
data:
49-
$$jsExpression: |
50-
queryHeadlessLibrariesDownloads.data
51-
xKey: date
52-
yKey: '@react-aria/utils'
53-
color: '#ef9b20'
54-
- kind: line
55-
label: reakit
56-
data:
57-
$$jsExpression: |
58-
queryHeadlessLibrariesDownloads.data
59-
xKey: date
60-
yKey: reakit
61-
color: '#000'
62-
- kind: line
63-
label: '@headlessui/react'
64-
data:
65-
$$jsExpression: |
66-
queryHeadlessLibrariesDownloads.data
67-
xKey: date
68-
yKey: '@headlessui/react'
69-
color: '#388e3c'
70-
height: 300
71-
- component: DataGrid
72-
name: dataGrid
73-
layout:
74-
columnSize: 1
75-
props:
76-
rows:
77-
$$jsExpression: >
78-
queryHeadlessLibrariesDownloads.data.map((entry) => {
79-
let headlessLibrariesDownloads = 0
80-
Object.keys(entry).forEach((key) => {
81-
if (key !== "date" && key !== "@mui/base") {
82-
headlessLibrariesDownloads += entry[key]
83-
}
84-
})
85-
return {
86-
...entry,
87-
date: entry.date.slice(0, -3),
88-
id: entry.date,
89-
ratio: `${((entry["@mui/base"] / headlessLibrariesDownloads) * 100).toFixed(
90-
2
91-
)}%`,
92-
}
93-
})
94-
columns:
95-
- field: date
96-
type: string
97-
- field: '@mui/base'
98-
type: number
99-
- field: '@reach/utils'
100-
type: number
101-
- field: '@radix-ui/react-primitive'
102-
type: number
103-
- field: '@react-aria/utils'
104-
type: number
105-
- field: reakit
106-
type: number
107-
- field: '@headlessui/react'
108-
type: number
109-
- field: ratio
110-
type: string
111-
queries:
112-
- name: queryHeadlessLibrariesDownloads
113-
query:
114-
function: queryHeadlessLibrariesDownloads.ts#queryHeadlessLibrariesDownloads
115-
kind: local
116-
alias:
117-
- U0CsCz5
118-
displayName: Base UI npm KPIs
16+
mode: markdown
17+
value:
18+
"This page has moved to the code-infra-dashboard:
19+
[Base UI npm KPIs](https://code-infra-dashboard.onrender.com/npm-downloads?packages=%40base-ui%2Freact%2C%40mui%2Fbase%2Creact-aria%2C%40react-aria%2Futils%2C%40headlessui%2Freact%2Creakit%2C%40radix-ui%2Freact-primitive%2C%40reach%2Futils%2C%40ark-ui%2Freact%2C%40ariakit%2Freact)"
20+
display: shell

apps/tools-public/toolpad/pages/cICompletionTime/page.yml

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,17 @@ apiVersion: v1
44
kind: page
55
spec:
66
title: CI completion time
7-
parameters:
8-
- name: repository
9-
value: mui-x
7+
alias:
8+
- fn03hvq
9+
displayName: CI completion time
1010
content:
11-
- component: codeComponent.HealthBadge
12-
name: codeComponent_HealthBadge
13-
layout:
14-
columnSize: 1
15-
props:
16-
value:
17-
$$jsExpression: >
18-
Math.round((queryInsights.data.metrics.duration_metrics.median / 60)
19-
* 100) /
20-
100
21-
warning: 15
22-
problem: 20
23-
unit: minutes
24-
lowerIsBetter: true
2511
- component: Text
26-
name: Text
12+
name: text
2713
layout:
2814
columnSize: 1
2915
props:
16+
mode: markdown
3017
value:
31-
$$jsExpression: >
32-
`Based on the last 7 days (${queryInsights.data.metrics.total_runs}
33-
runs)`
34-
queries:
35-
- name: queryInsights
36-
query:
37-
kind: rest
38-
url:
39-
$$jsExpression: >
40-
`https://circleci.com/api/v2/insights/github/mui/${parameters.repository}/workflows/pipeline/summary?analytics-segmentation=web-ui-insights&reporting-window=last-7-days&workflow-name=pipeline`
41-
headers: []
42-
method: GET
43-
searchParams: []
44-
parameters:
45-
- name: repository
46-
value:
47-
$$jsExpression: |
48-
page.parameters.repository
18+
"This page has moved to the code-infra-dashboard:
19+
[CI completion time](https://code-infra-dashboard.onrender.com/kpis)"
4920
display: shell
50-
alias:
51-
- fn03hvq
52-
displayName: CI completion time

apps/tools-public/toolpad/pages/closedIssuesNoNeedtriage/page.yml

Lines changed: 7 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -4,173 +4,17 @@ apiVersion: v1
44
kind: page
55
spec:
66
title: Closed issues no product scope
7+
alias:
8+
- 7ju3hr6
9+
displayName: Closed issues no product scope
710
content:
811
- component: Text
912
name: text
10-
layout:
11-
columnSize: 1
12-
props:
13-
value: Issues without product scope label
14-
variant: h5
15-
- component: Text
16-
name: text1
1713
layout:
1814
columnSize: 1
1915
props:
2016
mode: markdown
21-
value: "This page is used for:
22-
https://www.notion.so/mui-org/GitHub-community-issues-PRs-12a84fdf50e\
23-
44595afc55343dac00fca#d6680f5abf8b4e3ab132cb8e336bb5bc"
24-
- component: DataGrid
25-
name: dataGrid
26-
layout:
27-
columnSize: 1
28-
props:
29-
rows:
30-
$$jsExpression: |-
31-
materialUI.rows
32-
.concat(muix.rows)
33-
.concat(muiDesignKits.rows)
34-
.concat(pigmentcss.rows)
35-
.concat(baseUi.rows)
36-
.sort((issueA, issueB) => {
37-
if (issueA.state === "open") {
38-
return 1
39-
}
40-
if (issueB.state === "open") {
41-
return 1
42-
}
43-
return issueB.number - issueA.number
44-
})
45-
columns:
46-
- field: number
47-
type: number
48-
width: 81
49-
- field: state
50-
type: string
51-
- field: title
52-
type: string
53-
width: 272
54-
- field: html_url
55-
type: link
56-
width: 310
57-
height: 396
58-
queries:
59-
- name: materialUI
60-
query:
61-
kind: rest
62-
url: https://api.github.com/repos/mui/material-ui/issues
63-
searchParams:
64-
- name: labels
65-
value: 'status: waiting for maintainer'
66-
- name: per_page
67-
value: '100'
68-
- name: state
69-
value: closed
70-
headers:
71-
[
72-
{
73-
name: Authorization,
74-
value: { $$jsExpression: "`Bearer ${parameters.GITHUB_TOKEN}`\n" },
75-
},
76-
]
77-
method: GET
78-
parameters:
79-
- name: GITHUB_TOKEN
80-
value:
81-
$$env: GITHUB_TOKEN
82-
- name: muix
83-
query:
84-
kind: rest
85-
url: https://api.github.com/repos/mui/mui-x/issues
86-
searchParams:
87-
- name: labels
88-
value: 'status: waiting for maintainer'
89-
- name: per_page
90-
value: '100'
91-
- name: state
92-
value: closed
93-
headers:
94-
[
95-
{
96-
name: Authorization,
97-
value: { $$jsExpression: "`Bearer ${parameters.GITHUB_TOKEN}`\n" },
98-
},
99-
]
100-
method: GET
101-
parameters:
102-
- name: GITHUB_TOKEN
103-
value:
104-
$$env: GITHUB_TOKEN
105-
- name: muiDesignKits
106-
query:
107-
kind: rest
108-
url: https://api.github.com/repos/mui/mui-design-kits/issues
109-
searchParams:
110-
- name: labels
111-
value: 'status: waiting for maintainer'
112-
- name: per_page
113-
value: '100'
114-
- name: state
115-
value: closed
116-
headers:
117-
[
118-
{
119-
name: Authorization,
120-
value: { $$jsExpression: "`Bearer ${parameters.GITHUB_TOKEN}`\n" },
121-
},
122-
]
123-
method: GET
124-
parameters:
125-
- name: GITHUB_TOKEN
126-
value:
127-
$$env: GITHUB_TOKEN
128-
- name: baseUi
129-
query:
130-
kind: rest
131-
url: https://api.github.com/repos/mui/base-ui/issues
132-
searchParams:
133-
- name: labels
134-
value: 'status: waiting for maintainer'
135-
- name: per_page
136-
value: '100'
137-
- name: state
138-
value: closed
139-
headers:
140-
[
141-
{
142-
name: Authorization,
143-
value: { $$jsExpression: "`Bearer ${parameters.GITHUB_TOKEN}`\n" },
144-
},
145-
]
146-
method: GET
147-
parameters:
148-
- name: GITHUB_TOKEN
149-
value:
150-
$$env: GITHUB_TOKEN
151-
- name: pigmentcss
152-
query:
153-
kind: rest
154-
url: https://api.github.com/repos/mui/pigment-css/issues
155-
searchParams:
156-
- name: labels
157-
value: 'status: waiting for maintainer'
158-
- name: per_page
159-
value: '100'
160-
- name: state
161-
value: closed
162-
headers:
163-
[
164-
{
165-
name: Authorization,
166-
value: { $$jsExpression: "`Bearer ${parameters.GITHUB_TOKEN}`\n" },
167-
},
168-
]
169-
method: GET
170-
parameters:
171-
- name: GITHUB_TOKEN
172-
value:
173-
$$env: GITHUB_TOKEN
174-
alias:
175-
- 7ju3hr6
176-
displayName: Closed issues no product scope
17+
value:
18+
"This page has moved to the code-infra-dashboard:
19+
[Closed issues no product scope](https://code-infra-dashboard.onrender.com/github-triage?view=closed-issues-no-product-scope)"
20+
display: shell

0 commit comments

Comments
 (0)