Center vertical tabs title search#12899
Conversation
|
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 Powered by Oz |
There was a problem hiding this comment.
Overview
This PR changes the vertical-tabs title bar so the title search field renders as a centered overlay while preserving the hide-title-bar-search-bar setting. No approved spec context was provided, and the security pass did not identify security concerns.
Concerns
- This is a user-facing layout change, but the attached PR description does not include screenshots or a screen recording demonstrating the centered search field end to end. Repository review guidance requires visual evidence for UI-impacting changes before merge.
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
| let mut stack = Stack::new(); | ||
| stack.add_child(tab_bar); | ||
| stack.add_positioned_overlay_child( | ||
| Container::new(self.render_title_bar_search_bar(appearance)) |
There was a problem hiding this comment.
|
Added visual evidence to the PR description. Verification run: The screenshot shows vertical tabs enabled and the title search field centered in the top title bar. |
|
/oz-review |
|
I'm re-reviewing this pull request in response to a review request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR changes the vertical-tabs title bar so the search field is rendered as a centered overlay while the left toolbar and right controls remain in the base row. The attached visual evidence covers the intended centered state, and there is no approved spec context to compare against.
Concerns
- The new overlay no longer participates in the flex/shrink layout, so the fixed-width search control can overlap toolbar controls in narrow windows or with wider/custom toolbar configurations.
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
| let mut stack = Stack::new(); | ||
| stack.add_child(tab_bar); | ||
| stack.add_positioned_overlay_child( | ||
| Container::new(self.render_title_bar_search_bar(appearance)) |
There was a problem hiding this comment.
e7715fe to
2c3e40c
Compare
|
Updated to address the latest overlap concern. Changes:
Verified: I added updated visual evidence to the PR description for both normal-width centered rendering and the narrow-width hidden state. |
|
/oz-review |
|
I'm re-reviewing this pull request in response to a review request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR moves the vertical-tabs title search field into a centered overlay and hides it when cached left/right control bounds would collide. The PR includes visual evidence, and no approved spec context was provided.
Concerns
- The overlay anchor still uses the padded tab-bar content area, so platforms/configurations with asymmetric title-bar padding can keep the search field offset from the actual window/title-bar center.
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
| .with_padding_left(TITLE_BAR_SEARCH_BAR_SLOT_PADDING) | ||
| .with_padding_right(TITLE_BAR_SEARCH_BAR_SLOT_PADDING) | ||
| .finish(), | ||
| OffsetPositioning::offset_from_parent( |
There was a problem hiding this comment.
Container::with_padding_left(left_padding)/right padding. On macOS left_padding includes traffic-light space, so ParentAnchor::Center lands right of the actual window/title-bar center while the collision math above uses window_bounds; anchor against an unpadded/full-window rect or compensate for the padding so #12217 is actually fixed.
2c3e40c to
738bec4
Compare
|
/oz-review |
|
Updated to address the asymmetric-padding centering concern. Changes:
Verified: cargo fmt --check
./script/format --check
git diff --check
cargo check -p warp
WARP_INTEGRATION_TEST_ARTIFACTS_DIR=/tmp/warp-pr-12899-centered-evidence-v3 WARPUI_USE_REAL_DISPLAY_IN_INTEGRATION_TESTS=1 cargo run -p integration --bin integration -- test_vertical_tabs_title_search_visual_evidenceThe PR description has updated screenshots for both the full-width centered state and the narrow-width hidden state. |
|
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: Comment Powered by Oz |
Oz no longer requests changes for this pull request after the latest automated review.
There was a problem hiding this comment.
Overview
This PR updates the vertical-tabs title bar so the command-palette search affordance is rendered as a centered overlay relative to the title bar while preserving the left and right control groups in their existing row. It also hides the centered search affordance when the window is too narrow or when cached control bounds would collide with the centered slot.
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
Fixes #12217
Summary
hide_title_bar_search_bar_in_vertical_tabssettingVisual Evidence
Normal width: title search is centered in the full title bar, independent of left/right padding.
Narrow width: title search is hidden so it does not overlap toolbar controls.
Testing
cargo fmt --check./script/format --checkgit diff --checkcargo check -p warpWARP_INTEGRATION_TEST_ARTIFACTS_DIR=/tmp/warp-pr-12899-centered-evidence-v3 WARPUI_USE_REAL_DISPLAY_IN_INTEGRATION_TESTS=1 cargo run -p integration --bin integration -- test_vertical_tabs_title_search_visual_evidence