cadrumo.entrypoints.tui.ledger.review module

Ledger review queue over application-owned safe review identities, with exclusion.

class LedgerReviewScreen(controller)[source]

Bases: LedgerWorkspaceScreen

Filter disclosure and status rows with semantic transaction selection.

x asks to exclude the highlighted entry. Nothing is written until the operator confirms the sentence naming that entry; Escape or Cancel while asking withdraws the request.

Parameters:

controller (LedgerWorkspaceController)

BINDINGS: ClassVar

A list of key bindings.

compose()[source]

Called by Textual to create child widgets.

This method is called when a widget is mounted or by setting recompose=True when calling [refresh()][textual.widget.Widget.refresh].

Note that you don’t typically need to explicitly call this method.

Return type:

Iterable[Widget]

Example

def compose(self) -> ComposeResult:
    yield Header()
    yield Label("Press the button below:")
    yield Button()
    yield Footer()
on_mount()[source]

Populate the filter disclosure and canonical review rows.

Return type:

None

on_data_table_row_selected(event)[source]

Route navigation rows or emit the canonical review query request.

Return type:

None

Parameters:

event (RowSelected)

action_exclude()[source]

Ask to exclude the highlighted entry, naming it, before anything is written.

Return type:

None

action_back()[source]

Withdraw an open exclusion question before leaving the area.

Return type:

None

on_button_pressed(event)[source]

Confirm or withdraw the open exclusion question.

Return type:

None

Parameters:

event (Pressed)

can_focus: bool

Widget may receive focus.

can_focus_children: bool

Widget’s children may receive focus.