kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

User auth pages keep one H1 when the theme hides the sign-in title

Open rtibblesbot opened this issue 2 months ago • 2 comments

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

With a theme that sets signIn.showTitle: false, /auth/#/signin-or-signup, /auth/#/facilities and /auth/#/set-password render no H1. Their only H1 is AuthBase's sign-in title, which that setting hides. They also register no title with usePageTitle, so UserAuthLayout renders no hidden H1 for them. #4922 requires exactly one H1 on every page.

Complexity: Low Target branch: develop

The Change

  • AuthSelect, FacilitySelect and NewPasswordPage should each register a title with usePageTitle, and UserAuthLayout renders it as a hidden H1.
  • Each title needs a new string.
  • When the sign-in title shows, it stays the only H1, as on SignInPage and PictureSignInPage.

How to Get There

  1. Enable a theme whose signIn sets showTitle: false.
  2. Open each of the three routes. document.querySelectorAll('h1').length is 0.

Acceptance Criteria

  • [ ] With signIn.showTitle: false, each of the three routes renders exactly one H1. It is visually hidden and carries the page's title.
  • [ ] With signIn.showTitle: true, each renders exactly one H1, the sign-in title.
  • [ ] Each page's tab title is its title followed by " - Kolibri".
  • [ ] Jest tests cover each page's H1 count under both settings.

References

  • AuthBase.vue#L35-L41: the sign-in title that showTitle hides.
  • #15463 adds UserAuthLayout's hidden H1 and registers SignInPage's title with hasVisibleHeading: themeConfig.signIn.showTitle.

AI usage

Claude Code found this gap while reviewing #15463 and drafted this issue.

rtibblesbot avatar Oct 02 '26 11:10 rtibblesbot

rtibbles Blocked on #15463 (open, changes requested): UserAuthLayout's hidden H1 and the hasVisibleHeading registration this issue builds on aren't on develop.

  • Wait for #15463 to merge, or
  • stack a PR on issue-15393-a5eb98?

rtibblesbot avatar Oct 04 '26 12:10 rtibblesbot

Wait, this issue should have been marked as blocked by the issue that #15463 resolves.

rtibbles avatar Oct 04 '26 16:10 rtibbles