From 2b590e9531e2949fe07556f987f3318233736505 Mon Sep 17 00:00:00 2001 From: "Arslan, Erdem" Date: Fri, 24 Nov 2023 00:29:14 +0100 Subject: [PATCH] [Entities] C2 Consumer View Table - create and add data to the producer table --- pkgs/ui/src/app/client-2/page.tsx | 14 ++++++- pkgs/ui/src/mock/client_2/index.ts | 62 ++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) diff --git a/pkgs/ui/src/app/client-2/page.tsx b/pkgs/ui/src/app/client-2/page.tsx index a9a4168..39e68d5 100644 --- a/pkgs/ui/src/app/client-2/page.tsx +++ b/pkgs/ui/src/app/client-2/page.tsx @@ -1,7 +1,12 @@ "use client"; import SummaryDetails from "@/components/summary_card"; -import { Client2SummaryDetails } from "@/mock/client_2"; +import { + Client2ConsumerData, + Client2ConsumerTableConfig, + Client2SummaryDetails +} from "@/mock/client_2"; +import CustomTable from "@/components/table"; export default function Client1() { return ( @@ -14,6 +19,13 @@ export default function Client1() { details: Client2SummaryDetails, }} /> +
+

Consumer View

+ +
); } diff --git a/pkgs/ui/src/mock/client_2/index.ts b/pkgs/ui/src/mock/client_2/index.ts index 19e6936..0f7fb8e 100644 --- a/pkgs/ui/src/mock/client_2/index.ts +++ b/pkgs/ui/src/mock/client_2/index.ts @@ -14,3 +14,65 @@ export const Client2SummaryDetails = [ value: "Carlo's Home Network", }, ]; + +export const Client2ConsumerData = [ + { + "service_name": "Carlo's Printing", + "service_type": "3D Printing", + "end_point": "Consume", + "producer": "C2", + "producer_did": "did:sov:test:1223", + "network": "Carlo's Home Network", + }, + { + "service_name": "Steve's Printing", + "service_type": "3D Printing", + "end_point": "Consume", + "producer": "C2", + "producer_did": "did:sov:test:1234", + "network": "Steve's Home Network", + }, + { + "service_name": "Test A", + "service_type": "3D Printing", + "end_point": "Consume", + "producer": "C2", + "producer_did": "did:sov:test:4567", + "network": "Test Network A", + }, + { + "service_name": "Test B", + "service_type": "3D Printing", + "end_point": "Consume", + "producer": "C2", + "producer_did": "did:sov:test:0062", + "network": "Test Network B", + }, +] + +export const Client2ConsumerTableConfig = [ + { + key: "service_name", + label: "Service name" + }, + { + key: "service_type", + label: "Service Type" + }, + { + key: "end_point", + label: "End Point" + }, + { + key: "producer", + label: "Producer" + }, + { + key: "producer_did", + label: "Producer DID" + }, + { + key: "network", + label: "Network" + } +] \ No newline at end of file