Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-12743-changed-1755774240085.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

IAM RBAC: change docs links to be relevant to content on page ([#12743](https://github.com/linode/manager/pull/12743))
4 changes: 2 additions & 2 deletions packages/manager/src/features/IAM/IAMLanding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Tabs } from 'src/components/Tabs/Tabs';
import { TanStackTabLinkList } from 'src/components/Tabs/TanStackTabLinkList';
import { useTabs } from 'src/hooks/useTabs';

import { IAM_DOCS_LINK } from './Shared/constants';
import { IAM_DOCS_LINK, ROLES_LEARN_MORE_LINK } from './Shared/constants';

export const IdentityAccessLanding = React.memo(() => {
const location = useLocation();
Expand All @@ -29,7 +29,7 @@ export const IdentityAccessLanding = React.memo(() => {
breadcrumbProps: {
pathname: '/iam',
},
docsLink: IAM_DOCS_LINK,
docsLink: tabIndex === 0 ? IAM_DOCS_LINK : ROLES_LEARN_MORE_LINK,
entity: 'Identity and Access',
title: 'Identity and Access',
};
Expand Down
9 changes: 9 additions & 0 deletions packages/manager/src/features/IAM/Shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ export const IAM_DOCS_LINK =
export const ROLES_LEARN_MORE_LINK =
'https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles';

export const USER_DETAILS_LINK =
'https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-manage-access';

export const USER_ROLES_LINK =
'https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-manage-access#check-and-update-users-role-assignment';

export const USER_ENTITIES_LINK =
'https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-manage-access#check-and-update-users-entity-assignment';

export const PAID_ENTITY_TYPES = [
'database',
'linode',
Expand Down
12 changes: 10 additions & 2 deletions packages/manager/src/features/IAM/Users/UserDetailsLanding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ import { Tabs } from 'src/components/Tabs/Tabs';
import { TanStackTabLinkList } from 'src/components/Tabs/TanStackTabLinkList';
import { useTabs } from 'src/hooks/useTabs';

import { IAM_DOCS_LINK, IAM_LABEL } from '../Shared/constants';
import {
IAM_LABEL,
USER_DETAILS_LINK,
USER_ENTITIES_LINK,
USER_ROLES_LINK,
} from '../Shared/constants';

export const UserDetailsLanding = () => {
const { username } = useParams({ from: '/iam/users/$username' });
Expand All @@ -26,6 +31,9 @@ export const UserDetailsLanding = () => {
},
]);

const docsLinks = [USER_DETAILS_LINK, USER_ROLES_LINK, USER_ENTITIES_LINK];
const docsLink = docsLinks[tabIndex] ?? USER_DETAILS_LINK;

return (
<>
<LandingHeader
Expand All @@ -41,7 +49,7 @@ export const UserDetailsLanding = () => {
},
pathname: location.pathname,
}}
docsLink={IAM_DOCS_LINK}
docsLink={docsLink}
removeCrumbX={4}
spacingBottom={4}
title={username}
Expand Down