card_stack
Card stack UI operations — navigation, viewport, and response builders
Response Builders
Shared helpers that assemble OOB response tuples for card stack operations.
Update Viewport Handler
Handler for updating the viewport when card count changes.
Save Width Handler
Router Initialization
Creates the card stack router with navigation and viewport routes.
init_card_stack_router
def init_card_stack_router(
state_store:SQLiteWorkflowStateStore, # The workflow state store
workflow_id:str, # The workflow identifier
prefix:str, # Route prefix (e.g., "/workflow/review/card_stack")
urls:ReviewUrls, # URL bundle (populated after routes defined)
)->Tuple: # (router, route_dict)
Initialize card stack routes for review.