Soft navigation lacks pending UI and scroll restoration

Aperta
#318 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start in DefaultLayout and inspect the router tree, including the existing route-level lazy() navigation flow and useNavigation() access. Add a pending indicator covering navigation and render once in the router tree; done means slow navigations show feedback and soft navigation resets scroll position across apps.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

Now that cross-app soft navigation works (openedx/frontend-app-instructor-dashboard#246, openedx/frontend-app-admin-console#233), two gaps remain in the shell, affecting all apps.

First, there is no pending UI during navigation. With route-level lazy(), a soft navigation stays on the current page while the chunk downloads and loaders run, so on a slow connection the triggering click looks inert. A useNavigation()-driven indicator (e.g. a top progress bar) in DefaultLayout would cover every app.

Second, the shell does not render <ScrollRestoration />, and data routers do not reset scroll position without it. Soft-navigating from a scrolled-down page in one app lands mid-page in the next. Rendering it once inside the router tree fixes this globally.

Lingua principale
TypeScript
Stelle
4
Fork
13
Merge medio
3g 5h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openedx/frontend-base

Tutte le issue di openedx/frontend-base

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.