From 1da072a577de42eaa8beee587fe691c9c4ddcff5 Mon Sep 17 00:00:00 2001 From: Wes Date: Tue, 17 Oct 2023 13:02:56 -0700 Subject: [PATCH] feat: add timeline to deployment page (#494) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ![Screenshot 2023-10-17 at 12 38 17 PM](https://github.com/TBD54566975/ftl/assets/51647/5e81bb25-76cb-4010-82e4-42186a9d6bc0) --- .../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)} -
  • - ))} -
)