Files
LoreMind/web/src/app/sessions/active-session-shortcut/active-session-shortcut.component.html
T
ietm64 d926545e3d
Qualité & Sécurité / Web (ESLint · angular-eslint + sonarjs) (push) Successful in 1m43s
Qualité & Sécurité / MegaLinter (PMD · Ruff · Bandit · gitleaks · hadolint) (push) Successful in 2m3s
Qualité & Sécurité / Trivy (CVE dépendances Maven / pip / npm) (push) Failing after 1m3s
Build & Push Images / build (brain) (push) Successful in 2m40s
Build & Push Images / build (core) (push) Successful in 4m24s
Build & Push Images / build (web) (push) Successful in 2m35s
Build & Push Images / build-switcher (push) Successful in 24s
Mobile : raccourci « Séance en cours » dans la barre haute + hub sans débordement à 375 px
- Barre haute mobile : pastille « Séance en cours » (mode compact du
  raccourci, 44 px) — un tap ramène à la séance, liste déroulante s'il y en a
  plusieurs (fermée par Échap ou un tap à côté).
- Hub campagne : l'en-tête de section « Arcs narratifs » passe à la ligne au
  lieu de déborder (3 boutons depuis l'ajout de « Méthode guidée »).

Vérifié : core clean verify (1206 tests), web build + 337 vitest, lint sans
erreur, e2e Playwright 80/80 (desktop + mobile 375 px) sur la branche
fusionnée.
À redéployer : web.
2026-10-17 14:07:20 +02:00

49 lines
1.9 KiB
HTML

@if (entries.length > 0) {
<div class="active-shortcut">
<button type="button" class="shortcut-main"
[class.shortcut-main--current]="entries.length === 1 && isCurrent(entries[0])"
[attr.aria-expanded]="entries.length > 1 ? expanded : null"
[title]="(entries.length === 1 ? 'playAccess.shortcut.openTitle' : 'playAccess.shortcut.listTitle') | translate"
[attr.aria-label]="compact ? ((entries.length === 1 ? 'playAccess.shortcut.openTitle' : 'playAccess.shortcut.listTitle') | translate) : null"
(click)="onMainClick()">
<span class="live-dot" aria-hidden="true"></span>
@if (compact) {
@if (entries.length > 1) {
<span class="compact-count" aria-hidden="true">{{ entries.length }}</span>
}
} @else {
<span class="shortcut-texts">
<span class="shortcut-label">
@if (entries.length === 1) {
{{ 'playAccess.shortcut.one' | translate }}
} @else {
{{ 'playAccess.shortcut.many' | translate:{ n: entries.length } }}
}
</span>
@if (entries.length === 1) {
<span class="shortcut-sub">{{ entries[0].session.name }}</span>
}
</span>
}
@if (entries.length > 1 && !compact) {
<lucide-icon class="shortcut-icon" [img]="expanded ? ChevronUp : ChevronDown" [size]="14"></lucide-icon>
}
</button>
@if (expanded && entries.length > 1) {
<ul class="shortcut-list">
@for (e of entries; track e.session.id) {
<li>
<button type="button" class="shortcut-item" [class.shortcut-item--current]="isCurrent(e)" (click)="open(e)">
<span class="shortcut-item-name">{{ e.session.name }}</span>
@if (contextOf(e)) {
<span class="shortcut-item-ctx">{{ contextOf(e) }}</span>
}
</button>
</li>
}
</ul>
}
</div>
}