-
Notifications
You must be signed in to change notification settings - Fork 0
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/authentication frontend #64
Conversation
validators: identicalPasswordsValidator<keyof RegisterForm>('password1', 'password2') | ||
}); | ||
|
||
public usernameErrors$ = controlErrorMessages$(this.form, 'username'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of creating an stream of error messages here and using them with | async
in the template, we could also create a pipe that extracts them from a control in the template. Something like:
<p *ngFor="let error of form.controls.username | controlErrors ">{{ error }}</p>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kudos for how much you've done here!
backend/source/models.py
Outdated
medieval_title = models.CharField( | ||
max_length=255, blank=True, help_text="The original title of the work, if known" | ||
) | ||
|
||
medieval_author = models.CharField( | ||
max_length=255, | ||
blank=True, | ||
help_text="The name of the original author of the work, if known", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
original_title
/ original_author
sounds more appropriate to me, but I'll leave it to your judgement.
frontend/src/app/user/user-settings/user-settings.component.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
This PR addresses a number of points listed under 'Frontend' in #38. It also introduces (NgBootstrap) toasts for app-wide notifications.
There are a few issues that could still be implemented. This PR is getting quite big, however, so I wanted to have this reviewed first before I introduce more moving parts / complexity.
Open issues
/home
) (Authentication-based routing #68)