feat(tui): カテゴリメニューを最下部固定の横並びメニューバーへ変更#66
Merged
Conversation
devbase list トップ画面のカテゴリ (環境変数 / プラグイン / スナップショット / ステータス) を一覧末尾の行から、画面最下部に常設する横並びメニューバーへ 移す。一覧はプロジェクトのみになり、カテゴリは ←→ で項目間を移動して Enter で決定する。 - menu.select_with_menubar() 新設: questionary select のレイアウト下に 区切り線 + 横並びバー (FormattedTextControl) を組み込む。フォーカス中の 項目は bold reverse でハイライト - キー操作: ←→ でバーへ入り巡回 (端で循環)、バー上の ↑↓ で一覧へ復帰、 Enter はフォーカス位置で確定。questionary は ←→ を明示バインドしない (Keys.Any の catch-all のみ) ため後付けマージで安全に割り当てられる - プロジェクト 0 件時は「(プロジェクトがありません)」のプレースホルダ行を 置く (questionary select は選択可能 choice 0 件だと構築できない)。 Enter しても何も起動せず再表示 - _add_key_binding を _merge_app_bindings (KeyBindings 一括マージ) へ リファクタリングし、バー用バインド群の後付けに再利用 - 単体テスト 7 件 + 実 TTY (pty) でのキー操作・バー描画テストを追加 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
3 tasks
takemi-ohama
added a commit
that referenced
this pull request
Jun 13, 2026
* docs: README/ドキュメントを現状の階層メニュー TUI に合わせて更新 PR #63〜#66 の TUI 変更 (確認プロンプト整理 / Enter 待ち / env メニュー再構成 / 最下部メニューバー) を反映し、ドキュメントを実装と整合させる。 - README: 「対話的なプロジェクト選択」を「階層メニュー TUI」へ刷新。 プロジェクト操作と最下部カテゴリメニュー (←→ 移動) を明記 - cli-reference: `devbase project list` を全面刷新。番号入力の旧説明を廃止し、 TUI の画面構成図・キー操作表・カテゴリ別操作一覧・確認プロンプトの範囲を追加 - container-operations: プロジェクト一覧の説明を TUI 前提に更新し詳細へリンク - architecture: 構成図と commands 表に project.py / tui/ を追加。tui/ の モジュール構成表を新設。cmd_project が container.py 側にある実態を反映 - 既存ドキュメントに元々抜けていた CLI サブコマンド (project rebuild / plugin migrate / env export・import) をコマンド一覧・ツリー図に補完 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * docs: cross-review #67 後始末 (rebuild ショートカット/SHORTCUTS整合/Enter操作/env export-import 補記) - architecture.md: SHORTCUTS 行を実装に整合 (up/down/login/ps/scale/rebuild、build 除外・list 個別 routing) - cli-reference.md: ショートカット表とツリーに rebuild [name] 追加、project rebuild 個別節を新設 - cli-reference.md: TUI Enter キー説明にカテゴリメニューフォーカス時の遷移を併記 - cli-reference.md: env export/import 個別節を新設し env-export-import.md へリンク - README.md: ショートカット一覧に rebuild [name] 追加 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
概要
devbase listトップ画面の常設カテゴリ(環境変数 / プラグイン / スナップショット / ステータス)を、一覧末尾の行から画面最下部に常設する横並びメニューバーへ移す。一覧はプロジェクトのみのすっきりした表示になり、カテゴリへは ←→ キーで移動して Enter で決定する。関連 Issue
変更点
menu.select_with_menubar()新設FormattedTextControl)を組み込む。一覧の件数・絞り込み状態に関わらずプロンプト描画の最下部に固定Keys.Anyの catch-all のみ)ため、後付けマージで安全に割り当てられる。絞り込み入力中のカーソル移動キーだけ失われるが短文入力のため実害なし_guard_after_done)はバーのバインドにも自動適用されるapp.py
_select_topをメニューバー方式へ切替(カテゴリ行を一覧から削除)リファクタリング
_add_key_bindingを_merge_app_bindings(KeyBindings 一括マージ)へ整理し、バー用バインド群の後付けに再利用動作確認
pytest tests/全 697 件パス(skip 1 件は zsh 未インストールによる補完テストのみ)devbase listの見た目・操作感を手動確認スクリーンショット・ログ(任意)
補足
🤖 Generated with Claude Code