Skip to content

[ZEPPELIN-6778] Keep Send visible and preserve focus in the Assistant composer - #5620

Merged
voidmatcha merged 1 commit into
apache:masterfrom
miinhho:ZEPPELIN-6778-assistant-composer-visibility-focus
Nov 28, 2026
Merged

voidmatcha merged 1 commit into
apache:masterfrom
miinhho:ZEPPELIN-6778-assistant-composer-visibility-focus

Conversation

@miinhho

@miinhho miinhho commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

What is this PR for?

On short viewports, a multiline question can push Send outside the visible Assistant sidebar. The textarea now scrolls within the available space so Send stays visible and keyboard-accessible.

Submitting with Send or Enter returns focus to the question input. If the user moves focus back to the notebook, streaming updates and answer completion leave it there. The input remains read-only while a response is in progress, as before.

What type of PR is it?

Improvement

What is the Jira issue?

How should this be tested?

With Zeppelin running, set PLAYWRIGHT_BASE_URL to the server address. From zeppelin-web-angular, run:

npm run e2e -- e2e/tests/notebook/assistant/assistant-conversation.spec.ts --project=chromium -g 'keeps Send reachable on a short viewport'

The scenario uses a controlled Assistant stream. It checks that the textarea scrolls and Send stays fully inside the sidebar and reachable by Tab, that both submission paths return focus to the input, and that streaming and completion do not steal focus from the notebook.

Questions:

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

- Let the textarea scroll within the available sidebar height.
- Restore focus only on deliberate submission, with no focus change on stream events.
- Cover keyboard submission, real browser bounds, and focus across a controlled stream.
@voidmatcha
voidmatcha merged commit 258d27b into apache:master Nov 28, 2026
30 checks passed
@voidmatcha

Copy link
Copy Markdown
Member

Merged into master (258d27b).

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