feat(home): drop the topbar section label, shorten the eyebrow and rename the indicators action
The topbar no longer shows «Análisis de información» next to the logo; the breadcrumb stays on the workspace routes. The home eyebrow reads «ISSSTELEON» and the «Indicadores» action is «Modelos predictivos de riesgo».
This commit is contained in:
@@ -80,7 +80,8 @@ describe('Encabezado del marco', () => {
|
||||
await ir(url);
|
||||
expect(selector()).toBeNull();
|
||||
expect(root().querySelector('.platform-title')).toBeNull();
|
||||
expect(root().querySelector('.site-header__section')?.textContent).toBe('Análisis de información');
|
||||
expect(root().querySelector('.site-header__section')).toBeNull();
|
||||
expect(root().querySelector('.site-header__nav')?.textContent).not.toContain('Análisis de información');
|
||||
expect(root().querySelector('.app-shell--indicadores')).toBeNull();
|
||||
if (url !== '/') expect(root().querySelector('.site-header__crumb')?.textContent).toContain(url === '/conectar' ? 'Conectar datos' : 'Gobernanza de modelos');
|
||||
});
|
||||
|
||||
+1
-2
@@ -20,9 +20,8 @@
|
||||
}
|
||||
} @else {
|
||||
<nav class="site-header__nav" aria-label="Secciones">
|
||||
<a class="site-header__section" routerLink="/">Análisis de información</a>
|
||||
@if (breadcrumb(); as crumb) {
|
||||
<span class="site-header__crumb" aria-current="page">› {{ crumb }}</span>
|
||||
<span class="site-header__crumb" aria-current="page">{{ crumb }}</span>
|
||||
}
|
||||
</nav>
|
||||
}
|
||||
|
||||
@@ -41,14 +41,6 @@
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.site-header__section {
|
||||
text-decoration: none;
|
||||
color: var(--color-text);
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.app-main {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
@@ -89,11 +81,6 @@
|
||||
width: clamp(132px, 42vw, 170px);
|
||||
}
|
||||
|
||||
.site-header__section {
|
||||
font-size: 13px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.site-footer__content {
|
||||
min-height: 76px;
|
||||
padding: 0 20px;
|
||||
|
||||
@@ -60,6 +60,15 @@ describe('App', () => {
|
||||
expect(page.querySelector('.site-footer')).not.toBeNull();
|
||||
});
|
||||
|
||||
it('home shows only the brand name as eyebrow and names the risk models action', async () => {
|
||||
// Fails if the eyebrow regains the section text or the action goes back to «Indicadores».
|
||||
const page = await render('/');
|
||||
expect(page.querySelector('.home__eyebrow')?.textContent?.trim()).toBe('ISSSTELEON');
|
||||
const acciones = Array.from(page.querySelectorAll('.home__action')).map(a => a.textContent?.replace(/\s+/g, ' ').trim());
|
||||
expect(acciones.some(t => t?.endsWith('Modelos predictivos de riesgo'))).toBe(true);
|
||||
expect(acciones.some(t => t?.endsWith('Indicadores'))).toBe(false);
|
||||
});
|
||||
|
||||
it('/conectar opens the full-height workspace (breadcrumb, no footer)', async () => {
|
||||
const page = await render('/conectar');
|
||||
expect(page.querySelector('app-connect-page')).not.toBeNull();
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
<section class="home" aria-labelledby="home-title">
|
||||
<div class="home__content">
|
||||
<p class="home__eyebrow">ISSSTELEON · Análisis de información</p>
|
||||
<p class="home__eyebrow">ISSSTELEON</p>
|
||||
<h1 id="home-title">Analiza tu información</h1>
|
||||
<p class="home__description">
|
||||
Conecta archivos, bases de datos y documentos PDF, mapea sus columnas a la base del proyecto y carga datos validados.
|
||||
@@ -12,7 +12,7 @@
|
||||
</a>
|
||||
<a class="home__action" routerLink="/indicadores">
|
||||
<mat-icon aria-hidden="true">insights</mat-icon>
|
||||
<span>Indicadores</span>
|
||||
<span>Modelos predictivos de riesgo</span>
|
||||
</a>
|
||||
<a class="home__action" routerLink="/bitacora">
|
||||
<mat-icon aria-hidden="true">fact_check</mat-icon>
|
||||
|
||||
Reference in New Issue
Block a user