mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 17:30:31 +00:00
Remove stale toolbar status model fields
This commit is contained in:
parent
4ad0f6ec28
commit
85d8f8c84d
3 changed files with 1 additions and 7 deletions
|
|
@ -35,8 +35,6 @@ export interface ToolbarDiagnosticSection {
|
|||
}
|
||||
|
||||
export interface ToolbarViewModel {
|
||||
connected: boolean;
|
||||
status: string;
|
||||
newChatDisabled: boolean;
|
||||
historyOpen: boolean;
|
||||
statusPanelOpen: boolean;
|
||||
|
|
|
|||
|
|
@ -172,8 +172,6 @@ export function toolbarViewModel(input: ToolbarViewModelInput): ToolbarViewModel
|
|||
const statusPanelOpen = state.openDetails.has("status-panel");
|
||||
const runtimeOpen = state.runtimePicker !== null;
|
||||
return {
|
||||
connected: input.connected,
|
||||
status: state.status,
|
||||
newChatDisabled: input.turnBusy,
|
||||
historyOpen,
|
||||
statusPanelOpen,
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ describe("toolbar renderer decisions", () => {
|
|||
expect(toggleAutoReview).toHaveBeenCalled();
|
||||
|
||||
parent.empty();
|
||||
renderToolbar(parent, toolbarModel({ status: "Turn running...", autoReviewActive: true }), toolbarActions());
|
||||
renderToolbar(parent, toolbarModel({ autoReviewActive: true }), toolbarActions());
|
||||
expect(parent.querySelector(".codex-panel__status-menu-toggle")?.getAttribute("aria-label")).toBe("Show panel menu");
|
||||
expect(parent.querySelector(".codex-panel__auto-review-toggle")?.getAttribute("aria-pressed")).toBe("true");
|
||||
|
||||
|
|
@ -378,8 +378,6 @@ describe("toolbar renderer decisions", () => {
|
|||
|
||||
function toolbarModel(overrides: Partial<ToolbarViewModel> = {}): ToolbarViewModel {
|
||||
return {
|
||||
connected: true,
|
||||
status: "Connected.",
|
||||
newChatDisabled: false,
|
||||
historyOpen: false,
|
||||
statusPanelOpen: false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue