Facility page titles come from the core composable
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
11 Facility components set their tab title with vue-meta's metaInfo, and no Facility layout defines a titleTemplate, so Facility titles lack the " - Kolibri" suffix. For #4922 they should register through the core composable, including the Create new user side panel route.
Complexity: Low Target branch: develop
Context
- Create new user (
users/sidePanels/UserCreate) is a child route of/:facility_id?/users/and sets its own title over the Users page's. - Facility > Data (
DataPage) has three visible<h1>s ("Export usage data", "Import and export users", "Sync facility data") and none for its title "Manage Data", as radinamatic found in #15402's QA.
The Change
- Each Facility component that uses
metaInforegisters the same title with the core composable instead; Create new user registers as a nested route. - Facility pages with one visible
<h1>opt out of the hidden H1. - On a page with more than one visible
<h1>, those headings become<h2>s and the page takes the hidden H1. - Each registered title message moves out of the component's
$trsinto acreateTranslatorobject, passed to the composable directly.
Out of Scope
- Facility's
/classes/<id>/passwords/page: done in #15395. - Focus after navigation: #15398.
- Title wording: #4466.
Acceptance Criteria
General
- [ ] Every Facility tab title is its
developtitle followed by " - Kolibri". - [ ] With the Create new user side panel open on Facility > Users, the tab title is "Create new user - Kolibri"; closing the panel restores the Users title.
- [ ] An errored Facility page's tab title is "Error - Kolibri".
- [ ] Every Facility page has exactly one H1.
- [ ] On Facility > Data, the H1 is "Manage Data" and the three section headings are
<h2>s. - [ ]
grep -rn metaInfo kolibri/plugins/facilityfinds nothing. - [ ] No title passed to the composable is read from a component's
$trs, and no caller usesgetCurrentInstance.
References
UserCreate/index.vue#L222-L226: the side panel route'smetaInfo.AllPasswordsPage.vue#L175-L178: a migrated page registering title parts and opting out of the hidden H1.DataPage/index.vue#L18,ImportInterface/index.vue#L4andSyncInterface/index.vue#L4: the three<h1>s on Facility > Data.
AI usage
The assigner chose the approach and scope in #4922; Claude Code chose this split and drafted the issue from a survey of the code.
Plan: The 11 Facility metaInfo components register their titles with kolibri/composables/usePageTitle, so Facility tabs end " - Kolibri" and every page has one H1 (#15397, part of #4922).
- [ ] Pages with one visible H1
- [ ] Facility > Data takes the hidden H1
- [ ] Create new user side panel
- [ ] Self-review the produced code
Assumptions — the issue did not settle these; say so if one is wrong.
- NewUsersPage registers "New users", since closing the panel lands there; if only the 11 should change, closing shows "Kolibri".
- The AC's "restores the Users title" means the page under the panel; if it means literally "Users", the panel's close route must change too.
- "No caller uses
getCurrentInstance" covers ManageClassPage's$storeand UserCreate's$refs; if it covers only title getters, those two swaps can be dropped. - Demoted Data headings keep
develop's h1 size, per DeviceInfoPage in #15484; if not, drop the size rule and they render at h2 size. - With a Facility side panel open, the host's toolbar
<h1>and the panel's both stay, as ondevelop; if one H1 is required there, the host heading needs demoting while a panel is open, for all five panels. - UsersTrashPage and the sync-schedule pages stay unregistered ("Kolibri", as on
develop); if they should register, that is a follow-up.
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?
- Implemented code following the pre-approved plan using test-driven development (red-green-refactor)
- Ran the project's full test suite and linter before committing
- For UI changes: captured live screenshots to verify rendering
- For backend changes: verified with example API/CLI output