Skip to content

fix(app): added clone option for app and name collission for app while creating - #9133

Merged
sid-bruno merged 2 commits into
usebruno:mainfrom
sachin-thakur-bruno:fix/app-sidebar-clone
Aug 31, 2026
Merged

sid-bruno merged 2 commits into
usebruno:mainfrom
sachin-thakur-bruno:fix/app-sidebar-clone

Conversation

@sachin-thakur-bruno

@sachin-thakur-bruno sachin-thakur-bruno commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Name collissions was not happening for Apps while creating a new App
Clone option for app was gone due to earlier naming collissions changes.

BRU-894

Problem

Check for adding the clone was added and app was excluded

Fix

added the app to the clonable and handle create app for name collissions.

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.

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

  • New Features

    • Added the ability to clone app items from the sidebar.
    • App creation now supports duplicate names by automatically resolving filename conflicts.
  • Bug Fixes

    • Duplicate app names no longer block creation or leave the dialog open with an error.
    • Cloned apps are correctly saved and displayed alongside the original.

@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b008c4c1-6619-471c-9b8d-da8d99eb2300

📥 Commits

Reviewing files that changed from the base of the PR and between 715d669 and 9132b5c.

📒 Files selected for processing (4)
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • tests/apps/apps-clone.spec.ts
  • tests/apps/apps-create.spec.ts

Walkthrough

App items can now use the Clone action. App creation permits duplicate names and relies on Electron to suffix colliding filenames. Tests cover cloning, sidebar entries, and filesystem output.

Changes

App lifecycle

Layer / File(s) Summary
Enable app cloning
packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js, tests/apps/apps-clone.spec.ts
App items become cloneable. The new test verifies the cloned sidebar entry and file.
Resolve duplicate app names
packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js, tests/apps/apps-create.spec.ts
Duplicate app creation proceeds without the previous rejection. Tests verify two matching sidebar entries and silent filename resolution.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant AppRowMenu
  participant handleCloneItem
  participant ElectronFilesystem
  AppRowMenu->>handleCloneItem: Clone app item
  handleCloneItem->>ElectronFilesystem: Write cloned app file
  ElectronFilesystem-->>handleCloneItem: Return written path
  handleCloneItem-->>AppRowMenu: Show original and cloned app
Loading

Suggested reviewers: bijin-bruno

Poem

An app finds a second name
The sidebar keeps both in frame
A clone steps out, file in hand
Electron writes where paths command
Two small entries, one clear plan

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

@sid-bruno
sid-bruno merged commit 40cb7f4 into usebruno:main Aug 31, 2026
13 of 29 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