AppShellLayout: escolher as abas mobile e receber todos os módulos no moreSheet

Offen
#1,238 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

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
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
frontend

Rechercherichtung

Start at the AppShellLayout component and the BottomNav it renders under src/lib, plus the stories or docs that demo the shell with several modules. The issue names no files in this repository, so first reproduce the 5-module case to see where modules and the moreSheet snippet are passed down. Then decide which of the three proposed APIs to adopt, since the proposal offers alternatives rather than one shape. Done means the chosen prop or snippet is implemented, typed, and shown in a docs/story example with more than four modules.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Problema

Um painel com mais de 4 módulos não consegue controlar a navegação mobile do AppShellLayout (4.6.0):

  • as abas da BottomNav saem direto dos modules, sem como escolher quais 4 ficam na barra;
  • o snippet moreSheet recebe só rest/visibleCount, não a lista completa nem links externos.

No wi (codeatlasdev/wi) o painel tem 5 módulos e ~15 rotas, e Documentação/Status não tinham como ser acessados no celular. Para resolver, o app esconde a barra nativa por CSS (.ca-shell > .ca-bottom-nav) e monta a própria BottomNav com um módulo sentinela "Mais" (apps/web/src/lib/components/MobileNav.svelte, MoreSheet.svelte). O r2k backoffice resolveu com um moreSheet próprio que repete os grupos do mega-menu.

Proposta

  • bottomNavModules (ou mobileTabs): quais destinos ficam na barra.
  • moreSheet recebendo { modules, active, close } completos.
  • Ou um snippet mobileNav que substitui a barra inteira.
Vorherrschende Sprache
TypeScript
Sterne
6
Forks
3
Ø Merge
5 Std. 21 Min.
Gemergte PRs (30 T.)
378

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus codeatlasdev/ui

Alle Issues in codeatlasdev/ui

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.