d25d482dc2
Publish CLI Package / publish-npm (push) Waiting to run
Publish Python SDK / publish-pypi (push) Waiting to run
Publish TypeScript SDK / publish-npm (push) Waiting to run
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
69 lines
1.9 KiB
TypeScript
69 lines
1.9 KiB
TypeScript
const API_ENDPOINTS = {
|
|
ENVIRONMENT: '/api/environment',
|
|
SETTINGS: '/api/users/me/settings',
|
|
WORKFLOWS: '/api/workflows',
|
|
WORKSPACE_PERMISSIONS: (id: string) => `/api/workspaces/${id}/permissions`,
|
|
WORKSPACE_ENVIRONMENT: (id: string) => `/api/workspaces/${id}/environment`,
|
|
WORKSPACE_BYOK_KEYS: (id: string) => `/api/workspaces/${id}/byok-keys`,
|
|
}
|
|
|
|
/**
|
|
* Layout dimension constants.
|
|
*
|
|
* These values must stay in sync with:
|
|
* - `globals.css` (CSS variable defaults)
|
|
* - `layout.tsx` (blocking script validations)
|
|
*
|
|
* @see globals.css for CSS variable definitions
|
|
* @see layout.tsx for pre-hydration script that reads localStorage
|
|
*/
|
|
|
|
/** Sidebar width constraints */
|
|
export const SIDEBAR_WIDTH = {
|
|
DEFAULT: 248,
|
|
MIN: 248,
|
|
/** Width when sidebar is collapsed to icon-only mode */
|
|
COLLAPSED: 51,
|
|
/** Maximum is 30% of viewport, enforced dynamically */
|
|
MAX_PERCENTAGE: 0.3,
|
|
} as const
|
|
|
|
/** Right panel width constraints */
|
|
export const PANEL_WIDTH = {
|
|
DEFAULT: 320,
|
|
MIN: 290,
|
|
/** Maximum is 40% of viewport, enforced dynamically */
|
|
MAX_PERCENTAGE: 0.4,
|
|
} as const
|
|
|
|
/** Terminal height constraints */
|
|
export const TERMINAL_HEIGHT = {
|
|
DEFAULT: 206,
|
|
MIN: 30,
|
|
/** Maximum is 70% of viewport, enforced dynamically */
|
|
MAX_PERCENTAGE: 0.7,
|
|
} as const
|
|
|
|
/** Editor connections section height constraints */
|
|
export const EDITOR_CONNECTIONS_HEIGHT = {
|
|
DEFAULT: 172,
|
|
MIN: 30,
|
|
MAX: 300,
|
|
} as const
|
|
|
|
/** Output panel (terminal execution results) width constraints */
|
|
export const OUTPUT_PANEL_WIDTH = {
|
|
DEFAULT: 560,
|
|
MIN: 280,
|
|
} as const
|
|
|
|
/** Home chat resource panel (MothershipView) width constraints */
|
|
export const MOTHERSHIP_WIDTH = {
|
|
MIN: 280,
|
|
/** Maximum is 65% of viewport, enforced dynamically */
|
|
MAX_PERCENTAGE: 0.65,
|
|
} as const
|
|
|
|
/** Terminal block column width - minimum width for the logs column */
|
|
export const TERMINAL_BLOCK_COLUMN_WIDTH = 240 as const
|