Skip to content

Commit 4e6671e

Browse files
committed
setup code
1 parent 4f86206 commit 4e6671e

File tree

6 files changed

+702
-19
lines changed

6 files changed

+702
-19
lines changed

cloudformation/main.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -398,23 +398,6 @@ Resources:
398398
AttributeName: expiresAt
399399
Enabled: true
400400

401-
ExternalMembershipRecordsTable:
402-
Type: "AWS::DynamoDB::Table"
403-
DeletionPolicy: "Retain"
404-
UpdateReplacePolicy: "Retain"
405-
Properties:
406-
BillingMode: "PAY_PER_REQUEST"
407-
TableName: infra-core-api-membership-external
408-
DeletionProtectionEnabled: true
409-
PointInTimeRecoverySpecification:
410-
PointInTimeRecoveryEnabled: !If [IsProd, true, false]
411-
AttributeDefinitions:
412-
- AttributeName: netid_list
413-
AttributeType: S
414-
KeySchema:
415-
- AttributeName: netid_list
416-
KeyType: HASH
417-
418401
ExternalMembershipV3RecordsTable:
419402
Type: "AWS::DynamoDB::Table"
420403
DeletionPolicy: "Retain"

src/ui/Router.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { ViewRoomRequest } from "./pages/roomRequest/ViewRoomRequest.page";
2828
import { ViewLogsPage } from "./pages/logs/ViewLogs.page";
2929
import { TermsOfService } from "./pages/tos/TermsOfService.page";
3030
import { ManageApiKeysPage } from "./pages/apiKeys/ManageKeys.page";
31+
import { ManageExternalMembershipPage } from "./pages/externalMembership/ManageExternalMembership.page";
3132

3233
const ProfileRediect: React.FC = () => {
3334
const location = useLocation();
@@ -179,6 +180,10 @@ const authenticatedRouter = createBrowserRouter([
179180
path: "/iam",
180181
element: <ManageIamPage />,
181182
},
183+
{
184+
path: "/externalMembership",
185+
element: <ManageExternalMembershipPage />,
186+
},
182187
{
183188
path: "/tickets/manage/:eventId",
184189
element: <ViewTicketsPage />,

src/ui/components/AppShell/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
IconDoor,
2222
IconHistory,
2323
IconKey,
24+
IconExternalLink,
2425
} from "@tabler/icons-react";
2526
import { ReactNode } from "react";
2627
import { useNavigate } from "react-router-dom";
@@ -97,6 +98,16 @@ export const navItems = [
9798
description: null,
9899
validRoles: [AppRoles.MANAGE_ORG_API_KEYS],
99100
},
101+
{
102+
link: "/externalMembership",
103+
name: "External Membership",
104+
icon: IconExternalLink,
105+
description: null,
106+
validRoles: [
107+
AppRoles.VIEW_EXTERNAL_MEMBERSHIP_LIST,
108+
AppRoles.MANAGE_EXTERNAL_MEMBERSHIP_LIST,
109+
],
110+
},
100111
];
101112

102113
export const extLinks = [

0 commit comments

Comments
 (0)