exlab_wizard.ui.pages.problems#
Problems tab (Frontend Spec §11).
Filter chips (Severity, Class, State, Scope), table of findings, and a footer status bar (“Showing N of M findings · Last audit: HH:MM:SS · Next refresh in 23s”).
The override-and-allow-sync dialog (§11.5) is implemented here as well: the operator picks a reason (10–500 chars after trim), an optional expiry, ticks the acknowledgement checkbox, and submits.
Functions
One chip per problem class (Frontend §11.1). |
|
|
Compute the empty-state copy per Frontend §11.4. |
|
Filter |
|
Return |
|
Render the Problems tab content. |
Severity chips per Frontend §11.1. |
|
State chips (Frontend §11.1). |
|
|
Validate an override reason per Frontend §11.5. |
Classes
|
One row in the Problems table. |
|
Mutable filter state. |
- class exlab_wizard.ui.pages.problems.Finding(finding_id, severity, rule_class, path, matched_token, run_label, equipment, detected_at, state)[source]#
Bases:
objectOne row in the Problems table.
- Parameters:
- class exlab_wizard.ui.pages.problems.ProblemsPageState(severity_chips=<factory>, class_chips=<factory>, state_chips=<factory>, scope='all', search='')[source]#
Bases:
objectMutable filter state.
- Parameters:
- exlab_wizard.ui.pages.problems.class_chip_definitions()[source]#
One chip per problem class (Frontend §11.1).
- Return type:
- exlab_wizard.ui.pages.problems.empty_state_text(state, *, soft_findings_hidden_count=0)[source]#
Compute the empty-state copy per Frontend §11.4.
- Parameters:
state (
ProblemsPageState)soft_findings_hidden_count (
int)
- Return type:
- exlab_wizard.ui.pages.problems.filter_findings(findings, state)[source]#
Filter
findingsagainst the active chip / search state.- Parameters:
state (
ProblemsPageState)
- Return type:
- exlab_wizard.ui.pages.problems.near_limit(reason)[source]#
Return
Truewhen the counter should turn warning-tier (last 10).
- exlab_wizard.ui.pages.problems.render_problems_page(*, findings, state=None, on_override=None, on_revoke_override=None)[source]#
Render the Problems tab content.
- exlab_wizard.ui.pages.problems.severity_chip_definitions()[source]#
Severity chips per Frontend §11.1.
- Return type:
- exlab_wizard.ui.pages.problems.state_chip_definitions()[source]#
State chips (Frontend §11.1).
- Return type: