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

Navigation side bar (#1904) #1914

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

maknik
Copy link

@maknik maknik commented Oct 16, 2024

Screenshot 2024-10-16 at 21 02 06

Copy link
Contributor

@szczygiel-m szczygiel-m left a comment

Choose a reason for hiding this comment

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

Nice PR! 😄

<template v-if="!isLoggedIn">
<v-list>
<v-list-item
:prepend-avatar="`https://alleavatar.allegrogroup.com/${userData.user_name}.jpg`"
Copy link
Contributor

Choose a reason for hiding this comment

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

Since it is opensourced repository we can't hardcode such internal links. We should remove it or make it a configurable string, but the second option would require more changes also on the backend site of hermes-management.

Copy link
Contributor

@pitagoras3 pitagoras3 Nov 8, 2024

Choose a reason for hiding this comment

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

I agree with Mateusz, could you remove this?

return state.accessToken ? jwtDecode(state.accessToken) : { exp: 0 };
userData(state: AuthStoreState): {
exp: number;
full_name: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

issue: Here, we implicitly expect that JWT contains full_name and user_name in the token.

This may not be true for our Open Source users. I would suggest to simplify the sidebar, by removing info about logged in user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants