Skip to content

fix: create example modal shows status text and body type - #9082

Merged
naman-bruno merged 2 commits into
usebruno:mainfrom
utkarsh-bruno:fix/create-examples
Aug 26, 2026
Merged

naman-bruno merged 2 commits into
usebruno:mainfrom
utkarsh-bruno:fix/create-examples

Conversation

@utkarsh-bruno

@utkarsh-bruno utkarsh-bruno commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Create example modal shows status text and body type.

Problem

In the first implementation, when we didn't decouple mock response and examples, the same component was being used to create mock responses. With the decoupling, this piece of code now is a dead code.

Fix

Removed all the code that was added for the mock example response which is not needed anymore and reverted it back to the original example code.

Screenshots

Before

image

After

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

Summary by CodeRabbit

  • Changes
    • Simplified response example creation by removing mock status code and body type selections.
    • New response examples now use standard default settings: HTTP 200, text content, and an empty body.
    • Removed mock-server options from collection response example workflows.

@coderabbitai

coderabbitai Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 6c1a46cf-9f6c-472b-9add-c5f40dc96d20

📥 Commits

Reviewing files that changed from the base of the PR and between 8cc2754 and fbc6b6c.

📒 Files selected for processing (2)
  • packages/bruno-app/src/components/ResponseExample/CreateExampleModal/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


Walkthrough

Response example creation no longer supports mock-server fields. The modal saves only the name and description. Collection items create examples with fixed HTTP 200, text body, and empty content defaults.

Changes

Response example creation

Layer / File(s) Summary
Simplify response example modal
packages/bruno-app/src/components/ResponseExample/CreateExampleModal/index.js
The modal removes mock-field props and state. It now saves only the trimmed name and description.
Apply fixed example defaults
packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js
Collection item creation removes mock-server configuration and always uses HTTP 200, a text body, and empty content.

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

Merge Risk: ⚪ Minimal · up to fbc6b

This PR removes obsolete example-response UI and restores the create-example modal to show the intended status text and body type. No actionable merge-blocking risk remains beyond normal checks and review.

Suggested reviewers: bijin-bruno

Poem

Mock fields sail away
Names and descriptions remain
Two hundred greets each
Text bodies wait empty
The modal keeps things clear

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title is misleading because the changes remove the status code and body type fields from the modal instead of showing them. Rename the pull request to describe the removal of obsolete mock response fields, for example: "fix: remove mock fields from create example modal".
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
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.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files.

✨ 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.

@naman-bruno
naman-bruno merged commit 2ca3589 into usebruno:main Aug 26, 2026
14 of 15 checks passed
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