Skip to content

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

Merged
voidmatcha merged 1 commit into
apache:masterfrom
miinhho:ZEPPELIN-6762-truncated-output-alert
Oct 27, 2026
Merged

voidmatcha merged 1 commit into
apache:masterfrom
miinhho:ZEPPELIN-6762-truncated-output-alert

Conversation

@miinhho

@miinhho miinhho commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

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?

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
  1. Verify that the “Output is truncated” alert below the output has a background, border, and close button.
  2. Click × and verify that only the alert disappears; the output text should remain.
  3. Run the paragraph again. Verify that the alert reappears and can also be dismissed by focusing its close button and pressing Enter.
  4. Repeat in both light and dark themes.
  5. 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

zeppelin-6762-angular-dark

Angular light theme

zeppelin-6762-angular-light

React dark theme

zeppelin-6762-react-dark

React light theme

zeppelin-6762-react-light

Questions:

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

@voidmatcha
voidmatcha merged commit 9799b26 into apache:master Oct 27, 2026
24 checks passed
@voidmatcha

Copy link
Copy Markdown
Member

Merged into master (9799b26).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants