fix: show file picker empty message below the input line
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 70/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, node.js, react
- 領域
- cli
調査の方向性
src/tui/filePicker.js の FilePicker コンポーネントの最後の return ブロックから始めてください。ここでは入力の Text と空メッセージが、1列の Box の中で兄弟要素になっています。src/tui/inputArea.js の pickerOpen 分岐の周辺を確認し、ピッカーが入力パネルをどのように置き換えているかを見てください。TUI で @ と一致しない名前を入力して再現します。入力した内容の下に " No matching files." の行が表示され、tests/unit/tui/filePicker.test.js のテストでその順序が確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
When the file picker's @ autocomplete filter matches no files, the "No matching files." empty message is displayed in a way that obscures the input line, so the user cannot see what they typed when they make a typo. The empty message should be positioned below the line the user types on.
Environment
- OS: Linux 7.0.14-19-pve
- Node.js: v25.8.1
- madz version: 1.113.1
- LLM provider: Unknown — user to confirm
Reproduction
Steps to reproduce the behavior:
- Start the madz TUI.
- Type
@followed by a typo (e.g.,@src/confgwhereconfgdoes not exist). - Observe the file picker shows "No matching files." but the user cannot see what they typed.
Expected Behavior
The "No matching files." empty message is shown below the line the user types on, so the typed input remains visible.
Actual Behavior
The empty message is displayed in a way that obscures the input line — the user cannot see what they typed when there is a typo.
Additional Context
The FilePicker component in src/tui/filePicker.js renders the input line and the empty message in a single column Box. The empty message positioning needs adjustment so it renders below the input line without obscuring the typed text.
Audit Findings (for Issue #1412)
- File:
src/tui/filePicker.js— The FilePicker renders its own input line (aTextwithbefore/at/aftercursor segments) and the empty message as siblings in a single columnBox(flexDirection: "column"). The empty message (" No matching files.") is the second child, so it should stack below the input line. The render block is thereturn React.createElement(Box, { flexDirection: "column", ... }, <input Text>, <empty message or file list>)near the end of the component. - File:
src/tui/inputArea.js— WhenpickerOpenis true, theInputPanelis hidden and theFilePickeris rendered in its place (lines ~278). The FilePicker owns the input line while open, so the empty message positioning is entirely withinfilePicker.js. - Likely culprit: The empty message is rendered as a sibling of the input
Textin the column. If the message is appearing on the same visual line as the input (or the input line is being obscured), the fix is to ensure the empty message is a distinct child rendered below the input line — e.g., wrap the inputTextin its ownBoxrow and place the message in a separate row, or add explicit spacing so the message never overlaps the typed text. - Related:
src/tui/commandPicker.jshas the same pattern (No matching commands.) — consider matching its behavior for consistency.
Fix Steps
- Locate the render — Open
src/tui/filePicker.jsand find thereturn React.createElement(Box, { flexDirection: "column", ... })block near the end of theFilePickercomponent. - Separate the input line — Wrap the input
Text(thebefore/at/aftercursor rendering) in its ownBoxrow so it occupies a distinct line. - Render the empty message below — Ensure the " No matching files." message is a separate child rendered below the input line, so the typed text remains visible when the filter matches nothing.
- Add a test — Add a test case in
tests/unit/tui/filePicker.test.js(or a render test) that verifies the empty message renders below the input line when the filter has no matches. - Verify — Run
npm run testandnpm run coverageto confirm no regressions.
- 主要言語
- JavaScript
- スター
- 2
- フォーク
- 0
- 平均マージ
- 1時間 34分
- マージ済み PR(30日)
- 231
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
avoidwork/madz のほかの issue
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Add: EUROTV NEWSオープンchannels:add check:passed
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
curriculum documentation quality
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
githubnext/gh-aw-workshop#4638 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
openclaw/openclaw-enterprise#2571 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fabriziosalmi/certmate#1247 ·
メンテナーはふだん 1 日以内に返信