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

feat: better access control object ui #27175

Merged
merged 2 commits into from
Jan 2, 2025
Merged

feat: better access control object ui #27175

merged 2 commits into from
Jan 2, 2025

Conversation

zlwaterfield
Copy link
Contributor

@zlwaterfield zlwaterfield commented Dec 27, 2024

Changes

Follow along on all rbac changes: #24512

The access control UI is squished in the sidebar, so this is meant to improve the interface and better fit into the sidebar.

Note: these are all still behind a feature flag and will not be accessible by users

Main changes

  • removes input + level select in sidear
  • adds modal with the input and level select
  • pulls user data into a single col (pic, name, email)
Screenshot 2024-12-27 at 2 23 00 PM Screenshot 2024-12-27 at 2 22 37 PM Screenshot 2024-12-27 at 2 22 48 PM

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Manually

const { updateAccessControlMembers } = useAsyncActions(accessControlLogic)
const { guardAvailableFeature } = useValues(upgradeModalLogic)

const [modelOpen, setModelOpen] = useState(false)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could be moving into a logic

const { updateAccessControlRoles } = useAsyncActions(accessControlLogic)
const { guardAvailableFeature } = useValues(upgradeModalLogic)

const [modelOpen, setModelOpen] = useState(false)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could be moved into a logic

Copy link
Contributor

github-actions bot commented Dec 27, 2024

Size Change: 0 B

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.11 MB

compressed-size-action

@zlwaterfield zlwaterfield merged commit 6a1f516 into master Jan 2, 2025
99 checks passed
@zlwaterfield zlwaterfield deleted the zach/rbac/7 branch January 2, 2025 19:22
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.

2 participants