← Back to Pull requests

Fix workspace frames and skip redundant profile restores #78

Merged
timkpaine merged 13 files (448 lines) on Nov 03, 2026 15:34 UTC
View on GitHub
timkpaine timkpaine commented on Nov 03, 2026 15:18 UTC
Author

Description

Keep narrow frame titles and content inside their bounds, add divider and resize-feedback color tokens, and support the share row-action icon in Python and browser validation. Frame styles live in a viewer-owned adopted stylesheet and use Perspective's existing resize coordination.

Skip superseded queued configs. When saved panel configurations and derived tables match live state, restore layout without rebuilding inactive plugins. Changed configurations and row-action policies retain full replacement behavior, including resetting user edits.

A local 48-panel, 200-row Datagrid fixture improved from three full restores in 417 ms to one layout-only restore in about 8 ms, retaining all 48 plugins. This does not reproduce or resolve every cause of the reported 13.2-second production restore; full panel replacement still pays upstream rendering costs.

Build, lint, type/distribution checks, and 86 Python tests pass. All 210 browser cases passed under CI settings; two WebKit cases needed retries. Narrow-frame, divider-drag, stale-config, profile-reset, and share-icon regressions are covered.

Type of Change

  • Bug fix

  • New feature

  • Documentation update
  • Checklist

  • Linting passes

  • Relevant tests pass

  • Regression tests added

  • Documentation updated
  • Diff: 448 lines (+434 / -14) across 13 files Reviewer: None requested Review duration: 15m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.69) × (1 − Review Confidence (0.65)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.69 · 448 lines diff across 13 files
    0.69
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.53 · 2 substantive comment(s)
    0.53
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    64%
    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.365
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Real PR Conversation Timeline
    3 items
    github-actions[bot] github-actions[bot] commented on Nov 03, 2026 15:23 UTC
    Bot

    Test Results


     2 files  ±0   3 suites  ±0   13s ⏱️ -5s
    87 tests +1  87 ✅ +1  0 💤 ±0  0 ❌ ±0 
    88 runs  +1  88 ✅ +1  0 💤 ±0  0 ❌ ±0 

    Results for commit 82d9bcd8. ± Comparison against base commit 8d5922df.

    <details>
    <summary>This pull request <b>removes</b> 1 and <b>adds</b> 2 tests. <i>Note that renamed tests count towards both.</i></summary>

    spaday_perspective.tests.test_all ‑ test_row_action_tokens_match_the_adapter
    

    spaday_perspective.tests.test_all ‑ test_share_icon_is_accepted_in_python_policy_validation
    spaday_perspective.tests.test_all ‑ test_tokens_match_browser_styles
    

    </details>

    [test-results]:data:application/gzip;base64,H4sIAGn86WoC/12Myw7CIBBFf6Vh7QKplcGfMTBAMrEthsfK+O9SUtvq7p5zk/NinkaX2K0Tp46lQrlBX8GWqDOFueJ54frk5QP5hXsqiH/mQc9q+Ca8pvFHuBhDXE0scyvCurfgLvZe40Ou8bGGYZooV2AgrDJoYTDco7gYHJArpaWVoHQvuVDCXR0ge38A0aFTIAABAAA=

    codecov[bot] codecov[bot] commented on Nov 03, 2026 15:23 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    :white_check_mark: Project coverage is 100.00%. Comparing base (8d5922d) to head (82d9bcd).

    <details><summary>Additional details and impacted files</summary>

    @@            Coverage Diff            @@
    ##              main       #78   +/-   ##
    =========================================
      Coverage   100.00%   100.00%           
    =========================================
      Files           13        13           
      Lines          503       509    +6     
      Branches        59        59           
    =========================================
    + Hits           503       509    +6     
    

    </details>

    :umbrella: View full report in Codecov by Harness.
    :loudspeaker: Have feedback on the report? Share it here.
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    Reviewers
    None requested
    Assignees
    timkpaine timkpaine
    Labels
    risk: low confidence: 64.7% 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: 69.1% (HIGH) · Higher = larger blast radius
    69.1%
    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: 64.7% · Lower = rushed or shallow review
    64.7%
    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: 24.4% · Safe to merge
    24.4%