Skip to content
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

display warning for expired and disabled members in Roles and Groups #2668

Merged

Conversation

ArtjomsPorss
Copy link
Contributor

Description

Changes affect Roles and Groups Members screen. Shows a warning icon if a Member is disabled or expired. Tooltip of warning icon shows disability reason.

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Attach Screenshots (Optional)

  • Shows warning icon with a tooltip and displays date in red for expired members:
    Screenshot 2024-07-31 at 16 53 24
  • Shows warning icon for disabled members. Tooltip describes disability reason.
    Screenshot 2024-07-31 at 17 04 09

@ArtjomsPorss ArtjomsPorss force-pushed the display-warning-for-disabled-members branch from a00e299 to b7d393e Compare August 1, 2024 16:50
@ArtjomsPorss ArtjomsPorss marked this pull request as ready for review August 1, 2024 19:43
@@ -54,6 +57,7 @@ const GroupTDStyled = styled.td`
const EditDiv = styled.div`
display: flex;
column-gap: 10px;
${(props) => props.expired ? props.expired : ''}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one suggestion for readability, it maybe better to set the color and font-style here based on whether expired is true or not instead of passing the css in expired field.

@ArtjomsPorss ArtjomsPorss force-pushed the display-warning-for-disabled-members branch 4 times, most recently from dd32c4f to 29e7f41 Compare August 2, 2024 15:14
@@ -54,6 +57,8 @@ const GroupTDStyled = styled.td`
const EditDiv = styled.div`
display: flex;
column-gap: 10px;
${props => props.expired && `color: ${props.color};`}
${props => props.expired && `font-style: ${props.fontStyle};`}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chandrasekhar1996 is this what you meant it to look like?

@ArtjomsPorss ArtjomsPorss force-pushed the display-warning-for-disabled-members branch from 29e7f41 to 2c097e1 Compare August 2, 2024 16:54
@havetisyan havetisyan merged commit ac9d467 into AthenZ:master Aug 2, 2024
2 checks passed
havetisyan added a commit that referenced this pull request Aug 6, 2024
havetisyan added a commit that referenced this pull request Aug 6, 2024
@ArtjomsPorss ArtjomsPorss deleted the display-warning-for-disabled-members branch August 20, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants