Skip to content

fix(app): labelled cloned items by type in the clone modal and toast - #9153

Merged
utkarsh-bruno merged 1 commit into
usebruno:mainfrom
ravindra-bruno:fix/clone-app-labels
Sep 2, 2026
Merged

utkarsh-bruno merged 1 commit into
usebruno:mainfrom
ravindra-bruno:fix/clone-app-labels

Conversation

@ravindra-bruno

@ravindra-bruno ravindra-bruno commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Cloning an app called it a request in the clone dialog and the toast message.

Problem

Apps became cloneable again, but clone still said "Request". Cloning a folder also wrongly said "Request cloned!".

Fix

Clone now names the item correctly App, Folder, or Request in its dialog and its messages.

Screenshots

Before:

Screenshot 2026-09-02 at 3 10 35 PM

After:

Screenshot 2026-09-02 at 3 09 33 PM

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.

@coderabbitai

coderabbitai Bot commented Sep 2, 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: Team

Run ID: fdb3c76e-c418-4704-9c67-ebdc04bcd5d2

📥 Commits

Reviewing files that changed from the base of the PR and between 9787d29 and 79792f4.

📒 Files selected for processing (2)
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CloneCollectionItem/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

Clone dialogs and notifications now use getItemTypeLabel(item) instead of hardcoded request or folder labels. This includes cloned App items.

Changes

Clone item labels

Layer / File(s) Summary
Resolve labels across clone UI and notifications
packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CloneCollectionItem/index.js, packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js
Clone modal labels and success or error toasts now use the collection item type returned by getItemTypeLabel(item).

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 79792

The change only corrects App, Folder, and Request labels in clone dialogs and messages without changing cloning behavior or stored data. No actionable merge-blocking risk remains after normal checks and review.

Poem

Clone labels wake and shine
Requests, folders, apps align
Toasts speak their proper name
Modal text does just the same
Small change, clear UI gain

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: clone modal and toast labels now use the cloned item type.
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 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 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.

@utkarsh-bruno
utkarsh-bruno merged commit 0f4c24d into usebruno:main Sep 2, 2026
12 of 14 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