queue
Selection queue route handlers for Phase 1
Toggle Handler
The toggle route is used by VC checkboxes. It uses a single URL regardless of selection state, so the checkbox never has a stale hx_post URL after toggling.
Add/Remove Handlers
These are used by non-checkbox sources (e.g., queue panel remove button). They include visible checkbox OOBs since the source browser checkbox wasn’t clicked by the user.
Reorder/Clear Handlers
Select All Handler
Preview Handler
Router
init_queue_router
def init_queue_router(
state_store:SQLiteWorkflowStateStore, # The workflow state store
workflow_id:str, # The workflow identifier
source_service:SourceService, # The source service for queries
prefix:str, # Route prefix (e.g., "/workflow/selection/queue")
urls:SelectionUrls, # URL bundle for rendering (populated after all routers created)
)->Tuple: # (router, route_dict)
Initialize queue management routes.