Class SerenityHubMetricCard
Renders a single SerenityHubStatusRow as a metric card on Home: state, title, message, and — when the row carries a deep link — a hint label into the tool that can fix it. Clicking anywhere on such a card follows that deep link; a card without one renders no hint and stays non-interactive (spec §3, UX feedback #4 — one interaction model, no per-card button).
Inherited Members
Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Components
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubMetricCard
Constructors
SerenityHubMetricCard(SerenityHubStatusRow, SerenityHubLauncher)
Declaration
public SerenityHubMetricCard(SerenityHubStatusRow row, SerenityHubLauncher launcher)
Parameters
| Type | Name | Description |
|---|---|---|
| SerenityHubStatusRow | row | |
| SerenityHubLauncher | launcher |
Properties
HasDeepLink
Declaration
public bool HasDeepLink { get; }
Property Value
| Type | Description |
|---|---|
| bool | True when this row carries a deep link the user can act on. |
Root
Declaration
public VisualElement Root { get; }
Property Value
| Type | Description |
|---|---|
| VisualElement |
Methods
ActivateDeepLink()
Follows this card's deep link, if it has one. A no-op when the row carries none.
Declaration
public void ActivateDeepLink()