Soft navigation lacks pending UI and scroll restoration

オープン
#318 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
4
フォーク
13
平均マージ
3日 5時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openedx/frontend-base のほかの issue

openedx/frontend-base の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。