Skip to content

fix(web): hide fullscreen button when workspace has no changes - #4393

Closed
terrytangyuan wants to merge 5 commits into
omnigent-ai:mainfrom
terrytangyuan:feat/fullscreen-no-change
Closed

fix(web): hide fullscreen button when workspace has no changes#4393
terrytangyuan wants to merge 5 commits into
omnigent-ai:mainfrom
terrytangyuan:feat/fullscreen-no-change

Conversation

@terrytangyuan

@terrytangyuan terrytangyuan commented Aug 8, 2026

Copy link
Copy Markdown
Member

Related issue

N/A

Summary

The workspace panel's fullscreen (maximize/minimize) button was always rendered, even when the panel showed "No workspace changes yet." This offered no useful action since there was nothing to maximize. The button is now conditionally rendered — it only appears when there are changed files, an open file tab, or an open terminal tab.

Test Plan

  1. Open a session that hasn't produced any workspace changes — confirm the fullscreen button is not shown.
  2. Trigger file changes so changedCount > 0 — confirm the fullscreen button appears.
  3. Open a file tab or terminal tab with no changed files — confirm the button appears.
  4. Close all tabs and reset to zero changes — confirm the button disappears.

Demo

image

Type of change

  • Bug fix
  • Feature
  • UI / frontend change
  • Refactor / chore
  • Docs
  • Test / CI
  • Breaking change

Test coverage

  • Unit tests added / updated
  • Integration tests added / updated
  • E2E tests added / updated
  • Manual verification completed
  • Existing tests cover this change
  • Not applicable

Coverage notes

Verified manually by inspecting the workspace panel in empty-state and with-changes-state scenarios.

Changelog

The fullscreen button in the workspace panel no longer appears when there are no workspace changes to display.

The maximize/minimize toggle was shown even when the workspace panel
displayed "No workspace changes yet," offering no useful action.
Gate the button on having changed files, an open file tab, or an open
terminal tab.

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
@github-actions
github-actions Bot requested a review from daniellok-db August 8, 2026 02:25
@github-actions github-actions Bot added the size/S Pull request size: S label Aug 8, 2026
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
@terrytangyuan terrytangyuan added the update-ui-snapshot Used to tell CI that the baseline UI snapshot should be regenerated label Aug 8, 2026
Pass changedCount: 1 in tests that assert the fullscreen button is
present, and add a test verifying the button is hidden when the
workspace has no changes and no open tabs.

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
@github-actions github-actions Bot added size/M Pull request size: M and removed size/S Pull request size: S labels Aug 8, 2026
The fullscreen button is now hidden when changedCount is 0, so the
maximize tests need at least one changed file to render the button.

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
@dhruv0811

Copy link
Copy Markdown
Member

Hey @terrytangyuan, I think the full screen button applies to other tabs in the right sidebar too, such as the browser, shell, etc.

It may be confusing to hide the full screen button in some tabs and show it in others. I think the uniform thing to do would be to keep it as is and always allow to full screen the right sidebar regardless of its state or which tab is active right?

@terrytangyuan

Copy link
Copy Markdown
Member Author

You are right. I figured out the problem I had: it was the background transparency issue which I am fixing in another PR. We can close this one.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Closed. If you want to pick this back up, comment /reopen. GitHub only lets maintainers press the Reopen button, so this command does it for you. It needs the source branch to still exist.

@terrytangyuan

Copy link
Copy Markdown
Member Author

This is the PR I was referring to: #4376

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

Labels

size/M Pull request size: M update-ui-snapshot Used to tell CI that the baseline UI snapshot should be regenerated waiting-for-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants