Skip to content

feat(app): support for app drafts in migration and save requests modal - #9054

Merged
utkarsh-bruno merged 1 commit into
usebruno:mainfrom
naman-bruno:fix/app-draft
Aug 21, 2026
Merged

utkarsh-bruno merged 1 commit into
usebruno:mainfrom
naman-bruno:fix/app-draft

Conversation

@naman-bruno

@naman-bruno naman-bruno commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

Description

BRU-4178

When app had any draft and user tried closing the app or migrate bru colleciton to yml with app draft and unsaved changes were lost as it does not show up in the save or discard modal

Screenshots

Screenshot 2026-08-21 at 11 44 12 AM

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 support for detecting and saving unsaved app changes alongside request and folder changes.
    • App drafts now appear in migration and close-confirmation dialogs with clear labels.
    • Users can save or discard app changes using the existing draft management workflows.

@coderabbitai

coderabbitai Bot commented Aug 21, 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: f0803c4a-a826-4e2f-9bbe-bd7ba4addd9e

📥 Commits

Reviewing files that changed from the base of the PR and between 1a59570 and adeb6bf.

📒 Files selected for processing (2)
  • packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js
  • packages/bruno-app/src/providers/App/ConfirmAppClose/SaveRequestsModal.js

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


Walkthrough

The migration and application-close modals now detect unsaved app items. They include app drafts in collection, save, discard, aggregation, and display flows.

Changes

App draft support

Layer / File(s) Summary
Migration modal app drafts
packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js
The modal collects app drafts with request changes, saves them through request-saving flows, and displays App: <name or filename>.
Application-close app drafts
packages/bruno-app/src/providers/App/ConfirmAppClose/SaveRequestsModal.js
The modal tracks app drafts, includes them in aggregate drafts, saves them through request flows, discards them through collection-item deletion, and displays an App: label.

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

Merge Risk: ⚪ Minimal · up to adeb6

The change includes app drafts in migration and close/save request flows, and the available evidence indicates those draft payloads are supported by the save actions; no actionable merge-blocking risk remains after normal checks.

Suggested reviewers: bijin-bruno

Poem

App drafts join the saving stream,
With labels clear and paths that gleam.
Close or migrate, they now belong,
Moving through the request flow strong.

🚥 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 clearly and concisely describes support for app drafts in both migration and save requests modals.
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 files.
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.

@utkarsh-bruno
utkarsh-bruno merged commit 4b3286a into usebruno:main Aug 21, 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