feat(shell): domain menu in the header, as in the deployed dev version

How: on /indicadores/<domain> routes the App header shows the platform title
and a mat-menu button named after the current domain, listing the other two
(the same markup and styles as the deployed WebApp's app.html). Other routes
(Conectar, Gobernanza) keep the "Análisis de información" breadcrumb. The
indicators page drops its own TEA/CaCu/CaMa links, so there is one switcher.

Implications: domain switching now depends on the App shell; a page embedded
elsewhere has no way to change domain by itself. Specs that asserted the
in-page links now assert their absence, and app.spec covers the menu.
This commit is contained in:
rockdrigo
2026-11-09 18:10:58 -06:00
parent 39974b8533
commit e2b307abf5
10 changed files with 77 additions and 60 deletions
@@ -10,14 +10,6 @@
}
</header>
@if (!fichaPacienteAbierta()) {
<!-- Upstream moved domain switching into its own app shell's header (a
dropdown in app.ts/app.html); our shell is shared with other workspace
sections (Conectar, Gobernanza) so it stays here instead, same as before. -->
<nav aria-label="Dominios de indicadores" class="domain-nav">
@for (domain of dominios; track domain) {
<a mat-button [routerLink]="['/indicadores', domain]" [attr.aria-current]="dominio === domain ? 'page' : null">{{ domainNavLabels[domain] }}</a>
}
</nav>
<div class="section-tabs" [class.dark-theme]="tema === 'oscuro'" role="tablist" [attr.aria-label]="'Secciones de ' + domainLabels[dominio]" (keydown)="sectionKeydown($event)">
@for (section of sections; track section.id) {
<button type="button" role="tab" [id]="'tab-' + section.id" [attr.aria-controls]="'panel-' + section.id"