Files
kandev/apps/web/lib/settings/constants.ts
T
2026-02-24 00:48:55 +00:00

26 lines
978 B
TypeScript

export const STORAGE_KEYS = {
BACKEND_URL: "kandev.settings.backendUrl",
ONBOARDING_COMPLETED: "kandev.onboarding.completed",
LAST_AGENT_PROFILE_ID: "kandev.dialog.lastAgentProfileId",
LAST_REPOSITORY_ID: "kandev.dialog.lastRepositoryId",
LAST_BRANCH: "kandev.dialog.lastBranch",
LAST_EXECUTOR_PROFILE_ID: "kandev.dialog.lastExecutorProfileId",
} as const;
export const DEFAULT_BACKEND_URL = "http://localhost:8080";
// Kanban Preview Panel Settings
export const PREVIEW_PANEL = {
// Minimum width of the preview panel in pixels (prevents panel from being too narrow)
MIN_WIDTH_PX: 300,
// Default width of the preview panel in pixels when first opened
DEFAULT_WIDTH_PX: 500,
// Maximum width of the preview panel in viewport width percentage (prevents covering entire screen)
MAX_WIDTH_VW: 95,
// Minimum width of the kanban board as a percentage of viewport before the panel switches to floating mode
MIN_KANBAN_WIDTH_PERCENT: 50,
} as const;