Soft navigation lacks pending UI and scroll restoration

Abierto
#318 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
4
Forks
13
Merge medio
3 d 5 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openedx/frontend-base

Todos los issues de openedx/frontend-base

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.