← Back to Pull requests

229 highlight focussed node #244

Closed
unknown closed this pull request without merging on Jun 25, 2026 11:13 UTC
View on GitHub
unknown unknown commented on Jun 18, 2026 13:52 UTC
Author

Auto generated


This pull request introduces several improvements to the chat and graph UI, focusing on better visual feedback for node focus, cleaner component styling, and enhanced chat message handling. The changes centralize node styling in CSS, display the currently focused node in the chat interface, and add the ability to hide system messages in the chat.

UI/UX Improvements:

The currently focused node's label is now displayed above the chat input area, providing users with clear context about which node is in focus. (src/frontend/src/chat.jsx [[1]](diffhunk://#diff-ba1cf2d6f4c3a86462beeabe45c098a262c7b06d02ed5bd3aa4a76ecfbd46cc6L60-R63) [[2]](diffhunk://#diff-ba1cf2d6f4c3a86462beeabe45c098a262c7b06d02ed5bd3aa4a76ecfbd46cc6R79-R87)
Node styling is moved from inline styles in React components to CSS classes, simplifying the code and making it easier to manage styles. Focused nodes receive a distinct appearance. (src/frontend/src/components/CustomNode.jsx [[1]](diffhunk://#diff-8e2e1740f0b653e3736c14456d9a5360be7e6089bf7762deaca73f705f2064d7L118-R130) src/frontend/src/index.css [[2]](diffhunk://#diff-fc4018c8747c686ec17596de2bdd829529727330a326f02dac1011f1c216f59cR185-R200)

Graph Logic Updates:

The logic for determining the focused (center) node is improved: the center node is now set dynamically based on user interaction, and this state is passed through to node rendering. (src/frontend/src/graph.jsx [[1]](diffhunk://#diff-918c228bd7e57b652a91771f65b2c13901232a84f7ff411de4e7c2ad0e321304L86-R101) [[2]](diffhunk://#diff-918c228bd7e57b652a91771f65b2c13901232a84f7ff411de4e7c2ad0e321304L221-R216)

Chat Functionality Enhancements:

Added a showSystemMessages prop to the Messages component, allowing the interface to filter out system messages from the chat log for a cleaner user experience. (src/frontend/src/chat.jsx [[1]](diffhunk://#diff-ba1cf2d6f4c3a86462beeabe45c098a262c7b06d02ed5bd3aa4a76ecfbd46cc6R145) [[2]](diffhunk://#diff-ba1cf2d6f4c3a86462beeabe45c098a262c7b06d02ed5bd3aa4a76ecfbd46cc6L186-R205)

  • Updated message rendering to use a consistent CSS class for word breaking, improving text layout in chat bubbles. (src/frontend/src/chat.jsx [[1]](diffhunk://#diff-ba1cf2d6f4c3a86462beeabe45c098a262c7b06d02ed5bd3aa4a76ecfbd46cc6L186-R205) [[2]](diffhunk://#diff-ba1cf2d6f4c3a86462beeabe45c098a262c7b06d02ed5bd3aa4a76ecfbd46cc6L207-R219) [[3]](diffhunk://#diff-ba1cf2d6f4c3a86462beeabe45c098a262c7b06d02ed5bd3aa4a76ecfbd46cc6L292-R309)
  • Diff: 316 lines (+237 / -79) across 3 files Reviewer: Hoog-V Review duration: 9921m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 316 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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
    Diff Size diff_size
    0.345
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #244"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 16.0% · Safe to merge
    16.0%