-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [UIE-8138, UIE-8139] - IAM RBAC: add new assigned roles table component part 2 #11762
base: develop
Are you sure you want to change the base?
feat: [UIE-8138, UIE-8139] - IAM RBAC: add new assigned roles table component part 2 #11762
Conversation
dff0da4
to
9b682f4
Compare
Coverage Report: ✅ |
* improve-banner-spacing * update test * add changeset --------- Co-authored-by: Banks Nussman <[email protected]>
9b682f4
to
569c5ee
Compare
* Group account_access and resource_access roles of the user | ||
* | ||
*/ | ||
const combineRoles = (data: IamUserPermissions): CombinedRoles[] => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved all func to utilities.ts
const getResourceTypes = (data: RoleMap[]): EntitiesType[] => | ||
mapEntityTypes(data, ' Roles'); | ||
|
||
export const StyledTypography = styled(Typography, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
@@ -7,13 +7,6 @@ export const sxTooltipIcon = { | |||
padding: 0, | |||
}; | |||
|
|||
export const StyledTypography = styled(Typography, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
@@ -46,23 +42,6 @@ export const StyledClampedContent = styled('div', { | |||
export const StyledBox = styled(Box, { | |||
label: 'StyledBox', | |||
})(({ theme }) => ({ | |||
backgroundColor: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
})); | ||
|
||
export const StyledSpan = styled(Typography, { label: 'StyledSpan' })( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
|
||
const itemRefs = React.useRef<(HTMLSpanElement | null)[]>([]); | ||
|
||
const calculateHiddenItems = React.useCallback(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move that func to utilities.ts
, it's used by 2 components (Permissions and Assigned Entities) now
@@ -2,7 +2,7 @@ import { Autocomplete, Typography } from '@linode/ui'; | |||
import { capitalize } from '@linode/utilities'; | |||
import { Grid } from '@mui/material'; | |||
import React from 'react'; | |||
import { useParams } from 'react-router-dom'; | |||
import { useLocation, useParams } from 'react-router-dom'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move from Shared
folder cause it's not shared, i'll do the same for AssignedRolesTable
in the next PR
Cloud Manager UI test results🔺 1 failing test on test run #3 ↗︎
Details
TroubleshootingUse this command to re-run the failing tests: pnpm cy:run -s "cypress/e2e/core/cloudpulse/timerange-verification.spec.ts" |
IAM RBAC - update assigned roles and entities table components.
Description 📝
Highlight the Pull Request's context and intentions.
Changes 🔄
List any change(s) relevant to the reviewer.
View entities
utilities
and add test for itTarget release date 🗓️
dev
Preview 📷
Include a screenshot or screen recording of the change.
🔒 Use the Mask Sensitive Data setting for security.
💡 Use
<video src="" />
tag when including recordings in table.How to test 🧪
Prerequisites
Assigned Roles
or click on the user's menuView User Roles
Verification steps
(How to verify changes)
Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅