Repository navigation
#244 を実装する(スプリント m7e) - #429
Merged
Merged
Conversation
tui/actions_env_keys.py の _width / _pad を utils/text_width.py の display_width / pad へ移し、一覧の列の幅を決める column_width を足す。 幅を超える文字列は切らずに返し、列の幅は一覧の中の最も広い値に合わせる。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
文字数で埋める :<28 / :<40 / :<24 / :<16 をやめ、表示幅の pad と 一覧ごとの column_width に寄せる。全角の見出しや最小の幅を超える 見出し・グループ名があっても、同じ一覧の中ではパスの開始の桁がそろう。 Co-Authored-By: Claude Opus 5.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.
env backend testとenv backend migrateが出す一覧を、表示幅で桁が揃うようにしました。全角文字を含む名前でも列がずれません。あわせて、TUI の中にあった桁揃えの関数をutilsへ移し、コマンドと TUI の両方から使えるようにしました(#244)。利用者向けの変化
devbase env backend testとdevbase env backend migrateの一覧は、全角文字を含む項目でも列が揃って表示される変更の要点
lib/devbase/utils/text_width.pyを新しく作り、表示幅で桁を揃える関数を置いた。この関数はlib/devbase/tui/actions_env_keys.pyから移したもので、TUI 側は移した先の関数を使うように書き換えたlib/devbase/commands/env_backend.pyの test と migrate の一覧表示を、表示幅で桁を揃える形に改めたテスト
tests/utils/test_text_width.pyを追加し、桁揃えの関数を確かめるテストを書いたtests/commands/test_env_group_label.pyに、一覧の桁揃えを確かめるテストを足したモード: standard / 通した工程: 実装 → 完了判定 → Pull Request
🤖 Generated with Claude Code