Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@savathoon
Copy link
Contributor

@savathoon savathoon commented Jun 9, 2025

Changes to the tables on the following pages

  • /users | Entire row is clickable
  • /users/:user: | Each entry in Owner table, Member table displays highlight color on hover over each clickable element, row is not clickable
  • /groups | Entire row is clickable
  • /groups/:group: | Each entry in Owners, Member tables displays highlight color on hover over each clickable element, row is not clickable
  • /roles | Entire row
  • /roles/:row: | Each group entry
  • /apps | Entire row
  • /apps/:app: | Each group user entry

Out of scope due to list entries with multiple links:

  • /requests
  • /role-requests
  • /expiring-groups
  • /expiring-roles
  • /users/:user:/audit
  • /groups/:group:/audit
  • /roles/:role:/audit

Copilot AI review requested due to automatic review settings June 9, 2025 16:40

This comment was marked as outdated.

@savathoon savathoon changed the title Hover styles Add hover styles highlight, make table row clickable when all items link to same page Jun 9, 2025
@savathoon savathoon requested a review from Copilot June 9, 2025 21:38

This comment was marked as outdated.

…render highlight color on hover and respect unique links within same row
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces hover styles to highlight clickable rows and updates the table components on several pages to improve the clickable experience. Key changes include:

  • Adding hover effects (background color and color changes) to list and detail views on users, roles, groups, and apps.
  • Replacing standard TableRow elements with a custom LinkTableRow component for entire row clickability.
  • Converting individual Link components to clickable rows using onClick and navigate in apps pages.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/pages/users/Read.tsx Added hover styles to link components and audit icon.
src/pages/users/List.tsx Replaced TableRow with LinkTableRow for full row clicks.
src/pages/roles/List.tsx Introduced LinkTableRow for clickable rows and improved description truncation.
src/pages/groups/Read.tsx Applied hover color changes to group links.
src/pages/groups/List.tsx Updated row components to use LinkTableRow.
src/pages/apps/Read.tsx Updated clickable rows with onClick; added hover styling.
src/pages/apps/List.tsx Converted rows to LinkTableRow for full row linking.
src/components/LinkTableRow.tsx Created a reusable component to wrap table rows with a clickable Link.
Comments suppressed due to low confidence (1)

src/pages/users/Read.tsx:187

  • Remove the extra space in the color value ('inherit ') to ensure consistent styling; use 'inherit' instead.
color: 'inherit ',

Comment on lines +182 to +185
sx={{
cursor: 'pointer',
transition: 'all 0.2s ease',
'&:hover': {
Copy link

Copilot AI Jun 10, 2025

Choose a reason for hiding this comment

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

Consider adding keyboard accessibility support (e.g., tabIndex and onKeyDown handler) to the clickable TableRow for improved accessibility.

Copilot uses AI. Check for mistakes.
@savathoon savathoon merged commit ba02d0e into main Jun 11, 2025
6 checks passed
@savathoon savathoon deleted the hover_styles branch June 11, 2025 02:17
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