Member Junction
    Preparing search index...

    Studio — the analyst workbench door (one of Predictive Studio's three consolidated nav items, alongside Predictions and Models). Hosts the build/run section panels (ps-home, ps-pipelines, ps-catalog, ps-experiments, ps-compare) behind an internal left-nav grouped by lifecycle (Overview · Build · Run), so the outer app nav stays quiet while analysts get all the depth one click in. The active section round-trips through the section query param (deep links + back/forward). A single docked Model Development Agent copilot is shared by every section's "Ask the agent" CTA — wired with the full conversation lifecycle (isNewConversationconversationCreated) so the first message actually creates + sends. Cross-door navigation (to a Models section) routes via the nav service; see routeHomeNavigate.

    Hierarchy

    • PSResourceBase
      • PSStudioResourceComponent
    Index

    Constructors

    Properties

    activeSection: PSPanelKey = 'home'

    The active workbench section (which panel renders). Round-trips through the section query param.

    cdr: ChangeDetectorRef = ...
    chatConversation: MJConversationEntity | null = null

    Conversation lifecycle (see onChatConversationCreated) — without it the first send no-ops.

    chatConversationId: string | null = null
    chatIsNewConversation: boolean = true
    chatOpen: boolean = false
    destroy$: Subject<void>
    engine: PredictiveStudioEngine = PredictiveStudioEngine.Instance

    Provider-scoped Predictive Studio engine. Resolved in loadSection via PredictiveStudioEngine.GetProviderInstance so a multi-provider client (or an embedded non-default provider) reads the right server's PS reference data. Bound into the hosted panel's [engine] input once loading completes.

    isLoading: boolean = true

    True until the engine resolves; gates the panel host so [engine] is never bound before it's ready.

    loadError: string | null = null

    Set when loadSection fails to resolve the engine. The section templates render a "couldn't load" banner with a Try-again button (retryLoad) instead of silently showing empty panels, so a failed load is honest rather than indistinguishable from a genuinely-empty studio.

    navigationService: NavigationService
    ParentTabId: string | null

    Tab ID for query param notification scoping. Set by resource wrappers that render child dashboards, so the child knows which tab it belongs to. If not set, falls back to Data.Configuration.tabId.

    pendingPrompt: string | null = null
    Provider: IMetadataProvider | null

    If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.

    SectionIcon: "fa-solid fa-flask-vial" = 'fa-solid fa-flask-vial'

    Font Awesome icon for the section (chrome + shell tab).

    SectionKey: "studio" = 'studio'

    Stable section identifier for agent context + (subclass) titling.

    SectionLabel: "Studio" = 'Studio'

    Human-readable section label used in chrome + agent context.

    sections: readonly PSSection[] = STUDIO_SECTIONS
    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • get Data(): ResourceData

      Returns ResourceData

    • set Data(value: ResourceData): void

      Parameters

      Returns void

    • get DisplayNameChangedEvent(): ((newName: string) => void) | null

      Returns ((newName: string) => void) | null

    • set DisplayNameChangedEvent(value: ((newName: string) => void) | null): void

      Parameters

      • value: ((newName: string) => void) | null

      Returns void

    • get LoadComplete(): boolean

      Returns boolean

    • get LoadCompleteEvent(): any

      Returns any

    • set LoadCompleteEvent(value: any): void

      Parameters

      • value: any

      Returns void

    • get LoadStarted(): boolean

      Returns boolean

    • get LoadStartedEvent(): any

      Returns any

    • set LoadStartedEvent(value: any): void

      Parameters

      • value: any

      Returns void

    • get ProviderToUse(): IMetadataProvider

      Returns either the default Metadata provider or the one specified in the Provider property, if it was specified

      Returns IMetadataProvider

    • get ResourceCloseRequestedEvent(): (() => void) | null

      Returns (() => void) | null

    • set ResourceCloseRequestedEvent(value: (() => void) | null): void

      Parameters

      • value: (() => void) | null

      Returns void

    • get ResourceRecordSavedEvent(): any

      Returns any

    • set ResourceRecordSavedEvent(value: any): void

      Parameters

      • value: any

      Returns void

    • get RunQueryToUse(): IRunQueryProvider

      Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified

      Returns IRunQueryProvider

    • get RunReportToUse(): IRunReportProvider

      Returns either the default RunReport provider or the one specified in the Provider property, if it was specified

      Returns IRunReportProvider

    • get RunViewToUse(): IRunViewProvider

      Returns either the default RunView provider or the one specified in the Provider property, if it was specified

      Returns IRunViewProvider

    Methods

    • Read current query params from tab configuration. Use in initDashboard() / ngOnInit() to get initial URL state.

      Returns Record<string, string>

    • Get this component's tab ID. Checks ParentTabId input first (set by resource wrappers for child dashboards), then falls back to Data.Configuration.tabId.

      Returns string

    • Ask the host shell to close/dismiss this resource (typically: close the tab). Called by subclasses that hosted a form that emitted a 'dismiss' navigation event — most often, a brand-new record where the user clicked Discard. The record was never saved, the form is empty, and leaving it open serves no purpose. The tab-container listens for this and closes the workspace tab.

      Returns void

    • Call this to notify the tab system that the resource's display name has changed. The tab container will update the tab title and browser title accordingly.

      Parameters

      • newName: string

      Returns void

    • Returns void

    • Returns void

    • Report the section's state to the AI agent (async chat + realtime co-agent share this snapshot). Subclasses may override extraAgentContext to add section-specific fields. No client tools are registered — Predictive Studio surfaces are read/navigate-only to the agent; model creation, training, and promotion run through PS's own dialogs and the Model Development Agent.

      Returns void

    • Marks this component's view (and its ancestors) as needing change detection and schedules a tick — the reliable way for a resource component to re-render after updating state from async work (RunView/RunQuery continuations, timers, websocket pushes, RxJS subscriptions).

      WHY THIS EXISTS: the Explorer shell hosts resource components dynamically — createComponent()

      • ApplicationRef.attachView() — because tab content mounts into Golden Layout / cached DOM containers, not into an Angular template. Since Angular 18's change-detection scheduler rework (Explorer is on Angular 21), ApplicationRef.tick() only refreshes attached views that are FLAGGED dirty; a root-level attached view whose component mutates plain fields from an async continuation is never flagged, so the view silently never re-renders — even though the component uses default (non-OnPush) change detection (issue #3106).

      The framework calls this automatically from NotifyLoadStarted() / NotifyLoadComplete(), so the standard load lifecycle re-renders without any subclass action. Call it yourself after any LATER async state change that must reach the DOM outside those signals.

      Returns void

    • 🔒 Read/navigate-only agent tools for the Studio door: switch the active section, or open the docked Model Dev Agent co-pilot. NO build/train/publish tool is exposed — model creation runs through the co-pilot conversation (the approve-gated builder), never a fire-and-forget agent tool.

      Returns void

    • Parameters

      Returns void

    • Push query param changes to the URL. Creates a browser history entry. Safe to call during OnQueryParamsChanged — auto-suppressed to prevent loops.

      Parameters

      • params: Record<string, string | null>

      Returns void