Repository navigation
履歴のバージョンを表示中は、機材・ケーブル表の入力と並べ替えを無効にする - #59
Merged
genkitoyama merged 1 commit intoNov 21, 2026
Merged
Conversation
With a state from the history on screen the board takes no edit, and the inspector, the comments and the board settings are disabled. The lists still opened a cell's input and dropped what was typed on Enter without a word; the row grips and 並びを元に戻す were there too, and did nothing. The lists now offer none of them there; a click on a row still selects it on the board.
2 tasks
genkitoyama
approved these changes
Nov 21, 2026
genkitoyama
left a comment
Owner
There was a problem hiding this comment.
ありがとうございます。見るだけの画面で入力欄が開き、打った文字が黙って消えるのは避けたいので、この形で入れます。入力の可否と並べ替えを cellEdit と reorder の 2 か所にまとめてあるので、editable と t.reorder の参照に漏れがないことも確認しました。
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.
Summary
履歴のバージョンを表示中(黄色の帯に「見るだけで、編集はできません」と表示されている間)も、機材・ケーブル表のセルをクリックすると入力欄が開き、Enter で確定すると、入力した文字がメッセージなしで破棄されていました。行のつまみと「並びを元に戻す」も表示されていて、操作しても何も変化しませんでした。
ListsPanelは、セルの入力可否(editable)と並べ替えの有無(t.reorder)を、この 2 つを経由して参照します。履歴のバージョンを表示中は、セルをクリックしても入力欄が開きません。行のつまみと「並びを元に戻す」は非表示になり、No の列のドラッグも無効になります。Evidence
Before: main(18d2875)のブラウザ版(
npm run dev)を headless の Chromium で開き、次の手順を実行した。履歴のバージョンを表示中の機材リストには、入力できるセルが 20、行のつまみが 2 あり、「並びを元に戻す」も表示されていた。手順 3 で入力欄が開き、Enter の後のセルは空で、メッセージもダイアログも表示されなかった。つまみで行をドラッグすると行が移動を始め、ドロップ後の並びは元のままだった。「並びを元に戻す」をクリックしても並びは変化しなかった。
After: 同じ手順で、履歴のバージョンを表示中の機材リストは、入力できるセルが 0、行のつまみが 0 で、「並びを元に戻す」は表示されない。「区分」のセルをクリックしても入力欄は開かず、行はドラッグできない。
修正後も履歴のバージョンを表示中に行をクリックすると、その機材がボードで選択される。「コピー」も動作する。
「現在の図に戻る」で戻ると、修正前と同じく入力できるセルが 20、つまみが 2 で、「区分」に Apple と入力できる。
npm run typecheckとnpm test(196 件)は成功。vitest はenvironment: 'node'で、ListsPanelを描画するテストが無いので、テストは追加していない。未確認: デスクトップアプリでの動作。変更した
ListsPanel.tsxはブラウザ版とデスクトップアプリで共通のコード。Merge Danger
Door: two-way
revert で戻せます。保存データへの影響はありません。
Blast Radius: 機材・ケーブル表
履歴のバージョンを表示中は、表の左端のつまみの列が非表示になるので、ほかの列が左に移動します。現在の図を表示しているときの表は変更していません。
履歴のバージョンを表示中も、ツールバー・機材ライブラリ・右クリックのメニューは表示されたままで、機材を配置したり「削除」をクリックしたりしても何も変化しません。この PR では、入力した文字が破棄される機材・ケーブル表だけを変更しました。