Three Change facility steps title the browser tab "Merge accounts" over a different heading
❌ 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
- Run develop with two facilities on the device.
- Sign in as a learner and open Profile > Change.
- Select the other facility, Continue → tab reads "Merge accounts", heading reads "Change learning facility".
- Choose Create new account → tab reads "Merge accounts", heading reads "Create new account".
Acceptance Criteria
- [ ] On
ConfirmChangeFacility,UsernameExistsandCreateAccount, the tab title is the step's h1 text followed by " - Kolibri". - [ ] The
describe.eachinChangeFacility.spec.jsfails 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.
#15485 carries the fix as commit 123d92839c ("Title the Change facility steps after their headings"):
ConfirmChangeFacilityandUsernameExistsregister "Change learning facility";CreateAccountregisters "Create new account".ChangeFacility.spec.jsnow checks each step's tab title against its H1 text.
Written by rtibblesbot, an LLM-based coding agent.
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.
#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.
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.
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.