From 94ee92ab8ec10e8f35fb46cb8b3d5368c443f31c Mon Sep 17 00:00:00 2001
From: Mohammad Torkashvand <mohammad.torkashvand@geant.org>
Date: Tue, 4 Jun 2024 14:45:07 +0200
Subject: [PATCH] fix acl for MapsPage and remove exampe title

---
 pages/_app.tsx           |  2 +-
 pages/maps/index.tsx     | 18 +++++++-----------
 types/policyResources.ts |  3 +++
 3 files changed, 11 insertions(+), 12 deletions(-)
 create mode 100644 types/policyResources.ts

diff --git a/pages/_app.tsx b/pages/_app.tsx
index ce0fbae..d95aab4 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -130,7 +130,7 @@ function CustomApp({
                         <TranslationsProvider>
                           <Head>
                             <link rel="icon" href="/favicon.png" />
-                            <title>Welcome to example-orchestrator-ui!</title>
+                            <title>GÉANT Service Orchestrator</title>
                           </Head>
                           <main className="app">
                             <ConfirmationDialogContextWrapper>
diff --git a/pages/maps/index.tsx b/pages/maps/index.tsx
index 06cb76a..acb93fd 100644
--- a/pages/maps/index.tsx
+++ b/pages/maps/index.tsx
@@ -1,24 +1,20 @@
 import NetworkMap from '@/components/NetworkMap/NetworkMap';
+import { GSOPolicyResource } from '@/types/policyResources';
 import { NetworkTopologyData } from '@/types/types';
+import { WfoPolicyRenderPageFallback } from '@orchestrator-ui/orchestrator-ui-components';
 import axios from 'axios';
 import { NextPage, GetServerSideProps } from 'next';
-import Head from 'next/head';
 import React from 'react';
 
 interface MapsProps {
   networkTopologyData: NetworkTopologyData;
 }
 
-const Maps: NextPage<MapsProps> = ({ networkTopologyData }) => {
+const MapsPage: NextPage<MapsProps> = ({ networkTopologyData }) => {
   return (
-    <>
-      <Head>
-        <title>Maps</title>
-      </Head>
-      <div>
-        <NetworkMap data={networkTopologyData} />
-      </div>
-    </>
+    <WfoPolicyRenderPageFallback resource={GSOPolicyResource.NAVIGATION_MAPS}>
+      <NetworkMap data={networkTopologyData} />
+    </WfoPolicyRenderPageFallback>
   );
 };
 
@@ -42,4 +38,4 @@ export const getServerSideProps: GetServerSideProps = async () => {
   }
 };
 
-export default Maps;
+export default MapsPage;
diff --git a/types/policyResources.ts b/types/policyResources.ts
new file mode 100644
index 0000000..777a962
--- /dev/null
+++ b/types/policyResources.ts
@@ -0,0 +1,3 @@
+export enum GSOPolicyResource {
+  NAVIGATION_MAPS = 'NAVIGATION_MAPS',
+}
-- 
GitLab