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

Create account menu and login page #502

Closed
wants to merge 4 commits into from

Conversation

josephperrott
Copy link
Member

See individual commits.

An accounnt menu component which can be used to manage login state as well as display the logged in
user and their account linking status.
Create the login page for the prs application.
@josephperrott josephperrott added action: merge The PR is ready for merge by the caretaker action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 7, 2022
@josephperrott josephperrott requested a review from devversion April 7, 2022 20:05
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM, just some minor comments

apps/shared/account/BUILD.bazel Outdated Show resolved Hide resolved
apps/prs/src/app/app.component.scss Outdated Show resolved Hide resolved
apps/prs/src/app/login/login.component.scss Outdated Show resolved Hide resolved
apps/shared/account/account.component.html Outdated Show resolved Hide resolved
apps/prs/src/app/app.component.html Outdated Show resolved Hide resolved
apps/shared/account/account.component.html Outdated Show resolved Hide resolved
apps/shared/account/account.component.html Show resolved Hide resolved
apps/shared/account/account.service.ts Outdated Show resolved Hide resolved

constructor(private auth: Auth) {
this.auth.onAuthStateChanged((user) => {
this.avatarUrl = user?.photoURL || DEFAULT_AVATAR_URL;
Copy link
Member

Choose a reason for hiding this comment

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

For more explicitness we could use nullish coalescing, same below.

Suggested change
this.avatarUrl = user?.photoURL || DEFAULT_AVATAR_URL;
this.avatarUrl = user?.photoURL ?? DEFAULT_AVATAR_URL;

Copy link
Member Author

Choose a reason for hiding this comment

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

We actually don't want nullish coalescing in this case because if the photoURL we get is '' we want to use the default one instead.

@josephperrott josephperrott removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Apr 7, 2022
@josephperrott
Copy link
Member Author

This PR was merged into the repository by commit 50857c6.

josephperrott added a commit that referenced this pull request Apr 7, 2022
Create the login page for the prs application.

PR Close #502
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 8, 2022
@josephperrott josephperrott deleted the login-setup branch August 10, 2022 19:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants