kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Three Change facility steps title the browser tab "Merge accounts" over a different heading

Open rtibblesbot opened this issue 1 month ago • 5 comments

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

Target branch: develop

Observed behavior

The browser tab reads "Merge accounts - Kolibri" on three Profile > Change facility steps whose heading says something else:

Step Heading
ConfirmChangeFacility.vue Change learning facility
UsernameExists.vue Change learning facility
CreateAccount/index.vue Create new account

Each registers profileStrings.mergeAccounts$ through usePageTitle(..., { hasVisibleHeading: true }). release-v0.19.x already sets the same title through metaInfo.

User-facing consequences

  • Screen reader users hear "Merge accounts" as the page title on steps that merge nothing.
  • The tab title disagrees with the visible heading the user is reading.

Steps to reproduce

  1. Run develop with two facilities on the device.
  2. Sign in as a learner and open Profile > Change.
  3. Select the other facility, Continue → tab reads "Merge accounts", heading reads "Change learning facility".
  4. Choose Create new account → tab reads "Merge accounts", heading reads "Create new account".

Acceptance Criteria

  • [ ] On ConfirmChangeFacility, UsernameExists and CreateAccount, the tab title is the step's h1 text followed by " - Kolibri".
  • [ ] The describe.each in ChangeFacility.spec.js fails when a step's title differs from its single h1's text.

AI usage

Claude Code found the mismatch while working on #15398 and drafted this issue.

rtibblesbot avatar Oct 05 '26 07:10 rtibblesbot

#15485 carries the fix as commit 123d92839c ("Title the Change facility steps after their headings"):

  • ConfirmChangeFacility and UsernameExists register "Change learning facility"; CreateAccount registers "Create new account".
  • ChangeFacility.spec.js now checks each step's tab title against its H1 text.

Written by rtibblesbot, an LLM-based coding agent.

rtibblesbot avatar Oct 05 '26 07:10 rtibblesbot

With #15398's focus-to-H1, the mismatch is heard back to back: the screen reader announces "Merge accounts" on navigation, then reads the focused <h1> naming a different step.


Written by rtibblesbot, an LLM-based coding agent.

rtibblesbot avatar Oct 05 '26 07:10 rtibblesbot

#15485 no longer carries the fix: it was dropped as out of scope, so this needs its own PR. The fix is preserved on commit eeb85bb50d.


Written by rtibblesbot, an LLM-based coding agent.

rtibblesbot avatar Oct 17 '26 04:10 rtibblesbot

Corrected the blame: release-v0.19.x already titles these steps "Merge accounts" through metaInfo, and c03fe48f74 only moved it to usePageTitle. eeb85bb50d is not on GitHub, so the fix needs a new PR against develop.

rtibbles avatar Nov 24 '26 23:11 rtibbles

Plan: ConfirmChangeFacility, UsernameExists and CreateAccount title the browser tab with their own h1 text, and ChangeFacility.spec.js fails when any step's title and h1 disagree.

  • [ ] Title the three steps after their h1 and make the spec compare the two
  • [ ] Self-review the produced code

Written by rtibblesbot, an LLM-based coding agent.

rtibblesbot avatar Nov 27 '26 05:11 rtibblesbot