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

Add "Log back as previous user" feature #193

Merged
merged 4 commits into from
Mar 31, 2022
Merged

Add "Log back as previous user" feature #193

merged 4 commits into from
Mar 31, 2022

Conversation

dherault
Copy link
Contributor

Summary

Fixes #180
image

@dherault dherault added the enhancement New feature or request label Mar 30, 2022
@dherault dherault self-assigned this Mar 30, 2022
Copy link
Member

@michaeljguarino michaeljguarino left a comment

Choose a reason for hiding this comment

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

I feel like this call-to-action is slightly unintuitive. Could it potentially be another element above or below logout with similar styling (you can probably use that switch icon if you'd like).

@@ -27,12 +28,21 @@ function ServiceAccount({user, next, update}) {
window.location = '/'
}
})
const me = useContext(CurrentUserContext)

function handleImpressonateClick() {
Copy link
Member

Choose a reason for hiding this comment

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

rename to handleImpersonateClick. Also I think this should probably be a useCallback hook accepting mutation as a dependency, although I suspect it wouldn't actually matter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, it's my GitHub Copilot's mistake :)
No need for a useCallback here imo.

@dherault
Copy link
Contributor Author

image

@dherault dherault merged commit df030f6 into master Mar 31, 2022
@dherault dherault deleted the fix-issue-180 branch June 9, 2022 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

Return to Previous User after assuming a service account identity
2 participants