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

Feat/1571 forgotten username display username #6450

Conversation

ssrome
Copy link
Collaborator

@ssrome ssrome commented Dec 10, 2024

Work done

  • Add new page to display username in forgotten username journey
  • Add new component to display page not available when accessing above page without going through forgotten username journey

Tests

Does this PR include tests for the changes introduced?

  • Yes
  • No, I found it difficult to test
  • No, they are not required for this change

@ssrome ssrome changed the base branch from main to feature-branch/forgotten-username December 10, 2024 17:12
@ssrome ssrome marked this pull request as ready for review December 19, 2024 14:25

ngOnInit(): void {
this.getUsernameFound();
this.isUsernameFound = this.username !== null ? true : false;
Copy link
Collaborator

@kapppa-joe kapppa-joe Dec 19, 2024

Choose a reason for hiding this comment

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

probably we could simplify it as

Suggested change
this.isUsernameFound = this.username !== null ? true : false;
this.isUsernameFound = this.username !== null

Or, at the html template, we could set the if condition as username !== null

class="govuk-panel govuk-panel--gray govuk-util__align-left govuk-!-margin-top-1 govuk-!-padding-top-1 govuk-!-padding-bottom-5 govuk-!-padding-left-2 govuk-!-padding-right-0 panel"
data-testid="panel"
>
<h1 class="govuk-!-font-size-36 govuk-!-margin-top-4 govuk-!-margin-bottom-3">
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could use govuk-heading-l instead of govuk-!-font-size-36 here. Both are same font size, but in most case we use the heading classes for h1

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to use the gov heading class

Copy link
Collaborator

@kapppa-joe kapppa-joe left a comment

Choose a reason for hiding this comment

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

Looks good, gave a few small suggestions

@ssrome ssrome merged commit 8b247d3 into feature-branch/forgotten-username Dec 19, 2024
3 checks passed
@ssrome ssrome deleted the feat/1571-forgotten-username-display-username branch December 19, 2024 15:59
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