Skip to content

Commit f7fb90a

Browse files
authored
Rename Access & IAM to Access (#2197)
rename Access & IAM to Access
1 parent 2e7e4a0 commit f7fb90a

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

app/layouts/ProjectLayout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function ProjectLayout({ overrideContentPane }: ProjectLayoutProps) {
6666
{ value: 'Images', path: pb.projectImages(projectSelector) },
6767
{ value: 'VPCs', path: pb.vpcs(projectSelector) },
6868
{ value: 'Floating IPs', path: pb.floatingIps(projectSelector) },
69-
{ value: 'Access & IAM', path: pb.projectAccess(projectSelector) },
69+
{ value: 'Access', path: pb.projectAccess(projectSelector) },
7070
]
7171
// filter out the entry for the path we're currently on
7272
.filter((i) => i.path !== pathname)
@@ -115,7 +115,7 @@ export function ProjectLayout({ overrideContentPane }: ProjectLayoutProps) {
115115
<IpGlobal16Icon /> Floating IPs
116116
</NavLinkItem>
117117
<NavLinkItem to={pb.projectAccess(projectSelector)}>
118-
<Access16Icon title="Access & IAM" /> Access &amp; IAM
118+
<Access16Icon title="Access" /> Access &amp; IAM
119119
</NavLinkItem>
120120
</Sidebar.Nav>
121121
</Sidebar>

app/layouts/SiloLayout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function SiloLayout() {
3737
{ value: 'Projects', path: pb.projects() },
3838
{ value: 'Images', path: pb.siloImages() },
3939
{ value: 'Utilization', path: pb.siloUtilization() },
40-
{ value: 'Access & IAM', path: pb.siloAccess() },
40+
{ value: 'Access', path: pb.siloAccess() },
4141
]
4242
// filter out the entry for the path we're currently on
4343
.filter((i) => i.path !== pathname)
@@ -72,7 +72,7 @@ export function SiloLayout() {
7272
<Metrics16Icon /> Utilization
7373
</NavLinkItem>
7474
<NavLinkItem to={pb.siloAccess()}>
75-
<Access16Icon /> Access & IAM
75+
<Access16Icon /> Access
7676
</NavLinkItem>
7777
</Sidebar.Nav>
7878
</Sidebar>

app/routes.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export const routes = createRoutesFromElements(
258258
path="access"
259259
element={<SiloAccessPage />}
260260
loader={SiloAccessPage.loader}
261-
handle={{ crumb: 'Access & IAM' }}
261+
handle={{ crumb: 'Access' }}
262262
/>
263263
</Route>
264264

@@ -413,7 +413,7 @@ export const routes = createRoutesFromElements(
413413
path="access"
414414
element={<ProjectAccessPage />}
415415
loader={ProjectAccessPage.loader}
416-
handle={{ crumb: 'Access & IAM' }}
416+
handle={{ crumb: 'Access' }}
417417
/>
418418
</Route>
419419
</Route>

test/e2e/project-access.e2e.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import { expect, expectNotVisible, expectRowVisible, expectVisible, test } from
1111

1212
test('Click through project access page', async ({ page }) => {
1313
await page.goto('/projects/mock-project')
14-
await page.click('role=link[name*="Access & IAM"]')
14+
await page.click('role=link[name*="Access"]')
1515

1616
// page is there, we see user 1 and 3 but not 2 or 4
17-
await expectVisible(page, ['role=heading[name*="Access & IAM"]'])
17+
await expectVisible(page, ['role=heading[name*="Access"]'])
1818
const table = page.locator('table')
1919
await expectRowVisible(table, {
2020
Name: 'Hannah Arendt',

test/e2e/silo-access.e2e.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ test('Click through silo access page', async ({ page }) => {
1515
const table = page.locator('role=table')
1616

1717
// page is there, we see user 1 and 2 but not 3
18-
await page.click('role=link[name*="Access & IAM"]')
18+
await page.click('role=link[name*="Access"]')
1919

20-
await expectVisible(page, ['role=heading[name*="Access & IAM"]'])
20+
await expectVisible(page, ['role=heading[name*="Access"]'])
2121
await expectRowVisible(table, {
2222
Name: 'real-estate-devs',
2323
Type: 'Group',

0 commit comments

Comments
 (0)