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
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
VRT_BRANCHNAME: ${{ github.head_ref || github.ref_name }}
VRT_CIBUILDID: "Github run_id: ${{ github.run_id }}"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
Expand Down
9 changes: 7 additions & 2 deletions src/components/TestRunList/BulkOperation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ export const BulkOperation: React.FunctionComponent = () => {
);

const isMerge: boolean = React.useMemo(
() => !!rows.find((row: GridRowModel) => selectedIds.includes(row.id.toString()))?.model.merge,
() =>
!!rows.find((row: GridRowModel) =>
selectedIds.includes(row.id.toString()),
)?.model.merge,
[selectedIds, rows],
);

Expand Down Expand Up @@ -268,7 +271,9 @@ export const BulkOperation: React.FunctionComponent = () => {
onCancel={dismissDialog}
content={
<Typography>
{`Are you sure you want to ${submitButtonText().toLowerCase()} ${selectedRows.length} items?`}
{`Are you sure you want to ${submitButtonText().toLowerCase()} ${
selectedRows.length
} items?`}
</Typography>
}
onSubmit={() => {
Expand Down
71 changes: 31 additions & 40 deletions src/components/TestRunList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,58 +156,49 @@ const TestRunList: React.FunctionComponent = () => {
}
unsubscribe?.();
};
return apiRef.current.subscribeEvent?.(
return apiRef.current?.subscribeEvent?.(
"stateChange",
() =>
(unsubscribe = apiRef.current.subscribeEvent(
(unsubscribe = apiRef.current?.subscribeEvent(
"stateChange",
handleStateChange,
)),
);
}, [apiRef, apiRef.current.instanceId]);
}, [apiRef, apiRef.current?.instanceId]);

if (selectedBuild) {
return (
<React.Fragment>
<DataGrid
apiRef={apiRef}
rows={testRuns}
columns={columnsDef}
columnVisibilityModel={{
id: false,
}}
pageSizeOptions={[10, 30, 100]}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
pagination
loading={loading}
slots={{
toolbar: DataGridCustomToolbar,
}}
checkboxSelection
disableColumnSelector
disableColumnMenu
disableRowSelectionOnClick
sortModel={sortModel}
onSortModelChange={(model) => setSortModel(model)}
onRowClick={(param: GridRowParams) => {
navigate(
buildTestRunLocation(
selectedBuild.id,
param.row["id"].toString(),
),
);
}}
/>
</React.Fragment>
<DataGrid
apiRef={apiRef}
rows={testRuns}
columns={columnsDef}
columnVisibilityModel={{
id: false,
}}
pageSizeOptions={[10, 30, 100]}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
pagination
loading={loading}
slots={{
toolbar: DataGridCustomToolbar,
}}
checkboxSelection
disableColumnSelector
disableColumnMenu
disableRowSelectionOnClick
sortModel={sortModel}
onSortModelChange={(model) => setSortModel(model)}
onRowClick={(param: GridRowParams) => {
navigate(
buildTestRunLocation(selectedBuild.id, param.row["id"].toString()),
);
}}
/>
);
}

return (
<React.Fragment>
<Typography variant="h5">Select build from list</Typography>
</React.Fragment>
);
return <Typography variant="h5">Select build from list</Typography>;
};

export default TestRunList;
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ export default defineConfig({

// When false, all CSS will be extracted into a single CSS file.
cssCodeSplit: false,

},
});
Loading