vibe.review.interview_mode

Interview mode extension for VIBE Review.

Registers the 'review' interview mode which provides a document review workbench interface instead of the standard interview form.

ReviewModeExtension

Interview mode extension for document review.

The review mode redirects from the standard /interview/ route to the review module's session creation form, which handles document upload and review session initialization.

get_layout_template

get_layout_template() -> str

Return the review workbench layout template.

Note: This is used when rendering within the interview framework, but typically review mode redirects to its own routes via handle_start.

handle_start

handle_start(template: TemplateData, version: str | None) -> Response | None

Redirect to the review module's sessions list.

Review mode requires document upload and review session setup, which is handled by the review module's dedicated routes.

Preserves the devel=1 query parameter if present, so that devel mode is enabled when the user creates a new review session.

Parameters:
  • template (TemplateData) –

    The loaded TemplateData.

  • version (str | None) –

    Optional version identifier.

Returns:
  • Response | None

    Redirect response to the review sessions list.

get_template_context

get_template_context(template: TemplateData, base_context: dict[str, Any]) -> dict[str, Any]

Add review-specific context.

Note: This is typically not called since handle_start redirects, but is provided for completeness.

Parameters:
  • template (TemplateData) –

    The TemplateData being rendered.

  • base_context (dict[str, Any]) –

    Standard context dict.

Returns:
  • dict[str, Any]

    Context with review_mode flag added.

register_review_interview_mode

register_review_interview_mode() -> None

Register the review interview mode extension.