small ui fixes in pipelines (#487)

This commit is contained in:
Dan Wilson 2023-09-14 13:26:33 +00:00 committed by Harness
parent 67883e90e0
commit ae89113aa9
3 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ const Execution = () => {
useSpaceSSE({
space,
events: ['execution_updated', 'execution_completed'],
events: ['execution_updated', 'execution_completed', 'execution_canceled', 'execution_running'],
onEvent: data => {
if (
data?.repo_id === execution?.repo_id &&

View File

@ -69,7 +69,7 @@ const ExecutionList = () => {
useSpaceSSE({
space,
events: ['execution_updated', 'execution_completed'],
events: ['execution_updated', 'execution_completed', 'execution_canceled', 'execution_running'],
onEvent: data => {
// ideally this would include number - so we only check for executions on the page - but what if new executions are kicked off? - could check for ids that are higher than the lowest id on the page?
if (

View File

@ -79,7 +79,7 @@ const PipelineList = () => {
useSpaceSSE({
space,
events: ['execution_updated', 'execution_completed'],
events: ['execution_updated', 'execution_completed', 'execution_canceled', 'execution_running'],
onEvent: data => {
// should I include pipeline id here? what if a new pipeline is created? coould check for ids that are higher than the lowest id on the page?
if (pipelines?.some(pipeline => pipeline.repo_id === data?.repo_id && pipeline.id === data?.pipeline_id)) {
@ -105,7 +105,7 @@ const PipelineList = () => {
() => [
{
Header: getString('pipelines.name'),
width: 'calc(100% - 210px)',
width: 'calc(50% - 105px)',
Cell: ({ row }: CellProps<TypesPipeline>) => {
const record = row.original
return (
@ -127,7 +127,7 @@ const PipelineList = () => {
},
{
Header: getString('pipelines.lastExecution'),
width: 'calc(50% - 90px)',
width: 'calc(50% - 105px)',
Cell: ({ row }: CellProps<TypesPipeline>) => {
const record = row.original.execution