Skip to content

Use LoginMenu from multinet-components#255

Merged
JackWilb merged 4 commits intomainfrom
use-multinet-components-login-page
Sep 23, 2022
Merged

Use LoginMenu from multinet-components#255
JackWilb merged 4 commits intomainfrom
use-multinet-components-login-page

Conversation

@JackWilb
Copy link
Copy Markdown
Member

@JackWilb JackWilb commented Aug 26, 2022

Does this PR close any open issues?

No

Give a longer description of what this PR addresses and why it's needed

This is the first step on the path to using reusable components from a central multinet-components repo. I have preliminarily moved the LoginMenu component there, and I'm using that implementation here.

To make this work, I had to change the implementation of the mdi-icons. We now use the same strategy as the other client apps, where we just get a css link in the index.html file.

Provide pictures/videos of the behavior before and after these changes (optional)

Before:
image

After:
image
image

Are there any additional TODOs before this PR is ready to go?

TODOs:

  • Fix MDI icons for avatar
  • Delete old MDI icon update branch, authored by @AlmightyYakob

@netlify
Copy link
Copy Markdown

netlify bot commented Aug 26, 2022

Deploy Preview for multinet-client ready!

Name Link
🔨 Latest commit f94a914
🔍 Latest deploy log https://app.netlify.com/sites/multinet-client/deploys/632dea3bb1b33c0009445212
😎 Deploy Preview https://deploy-preview-255--multinet-client.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@JackWilb JackWilb changed the title Use login menu from multinet-components Use LoginMenu from multinet-components Aug 26, 2022
@JackWilb JackWilb marked this pull request as ready for review August 26, 2022 20:13
@JackWilb JackWilb requested a review from jjnesbitt August 26, 2022 20:13
Copy link
Copy Markdown
Member

@jjnesbitt jjnesbitt left a comment

Choose a reason for hiding this comment

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

One comment but otherwise lgtm. I'd be okay merging this and fixing that as a follow up

<v-spacer />
<login-menu />
<login-menu
:store="store"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Passing the entire store seems excessive and is store implementation specific. IMO you should just pass what's needed here, the callbacks for logout and fetching user info.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, that's a better idea. It will take a refactor of the mutlinet-components, so let's defer it to an issue

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