Skip to main content

ProjectStoreState

Datalayer Core


Datalayer Core / ProjectStoreState

Type Alias: ProjectStoreState

ProjectStoreState = object

Defined in: src/hooks/useProjectStore.ts:30

Properties

clearProject

clearProject: (projectId) => void

Defined in: src/hooks/useProjectStore.ts:58

Remove all runtime state for a project (e.g. on unmount).

Parameters

projectId

string

Returns

void


currentProjectId

currentProjectId: string | undefined

Defined in: src/hooks/useProjectStore.ts:35

The currently active/viewed project ID (for sidebar highlighting).


getEntry

getEntry: (projectId) => ProjectRuntimeEntry | undefined

Defined in: src/hooks/useProjectStore.ts:66

Get the full entry for a project.

Parameters

projectId

string

Returns

ProjectRuntimeEntry | undefined


getKernel

getKernel: (projectId) => IKernelConnection | null | undefined

Defined in: src/hooks/useProjectStore.ts:63

Get the kernel connection for a project, or undefined.

Parameters

projectId

string

Returns

IKernelConnection | null | undefined


projects

projects: Record<string, ProjectRuntimeEntry>

Defined in: src/hooks/useProjectStore.ts:32

Map of projectId → runtime entry.


setAgent

setAgent: (projectId, agentPodName, agentName?, agentStatus?, agentSpecId?) => void

Defined in: src/hooks/useProjectStore.ts:49

Set the assigned agent info for a project.

Parameters

projectId

string

agentPodName

string | undefined

agentName?

string

agentStatus?

string

agentSpecId?

string

Returns

void


setCurrentProjectId

setCurrentProjectId: (projectId) => void

Defined in: src/hooks/useProjectStore.ts:40

Set the currently active project (call on mount, clear on unmount).

Parameters

projectId

string | undefined

Returns

void


setSessionConnection

setSessionConnection: (projectId, sessionConnection) => void

Defined in: src/hooks/useProjectStore.ts:43

Set or update the session connection for a project.

Parameters

projectId

string

sessionConnection

Session.ISessionConnection | undefined

Returns

void