Member Junction
    Preparing search index...

    Base class for all MJ Explorer navigation components - a navigation component is any component that can be displayed from a route

    Hierarchy (View Summary)

    Implements

    • AfterViewInit
    • OnDestroy
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    ActiveScopeID: string | null = null

    Currently-selected scope ID — drives child-grid loading.

    ActiveScopeTab:
        | "entities"
        | "providers"
        | "definition"
        | "indexes"
        | "storage"
        | "permissions" = 'definition'

    Which sub-tab of the selected scope is open.

    ActiveSection: string = 'pipeline'
    AnalyticsAvgLatencyMs: number = 0
    AnalyticsHitRate: number = 0
    AnalyticsLoaded: boolean = false
    AnalyticsLoading: boolean = false
    AnalyticsP95LatencyMs: number = 0
    AnalyticsRerankerSpend: { Count: number; Reranker: string; TotalCents: number }[] = []
    AnalyticsSuccessRate: number = 0
    AnalyticsTopFailures: { Count: number; Reason: string }[] = []
    AnalyticsTopScopes: {
        AvgLatencyMs: number;
        Count: number;
        Name: string;
        ScopeID: string;
    }[] = []
    AnalyticsTotalRerankerCostCents: number = 0
    AnalyticsTotalRuns: number = 0
    AvailableCredentials: { ID: string; Name: string }[] = []
    destroy$: Subject<void> = ...
    EmbeddingModels: EmbeddingModelRecord[] = []
    FTSEntities: FTSEntityRecord[] = []
    FTSFilterText: string = ''
    HasUnsavedChanges: boolean = false
    IsCreatingIndex: boolean = false
    IsLoading: boolean = true
    IsLoadingFTSEntities: boolean = false
    IsLoadingScopes: boolean = false
    IsSaving: boolean = false
    IsSavingCredential: boolean = false
    navigationService: NavigationService = ...
    NewIndexEmbeddingModelID: string = ''
    NewIndexName: string = ''
    NewIndexVectorDBID: string = ''
    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.

    PermissionsFilterLevel: string = ''
    PermissionsFilterPrincipal: string = ''
    PermissionsFilterScope: string = ''
    PermissionsLoaded: boolean = false
    PermissionsLoading: boolean = false
    PermissionsRows: {
        ID: string;
        PermissionLevel: string;
        RoleID: string | null;
        RoleName: string | null;
        SearchScopeID: string;
        SearchScopeName: string;
        UserEmail: string | null;
        UserID: string | null;
        UserName: string | null;
    }[] = []
    PipelineSettings: PipelineConfig = ...
    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.

    ScopeEntityColumns: SearchScopeChildGridColumn[] = ...

    Column spec for the Entities child grid.

    ScopeExternalIndexColumns: SearchScopeChildGridColumn[] = ...

    Column spec for the External Indexes child grid.

    ScopePermissionColumns: SearchScopeChildGridColumn[] = ...

    Column spec for the SearchScopePermission child grid (Phase 2A). Editable surface — admins author per-user / per-role grants here. Each row binds either a User or a Role (XOR enforced by the DB CHECK constraint, surfaced as a save-time error for now). Resolution order lives in SearchScopePermissionResolver.

    ScopeProviderColumns: SearchScopeChildGridColumn[] = ...

    Column spec for the Providers child grid.

    ScopeStorageColumns: SearchScopeChildGridColumn[] = ...

    Column spec for the Storage Accounts child grid.

    SearchScopes: MJSearchScopeEntity[] = []

    All SearchScope rows the current user can manage.

    Sections: ConfigSection[] = ...
    ShowCreateIndexForm: boolean = false
    ThresholdSettings: ThresholdConfig = ...
    VectorDBProviders: VectorDBRecord[] = []
    VectorIndexes: VectorIndexRecord[] = []
    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • 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 FilteredPermissionsRows(): {
          ID: string;
          PermissionLevel: string;
          RoleID: string
          | null;
          RoleName: string | null;
          SearchScopeID: string;
          SearchScopeName: string;
          UserEmail: string | null;
          UserID: string | null;
          UserName: string | null;
      }[]

      Returns {
          ID: string;
          PermissionLevel: string;
          RoleID: string | null;
          RoleName: string | null;
          SearchScopeID: string;
          SearchScopeName: string;
          UserEmail: string | null;
          UserID: string | null;
          UserName: string | null;
      }[]

    • get LoadComplete(): boolean

      Returns boolean

    • 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

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns void

    • 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

    • Called by the framework when query params change from an external source (browser back/forward, deep link navigation). Override in subclasses to react to query param changes.

      Parameters

      • params: Record<string, string>

        The new query params from the URL

      • source: "popstate" | "deeplink"

        'popstate' for back/forward, 'deeplink' for external URL entry

      Returns void

    • Open the active scope in its full custom form (a new MJExplorer tab). The dashboard view exposes a quick-edit subset; the full form has the Phase 2D / Phase 4 surfaces (Fusion Weights sliders, Reranker dropdown, Reranker Budget Cents, Live Preview, Search Scope Test Queries panel, Search Execution Logs panel, etc.). No-ops for the built-in Global scope (no detail to author) and any scope without an ID yet.

      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

    • 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