vibe.web.routes.ui_helpers¶
UI helper routes for debug and dynamic question rendering.
StateTreeNode ¶
A node in the state inspector tree, rendered by state_inspector.html.
explain_relevance ¶
explain_relevance(template: TemplateData, question_path: str, **kwargs: object) -> ResponseReturnValue
Debug endpoint showing why a question is relevant or not.
get_remaining_questions ¶
get_remaining_questions(template: TemplateData, **kwargs: object) -> ResponseReturnValue
HTMX endpoint returning variables needed for template completion.
Returns HTML fragment listing the needed_vars from the most recent probe result. These are the variables that must be provided for the template to render completely. Questions are sorted by their order in the template config.
render_list_item ¶
render_list_item(template: TemplateData, question_name: str, next_index: int, **kwargs: object) -> ResponseReturnValue
HTMX endpoint to render a new list item widget.
remove_list_item ¶
remove_list_item(template: TemplateData, question_name: str, index_to_remove: int, **kwargs: object) -> ResponseReturnValue
HTMX endpoint to remove an item from a list question.
preview_appendix ¶
preview_appendix(template: TemplateData, appendix_alias: str, **kwargs: object) -> ResponseReturnValue
Render preview content for a specific appendix.
state_inspector ¶
state_inspector(template: TemplateData, **kwargs: object) -> ResponseReturnValue
Debug endpoint showing the full interview state tree.