logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityHubValidatorCard

    Validate-view report card (spec §5.1, design ADR-4a): shows the last cached result summary and run timestamp for one validator kind. Clicking anywhere on the card runs only that validator and updates only its own cached entry (UX feedback #4 — one interaction model, no per-card button). Never runs on construction — opening the Validate view must not trigger a scan. Carries an optional corner favorite-toggle star (UX feedback batch 9b, extending batch 9's tool-card-only star for consistency): pass favorites for real catalog entries, or omit it (null) for a synthesized card with no backing catalog entry — see SerenityHubValidateView's Catalog Staleness card, which has no launchable menu path and therefore must never be favoritable.

    Inheritance
    object
    SerenityHubValidatorCard
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Components
    Assembly: Serenity.UnityLocalization.Installation.Editor.dll
    Syntax
    public sealed class SerenityHubValidatorCard

    Constructors

    SerenityHubValidatorCard(SerenityHubToolEntry, SerenityHubValidationCache, Func<string, SerenityValidationReport>, SerenityHubFavorites)

    Declaration
    public SerenityHubValidatorCard(SerenityHubToolEntry entry, SerenityHubValidationCache cache, Func<string, SerenityValidationReport> runValidator = null, SerenityHubFavorites favorites = null)
    Parameters
    Type Name Description
    SerenityHubToolEntry entry
    SerenityHubValidationCache cache
    Func<string, SerenityValidationReport> runValidator
    SerenityHubFavorites favorites

    Properties

    Root

    Declaration
    public VisualElement Root { get; }
    Property Value
    Type Description
    VisualElement

    Methods

    Run()

    Runs only this card's validator kind and refreshes its cached summary + timestamp.

    Declaration
    public void Run()

    ToggleFavorite()

    Toggles this card's favorite state, WITHOUT running the validator. No-op when this card was built without a favorites store (the synthesized Catalog Staleness card).

    Declaration
    public void ToggleFavorite()
    In this article
    © 2026 Serenity. All Rights Reserved