Skip to content

fix(api-spec): rename spec menu items and match the rename modal size - #9832

Merged
arpit-bruno merged 2 commits into
usebruno:mainfrom
sundram-bruno:fix/bru-4491-spec-menu-labels
Nov 12, 2026
Merged

arpit-bruno merged 2 commits into
usebruno:mainfrom
sundram-bruno:fix/bru-4491-spec-menu-labels

Conversation

@sundram-bruno

@sundram-bruno sundram-bruno commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

BRU-4491

Renames the API spec row menu items to "Remove" and "Create Mock Server", titles the remove modal "Remove API Spec", and makes the Rename API Spec modal the same size as Rename Collection.

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.
  • I've run the claude code review skill locally.

Summary by CodeRabbit

  • Updates
    • The API-spec menu now labels the mock-server action “Create Mock Server” and the removal action “Remove.”
    • The removal confirmation dialog is now titled “Remove API Spec.”
    • The Rename API Spec dialog is now larger, matching the size of the Rename Collection dialog.
    • The mock-server action remains marked as Beta and is available only when the beta feature is enabled.

…al size

- the spec row menu says Remove instead of Remove from Workspace, matching
  the collection row menu
- Generate Mock Server is now Create Mock Server, matching the mock server
  modal title, and its menu id is create-mock-server
- the Rename API Spec modal uses the same md size as Rename Collection
- unit and e2e tests check the menu labels and the rename modal size
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The API spec menu action changes to “Create Mock Server,” with an updated action ID. The Remove label and removal dialog title also change. The Rename API Spec modal size changes from sm to md. Tests cover these labels, action behavior, beta visibility, and modal sizing.

Changes

API spec sidebar actions and rename modal

Layer / File(s) Summary
Mock-server menu action and labels
packages/bruno-app/src/components/Sidebar/ApiSpecs/ApiSpecItem/*, packages/bruno-app/src/components/Sidebar/ApiSpecs/RemoveApiSpec/*, tests/api-specs/spec-row-menu.spec.ts
The mock-server action ID and label change to create-mock-server and “Create Mock Server.” The Remove label changes to “Remove,” and the removal dialog title changes to “Remove API Spec.” The handler and tests use the updated action ID and labels.
Rename modal sizing
packages/bruno-app/src/components/Sidebar/ApiSpecs/RenameApiSpec/*, tests/api-specs/spec-row-menu.spec.ts
The rename modal size changes from sm to md. Tests assert the updated size.

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

Change: Bug fix

Possibly related PRs

  • usebruno/bruno#9309: Adds the API spec row menu and related handler wiring that this change updates.
  • usebruno/bruno#9768: Changes the Beta badge and related checks on the same mock-server menu item.
Merge Risk: Minimal · up to eaecd

This is a small UI text and sizing change with matching test updates. No concrete merge risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two changes the PR makes to the API spec menu: the row menu item renames and the Rename API Spec modal size. Both appear in the file summaries (menu labels and actions in getApiSpe…
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.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the two changes the PR makes to the API spec menu: the row menu item renames and the Rename API Spec modal size. Both appear in the file summaries (menu labels and actions in getApiSpecMenuItems.js, and sm to md in RenameApiSpec/index.js). The title is concise and specific. It does not mention the removal dialog title change, which is a smaller part of the changeset. The 'fix' prefix is a reasonable label for the rename.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

A menu name shifts into place
A shorter label takes its space
The dialog title now reads clear
The rename modal grows one tier
Tests follow each change in stride

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b0f7681 and eaecda5.

Files selected for processing: 3

  • packages/bruno-app/src/components/Sidebar/ApiSpecs/RemoveApiSpec/index.js
  • packages/bruno-app/src/components/Sidebar/ApiSpecs/RemoveApiSpec/index.spec.js
  • tests/api-specs/spec-row-menu.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

- the remove confirm modal is titled Remove API Spec instead of Remove from Workspace, matching the Remove menu label
- unit and e2e tests check the new title
@arpit-bruno
arpit-bruno merged commit 09625f6 into usebruno:main Nov 12, 2026
16 of 19 checks passed
aparna-bruno pushed a commit to aparna-bruno/bruno that referenced this pull request Nov 20, 2026
…usebruno#9832)

* rename the remove and mock server menu items and match the rename modal size

- the spec row menu says Remove instead of Remove from Workspace, matching
  the collection row menu
- Generate Mock Server is now Create Mock Server, matching the mock server
  modal title, and its menu id is create-mock-server
- the Rename API Spec modal uses the same md size as Rename Collection
- unit and e2e tests check the menu labels and the rename modal size

* title the remove spec modal Remove API Spec

- the remove confirm modal is titled Remove API Spec instead of Remove from Workspace, matching the Remove menu label
- unit and e2e tests check the new title
sid-bruno pushed a commit that referenced this pull request Nov 24, 2026
…#9832)

* rename the remove and mock server menu items and match the rename modal size

- the spec row menu says Remove instead of Remove from Workspace, matching
  the collection row menu
- Generate Mock Server is now Create Mock Server, matching the mock server
  modal title, and its menu id is create-mock-server
- the Rename API Spec modal uses the same md size as Rename Collection
- unit and e2e tests check the menu labels and the rename modal size

* title the remove spec modal Remove API Spec

- the remove confirm modal is titled Remove API Spec instead of Remove from Workspace, matching the Remove menu label
- unit and e2e tests check the new title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants