Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/client/features/shows/cue-list-view-store.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { createContext, useContext } from "react";
import { proxy } from "valtio";

export type CueListViewMode = "both" | "top" | "bottom";

export interface CueListViewState {
// Track and value selection for bottom pane filtering
selectedTrackId: string | null;
Expand All @@ -9,13 +11,17 @@ export interface CueListViewState {
// Horizontal splitter position as percentage (0-100)
// 50 = 50/50 split
splitterPositionPercent: number;

// Which pane(s) to display
viewMode: CueListViewMode;
}

export function createCueListViewStore(): CueListViewState {
return proxy<CueListViewState>({
selectedTrackId: null,
selectedTechnicalIdentifier: null,
splitterPositionPercent: 50,
viewMode: "both",
});
}

Expand Down
Loading