Skip to content

fix(request-panel)/websocket and grpc tooltip overflow fixed in request panel - #8544

Merged
bijin-bruno merged 2 commits into
usebruno:mainfrom
sachin-thakur-bruno:fix/ws-grpc-request-header-tooltip
Jul 9, 2026
Merged

bijin-bruno merged 2 commits into
usebruno:mainfrom
sachin-thakur-bruno:fix/ws-grpc-request-header-tooltip

Conversation

@sachin-thakur-bruno

@sachin-thakur-bruno sachin-thakur-bruno commented Jul 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

JIRA

Tooltips on the URL bar action icons (Save, Connect, Generate Code, Generate grpcurl, etc.) were being clipped and appeared to render under the request pane in WebSocket, gRPC, and HTTP requests.

Fix

Replaced the custom .infotip tooltips with the existing ToolHint component (built on react-tooltip) in all three URL bars.

ToolHint renders through a portal to document.body at z-index: 9999 with positionStrategy="fixed", so no ancestor overflow-hidden wrapper can clip it. Removed the now-dead .infotip CSS from the three StyledWrapper files.

Scope

  • RequestPane/QueryUrl (HTTP) — Generate Code, Save
  • RequestPane/WsQueryUrl (WebSocket) — Save, Connect, Close Connection
  • RequestPane/GrpcQueryUrl (gRPC) — Refresh methods, Generate grpcurl, Save, Cancel
BEFORE AFTER
image image

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Summary by CodeRabbit

Summary by CodeRabbit

  • UI Improvements

    • Standardized request action hints by replacing multiple inline tooltips with a consistent, shared hint component across gRPC, HTTP, and WebSocket controls.
    • Refreshed hint/shortcut styling and ensured actions like Generate Code, Save, Connect, Close Connection, and related streaming controls behave the same for the user.
  • Testing

    • Updated end-to-end test flows and locators to rely on stable UI test IDs for saving and related request actions.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Inline infotip tooltip markup is replaced with ToolHint in the request-pane URL components, matching CSS is removed, and Playwright locators and request-flow tests switch to stable test-id selectors for save, generate-code, and websocket connection actions.

Changes

ToolHint Migration

Layer / File(s) Summary
GrpcQueryUrl ToolHint migration
packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/index.js, .../GrpcQueryUrl/StyledWrapper.js
Imports ToolHint, wraps the refresh, grpcurl generation, save, and cancel-stream controls with it, and removes the matching infotip and shortcut CSS.
QueryUrl ToolHint migration
packages/bruno-app/src/components/RequestPane/QueryUrl/index.js, .../QueryUrl/StyledWrapper.js
Imports ToolHint, wraps the Generate Code and Save controls with it, and removes the corresponding infotip and shortcut CSS.
WsQueryUrl ToolHint migration
packages/bruno-app/src/components/RequestPane/WsQueryUrl/index.js, .../WsQueryUrl/StyledWrapper.js
Imports ToolHint, wraps the Save, Close Connection, and Connect controls with it, and removes the tooltip, shortcut, and hover CSS.
Playwright selector updates
tests/utils/page/locators.ts, tests/utils/page/actions.ts, tests/collection/create/create-collection.spec.ts
Locators and helper flows switch from infotip/title-based selection to data-testid-based save, generate-code, and websocket connection controls.

Estimated code review effort: 2 (Simple) | ~12 minutes

Possibly related PRs

  • usebruno/bruno#6295: Shares the same createUntitledRequest save-flow helper touched here.
  • usebruno/bruno#6706: Also modifies the GrpcQueryUrl action controls around the same infotip area.
  • usebruno/bruno#7675: Touches request-action locators and stable button identifiers in the same UI area.

Suggested reviewers: helloanoop, lohit-bruno, naman-bruno, bijin-bruno

Poem

Infotips packed up, light and neat,
ToolHint took the tooltip seat.
Save and connect now wear new tags,
Tests trade titles for steadier flags.
Small clicks, same paths, a tidier beat.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: fixing tooltip overflow in the request panel for WebSocket and gRPC controls.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sachin-thakur-bruno sachin-thakur-bruno changed the title fix(request-panel)/websocket and grpx tooltip overflow fixed in request panel fix(request-panel)/websocket and grpc tooltip overflow fixed in request panel Jul 9, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
tests/collection/create/create-collection.spec.ts (1)

68-68: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider using the centralized saveButton locator instead of inlining selectors.

The newly changed lines inline page.locator('#request-actions').getByTestId('save-request-button'), but a centralized saveButton locator exists in buildCommonLocators. Per path instructions, raw selectors should not be inlined in specs. Note that the centralized locator is unscoped (page.getByTestId('save-request-button')) while these lines scope to #request-actions — verify whether the scope is needed before switching.

As per path instructions: "Centralize locators and actions in page modules under tests/utils/page/*; never inline raw selectors in a spec."

Also applies to: 73-73

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/collection/create/create-collection.spec.ts` at line 68, The spec is
inlining a raw selector for the save action instead of using the shared locator.
Update the affected calls in create-collection.spec.ts to use the centralized
saveButton locator from buildCommonLocators, or move the scoped selector into
the appropriate page module if the `#request-actions` scope is required. Verify
the existing saveButton/Page object helpers first so the spec stays free of
inline selectors.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@tests/collection/create/create-collection.spec.ts`:
- Line 68: The spec is inlining a raw selector for the save action instead of
using the shared locator. Update the affected calls in create-collection.spec.ts
to use the centralized saveButton locator from buildCommonLocators, or move the
scoped selector into the appropriate page module if the `#request-actions` scope
is required. Verify the existing saveButton/Page object helpers first so the
spec stays free of inline selectors.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4dddc9f8-f80d-4fcc-b067-52fc626d4aa0

📥 Commits

Reviewing files that changed from the base of the PR and between 1a0cd55 and 8197460.

📒 Files selected for processing (6)
  • packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/index.js
  • packages/bruno-app/src/components/RequestPane/QueryUrl/index.js
  • packages/bruno-app/src/components/RequestPane/WsQueryUrl/index.js
  • tests/collection/create/create-collection.spec.ts
  • tests/utils/page/actions.ts
  • tests/utils/page/locators.ts
✅ Files skipped from review due to trivial changes (1)
  • tests/utils/page/actions.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • packages/bruno-app/src/components/RequestPane/QueryUrl/index.js
  • packages/bruno-app/src/components/RequestPane/WsQueryUrl/index.js
  • packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/index.js

@bijin-bruno
bijin-bruno merged commit 5da99cf into usebruno:main Jul 9, 2026
11 of 16 checks passed
sid-bruno added a commit to sid-bruno/bruno that referenced this pull request Aug 21, 2026
* fix: handle missing location header in redirect error response (usebruno#7725)

* fix(request-panel)/websocket and grpc tooltip overflow fixed in request panel (usebruno#8544)

* fix(request-panel)/websocket and grpx tooltip overflow fixed in request panel

* added test ids and updated the locators for request panel icons

* test(auth): fix modified-indicator inherit spec test (usebruno#8550)

* test(auth): fix modified-indicator inherit spec test

* fix(locators): updated locators for inherit

* feat(description): file binary description implementation (usebruno#8434)

* Add description support to file body entries

Covers the UI table, FileEntry schema, .bru and .yml file persistence,
OpenCollection converters, and end-to-end tests.

* chore: update @opencollection/types to version 0.10.0 and adjust related code

* fix: ensure placeholder is displayed correctly in description editor

* fix: improve column resizing logic in EnvironmentVariablesTable

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* fix: remove unused import of FileEntry in body.ts

* feat: enhance file handling and selection logic in various components

* test: refactor file description tests for improved readability and structure

* refactor: streamline test setup for binary file selection

* test: improve comments for clarity in file body description tests

* refactor: simplify selection update logic in collections slice

---------

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

* fix(mount): show requests that failed to load in the collection overview (usebruno#8545)

* fix(mount): show requests that failed to load in the collection overview

Partial/errored requests were being dropped or mis-rendered:

- collection-watcher (v1): the synchronous add path and the change path only
  logged parse errors and never emitted the item, so failed requests never
  reached the renderer. Both now send a partial item, matching the async
  worker path.
- mount v2: reconcile dropped `raw` for errored items; it is now forwarded so
  the item's size can be derived, and size is set for every item.
- RequestsNotLoaded: the relative pathname is computed separator-agnostically
  so it renders on Windows, and errored items are included.

* fix(mount): render v2 requests that failed to parse in the sidebar

An errored request had no parsed `request`, so tree-builder set
`request: undefined`. The main->renderer payload is JSON round-tripped, which
drops undefined keys, so the item reached the renderer without a `request`
property and `isItemARequest` (which requires it) excluded it from the sidebar.
Give errored items an empty `request` object so they survive serialization and
render.

Also render the "not loaded" table from the same filtered list used for the
empty-state check, so errored items are listed consistently.

* fix(mount): guard against NaN size and unstable keys for unloaded requests

* fix(mount): recover unloaded requests on valid re-parse without crashing the reducer

* feat(mount): moved the assignments in change reducer

---------

Co-authored-by: Chirag Chandrashekhar <[email protected]>

---------

Co-authored-by: Pragadesh-45 <[email protected]>
Co-authored-by: sachin-thakur-bruno <[email protected]>
Co-authored-by: Pooja <[email protected]>
Co-authored-by: Sid <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Chirag Chandrashekhar <[email protected]>
Co-authored-by: Chirag Chandrashekhar <[email protected]>
Co-authored-by: Bijin A B <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants