Skip to content

Conversation

@savathoon
Copy link
Contributor

@savathoon savathoon commented Jun 6, 2025

Screenshot 2025-06-05 at 8 04 17 PM
Screenshot 2025-06-05 at 8 09 06 PM

Copilot AI review requested due to automatic review settings June 6, 2025 03:08

This comment was marked as outdated.

@savathoon savathoon requested a review from Copilot June 6, 2025 16:47
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 PR adds a new "Diff Users" page to the application, including corresponding navigation, API methods, and routing updates.

  • Added a new navigation link in NavItems for "Diff Users".
  • Introduced new API methods (fetchGetAllUsers and useGetAllUsers) and types to support fetching all users data.
  • Updated App.tsx to include a new route for the DiffUsers page.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/components/NavItems.tsx Added a navigation link for the "Diff Users" page with a Divider.
src/api/apiComponents.ts Added new API functions and types for fetching all users.
src/App.tsx Updated routing to include the DiffUsers page.
Comments suppressed due to low confidence (1)

src/components/NavItems.tsx:169

  • It appears that GroupIcon is used but not imported. Please ensure that GroupIcon is properly imported from its module.
<ListItemLink to="/users/diff" displayText="Diff Users" displayIcon={<GroupIcon />} />

const groupTypeLabels = {
role_group: 'Role Group',
app_group: 'App Group',
okta_group: 'Okta Group',
Copy link
Contributor

Choose a reason for hiding this comment

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

Technically they all groups (groups, app groups, roles) are okta groups and we don't specifically call them okta groups anywhere else in the app so probably better to change this to just 'Group'. Also we made Access to be compatible with other idp providers besides Okta so users at other companies might get confused

return (
<Box>
<Typography variant="h4" component="h1" gutterBottom>
User Access Comparison
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you make a title card to match the style of other pages? We don't have any other pages with a title directly on the background layer like that

{groupName ?? 'Unnamed Group'}
</Link>
</Typography>
<Chip
Copy link
Contributor

Choose a reason for hiding this comment

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

Idk why this is showing up as pink but it'd probably be better to stick to the theme colors? Also filled chips would probably be more readable

</Collapse>
<Divider />

<ListItemLink to="/users/diff" displayText="Diff Users" displayIcon={<GroupIcon />} />
Copy link
Contributor

Choose a reason for hiding this comment

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

I lean towards having this be linked from the users page as opposed to being in the navbar.

That said, all the other items in the nav bar have unique icons. If this stays here as opposed to being moved, probably change the icon to be consistent with everything else

</Typography>

<Box display="flex" justifyContent="space-between" alignItems="center" mb={3}>
<Button variant="contained" size="large" sx={{height: '50px'}} onClick={resetComparison}>
Copy link
Contributor

Choose a reason for hiding this comment

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

A filled button would probably be more readable here

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