From 0cea4644c39618309f6c190921e4be21a00d6d4b Mon Sep 17 00:00:00 2001 From: "Arslan, Erdem" Date: Fri, 24 Nov 2023 00:30:09 +0100 Subject: [PATCH] [Entities] C2 Producer View Table - create and add data to the producer table --- pkgs/ui/src/app/client-2/page.tsx | 9 +++++ pkgs/ui/src/mock/client_2/index.ts | 64 +++++++++++++++++++++++++++++- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/pkgs/ui/src/app/client-2/page.tsx b/pkgs/ui/src/app/client-2/page.tsx index 39e68d5..accb479 100644 --- a/pkgs/ui/src/app/client-2/page.tsx +++ b/pkgs/ui/src/app/client-2/page.tsx @@ -4,6 +4,8 @@ import SummaryDetails from "@/components/summary_card"; import { Client2ConsumerData, Client2ConsumerTableConfig, + Client2ProducerData, + Client2ProducerTableConfig, Client2SummaryDetails } from "@/mock/client_2"; import CustomTable from "@/components/table"; @@ -26,6 +28,13 @@ export default function Client1() { configuration={Client2ConsumerTableConfig} /> +
+

Producer View

+ +
); } diff --git a/pkgs/ui/src/mock/client_2/index.ts b/pkgs/ui/src/mock/client_2/index.ts index 0f7fb8e..8898587 100644 --- a/pkgs/ui/src/mock/client_2/index.ts +++ b/pkgs/ui/src/mock/client_2/index.ts @@ -75,4 +75,66 @@ export const Client2ConsumerTableConfig = [ key: "network", label: "Network" } -] \ No newline at end of file +] + +export const Client2ProducerData = [ + { + "service_name": "Carlo's Printing", + "service_type": "3D Printing", + "end_point": "URL", + "usage": "C1(3), C3(4)", + "status": "DRAFT, REGISTERED", + "action": "Register, Deregister, Delete", + }, + { + "service_name": "Steve's Printing", + "service_type": "3D Printing", + "end_point": "URL", + "usage": "C1(3), C3(4)", + "status": "REGISTERED", + "action": "Create", + }, + { + "service_name": "Test Printing A", + "service_type": "3D Printing", + "end_point": "URL", + "usage": "C1(3), C3(4)", + "status": "DRAFT", + "action": "Register, Deregister", + }, + { + "service_name": "Test Printing B", + "service_type": "3D Printing", + "end_point": "URL", + "usage": "C1(3), C3(4)", + "status": "DRAFT, REGISTERED", + "action": "Delete, Create", + }, +] + +export const Client2ProducerTableConfig = [ + { + key: "service_name", + label: "Service name" + }, + { + key: "service_type", + label: "Service Type" + }, + { + key: "end_point", + label: "End Point" + }, + { + key: "usage", + label: "Usage" + }, + { + key: "status", + label: "Status" + }, + { + key: "action", + label: "Action" + } +]