mirror of
https://github.com/harness/drone.git
synced 2025-05-11 14:40:05 +08:00
small ui fixes in pipelines (#487)
This commit is contained in:
parent
67883e90e0
commit
ae89113aa9
@ -47,7 +47,7 @@ const Execution = () => {
|
|||||||
|
|
||||||
useSpaceSSE({
|
useSpaceSSE({
|
||||||
space,
|
space,
|
||||||
events: ['execution_updated', 'execution_completed'],
|
events: ['execution_updated', 'execution_completed', 'execution_canceled', 'execution_running'],
|
||||||
onEvent: data => {
|
onEvent: data => {
|
||||||
if (
|
if (
|
||||||
data?.repo_id === execution?.repo_id &&
|
data?.repo_id === execution?.repo_id &&
|
||||||
|
@ -69,7 +69,7 @@ const ExecutionList = () => {
|
|||||||
|
|
||||||
useSpaceSSE({
|
useSpaceSSE({
|
||||||
space,
|
space,
|
||||||
events: ['execution_updated', 'execution_completed'],
|
events: ['execution_updated', 'execution_completed', 'execution_canceled', 'execution_running'],
|
||||||
onEvent: data => {
|
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?
|
// 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 (
|
if (
|
||||||
|
@ -79,7 +79,7 @@ const PipelineList = () => {
|
|||||||
|
|
||||||
useSpaceSSE({
|
useSpaceSSE({
|
||||||
space,
|
space,
|
||||||
events: ['execution_updated', 'execution_completed'],
|
events: ['execution_updated', 'execution_completed', 'execution_canceled', 'execution_running'],
|
||||||
onEvent: data => {
|
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?
|
// 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)) {
|
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'),
|
Header: getString('pipelines.name'),
|
||||||
width: 'calc(100% - 210px)',
|
width: 'calc(50% - 105px)',
|
||||||
Cell: ({ row }: CellProps<TypesPipeline>) => {
|
Cell: ({ row }: CellProps<TypesPipeline>) => {
|
||||||
const record = row.original
|
const record = row.original
|
||||||
return (
|
return (
|
||||||
@ -127,7 +127,7 @@ const PipelineList = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Header: getString('pipelines.lastExecution'),
|
Header: getString('pipelines.lastExecution'),
|
||||||
width: 'calc(50% - 90px)',
|
width: 'calc(50% - 105px)',
|
||||||
Cell: ({ row }: CellProps<TypesPipeline>) => {
|
Cell: ({ row }: CellProps<TypesPipeline>) => {
|
||||||
const record = row.original.execution
|
const record = row.original.execution
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user