← Back to Pull requests

feat(docs-site): Blocks に docs-layout-sidebar-api(API ドキュメント用サイドバー)を追加する #3548

Open
unknown opened this pull request with 176 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 02, 2026 06:35 UTC
Author

Summary


  • Blocks に docs-layout-sidebar-api(API ドキュメント用サイドバー)を追加
  • Closes #3108

    <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Low Risk

    Additive docs-site Blocks content and nav/CI registration only; no runtime auth, data handling, or shared infrastructure changes.

    > Overview

    Adds the docs-layout-sidebar-api Blocks page: a static API-reference sidebar demo that composes nine existing theme parts (input-group, nav-list, scroll-area, etc.) in a fixed-height three-zone layout (top search, scrollable endpoint list with HTTP method badges, footer links).

    > The Docs Layout category moves from an empty scaffold to a docs_layout/ module that registers this block. The demo shows two variants side by side—search-input (live search field + flat categories) and search-ai (disabled search/AI buttons + collapsible groups pinned open for the no-JS docs site). Links use real org repo URLs; endpoint names are fictional. Wiring includes site/blocks/docs-layout-sidebar-api.md, a Docs Layout nav group in site/nav.toml, a design-doc index row, module unit tests, and a CI test -f for the built HTML page.

    > <sup>Reviewed by Cursor Bugbot for commit 39fb8fd12038e170d2c47fed67f546155da5c713. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    Diff: 176 lines (+132 / -44) across 2 files Reviewer: github-actions[bot] Review duration: 1m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.40) × (1 − Review Confidence (0.28)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 176 lines diff across 2 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 44% · Reviewer familiarity: 35%
    28%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.310
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #3548"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 28.3% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.4% (MEDIUM) · Higher = larger blast radius
    40.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 28.3% · Lower = rushed or shallow review
    28.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 29.0% · Safe to merge
    29.0%