← Back to Pull requests

[ZEPPELIN-6762] Fix truncated output alerts in the new UI #5591

Closed
unknown closed this pull request without merging on Oct 27, 2026 11:40 UTC
View on GitHub
unknown unknown commented on Oct 26, 2026 17:39 UTC
Author

What is this PR for?


Fix the unstyled “Output is truncated” alert and its non-functional close button in the new UI.

The alert HTML generated by the server relies on Bootstrap styles and dismissal behavior, which the new UI does not provide. This PR adds light/dark theme styling and close-button handling for both Angular and React.

What type of PR is it?


Bug Fix

What is the Jira issue?


https://issues.apache.org/jira/browse/ZEPPELIN-6762

How should this be tested?

Automated tests

  • Run the following commands from the repository root:
  • cd zeppelin-web-angular
    npm run test:shell -- src/app/pages/workspace/share/result/result.component.spec.ts --maxWorkers=1
    npm --prefix projects/zeppelin-react test -- src/components/renderers/HTMLRenderer.spec.tsx --maxWorkers=1
    

    Manual verification

    1. Create a notebook using the sh interpreter and run:

    %sh
    for i in $(seq 1 20000); do echo "line_$i"; done
      

    2. Verify that the “Output is truncated” alert below the output has a background, border, and close button.
    3. Click × and verify that only the alert disappears; the output text should remain.
    4. Run the paragraph again. Verify that the alert reappears and can also be dismissed by focusing its close button and pressing Enter.
    5. Repeat in both light and dark themes.
    6. Open the same paragraph in the React Published view and repeat:
    /#/notebook/<noteId>/paragraph/<paragraphId>?react=true
      

    To verify the row-limit alert with a PostgreSQL JDBC interpreter, set zeppelin.jdbc.maxResult to 1000 and run:

    %jdbc
    SELECT generate_series(1, 2000);
    

    Verify that the row-limit alert following the table is styled correctly and can be dismissed.

    Screenshots (if appropriate)


    Angular dark theme

    <img width="1280" height="420" alt="zeppelin-6762-angular-dark" src="https://github.com/user-attachments/assets/22343a9e-9aa1-47d8-86a6-6320b3f1d675" />

    Angular light theme

    <img width="1280" height="420" alt="zeppelin-6762-angular-light" src="https://github.com/user-attachments/assets/3498ac84-d76f-4ffe-a831-12d9c7e6e5e6" />

    React dark theme

    <img width="1600" height="525" alt="zeppelin-6762-react-dark" src="https://github.com/user-attachments/assets/d7f85139-e1bf-425e-b189-ffba5de510c5" />

    React light theme

    <img width="1280" height="420" alt="zeppelin-6762-react-light" src="https://github.com/user-attachments/assets/243408ef-3ae0-411f-83e0-5839d123deff" />

    Questions:


    Does the license files need to update? No.
    Is there breaking changes for older versions? No.
    Does this needs documentation? No.

    Diff: 325 lines (+243 / -82) across 4 files Reviewer: jongyoul Review duration: 1080m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 325 lines diff across 4 files
    0.42
    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.346
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5591"
    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: 42% (MEDIUM) · Higher = larger blast radius
    42%
    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.6% · Safe to merge
    16.6%