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

Feature/profile menu #27

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Feature/profile menu #27

wants to merge 4 commits into from

Conversation

willm
Copy link
Collaborator

@willm willm commented Sep 29, 2023

This replaces the existing logout button with one similar to the skillz app. I've created this component using stencil in a separate package intended to be used as a component library for internal apps.

Here's what it looks like in dark
Screenshot from 2023-09-29 15-08-56
and light mode
Screenshot from 2023-09-29 15-09-11

I'm not sure where to take the discussion on whether splitting out these components is a good idea but it seems to work fairly well after quite a bit of config tweaking. I will chat about it with some of the technical directors.

Comment on lines +30 to +43
<ProfileMenu
name={`${user.given_name} ${user.family_name}`}
agency="Zenika"
lastLoginDate={`${new Date(user.updated_at).toLocaleDateString(
"en-GB",
)}`}
image={user.picture}
>
<ProfileLink
icon="logout"
text="Logout"
href="/api/auth/logout"
></ProfileLink>
</ProfileMenu>

Choose a reason for hiding this comment

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

How would this component work in an open sourced thezaurus ?
Is the @zenika/internal-ui-components-react open-sourceable too ? 🤔

Copy link

@Osirisxxl Osirisxxl left a comment

Choose a reason for hiding this comment

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

Nice touch 👍

Let's double check if this is compatible with open sourcing the project

@willm
Copy link
Collaborator Author

willm commented Oct 2, 2023

There is some friction tied to open sourcing thezaurus yes, I guess we'd have to publish the components to the public npm, there's not much stopping that from happening but it's pretty "alpha" for the moment.

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