Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 9 additions & 107 deletions apps/tools-public/toolpad/pages/baseUiNpmKpis/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,115 +4,17 @@ apiVersion: v1
kind: page
spec:
title: Base UI npm KPIs
display: shell
alias:
- U0CsCz5
displayName: Base UI npm KPIs
content:
- component: Text
name: npmChartTitle
layout:
columnSize: 1
props:
variant: h6
value: Headless libraries npm downloads
- component: Chart
name: npmChart
name: text
layout:
columnSize: 1
props:
data:
- kind: line
label: '@mui/base'
data:
$$jsExpression: |
queryHeadlessLibrariesDownloads.data
xKey: date
yKey: '@mui/base'
color: '#1976d2'
- kind: line
label: '@reach/utils'
data:
$$jsExpression: |
queryHeadlessLibrariesDownloads.data
xKey: date
yKey: '@reach/utils'
color: '#b33dc6'
- kind: line
label: '@radix-ui/react-primitive'
data:
$$jsExpression: |
queryHeadlessLibrariesDownloads.data
xKey: date
yKey: '@radix-ui/react-primitive'
color: '#ea5545'
- kind: line
label: '@react-aria/utils'
data:
$$jsExpression: |
queryHeadlessLibrariesDownloads.data
xKey: date
yKey: '@react-aria/utils'
color: '#ef9b20'
- kind: line
label: reakit
data:
$$jsExpression: |
queryHeadlessLibrariesDownloads.data
xKey: date
yKey: reakit
color: '#000'
- kind: line
label: '@headlessui/react'
data:
$$jsExpression: |
queryHeadlessLibrariesDownloads.data
xKey: date
yKey: '@headlessui/react'
color: '#388e3c'
height: 300
- component: DataGrid
name: dataGrid
layout:
columnSize: 1
props:
rows:
$$jsExpression: >
queryHeadlessLibrariesDownloads.data.map((entry) => {
let headlessLibrariesDownloads = 0
Object.keys(entry).forEach((key) => {
if (key !== "date" && key !== "@mui/base") {
headlessLibrariesDownloads += entry[key]
}
})
return {
...entry,
date: entry.date.slice(0, -3),
id: entry.date,
ratio: `${((entry["@mui/base"] / headlessLibrariesDownloads) * 100).toFixed(
2
)}%`,
}
})
columns:
- field: date
type: string
- field: '@mui/base'
type: number
- field: '@reach/utils'
type: number
- field: '@radix-ui/react-primitive'
type: number
- field: '@react-aria/utils'
type: number
- field: reakit
type: number
- field: '@headlessui/react'
type: number
- field: ratio
type: string
queries:
- name: queryHeadlessLibrariesDownloads
query:
function: queryHeadlessLibrariesDownloads.ts#queryHeadlessLibrariesDownloads
kind: local
alias:
- U0CsCz5
displayName: Base UI npm KPIs
mode: markdown
value:
"This page has moved to the code-infra-dashboard:
[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)"
display: shell
46 changes: 7 additions & 39 deletions apps/tools-public/toolpad/pages/cICompletionTime/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,17 @@ apiVersion: v1
kind: page
spec:
title: CI completion time
parameters:
- name: repository
value: mui-x
alias:
- fn03hvq
displayName: CI completion time
content:
- component: codeComponent.HealthBadge
name: codeComponent_HealthBadge
layout:
columnSize: 1
props:
value:
$$jsExpression: >
Math.round((queryInsights.data.metrics.duration_metrics.median / 60)
* 100) /
100
warning: 15
problem: 20
unit: minutes
lowerIsBetter: true
- component: Text
name: Text
name: text
layout:
columnSize: 1
props:
mode: markdown
value:
$$jsExpression: >
`Based on the last 7 days (${queryInsights.data.metrics.total_runs}
runs)`
queries:
- name: queryInsights
query:
kind: rest
url:
$$jsExpression: >
`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`
headers: []
method: GET
searchParams: []
parameters:
- name: repository
value:
$$jsExpression: |
page.parameters.repository
"This page has moved to the code-infra-dashboard:
[CI completion time](https://code-infra-dashboard.onrender.com/kpis)"
display: shell
alias:
- fn03hvq
displayName: CI completion time
170 changes: 7 additions & 163 deletions apps/tools-public/toolpad/pages/closedIssuesNoNeedtriage/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,173 +4,17 @@ apiVersion: v1
kind: page
spec:
title: Closed issues no product scope
alias:
- 7ju3hr6
displayName: Closed issues no product scope
content:
- component: Text
name: text
layout:
columnSize: 1
props:
value: Issues without product scope label
variant: h5
- component: Text
name: text1
layout:
columnSize: 1
props:
mode: markdown
value: "This page is used for:
https://www.notion.so/mui-org/GitHub-community-issues-PRs-12a84fdf50e\
44595afc55343dac00fca#d6680f5abf8b4e3ab132cb8e336bb5bc"
- component: DataGrid
name: dataGrid
layout:
columnSize: 1
props:
rows:
$$jsExpression: |-
materialUI.rows
.concat(muix.rows)
.concat(muiDesignKits.rows)
.concat(pigmentcss.rows)
.concat(baseUi.rows)
.sort((issueA, issueB) => {
if (issueA.state === "open") {
return 1
}
if (issueB.state === "open") {
return 1
}
return issueB.number - issueA.number
})
columns:
- field: number
type: number
width: 81
- field: state
type: string
- field: title
type: string
width: 272
- field: html_url
type: link
width: 310
height: 396
queries:
- name: materialUI
query:
kind: rest
url: https://api.github.com/repos/mui/material-ui/issues
searchParams:
- name: labels
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
value: closed
headers:
[
{
name: Authorization,
value: { $$jsExpression: "`Bearer ${parameters.GITHUB_TOKEN}`\n" },
},
]
method: GET
parameters:
- name: GITHUB_TOKEN
value:
$$env: GITHUB_TOKEN
- name: muix
query:
kind: rest
url: https://api.github.com/repos/mui/mui-x/issues
searchParams:
- name: labels
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
value: closed
headers:
[
{
name: Authorization,
value: { $$jsExpression: "`Bearer ${parameters.GITHUB_TOKEN}`\n" },
},
]
method: GET
parameters:
- name: GITHUB_TOKEN
value:
$$env: GITHUB_TOKEN
- name: muiDesignKits
query:
kind: rest
url: https://api.github.com/repos/mui/mui-design-kits/issues
searchParams:
- name: labels
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
value: closed
headers:
[
{
name: Authorization,
value: { $$jsExpression: "`Bearer ${parameters.GITHUB_TOKEN}`\n" },
},
]
method: GET
parameters:
- name: GITHUB_TOKEN
value:
$$env: GITHUB_TOKEN
- name: baseUi
query:
kind: rest
url: https://api.github.com/repos/mui/base-ui/issues
searchParams:
- name: labels
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
value: closed
headers:
[
{
name: Authorization,
value: { $$jsExpression: "`Bearer ${parameters.GITHUB_TOKEN}`\n" },
},
]
method: GET
parameters:
- name: GITHUB_TOKEN
value:
$$env: GITHUB_TOKEN
- name: pigmentcss
query:
kind: rest
url: https://api.github.com/repos/mui/pigment-css/issues
searchParams:
- name: labels
value: 'status: waiting for maintainer'
- name: per_page
value: '100'
- name: state
value: closed
headers:
[
{
name: Authorization,
value: { $$jsExpression: "`Bearer ${parameters.GITHUB_TOKEN}`\n" },
},
]
method: GET
parameters:
- name: GITHUB_TOKEN
value:
$$env: GITHUB_TOKEN
alias:
- 7ju3hr6
displayName: Closed issues no product scope
value:
"This page has moved to the code-infra-dashboard:
[Closed issues no product scope](https://code-infra-dashboard.onrender.com/github-triage?view=closed-issues-no-product-scope)"
display: shell
Loading
Loading