Skip to content

Reserve titlebar space for right-side window controls#10178

Merged
captainsafia merged 2 commits into
warpdotdev:masterfrom
gabrimatic:gabrimatic/resource-center-titlebar-spacing
May 11, 2026
Merged

Reserve titlebar space for right-side window controls#10178
captainsafia merged 2 commits into
warpdotdev:masterfrom
gabrimatic:gabrimatic/resource-center-titlebar-spacing

Conversation

@gabrimatic
Copy link
Copy Markdown
Contributor

@gabrimatic gabrimatic commented May 5, 2026

Description

  • Always reserve right-side titlebar control space in the tab bar when custom window controls are on the right.
  • Keeps the Resource Center / What's New toolbar controls out from underneath Windows/Linux close, minimize, and maximize controls while preserving left-side macOS behavior.

Linked Issue

Screenshots / Videos

Linux Xvfb run of warp-oss:

Linux titlebar spacing

Short video: pr10178-linux-titlebar.mp4

Testing

  • cargo test -p warp traffic_light
  • cargo fmt -- --check
  • git diff --check
  • cargo check -p warp --lib --target x86_64-pc-windows-gnu --tests
  • cargo clippy -p warp --lib --all-features -- -D warnings
  • Linux container: cargo test -p warp traffic_light -- --nocapture
  • Linux container: cargo build -p warp --bin warp-oss --features gui,fast_dev -j1
  • Linux Xvfb capture of the built warp-oss binary

@cla-bot cla-bot Bot added the cla-signed label May 5, 2026
@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label May 5, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 5, 2026

@gabrimatic

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

oz-for-oss[bot]
oz-for-oss Bot previously requested changes May 5, 2026
Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR reserves right-side titlebar control space whenever window controls are on the right, and adds unit coverage for the helper that decides whether tab-bar space should be reserved.

Concerns

  • This is a user-visible titlebar layout change, but the PR does not include screenshots or a video showing the Windows/Linux titlebar spacing. For faster review, please upload screenshots or a video of the feature working end to end.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@gabrimatic gabrimatic closed this May 6, 2026
@gabrimatic gabrimatic reopened this May 6, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 6, 2026

@gabrimatic

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

oz-for-oss[bot]
oz-for-oss Bot previously requested changes May 6, 2026
Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR changes tab-bar layout so right-side custom window controls always reserve space while left-side controls retain the existing behavior, with direct unit coverage for the new helper.

Concerns

  • This is a user-visible titlebar layout change, but the PR does not include screenshots or a short video. For faster review, please upload screenshots or a video showing the Windows/Linux titlebar controls and toolbar controls no longer overlap end to end.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@gabrimatic gabrimatic force-pushed the gabrimatic/resource-center-titlebar-spacing branch from 85819bc to 15c72e7 Compare May 8, 2026 01:21
@gabrimatic
Copy link
Copy Markdown
Contributor Author

@oz-for-oss I checked the current review state. The remaining blocker is the requested Windows/Linux screenshot or short video for the titlebar spacing change.

I only have macOS available in this environment, so I am leaving that evidence gap open rather than substituting a macOS capture. I will add the requested Windows/Linux visual proof when I can capture it on the target platforms.

@gabrimatic
Copy link
Copy Markdown
Contributor Author

@oz-for-oss I added the requested Linux visual evidence to the PR body.

Screenshot:
Linux titlebar spacing

Short video: https://raw.githubusercontent.com/gabrimatic/warp/pr-10178-linux-evidence/evidence/pr-10178/pr10178-linux-titlebar.mp4

This was captured from a Linux container/Xvfb run of the built warp-oss binary at 15c72e7. The top-right titlebar controls and the left toolbar/sidebar controls are visible end to end without overlap.

Additional Linux verification:

  • cargo test -p warp traffic_lights -- --nocapture passed, 2/2
  • cargo build -p warp --bin warp-oss --features gui,fast_dev -j1 passed
  • captured the screenshot/video from that Linux run

/oz-review

@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 8, 2026

@gabrimatic

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @warpdotdev/oss-maintainers.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot dismissed stale reviews from themself May 8, 2026 21:26

Oz no longer requests changes for this pull request after the latest automated review.

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR updates the tab-bar titlebar spacer so right-side custom window controls always reserve space, preventing toolbar controls from overlapping Windows/Linux traffic-light controls while preserving left-side behavior. It also adds direct coverage for the new reservation predicate.

Concerns

  • No blocking concerns found.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot requested review from a team and captainsafia and removed request for a team May 8, 2026 21:26
Copy link
Copy Markdown
Contributor

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change to the source file seems sensible but the the changes to the test files need some work. I left comments inline.

Comment thread app/src/workspace/view_tests.rs Outdated
@gabrimatic gabrimatic requested a review from captainsafia May 9, 2026 00:05
@gabrimatic gabrimatic force-pushed the gabrimatic/resource-center-titlebar-spacing branch from b1fab78 to cfad1d7 Compare May 9, 2026 21:33
@captainsafia captainsafia enabled auto-merge (squash) May 11, 2026 00:14
@captainsafia captainsafia merged commit ed91775 into warpdotdev:master May 11, 2026
29 checks passed
cephalonaut pushed a commit that referenced this pull request May 12, 2026
## Description
- Always reserve right-side titlebar control space in the tab bar when
custom window controls are on the right.
- Keeps the Resource Center / What's New toolbar controls out from
underneath Windows/Linux close, minimize, and maximize controls while
preserving left-side macOS behavior.

## Linked Issue
- Fixes #10139
- [x] The linked issue is labeled `ready-to-implement`.
- [x] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes).

## Screenshots / Videos
Linux Xvfb run of `warp-oss`:

![Linux titlebar
spacing](https://raw.githubusercontent.com/gabrimatic/warp/pr-10178-linux-evidence/evidence/pr-10178/pr10178-linux-titlebar-window.png)

Short video:
[pr10178-linux-titlebar.mp4](https://raw.githubusercontent.com/gabrimatic/warp/pr-10178-linux-evidence/evidence/pr-10178/pr10178-linux-titlebar.mp4)

## Testing
- `cargo test -p warp traffic_light`
- `cargo fmt -- --check`
- `git diff --check`
- `cargo check -p warp --lib --target x86_64-pc-windows-gnu --tests`
- `cargo clippy -p warp --lib --all-features -- -D warnings`
- Linux container: `cargo test -p warp traffic_light -- --nocapture`
- Linux container: `cargo build -p warp --bin warp-oss --features
gui,fast_dev -j1`
- Linux Xvfb capture of the built `warp-oss` binary
cephalonaut pushed a commit that referenced this pull request May 12, 2026
## Description
- Always reserve right-side titlebar control space in the tab bar when
custom window controls are on the right.
- Keeps the Resource Center / What's New toolbar controls out from
underneath Windows/Linux close, minimize, and maximize controls while
preserving left-side macOS behavior.

## Linked Issue
- Fixes #10139
- [x] The linked issue is labeled `ready-to-implement`.
- [x] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes).

## Screenshots / Videos
Linux Xvfb run of `warp-oss`:

![Linux titlebar
spacing](https://raw.githubusercontent.com/gabrimatic/warp/pr-10178-linux-evidence/evidence/pr-10178/pr10178-linux-titlebar-window.png)

Short video:
[pr10178-linux-titlebar.mp4](https://raw.githubusercontent.com/gabrimatic/warp/pr-10178-linux-evidence/evidence/pr-10178/pr10178-linux-titlebar.mp4)

## Testing
- `cargo test -p warp traffic_light`
- `cargo fmt -- --check`
- `git diff --check`
- `cargo check -p warp --lib --target x86_64-pc-windows-gnu --tests`
- `cargo clippy -p warp --lib --all-features -- -D warnings`
- Linux container: `cargo test -p warp traffic_light -- --nocapture`
- Linux container: `cargo build -p warp --bin warp-oss --features
gui,fast_dev -j1`
- Linux Xvfb capture of the built `warp-oss` binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI Overlap When Checking the "What's New" Page

2 participants