Skip to content

Conversation

@david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Mar 21, 2024

My suggestions for #2062 were too complicated to put into comments. The resulting UI is the same except I called the tooltip "other roles" instead of figuring out which is in there.

@vercel
Copy link

vercel bot commented Mar 21, 2024

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

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Mar 21, 2024 10:39pm

const roleBadges = sortBy(
[siloAccessRow, projectAccessRow].filter(isTruthy),
(r) => roleOrder[r.roleName] // sorts strongest role first
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This filter and sort takes care of what the ternaries were doing.

@charliepark charliepark merged commit a0bcb6b into add_access_roles_column Mar 21, 2024
@charliepark charliepark deleted the access-roles-ideas branch March 21, 2024 23:16
charliepark added a commit that referenced this pull request Mar 22, 2024
* Add Type column to access table

* Remove old Project and Silo role columns

* Remove duplicate columns

Co-authored-by: David Crespo <david-crespo@users.noreply.github.com>

* Add component for ExpandedCountWithDetails

* Access roles refactor suggestions (#2089)

* mostly move role badges logic out of cell

* ListPlusCell

* extract TipIcon and add one to Role column header

---------

Co-authored-by: David Crespo <david.crespo@oxidecomputer.com>
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