Skip to content

Commit

Permalink
update frontend deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafaggianelli committed Jul 28, 2024
1 parent fd7a0aa commit 69098ba
Show file tree
Hide file tree
Showing 12 changed files with 1,010 additions and 778 deletions.
6 changes: 3 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@handsontable/react": "^13.1.0",
"@heroicons/react": "^2.0.16",
"@microlink/react-json-view": "^1.23.0",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-query": "^5.51.15",
"@tremor/react": "^3.11.1",
"handsontable": "^13.1.0",
"ky": "^1.1.0",
Expand All @@ -34,7 +34,7 @@
},
"devDependencies": {
"@types/json-schema": "^7.0.15",
"@types/node": "^20.8.10",
"@types/node": "^22.0.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.17",
"@types/react-syntax-highlighter": "^15.5.9",
Expand All @@ -43,6 +43,6 @@
"postcss": "^8.4.21",
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2",
"vite": "^4.5.0"
"vite": "^5.3.5"
}
}
4 changes: 2 additions & 2 deletions frontend/src/components/DataViewerDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const DataViewerDialog: React.FC<Props> = ({
}
onClose={onClose}
>
{query.isLoading && <div>Loading...</div>}
{query.isPending && <div>Loading...</div>}

{query.isError &&
(query.error.response.status === 404 ? (
Expand All @@ -117,7 +117,7 @@ const DataViewerDialog: React.FC<Props> = ({
</Text>
))}

{!query.isLoading && !query.isError && <DataViewer data={query.data} />}
{!query.isPending && !query.isError && <DataViewer data={query.data} />}
</Dialog>
</>
)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/LogViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const LogViewer: React.FC<Props> = ({ pipeline, run }) => {
setFilter((currentFilter) => ({ ...currentFilter, ...newFilter }))
}, [])

if (query.isLoading) {
if (query.isPending) {
return <div>Loading...</div>
}

Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/ManualRunDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const ManualRunDialog: React.FC<Props> = ({ pipeline }) => {
}
}}
>
{query.isLoading ? (
{query.isPending ? (
'Loading...'
) : query.isError ? (
'Error'
Expand All @@ -96,7 +96,7 @@ const ManualRunDialog: React.FC<Props> = ({ pipeline }) => {
onClick={() => {
setOpen(false)
}}
disabled={runPipelineMutation.isLoading}
disabled={runPipelineMutation.isPending}
>
Close
</Button>
Expand All @@ -105,7 +105,7 @@ const ManualRunDialog: React.FC<Props> = ({ pipeline }) => {
color="indigo"
type="submit"
icon={PlayIcon}
disabled={runPipelineMutation.isLoading}
disabled={runPipelineMutation.isPending}
>
Run
</Button>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/PipelinesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ArrowTopRightOnSquareIcon } from '@heroicons/react/24/outline'
const PipelinesList: React.FC = () => {
const query = useQuery(listPipelines())

if (query.isLoading) return <div>Loading...</div>
if (query.isPending) return <div>Loading...</div>

if (query.isError) return <div>An error has occurred</div>

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/RunsDurationChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Loader = () => (
)

const RunsDurationChart: React.FC<Props> = ({ query }) => {
if (query.isFetching || query.isLoading) {
if (query.isPending) {
return <Loader />
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/RunsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const RunsList: React.FC<Props> = ({ pipelineId, query, triggerId }) => {
</TableRow>
))}

{(query.isFetching || query.isLoading) && (
{(query.isFetching || query.isPending) && (
<TableLoader columns={numberOfColumns} />
)}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/RunsStatusChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Loader = ({ subject }: { subject: string }) => (
)

const RunsStatusChart: React.FC<Props> = ({ query, subject }) => {
if (query.isLoading || query.isFetching) {
if (query.isPending || query.isFetching) {
return <Loader subject={subject} />
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/pipelines/[pipelineId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const PipelineView: React.FC = () => {
const pipelineQuery = useQuery(getPipeline(pipelineId))
const runsQuery = useQuery(listRuns(pipelineId))

if (pipelineQuery.isLoading) return <div>Loading...</div>
if (pipelineQuery.isPending) return <div>Loading...</div>

if (pipelineQuery.isError) return <div>An error has occurred</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const TriggerView: React.FC = () => {
},
})

if (pipelineQuery.isLoading) return <div>Loading...</div>
if (pipelineQuery.isPending) return <div>Loading...</div>

if (pipelineQuery.isError) return <div>An error has occurred</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const RunViewPage = () => {
const pipelineQuery = useQuery(getPipeline(pipelineId))
const runQuery = useQuery(getRun(pipelineId, triggerId, runId))

if (pipelineQuery.isLoading) {
if (pipelineQuery.isPending) {
return <div>Loading...</div>
}

Expand Down
Loading

0 comments on commit 69098ba

Please sign in to comment.