Creator: system messages are limited to two lines; the label above the message ('STEAM ID NOT
PRESENT', 'STREAM') was repeating what the row already said and pushing the stack past its budget.
AttentionAlert loses Label; rows render Text only. The licence row is now exactly:
Steam ID Limit: 30fps
Click for More Info
(60fps with a close control once owned). Rows are identified by Id internally, so nothing in the UI
depends on the removed text. Tests updated to assert position/text rather than the heading.
37 lines
1.5 KiB
C#
37 lines
1.5 KiB
C#
namespace ytLive.Models;
|
|
|
|
/// <summary>
|
|
/// One row in the left panel's alert stack (creator design, 2026-11-05). The stack sits above the
|
|
/// panel's content and pushes it down, so an alert is seen without hunting for a tab.
|
|
/// <para><b>Pinned</b> rows are standing state, not errors to clear: they show a pin instead of a
|
|
/// close control and are only removed when the state itself changes (the Steam licence indicator
|
|
/// becomes dismissible — and its dismissal permanent — once ownership is verified).</para>
|
|
/// <para>Clicking a row runs its action: the licence indicator opens About; an event alert opens the
|
|
/// Logs tab with that event's lines highlighted.</para>
|
|
/// <para>Rows are text only — a heading line above the message was redundant and pushed the stack past
|
|
/// its two-line budget (creator, 2026-11-05).</para>
|
|
/// </summary>
|
|
public sealed record AttentionAlert(
|
|
string Id,
|
|
string Text,
|
|
bool IsPinned,
|
|
AttentionAlertAction Action,
|
|
long LogFrom = 0,
|
|
long LogTo = 0)
|
|
{
|
|
/// <summary>True while a close control should be shown (a dismissible row).</summary>
|
|
public bool CanDismiss => !IsPinned;
|
|
|
|
/// <summary>True while the row should show the pin glyph instead of a close control.</summary>
|
|
public bool ShowsPin => IsPinned;
|
|
}
|
|
|
|
public enum AttentionAlertAction
|
|
{
|
|
/// <summary>Open the About panel (the licence indicator).</summary>
|
|
About,
|
|
|
|
/// <summary>Open the Logs tab and highlight this event's lines.</summary>
|
|
Logs,
|
|
}
|