BottomNav/MobileHeader: sem legenda curta por aba (legendas longas parecem de tamanhos diferentes) e sem convenção para título de página + contexto no cabeçalho mobile
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
Rechercherichtung
Start by reading the BottomNav, NavModule and MobileHeader APIs, then inspect how label, fullLabel, mobileTitle and mobileHeaderActions are used. The issue proposes a BottomNav-only short label, a documented page-title/context convention and a reusable ContextPill, with layout contract tests at 320, 360 and 393px. Done means the short captions fit with the stated spacing and the mobile header can show page title and session context with the specified alignment.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Versão: @codeatlasdev/ui 4.6.0 e main (27621338). Componentes: BottomNav, NavModule, MobileHeader. Painel: codeatlasdev/wi (apps/web), iPhone 15 (393px) e Pixel 8.
1. BottomNav: legendas de tamanhos "diferentes" e coladas
Relato do dono: "texto grande, texto pequeno" na barra inferior. Medi: todas as legendas têm o mesmo font-size (10,3125px = --ca-font-size-micro), line-height (12,375px) e peso (500); não há auto-ajuste por item. O que lê como tamanhos diferentes é a largura do texto: "Visão geral" 56px, "Chats" 29px, "Integrações" 60px, "Configurações" 74px, "Mais" 24px, em colunas iguais de ~78px (flex: 1 1 0). "Configurações" (74px) e "Integrações" (60px) ficam a ~2px uma da outra e a linha parece uma frase corrida; em 360px a legenda longa passa a ser cortada por text-overflow: ellipsis.
NavModule.label é, ao mesmo tempo, o texto do rail/painel/bottom nav; fullLabel é o nome longo (tooltip/título). Não há como dar à barra inferior uma legenda curta própria sem trocar o label (e então o painel mostra o curto).
Proposta: NavModule.shortLabel (ou tabLabel) usado só pela BottomNav, e um teste de contrato: nenhuma legenda cortada nem a menos de 8px da vizinha em 320, 360 e 393px. Relacionada: #1238 (escolher abas e receber todos os módulos).
Workaround no wi: MobileNav.svelte mapeia overview → "Início" e settings → "Ajustes" ao montar a barra (a barra nativa do shell já é escondida por causa do #1238). Teste: apps/web/tests/page-column.spec.ts ("bottom nav captions…": mesmo tamanho, nada cortado, ≥ 8px entre textos).
2. MobileHeader: o título customizado herda uma hierarquia ruim
Com mobileTitle o wi colocou o seletor de sessão no título. O slot é flex: 1 1 auto colado à logo com gap: 8px, e o conteúdo é livre: o primeiro desenho (ponto de status + sobretítulo "CHAMADAS" + nome da sessão) deixou o ponto a 0px da logo (o margin do app foi zerado pelo gap do shell) e dois títulos competindo (rota em versal, sessão em h6). O MobileHeader já tem title (a rota) e trailing; falta uma convenção documentada: título = página, trailing = contexto (sessão/workspace).
Proposta: documentar esse uso em mobileHeaderActions/mobileTitle e oferecer um ContextPill (nome + chevron + ponto de status opcional, 32px visuais dentro de 44px de toque) para o canto direito, evitando que cada app invente a sua.
Workaround no wi: SessionSwitcher compact passa a ser uma pílula em mobileHeaderActions; o título do shell volta a mostrar a página. Teste: tests/page-column.spec.ts ("header: logo, page title and session pill are centred…", ≥ 8px entre logo e ponto, itens centralizados ±1,5px).
Reprodução
[...document.querySelectorAll('.ca-bottom-nav__label')].map(e => [e.textContent, getComputedStyle(e).fontSize, e.getBoundingClientRect().width])
em 393x852.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6
- Forks
- 3
- Ø Merge
- 5 Std. 21 Min.
- Gemergte PRs (30 T.)
- 378
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codeatlasdev/ui
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
codeatlasdev/ui#1340 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:a11y area:components bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
codeatlasdev/ui#1336 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
codeatlasdev/ui#1329 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
codeatlasdev/ui#1292 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:components enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
codeatlasdev/ui#1198 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codeatlasdev/ui
Ähnliche Issues
-
bug frontend
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
CivicTechWR/accessible-housing-portal#578 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
nekko-labs/nekko-agent#2998 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
sandbox-quantum/switch#2163 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement ux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
lolimmlost/aidj#433 ·
Maintainer antworten meist innerhalb von 1 Tag
-
test: ipcShownDialogKeys.test.tsx can fail the unit run with 'window is not defined' after it endsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag