source_browser

Source browser components for displaying and filtering transcription sources

Grouping Selector

Source Browser Item Model


source

SourceBrowserItem


def SourceBrowserItem(
    item_type:str, group_key:str='', group_display:str='', group_count:int=0, grouping_mode:str='',
    record:Optional=None, is_selected:bool=False
)->None:

Item in the source browser virtual collection (header or record).


source

build_source_items


def build_source_items(
    transcriptions:List, # Available transcription records
    selected_sources:List, # Currently selected sources
    grouping_mode:str='media_path', # Grouping mode: "media_path" or "batch_id"
)->List: # Flat list with interleaved headers and records

Build the items list for the source browser virtual collection.


source

is_source_item_skippable


def is_source_item_skippable(
    item:SourceBrowserItem, # Item to check
)->bool: # True if item is a group header (cursor should skip)

Predicate for virtual collection is_skippable parameter.

Virtual Collection Column Definitions & Cell Renderer


source

render_source_empty


def render_source_empty(
    
)->Any: # Empty state component

Render empty state when no transcription sources are available.


source

create_source_cell_renderer


def create_source_cell_renderer(
    toggle_url:str='', # URL for toggling source selection
    select_all_url:str='', # URL for selecting all in a group
)->Callable: # render_cell(item: SourceBrowserItem, ctx: CellRenderContext) -> Any

Create a render_cell callback for the source browser virtual collection.

Source Browser (Virtual Collection)