Member Junction
    Preparing search index...

    Single-rating-per-message rating UI for an AI conversation response.

    Storage model: the rating + free-form comment live directly on the ConversationDetail row, in UserRating (1-10, nullable) and UserFeedback (nvarchar(max), nullable). This matches MJ's own pattern on __mj.ConversationDetail and Skip's matching columns on Skip.ConversationDetail. The host app picks the entity via @Input.

    Hierarchy (View Summary)

    Implements

    • OnInit
    Index

    Constructors

    Properties

    canEdit: boolean = true

    When false, the rating UI renders as a read-only badge instead of an editable button. Set by the parent (MessageItemComponent) to false when the current user is not the conversation owner — the rating storage is a single field on the ConversationDetail row, so only the owner is allowed to mutate it.

    conversationDetailId: string
    currentUser: UserInfo
    currentUserComments: string = ''
    currentUserRating: number | null = null
    isSaving: boolean = false
    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.

    ratingCommentField: string = 'UserFeedback'

    Column on the entity that stores the free-form feedback.

    ratingEntityName: string = 'MJ: Conversation Details'

    Entity name to load/update for the rating. Defaults to MJ's MJ: Conversation Details (which has UserRating/UserFeedback). Skip-Brain hosts pass 'Conversation Details__Skip'.

    ratingField: string = 'UserRating'

    Column on the entity that stores the 1-10 rating.

    ratingsData?: RatingJSON[]

    Optional: legacy pre-loaded ratings array (no longer used by storage; kept to preserve the input shape used by existing call sites like MessageItemComponent).

    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • get ProviderToUse(): IMetadataProvider

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

      Returns IMetadataProvider

    • 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