Skip to content

Impersonate UI#4243

Merged
PeerRich merged 13 commits intomainfrom
4241-20-settings-admin-view
Sep 8, 2022
Merged

Impersonate UI#4243
PeerRich merged 13 commits intomainfrom
4241-20-settings-admin-view

Conversation

@sean-brydon
Copy link
Copy Markdown
Member

Adds impersonate UI to settings

Also adds a new permission container

CleanShot 2022-09-07 at 15 50 51

@sean-brydon sean-brydon linked an issue Sep 7, 2022 that may be closed by this pull request
@vercel
Copy link
Copy Markdown

vercel bot commented Sep 7, 2022

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

Name Status Preview Updated
cal ✅ Ready (Inspect) Visit Preview Sep 8, 2022 at 3:06PM (UTC)

Comment thread packages/ui/v2/core/PermissionContainer.tsx
Copy link
Copy Markdown
Member

@PeerRich PeerRich left a comment

Choose a reason for hiding this comment

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

great stuff. love that new admin check component

@sean-brydon
Copy link
Copy Markdown
Member Author

@zomars could you sanity check this admin component before we merge?

Comment thread packages/ui/v2/core/layouts/SettingsLayout.tsx Outdated
Comment thread packages/ui/v2/core/PermissionContainer.tsx Outdated
Comment thread packages/ui/v2/core/PermissionContainer.tsx
Comment thread packages/ui/v2/core/navigation/tabs/HorizontalTabItem.tsx Outdated
Comment thread packages/ui/v2/core/navigation/tabs/HorizontalTabItem.tsx Outdated
Comment thread packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx Outdated
Copy link
Copy Markdown
Contributor

@zomars zomars left a comment

Choose a reason for hiding this comment

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

Blocking until feedback is addressed

@PeerRich
Copy link
Copy Markdown
Member

PeerRich commented Sep 8, 2022

related: #4270

it seems like all admin settings are visible to non-admins (backend still checks for permission luckily)

@sean-brydon
Copy link
Copy Markdown
Member Author

related: #4270

it seems like all admin settings are visible to non-admins (backend still checks for permission luckily)

Should be fixed in update - will wait for @zomars blessing :)

@sean-brydon
Copy link
Copy Markdown
Member Author

@zomars this creates a content flash if you are not an admin (if you manually navigate to an admin page) - not 100% sure the best way to prevent that do you have any ideas?

@PeerRich PeerRich enabled auto-merge (squash) September 8, 2022 14:51
@PeerRich PeerRich added ♻️ autoupdate tells kodiak to keep this branch up-to-date automerge labels Sep 8, 2022
@zomars
Copy link
Copy Markdown
Contributor

zomars commented Sep 8, 2022

Not ideal but let's follow up instead

@PeerRich PeerRich merged commit 1bb9875 into main Sep 8, 2022
@PeerRich PeerRich deleted the 4241-20-settings-admin-view branch September 8, 2022 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge ♻️ autoupdate tells kodiak to keep this branch up-to-date

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

/settings - admin panel is visible for non admins 2.0 Settings / Admin {View}

4 participants