From 0491d2ae2a7647733083f62f213f3d817f3ce2a2 Mon Sep 17 00:00:00 2001 From: Wes Date: Tue, 17 Oct 2023 12:39:06 -0700 Subject: [PATCH] feat: add timeline to deployment page --- .../features/deployments/DeploymentPage.tsx | 56 ++++++++++++------- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/console/client/src/features/deployments/DeploymentPage.tsx b/console/client/src/features/deployments/DeploymentPage.tsx index 39e9168a2d..93c9d70b59 100644 --- a/console/client/src/features/deployments/DeploymentPage.tsx +++ b/console/client/src/features/deployments/DeploymentPage.tsx @@ -7,6 +7,8 @@ import { Page } from '../../layout' import { Module } from '../../protos/xyz/block/ftl/v1/console/console_pb' import { MetadataCalls, VerbRef } from '../../protos/xyz/block/ftl/v1/schema/schema_pb' import { modulesContext } from '../../providers/modules-provider' +import { modulesFilter } from '../../services/console.service' +import { Timeline } from '../timeline/Timeline' import { verbRefString } from '../verbs/verb.utils' export const DeploymentPage = () => { @@ -63,28 +65,40 @@ export const DeploymentPage = () => { breadcrumbs={[{ label: 'Deployments', link: '/deployments' }]} /> - -
- {module?.verbs.map((verb) => ( - navigate(`/deployments/${module.deploymentName}/verbs/${verb.verb?.name}`)} - > - {verb.verb?.name} -

{verb.verb?.name}

-
- ))} + +
+
+
+ {module?.verbs.map((verb) => ( + navigate(`/deployments/${module.deploymentName}/verbs/${verb.verb?.name}`)} + > + {verb.verb?.name} +

{verb.verb?.name}

+
+ ))} +
+

Calls

+ {calls.length === 0 &&

Does not call other verbs

} +
    + {calls?.map((verb) => ( +
  • + handleCallClick(verb)}>{verbRefString(verb)} +
  • + ))} +
+
+
+ {module?.deploymentName && ( + + )} +
-

Calls

- {calls.length === 0 &&

Does not call other verbs

} -
    - {calls?.map((verb) => ( -
  • - handleCallClick(verb)}>{verbRefString(verb)} -
  • - ))} -
)