Merge the two app headers into one header (T443708)
Summary
Merges the two app headers into a single <header> in App.vue, per T443708.
Before this change:
App.vuerendered a plain "Starter Kit"<h1>that did nothing when clicked.views/Header.vuerendered the real title, the logo and the status bar. Each route view mounted it, so it ended up inside<main>.
As a result, the product name showed twice, people clicked the wrong title to go home, and some pages had three <h1>s.
Changes
App.vue: one header row with the logo, title and subtitle (a singlerouter-linkto/dashboardthat still tracksstarterkit.nav.home_click) and the user info on the right.StatusBarsits below that row and only shows whenstate.user && route.meta.requiresAuth.- Removed
<Header />fromDashboardLayout,EssentialTaskLayout(covers the 6 tool routes),AnalyticsDashboard,ImpactDashboardandEventsExplorer, then deletedviews/Header.vue. - Headings: the site title is no longer an
<h1>, so each page now has a single<h1>(its own page title). - Mobile (≤768px): the subtitle is hidden, the logo is smaller, and the username and Logout stack on the right.
- i18n: added
starterkit-app-header-titleandstarterkit-app-header-subtitle, which were hardcoded English before. Removed the now-unusedstarterkit-app-title. Onlyen.jsonandqqq.jsonchanged; other locales will follow from translatewiki.
Behaviour notes
- Login (
/) now shows the branded row too. It shows no status bar, even for a logged-in "welcome back" user, which matches what users see today. - The status bar now lives in
App.vue, so it stays mounted across route changes instead of remounting, and its loading skeleton no longer flashes on every page change.
Testing
npm test: 108 of 108 tests pass.vite buildsucceeds. ESLint reports no errors.- Checked manually at desktop width and at 390px:
/logged out, and/logged in/dashboard, a tool page,/analytics,/impact,/events- The title link goes to
/dashboard.
Bug: T443708