← Back to Pull requests

refactor(tui): use built-in header, self-contained right panel #323

Closed
unknown closed this pull request without merging on Nov 21, 2026 01:15 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 22:07 UTC
Author

:robot: _AI text below_ :robot:

TUI widget cleanup for items 12 (right panel and header part), 14, 15, 16, 17, and 22 of the review.

  • Header: the custom Header is removed. The app uses the built-in Header with TITLE = "uproot-browser" and the file path as sub_title. The old close and help buttons are gone. The header icon opens the command palette, which has the built-in Quit command and a new Help command (get_system_commands).

  • Right panel: RightPanel gets image and image_scale from its constructor. It posts RightPanel.LimitsChanged and RightPanel.ScaleChanged, and Browser handles them. The theme Select still sets self.app.theme. Button handlers use @on(Button.Pressed, "#axis-apply").

  • Axis inputs: Input(validators=[Number()], valid_empty=True). The validator marks invalid input (nan and inf too) with a red border. The input keeps the typed text (type="number" dropped the comma in 1,5 and applied 15). The status line still shows a message for invalid input and for min >= max. Blank still means automatic.

  • Info tab: lists the installed dependencies of uproot-browser, sorted, in one Static. The walk is transitive and uses packaging.requirements.Requirement: it follows all extras of uproot-browser and the extras of each requirement (for example markdown-it-py[linkify]), and evaluates markers for this environment. packaging >=22 is now a declared dependency (uproot already requires it).

  • CSS: the global Label padding rule and the PercentageStatus workaround are removed. Screenshots of the start screen, a plot with the right panel, and the status bar with a running task are pixel-identical below the header. The Browser Widget { scrollbar-* } rule is intended and stays.

  • Dead code: app: Browser in HelpScreen, Header.DEFAULT_CLASSES, the stale UprootTree docstring, and the stale sentence in the help README.
  • The textual minimum does not change. The minimums session passes.

    Refs #322

    Diff: 250 lines (+187 / -63) across 3 files Reviewer: henryiii Review duration: 187m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 250 lines diff across 3 files
    0.39
    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.331
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #323"
    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: 39.0% (MEDIUM) · Higher = larger blast radius
    39.0%
    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: 15.4% · Safe to merge
    15.4%