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

Roles page for orgs #948

Merged
merged 6 commits into from
Jun 21, 2022
Merged

Roles page for orgs #948

merged 6 commits into from
Jun 21, 2022

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Jun 20, 2022

Closes #927

It's almost identical to the project access page, so I extracted some of the weirder bits of common logic.

2022-06-21-org-roles-2

@vercel
Copy link

vercel bot commented Jun 20, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
console-ui-storybook ✅ Ready (Inspect) Visit Preview Jun 21, 2022 at 7:16PM (UTC)

@@ -35,6 +35,9 @@ const OrgLayout = () => {
</NavLinkItem>
))}
</Sidebar.Nav>
<Sidebar.Nav heading="Organization">
<NavLinkItem to="../../access">Access &amp; IAM</NavLinkItem>
</Sidebar.Nav>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unfortunately the paths here are kind of messed up and I think they depend on my RR fix and another prerelease, which we've been waiting on longer than I expected

.filter((u) => !usersInPolicy.has(u.id)) || []
)
}, [users, policy])
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Amusingly, extracting these doesn't save any lines, but the logic is weird enough and identical enough that I think they're worth sharing. Generally I like the idea of being able to treat this stuff like it's part of the API layer when we're in app.

@david-crespo david-crespo marked this pull request as ready for review June 21, 2022 17:09
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.

Organization role assignment
1 participant