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

core/ui: add user info link #5158

Merged
merged 3 commits into from
Jun 28, 2024
Merged

core/ui: add user info link #5158

merged 3 commits into from
Jun 28, 2024

Conversation

calebdoxsey
Copy link
Contributor

Summary

Add a user info link in the header dropdown that points to /.pomerium/.

Related issues

For https://github.com/pomerium/internal/issues/1831

Checklist

  • reference any related issues
  • updated docs
  • updated unit tests
  • updated UPGRADING.md
  • add appropriate tag (improvement / bug / etc)
  • ready for review

@calebdoxsey calebdoxsey added the enhancement New feature or request label Jun 28, 2024
@calebdoxsey calebdoxsey requested a review from a team as a code owner June 28, 2024 15:43
@@ -68,6 +68,11 @@ const Header: FC<HeaderProps> = ({ includeSidebar, data }) => {
setDrawerOpen(false);
};

const handleUserInfo = (evt: React.MouseEvent): void => {
evt.preventDefault();
location.href = "/.pomerium/";
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe use window.open if you want a new tab

@coveralls
Copy link

Coverage Status

coverage: 56.32% (+0.01%) from 56.307%
when pulling 33a47d0 on cdoxsey/user-info
into f5f5e5f on main.

@calebdoxsey calebdoxsey requested a review from a team as a code owner June 28, 2024 15:55
@coveralls
Copy link

Coverage Status

coverage: 56.298% (-0.009%) from 56.307%
when pulling 429265d on cdoxsey/user-info
into f5f5e5f on main.

@calebdoxsey
Copy link
Contributor Author

@kenjenkins I noticed a test flake with the header evaluator. It failed because we needed to pass rego.EvalTime in addition to rego.Time.

@calebdoxsey calebdoxsey merged commit d55cb09 into main Jun 28, 2024
16 checks passed
@calebdoxsey calebdoxsey deleted the cdoxsey/user-info branch June 28, 2024 20:07
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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants