fix(ui): hide Submit for review on list-handler panes in Mission Control
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
2b7b58be37
commit
0cfc28adb9
@@ -1143,6 +1143,19 @@ public class MissionControlViewModelTests : IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
// The handler submits its own task, so only a non-handler task-based pane shows the button.
|
||||
[Fact]
|
||||
public async Task ShowSubmitForReview_FalseForListHandler_TrueForNormalTaskPane()
|
||||
{
|
||||
var worker = new RecordingAbandonWorker();
|
||||
using var vm = BuildVm(worker);
|
||||
await vm.OpenConPtySessionAsync("t1");
|
||||
await vm.OpenMergeHelperConPtySessionAsync("L1", new[] { "t2" });
|
||||
|
||||
Assert.True(vm.ConPtySessions[0].ShowSubmitForReview);
|
||||
Assert.False(vm.ConPtySessions[1].ShowSubmitForReview);
|
||||
}
|
||||
|
||||
// A plain OpenConPtySessionAsync pane (not a list handler) never shows/allows the action --
|
||||
// acceptance criterion 5 ("only at handler panes").
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user