exlab_wizard.ui.components.validation_summary#
Validation summary block (Frontend Spec §3.6.4, §11.4.1).
Renders the per-run validation snapshot in the detail pane:
Header line “⚠ N hard-tier findings” in
--color-warning(or the soft-only / override variants).First two findings as one-line excerpts (rule + matched-token).
Optional “+ N more in Problems” link when more findings exist.
Override summary line when an override is active.
Functions
|
Compose one-line text for a finding excerpt (Frontend §3.6.4). |
|
Return |
|
Return the "+ N more in Problems" line, or |
|
Return the override summary line if an override is active. |
|
Build the summary block. |
Classes
|
A single finding row used in the summary. |
|
Inputs to the summary block. |
- class exlab_wizard.ui.components.validation_summary.FindingExcerpt(rule, matched_token)[source]#
Bases:
objectA single finding row used in the summary.
- class exlab_wizard.ui.components.validation_summary.ValidationSummary(hard_count, soft_count, excerpts, override_active=False, override_reason_snippet=None, override_operator=None, override_set_at=None)[source]#
Bases:
objectInputs to the summary block.
- Parameters:
- excerpts: tuple[FindingExcerpt, ...]#
- exlab_wizard.ui.components.validation_summary.excerpt_line(finding)[source]#
Compose one-line text for a finding excerpt (Frontend §3.6.4).
- Parameters:
finding (
FindingExcerpt)- Return type:
- exlab_wizard.ui.components.validation_summary.header_line(summary)[source]#
Return
(text, color_var)for the section header.- Parameters:
summary (
ValidationSummary)- Return type:
- exlab_wizard.ui.components.validation_summary.overflow_line(summary)[source]#
Return the “+ N more in Problems” line, or
Noneif not needed.Frontend §3.6.4: at most two excerpts are rendered; remaining findings collapse into a single overflow line.
- Parameters:
summary (
ValidationSummary)- Return type:
- exlab_wizard.ui.components.validation_summary.override_line(summary)[source]#
Return the override summary line if an override is active.
- Parameters:
summary (
ValidationSummary)- Return type:
- exlab_wizard.ui.components.validation_summary.validation_summary(summary)[source]#
Build the summary block.
- Parameters:
summary (
ValidationSummary)- Return type: