Flow Runs: the run list hides runs below its edge with no scroll bar; a project with six runs looks like it has four

オープン 初心者向け
#67 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
dart, flutter
領域
frontend

調査の方向性

lib/features/flow/widgets/flow_keyboard_table.dart から始めてください。ここでは build が行を単純な ListView.builder に配置しています。詳細ペインにある #55 の常時表示スクロールバーの修正と比較してください。テーブルに ScrollController を与え、リストを Scrollbar(controller: ..., thumbVisibility: true) で囲みます。共有されている Steps/Metrics/Worst のパステーブルが引き続き動作するようにしてください。次に、1600x140 のサイズで、lib/services/flow/flow_run_index.dart の 6 件のフィクスチャ実行を使ったウィジェットテストを追加します。テストでは、スクロールバーのつまみが描画されること、および 6 番目の行がスクロールまたは Down キーで到達可能であることを検証してください。

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

説明

What happens

A project with one LibreLane flow: entry and six complete runs under librelane/runs/ (four made by simcrux flow from the command line, two by Tools > Run Flow Entry). View > Flow Runs shows four rows, newest at the top. The two oldest runs are not visible and nothing in the panel says there are more. On macOS the idle scroll bar is hidden, so the list reads as "SimCrux found four runs".

The guide (flow-runs, "every run of the project's flow entries, newest first") is right about the data: the index holds all six. Only the list's viewport hides them.

Why

  • buildFlowRunIndex (lib/services/flow/flow_run_index.dart) returns all six runs, newest first; no dedup, limit or filter drops any (checked headlessly against a copy of the six runs).
  • FlowKeyboardTable (lib/features/flow/widgets/flow_keyboard_table.dart) puts the rows in a plain ListView.builder with no Scrollbar, so on macOS there is no sign of rows below the edge.
  • The run list is short in two layouts of _FlowRunsBody (lib/features/flow/widgets/flow_runs_panel.dart):
    • narrow (panel under 640 px wide: right dock, or a split bottom dock): the list is capped at min(168, 0.4 * height), header included, so it never shows more than five rows however tall the dock is, and four or fewer when the dock is under about 420 px tall;
    • wide: the list takes the dock's height, so a bottom dock about 170 px tall shows four.

Widget probe with the six real runs (rows fully visible): 1600x140 wide, 4; 600x380 narrow, 4 (fifth cut); 600x800 narrow, 5; 1600x200 wide, 6.

This is the run-list counterpart of #55 (the detail pane's content under the edge), which was fixed with an always-visible scroll bar.

Smallest fix

In FlowKeyboardTable.build, wrap the body ListView in Scrollbar(controller: _scroll, thumbVisibility: true, ...), as #55 did for the detail. It covers the run list and the Steps, Metrics, Worst paths and path-segment tables that share the widget. A widget test: six runs at 1600x140 show the thumb (find.byType(Scrollbar) / RawScrollbar painting) and the sixth row is reachable by scrolling or by the Down key.

Optional, larger: let the narrow layout's list grow past 168 px when the dock is tall, or show the run count in the list header ("6 runs").

主要言語
Dart
スター
0
フォーク
0
平均マージ
2日 10時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

Ferrite-Engineering/simcrux のほかの issue

Ferrite-Engineering/simcrux の issue をすべて見る

似ている issue

Dart の issue をもっと見る

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

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